/* gen6-deck-pages.css: page layer on top of css/gen6-deck.css (BUILD_20261202_mt_site_bible_visual_deslop). Places the shared deck primitives;
   never restyles them. Tokens only, no !important, no new hex. */

/*
 * W4 2026-12-02: /relocate/, /about/, /cape-coral/, /waterway-map/, /cape-coral-flood-zones/.
 * Every rule is scoped to body.g6p-<key>. Grounds come from the .g6-band--* primitives in the markup; this file only
 * sets spacing, column layout and the few page objects the primitives do not cover (place list, film chapters,
 * people pair, the letter). Map mounts, map legends and flood colours are not touched here.
 */

/* ---------- shared spacing for the W4 pages ---------- */
body.g6p :is(.g6rr-band, .g6ab-band) :is(.g6-band-h2, .g6-band-lede) + :is(.g6rr-split, .g6-deck-grid, .g6-stops, .g6ab-people, figure, ol, ul, div) { margin-top: clamp(28px, 3.4vw, 44px); }
body.g6p :is(.g6rr-band, .g6ab-band) figure.g6-photo a { display: block; position: relative; border-radius: var(--g6-radius); }
body.g6p :is(.g6rr-band, .g6ab-band) figure.g6-photo a:focus-visible { outline: 2px solid var(--g6-navy); outline-offset: 4px; }

