/* guide.css — relocation / money-question guide pages (/florida-income-tax, /moving-from-new-york-to-miami …).
   Layered on preconstruction.css (tokens, nav, footer) + tower.css (crumbs, hero, sections, CTA). */

.tw-main { max-width: 960px; --gold-ink: #8a6a25; }
.gd-byline { font-size: 0.86rem; color: var(--text-muted); margin: 0.6rem 0 0; }
.gd-byline strong { color: var(--text); font-weight: 600; }

/* ── Quick answer ──────────────────────────────────────────────────── */
.gd-answer {
    margin: 1.4rem 0 0;
    padding: 1.25rem 1.4rem;
    background: var(--gold-soft);
    border: 1px solid rgba(201,167,88,0.45);
    border-radius: var(--radius);
    font-size: 1.05rem;
    line-height: 1.65;
}
.gd-answer p { margin: 0; max-width: 72ch; }
.gd-answer strong { color: var(--navy); }

/* ── At-a-glance strip (hairline band, not a card row) ─────────────── */
.gd-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin: 1.6rem 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.gd-kpi { padding: 1rem 1.25rem 1rem 0; }
.gd-kpi + .gd-kpi { border-left: 1px solid var(--border); padding-left: 1.25rem; }
.gd-kpi b {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    line-height: 1.1;
    color: var(--navy);
    letter-spacing: -0.01em;
}
.gd-kpi span { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; line-height: 1.45; }
@media (max-width: 640px) {
    .gd-kpis { grid-template-columns: 1fr; }
    .gd-kpi + .gd-kpi { border-left: 0; border-top: 1px solid var(--border); padding-left: 0; }
}

/* ── Table of contents ─────────────────────────────────────────────── */
.gd-toc { margin: 1.75rem 0 0; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fafafa; }
.gd-toc strong { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
.gd-toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.gd-toc li { font-size: 0.92rem; line-height: 1.7; break-inside: avoid; }
.gd-toc a { color: var(--navy); text-decoration: none; display: inline-block; padding: 0.15rem 0; }
.gd-toc a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 2px; }
.gd-toc a:hover { text-decoration: underline; }
@media (max-width: 640px) { .gd-toc ol { columns: 1; } }

/* ── Prose ─────────────────────────────────────────────────────────── */
.tw-section h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 1.5rem 0 0.5rem; }
.tw-section ul, .tw-section ol { line-height: 1.7; max-width: 68ch; padding-left: 1.3rem; }
.tw-section li { margin: 0.25rem 0; }
.tw-section a { color: var(--navy); text-decoration: underline; text-decoration-color: rgba(26,39,68,0.35); text-underline-offset: 2px; }
.tw-section a:hover { text-decoration-color: var(--navy); }
.gd-small { font-size: 0.84rem; color: var(--text-muted); line-height: 1.6; }

