/* ==========================================================================
   Yanza Brokerage Group: site.css (design system v3, Nov 2026)
   Hand-written, one file, no build step, no frameworks. Documented in DESIGN.md.

   CONTENTS
    1  Fonts (self-hosted, OFL): Newsreader (headlines) + Public Sans (text, UI)
    2  Tokens: colour, type scale, spacing, radius, grid
    3  Base and typography
    4  Layout: container, sections, surfaces, grids
    5  Buttons and links
    6  Site chrome: skip link, top bar, header, nav, breadcrumbs
    7  Section pattern kit (hero, video hero, media split, intro, facts, numbered,
       photo band, gallery, FAQ, CTA band, side illustration, contact strip,
       language strip, index list)
    8  Content components (figure, tables, lists, quotes, notes, forms, contact card)
    9  Footer, mobile bar, call/text panel
   10  Legacy classes still used by pages that have not moved to the kit yet
   11  Utilities, motion, print

   Colour rule: deep ink-navy and warm paper carry the page; amber is the one accent and
   appears only as a thin rule, a marker, the current-page underline and the button on dark.
   Contexts (.section-navy, .hero, .cta-band ...) re-assign the semantic tokens, so every
   component inside them adapts without its own dark-mode rules.
   ========================================================================== */

/* ==========================================================================
   1. Fonts
   Both files are variable fonts subset to Latin (English and Spanish accents, punctuation, numerals).
   font-display: swap; the "Fallback" faces are tuned local fonts so the swap barely moves the layout.
   ========================================================================== */
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-var.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-italic-400.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/publicsans-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader Fallback";
  src: local("Georgia");
  size-adjust: 94.8%; ascent-override: 77.5%; descent-override: 28%; line-gap-override: 0%;
}
@font-face {
  font-family: "Public Sans Fallback";
  src: local("Arial");
  size-adjust: 103.2%; ascent-override: 92%; descent-override: 21.8%; line-gap-override: 0%;
}

/* ==========================================================================
   2. Tokens
   ========================================================================== */
:root {
  /* ---- Palette (raw) ---- */
  --c-ink: #0b1530;          /* deepest navy: footer, overlays */
  --c-navy: #14213d;         /* brand navy (the logo tile) */
  --c-navy-2: #233862;       /* hover on navy */
  --c-paper: #f8f5ee;        /* page background */
  --c-paper-2: #efe9db;      /* alternate band, quiet fills */
  --c-white: #ffffff;
  --c-text: #18212f;         /* body text */
  --c-text-2: #454f61;       /* secondary text (6.9:1 on paper) */
  --c-rule: #dcd5c3;         /* hairlines */
  --c-rule-2: #b8af98;       /* stronger rules */
  --c-field: #7a7463;        /* form borders (4.3:1 on white) */
  --c-accent: #e0a030;       /* amber: the one accent (use on dark, or as a thin rule) */
  --c-accent-ink: #84550a;   /* amber for text on light (5.6:1 on paper) */
  --c-link: #1d4a8e;         /* link blue (8:1 on white) */
  --c-ok: #1f6f43;
  --c-no: #9b3b1b;
  --c-error: #b42318;

  /* ---- Semantic tokens (components use these; contexts re-assign them) ---- */
  --bg: var(--c-paper);
  --surface: var(--c-white);
  --heading: var(--c-navy);
  --text: var(--c-text);
  --text-2: var(--c-text-2);
  --rule: var(--c-rule);
  --rule-strong: var(--c-rule-2);
  --link: var(--c-link);
  --link-hover: var(--c-navy);
  --kicker: var(--c-accent-ink);
  --marker: var(--c-accent-ink);
  --cta-bg: var(--c-navy);
  --cta-fg: #fff;
  --cta-bg-h: var(--c-ink);
  --outline: var(--c-navy);
  --focus: var(--c-navy);
  --focus-halo: #fff;
  --tint: var(--c-paper-2);

  /* ---- Type ---- */
  --font-serif: "Newsreader", "Newsreader Fallback", Georgia, "Times New Roman", serif;
  --font-sans: "Public Sans", "Public Sans Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  /* Modular scale, about 1.25 on phones to 1.33 on desktop (fluid, no breakpoints) */
  --step--2: 0.8125rem;                                   /* 13  captions, labels */
  --step--1: 0.9375rem;                                   /* 15  small text, UI */
  --step-0: 1.0625rem;                                    /* 17  body */
  --step-1: clamp(1.2rem, 1.12rem + 0.35vw, 1.375rem);    /* lead, h4 */
  --step-2: clamp(1.4rem, 1.25rem + 0.7vw, 1.75rem);      /* h3 */
  --step-3: clamp(1.75rem, 1.45rem + 1.3vw, 2.5rem);      /* h2 */
  --step-4: clamp(2.2rem, 1.7rem + 2.2vw, 3.5rem);        /* big h2, fact numerals */
  --step-5: clamp(2.6rem, 1.8rem + 3.4vw, 4.5rem);        /* h1 */
  --step-6: clamp(3.2rem, 2rem + 5.2vw, 6rem);            /* display numerals */

  /* ---- Spacing scale (4px base) ---- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-y: clamp(3.5rem, 2.2rem + 5vw, 6.5rem);       /* vertical padding of a section */

  /* ---- Shape and grid ---- */
  --r: 5px;                  /* buttons, inputs */
  --r-box: 6px;              /* panels, boxes */
  --r-photo: 3px;            /* photographs */
  --wrap: 76rem;             /* 1216px container, content width = wrap minus two gutters */
  --prose: 42rem;
  --gutter: clamp(1rem, 0.4rem + 2.4vw, 2rem);
  --bar-h: 64px;             /* mobile call bar */

  color-scheme: light;
}

/* Dark contexts re-assign the semantic tokens. Anything built from tokens needs no extra rules. */
.on-dark, .section-navy, .section-ink, .cta-band, .site-footer, .topbar, .hero, .hero-photo, .video-band, .mobile-bar {
  --bg: var(--c-navy);
  --surface: rgba(255, 255, 255, 0.07);
  --heading: #fff;
  --text: #e9eef7;
  --text-2: #c3ccdc;
  --rule: rgba(255, 255, 255, 0.24);
  --rule-strong: rgba(255, 255, 255, 0.45);
  --link: #fff;
  --link-hover: #ffe2a8;
  --kicker: #f0c36e;
  --marker: var(--c-accent);
  --cta-bg: var(--c-accent);
  --cta-fg: var(--c-ink);
  --cta-bg-h: #ecb24f;
  --outline: #fff;
  --focus: #fff;
  --focus-halo: transparent;
  --tint: rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.section-ink, .site-footer, .topbar { --bg: var(--c-ink); }

/* Light boxes sitting inside a dark context go back to light tokens */
:is(.section-navy, .section-ink, .cta-band, .on-dark) :is(.diagram:not(.diagram-bare), .contact-card, .quote-form, .panel, .checklist-card, .callout, .note, .paid, .gaps, .brochure, .cp-box) {
  --surface: #fff;
  --heading: var(--c-navy);
  --text: var(--c-text);
  --text-2: var(--c-text-2);
  --rule: var(--c-rule);
  --rule-strong: var(--c-rule-2);
  --link: var(--c-link);
  --link-hover: var(--c-navy);
  --kicker: var(--c-accent-ink);
  --marker: var(--c-accent-ink);
  --cta-bg: var(--c-navy);
  --cta-fg: #fff;
  --cta-bg-h: var(--c-ink);
  --outline: var(--c-navy);
  --focus: var(--c-navy);
  --focus-halo: #fff;
  --tint: var(--c-paper-2);
  color: var(--text);
}

/* ==========================================================================
   3. Base and typography
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  overflow-x: hidden;
}
main { display: block; }
img, svg, video { max-width: 100%; }
img, video { height: auto; }
svg { flex-shrink: 0; }
picture { display: block; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { margin: 0 0 0.5em; color: var(--heading); font-weight: 500; text-wrap: balance; }
h1, h2, h3 { font-family: var(--font-serif); letter-spacing: -0.015em; }
h1 { font-size: var(--step-5); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); line-height: 1.12; margin-top: 2.25em; }
h3 { font-size: var(--step-2); line-height: 1.2; margin-top: 1.6em; font-weight: 600; }
h4 { font-family: var(--font-sans); font-size: var(--step--1); line-height: 1.3; font-weight: 700; letter-spacing: 0.01em; margin-top: 1.4em; }
:is(.wrap, .section-head, .prose, article, aside, section, div, li, header) > :is(h2, h3, h4):first-child { margin-top: 0; }
h1 em, h2 em, .hl { font-style: italic; font-weight: inherit; }
p, ul, ol, dl, table, figure, blockquote, pre { margin: 0 0 1em; }
p, li, dd, figcaption { text-wrap: pretty; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.35em; }
strong, b { font-weight: 650; color: var(--heading); }
small, .small { font-size: var(--step--1); }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--sp-7) 0; }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 0.2em; }

a { color: var(--link); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a:hover { color: var(--link-hover); text-decoration-color: currentColor; }

.lead { font-size: var(--step-1); line-height: 1.5; color: var(--text); text-wrap: pretty; max-width: 38rem; }
.muted, .source { color: var(--text-2); }
.source { font-size: var(--step--1); }
/* Kicker: small caps label. Allowed in any section. (.eyebrow is the older name; it only shows in heroes.) */
.kicker, .eyebrow {
  display: block; margin: 0 0 var(--sp-3);
  font: 600 var(--step--2)/1.3 var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--kicker);
}
.section .eyebrow, .page-hero:not(.page-hero-v2) .eyebrow { display: none; }
.kicker + :is(h1, h2, h3, h4), .eyebrow + :is(h1, h2, h3, h4) { margin-top: 0; }
.num, .tnum { font-variant-numeric: tabular-nums lining-nums; }

/* Optional parts stay hidden until site.js finds the setting in config.js (classes are set on <html> before paint) */
html:not(.cfg-bookingUrl) [data-config-show~="bookingUrl"],
html:not(.cfg-uploadUrl) [data-config-show~="uploadUrl"],
html:not(.cfg-termQuoteOn) [data-config-show~="termQuoteOn"],
html.cfg-termQuoteOn [data-config-hide~="termQuoteOn"],
html:not(.cfg-email) [data-config-show~="email"],
html:not(.cfg-hours) [data-config-show~="hours"],
html:not(.has-code) #code-result,
html.has-code .if-no-code,
html:not(.has-code) .if-code,
html.has-code .code-lead,
html.bad-code .code-lead { display: none !important; }

/* ==========================================================================
   4. Layout
   One container, one gutter. Everything lines up on .wrap's content edge.
   ========================================================================== */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-prose { max-width: calc(var(--prose) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--prose); }

.section { position: relative; padding-block: var(--section-y); }
.section-tight { padding-block: calc(var(--section-y) * 0.55); }
.section > .wrap > :is(h2, h3):first-child, .section-head h2 { margin-top: 0; }
.section-head { max-width: var(--prose); margin-bottom: var(--sp-6); }
.section-head p { color: var(--text-2); }
.section-head > :last-child { margin-bottom: 0; }
.section-head.center { margin-inline: auto; text-align: center; }

/* Surfaces: alternate these down the page. (white / paper are the quiet pair; navy for emphasis.) */
.section-white { background: #fff; }
.section-cream, .section-alt, .section-wash-sand { background: var(--c-paper); }
.section-sand, .section-sky, .section-wash-sky, .section-wash-teal { background: var(--c-paper-2); }
.section-navy { background: var(--c-navy); }
.section-ink { background: var(--c-ink); }
.section-navy a:not(.btn), .section-ink a:not(.btn) { text-decoration-color: color-mix(in srgb, #fff 55%, transparent); }

/* Grid helpers */
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--sp-6) var(--sp-6); }
@media (min-width: 48rem) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 48rem) { .grid-2 { gap: var(--sp-6) var(--sp-8); } }
.split-2 { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 56rem) {
  .split-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-8); }
  .split-2.art-left > :first-child { order: 2; }
}
.split-2.align-start { align-items: start; }
.split-2.split-solo { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .split-2.split-solo { grid-template-columns: minmax(0, 46rem); } }

/* Page with a side column: <div class="wrap layout-side"><article class="prose">..</article><aside class="side">..</aside></div> */
.layout-side { display: grid; gap: var(--sp-7); }
@media (min-width: 64rem) {
  .layout-side { grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--sp-8); align-items: start; }
  .layout-side .side { position: sticky; top: 6rem; }
}

