/* Polyamory Singles board, guide page, homepage card 04, and the Hot Tub cross-link. */

/* Homepage: four numbered cards in a 2 x 2 grid on wide screens (existing 1-column rule still applies below 993px). */
@media (min-width: 993px) {
    .grid.grid-four {
        grid-template-columns: repeat(2, 1fr);
    }
}
.card .card-links {
    margin: 22px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}
.card .card-links a {
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.card .card-links a:hover,
.card .card-links a:focus {
    opacity: 0.8;
}

/* Polyamory board: guide button under the hero text. */
.board-guide-cta {
    margin-top: 18px;
}
.board-guide-cta .btn {
    display: inline-block;
}

/* Hot Tub page cross-link. */
.hottub-poly-link {
    margin-top: 16px;
    color: var(--text-muted, #888);
    font-size: 0.95rem;
}
.hottub-poly-link a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}
.board-local a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Guide page. */
.poly-guide .legal-body {
    max-width: 780px;
}
.poly-guide .poly-toc {
    list-style: none;
    margin: 0 0 2em;
    padding: 18px 20px;
    border: 1px solid var(--border, #2a2a2a);
    background: var(--bg-gray, #121212);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 24px;
}
.poly-guide .poly-toc li {
    margin: 0;
    font-size: 0.92rem;
}
.poly-guide .poly-toc a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid var(--border, #2a2a2a);
}
.poly-guide .poly-toc a:hover {
    border-bottom-color: #fff;
}
.poly-guide .poly-type {
    padding: 22px 24px;
    margin: 0 0 18px;
    background: var(--bg-light-gray, #1a1a1a);
    border: 1px solid var(--border, #2a2a2a);
}
.poly-guide .poly-type h3 {
    font-size: 1.25rem;
    margin: 0 0 6px;
}
.poly-guide .poly-type .poly-tag {
    display: inline-block;
    margin: 0 0 10px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted, #888);
    border-bottom: 1px solid var(--border, #2a2a2a);
    padding-bottom: 3px;
}
.poly-guide .poly-type p {
    margin: 0 0 0.8em;
}
.poly-guide .poly-type p:last-child {
    margin-bottom: 0;
}
.poly-guide .poly-type .poly-fit strong {
    color: #fff;
    font-weight: 600;
}
.poly-guide dl.poly-terms {
    margin: 0 0 1.4em;
}
.poly-guide dl.poly-terms dt {
    color: #fff;
    font-weight: 600;
    margin-top: 0.9em;
}
.poly-guide dl.poly-terms dd {
    margin: 2px 0 0;
}
.poly-guide .poly-tips {
    margin: 0 0 1.4em 1.2em;
    padding: 0;
}
.poly-guide .poly-tips li {
    margin: 0 0 0.7em;
}
.poly-guide .poly-tips li strong {
    color: #fff;
}
.poly-guide .poly-note {
    margin: 2em 0 1.4em;
    padding: 16px 18px;
    border-left: 2px solid var(--primary, #8b0000);
    background: var(--bg-gray, #121212);
    font-size: 0.95rem;
    color: var(--text-muted, #aaa);
}
.poly-guide .poly-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 1.6em 0 0;
}
.poly-guide .poly-cta .btn {
    display: inline-block;
    text-decoration: none;
}
@media (max-width: 600px) {
    .poly-guide .poly-toc {
        grid-template-columns: 1fr;
    }
    .poly-guide .poly-type {
        padding: 18px 16px;
    }
}

/* City-page layout (crumbs, CTAs, FAQ, hub list, listing cards). */
.poly-city .post-crumbs-wrap {
    padding: 14px 0 0;
}
.poly-city .poly-cta-hero {
    justify-content: center;
    margin-top: 18px;
}
.poly-city .poly-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 1.4em 0 0;
}
.poly-city .poly-cta .btn {
    display: inline-block;
    text-decoration: none;
}
.poly-city .poly-faq-q {
    font-size: 1.1rem;
    margin: 1.4em 0 0.3em;
}
.poly-hub-list {
    list-style: none;
    margin: 0 0 1.6em;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 24px;
}
.poly-hub-list li {
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    border: 1px solid var(--border, #2a2a2a);
    background: var(--bg-light-gray, #161616);
}
.poly-hub-list .poly-hub-meta {
    color: var(--text-muted, #9a9a9a);
    font-size: 0.82rem;
    margin-top: 2px;
}
@media (max-width: 600px) {
    .poly-hub-list {
        grid-template-columns: 1fr;
    }
}

/* Recent listing cards on city pages (same look as the area pages). */
.poly-city-ads h2 {
    margin-top: 0;
}
.poly-city-ads .poly-city-ads-intro {
    color: var(--text-muted, #9a9a9a);
}
.poly-city-ads-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
}
.poly-city .city-ad-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    overflow: hidden;
}
.poly-city .city-ad-link {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    color: inherit;
    text-decoration: none;
}
.poly-city .city-ad-link:hover,
.poly-city .city-ad-link:focus {
    background: rgba(255,255,255,0.04);
}
.poly-city .city-ad-thumb {
    display: block;
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    background: #111;
    border: 1px solid rgba(255,255,255,0.12);
    overflow: hidden;
}
.poly-city .city-ad-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.poly-city .city-ad-thumb-empty {
    background: repeating-linear-gradient(135deg,#161616,#161616 8px,#1c1c1c 8px,#1c1c1c 16px);
}
.poly-city .city-ad-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.poly-city .city-ad-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.3;
}
.poly-city .city-ad-meta {
    font-size: 0.85rem;
    color: var(--text-muted, #9a9a9a);
}
.poly-city .city-ad-meta .category-tag {
    display: inline-block;
    margin-right: 8px;
    padding: 1px 8px;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
@media (max-width: 600px) {
    .poly-city .city-ad-thumb {
        width: 68px;
        height: 68px;
    }
    .poly-city .city-ad-title {
        font-size: 1.05rem;
    }
}

/* Buttons and cards inside the article column keep their own colors (the article link rule would otherwise turn them white/underlined). */
.legal-page .legal-body a.btn.primary {
    color: #000;
    text-decoration: none;
}
.legal-page .legal-body a.btn.outline {
    color: #fff;
    text-decoration: none;
}
.legal-page .legal-body a.city-ad-link {
    color: inherit;
    text-decoration: none;
}
.poly-city .legal-body a.city-ad-link .city-ad-title {
    text-decoration: none;
}
.poly-city .legal-body a.city-ad-link:hover .city-ad-title {
    text-decoration: underline;
}
.poly-cta .btn {
    text-align: center;
}
