/* ============================================================
   VenueMax /guides -- design tokens + shared layout/components.
   Reused by every guide page (app/Views/guides/template.php) and
   the /guides index (app/Views/guides/index.php). Scoped under
   body.guide-page so nothing here leaks onto the rest of the site.
   ============================================================ */

:root {
    --pine: #24433A;
    --pine-deep: #172C26;
    --pine-fill: #24433A;
    --brass: #A57E2E;
    --paper: #F7F8F6;
    --surface: #FFFFFF;
    --mist: #DDE5E1;
    --ink: #1F2624;
    /* Secondary/muted text (breadcrumbs, byline, table headers, card
       meta). #4F5F57 clears 4.5:1 against --paper, --surface, and
       --mist alike; the flat #6b7280 gray it replaces only cleared
       --paper by a hair (4.54:1) and failed outright against --mist
       (3.77:1), in light mode -- before dark mode is even a factor. */
    --muted: #4F5F57;
    --danger: #B91C1C;
    --input-bg: #FFFFFF;
    --success-icon: #15803D;
    --btn-primary-hover: var(--pine-deep);
    --dialog-shadow: 0 24px 60px rgba(23, 44, 38, 0.25);
}

@media (prefers-color-scheme: dark) {
    body.guide-page:not([data-theme="light"]) {
        --paper: #141A18;
        --ink: #E6ECE9;
        --mist: #2A3531;
        --pine: #7FB39F;
        --surface: #1B2321;
        --muted: #9AA5A0;
        --danger: #F87171;
        --input-bg: #141A18;
        --success-icon: #4ADE80;
        --btn-primary-hover: #33604F;
        /* The plain dark drop-shadow above is nearly invisible against
           an already-dark page -- the dialog's --surface fill (#1B2321)
           reads as barely distinct from the dimmed backdrop behind it.
           Adds a crisp light ring plus a soft pine-tinted glow so the
           dialog's edge stays visible instead of washing into the page. */
        --dialog-shadow: 0 0 0 1px rgba(230, 236, 233, 0.1), 0 0 36px rgba(127, 179, 159, 0.18), 0 24px 60px rgba(0, 0, 0, 0.45);
    }
}
body.guide-page[data-theme="dark"] {
    --paper: #141A18;
    --ink: #E6ECE9;
    --mist: #2A3531;
    --pine: #7FB39F;
    --surface: #1B2321;
    --muted: #9AA5A0;
    --danger: #F87171;
    --input-bg: #141A18;
    --success-icon: #4ADE80;
    --btn-primary-hover: #33604F;
    --dialog-shadow: 0 0 0 1px rgba(230, 236, 233, 0.1), 0 0 36px rgba(127, 179, 159, 0.18), 0 24px 60px rgba(0, 0, 0, 0.45);
}

body.guide-page {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    /* Sticky footer: on short pages the footer sits at the window bottom. */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body.guide-page * { box-sizing: border-box; }

body.guide-page a {
    color: var(--pine);
}
body.guide-page a:focus-visible,
body.guide-page button:focus-visible,
body.guide-page input:focus-visible,
body.guide-page summary:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 2px;
}

/* ── Nav ─────────────────────────────────────────────────── */
.g-nav {
    background: var(--paper);
    border-bottom: 1px solid var(--mist);
}
.g-nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.g-brand {
    font-family: "Newsreader", Georgia, serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--pine);
    text-decoration: none;
    margin-right: auto;
}
.g-nav-links {
    display: flex;
    gap: 20px;
}
.g-nav-links a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
}
.g-nav-links a:hover { color: var(--pine); }
/* body.guide-page a's color rule (0,1,2) outranks a plain .g-nav-cta
   (0,1,0) on specificity alone regardless of source order -- this
   selector needs to match or beat that to actually win. */
body.guide-page a.g-nav-cta {
    background: var(--pine-fill);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: 8px;
    white-space: nowrap;
}
.g-nav-cta:hover { background: var(--pine-deep); }
@media (max-width: 640px) {
    .g-nav-links { display: none; }
}