/* Grids start as one shrinkable column (nothing can push the page wider than the screen); wider layouts override it below.
   .grid-*, .split-2 and .layout-side are NOT in this list: they are single-column by default and their media queries above must win. */
:is(.intro, .faq-layout, .page-hero-grid, .hero-v2-grid, .footer-grid, .cta-band__inner, .cta-grid, .coverage-map, .split, .decision, .checklist-grid, .callout, .brochure, .town-intro, .media-split--contained) { grid-template-columns: minmax(0, 1fr); }
:is(.grid-2, .grid-3, .grid-4, .split-2, .intro, .faq-layout, .layout-side, .page-hero-grid, .footer-grid, .cta-band__inner, .town-intro) > * { min-width: 0; }
/* ==========================================================================
   5. Buttons and links
   .btn-primary   solid (navy on light, amber on dark): the one main action in a block
   .btn-secondary outline: the second action
   .btn-text      text link with an arrow: tertiary actions
   ========================================================================== */
.actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-5) 0 0; }
.btn {
  --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--heading); --btn-bg-h: var(--tint);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.4rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--r);
  font: 600 var(--step--1)/1.2 var(--font-sans); letter-spacing: 0.01em;
  text-decoration: none; text-align: center; white-space: nowrap; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.btn:hover { background: var(--btn-bg-h); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn[aria-busy="true"]:disabled { opacity: 0.8; cursor: progress; pointer-events: auto; }  /* quote form while it sends (a disabled button ignores clicks; pointer-events lets the cursor show) */
.btn svg { width: 1.15rem; height: 1.15rem; }
.btn-primary, .btn-navy, .btn-teal { --btn-bg: var(--cta-bg); --btn-bd: var(--cta-bg); --btn-fg: var(--cta-fg); --btn-bg-h: var(--cta-bg-h); }
.btn-primary:hover, .btn-navy:hover, .btn-teal:hover { border-color: var(--cta-bg-h); }
.btn-secondary { --btn-bd: var(--outline); --btn-fg: var(--outline); --btn-bg-h: var(--tint); }
/* Quiet outline (older "ghost" buttons): hairline border */
.btn-ghost { --btn-bd: var(--rule-strong); --btn-fg: var(--heading); }
.btn-ghost:hover { border-color: var(--outline); }
.btn-small { min-height: 2.5rem; padding: 0.4rem 1rem; }
.btn-block { width: 100%; }
/* Text button: looks like a link, keeps the button's hit area */
.btn-text { --btn-fg: var(--link); min-height: 2.75rem; padding: 0.4rem 0; border-color: transparent; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.btn-text:hover { background: transparent; --btn-fg: var(--link-hover); text-decoration-thickness: 2px; }
.btn-text::after { content: "\2192"; font-weight: 400; transition: transform 0.15s ease; }
.btn-text:hover::after { transform: translateX(3px); }
@media (max-width: 30rem) {
  .actions .btn:not(.btn-text) { flex: 1 1 100%; }
  .actions.actions-tight .btn, .actions .btn-ghost { flex: 1 1 calc(50% - 0.4rem); }
  .btn { white-space: normal; }
  [data-config="phone"], .btn .nowrap { white-space: nowrap; }
}
.nowrap, [data-config="phone"] { white-space: nowrap; }

/* "Read more" link at the foot of a card or row */
.card-more, .link-more { font-weight: 600; font-size: var(--step--1); color: var(--link); }
.card-more::after, .link-more::after { content: " \2192"; }

/* Focus: a clear two-tone ring on every interactive element */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 5px var(--focus-halo); border-radius: 2px; }
.btn-primary:focus-visible { outline-color: var(--focus); }

/* ==========================================================================
   6. Site chrome: skip link, top bar, header, navigation, breadcrumbs
   ========================================================================== */
.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: #fff; color: var(--c-navy); font-weight: 700; text-decoration: none;
  padding: 0.65rem 1rem; border: 2px solid var(--c-navy); border-radius: var(--r);
}
.skip:focus { top: 0.5rem; }

.topbar { background: var(--c-ink); font-size: var(--step--2); letter-spacing: 0.01em; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.15rem 1.25rem; min-height: 2.25rem; }
.topbar p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 0.7rem; color: var(--text-2); }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar a:hover { text-decoration: underline; text-decoration-color: var(--c-accent); text-underline-offset: 0.25em; }
.topbar p:last-child a::before {
  content: ""; width: 13px; height: 13px; background: var(--c-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.topbar .tb-hide { display: none; }
@media (min-width: 60rem) { .topbar .tb-hide { display: inline; } }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--c-rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; flex: none; padding: 0.4rem 0; color: var(--c-navy); text-decoration: none; }
.brand:hover { color: var(--c-navy); }
.brand-mark { width: 40px; height: 40px; flex: none; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; color: var(--c-navy); white-space: nowrap; }
.brand-sub { margin-top: 0.25rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-text-2); white-space: nowrap; }
@media (max-width: 29.99rem) {
  .header-inner { min-height: 3.75rem; gap: 0.5rem; }
  .brand { gap: 0.5rem; }
  .brand-mark { width: 34px; height: 34px; border-radius: 8px; }
  .brand-name { font-size: 1.1rem; }
  .brand-sub { font-size: 0.625rem; letter-spacing: 0.06em; }
}
@media (max-width: 22.5rem) { .brand-sub { display: none; } }

.nav-toggle {
  display: none; align-items: center; gap: 0.55rem; min-height: 2.75rem; padding: 0.4rem 0.9rem;
  background: #fff; color: var(--c-navy); border: 1.5px solid var(--c-navy); border-radius: var(--r);
  font: 600 var(--step--1)/1 var(--font-sans); cursor: pointer;
}
.nav-toggle .bars { position: relative; display: inline-block; width: 18px; height: 12px; }
.nav-toggle .bars::before, .nav-toggle .bars::after, .nav-toggle .bars span { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; }
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars span { top: 5px; }
.nav-toggle .bars::after { bottom: 0; }
.nav-open .nav-toggle { background: var(--c-navy); color: #fff; }
.nav-open .nav-toggle .bars::before { top: 5px; transform: rotate(45deg); }
.nav-open .nav-toggle .bars::after { bottom: 5px; transform: rotate(-45deg); }
.nav-open .nav-toggle .bars span { opacity: 0; }

.site-nav { width: 100%; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav-list li { margin: 0; }
.nav-list a {
  position: relative; display: block; padding: 0.55rem 0.7rem; white-space: nowrap;
  color: var(--c-navy); font-weight: 550; font-size: var(--step--1); text-decoration: none;
}
.nav-list a:hover { color: var(--c-navy); box-shadow: inset 0 -2px 0 var(--c-rule-2); }
.nav-list a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--c-accent); font-weight: 650; }
.nav-list a.nav-parent-current { box-shadow: inset 0 -2px 0 var(--c-rule-2); }
.nav-extra { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; padding: 0.75rem 0 1rem; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; min-height: 2.5rem; padding: 0.35rem 0.85rem;
  color: var(--c-navy); border: 1px solid var(--c-rule-2); border-radius: var(--r);
  font-weight: 600; font-size: var(--step--1); text-decoration: none;
}
.lang-switch:hover { color: var(--c-navy); background: var(--c-paper); border-color: var(--c-navy); }
.lang-switch svg { width: 17px; height: 17px; }
.nav-extra .btn { min-height: 2.5rem; padding: 0.4rem 1.1rem; }

/* Phones and small tablets: menu button opens a full-width list */
@media (max-width: 63.99rem) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; border-top: 1px solid var(--c-rule); padding-top: 0.25rem; }
  .js.nav-open .site-nav { display: block; max-height: calc(100vh - 4rem - var(--bar-h)); max-height: calc(100dvh - 4rem - var(--bar-h)); overflow-y: auto; overscroll-behavior: contain; }
  .js .nav-list { flex-direction: column; }
  .js .nav-list a { padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--c-rule); font-size: 1.0625rem; box-shadow: none; }
  .js .nav-list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--c-accent); padding-left: 0.85rem; }
  .js .nav-list a.nav-parent-current { box-shadow: inset 3px 0 0 var(--c-rule-2); padding-left: 0.85rem; }
  html:not(.js) .site-header { position: static; }
  .nav-extra .btn { flex: 1 1 auto; }
  .nav-extra .lang-switch { min-height: 3rem; justify-content: center; }
}
/* Desktop: one row, nothing wraps. Compact below 1280px. */
@media (min-width: 64rem) {
  .header-inner { flex-wrap: nowrap; min-height: 4.75rem; gap: 1.5rem; }
  .brand-sub { display: none; }
  .brand-name { font-size: 1.15rem; }
  .site-nav { flex: 1 1 auto; min-width: 0; width: auto; display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; }
  .nav-list { flex-wrap: nowrap; margin-left: auto; }
  .nav-list a { padding: 0.5rem 0.4rem; font-size: 0.875rem; }
  .nav-extra { flex-wrap: nowrap; flex: none; gap: 0.5rem; padding: 0; margin-left: 0.5rem; }
  .lang-switch { padding: 0.35rem 0.65rem; font-size: 0.875rem; }
  .lang-switch svg { display: none; }
}
@media (min-width: 80rem) {
  .brand-sub { display: block; }
  .brand-name { font-size: 1.3rem; }
  .nav-list a { padding: 0.5rem 0.65rem; font-size: var(--step--1); }
  .nav-extra { gap: 0.65rem; margin-left: 1rem; }
  .lang-switch { padding: 0.35rem 0.85rem; font-size: var(--step--1); }
}

/* Breadcrumbs */
.breadcrumbs { margin-bottom: var(--sp-4); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; font-size: var(--step--2); color: var(--text-2); }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin: 0 0.55rem; color: var(--rule-strong); }
.breadcrumbs a { color: var(--text-2); text-decoration-color: transparent; }
.breadcrumbs a:hover { color: var(--heading); text-decoration-color: currentColor; }
.breadcrumbs [aria-current] { color: var(--heading); }

/* ==========================================================================
   7. SECTION PATTERN KIT
   Each pattern is a block (.name) with elements (.name__part) and modifiers (.name--variant).
   Copy-paste HTML for every one is in DESIGN.md.
   ========================================================================== */

/* ---------- 7.1 Hero: full-bleed photo with a text block ----------
   <section class="hero" aria-labelledby="page-title">
     <div class="hero__media"><picture>..</picture></div>
     <div class="wrap hero__inner"><div class="hero__copy"> .kicker, h1, .lead, .actions </div></div>
   </section>
   Modifiers: .hero--short (inner pages) */