/* ── Tables ────────────────────────────────────────────────────────── */
.gd-table-wrap { overflow-x: auto; margin: 1rem 0 0; -webkit-overflow-scrolling: touch; }
.gd-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 520px; }
.gd-table th, .gd-table td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; vertical-align: top; }
.gd-table th:first-child, .gd-table td:first-child { text-align: left; white-space: normal; }
.gd-table thead th { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); border-bottom: 2px solid var(--navy); }
.gd-table tbody tr:hover { background: #fafafa; }
.gd-table .gd-fl { background: var(--gold-soft); font-weight: 700; color: var(--navy); }
.gd-table caption { caption-side: bottom; text-align: left; font-size: 0.8rem; color: var(--text-muted); padding: 0.6rem 0 0; line-height: 1.5; }

/* ── Callouts ──────────────────────────────────────────────────────── */
.gd-callout { margin: 1.25rem 0 0; padding: 1rem 1.2rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fafafa; }
.gd-callout p { margin: 0; }
.gd-callout p + p { margin-top: 0.6rem; }
.gd-callout.gd-warn { border-color: #f1d9a3; background: #fffbeb; }

/* ── Calculator ────────────────────────────────────────────────────── */
.gd-calc { margin: 1.25rem 0 0; padding: 1.4rem; background: var(--navy); color: #fff; border-radius: var(--radius); }
.gd-calc h3 { color: #fff; margin: 0 0 0.9rem; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; }
.gd-calc-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: flex-end; }
.gd-calc label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.8rem; color: rgba(255,255,255,0.8); }
.gd-calc input:focus-visible, .gd-calc select:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.gd-calc input, .gd-calc select { font: inherit; font-size: 1rem; padding: 0.55rem 0.7rem; border-radius: 6px; border: 1px solid rgba(255,255,255,0.3); background: #fff; color: var(--text); min-width: 180px; }
.gd-calc-out { margin-top: 1.1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem; }
.gd-calc-out div { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: 8px; padding: 0.75rem 0.85rem; }
.gd-calc-out b { display: block; font-size: 1.35rem; font-family: var(--font-heading); color: var(--gold); }
.gd-calc-out span { font-size: 0.78rem; color: rgba(255,255,255,0.78); }
.gd-calc-note { font-size: 0.8rem; color: rgba(255,255,255,0.78); margin: 0.9rem 0 0; line-height: 1.5; max-width: 80ch; }

/* ── Neighborhoods (editorial list, hairline rules, no cards) ─────── */
.gd-places { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 2.5rem; border-top: 1px solid var(--border); }
.gd-places li { padding: 1.1rem 0 1rem; border-bottom: 1px solid var(--border); }
.gd-places h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.gd-places h3 a { text-decoration: none; }
.gd-places h3 a:hover { text-decoration: underline; }
.gd-places p { margin: 0; font-size: 0.92rem; line-height: 1.62; max-width: 60ch; }
.gd-places .gd-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 0.4rem; }

/* ── Live listings strip ───────────────────────────────────────────── */
.gd-listings { margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.gd-card { display: block; text-decoration: none !important; color: inherit; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.18s cubic-bezier(0.22,1,0.36,1), box-shadow 0.18s; }
.gd-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.gd-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.gd-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--border-light); }
.gd-card-body { padding: 0.8rem 0.95rem 0.95rem; }
.gd-card-price { font-family: var(--font-heading); font-size: 1.2rem; color: var(--navy); font-weight: 600; }
.gd-card-stats { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.15rem; }
.gd-card-addr { font-size: 0.86rem; margin-top: 0.35rem; line-height: 1.4; }
.gd-card-city { font-size: 0.74rem; color: var(--gold-ink); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-top: 0.4rem; }
.gd-listings-empty { color: var(--text-muted); font-size: 0.9rem; }
.gd-more { margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gd-more a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.88rem; padding: 0 1rem; border: 1px solid var(--border); border-radius: 999px; text-decoration: none !important; color: var(--navy); background: #fff; transition: border-color 0.18s; }
.gd-more a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.gd-more a:hover { border-color: var(--navy); }

/* ── FAQ ───────────────────────────────────────────────────────────── */
.gd-faq details { border-bottom: 1px solid var(--border); padding: 0.85rem 0; }
.gd-faq summary { cursor: pointer; font-weight: 600; color: var(--navy); font-size: 1rem; list-style: none; position: relative; padding-right: 1.5rem; }
.gd-faq summary::-webkit-details-marker { display: none; }
.gd-faq summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; border-radius: 4px; }
.gd-faq summary::after { content: '+'; position: absolute; right: 0.2rem; top: 0; color: var(--gold-dark); font-weight: 400; }
.gd-faq details[open] summary::after { content: '\2013'; }
.gd-faq details p { margin: 0.6rem 0 0; font-size: 0.95rem; }

/* ── Sources ───────────────────────────────────────────────────────── */
.gd-sources { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; padding-left: 1.2rem; max-width: none; }
.gd-sources a { color: var(--text-muted); }

/* ── CTA tweaks ────────────────────────────────────────────────────── */
.tw-cta .gd-cta-name { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-top: 1rem; }

/* ── Motion ────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .gd-card, .gd-more a { transition: none; }
    .gd-card:hover { transform: none; }
}