/* ── Page shell ──────────────────────────────────────────── */
.g-main { padding: 32px 0 64px; }
.g-container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.g-container-narrow { max-width: 820px; }

.g-breadcrumb {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 18px;
}
.g-breadcrumb a { color: var(--muted); text-decoration: underline; }
.g-breadcrumb [aria-current="page"] { color: var(--ink); }

h1 {
    font-family: "Newsreader", Georgia, "Times New Roman", serif;
    font-weight: 600;
    font-size: 2.1rem;
    line-height: 1.1;
    margin: 0 0 12px;
    color: var(--ink);
}
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
}

.g-dek {
    font-family: "Newsreader", Georgia, serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--ink);
    max-width: 68ch;
    margin: 0 0 16px;
}

.g-byline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 28px;
}
.g-byline-photo {
    border-radius: 50%;
    object-fit: cover;
}
.g-byline-dot { color: var(--mist); }

/* ── TOC ─────────────────────────────────────────────────── */
.g-toc-mobile { display: none; margin-bottom: 24px; }
.g-toc-mobile summary {
    cursor: pointer;
    font-weight: 600;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--mist);
    border-radius: 8px;
    min-height: 48px;
    display: flex;
    align-items: center;
}
.g-toc-mobile ul {
    list-style: none;
    margin: 8px 0 0;
    padding: 12px 16px;
    border: 1px solid var(--mist);
    border-radius: 8px;
    background: var(--surface);
}
.g-toc-mobile li { margin-bottom: 8px; }
.g-toc-mobile a { text-decoration: none; font-size: 0.95rem; display: block; padding: 6px 0; min-height: 32px; }

@media (max-width: 1023px) {
    .g-toc-mobile { display: block; }
    .g-toc-desktop { display: none; }
}

.g-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
@media (min-width: 1024px) {
    .g-layout { grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
}

.g-toc-desktop {
    position: sticky;
    top: 24px;
}
.g-toc-title {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin: 0 0 10px;
}
.g-toc-desktop ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--mist); }
.g-toc-desktop li { margin: 0; }
.g-toc-desktop a {
    display: block;
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--muted);
    padding: 6px 0 6px 14px;
    border-left: 2px solid transparent;
    margin-left: -2px;
}
.g-toc-desktop a:hover { color: var(--ink); }
.g-toc-desktop a.is-active {
    color: var(--pine);
    border-left-color: var(--pine);
    font-weight: 600;
}
.g-toc-cta {
    display: block;
    margin-top: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pine);
    text-decoration: underline;
}

/* ── Article ─────────────────────────────────────────────── */
.g-article {
    max-width: 68ch;
    font-family: "Newsreader", Georgia, "Times New Roman", serif;
    font-size: 1.125rem;
    line-height: 1.65;
}
@media (min-width: 768px) {
    .g-article { font-size: 1.2rem; }
}
.g-article h2 {
    font-family: "Newsreader", Georgia, serif;
    font-weight: 600;
    font-size: 1.55rem;
    line-height: 1.2;
    margin: 2.2em 0 0.6em;
    color: var(--ink);
    scroll-margin-top: 20px;
}
@media (min-width: 768px) {
    .g-article h2 { font-size: 2rem; }
}
.g-article h3 {
    font-family: "Newsreader", Georgia, serif;
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.3;
    margin: 1.6em 0 0.5em;
}
@media (min-width: 768px) {
    .g-article h3 { font-size: 1.35rem; }
}
.g-article p { margin: 0 0 1.1em; }
.g-article a { text-decoration: underline; }

.short-answer {
    background: var(--mist);
    border-left: 4px solid var(--brass);
    border-radius: 6px;
    padding: 16px 20px;
    margin: 1.6em 0;
}
.short-answer p { margin: 0; font-size: 1.05rem; }

.table-wrap { overflow-x: auto; margin: 1.4em 0; }
.g-article table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Instrument Sans", system-ui, sans-serif;
    font-size: 0.95rem;
}
.g-article caption {
    text-align: left;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 8px;
    caption-side: top;
}
.g-article th, .g-article td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--mist);
}
.g-article thead th {
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--muted);
}
.g-article tbody th { font-weight: 600; }