.hero { position: relative; isolation: isolate; display: grid; align-content: end; overflow: hidden; min-height: clamp(32rem, 74vh, 47rem); background: var(--c-ink); }
.hero--short { min-height: clamp(22rem, 48vh, 31rem); }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media picture { position: absolute; inset: 0; }
.hero__media img, .hero__media .vb-poster, .hero__media .vb-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(11, 21, 48, 0.82) 0%, rgba(11, 21, 48, 0.25) 55%, rgba(11, 21, 48, 0.1) 100%),
    linear-gradient(90deg, rgba(11, 21, 48, 0.6) 0%, rgba(11, 21, 48, 0.2) 55%, rgba(11, 21, 48, 0) 80%);
}
/* phones: the copy covers the whole photo, so darken it evenly */
@media (max-width: 47.99rem) {
  .hero:not(.hero--video) .hero__media::after { background: linear-gradient(0deg, rgba(11, 21, 48, 0.86) 0%, rgba(11, 21, 48, 0.66) 100%); }
}
.hero__inner { width: 100%; padding-block: clamp(6rem, 16vw, 11rem) clamp(2.5rem, 5vw, 4.5rem); }
.hero--short .hero__inner { padding-top: clamp(4.5rem, 10vw, 7rem); }
.hero__copy { max-width: 42rem; }
.hero h1 { font-size: var(--step-5); max-width: 15ch; }
.hero--short h1 { font-size: var(--step-4); max-width: 22ch; }
.hero h2 { margin: 0; font-size: var(--step-4); line-height: 1.05; max-width: 20ch; }
.hero .breadcrumbs { margin-bottom: var(--sp-5); }
.hero .breadcrumbs a, .hero .breadcrumbs [aria-current] { color: #f1f4fa; }
.hero .lead { color: #f1f4fa; margin-top: var(--sp-3); }
.hero .actions { margin-top: var(--sp-6); }
.hero__credit { margin: var(--sp-6) 0 0; font-size: 0.75rem; color: var(--text-2); }
.hero__note { margin: var(--sp-4) 0 0; max-width: 34rem; font-size: var(--step--1); color: var(--text-2); }
.hero__note a { color: #fff; }
/* small phones: less space above the copy and a 17px lead, so the first button sits above the 64px call bar
   (measured at 375x667: the bar's top is at 602px). Heroes with a long title and lead add .hero--dense, which
   tightens the spacing and sets a slightly smaller title on small phones only, so their first button clears the bar
   too (used on es/compensacion-al-trabajador, es/seguro-de-condominio and the two es/seguro-medico-grupal pages).
   At 390x844 every button clears it. */
@media (max-width: 30rem) {
  .hero__inner { padding-top: 2rem; }
  .hero--short .hero__inner { padding-top: 1.5rem; }
  .hero .lead { font-size: var(--step-0); }
  .hero .actions { margin-top: var(--sp-5); }
  .hero--dense.hero--short .hero__inner { padding-top: var(--sp-4); }
  .hero--dense .breadcrumbs { margin-bottom: var(--sp-3); }
  .hero--dense .kicker { margin-bottom: var(--sp-2); }
  .hero--dense.hero--short h1 { font-size: 1.875rem; margin-bottom: 0.4em; }
  .hero--dense .lead { margin-top: var(--sp-2); line-height: 1.45; }
  .hero--dense .actions { margin-top: var(--sp-4); }
}

/* ---------- 7.2 Video hero: the same hero with a muted looping clip ----------
   <section class="hero hero--video" data-video-band aria-labelledby="page-title">
     <div class="hero__media" aria-hidden="true">
       <img class="vb-poster" src="poster.jpg" alt="" width="1280" height="720">
       <video class="vb-video" muted loop playsinline preload="none" tabindex="-1" data-src="clip.mp4"></video>
     </div>
     <div class="wrap hero__inner">..</div>
     <button type="button" class="vb-toggle" hidden data-label-pause="Pause background video" data-label-play="Play background video" aria-label="Pause background video">Pause video</button>
   </section>
   site.js starts the clip only when motion is allowed, Data Saver is off and the hero is near the screen; the poster is always there.
   The same markup works on .video-band (a shorter band with text, below). */
.vb-poster, .vb-video { display: block; }
.vb-video { opacity: 0; transition: opacity 0.8s ease; }
[data-video-band].is-playing .vb-video { opacity: 1; }
.vb-toggle {
  position: absolute; right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); bottom: 1rem; z-index: 2; min-height: 2.75rem; padding: 0.4rem 1rem;
  font: 600 var(--step--2)/1 var(--font-sans); letter-spacing: 0.02em; color: #fff;
  background: rgba(11, 21, 48, 0.72); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: var(--r); cursor: pointer;
}
.vb-toggle:hover { background: var(--c-ink); }
.hero--video .hero__inner { padding-bottom: clamp(4.5rem, 7vw, 5.5rem); }
/* The moving sunset is brighter than a photo, so its scrim is heavier: white text and the amber kicker stay at 4.5:1 or better on the brightest frames */
.hero--video .hero__media::after {
  background:
    linear-gradient(0deg, rgba(11, 21, 48, 0.85) 0%, rgba(11, 21, 48, 0.64) 55%, rgba(11, 21, 48, 0.58) 100%),
    linear-gradient(90deg, rgba(11, 21, 48, 0.5) 0%, rgba(11, 21, 48, 0.3) 55%, rgba(11, 21, 48, 0) 80%);
}
@media (prefers-reduced-motion: reduce) { .vb-video, .vb-toggle { display: none; } }

/* Video band (text over a clip, between sections) */
.video-band { position: relative; isolation: isolate; overflow: hidden; background: var(--c-ink); }
.vb-media { position: absolute; inset: 0; z-index: -1; }
.vb-media .vb-poster, .vb-media .vb-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vb-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 21, 48, 0.78) 0%, rgba(11, 21, 48, 0.5) 60%, rgba(11, 21, 48, 0.25) 100%); }
.vb-inner { padding-block: clamp(4rem, 9vw, 7rem); }
.vb-copy { max-width: 36rem; }
.video-band h2 { margin-top: 0; }
.video-band .vb-inner { padding-bottom: clamp(5.5rem, 9vw, 7rem); }
.vb-credit { margin: var(--sp-6) 0 0; font-size: 0.75rem; color: var(--text-2); }

/* ---------- 7.3 Split section: text and photo, equal height ----------
   <section class="media-split section-white">
     <div class="media-split__text"> h2, p, .actions </div>
     <figure class="media-split__media"><picture>..</picture><figcaption>Stock photo, for illustration only.</figcaption></figure>
   </section>
   The photo runs to the edge of the screen, the text lines up with .wrap. Add .media-split--reverse to swap sides.
   Inside a .wrap use .media-split--contained (photo stays inside the grid). */
.media-split { display: grid; grid-template-columns: minmax(0, 1fr); }
.media-split__text { padding: var(--section-y) var(--gutter); }
.media-split__text > :last-child { margin-bottom: 0; }
.media-split__media { position: relative; margin: 0; min-height: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-paper-2); }
.media-split__media picture { position: absolute; inset: 0; }
.media-split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-split__media figcaption, .gallery figcaption, .band-tag {
  position: absolute; left: 0; bottom: 0; max-width: 100%; margin: 0; padding: 0.35rem 0.75rem;
  background: rgba(11, 21, 48, 0.82); color: #fff; font-size: 0.75rem; line-height: 1.35;
}
@media (min-width: 56rem) {
  .media-split {
    --half: calc(var(--wrap) / 2 - var(--gutter));
    grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, var(--half)) minmax(0, var(--half)) minmax(var(--gutter), 1fr);
  }
  .media-split__text { grid-column: 2; grid-row: 1; align-self: center; padding: var(--section-y) var(--sp-8) var(--section-y) 0; }
  .media-split__media { grid-column: 3 / -1; grid-row: 1; aspect-ratio: auto; min-height: 26rem; }
  .media-split--reverse .media-split__text { grid-column: 3; padding: var(--section-y) 0 var(--section-y) var(--sp-8); }
  .media-split--reverse .media-split__media { grid-column: 1 / 3; }
  /* contained: both columns inside the container */
  .media-split--contained { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-8); }
  .media-split--contained .media-split__text { grid-column: 1; padding: var(--sp-6) 0; }
  .media-split--contained .media-split__media { grid-column: 2; border-radius: var(--r-photo); }
  .media-split--contained.media-split--reverse .media-split__text { grid-column: 2; padding: var(--sp-6) 0; }
  .media-split--contained.media-split--reverse .media-split__media { grid-column: 1; }
}

/* ---------- 7.4 Text intro with a pull fact ----------
   <div class="wrap intro"><div class="intro__text"> h2, p </div>
     <aside class="intro__fact"><p class="fact"><span class="fact__num">1986535</span><span class="fact__label">NY producer license, checkable at dfs.ny.gov</span></p></aside></div> */
.intro { display: grid; gap: var(--sp-6); }
.intro__text > :last-child { margin-bottom: 0; }
.intro__text h2 { max-width: 22ch; }
.intro__fact { align-self: start; border-top: 2px solid var(--heading); padding-top: var(--sp-4); }
.fact { margin: 0; display: grid; gap: var(--sp-2); }
.fact__num { font-family: var(--font-serif); font-weight: 500; font-size: var(--step-4); line-height: 1; letter-spacing: -0.02em; color: var(--heading); font-variant-numeric: lining-nums tabular-nums; }
.fact__label { font-size: var(--step--1); color: var(--text-2); max-width: 22rem; }
@media (min-width: 56rem) { .intro { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: var(--sp-9); align-items: start; } }

/* ---------- 7.4b Anthony's photo: About portrait, home trust card, contact byline ----------
   Files (his own photo, cropped and resized only): /assets/img/anthony-yanza-tomala-480 and -960 (4:5) and
   -square-200 and -square-400 (1:1), each as .webp and .jpg. Always a <picture> with a WebP <source> and a JPG <img>
   that has width and height, so the space is held while it loads (no layout shift).
   About (portrait beside the intro; first on phones):
     <div class="wrap intro intro--portrait"><figure class="portrait"><picture>..</picture>
       <figcaption><span class="portrait__name">..</span><span class="portrait__role">..</span></figcaption></figure>
       <div class="intro__text">..</div><aside class="intro__fact">..</aside></div>
   Home (in place of .intro__fact): <aside class="trust-card"><div class="trust-card__head"><picture class="photo-round">..</picture>
       <div><p class="trust-card__name">..</p><p class="trust-card__role">..</p><p class="trust-card__lang">..</p></div></div>
       <p class="trust-card__check">..</p><div class="actions">..</div></aside>
   Contact (small, under a section heading): <p class="byline"><picture class="photo-round">..</picture>
       <span class="byline__text"><span class="byline__name">..</span><span class="byline__role">..</span></span></p> */
.portrait { margin: 0; width: 100%; max-width: 17rem; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-photo); background: var(--c-paper-2); }
.portrait figcaption { display: grid; gap: 0.1rem; margin-top: var(--sp-4); }
.portrait figcaption::before { content: ""; display: block; width: 2.5rem; height: 2px; margin-bottom: var(--sp-3); background: var(--c-accent); }
.portrait__name { font-family: var(--font-serif); font-size: var(--step-1); font-weight: 600; line-height: 1.2; color: var(--heading); }
.portrait__role { font-size: var(--step--1); line-height: 1.45; color: var(--text-2); }
.intro--portrait { grid-template-areas: "photo" "text" "fact"; }
.intro--portrait > .portrait { grid-area: photo; }
.intro--portrait > .intro__text { grid-area: text; }
.intro--portrait > .intro__fact { grid-area: fact; }
@media (min-width: 56rem) {
  .intro--portrait { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-rows: auto 1fr; grid-template-areas: "photo text" "fact text"; column-gap: var(--sp-8); row-gap: var(--sp-6); }
  .intro--portrait > .portrait { max-width: 22rem; }
}

/* round photo with a thin amber ring */
.photo-round { --size: 6rem; flex: none; display: block; width: var(--size); height: var(--size); padding: 3px; border: 1px solid var(--c-accent); border-radius: 50%; }
.photo-round img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: var(--c-paper-2); }

.trust-card { align-self: start; border-top: 2px solid var(--heading); padding-top: var(--sp-5); }
.trust-card__head { display: flex; align-items: center; gap: var(--sp-4); }
.trust-card__head p { margin: 0; }
.trust-card__name { font-family: var(--font-serif); font-size: var(--step-1); font-weight: 600; line-height: 1.2; color: var(--heading); }
.trust-card .trust-card__role { margin-top: 0.3rem; font-size: var(--step--1); font-weight: 600; line-height: 1.4; color: var(--text); }
.trust-card .trust-card__lang { margin-top: 0.2rem; font-size: var(--step--1); font-weight: 600; color: var(--kicker); }
.trust-card__check { margin: var(--sp-4) 0 0; font-size: var(--step--1); color: var(--text-2); }
.trust-card .actions { margin-top: var(--sp-4); }

.byline { display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-4) 0 0; }
.byline .photo-round { --size: 3.75rem; padding: 2px; }
.byline__text { display: grid; line-height: 1.35; }
.byline__name { font-weight: 650; color: var(--heading); }
.byline__role { font-size: var(--step--1); color: var(--text-2); }

/* ---------- 7.5 Fact strip: numbers row with tabular numerals ----------
   <dl class="facts"><div class="facts__item"><dt>Office</dt><dd>Patchogue, NY</dd></div> ...</dl>  (3 to 5 items) */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--rule-strong); }