/* ---------- /relocate/ ---------- */
/* intro band: one plain paragraph */
body.g6p-relocate .g6rr-intro { margin: clamp(28px, 3.4vw, 40px) 0 0; max-width: 70ch; font: 500 18px/1.7 var(--g6-ui); color: var(--g6-text); }
body.g6p-relocate .g6rr-intro a { color: var(--g6-navy); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* intro (F5, T1 item 9): two sentences + a real aerial; on a phone the rest of the paragraph steps aside */
body.g6p-relocate .g6rr-intro-grid { align-items: center; }
body.g6p-relocate .g6rr-intro + .g6rr-intro { margin-top: 18px; }
body.g6p-relocate .g6rr-intro-photo > img { aspect-ratio: 4 / 3; }

/* places (F5, T1 item 9): one deck list, a real photo on every row (caption under it), hairlines between rows, the whole
   row is the link. The old boxed card look (css/raw-to-cards.css "body .g6rr-places", a shared sheet) is switched off here. */
body.g6p-relocate .g6rr-places { display: block; margin: 0; padding: 0; border: 0; border-top: 1px solid var(--g6-hair); }
body.g6p-relocate .g6rr-places > li {
  position: relative; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); column-gap: clamp(24px, 3.4vw, 48px); align-items: start;
  margin: 0; padding: 28px 0; border: 0; border-bottom: 1px solid var(--g6-hair); border-radius: 0; background: none; box-shadow: none; transform: none; transition: none;
}
body.g6p-relocate .g6rr-places > li:hover,
body.g6p-relocate .g6rr-places > li:active { transform: none; box-shadow: none; }
body.g6p-relocate .g6rr-place-pic { margin: 0; }
body.g6p-relocate .g6rr-place-pic img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--g6-radius); box-shadow: var(--g6-photo-shadow); background: var(--g6-white); }
body.g6p-relocate .g6rr-place-pic figcaption { margin-top: 10px; font: 500 13px/1.4 var(--g6-ui); color: var(--g6-mute); }
body.g6p-relocate .g6rr-place-pic figcaption a { position: relative; z-index: 1; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
body.g6p-relocate .g6rr-place-text { min-width: 0; }
body.g6p-relocate .g6rr-place-text > a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 8px; font: 700 16px/1.3 var(--g6-ui); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
body.g6p-relocate .g6rr-place-text > a::before { content: "\2192"; order: 2; text-decoration: none; }
body.g6p-relocate .g6rr-place-text > p:not(.g6rr-place-label) { max-width: 62ch; }
body.g6p-relocate .g6rr-areas .g6-deck-actions { margin-top: 28px; }
body.g6p-relocate .g6rr-places h3 { font-weight: 700; color: var(--g6-navy); }
body.g6p-relocate .g6rr-places p { font-size: 16px; color: var(--g6-mute); }
body.g6p-relocate .g6rr-places a { color: var(--g6-navy); }
body.g6p-relocate .g6rr-place-label { font: 800 13px/1.3 var(--g6-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--g6-navy); }
body.g6p-relocate .g6rr-photo-tall > img { height: auto; aspect-ratio: 4 / 5; } /* F2 12-02: height:auto, or the 1600/1866px height attribute beats the ratio (f2/r1/relocate_d_b04, b07) */

/* cost levers: numbered deck list beside the flood map picture */
body.g6p-relocate .g6rr-split { align-items: start; }
body.g6p-relocate .g6rr-split ol.g6-why { margin-top: 0; }
body.g6p-relocate ol.g6-why > li > span a { color: var(--g6-navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
body.g6p-relocate .g6rr-artifact { border-color: var(--g6-hair); box-shadow: none; }
body.g6p-relocate .g6rr-artifact h3 { font-weight: 700; color: var(--g6-navy); }
body.g6p-relocate .g6rr-artifact-form .g6-btn { width: 100%; }

/* film band (navy): chapter list as hairline rows, poster with a play mark (no words on the picture) */
body.g6p-relocate .g6rr-chapters { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid rgba(210,228,245,.28); max-width: 30em; }
body.g6p-relocate .g6rr-chapters li { margin: 0; border-bottom: 1px solid rgba(210,228,245,.28); }
body.g6p-relocate .g6rr-chapters a { display: flex; align-items: center; gap: 16px; min-height: 48px; color: var(--g6-white); font: 600 16px/1.3 var(--g6-ui); text-decoration: none; }
body.g6p-relocate .g6rr-chapters a:hover { text-decoration: underline; text-underline-offset: 4px; }
body.g6p-relocate .g6rr-chapters a:focus-visible { outline: 2px solid var(--g6-light); outline-offset: 2px; }
body.g6p-relocate .g6rr-chapters b { min-width: 4.4em; color: var(--g6-pale); font-weight: 800; font-variant-numeric: tabular-nums; }
body.g6p-relocate .g6rr-film-poster img { height: auto; aspect-ratio: 16 / 9; }
body.g6p-relocate .g6rr-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(6,38,62,.72); box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
body.g6p-relocate .g6rr-play::after { content: ""; position: absolute; left: 29px; top: 23px; border-style: solid; border-width: 13px 0 13px 20px; border-color: transparent transparent transparent var(--g6-white); }

/* reviews: hairline quote card, no coloured stripe */
body.g6p-relocate .g6rr-quote-lead { background: var(--g6-white); border: 1px solid var(--g6-hair); }
body.g6p-relocate .g6rr-quote-lead blockquote { color: var(--g6-text); }
body.g6p-relocate .g6rr-quotes { border-top-color: var(--g6-hair); }
body.g6p-relocate .g6rr-quotes > li { border-bottom-color: var(--g6-hair); }
body.g6p-relocate .g6rr-quotes blockquote { color: var(--g6-text); }
body.g6p-relocate :is(.g6rr-quote-lead figcaption a, .g6rr-quotes a) { color: var(--g6-navy); }


/* why us */
body.g6p-relocate .g6rr-body { margin: 16px 0 0; max-width: 58ch; font: 500 17px/1.6 var(--g6-ui); color: var(--g6-text); }

/* close (navy): plain list, white form card */
body.g6p-relocate .g6rr-close ul { padding-left: 1.15em; color: var(--g6-on-deep); }
body.g6p-relocate .g6rr-close .g6rr-split > div > p { color: var(--g6-on-deep); }
body.g6p-relocate .g6rr-close .g6rr-formcard { background: var(--g6-white); box-shadow: none; }
body.g6p-relocate .g6rr-close .g6rr-formcard h3 { font-weight: 700; color: var(--g6-navy); }
body.g6p-relocate .g6rr-close .g6rr-formcard p { color: var(--g6-mute); }
body.g6p-relocate .g6rr-close .g6rr-label { font: 800 13px/1.3 var(--g6-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--g6-navy); }

@media (max-width: 900px) {
  body.g6p-relocate .g6rr-photo-tall > img { aspect-ratio: 4 / 3; }
}
@media (max-width: 700px) {
  body.g6p-relocate .g6rr-intro--more { display: none; }
  body.g6p-relocate .g6rr-intro-grid { gap: 24px; }
  body.g6p-relocate .g6rr-places > li { grid-template-columns: minmax(0, 1fr); row-gap: 16px; padding: 24px 0; }
  body.g6p-relocate .g6rr-place-pic img { aspect-ratio: 16 / 10; }
}

/* ---------- /about/ ---------- */
body.g6p-about .g6ab-photo-tall > img { aspect-ratio: 4 / 5; }
body.g6p-about .g6ab-stops { margin-top: clamp(36px, 4vw, 56px); }
body.g6p-about .g6ab-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
body.g6p-about .g6ab-person h3 { margin: 22px 0 2px; font: 700 clamp(26px, 2.4vw, 34px)/1.1 var(--g6-display); color: var(--g6-navy); }
body.g6p-about .g6ab-role { margin: 0 0 10px; font: 800 13px/1.3 var(--g6-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--g6-mute); }
body.g6p-about .g6ab-person > p:not(.g6ab-role) { margin: 0 0 6px; max-width: 52ch; font: 500 17px/1.6 var(--g6-ui); color: var(--g6-text); }
/* F5 2026-12-02 (T1 item 15): both portraits in one frame, 320 by 380 at most, the same face size and eye line, the deck radius
   and shadow on the frame. Susan's square headshot is cropped closer so her face matches Brayden's scale. CSS crop only; the two
   studio backdrops (polygon and texture) still differ, and only a re-cut photo would match them. */
body.g6p-about .g6ab-portrait { max-width: 320px; overflow: hidden; border-radius: var(--g6-radius); box-shadow: var(--g6-photo-shadow); background: var(--g6-pale); }
body.g6p-about .g6ab-portrait > img { width: 100%; height: 380px; aspect-ratio: auto; object-fit: cover; object-position: 45% 15%; border-radius: 0; box-shadow: none; }
body.g6p-about .g6ab-person:nth-child(2) .g6ab-portrait > img { object-position: 50% 20%; transform: scale(1.45); transform-origin: 50% 20%; }
/* "The people" eyebrow (and every band head) lands below the sticky header when scrolled or linked to. */
body.g6p-about .g6ab-band,
body.g6p-about .g6ab-band :is(.g6-eyebrow, h2[id]) { scroll-margin-top: calc(var(--g6-header-h) + 24px); }
body.g6p-about .g6ab-team-photo > img { aspect-ratio: 3200 / 1150; object-position: 50% 30%; }
body.g6p-about .g6ab-note-wrap { max-width: 860px; }
body.g6p-about .g6ab-note { margin: clamp(24px, 3vw, 36px) 0 0; padding: clamp(24px, 3vw, 40px) 0 0; border-top: 1px solid var(--g6-hair); }
body.g6p-about .g6ab-note blockquote { margin: 0; padding: 0; border: 0; }
body.g6p-about .g6ab-note blockquote p { margin: 0 0 18px; font: 500 clamp(20px, 1.8vw, 24px)/1.55 var(--g6-display); color: var(--g6-text); }
body.g6p-about .g6ab-note figcaption { font: 800 13px/1.3 var(--g6-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--g6-navy); }
body.g6p-about .g6ab-why { max-width: 860px; }
body.g6p-about .lux-lead-capture::before { content: none; }
@media (max-width: 900px) {
  body.g6p-about .g6ab-people { grid-template-columns: minmax(0, 1fr); }
  body.g6p-about .g6ab-photo-tall > img { aspect-ratio: 4 / 3; }
  body.g6p-about .g6ab-team-photo > img { aspect-ratio: 16 / 9; }
}
/* 2026-12-02 F1: the two-quote block is retired; /about/ renders template-parts/gen6-reviews-carousel.php (css/gen6-reviews-carousel.css). */

/* ---------- /cape-coral-flood-zones/ (F5 2026-12-02, T1 item 10) ---------- */
/* The real flood layer, large and readable, linked to the map (markup: inc/gen6-v10.php gen6_v10_flood_shot, page 741 only). */
body.g6p-floodzones .g6v10-floodshot { margin: 32px 0 8px; }
body.g6p-floodzones .g6v10-floodshot > a { display: block; border-radius: var(--g6-radius); }
body.g6p-floodzones .g6v10-floodshot > a:focus-visible { outline: 2px solid var(--g6-navy); outline-offset: 4px; }
body.g6p-floodzones .g6v10-floodshot img { display: block; width: 100%; height: auto; aspect-ratio: 1584 / 1366; border-radius: var(--g6-radius); box-shadow: var(--g6-photo-shadow); background: var(--g6-wash); }
body.g6p-floodzones .g6v10-floodshot figcaption { padding: 14px 0 0; }
body.g6p-floodzones .g6v10-floodshot-key { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 8px; font: 500 15px/1.4 var(--g6-ui); color: var(--g6-text); }
body.g6p-floodzones .g6v10-floodshot-key > span { display: inline-flex; align-items: center; gap: 8px; }
body.g6p-floodzones .g6v10-floodshot-key b { font-weight: 800; color: var(--g6-navy); }
body.g6p-floodzones .g6v10-floodshot-note { display: block; font: 500 14px/1.5 var(--g6-ui); color: var(--g6-mute); }
/* The 8px-text thumbnail in "Put this guide to work" is replaced on this page by the picture above (the shared article-frame
   card still serves the other flood guides; reported to the lead). */
body.g6p-floodzones .g6a-context .g6s-shot { display: none; }
@media (max-width: 1099px) {
  /* The opening already prints the page title; the first chapter heading repeated it in H1 size right under it. It stays in the
     page (screen readers, the "On this page" link) but is no longer drawn on phones and tablets. */
  body.g6p-floodzones .ga-flow > article:first-of-type > section.ga-sec:first-of-type > h2:first-child {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
  }
  /* "On this page" reads as a real control: one hairline row with a plus sign, no stray label over empty space. */
  body.g6p-floodzones .g6a-reading .ga-toc { border-top: 1px solid var(--g6-hair); border-bottom: 1px solid var(--g6-hair); }
  body.g6p-floodzones .g6a-reading .ga-toc summary {
    justify-content: space-between; gap: 12px; padding: 0; list-style: none; cursor: pointer;
    font: 700 16px/1.3 var(--g6-ui); color: var(--g6-navy);
  }
  body.g6p-floodzones .g6a-reading .ga-toc summary::-webkit-details-marker { display: none; }
  body.g6p-floodzones .g6a-reading .ga-toc summary::after {
    content: "+"; display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
    border: 1px solid var(--g6-navy); font: 700 18px/1 var(--g6-ui);
  }
  body.g6p-floodzones .g6a-reading .ga-toc details[open] > summary::after { content: "\2212"; }
  body.g6p-floodzones .g6a-reading .ga-layout { gap: 16px; }
}