/* "After the booking" column gets a faint mist tint so it reads as the
   side the venue should own. Solid var(--mist) rather than a translucent
   rgba(221,229,225,...) literal, since that hardcoded light tint never
   changed for dark mode -- it sat as a pale wash over the dark page with
   near-illegible text. var(--mist) already flips to a dark tint there. */
.table-before-after th:last-child,
.table-before-after td:last-child {
    background: var(--mist);
}

/* ── "Missing" blocks (the six things sections) ─────────────
   Plain text, no cards/icons/shadows per the design spec -- the only
   visual separator is the pine rule on the "With VenueMax" line, so a
   skimmer can read just those six lines and get the pitch. */
.missing-block p { margin: 0 0 0.7em; }
.missing-with-venuemax {
    border-left: 3px solid var(--pine);
    padding-left: 14px;
    font-weight: 500;
}

/* ── 5-step flow ─────────────────────────────────────────── */
.step-list {
    padding-left: 1.3em;
    margin: 1.2em 0;
}
.step-list li {
    margin-bottom: 0.9em;
    padding-left: 4px;
}
.step-list li::marker {
    color: var(--brass);
    font-weight: 600;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    font-family: "Instrument Sans", system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
}
.btn-primary { background: var(--pine-fill); color: #fff; }
.btn-primary:hover { background: var(--btn-primary-hover); }
.btn-secondary {
    background: transparent;
    color: var(--pine);
    text-decoration: underline;
    min-height: auto;
    padding: 0;
}

/* ── Calculator ──────────────────────────────────────────── */
.calc-panel {
    border: 1px solid var(--mist);
    border-radius: 10px;
    padding: 24px;
    margin: 1.6em 0;
    background: var(--surface);
    font-family: "Instrument Sans", system-ui, sans-serif;
}
.calc-inputs { margin-bottom: 20px; }
.calc-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 0;
    border-bottom: 1px solid var(--mist);
}
.calc-row-last { border-bottom: none; }
.calc-row label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.calc-row input {
    border: none;
    border-bottom: 2px solid var(--mist);
    background: transparent;
    font-family: "Instrument Sans", system-ui, sans-serif;
    font-size: 1.1rem;
    color: var(--ink);
    padding: 6px 2px;
    max-width: 200px;
}
.calc-row input:focus {
    border-bottom-color: var(--brass);
    outline: none;
}
.calc-results {
    background: var(--paper);
    border: 1px solid var(--mist);
    border-radius: 8px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.calc-result { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc-result-label { font-size: 0.9rem; color: var(--ink); max-width: 60%; }
.calc-result-value {
    font-family: "Newsreader", Georgia, serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--brass);
    transition: opacity 0.15s ease;
}
.calc-result-highlight { padding-top: 10px; border-top: 1px dashed var(--mist); }
.calc-caption { font-size: 0.88rem; color: var(--muted); margin: 14px 0 0; }
.calc-noscript { font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) {
    .calc-result-value { transition: none; }
}

/* ── Stat row (four-up stat strip) ───────────────────────────
   No cards/icons/shadows -- thin mist rules are the only separator,
   matching the rest of the design system's plain-text convention. */
.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 1.6em 0;
    border-top: 1px solid var(--mist);
}
.stat-row-item {
    padding: 18px 16px;
    border-right: 1px solid var(--mist);
    border-bottom: 1px solid var(--mist);
}
.stat-row-item:last-child { border-right: none; }
.stat-row-value {
    display: block;
    font-family: "Newsreader", Georgia, serif;
    font-weight: 600;
    font-size: 1.9rem;
    line-height: 1.1;
    color: var(--pine);
}
.stat-row-label {
    display: block;
    font-family: "Instrument Sans", system-ui, sans-serif;
    font-size: 0.86rem;
    color: var(--ink);
    margin-top: 6px;
}
.stat-row-source { display: inline-block; font-size: 0.76rem; margin-top: 4px; }
@media (max-width: 640px) {
    .stat-row { grid-template-columns: repeat(2, 1fr); }
    .stat-row-item:nth-child(2n) { border-right: none; }
}