.facts__item { padding: var(--sp-5) var(--sp-4) var(--sp-5) 0; border-bottom: 1px solid var(--rule); }
.facts dt { margin: 0 0 var(--sp-2); font: 600 var(--step--2)/1.3 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.facts dd { margin: 0; font-family: var(--font-serif); font-size: clamp(1.45rem, 1.25rem + 0.8vw, 1.9rem); line-height: 1.1; letter-spacing: -0.015em; color: var(--heading); font-variant-numeric: lining-nums tabular-nums; }
.facts dd small { display: block; margin-top: var(--sp-2); font: 400 var(--step--1)/1.4 var(--font-sans); letter-spacing: 0; color: var(--text-2); }
@media (min-width: 48rem) {
  .facts { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); border-bottom: 1px solid var(--rule); }
  .facts__item { border-bottom: 0; padding-left: var(--sp-5); border-left: 1px solid var(--rule); }
  .facts__item:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- 7.6 "What I check": numbered list ----------
   <ol class="numbered"><li><h3>Heading</h3><p>One or two lines.</p></li> ...</ol>   (.numbered--cols for two columns) */
.numbered { list-style: none; margin: 0; padding: 0; counter-reset: n; border-top: 1px solid var(--rule-strong); }
.numbered > li { position: relative; margin: 0; padding: var(--sp-5) 0 var(--sp-5) 3.75rem; border-bottom: 1px solid var(--rule); counter-increment: n; }
.numbered > li::before {
  content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: var(--sp-5);
  font-family: var(--font-serif); font-size: var(--step-3); line-height: 1; font-weight: 500; letter-spacing: -0.02em;
  color: var(--marker); font-variant-numeric: lining-nums tabular-nums;
}
.numbered h3, .numbered h4 { margin: 0 0 0.25em; font-family: var(--font-serif); font-size: var(--step-1); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.numbered p { margin: 0; color: var(--text-2); max-width: 34rem; }
/* exactly three steps: lay them across the grid instead of a short column with empty space beside it */
@media (min-width: 56rem) {
  .wrap > .numbered:not(.numbered--cols):has(> li:nth-child(3):last-child) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--sp-6); }
}
@media (min-width: 56rem) {
  .numbered--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-8); }
  .numbered--cols > li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--rule); }
}

/* ---------- 7.7 Photo band with a caption ----------
   <section class="photo-band"><div class="wrap"><figure class="photo-fig"><picture>..</picture><figcaption>..</figcaption></figure></div></section>
   .photo-band--full runs the photo to both screen edges (the caption stays in the grid). */
.photo-band { padding-block: var(--sp-7); background: var(--c-paper); }
.photo-fig { margin: 0; }
.photo-fig picture { overflow: hidden; border-radius: var(--r-photo); background: var(--c-paper-2); }
.photo-fig img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-fig.pp-top img { object-position: 50% 30%; }
@media (min-width: 40rem) { .photo-fig img { aspect-ratio: 21 / 9; } }
.photo-fig figcaption { margin-top: var(--sp-2); font-size: var(--step--2); line-height: 1.4; color: var(--text-2); }
.photo-band--full { padding-block: 0; }
.photo-band--full > .wrap { max-width: none; padding-inline: 0; }
.photo-band--full .photo-fig picture { border-radius: 0; }
.photo-band--full .photo-fig figcaption { max-width: var(--wrap); margin-inline: auto; padding: var(--sp-2) var(--gutter) 0; }

/* ---------- 7.8 Gallery: 3 to 6 photos on a 12-column grid, varied shapes ----------
   <div class="gallery gallery--4"> <figure class="gallery__item"><picture>..</picture></figure> ... </div>
   Choose the modifier that matches the photo count: gallery--3, --4, --5 or --6 (tiles with no gaps).
   Photos crop to fit; put the subject near the middle. */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.gallery__item { position: relative; margin: 0; overflow: hidden; background: var(--c-paper-2); border-radius: var(--r-photo); aspect-ratio: 4 / 3; }
.gallery__item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
/* two-column phone grid: when the rest after the first tile is odd, the last tile spans the row so none is left alone */
.gallery--6 .gallery__item:last-child, .gallery--4 .gallery__item:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery__item picture { position: absolute; inset: 0; }
.gallery__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery__credit { margin: var(--sp-3) 0 0; font-size: var(--step--2); color: var(--text-2); }
.gallery + .gallery__credit { margin-bottom: var(--sp-5); }
@media (min-width: 48rem) {
  .gallery { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(4rem, 8.2vw, 7.4rem); gap: var(--sp-3); }
  .gallery__item, .gallery__item:first-child { aspect-ratio: auto; grid-column: auto; }
  .gallery--6 .gallery__item:last-child, .gallery--4 .gallery__item:last-child { aspect-ratio: auto; }
  .gallery--3 .gallery__item:nth-child(1) { grid-column: 1 / 7;  grid-row: 1 / 5; }
  .gallery--3 .gallery__item:nth-child(2) { grid-column: 7 / 13; grid-row: 1 / 3; }
  .gallery--3 .gallery__item:nth-child(3) { grid-column: 7 / 13; grid-row: 3 / 5; }
  .gallery--4 .gallery__item:nth-child(1) { grid-column: 1 / 8;  grid-row: 1 / 4; }
  .gallery--4 .gallery__item:nth-child(2) { grid-column: 8 / 13; grid-row: 1 / 4; }
  .gallery--4 .gallery__item:nth-child(3) { grid-column: 1 / 6;  grid-row: 4 / 6; }
  .gallery--4 .gallery__item:nth-child(4) { grid-column: 6 / 13; grid-row: 4 / 6; }
  .gallery--5 .gallery__item:nth-child(1) { grid-column: 1 / 6;  grid-row: 1 / 4; }
  .gallery--5 .gallery__item:nth-child(2) { grid-column: 6 / 13; grid-row: 1 / 4; }
  .gallery--5 .gallery__item:nth-child(3) { grid-column: 1 / 5;  grid-row: 4 / 6; }
  .gallery--5 .gallery__item:nth-child(4) { grid-column: 5 / 9;  grid-row: 4 / 6; }
  .gallery--5 .gallery__item:nth-child(5) { grid-column: 9 / 13; grid-row: 4 / 6; }
  .gallery--6 .gallery__item:nth-child(1) { grid-column: 1 / 6;  grid-row: 1 / 4; }
  .gallery--6 .gallery__item:nth-child(2) { grid-column: 6 / 10; grid-row: 1 / 4; }
  .gallery--6 .gallery__item:nth-child(3) { grid-column: 10 / 13; grid-row: 1 / 4; }
  .gallery--6 .gallery__item:nth-child(4) { grid-column: 1 / 4;  grid-row: 4 / 6; }
  .gallery--6 .gallery__item:nth-child(5) { grid-column: 4 / 8;  grid-row: 4 / 6; }
  .gallery--6 .gallery__item:nth-child(6) { grid-column: 8 / 13; grid-row: 4 / 6; }
}

/* ---------- 7.9 FAQ accordion (native <details>) ----------
   <div class="faq"><details><summary>Question?</summary><div class="answer"><p>..</p></div></details> ..</div> */
.faq { max-width: 52rem; border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative; list-style: none; cursor: pointer; padding: var(--sp-4) 3rem var(--sp-4) 0;
  font-family: var(--font-serif); font-weight: 500; font-size: var(--step-1); line-height: 1.3; letter-spacing: -0.01em; color: var(--heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 0.25rem; top: 50%; width: 1rem; height: 2px; background: var(--heading); transition: transform 0.2s ease; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--link-hover); }
.faq summary:hover::before, .faq summary:hover::after { background: var(--link-hover); }
.faq .answer { max-width: var(--prose); padding: 0 0 var(--sp-5); color: var(--text); }
.faq .answer > :last-child { margin-bottom: 0; }
/* Heading on the left, questions on the right */
.faq-layout { display: grid; gap: var(--sp-6); }
.faq-aside > :last-child { margin-bottom: 0; }
.faq-aside .illo-side { display: block; margin-bottom: var(--sp-3); }
.faq-aside .illo { max-width: 9rem; border: 0; background: none; margin-top: var(--sp-5); }
@media (max-width: 63.99rem) { .faq-aside .illo { display: none; } }
@media (min-width: 64rem) {
  .faq-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--sp-9); align-items: start; }
  .faq-aside { position: sticky; top: 7rem; }
  .faq-layout .faq { max-width: none; }
}
dl.faq { display: block; }
dl.faq dt { margin-top: var(--sp-4); font-weight: 650; color: var(--heading); }
dl.faq dd { margin: 0.25rem 0 0; }

/* ---------- 7.10 CTA band ----------
   <section class="cta-band"><div class="wrap cta-band__inner">
     <div><h2>Short headline</h2><p>One line.</p></div>
     <div class="actions"><a class="btn btn-primary" href="/quote/">Get a quote</a><a class="btn btn-secondary" href="tel:..">Call</a></div>
   </div></section> */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--c-navy); padding-block: clamp(3.5rem, 2rem + 5vw, 5.5rem); }
.cta-band h2 { margin: 0 0 0.35em; font-size: var(--step-4); line-height: 1.05; max-width: 20ch; }
.cta-band p { max-width: 36rem; color: var(--text); }
.cta-band p:last-child { margin-bottom: 0; }
.cta-band__inner { display: grid; gap: var(--sp-5); align-items: end; }
.cta-band__inner .actions { margin-top: 0; }
@media (min-width: 56rem) {
  .cta-band__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--sp-8); }
  .cta-band__inner .actions { justify-content: flex-end; }
}
.cta-band .actions { margin-bottom: 0; }
.cta-photo .cta-bg { position: absolute; inset: 0; z-index: -1; display: block; }
.cta-photo .cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-photo .cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 21, 48, 0.88) 0%, rgba(11, 21, 48, 0.6) 100%); }
.cta-grid { display: grid; gap: var(--sp-6); align-items: center; }
.cta-art { max-width: 11rem; }
@media (min-width: 56rem) { .cta-grid { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--sp-8); } }

/* ---------- 7.11 Small side illustration (heading accent, never a hero) ----------
   <div class="heading-row"><img class="illo-side" src="/assets/illustrations/x.svg" alt="" width="160" height="120"><div><h2>..</h2><p>..</p></div></div> */
.heading-row { display: flex; align-items: center; gap: var(--sp-5); }
.heading-row > :last-child { min-width: 0; }
.heading-row h2, .heading-row h3 { margin-top: 0; }
.heading-row > :last-child > :last-child { margin-bottom: 0; }
.illo-side { flex: none; width: clamp(5rem, 14vw, 10rem); max-width: 10rem; height: auto; }
@media (max-width: 36rem) { .heading-row { align-items: flex-start; } .illo-side { width: 4.5rem; } }

/* ---------- 7.12 Quote and contact strip ----------
   <section class="contact-strip"><div class="wrap"><p class="contact-strip__title">Prefer to talk it through?</p>
     <ul class="contact-strip__list"><li><span>Call</span><a href="tel:..">(631) 823-7630</a></li> ...</ul></div></section> */
.contact-strip { background: var(--c-paper-2); border-block: 1px solid var(--c-rule); padding-block: var(--sp-7); }
.contact-strip__title { margin: 0 0 var(--sp-5); font-family: var(--font-serif); font-size: var(--step-2); line-height: 1.15; letter-spacing: -0.015em; color: var(--heading); }
.contact-strip__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5) var(--sp-5); }
.contact-strip__list li { margin: 0; padding-top: var(--sp-3); border-top: 1px solid var(--rule-strong); }
.contact-strip__list li > span { display: block; margin-bottom: var(--sp-1); font: 600 var(--step--2)/1.3 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.contact-strip__list a, .contact-strip__list b { font-family: var(--font-serif); font-weight: 500; font-size: var(--step-1); line-height: 1.25; color: var(--heading); text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.contact-strip__list a:hover { color: var(--link-hover); }
@media (min-width: 36rem) { .contact-strip__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 56rem) { .contact-strip__list { grid-template-columns: minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 1.6fr) minmax(0, 1.2fr); } }

/* ---------- 7.13 Language switch strip ----------
   <aside class="lang-strip" lang="es"><div class="wrap lang-strip__inner"><p>Hablo español. Esta página también está en español.</p>
     <a class="btn btn-secondary btn-small" href="/es/" hreflang="es">Ver en español</a></div></aside> */
.lang-strip { background: var(--c-paper-2); border-block: 1px solid var(--c-rule); }
.lang-strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3) var(--sp-5); padding-block: var(--sp-4); }
.lang-strip p { margin: 0; font-family: var(--font-serif); font-size: var(--step-1); line-height: 1.3; color: var(--heading); letter-spacing: -0.01em; }
.lang-strip .btn { flex: none; }

/* ---------- 7.14 Index list: a ruled list of links (coverage lines, areas, guides) ----------
   <ul class="index"><li><a href="/auto-insurance/"><span class="index__title">Auto</span><span class="index__desc">Personal and commercial.</span></a></li> ...</ul> */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.index > li { margin: 0; border-bottom: 1px solid var(--rule); }
