/* 2026-12-01 W4 visual polish (MIR-8377, owner brief 2.D: "typography hierarchy, spacing rhythm, hero framing, card polish,
   CTA contrast and mobile ergonomics" across /, /waterway-map/, /cape-coral-flood-zones/, /buy/, /sell/, /relocate/).
   Last stylesheet on those pages (inc/gen6-polish-1201.php prints it at the end of <head>, outside the perf bundle).
   Every rule is scoped to body.g6p plus the page key class the same file adds, so no other page moves.
   Punch list and before/after: artifacts/browser_shots/20261201_mt_site_visual_3dmap/work/REPORT_W4_POLISH.md.
   Tokens only. The navy below is the logo navy the theme already uses for AA text (functions.php g6-launch-aa); no gold,
   no new colours, flood colours untouched (W1/W6 own them). */

body.g6p {
  --g6p-ink: var(--ink-900, #095e93);
  --g6p-text: #24384f;          /* the body text colour the relocate and buy sheets already use */
  --g6p-meta: #4f6378;          /* --g6-slate family at AA on paper and mist */
  --g6p-line: var(--g6-line, #dbe8f2);
}

/* ---------- Shared: text links that measured under 4.5:1 (rule 7) and inline links under 44px (rule 8) ---------- */
html body.g6p .g6-city-textlink,
html body.g6p-floodzones .ga-sec p a,
html body.g6p-floodzones .ga-sec li a,
html body.g6p-home .g6-faq-a a,
html body.g6p-home .g6ps-join a {
  color: var(--g6p-ink) !important;
  text-decoration-color: currentColor;
}
html body.g6p .g6-city-textlink {
  display: inline-flex !important; align-items: center; min-height: 44px; font-size: 15px !important;
}

/* ---------- Shared: lead-flow form (buy, sell, relocate, flood zones): the "Buying / Change" pill was 36px on desktop ---------- */
html body.g6p .g6lf-pill { min-height: 44px !important; }
html body.g6p .g6l-card-foot a { display: inline-flex; align-items: center; min-height: 44px; }
html body.g6p .g6lf-count { font-size: 13px !important; }

/* ---------- Shared: review cards and proof rails meta under the 13px floor (rule 5) ---------- */
html body.g6p .g6rc-who span,
html body.g6p .g6rc-foot,
html body.g6p .g6rc-foot span,
html body.g6p .g6rc-foot a,
html body.g6p .g6l-rail-note,
html body.g6p .g6l-pf-rail figcaption,
html body.g6p .g6rs-plat { font-size: 13px !important; }
html body.g6p .g6rc-foot a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Shared: journey line (buy, sell). "You" chip measured 3.98:1 at 14px (rule 7) ---------- */
html body.g6p [data-journey-line] li[data-who="you"] .g6-journey-chip,
html body.g6p .g6-journey--line .g6-journey-stop[data-who="you"] .g6-journey-chip,
html body.g6p .g6-journey-of { color: var(--g6p-ink) !important; }

/* =====================================================================================================================
   HOME
   ===================================================================================================================== */
/* Help cards: the "What you get" rows were 14.5px body (rule 5) */
html body.g6p-home .g6-help-list li,
html body.g6p-home .g6-help-list li span { font-size: 16px !important; line-height: 1.55 !important; }
/* Fold strip reviewer line 12.5px -> 13px meta floor */
html body.g6p-home .g6-sr-who,
html body.g6p-home .g6-sr-who a,
html body.g6p-home .g6-sr-role { font-size: 13px !important; }
/* Closing-day credit and team faces captions 12px -> 13px */
html body.g6p-home .g6ps-credit,
html body.g6p-home .g6ps-credit a,
html body.g6p-home .g6ps-faces span { font-size: 13px !important; }
html body.g6p-home .g6ps-credit { text-wrap: balance; }
/* IDX attribution under the listing cards was 10.2px */
html body.g6p-home .ms-mls-attrib,
html body.g6p-home .ms-mls-attrib__broker { font-size: 13px !important; line-height: 1.5 !important; }
/* Listing cards: city line 12px and the "See more" hint 11.2px -> 13px */
html body.g6p-home .ms-listing-loc,
html body.g6p-home .ms-gatehint,
html body.g6p-home .ms-card-courtesy { font-size: 13px !important; }
/* Film carousel dots: 24px dots whose invisible hit area (gen6-punch-video.css ::before) was 36px wide and overlapped the
   next dot. Space the dots 20px apart and grow the hit area to a full 44 x 44 around each one (rule 8). The dot is unchanged. */
html body.g6p-home .g6pv .g6pv-dots { gap: 20px !important; margin-top: 14px; }
html body.g6p-home .g6pv .g6pv-dots button::before { inset: -10px !important; }
/* Story tool links under the address chapter were 24px tall */
html body.g6p-home .g6-story-tools a { display: inline-flex; align-items: center; min-height: 44px; }
/* Explorer copy on phones: the paragraph and the list read as one block with even spacing */
@media (max-width: 700px) {
  html body.g6p-home .g6-explorer .g6-explorer-copy > p:not(.g6-eyebrow):not(.g6-explorer-all) { font-size: 16px; line-height: 1.6; }
  html body.g6p-home .g6-explorer-all a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* =====================================================================================================================
   BUY
   ===================================================================================================================== */
/* Saved-search cards: subtitle 12.5px and the "Live search" tag 11px (rule 5) */
html body.g6p-buy .g6pb-text small { font-size: 13.5px !important; line-height: 1.4 !important; }
html body.g6p-buy .g6pb-live { font-size: 13px !important; }
/* "How we work" cards body 15px -> 16px */
html body.g6p-buy .g6pb-how-card p { font-size: 16px !important; line-height: 1.6 !important; }
/* Property readout sample: fact labels 10.9px, tag 11.2px, note 12.5px (rule 5) */
html body.g6p-buy .g6b-readout-facts li span,
html body.g6p-buy .g6b-readout-tag,
html body.g6p-buy .g6b-readout-note { font-size: 13px !important; }
html body.g6p-buy .g6b-readout-note { line-height: 1.5 !important; }
html body.g6p-buy .g6b-readout + figcaption,
html body.g6p-buy figure.g6b-readout > figcaption { font-size: 14px !important; }
/* Package rows: the section labels ("Showings", "The checks", "Cost") 12px -> 13px, figure captions to 14px */
html body.g6p-buy .g6s-part { font-size: 13px !important; letter-spacing: .1em; }
html body.g6p-buy .g6s-shot figcaption { font-size: 14px !important; line-height: 1.5; }
html body.g6p-buy .g6s-ruled li span,
html body.g6p-buy .g6s-checks li { font-size: 16px !important; line-height: 1.5; }
/* Hero founder line and form subtitle 14px -> 16px (W8 2026-12-02, R1 item 4: hero explanations are body text, 16px floor) */
html body.g6p-buy .g6l-founder span,
html body.g6p-buy .form-subtitle { font-size: 16px !important; line-height: 1.55 !important; }
/* Journey stop 2, "Get pre-qualified" (W2): the sample checklist sits in the same paper sheet as stop 1's plan.
   Two lines of the mini list wrap on a phone; keep them as rows with one label per line and the tick line on its own. */
html body.g6p-buy .g6m-prequal .g6m-mini { display: grid !important; gap: 10px !important; grid-template-columns: 1fr !important; }
html body.g6p-buy .g6m-prequal .g6m-mini > div { display: grid !important; gap: 2px; padding: 10px 12px; border: 1px solid var(--g6p-line); border-radius: 12px; background: #fff; }
html body.g6p-buy .g6m-prequal .g6m-mini b { font-size: 16px; color: var(--g6p-ink); }
html body.g6p-buy .g6m-prequal .g6m-mini span { font-size: 16px; line-height: 1.45; color: var(--g6p-meta); }
html body.g6p-buy .g6m-prequal .g6m-sent { margin-top: 12px !important; }

/* =====================================================================================================================
   SELL
   ===================================================================================================================== */
html body.g6p-sell .g6l-founder span,
html body.g6p-sell .form-subtitle,
html body.g6p-sell .g6lf-help { font-size: 16px !important; line-height: 1.55 !important; }
/* 3-P system: tags, pills, chart axis, reel labels and "Included" ticks under 13px (rule 5) */
html body.g6p-sell .p3-tag,
html body.g6p-sell .p3-card-title,
html body.g6p-sell .p3-axis span,
html body.g6p-sell .p3-reel-kind,
html body.g6p-sell .p3-tab-check,
html body.g6p-sell .p3-prep-check { font-size: 13px !important; }
html body.g6p-sell .p3-pill { font-size: 12px !important; color: var(--g6p-ink) !important; }
/* Presentation cards: body 14.5px (13.5px on a phone) -> 16px */
html body.g6p-sell .p3-prep-card p { font-size: 16px !important; line-height: 1.55 !important; }
/* Pricing chart comp dots were 34px on desktop (rule 8) */
html body.g6p-sell #g6-sell-p-pricing button { min-width: 44px !important; min-height: 44px !important; }
@media (max-width: 700px) {
  /* Four cramped cards in two columns (13.5px text, 6 to 7 lines each) become ONE typeset checklist: icon left, the
     title and its line right, hairlines between, the tick under the line. Same markup, no wall of boxes (rule 6). */
  html body.g6p-sell .p3-prep { grid-template-columns: 1fr !important; gap: 0 !important; border-top: 1px solid var(--g6p-line); }
  html body.g6p-sell .p3-prep-card {
    display: grid !important; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-items: start;
    padding: 16px 2px !important; border: 0 !important; border-bottom: 1px solid var(--g6p-line) !important; border-radius: 0 !important;
    background: none !important; box-shadow: none !important;
  }
  html body.g6p-sell .p3-prep-ic { grid-row: 1 / span 3; width: 44px !important; height: 44px !important; border-radius: 12px !important; }
  html body.g6p-sell .p3-prep-ic svg { width: 22px; height: 22px; }
  html body.g6p-sell .p3-prep-card h4 { grid-column: 2; margin: 0 !important; font-size: 22px !important; line-height: 1.15 !important; }
  html body.g6p-sell .p3-prep-card p { grid-column: 2; }
  html body.g6p-sell .p3-prep-check { grid-column: 2; padding-top: 2px !important; }
}

/* =====================================================================================================================
   RELOCATE
   ===================================================================================================================== */
/* Body text 15.5px across every chapter -> 16px, line length held to about 70 characters (rule 5; bar rule 7) */
html body.g6p-relocate .g6rr-levers p,
html body.g6p-relocate .g6rr-ruled p,
html body.g6p-relocate .g6rr-places p,
html body.g6p-relocate .g6rr-timeline p,
html body.g6p-relocate .g6rr-formcard p,
html body.g6p-relocate .lux-lead-bullets li { font-size: 16px !important; line-height: 1.65 !important; }
html body.g6p-relocate .g6rr-ruled p,
html body.g6p-relocate .g6rr-timeline p,
html body.g6p-relocate .g6rr-lede p { max-width: 68ch !important; }
html body.g6p-relocate .g6rr-kicker { font-size: 13px !important; }
/* A link at the end of a sentence sat on its own line with the full stop orphaned under it */
html body.g6p-relocate .g6rr-levers p a,
html body.g6p-relocate .g6rr-ruled p a,
html body.g6p-relocate .g6rr-lede p a { display: inline !important; }
/* Review links were 14px tall (rule 8) */
html body.g6p-relocate .g6rr-quote-lead figcaption a,
html body.g6p-relocate .g6rr-quotes a { display: inline-flex !important; align-items: center; min-height: 44px; width: auto !important; font-size: 15px !important; }
/* Mid-page card: "Get the Guide" was a white pill on a white card (no edge) and "Book a call" a grey pill that read
   as disabled. On a light card: one filled navy button, one outlined (rule 2, rule 7). The hero on the photo is unchanged. */
html body.g6p-relocate #main-content .g6rr-formcard .g6rr-btn { background: var(--g6p-ink); border-color: var(--g6p-ink); color: #fff; }
html body.g6p-relocate #main-content .g6rr-formcard .g6rr-btn--ghost { background: #fff; border-color: var(--g6p-ink); color: var(--g6p-ink); }
html body.g6p-relocate #main-content .g6rr-formcard .g6rr-btn--ghost span { color: inherit !important; }
html body.g6p-relocate #main-content .g6rr-formcard .g6rr-btn:hover,
html body.g6p-relocate #main-content .g6rr-formcard .g6rr-btn:focus-visible { background: var(--g6p-ink); border-color: var(--g6p-ink); color: #fff; }
/* The two-ways bullets were a label column and a text column squeezed into the card: one line each, label first */
html body.g6p-relocate .g6rr-formcard .lux-lead-bullets li { display: block !important; }
html body.g6p-relocate .g6rr-formcard .lux-lead-bullets li strong { display: inline; color: var(--g6p-ink); }
@media (max-width: 700px) {
  /* Even chapter rhythm on a phone: 54px top and bottom everywhere, the lede no longer sits flush on the next chapter */
  html body.g6p-relocate .g6rr-lede { padding-bottom: 8px !important; }
  html body.g6p-relocate .g6rr-h2 { font-size: 32px !important; line-height: 1.12 !important; }
}

/* =====================================================================================================================
   FLOOD ZONES GUIDE
   ===================================================================================================================== */
html body.g6p-floodzones .g6a-card__cat { font-size: 13px !important; color: var(--g6p-ink) !important; }
html body.g6p-floodzones .g6a-card__excerpt { font-size: 16px !important; line-height: 1.55 !important; }
html body.g6p-floodzones .listings-strip__meta,
html body.g6p-floodzones .listings-strip__courtesy { font-size: 13px !important; }
html body.g6p-floodzones .g6a-open__chip { font-size: 13px !important; }
html body.g6p-floodzones .g6ph-flood-note { font-size: 16px !important; line-height: 1.5 !important; }
html body.g6p-floodzones .g6lf-intents small { font-size: 13px !important; }
@media (max-width: 860px) {
  /* The closed "On this page" menu left a tall empty box above the first chapter on a phone (rule 27) */
  html body.g6p-floodzones .ga-toc { min-height: 0 !important; height: auto !important; margin-bottom: 8px !important; }
  html body.g6p-floodzones .ga-toc details:not([open]) { min-height: 0 !important; }
  html body.g6p-floodzones .ga-toc summary { display: flex; align-items: center; min-height: 48px; }
  /* 100px of blank space sat between the closed menu and the first chapter (64px heading margin over an empty intro) */
  html body.g6p-floodzones .ga-flow article > .ga-sec:first-of-type > h2:first-child { margin-top: 20px !important; }
}

/* =====================================================================================================================
   WATERWAY MAP
   ===================================================================================================================== */
/* Map panel labels 11.2px and legend 11.5px (rule 5 meta floor); toggles were 4.13:1 (rule 7) */
html body.g6p-waterway .canal-hud-label,
html body.g6p-waterway .canal-legend-modern span,
html body.g6p-waterway .canal-legend-collapse-summary { font-size: 13px !important; }
html body.g6p-waterway .canal-hud-toggle span { color: var(--g6p-text) !important; }
/* Bridge and canal number cards: labels 12.2px and source lines 13.4px */
html body.g6p-waterway .g6cct-card__k { font-size: 13px !important; }
html body.g6p-waterway .g6cct-card__c,
html body.g6p-waterway .g6cct-card__d { font-size: 14px !important; line-height: 1.5 !important; }
html body.g6p-waterway .g6-waterway-grid article > span,
html body.g6p-waterway .g6-tool-open__kicker,
html body.g6p-waterway .g6cct-tag,
html body.g6p-waterway .g6cct-tag a,
html body.g6p-waterway .g6cct-units td { font-size: 13px !important; }
/* Table row links (quadrant, ZIP) were 19px tall (rule 8) */
html body.g6p-waterway table th a { display: inline-flex; align-items: center; min-height: 44px; }
/* Links inside a running sentence stay inline (a block link pushed the full stop onto its own line); a taller hit area
   comes from padding that does not move the line. */
html body.g6p-waterway .g6cct-asof a,
html body.g6p-waterway .g6-tool-rule__head p a:not(.g6-city-textlink),
html body.g6p-waterway .g6-ww-method-p a { display: inline !important; white-space: normal !important; padding-block: 10px; }

/* =====================================================================================================================
   CAPE CORAL (enqueued for parity; W1 owns its chapter bar, feature finder and flood key)
   ===================================================================================================================== */
html body.g6p-capecoral .g6-city-textlink { font-size: 15px !important; }

/* =====================================================================================================================
   W8 2026-12-02 (R1 review item 4): every sentence a person must read is at least 16px on these seven pages.
   Hero ledes and explanations, form instructions, checklist sentences, FAQ answers and card body. Captions, sources,
   bylines and meta labels stay at 13 to 14px. landing.css sets the phone hero lede to 15px (gen6-landing.css:121);
   this overrides it here only, scoped to the g6p page classes.
   ===================================================================================================================== */
html body.g6p .g6l-lede,
html body.g6p .form-subtitle,
html body.g6p .g6lf-help,
html body.g6p .g6-area-panel .g6-area-intro { font-size: 16px !important; line-height: 1.55 !important; }
html body.g6p-buy #g6-buy-faq details p,
html body.g6p-sell #g6-sell-faq details p { font-size: 16px !important; line-height: 1.6 !important; }
html body.g6p-sell .p3-head p,
html body.g6p-sell .g6wp-card .g6wp-d { font-size: 16px !important; line-height: 1.55 !important; }
html body.g6p-relocate .g6rr-artifact-note { font-size: 16px !important; line-height: 1.5 !important; }
html body.g6p-waterway .g6cct-card__m { font-size: 16px !important; }

/* =====================================================================================================================
   W9 2026-12-02 (R2 review fixes)
   ===================================================================================================================== */
/* /cape-coral-flood-zones/ "At a glance": the article kit hides the eyebrow, so its list kept the checklist's 28px top margin
   and 32px bullet indent (an empty band above Zone X and text set in from its colour rule). */
html body.g6p-floodzones .g6v10-zones .g6v10-zones-grid { margin-top: 0 !important; }
html body.g6p-floodzones .g6v10-zones .g6v10-zones-grid > li { padding-left: 0 !important; }

/* /relocate/ flood, canal, assessment and insurance section: one picture of our live map (a link to it) above the lookup. */
html body.g6p-relocate .g6rr-side { display: grid; gap: 24px; align-content: start; }
html body.g6p-relocate .g6rr-side .g6rr-artifact { position: static; }
html body.g6p-relocate .g6rr-proof { margin: 0; }
html body.g6p-relocate .g6rr-proof-link { display: block; color: var(--g6-ink, #095e93); text-decoration: none; border-radius: 14px; }
html body.g6p-relocate .g6rr-proof-link img { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 659; border-radius: 14px; border: 1px solid var(--g6-line, #dbe8f2); box-shadow: 0 22px 46px -34px rgba(9,94,147,.45); background: #e8eff3; }
html body.g6p-relocate .g6rr-proof-cta { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; font: 700 16px/1.3 var(--g6-ui, Manrope, sans-serif); color: var(--g6-ink, #095e93); }
html body.g6p-relocate .g6rr-proof-link:hover .g6rr-proof-cta,
html body.g6p-relocate .g6rr-proof-link:focus-visible .g6rr-proof-cta { text-decoration: underline; text-underline-offset: 3px; }
html body.g6p-relocate .g6rr-proof-link:focus-visible { outline: 3px solid var(--g6-channel, #2b80bb); outline-offset: 4px; }
html body.g6p-relocate .g6rr-proof figcaption p { margin: 0 0 8px; font: 400 15px/1.5 var(--g6-ui, Manrope, sans-serif); color: var(--g6-slate, #51647a); }
html body.g6p-relocate .g6rr-proof-key { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
html body.g6p-relocate .g6rr-proof-key li { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; font: 500 14px/1.4 var(--g6-ui, Manrope, sans-serif); color: #1f3450; }
html body.g6p-relocate .g6rr-proof-key li::before { content: none; }
@media (min-width: 861px) and (min-height: 820px) {
  html body.g6p-relocate .g6rr-side { position: sticky; top: 96px; }
}
@media (max-width: 420px) {
  html body.g6p-relocate .g6rr-proof-key { grid-template-columns: 1fr; }
}

/* /waterway-map/ desktop: the "Load the map" button sat at the middle of the 700px picture, below the first screen at 1440x900;
   the 12 legend entries wrapped "Fuel dock" alone onto a second line. Two even rows of six (canals and bridges, then the rest). */
@media (min-width: 861px) {
  html body.g6p-waterway .g6-tool-poster-load { top: 140px; }
  html body.g6p-waterway details.canal-legend-collapse[open] > .canal-legend-modern { display: grid !important; grid-template-columns: repeat(6, max-content); justify-content: start; gap: 8px 28px !important; }
}
@media (min-width: 861px) and (max-width: 1180px) {
  html body.g6p-waterway details.canal-legend-collapse[open] > .canal-legend-modern { grid-template-columns: repeat(4, max-content); }
}