/* ── Copy-and-paste template blocks ──────────────────────────
   The signature element for the reviews guide: a message-shaped block
   with a label, a Copy button, and brass-underlined [placeholder] text.
   Generic (not scoped to one guide) since any future guide with its own
   copy-paste scripts can reuse this wholesale. */
.template-block { margin: 1.6em 0; }
.template-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.template-block-label {
    font-family: "Instrument Sans", system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
}
.template-block-body {
    margin: 0;
    background: var(--mist);
    border-radius: 6px;
    padding: 18px 20px;
    font-family: "Instrument Sans", system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    white-space: pre-wrap;
}
.tpl-placeholder {
    text-decoration: underline;
    text-decoration-color: var(--brass);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}
.template-copy-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 6px;
    border: 1px solid var(--brass);
    background: var(--surface);
    /* Text is --pine, not --brass -- brass-on-surface only reaches
       3.73:1 (light) at this text size, under the 4.5:1 AA minimum for
       small text (same brass-as-text failure already fixed elsewhere on
       this page, e.g. .g-guide-card-meta). Brass stays on the border,
       which only needs the 3:1 non-text minimum and clears it (3.73/
       4.3:1) in both modes. */
    color: var(--pine);
    font-family: "Instrument Sans", system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.template-copy-btn:hover { background: var(--mist); }
.template-copy-btn.is-copied { border-color: var(--pine); }
@media (max-width: 640px) {
    .template-copy-btn { min-height: 48px; padding: 0 18px; }
}

/* ── Do / don't table ─────────────────────────────────────────
   Reuses the generic .g-article table/th/td rules (mist row lines) --
   the only override is the "Not allowed" header, which the design spec
   keeps calm (--ink) rather than a red danger color. */
.table-do-dont thead th { color: var(--ink); }

/* ── FAQ ─────────────────────────────────────────────────── */
.g-faq { font-family: "Instrument Sans", system-ui, sans-serif; }
.g-faq-item {
    border-bottom: 1px solid var(--mist);
    padding: 16px 0;
}
.g-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.02rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--ink);
    list-style: none;
}
.g-faq-item summary::-webkit-details-marker { display: none; }
/* Points left when closed, turns to point down when open. Fixed box so
   nothing shifts when Font Awesome (loaded without blocking) arrives. */
.g-faq-arrow {
    flex: none;
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--pine);
    transition: transform 0.2s ease;
}
.g-faq-item[open] .g-faq-arrow { transform: rotate(-90deg); }
@media (prefers-reduced-motion: reduce) { .g-faq-arrow { transition: none; } }
.g-faq-item p { font-size: 0.98rem; line-height: 1.6; margin: 10px 0 0; color: var(--ink); }

/* ── Email opt-in block ─────────────────────────────────────
   Deliberately distinct from .cta-block (the product trial/demo CTA
   below) -- --surface background + --mist border rather than a solid
   --pine-fill panel, so a reader doesn't mistake "get these on email"
   for "start a trial." ─────────────────────────────────────── */
.email-optin-block {
    background: var(--surface);
    border: 1px solid var(--mist);
    border-radius: 12px;
    padding: 28px 32px;
    margin: 2em 0;
    text-align: center;
}
.email-optin-block h3 {
    font-family: "Newsreader", Georgia, serif;
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0 0 8px;
    color: var(--ink);
}
.email-optin-block p { margin: 0 0 18px; font-size: .98rem; color: var(--ink); font-family: "Instrument Sans", system-ui, sans-serif; }
.email-optin-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 440px;
    margin: 0 auto;
}
.email-optin-form input[type="email"] {
    flex: 1 1 220px;
    min-width: 0;
    border: 1px solid var(--mist);
    border-radius: 8px;
    padding: 12px 14px;
    font-family: "Instrument Sans", system-ui, sans-serif;
    font-size: 1rem;
    color: var(--ink);
    background: var(--input-bg);
}
.email-optin-form input[type="email"]::placeholder { color: var(--muted); opacity: 1; }
.email-optin-form input[type="email"]:focus { border-color: var(--brass); outline: none; }
.email-optin-form button { flex: 0 0 auto; }
/* Decoy field real visitors never see -- kept in normal layout flow
   (not display:none) since some bots skip fields hidden that way. */