.index a { display: grid; gap: 0.15rem var(--sp-5); align-items: baseline; padding: var(--sp-4) 2rem var(--sp-4) 0; position: relative; color: var(--heading); text-decoration: none; }
.index a::after { content: "\2192"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); color: var(--marker); font-size: 1.25rem; transition: transform 0.15s ease; }
.index a:hover { background: var(--tint); color: var(--heading); }
.index a:hover::after { transform: translate(4px, -50%); }
.index__title { font-family: var(--font-serif); font-size: var(--step-2); line-height: 1.15; font-weight: 500; letter-spacing: -0.015em; }
.index__desc { font-size: var(--step--1); color: var(--text-2); }
@media (min-width: 48rem) { .index a { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .index a:hover { padding-left: var(--sp-3); } .index a { transition: padding 0.15s ease, background-color 0.15s ease; } }

/* ---------- 7.15 Ruled columns: three short items without boxes ----------
   <div class="ruled-cols"><article class="ruled-cols__item"><h3>Title</h3><p>..</p><a class="card-more" href="..">Link</a></article> ..</div> */
.ruled-cols, .feature-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-6) var(--sp-7); }
@media (min-width: 40rem) { .ruled-cols, .feature-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .ruled-cols, .feature-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ruled-cols--2 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .ruled-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ruled-cols__item, .feature-card { position: relative; display: flex; flex-direction: column; margin: 0; padding-top: var(--sp-4); border-top: 2px solid var(--heading); }
.ruled-cols__item h3, .feature-card h3 { margin: 0 0 0.4em; font-size: var(--step-2); line-height: 1.15; }
.ruled-cols__item h3 a, .feature-card h3 a { color: var(--heading); text-decoration: none; }
.ruled-cols__item h3 a::after, .feature-card h3 a::after { content: ""; position: absolute; inset: 0; }
.ruled-cols__item:hover h3 a, .feature-card:hover h3 a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.ruled-cols__item p, .feature-card p { margin: 0 0 var(--sp-3); color: var(--text-2); font-size: var(--step--1); }
.ruled-cols__item .card-more, .feature-card .card-more { margin-top: auto; padding-top: var(--sp-2); }
.feature-cards > li { margin: 0; display: flex; }
.feature-card { width: 100%; }
.ruled-cols__item:focus-within, .feature-card:focus-within { outline: 2px solid var(--focus); outline-offset: 6px; }
.ruled-cols__item h3 a:focus-visible, .feature-card h3 a:focus-visible { outline: none; box-shadow: none; }
.feature-card .chip-icon { margin-bottom: var(--sp-3); }

/* ==========================================================================
   8. Content components
   ========================================================================== */

/* ---------- Photographs in the flow ----------
   <figure class="pic pic-md"><picture>..</picture><figcaption>Stock photo, for illustration only.</figcaption></figure>
   .pic-md / .pic-spot / .pic-mini = 4:3, .pic-card / .pic-place = 3:2, .pic-wide = 16:9; .pp-t / .pp-m / .pp-b move the crop up, middle, down. */
.pic, .figure { margin: 0; }
.pic picture, .figure picture { overflow: hidden; border-radius: var(--r-photo); background: var(--c-paper-2); }
.pic img, .figure img { display: block; width: 100%; height: auto; object-fit: cover; }
.pic-md img, .pic-spot img, .pic-mini img { aspect-ratio: 4 / 3; }
.pic-card img, .pic-place img { aspect-ratio: 3 / 2; }
.pic-wide img { aspect-ratio: 16 / 9; }
.pic.pp-t img { object-position: 50% 8%; }
.pic.pp-m img { object-position: 50% 45%; }
.pic.pp-b img { object-position: 50% 68%; }
.pic figcaption, .figure figcaption { margin-top: var(--sp-2); font-size: var(--step--2); line-height: 1.4; color: var(--text-2); }

/* Illustrations kept as diagrams (maps, declarations page). Never a hero. */
.illo { position: relative; margin: 0; background: #fff; border: 1px solid var(--c-rule); border-radius: var(--r-box); overflow: hidden; }
.illo img { display: block; width: 100%; height: auto; }
.js .illo:not(.is-ready) img { visibility: hidden; }
.illo.is-missing { display: none; }
.illo figcaption { padding: var(--sp-2) var(--sp-3); font-size: var(--step--2); color: var(--text-2); border-top: 1px solid var(--rule); }
.illo-plain { background: none; border: 0; border-radius: 0; overflow: visible; }

/* ---------- Tables ----------
   <div class="table-wrap" role="region" aria-labelledby=".." tabindex="0"><table class="table"><caption>..</caption><thead>..</thead><tbody>..</tbody></table></div>
   Older name: .ctable-wrap / .ctable (same look). Highlight a column with .col-hl. Cells can hold <span class="yes">, .no, .maybe. */
.table-wrap, .ctable-wrap { overflow-x: auto; border-block: 1px solid var(--rule-strong); }
.table, .ctable { width: 100%; min-width: 34rem; margin: 0; border-collapse: collapse; font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.table caption, .ctable caption { padding: var(--sp-3) 0; text-align: left; font: 600 var(--step--1)/1.3 var(--font-sans); color: var(--heading); }
.table th, .table td, .ctable th, .ctable td { padding: 0.85rem 1rem 0.85rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.table thead th, .ctable thead th { font: 600 var(--step--2)/1.3 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); border-bottom: 2px solid var(--heading); }
.table tbody th, .ctable tbody th { width: 28%; font-weight: 650; color: var(--heading); }
.table tbody tr:last-child > *, .ctable tbody tr:last-child > * { border-bottom: 0; }
/* Comparison tables that stack on phones: add class table--stack and data-label="Column name" on each td */
@media (max-width: 40rem) {
  .table--stack { min-width: 0; }
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack th, .table--stack td { display: block; }
  .table--stack tr { padding: var(--sp-3) 0; border-bottom: 1px solid var(--rule); }
  .table--stack th, .table--stack td { padding: 0.15rem 0; border-bottom: 0; width: auto; }
  .table--stack td::before { content: attr(data-label); display: block; font: 600 var(--step--2)/1.4 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
}
.table .col-hl, .ctable .col-hl { background: var(--c-paper-2); padding-left: var(--sp-3); }
.ctable-note { margin-top: var(--sp-3); font-size: var(--step--2); color: var(--text-2); }
.yes, .no, .maybe { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 650; }
.yes::before, .no::before, .maybe::before { content: ""; width: 0.9rem; height: 0.9rem; flex: none; background: currentColor; -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat; }
.yes { color: var(--c-ok); --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5l4 4 8-9' fill='none' stroke='black' stroke-width='2.2'/%3E%3C/svg%3E"); }
.no { color: var(--c-no); --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 3l10 10M13 3L3 13' fill='none' stroke='black' stroke-width='2.2'/%3E%3C/svg%3E"); }
.maybe { color: var(--c-accent-ink); --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h12' fill='none' stroke='black' stroke-width='2.2'/%3E%3C/svg%3E"); }

/* ---------- Lists ---------- */
/* Check list */
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.75rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.4em; width: 1rem; height: 1rem; background: var(--marker);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5l4 4 8-9' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5l4 4 8-9' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (min-width: 56rem) { .ticks.two-col { columns: 2; column-gap: var(--sp-7); } .ticks.two-col li { break-inside: avoid; } }
ol.steps { padding-left: 1.4rem; }
ol.steps li { margin-bottom: 0.6rem; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { margin: 0; padding: 0.5rem 0; border-bottom: 1px solid var(--rule); }
.link-list li:last-child { border-bottom: 0; }

/* Definition list: label on the left, value on the right
   <dl class="deflist"><div><dt>Hours</dt><dd>Mon to Fri 9 AM to 7 PM</dd></div> ..</dl> */
.deflist { margin: 0; border-top: 1px solid var(--rule-strong); }
.deflist > div { display: grid; gap: 0.15rem var(--sp-5); padding: var(--sp-3) 0; border-bottom: 1px solid var(--rule); }
.deflist dt { font: 600 var(--step--2)/1.5 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.deflist dd { margin: 0; }
@media (min-width: 40rem) { .deflist > div { grid-template-columns: 11rem minmax(0, 1fr); } }
@media (min-width: 56rem) { .deflist > div { grid-template-columns: 13rem minmax(0, 1fr); } }
/* long labels read better in sentence case */
.deflist--plain dt { text-transform: none; letter-spacing: 0; font-size: var(--step--1); }
/* narrow fact column: stack label over value until there is room */
@media (max-width: 79.99rem) { .intro__fact .deflist > div { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 80rem) { .intro__fact .deflist > div { grid-template-columns: 7.5rem minmax(0, 1fr); } }
/* a footnote or closing line right under a list or table needs air above it */
.index + p, .table-wrap + p, .ctable-wrap + p, .deflist + p, .ticks + p { margin-top: var(--sp-4); }

/* ---------- Quotes, notes, panels ---------- */
.pull-quote { position: relative; margin: var(--sp-6) 0; padding: 0 0 0 var(--sp-5); border-left: 3px solid var(--c-accent); }
.pull-quote blockquote { margin: 0; }
.pull-quote p { font-family: var(--font-serif); font-size: var(--step-2); line-height: 1.3; font-weight: 400; font-style: italic; letter-spacing: -0.01em; color: var(--heading); margin: 0 0 var(--sp-3); }
.pull-quote figcaption { font-size: var(--step--1); font-weight: 600; color: var(--text-2); }
.paid-split > .pull-quote { margin-top: 0; }

.note { margin: var(--sp-5) 0; padding: var(--sp-4) var(--sp-5); background: var(--c-paper-2); border-left: 3px solid var(--c-navy); border-radius: 0 var(--r-box) var(--r-box) 0; color: var(--text); }
.note > :last-child { margin-bottom: 0; }
.panel { margin: var(--sp-4) 0; padding: var(--sp-5); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-box); }
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
/* Term life quote tool box (the two term-quotes pages): a .panel with a heavier top rule and more room on wide screens */
.tool-box { margin: 0; border-top: 3px solid var(--c-navy); }
.tool-box .intro__text h2 { max-width: none; }
@media (min-width: 56rem) { .tool-box { padding: var(--sp-6) var(--sp-7); } }
/* Where BackNine's embedded tool draws itself (js/term-embed.js). Full width of the panel; room reserved so the page doesn't jump. */
.term-quote-mount { margin: var(--sp-5) 0; min-height: 14rem; max-width: 100%; overflow-x: auto; }
.term-quote-status, .term-quote-fallback { margin: var(--sp-4) 0; }
.term-quote-status[hidden], .term-quote-fallback[hidden] { display: none; }
/* "Who is offering this": the licensee, license number, agency, office and phone as plain facts under the hero of the two
   term-quotes pages, with the legal links. Two columns on a phone (name and office span both), five on a wide screen. */
.idstrip { padding-block: var(--sp-5); background: var(--surface); border-bottom: 1px solid var(--rule); }
.idstrip .kicker { margin-bottom: var(--sp-3); }
.idstrip__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4) var(--sp-5); margin: 0; }
.idstrip__list > div:first-child, .idstrip__list > div:nth-child(4) { grid-column: 1 / -1; }
.idstrip__list dt { margin: 0 0 var(--sp-1); font: 600 var(--step--2)/1.3 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.idstrip__list dd { margin: 0; font-weight: 600; line-height: 1.35; color: var(--heading); overflow-wrap: anywhere; }
.idstrip__list dd small { display: block; margin-top: 0.15rem; font: 400 var(--step--1)/1.4 var(--font-sans); color: var(--text-2); }
.idstrip__links { margin: var(--sp-4) 0 0; font-size: var(--step--1); line-height: 1.7; }
@media (min-width: 64rem) {
  .idstrip__list { grid-template-columns: 1.6fr 0.9fr 1.1fr 1.5fr 1fr; gap: var(--sp-4) var(--sp-6); }
  .idstrip__list > div:first-child, .idstrip__list > div:nth-child(4) { grid-column: auto; }
}
.callout { display: grid; gap: var(--sp-4); align-items: center; padding: var(--sp-5); background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--c-navy); border-radius: var(--r-box); }
.callout h2, .callout h3 { margin: 0 0 0.3em; font-size: var(--step-2); }
.callout p { margin: 0; }
.callout .actions { margin: 0; }
@media (min-width: 56rem) { .callout { grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-6); padding: var(--sp-6); } }
@media (min-width: 56rem) { .callout.has-art { grid-template-columns: 9rem minmax(0, 1fr) auto; } }
.callout .pic, .callout .illo { width: 9rem; }
.callout .pic figcaption { font-size: 0.6875rem; }
/* The compensation disclosure ("How I'm paid"): plain, readable, bordered */
.paid { max-width: 52rem; padding: var(--sp-5) var(--sp-5) var(--sp-3); background: var(--surface); border: 1px solid var(--rule-strong); border-left: 3px solid var(--c-navy); border-radius: 0 var(--r-box) var(--r-box) 0; }
.paid h2 { margin-top: 0; font-size: var(--step-2); }
/* wide screens: heading left, text right, on the same grid as the FAQ, instead of a box hugging the left edge */
@media (min-width: 56rem) {
  .paid { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: var(--sp-8); padding: var(--sp-5) 0 var(--sp-2); background: none; border: 0; border-top: 2px solid var(--heading); border-radius: 0; }
  .paid > h2, .paid > h3 { grid-column: 1; grid-row: 1 / span 6; }
  .paid > :not(h2):not(h3) { grid-column: 2; max-width: var(--prose); }
}
.paid-split { align-items: start; }
.gaps { padding: var(--sp-5); background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--r-box); }
.gaps-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.gaps-head h2, .gaps-head h3 { margin: 0; font-size: var(--step-2); }
.gap-list { list-style: none; padding: 0; margin: 0; counter-reset: gap; display: grid; gap: 0 var(--sp-7); }
@media (min-width: 48rem) { .gap-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gaps { padding: var(--sp-6); } }
.gap-list li { position: relative; padding: var(--sp-3) 0 var(--sp-3) 2.75rem; margin: 0; border-top: 1px solid var(--rule); counter-increment: gap; }
.gap-list li::before { content: counter(gap, decimal-leading-zero); position: absolute; left: 0; top: var(--sp-3); font-family: var(--font-serif); font-size: var(--step-1); line-height: 1.3; color: var(--marker); font-variant-numeric: lining-nums tabular-nums; }
.gap-list strong { display: block; font-family: var(--font-serif); font-size: var(--step-1); font-weight: 600; }
.gaps .gap-list { margin: 0; }

/* ---------- Forms ---------- */
.quote-form { padding: var(--sp-5); background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--r-box); }
@media (min-width: 48rem) { .quote-form { padding: var(--sp-6) var(--sp-7); } }
.quote-form fieldset { min-width: 0; margin: 0 0 var(--sp-5); padding: 0; border: 0; }
.quote-form legend { padding: 0; margin-bottom: var(--sp-3); font-family: var(--font-serif); font-size: var(--step-2); line-height: 1.2; font-weight: 500; color: var(--heading); }
.field { margin-bottom: var(--sp-4); }
.field label, .label { display: block; margin-bottom: 0.35rem; font-weight: 600; font-size: var(--step--1); color: var(--heading); }
.field .opt { font-weight: 400; color: var(--text-2); }
.req { color: var(--c-error); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="date"], .field input[type="month"], .field select, .field textarea,
.code-row input {
  display: block; width: 100%; min-height: 3rem; padding: 0.6rem 0.8rem;
  font: inherit; color: var(--c-text); background: #fff;
  border: 1.5px solid var(--c-field); border-radius: var(--r);
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--c-navy); }
.field input:focus, .field select:focus, .field textarea:focus, .code-row input:focus { border-color: var(--c-navy); outline: 2px solid var(--c-navy); outline-offset: 1px; box-shadow: none; }
.field input:disabled, .field select:disabled, .field textarea:disabled { background: var(--c-paper-2); color: var(--c-text-2); cursor: not-allowed; }
.field-row { display: grid; gap: 0 var(--sp-4); }
@media (min-width: 40rem) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice-grid { display: grid; gap: var(--sp-2); grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.check { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0; font-weight: 400; }
.check input { flex: none; width: 1.2rem; height: 1.2rem; margin: 0.2rem 0 0; accent-color: var(--c-navy); }
.choice-grid .check { padding: 0.6rem 0.75rem; background: #fff; border: 1.5px solid var(--c-rule-2); border-radius: var(--r); cursor: pointer; }
.choice-grid .check:hover { border-color: var(--c-navy); }
.consent { margin: var(--sp-3) 0 var(--sp-4); padding: var(--sp-3) var(--sp-4); background: var(--c-paper); border: 1px solid var(--c-rule); border-radius: var(--r); font-size: var(--step--1); }
.hint { margin: 0.3rem 0 0; font-size: var(--step--1); color: var(--text-2); }
.form-note { margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--rule); font-size: var(--step--1); color: var(--text-2); }
.form-note strong { color: var(--text); }
.hidden-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Quote form: language link, optional sections, inline messages ----------
   Sections are <details class="q-detail" data-for="auto"> holding a <fieldset class="q-fields">.
   With JavaScript off they all show, collapsed. With it on, site.js shows a section only while one of
   its coverage boxes is checked. Messages are <p class="q-msg"> under a field (empty = not shown). */
.quote-form .choice-grid { grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr)); }
.quote-form .choice-grid .check { align-items: center; min-height: 3rem; }
.quote-form .choice-grid .check input { margin: 0; }
.quote-form .choice-grid .check:has(input:checked) { border-color: var(--c-navy); background: var(--tint, var(--c-paper)); }
.quote-form fieldset > .hint { margin: 0 0 var(--sp-3); }
.lang-offer { margin: 0 0 var(--sp-4); font-size: var(--step--1); color: var(--text-2); }
.lang-offer a { font-weight: 600; }
.lang-offer.is-prominent { padding: var(--sp-3) var(--sp-4); background: var(--c-paper-2); border-left: 3px solid var(--c-accent); border-radius: 0 var(--r) var(--r) 0; font-size: var(--step-0); color: var(--text); }
.lang-offer.is-prominent a { font-weight: 700; }
.q-switch { margin: 0.4rem 0 0; font-size: var(--step--1); color: var(--text); }
.q-note { margin: 0 0 var(--sp-5); padding: var(--sp-3) var(--sp-4); background: var(--c-paper); border-left: 3px solid var(--heading); border-radius: 0 var(--r) var(--r) 0; font-size: var(--step--1); color: var(--text); }
.q-msg { margin: 0.3rem 0 0; font-size: var(--step--1); line-height: 1.4; }
.q-msg:empty { display: none; }
.q-msg.is-error { color: var(--c-error); font-weight: 600; }
.q-msg.is-hint { color: var(--text); }
.q-use { display: inline-block; min-height: 2.75rem; padding: 0 0.25rem; font: inherit; font-weight: 600; color: var(--link); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.q-use:hover { color: var(--link-hover); }
.field input[aria-invalid="true"] { border-color: var(--c-error); }
.q-detail { margin: var(--sp-4) 0; border-top: 2px solid var(--heading); border-bottom: 1px solid var(--rule); }
.js .q-detail { display: none; }
.js .q-detail.is-on { display: block; }
.q-detail > summary { position: relative; list-style: none; cursor: pointer; padding: var(--sp-4) 3rem var(--sp-4) 0; min-height: 3rem; font-family: var(--font-serif); font-weight: 500; font-size: var(--step-1); line-height: 1.3; letter-spacing: -0.01em; color: var(--heading); }
.q-detail > summary::-webkit-details-marker { display: none; }
.q-detail > summary::before, .q-detail > summary::after { content: ""; position: absolute; right: 0.25rem; top: 50%; width: 1rem; height: 2px; background: var(--heading); transition: transform 0.2s ease; }
.q-detail > summary::after { transform: rotate(90deg); }
.q-detail[open] > summary::after { transform: rotate(0deg); }
.q-detail > summary:hover { color: var(--link-hover); }
.q-detail > .q-fields { margin: 0; padding: 0 0 var(--sp-2); }
.q-sec-hint { margin: 0 0 var(--sp-4); }
/* Two fields side by side: reserve two label lines so the boxes line up even when one label wraps. */
@media (min-width: 40rem) { .q-fields .field-row .field > label { display: flex; align-items: flex-end; min-height: 2.6em; line-height: 1.3; } }
@media (prefers-reduced-motion: reduce) { .q-detail > summary::before, .q-detail > summary::after { transition: none; } }
@media (forced-colors: active) { .q-detail > summary::before, .q-detail > summary::after { background: CanvasText; } }

/* Reference-code page (/r/) */
.code-entry label { display: block; margin-bottom: 0.35rem; font-weight: 600; color: var(--heading); }
.code-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.code-row input { flex: 1 1 12rem; min-width: 0; font-size: 1.15rem; letter-spacing: 0.08em; text-transform: uppercase; }
.code-row .btn { flex: none; }
.msg { min-height: 1.6em; margin: 0.6rem 0 0.4rem; font-weight: 500; }
.msg:empty { min-height: 0; margin: 0; }
.msg.is-error { padding: 0.5rem 0.75rem; color: var(--c-error); background: #fdecea; border-left: 3px solid var(--c-error); border-radius: 3px; font-weight: 650; }
.code-row input[aria-invalid="true"] { border-color: var(--c-error); }
#code-result .actions { margin-top: var(--sp-2); }
.code-show { margin: var(--sp-4) 0; padding: var(--sp-4); background: var(--c-navy); color: #fff; border-radius: var(--r-box); text-align: center; }
.code-show .label { color: #e9eef7; font-weight: 500; }
.code-value { display: block; min-height: 1.2em; margin: 0.2rem 0; font-family: var(--font-mono); font-size: clamp(2rem, 9vw, 3rem); font-weight: 700; letter-spacing: 0.12em; line-height: 1.2; }

/* ---------- Contact card and avatar ---------- */
.contact-card { padding: var(--sp-5); background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--r-box); }
.contact-card .cc-head { display: flex; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.contact-card .cc-name { margin: 0; font-family: var(--font-serif); font-size: var(--step-1); font-weight: 600; line-height: 1.2; color: var(--heading); }
.contact-card .cc-role { margin: 0; font-size: var(--step--2); line-height: 1.4; color: var(--text-2); }
.contact-card dl { margin: 0; font-size: var(--step--1); }
.contact-card dt { margin-top: var(--sp-3); font: 600 var(--step--2)/1.3 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.contact-card dd { margin: 0.1rem 0 0; }
.contact-card .cc-actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--sp-2); margin: var(--sp-4) 0 var(--sp-2); }
.contact-card .cc-actions .btn { min-height: 2.75rem; padding: 0.5rem; font-size: var(--step--2); white-space: normal; }
.side .contact-card .cc-head { flex-direction: column; align-items: flex-start; }
.side .contact-card .cc-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.side .contact-card .cc-actions .btn:last-child:nth-child(3) { grid-column: 1 / -1; }
.contact-card .cc-foot { margin: var(--sp-3) 0 0; font-size: var(--step--2); color: var(--text-2); }
.avatar { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; overflow: hidden; border-radius: 50%; background: var(--c-navy); color: #fff; font-family: var(--font-serif); font-weight: 500; font-size: 1.4rem; letter-spacing: 0.02em; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.avatar.has-photo img { opacity: 1; }
.avatar-lg { width: 112px; height: 112px; font-size: 2.2rem; }

/* ==========================================================================
   9. Footer, mobile call bar, call/text panel
   ========================================================================== */
.site-footer { background: var(--c-ink); font-size: var(--step--1); padding: var(--sp-8) 0 var(--sp-5); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--c-accent); color: #fff; }
.footer-grid { display: grid; gap: var(--sp-7) var(--sp-6); }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .footer-grid { grid-template-columns: 1.2fr 1.9fr 0.8fr 0.9fr; gap: var(--sp-7); } }
.footer-brand { display: flex; align-items: center; gap: 0.65rem; margin: 0 0 var(--sp-4); font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; color: #fff; white-space: nowrap; }
.footer-brand svg { width: 36px; height: 36px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28); }
.footer-nap { margin-bottom: var(--sp-3); font-style: normal; line-height: 1.7; color: var(--text); }
.footer-nap .nap-name { font-weight: 650; color: #fff; }
.footer-hours { margin: 0 0 var(--sp-3); color: var(--text); }
.footer-links h2 { margin: 0 0 var(--sp-3); font: 600 var(--step--2)/1.3 var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--kicker); }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0 0 0.45rem; break-inside: avoid; }
.footer-links a { color: #dde4f0; }
@media (min-width: 40rem) { .footer-links ul:has(li:nth-child(10)) { columns: 2; column-gap: var(--sp-5); } }
.footer-bottom { margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--rule); font-size: var(--step--2); line-height: 1.6; color: var(--text-2); }
.footer-bottom p { max-width: 62rem; margin: 0 0 0.6rem; }
.footer-bottom a { text-decoration: underline; text-decoration-color: color-mix(in srgb, #fff 45%, transparent); }
.license-line { font-size: var(--step--1); font-weight: 600; color: #fff; }

.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--c-navy); border-top: 1px solid rgba(255, 255, 255, 0.18); padding-bottom: env(safe-area-inset-bottom, 0); }
.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem; min-height: var(--bar-h); color: #fff; font-weight: 650; font-size: 0.8125rem; text-decoration: none; }
.mobile-bar a + a { border-left: 1px solid rgba(255, 255, 255, 0.18); }
.mobile-bar a.mb-call { background: var(--c-accent); color: var(--c-ink); }
.mobile-bar svg { width: 22px; height: 22px; }
.mobile-bar a:focus-visible { outline: 2px solid #fff; outline-offset: -6px; box-shadow: none; }
.mobile-bar a.mb-call:focus-visible { outline-color: var(--c-ink); }
body { padding-bottom: calc(var(--bar-h) + 1px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 47.99rem) { html { scroll-padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px) + 1rem); } }
@media (min-width: 48rem) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

/* Call / Text panel on computers (built by site.js) */
.contact-panel { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cp-backdrop { position: absolute; inset: 0; background: rgba(11, 21, 48, 0.62); }
.cp-box { position: relative; width: 100%; max-width: 30rem; max-height: calc(100vh - 32px); overflow-y: auto; padding: var(--sp-5); background: #fff; color: var(--c-text); border-radius: var(--r-box); border-top: 3px solid var(--c-accent); box-shadow: 0 20px 50px rgba(11, 21, 48, 0.35); }
.cp-title { margin: 0 2.5rem 0.4rem 0; font-size: 1.5rem; }
.cp-title:focus { outline: none; box-shadow: none; }
.cp-intro { margin: 0; color: var(--c-text-2); font-size: var(--step--1); }
.cp-number { margin: 0 0 0.6rem; font-family: var(--font-serif); font-size: 2rem; font-weight: 500; color: var(--c-navy); white-space: nowrap; user-select: all; -webkit-user-select: all; }
.cp-help { margin: 0 0 var(--sp-4); }
.cp-actions { display: flex; flex-direction: column; gap: var(--sp-2); }
.cp-actions .btn { width: 100%; white-space: normal; }
.cp-status { min-height: 1.5em; margin: 0.6rem 0 0; font-weight: 650; color: var(--c-ok); }
.cp-status.is-error { color: var(--c-error); }
.cp-hours { margin: 0.25rem 0 0; font-size: var(--step--1); }
.cp-close { position: absolute; top: 0.6rem; right: 0.6rem; width: 44px; height: 44px; border: 0; border-radius: var(--r); background: transparent; color: var(--c-navy); font: inherit; font-size: 1.9rem; line-height: 1; cursor: pointer; }
.cp-close:hover { background: var(--c-paper-2); }
html.cp-open, html.cp-open body { overflow: hidden; }
@media (forced-colors: active) { .cp-box { border: 2px solid CanvasText; } }

/* ==========================================================================
   10. LEGACY CLASSES
   Pages that have not moved to the pattern kit still use these class names. They are restyled in the
   new system (flat, ruled, tokens) so nothing breaks. New pages should use the kit in section 7 and 8.
   Classes with no rules at all any more (kept in markup, harmless): accent-gold/teal/coral/leaf/ocean/navy,
   eyebrow-teal/coral/leaf/ocean, chip colour variants, hero-alt, the to- and from- divider colours, .divider (hidden).
   ========================================================================== */

/* ---------- Old section dividers and decoration: gone ---------- */
.divider { display: none; }
.float-badge .chip-icon { display: none; }

/* ---------- Heroes (older markup) ---------- */
.page-hero { background: var(--c-paper); border-bottom: 1px solid var(--c-rule); padding: var(--sp-5) 0 var(--sp-7); }
.page-hero h1 { max-width: 20ch; margin: var(--sp-3) 0 var(--sp-4); font-size: var(--step-4); line-height: 1.06; }
.page-hero .lead { max-width: var(--prose); margin-bottom: 0; }
.page-hero .actions { margin-top: var(--sp-5); }
.page-hero-grid { display: grid; gap: var(--sp-6); align-items: center; }
.page-hero-art { position: relative; }
.page-hero-art .illo { max-width: 13rem; margin-left: auto; }
@media (min-width: 56rem) {
  .page-hero { padding-bottom: var(--sp-8); }
  .page-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-8); }
}
.hero-note { max-width: 36rem; margin-top: var(--sp-4); font-size: var(--step--1); color: var(--text-2); }
.float-badge { margin: var(--sp-3) 0 0; font-size: var(--step--1); font-weight: 600; color: var(--text); }
.float-badge small { margin-left: 0.4rem; font-size: inherit; font-weight: 400; color: var(--text-2); }

/* Home page hero (photo behind text) */
.hero-v2 { position: relative; isolation: isolate; overflow: hidden; background: var(--c-paper); padding: var(--sp-7) 0; }
.hero-photo { background: var(--c-ink); padding: clamp(5.5rem, 14vw, 10rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-photo .hero-bg { position: absolute; inset: 0; z-index: -1; margin: 0; }
.hero-photo .hero-bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.hero-photo .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 21, 48, 0.8) 0%, rgba(11, 21, 48, 0.3) 60%, rgba(11, 21, 48, 0.15) 100%), linear-gradient(90deg, rgba(11, 21, 48, 0.62) 0%, rgba(11, 21, 48, 0.22) 60%, rgba(11, 21, 48, 0) 85%); }
.hero-v2-grid { display: grid; gap: var(--sp-5); }
.hero-v2-copy { max-width: 44rem; }
.hero-v2 h1 { max-width: 16ch; font-size: var(--step-5); }
.hero-v2 .lead { margin-top: var(--sp-4); }
.hero-photo .lead { color: #f1f4fa; }
.hero-photo .hero-note a { color: #fff; }
.hero-v2-art { display: flex; flex-wrap: wrap; gap: 0.25rem var(--sp-6); }
.hero-v2-art .float-badge { margin: 0; color: var(--text); }

/* ---------- Illustration slots: small and quiet ---------- */
.illo-spot, .illo-mini, .illo-md, .illo-hero, .illo-square, .illo-wide { border-radius: var(--r-box); }
.breakout { margin-top: 0; }
.side .panel .illo-spot, .side .panel .pic { margin: 0 0 var(--sp-4); }
.rail-head { margin-bottom: var(--sp-6); }
.rail-head .section-head { margin-bottom: 0; }
.rail-head .illo { max-width: 11rem; justify-self: end; }
@media (max-width: 55.99rem) { .rail-head .illo { display: none; } }
.split-2 .split-art .illo, .split-2 .split-art .pic { max-width: 28rem; margin-inline: auto; }
@media (min-width: 56rem) { .split-2.align-start .split-art { position: sticky; top: 6rem; } }
.split-2 .eyebrow + h2 { margin-top: 0.35rem; }

/* ---------- Icons: a plain line icon, no circle, no colour ---------- */
.chip-icon, .card-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; color: var(--heading); }
.chip-icon svg, .card-icon svg { width: 1.5rem; height: 1.5rem; }
.chip-lg { width: 2.25rem; height: 2.25rem; }
.chip-lg svg { width: 2rem; height: 2rem; }
.badge { display: inline-block; padding: 0.15rem 0.55rem; background: var(--tint); color: var(--heading); border-radius: 3px; font: 600 0.75rem/1.5 var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; }
.ribbon { position: absolute; top: var(--sp-3); right: var(--sp-3); padding: 0.15rem 0.55rem; background: var(--c-navy); color: #fff; border-radius: 3px; font: 600 0.75rem/1.5 var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; }
.example-tag { display: inline-block; margin-bottom: var(--sp-3); }
.h-side { display: flex; align-items: center; gap: var(--sp-2); margin-top: 0; font-size: var(--step-1); }

/* Highlights: a ruled row of short facts */
.highlights { list-style: none; margin: 0; padding: 0; display: grid; border-block: 1px solid var(--rule-strong); }
.highlights li { display: flex; align-items: flex-start; gap: var(--sp-3); margin: 0; padding: var(--sp-4) 0; font-size: var(--step--1); line-height: 1.4; color: var(--text-2); border-bottom: 1px solid var(--rule); }
.highlights li:last-child { border-bottom: 0; }
.highlights strong { display: block; font-size: var(--step-0); }
@media (min-width: 40rem) { .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-6); } .highlights li:nth-last-child(2) { border-bottom: 0; } }
@media (min-width: 64rem) {
  .highlights { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; }
  .highlights li { padding: var(--sp-4) var(--sp-4); border-bottom: 0; border-left: 1px solid var(--rule); }
  .highlights li:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- Steps, step rail, timeline ---------- */
.step-rail { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-5); counter-reset: rail; }
.step-rail > li { margin: 0; padding-top: var(--sp-4); border-top: 2px solid var(--heading); }
.rail-num { display: block; margin-bottom: var(--sp-2); font-family: var(--font-serif); font-size: var(--step-3); line-height: 1; font-weight: 500; letter-spacing: -0.02em; color: var(--marker); font-variant-numeric: lining-nums; }
.step-rail h3 { margin: 0 0 0.3em; font-size: var(--step-1); font-weight: 600; }
.step-rail p { margin: 0; color: var(--text-2); font-size: var(--step--1); }
@media (min-width: 56rem) { .step-rail { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--sp-6); } }
.step-rail.rail-cards > li > .rail-card { padding: 0; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 var(--sp-5); border-left: 1px solid var(--rule-strong); }
.timeline > li { position: relative; margin: 0; padding: 0 0 var(--sp-5); }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before { content: ""; position: absolute; left: calc(-1 * var(--sp-5) - 4px); top: 0.45rem; width: 7px; height: 7px; background: var(--marker); }
.tl-when { display: block; font: 600 var(--step--2)/1.4 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.tl-body h3 { margin: 0.2rem 0 0.25rem; font-size: var(--step-1); }
.tl-body p { margin: 0; color: var(--text-2); }
@media (min-width: 56rem) {
  .timeline-h { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--sp-6); padding: var(--sp-5) 0 0; border-left: 0; border-top: 1px solid var(--rule-strong); }
  .timeline-h > li { padding: 0; }
  .timeline-h > li::before { left: 0; top: calc(-1 * var(--sp-5) - 4px); }
}

/* ---------- Checklist cards, compare, versus ---------- */
.checklist-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 48rem) { .checklist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-7); } }
@media (min-width: 64rem) { .checklist-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.checklist-card { padding: var(--sp-4) 0 var(--sp-2); border-top: 2px solid var(--heading); background: none; }
.checklist-card h3 { display: flex; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-3); font-size: var(--step-2); }
.side .checklist-card { padding: var(--sp-5); background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--r-box); }
.side .checklist-card .actions { margin-bottom: var(--sp-3); }
.checklist-card .link-list { margin: 0; }

.compare { display: grid; margin: 0; border-top: 1px solid var(--rule-strong); }
.compare > div { padding: var(--sp-4) 0; border-bottom: 1px solid var(--rule); }
.compare dt { margin-bottom: 0.2rem; font-family: var(--font-serif); font-size: var(--step-1); font-weight: 600; color: var(--heading); }
.compare dd { margin: 0; color: var(--text); }
@media (min-width: 48rem) { .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-7); } }

.versus { display: grid; border-top: 2px solid var(--heading); }
.versus-row { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--rule); }
.versus-row > * { margin: 0; padding: 0.7rem 1rem 0.7rem 0; }
.versus-row .vs-label { font-weight: 650; color: var(--heading); }
.versus-head .vs-a, .versus-head .vs-b { font: 600 var(--step--2)/1.4 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
@media (min-width: 48rem) { .versus-row { grid-template-columns: 1fr 1.3fr 1.3fr; } }
.vs-tag { display: block; font: 600 0.75rem/1.4 var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
@media (max-width: 47.99rem) { .versus-head { display: none; } }
@media (min-width: 48rem) { .vs-tag { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; } }

/* ---------- Brochure panel (text beside a photo or diagram) ---------- */
.brochure { display: grid; overflow: hidden; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--r-box); }
.brochure-art { display: flex; align-items: center; justify-content: center; padding: var(--sp-5); background: var(--c-paper-2); }
.brochure-art .illo { width: 100%; max-width: 16rem; }
.brochure-body { padding: var(--sp-5); }
.brochure-body h2, .brochure-body h3 { margin-top: 0; }
.brochure-body > :last-child { margin-bottom: 0; }
.brochure .ticks { columns: 1; }
.brochure-art.has-photo { display: block; padding: 0; }
.brochure-art.has-photo .pic { display: flex; flex-direction: column; height: 100%; }
.brochure-art.has-photo .pic picture { position: relative; flex: 1; aspect-ratio: 4 / 3; border-radius: 0; }
.brochure-art.has-photo .pic img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.brochure-art.has-photo .pic figcaption { margin: 0; padding: 0.45rem 0.9rem; background: #fff; border-top: 1px solid var(--c-rule); }
@media (min-width: 56rem) {
  .brochure { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .brochure.art-right { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .brochure.art-right .brochure-art { order: 2; }
  .brochure-art { padding: var(--sp-6); }
  .brochure-body { padding: var(--sp-6) var(--sp-7); }
  .brochure-art.has-photo { padding: 0; }
  .brochure-art.has-photo .pic picture { aspect-ratio: auto; min-height: 18rem; }
}
@media (min-width: 72rem) { .brochure .ticks.two-col { columns: 2; column-gap: var(--sp-6); } .brochure .ticks.two-col li { break-inside: avoid; } }

/* ---------- Towns and places ---------- */
.town-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-5); border-top: 1px solid var(--rule-strong); }
@media (min-width: 48rem) { .town-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.town-list li { margin: 0; border-bottom: 1px solid var(--rule); }
.town-list a { display: flex; flex-direction: column; height: 100%; padding: var(--sp-3) 0; color: var(--heading); font-weight: 650; text-decoration: none; }
.town-list a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.town-list span { font-weight: 400; font-size: var(--step--2); color: var(--text-2); }
.town-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-4); }
@media (min-width: 48rem) { .town-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-5); } }
.town-cards > li { margin: 0; display: flex; }
.town-card { display: flex; flex-direction: column; width: 100%; padding-top: var(--sp-3); border-top: 2px solid var(--heading); color: var(--heading); text-decoration: none; }
.town-card:hover { color: var(--heading); }
.town-card .illo, .town-card .pic { margin-bottom: var(--sp-3); }
.town-card .illo { border: 0; }
.town-name { font-family: var(--font-serif); font-size: var(--step-1); font-weight: 600; line-height: 1.2; }
.town-card:hover .town-name { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.town-meta { margin-top: 0.15rem; font-size: var(--step--2); color: var(--text-2); }
.town-card.is-office { border-top-color: var(--c-accent); border-top-width: 3px; }
@media (min-width: 56rem) {
  .town-intro { align-items: start; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .town-intro > div:last-child { position: sticky; top: 7rem; }
}
.place-grid, .trade-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.place-grid > li, .trade-grid > li { margin: 0; }
@media (min-width: 48rem) { .place-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); } .trade-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); } }
.trade-name { display: block; margin-top: 0.5rem; font-weight: 600; font-size: var(--step--1); line-height: 1.3; color: var(--heading); }
.trade-more { margin: var(--sp-5) 0 0; }