.email-optin-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.email-optin-note { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.email-optin-success, .email-optin-error { font-size: .92rem; margin: 12px 0 0; font-weight: 600; }
.email-optin-success { color: var(--pine); }
.email-optin-success-icon { color: var(--success-icon); margin-right: 6px; }
.email-optin-error { color: var(--danger); }

/* ── Follow-up timeline (tours guide) ────────────────────────
   Horizontal on desktop, vertical on mobile; a thin ink rule connects
   the points. Real ordered sequence, so it's an <ol>. */
.followup-timeline {
    list-style: none;
    margin: 1.6em 0;
    padding: 0;
    display: grid;
    gap: 0;
}
.followup-timeline li {
    position: relative;
    padding: 0 0 18px 26px;
    border-left: 1px solid var(--ink);
    margin-left: 6px;
}
.followup-timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.followup-timeline li::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 4px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--brass);
}
.followup-day {
    display: block;
    font-family: "Instrument Sans", system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--brass);
}
.followup-purpose {
    display: block;
    font-family: "Instrument Sans", system-ui, sans-serif;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--ink);
}
@media (min-width: 768px) {
    .followup-timeline { grid-template-columns: repeat(5, 1fr); }
    .followup-timeline li {
        border-left: none;
        border-top: 1px solid var(--ink);
        margin: 6px 0 0;
        padding: 18px 12px 0 0;
    }
    .followup-timeline li:last-child { border-top-color: transparent; }
    .followup-timeline li::before { left: 0; top: -6px; }
}

/* ── Objections table (tours guide) ──────────────────────────
   Inherits .g-article table's mist row rules; no zebra striping. */
.table-objections td:first-child { width: 36%; font-weight: 600; }

/* ── Lead magnet box ─────────────────────────────────────────
   The tours guide's conversion point (app/Views/guides/partials/
   leadmagnet-form.php). Copy left, form right; stacks under 768px. */
.leadmagnet-box {
    background: var(--mist);
    border-top: 4px solid var(--pine);
    border-radius: 8px;
    padding: 28px;
    margin: 2em 0;
    display: grid;
    gap: 20px;
    scroll-margin-top: 24px;
}
@media (min-width: 768px) {
    .leadmagnet-box { grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
}
.leadmagnet-box h3 {
    font-family: "Newsreader", Georgia, serif;
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0 0 8px;
    color: var(--ink);
}
.leadmagnet-box p { font-family: "Instrument Sans", system-ui, sans-serif; font-size: 0.96rem; margin: 0 0 10px; color: var(--ink); }
.leadmagnet-inside { color: var(--ink); }
.leadmagnet-box .email-optin-form {
    display: grid;
    gap: 12px;
    max-width: none;
    margin: 0;
    justify-content: stretch;
}
.leadmagnet-field { display: grid; gap: 4px; }
.leadmagnet-field label { font-family: "Instrument Sans", system-ui, sans-serif; font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.leadmagnet-box .leadmagnet-field input {
    border: 1px solid var(--muted);
    border-radius: 8px;
    padding: 10px 12px;
    font-family: "Instrument Sans", system-ui, sans-serif;
    font-size: 1rem;
    color: var(--ink);
    background: var(--input-bg);
    width: 100%;
    box-sizing: border-box;
}
.leadmagnet-box .leadmagnet-field input:focus { border-color: var(--brass); outline: 2px solid var(--brass); outline-offset: 1px; }
.leadmagnet-box .email-optin-form button { justify-self: start; }
.leadmagnet-box .email-optin-note { margin-top: 10px; }
.leadmagnet-box-compact { padding: 22px; }
.leadmagnet-box-compact h3 { font-size: 1.15rem; }

/* ── CTA block ───────────────────────────────────────────── */
.cta-block {
    background: var(--pine-fill);
    color: #fff;
    border-radius: 12px;
    padding: 32px;
    margin: 2em 0;
}
.cta-block h3 {
    font-family: "Newsreader", Georgia, serif;
    font-weight: 600;
    font-size: 1.4rem;
    margin: 0 0 8px;
    color: #fff;
}
.cta-block p { color: rgba(255, 255, 255, 0.88); margin: 0 0 20px; font-family: "Instrument Sans", system-ui, sans-serif; font-size: 1rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
/* White-on-pine-fill keeps the button visible against the block's
   always-dark background (a plain .btn-primary here would be pine-on-pine)
   while staying well clear of AA (10.83:1) -- the brass fill this replaced
   only hit 3.73:1 with white text, below the 4.5:1 small-text minimum.
   Text uses --pine-fill (not --pine) so it stays dark-on-white in dark
   mode too, since --pine lightens there for legibility as body text. */
.cta-block .btn-primary { background: #fff; color: var(--pine-fill); }
.cta-block .btn-primary:hover { background: rgba(255, 255, 255, 0.85); }
.cta-block .btn-secondary { color: #fff; }
/* Default focus ring (brass) only reaches 2.9:1 on this pine background,
   under the 3:1 non-text minimum (WCAG 1.4.11) -- use white instead. */
.cta-block a:focus-visible,
.cta-block button:focus-visible {
    outline-color: #fff;
}

/* ── Author box / related / footnote ────────────────────── */
.g-author-box {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin: 2.4em 0;
    padding-top: 1.6em;
    border-top: 1px solid var(--mist);
    font-family: "Instrument Sans", system-ui, sans-serif;
}
.g-author-box img { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.g-author-name { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); margin: 0 0 4px; }
.g-author-box p:not(.g-author-name) { font-size: 0.98rem; margin: 0; }

.g-related { font-family: "Instrument Sans", system-ui, sans-serif; margin: 1.6em 0; }
.g-related-title { font-weight: 600; margin: 0 0 8px; }
.g-related ul { margin: 0; padding-left: 20px; }

.g-footnote {
    font-family: "Instrument Sans", system-ui, sans-serif;
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 2em;
}

/* ── Sources list (numbered citations) ───────────────────── */
.g-sources {
    font-family: "Instrument Sans", system-ui, sans-serif;
    font-size: 0.9rem;
    color: var(--muted);
    margin: 1.6em 0;
    padding-left: 20px;
}
.g-sources li { margin-bottom: 6px; }

/* ── /guides index cards ─────────────────────────────────── */
.g-guide-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 28px;
}
@media (min-width: 640px) {
    .g-guide-grid { grid-template-columns: repeat(2, 1fr); }
}
.g-guide-card {
    display: block;
    border: 1px solid var(--mist);
    border-radius: 10px;
    padding: 22px;
    text-decoration: none;
    color: var(--ink);
    background: var(--surface);
    transition: border-color 0.15s ease;
}
.g-guide-card:hover { border-color: var(--pine); }
.g-guide-card h2 {
    font-family: "Newsreader", Georgia, serif;
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0 0 8px;
    line-height: 1.25;
}
.g-guide-card p {
    font-family: "Instrument Sans", system-ui, sans-serif;
    font-size: 0.95rem;
    color: var(--muted);
    margin: 0 0 12px;
}
.g-guide-card-meta {
    /* brass only reaches 3.51:1 at this size, under the 4.5:1 small-text
       minimum -- pine clears it at 10.17:1. */
    font-family: "Instrument Sans", system-ui, sans-serif;
    font-size: 0.82rem;
    color: var(--pine);
    font-weight: 600;
}

/* ── Footer ──────────────────────────────────────────────── */
.g-footer {
    margin-top: auto;
    background: var(--pine-deep);
    padding: 28px 0;
}
.g-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 12px 24px;
    flex-wrap: wrap;
}
.g-footer-copy {
    margin: 16px 0 0;
    padding: 0 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-family: "Instrument Sans", system-ui, sans-serif;
    font-size: 0.82rem;
}
/* body.guide-page prefix: outranks the body.guide-page a link color,
   which otherwise paints these pine on the pine-deep footer. */
body.guide-page .g-footer-inner a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-family: "Instrument Sans", system-ui, sans-serif;
    font-size: 0.9rem;
}
body.guide-page .g-footer-inner a:hover { color: #fff; }

/* ── Start-trial dialog ──────────────────────────────────── */
.g-dialog {
    border: none;
    border-radius: 12px;
    padding: 0;
    max-width: 420px;
    width: calc(100% - 40px);
    box-shadow: var(--dialog-shadow);
    background: var(--surface);
    color: var(--ink);
}
.g-dialog::backdrop { background: rgba(23, 44, 38, 0.55); }
.g-dialog-form, .g-dialog-confirmed { padding: 28px; font-family: "Instrument Sans", system-ui, sans-serif; }
.g-dialog-form h2, .g-dialog-confirmed h2 {
    font-family: "Newsreader", Georgia, serif;
    font-weight: 600;
    font-size: 1.4rem;
    margin: 0 0 8px;
    color: var(--ink);
}
.g-dialog-form p, .g-dialog-confirmed p { margin: 0 0 18px; font-size: 0.95rem; color: var(--ink); }
.g-dialog-form label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; }
.g-dialog-form input[type="email"] {
    width: 100%;
    border: 1px solid var(--mist);
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    margin-bottom: 8px;
    min-height: 48px;
    background: var(--surface);
    color: var(--ink);
}
.g-dialog-form input[type="email"]:focus { outline: 2px solid var(--brass); outline-offset: 2px; border-color: var(--brass); }
.g-hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.g-dialog-message { font-size: 0.88rem; margin: 4px 0 12px !important; }
.g-dialog-message.is-error { color: var(--danger); }
.g-dialog-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.g-dialog-actions .btn { flex: 1; }

/* ── COI guide ───────────────────────────────────────────────
   Disclaimer callout: quiet on purpose -- mist border, no fill. */
.g-disclaimer {
    border: 1px solid var(--mist);
    border-radius: 6px;
    padding: 12px 16px;
    font-family: "Instrument Sans", system-ui, sans-serif;
    font-size: 0.92rem;
    color: var(--muted);
}

/* Annotated certificate: a simplified drawing in HTML (not the ACORD
   layout), with numbered brass markers that jump to the checklist. */
.coi-figure { margin: 1.6em 0 1.8em; font-family: "Instrument Sans", system-ui, sans-serif; }
.coi-doc {
    background: var(--surface);
    border: 1px solid var(--mist);
    border-radius: 8px;
    padding: 18px;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(23, 44, 38, 0.06);
}
.coi-doc-title {
    margin: 0 0 4px !important;
    font-family: "Newsreader", Georgia, serif;
    font-weight: 600;
    font-size: 1.1rem;
}
.coi-doc-note { margin: 0 0 12px !important; font-size: 0.72rem; color: var(--muted); }
.coi-doc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.coi-doc-box {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1px;
    border: 1px solid var(--mist);
    border-radius: 4px;
    padding: 8px 10px;
    margin-bottom: 10px;
}
.coi-doc-row .coi-doc-box { margin-bottom: 0; }
.coi-doc-label { font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.coi-doc-table-wrap { overflow-x: auto; margin-bottom: 10px; }
.g-article .coi-doc-table { font-size: 0.76rem; min-width: 460px; }
.g-article .coi-doc-table th, .g-article .coi-doc-table td { padding: 6px 8px; vertical-align: top; }
.g-article .coi-doc-table thead th { font-size: 0.66rem; white-space: nowrap; }
.coi-doc-table td.coi-y { font-weight: 600; }
/* The areas to check get a brass outline, so the markers read as pointing at something. */
.coi-hot { outline: 2px solid var(--brass); outline-offset: -2px; border-radius: 4px; }
.coi-doc-table th.coi-hot { position: relative; padding-left: 30px; }
.coi-marker {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    /* A deeper brass than --brass so the white numeral clears 4.5:1. */
    background: #8A6824;
    color: #fff !important;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 0 0 2px var(--surface);
}
.coi-doc-table th .coi-marker { top: 50%; left: 4px; right: auto; transform: translateY(-50%); }
.coi-marker:hover { background: var(--pine-deep); }
.coi-figure figcaption { margin-top: 8px; font-size: 0.82rem; color: var(--muted); }
.coi-figure figcaption #coiFigureDesc {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.coi-key {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 10px 0 0;
    padding-left: 1.3em;
    font-size: 0.9rem;
}
.coi-key li::marker { color: #8A6824; font-weight: 600; }
@media (max-width: 640px) {
    .coi-doc { padding: 14px; }
    .coi-doc-row { grid-template-columns: 1fr; }
    .coi-key { display: block; }
    .coi-key li { margin-bottom: 4px; }
    /* Bigger tap targets on phones. */
    .coi-marker { width: 30px; height: 30px; }
    .coi-doc-table th.coi-hot { padding-left: 38px; }
}

/* The five checks: numbered, key phrase in bold; a marker tap lands here. */
.coi-checklist { padding-left: 1.4em; }
.coi-checklist li { margin-bottom: 0.8em; scroll-margin-top: 20px; }
.coi-checklist li::marker { font-family: "Instrument Sans", system-ui, sans-serif; font-weight: 600; color: var(--pine); }
.coi-checklist li:target { background: var(--mist); border-radius: 4px; box-shadow: 0 0 0 6px var(--mist); }

.g-article .table-coi-vendors { min-width: 600px; }
.table-coi-vendors tbody th { min-width: 160px; }
/* A grid item defaults to min-width:auto, so a wide scrolling table inside
   (the COI drawing's) would stretch the whole article past a phone screen. */
.g-layout > .g-article { min-width: 0; }
.coi-key { list-style-position: inside; padding-left: 0; }

/* After a lead-magnet signup: the next step, a free trial. */
.leadmagnet-next { margin-top: 14px; }
.leadmagnet-next[hidden] { display: none; }
.leadmagnet-next-title { margin: 0 0 8px !important; font-weight: 600; }
/* Beats the article's link color/underline (body.guide-page a, .g-article a). */
body.guide-page .leadmagnet-next .btn-primary { color: #fff; text-decoration: none; padding: 10px 22px; text-align: center; line-height: 1.3; }

/* ── Payment timeline (payments guide) ───────────────────────
   The tours guide's .followup-timeline with six points instead of five. */
@media (min-width: 768px) {
    .payment-timeline { grid-template-columns: repeat(6, 1fr); }
}

/* ── Payment schedule builder (payments guide) ───────────────
   The calculator panel's ruled rows and underlined inputs, two columns
   wide on larger screens, with a dated table for its result. */
@media (min-width: 640px) {
    .schedule-builder-inputs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
}
.calc-row input[type="date"] { color-scheme: light dark; min-height: 40px; }
.calc-select { position: relative; display: inline-block; max-width: 260px; }
.calc-select select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--mist);
    border-radius: 0;
    background: transparent;
    font-family: "Instrument Sans", system-ui, sans-serif;
    font-size: 1.1rem;
    color: var(--ink);
    padding: 6px 28px 6px 2px;
    cursor: pointer;
}
.calc-select select:focus { border-bottom-color: var(--brass); outline: none; }
.calc-select select option { background: var(--surface); color: var(--ink); }
.calc-select i {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--muted);
    pointer-events: none;
}
body.guide-page select:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.schedule-builder-results {
    background: var(--paper);
    border: 1px solid var(--mist);
    border-radius: 8px;
    padding: 4px 6px;
}
.schedule-builder-results .table-wrap { margin: 0; }
.g-article .table-schedule { min-width: 480px; }
.g-article .table-schedule th, .g-article .table-schedule td { white-space: nowrap; }
.table-schedule tbody tr:last-child th,
.table-schedule tbody tr:last-child td { border-bottom: none; }
.g-article .table-schedule .num { text-align: right; white-space: nowrap; }
.table-schedule td.num {
    font-family: "Newsreader", Georgia, serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--brass);
}
.schedule-builder-message { margin: 0 !important; padding: 14px 12px; font-size: 0.98rem; }
.schedule-builder-actions { margin-top: 14px; }
.table-schedule[hidden],
.schedule-builder-message[hidden],
.schedule-builder-actions[hidden] { display: none; }