/* Photo cards: photo on top, title and a line below, no box */
.photo-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-6); }
.photo-cards > li { margin: 0; }
@media (min-width: 48rem) { .photo-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-5); } }
.photo-card { display: flex; flex-direction: column; height: 100%; color: var(--text); text-decoration: none; }
.photo-card:hover { color: var(--text); }
.photo-card .pc-img { position: relative; display: block; overflow: hidden; border-radius: var(--r-photo); }
.photo-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.4s ease; }
.photo-card:hover img { transform: scale(1.02); }
.photo-card .pc-tag { position: absolute; left: 0; bottom: 0; padding: 0.25rem 0.65rem; background: rgba(11, 21, 48, 0.82); color: #fff; font-size: 0.75rem; line-height: 1.4; }
.photo-card .pc-body { display: flex; flex: 1; flex-direction: column; gap: 0.3rem; padding-top: var(--sp-3); }
.photo-card .pc-title { margin: 0; font-family: var(--font-serif); font-size: var(--step-2); line-height: 1.15; color: var(--heading); }
.photo-card .pc-desc { font-size: var(--step--1); color: var(--text-2); }
.photo-card .pc-more { margin-top: auto; padding-top: 0.3rem; font-weight: 600; font-size: var(--step--1); color: var(--link); }
.photo-card:hover .pc-more { text-decoration: underline; }

/* ---------- Diagrams (real HTML text so search engines can read them) ----------
   <figure class="diagram"><figcaption class="diagram-title">..</figcaption> ...</figure> */
.diagram { margin: 0; padding: var(--sp-5); background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--r-box); }
.diagram-title { margin: 0 0 var(--sp-4); font-family: var(--font-serif); font-size: var(--step-2); font-weight: 500; line-height: 1.2; color: var(--heading); }
.diagram figcaption:not(.diagram-title), .diagram .diagram-note { margin-top: var(--sp-3); font-size: var(--step--2); color: var(--text-2); }
@media (min-width: 48rem) { .diagram { padding: var(--sp-6); } }
.diagram.diagram-bare { padding: 0; background: none; border: 0; border-radius: 0; }

/* Coverage stack (A to F) */
.stack { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.layer { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.1rem var(--sp-4); align-items: baseline; margin: 0; padding: var(--sp-3) 0; border-bottom: 1px solid var(--rule); }
.layer-key { grid-row: span 2; font-family: var(--font-serif); font-size: var(--step-2); line-height: 1; font-weight: 500; color: var(--marker); }
.layer-name { font-family: var(--font-serif); font-size: var(--step-1); font-weight: 600; color: var(--heading); }
.layer-desc { font-size: var(--step--1); color: var(--text-2); }

/* Split (A versus B) */
.split { display: grid; gap: var(--sp-5); position: relative; }
.split-side { padding: var(--sp-3) 0 var(--sp-2); border-top: 2px solid var(--heading); }
.split-side h3 { display: flex; align-items: center; gap: var(--sp-2); margin-top: 0; font-size: var(--step-1); }
.split-vs { align-self: center; justify-self: center; font-family: var(--font-serif); font-style: italic; font-size: var(--step-1); color: var(--text-2); }
@media (min-width: 48rem) { .split { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } }

/* Covered grid (renters) */
.cov-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: var(--sp-3); }
.cov-item { display: flex; flex-direction: column; gap: 0.2rem; margin: 0; padding: var(--sp-3) var(--sp-4); background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--rule-strong); border-radius: 0 var(--r-box) var(--r-box) 0; }
.cov-label { font-family: var(--font-serif); font-size: var(--step-1); font-weight: 600; color: var(--heading); }
.cov-desc { font-size: var(--step--1); color: var(--text-2); }
.cov-item.is-covered { border-left-color: var(--c-ok); }
.cov-item.is-not { border-left-color: var(--c-no); }
.cov-item.is-maybe { border-left-color: var(--c-accent); }
.cov-legend { display: flex; flex-wrap: wrap; gap: 0.5rem var(--sp-5); margin: 0 0 var(--sp-4); padding: 0; list-style: none; font-size: var(--step--1); }
.cov-legend li { margin: 0; }

/* Limits (auto 25/50/10) */
.limits { display: grid; gap: var(--sp-3); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.limit-box { padding: var(--sp-3) 0 0; border-top: 2px solid var(--heading); }
.limit-num { display: block; font-family: var(--font-serif); font-weight: 500; font-size: var(--step-4); line-height: 1.05; color: var(--heading); font-variant-numeric: lining-nums tabular-nums; }
.limit-label { display: block; margin-top: 0.3rem; font-size: var(--step--1); line-height: 1.35; color: var(--text-2); }
.limits-sep { grid-column: 1 / -1; font-size: var(--step--1); color: var(--text-2); }

/* Decision chart (who needs it) */
.decision { display: grid; gap: var(--sp-4); }
.dc-q { margin: 0; padding: var(--sp-3) var(--sp-4); background: var(--c-navy); color: #fff; font-weight: 650; border-radius: var(--r-box); }
.dc-branches { display: grid; gap: var(--sp-4); }
@media (min-width: 40rem) { .dc-branches { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dc-branches > .dc-branch:nth-child(3):last-child { grid-column: 1 / -1; } }
.dc-branch { padding: var(--sp-3) 0 var(--sp-1); border-top: 3px solid var(--rule-strong); }
.dc-yes { border-top-color: var(--c-ok); }
.dc-no { border-top-color: var(--c-no); }
.dc-maybe { border-top-color: var(--c-accent); }
.dc-label { margin: 0 0 0.35rem; font: 700 var(--step--2)/1.3 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--heading); }
.dc-yes .dc-label { color: var(--c-ok); }
.dc-no .dc-label { color: var(--c-no); }

/* Coverage map (small business) */
.coverage-map { display: grid; gap: var(--sp-5); align-items: start; }
.cm-center { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 6rem; padding: var(--sp-4) var(--sp-5); background: var(--c-navy); color: #fff; border-radius: var(--r-box); font-family: var(--font-serif); font-size: var(--step-2); font-weight: 500; line-height: 1.2; }
.cm-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0 var(--sp-5); }
.cm-items li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.1rem var(--sp-3); align-items: center; margin: 0; padding: var(--sp-3) 0; border-top: 1px solid var(--rule); }
.cm-items .chip-icon { grid-row: span 2; }
.cm-items strong { font-family: var(--font-serif); font-size: var(--step-1); font-weight: 600; }
.cm-items span:not(.chip-icon) { font-size: var(--step--1); color: var(--text-2); line-height: 1.35; }
@media (min-width: 64rem) { .coverage-map { grid-template-columns: 14rem minmax(0, 1fr); gap: var(--sp-7); } }

/* ---------- Doc pages (privacy, terms, accessibility) ---------- */
.legal-body .prose h2 { font-size: var(--step-2); }
.legal-body .prose > .panel:first-child { margin-top: 0; }
.prose > .eyebrow + h2 { margin-top: 0.35rem; }

/* ==========================================================================
   11. Utilities, motion, print
   ========================================================================== */
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-md, .mt-5 { margin-top: var(--sp-5) !important; }
.mt-lg, .mt-7 { margin-top: var(--sp-7) !important; }
.measure { max-width: 42rem; }
.measure-wide { max-width: 46rem; }
.hub-head { padding-block: var(--section-y); }
/* small phones: like the heroes, less space above the copy so the first button clears the 64px call bar (es/seguros at 375x667) */
@media (max-width: 30rem) { .hub-head { padding-top: var(--sp-5); } }
/* heading look for side columns without changing the outline */
.h3 { font-size: var(--step-2); line-height: 1.15; }
.h4 { font-size: var(--step-1); line-height: 1.2; }
.mt-xl { margin-top: var(--sp-8) !important; }
.mb-0 { margin-bottom: 0 !important; }

/* Motion: colour and small shifts only; all of it off when the visitor asks for less motion */
@media (prefers-reduced-motion: no-preference) {
  .btn, .nav-list a, .lang-switch, .town-card, .faq summary, .index a { transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .btn:active { transform: none; }
}

@media (forced-colors: active) {
  .btn { border: 2px solid ButtonText; }
  .faq summary::before, .faq summary::after { background: CanvasText; }
}

@media print {
  .topbar, .site-nav, .nav-toggle, .mobile-bar, .actions, .skip, .quote-form, .contact-card .cc-actions, .divider, .vb-toggle, .lang-strip, .gallery, .cta-band .actions { display: none !important; }
  .site-header { position: static; border: 0; }
  body { padding: 0; background: #fff; color: #000; font-size: 11pt; }
  .on-dark, .section-navy, .section-ink, .cta-band, .site-footer, .hero, .hero-photo, .video-band, .media-split { --heading: #000; --text: #000; --text-2: #333; --link: #000; --rule: #999; background: #fff !important; color: #000; }
  .hero, .hero-photo, .video-band { min-height: 0; }
  .hero__media, .hero-bg, .cta-bg, .vb-media, .media-split__media, .photo-band { display: none !important; }
  .hero__inner, .hero-photo { padding: 1rem 0; }
  .hero h1, .hero .lead { color: #000; }
  .section { padding-block: 1.25rem; }
  .media-split { display: block; }
  .media-split__text { padding: 0; }
  .site-footer a, .site-footer .footer-brand, .license-line { color: #000; }
  .faq details > .answer { display: block; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  .panel, .note, .diagram, .brochure, .feature-card, .numbered > li, .facts__item { break-inside: avoid; }
}
