@media (max-width:480px){[data-vertical="cartographer"] nav.site-nav{flex-wrap:wrap;gap:0 2px;justify-content:center;overflow-x:visible;}nav.site-nav a{padding:10px 4px;font-size:0.875rem;}}
/* layout-r8 (2026-10-31). Desktop page layout for niagaraseo.com. Link after cartographer.css, nav-r7.css, a11y-r6.css.
   CSS is cached as immutable: ship any edit under a new filename.

   The problem this fixes: cartographer.css caps every direct child of <main> at --measure (34rem) in one rule,
   including tables, forms, FAQ blocks and the special page's .offer-lander wrapper. That is right for prose and wrong
   for everything else. Here, <main> becomes a four-track editorial grid at 60rem and up:

       outer | side rail (h2) | c1 | c2 | c3 | outer

   Section headings sit in the side rail. Prose takes c1-c3 but stops at 37rem (about 70 characters).
   Tables, forms, FAQ, tiers, cards and diagrams use the full c1-c3 width (up to 896px).
   Below 60rem nothing in this file applies, so tablet and phone render exactly as before.

   --measure is the single control for line length. A wide block sets --measure:none, which the existing
   max-width:var(--measure) rule in cartographer.css then honours. */

@media (min-width: 60rem) {

  [data-vertical="cartographer"] main {
    --gap: 24px;
    --rail: clamp(11rem, 17vw, 16rem);
    --col: calc((var(--wrap-max) - var(--rail) - 3 * var(--gap)) / 3);
    --edge: minmax(max(0px, calc(var(--gutter) - var(--gap))), 1fr);
    --section-top: 64px;   /* space above a section heading */
    --ornament: 25px;      /* h2::before dotted rule (9px) + its 16px margin */
    column-gap: var(--gap);
    grid-template-columns: var(--edge) var(--rail) repeat(3, minmax(0, var(--col))) var(--edge);
  }

  /* Default: every block lives in c1-c3 at prose measure. Hero, ledger and cta-band keep their own full-bleed rules. */
  [data-vertical="cartographer"] :where(main, main > article, main > .offer-lander) > :not(:where(.hero, .ledger, .cta-band)) {
    grid-column: 3 / 6;
    --measure: 37rem;
    max-width: var(--measure);
  }

  /* The special page wraps its body in .offer-lander inside a 34rem column. Dissolve the wrapper so its children join the grid. */
  [data-vertical="cartographer"] main > .offer-lander {
    display: contents;
  }

  /* Section headings: side rail, level with the first line of the content beside them. */
  html:root[data-vertical="cartographer"] :where(main, main > article, main > .offer-lander) > h2 {
    grid-column: 2;
    grid-row: span 2;
    align-self: start;
    margin: var(--section-top) 0 0;
    font-size: clamp(1.5rem, 1rem + 1.1vw, 1.875rem);
    line-height: 1.12;
    text-wrap: balance;
  }
  html:root[data-vertical="cartographer"] main > .offer-lander > h2::before {
    content: "";
    display: block;
    height: 9px;
    margin-bottom: 16px;
    background:
      radial-gradient(circle at 4.5px 4.5px, var(--rust) 4px, transparent 4.6px) 0 0 / 9px 9px no-repeat,
      repeating-linear-gradient(90deg, rgba(18, 52, 86, 0.55) 0 2px, transparent 2px 8px) 16px 4px / calc(100% - 16px) 1px no-repeat;
  }
  @media (forced-colors: active) {
    html:root[data-vertical="cartographer"] main > .offer-lander > h2::before { display: none; }
  }
  /* First thing beside a heading starts at the heading's text line, below the ornament. */
  html:root[data-vertical="cartographer"] :where(main, main > article, main > .offer-lander) > h2 + :not(.price-callout) {
    margin-top: calc(var(--section-top) + var(--ornament));
  }

  /* Plain page heroes (no map): let the H1 run wider than the 34rem prose cap; the dek keeps its own 32rem. */
  [data-vertical="cartographer"] main > .hero:not(.has-map):not(.offer-hero) .hero-inner { max-width: 56rem; }

  /* Wide blocks: c1-c3, no measure cap. */
  [data-vertical="cartographer"] :where(main, main > article, main > .offer-lander) > :is(.table-wrap, .faq, .ld-tool, .scope-grid, .card-grid, figure.carto-fig, ol.steps, form.ld-form) {
    --measure: none;
  }
  [data-vertical="cartographer"] :where(main, main > article, main > .offer-lander) > .area-cards {
    grid-column: 2 / 6;
  }

  /* Facts box: heading in the rail, table beside it. Subgrid keeps both on the page grid. */
  [data-vertical="cartographer"] :where(main, main > article, main > .offer-lander) > .at-a-glance {
    grid-column: 2 / 6;
    --measure: none;
    display: grid;
    grid-template-columns: subgrid;
    align-items: start;
    margin-bottom: 2rem;
  }
  [data-vertical="cartographer"] .at-a-glance > h2 {
    grid-column: 1;
    margin: 0;
    font-size: clamp(1.5rem, 1rem + 1.1vw, 1.875rem);
    line-height: 1.12;
  }
  [data-vertical="cartographer"] .at-a-glance > .table-wrap {
    grid-column: 2 / -1;
    margin: 0;
  }
  [data-vertical="cartographer"] .at-a-glance--trust > h2 {
    font-size: 1rem;
    line-height: 1.4;
  }
  .at-a-glance th[scope="row"] { width: 11rem; }
  .at-a-glance--trust th { width: 11rem; }

  /* Tables get the room to breathe. */
  .table-wrap th, .table-wrap td { padding: 0.8rem 1.1rem; }
  .table-wrap table { font-size: 1rem; }

  /* FAQ: two columns, question stays with its answer. */
  [data-vertical="cartographer"] .faq {
    columns: 2;
    column-gap: 48px;
  }
  [data-vertical="cartographer"] .faq { margin-block: 0 2rem; }
  [data-vertical="cartographer"] .faq > .faq-q:first-child { margin-top: 0; }
  [data-vertical="cartographer"] .faq .faq-q { break-after: avoid; break-inside: avoid; margin-top: 28px; }
  [data-vertical="cartographer"] .faq .faq-a { break-inside: avoid; }

  /* Self-check tool: a card, one wide column. */
  [data-vertical="cartographer"] :where(main, main > article) > .ld-tool {
    margin: 2rem 0;
    max-width: none;
    padding: 28px 32px;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-left: 4px solid var(--rust);
    border-radius: 2px;
  }
  [data-vertical="cartographer"] .ld-tool > p { max-width: 37rem; }

  /* Lead form: a card with two columns of fields. */
  [data-vertical="cartographer"] :where(main, main > article) > form.ld-form {
    margin: 2rem 0;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    align-items: start;
    padding: 28px 32px 24px;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-left: 4px solid var(--rust);
    border-radius: 2px;
  }
  [data-vertical="cartographer"] main > form.ld-form > :not(.ld-field) { grid-column: 1 / -1; }
  [data-vertical="cartographer"] main > form.ld-form .ld-consent,
  [data-vertical="cartographer"] main > form.ld-form .ld-alt { max-width: 44rem; }
  [data-vertical="cartographer"] main > form.ld-form .ld-button { justify-self: start; min-height: 3rem; padding-inline: 2rem; }

  /* Price tiers outside the ledger (pricing page): one row of three, equal height. */
  [data-vertical="cartographer"] main > .price-callout {
    margin: 1.5rem 0 2rem;
    padding: 1.75rem 1.5rem 2rem;
    --measure: none;
  }
  [data-vertical="cartographer"] main > :not(.price-callout) + .price-callout { grid-column: 3; }
  [data-vertical="cartographer"] main > .price-callout + .price-callout { grid-column: 4; }
  [data-vertical="cartographer"] main > .price-callout + .price-callout + .price-callout { grid-column: 5; }
  [data-vertical="cartographer"] main > .price-callout .tier-price { font-size: clamp(2rem, 1.2rem + 1.6vw, 2.5rem); }

  /* Included / not included cards and the three steps on the special page. */
  [data-vertical="cartographer"] .offer-lander .scope-grid { margin: 32px 0 40px; gap: 24px; align-items: stretch; }
  .offer-lander .scope-grid h3, .gbp-scope-card h3 { margin-top: 0; }
  ol.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 2rem 0 0;
    padding: 0;
    list-style-position: inside;
  }
  ol.steps > li {
    margin: 0;
    padding-top: 16px;
    border-top: 2px solid var(--ink);
  }
  ol.steps > li::marker { font-family: var(--font-display); font-weight: 600; color: var(--rust); }

  /* Portrait on the about page: rail, level with the first heading. */
  [data-vertical="cartographer"] main > .about-figure {
    grid-column: 2;
    grid-row: span 3;
    align-self: start;
    float: none;
    margin: var(--section-top) 0 0;
    width: auto;
    max-width: 176px;
  }
  [data-vertical="cartographer"] main > .about-figure + h2 {
    grid-column: 3 / 6;
    grid-row: auto;
    font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
    margin-top: var(--section-top);
  }
  html:root[data-vertical="cartographer"] main > .about-figure + h2 + * { margin-top: 1rem; }

  /* Boxed blocks stay at prose measure but sit in c1 with margins that match the grid rhythm. */
  [data-vertical="cartographer"] :where(main, main > article, main > .offer-lander) > :is(.note, .own-band, .review, .action-cta, blockquote, figure.field-note) {
    margin-block: 1.5rem;
  }
}

/* Wide desktop: more air between the rail and the content, a longer measure ceiling stays at 37rem. */
@media (min-width: 90rem) {
  [data-vertical="cartographer"] main { --gap: 32px; }
}
/* layout-r9 (2026-10-31). Fixes from the visual QA of layout-r8. Load after layout-r8.css.
   CSS is cached as immutable: ship any edit under a new filename.

   1  Tablet (48rem-59.99rem): wide blocks use the full column; prose measure 42rem.
   2  Header holds one row from 861px to 68rem.
   3  Hero map shows the whole map at tablet and phone sizes, labels sized for the rendered scale.
   4  Hero text and map no longer collide at 861px-72rem.
   6  area-cards align with the content column; intro paragraphs share the same left edge.
   7  Dark tier section joins the rail layout; "HST included" is a small line under the price.
   8  Pricing tiers are full-width rows (label and price left, list right), not three cramped columns.
   9  Empty Turnstile placeholder no longer reserves 65px.
   10 320px header: phone button hidden (the call bar has it), nav fits one row.
   11 Facts-table heading on the special page matches the other rail headings. */

/* 9. Reserve the bot-check space only once the widget has rendered. The script loads on first focus, so the shift follows user input. */
.cf-turnstile:empty { min-height: 0; }

/* Price line: "HST included" is a caption to the figure, not part of it. */
.price-callout .tier-price small {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
}

/* ---- 1. Tablet, 48rem to 59.99rem: single column, no dead right third ---- */
@media (min-width: 48rem) and (max-width: 59.99rem) {
  [data-vertical="cartographer"] main > .offer-lander { display: contents; }
  [data-vertical="cartographer"] :where(main, main > article, main > .offer-lander) > :not(:where(.hero, .ledger, .cta-band)) {
    grid-column: 2;
    --measure: 42rem;
    max-width: var(--measure);
  }
  [data-vertical="cartographer"] :where(main, main > article, main > .offer-lander) > :is(.table-wrap, .faq, .ld-tool, .scope-grid, .card-grid, .at-a-glance, .area-cards, figure.carto-fig, ol.steps, form.ld-form, .price-callout) {
    --measure: none;
  }
  [data-vertical="cartographer"] :where(main, main > article, main > .offer-lander) > .area-cards { grid-column: 2; }
  [data-vertical="cartographer"] .faq { columns: 2; column-gap: 32px; }
  [data-vertical="cartographer"] .faq .faq-q { break-after: avoid; break-inside: avoid; }
  [data-vertical="cartographer"] .faq .faq-a { break-inside: avoid; }
  [data-vertical="cartographer"] .faq > .faq-q:first-child { margin-top: 0; }
  ol.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0; list-style-position: inside; }
  ol.steps > li { margin: 0; padding-top: 14px; border-top: 2px solid var(--ink); }
  ol.steps > li::marker { font-family: var(--font-display); font-weight: 600; color: var(--rust); }
  [data-vertical="cartographer"] :where(main, main > article) > form.ld-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    align-items: start;
    padding: 24px 28px 20px;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-left: 4px solid var(--rust);
    border-radius: 2px;
  }
  [data-vertical="cartographer"] main > form.ld-form > :not(.ld-field) { grid-column: 1 / -1; }
  [data-vertical="cartographer"] main > form.ld-form .ld-button { justify-self: start; min-height: 3rem; }
}

/* ---- 2. Header: one row from 861px up to 68rem ---- */
@media (min-width: 861px) and (max-width: 68rem) {
  [data-vertical="cartographer"] header.site-header .wrap { gap: 12px 20px; }
  [data-vertical="cartographer"] nav.site-nav { gap: 4px; }
  [data-vertical="cartographer"] nav.site-nav a { padding-inline: 8px; }
  [data-vertical="cartographer"] header.site-header a.phone { padding: 10px 14px; }
}

/* ---- 10. Narrow phones: nav on one row, call button left to the call bar ---- */
@media (max-width: 22.5rem) {
  [data-vertical="cartographer"] header.site-header a.phone { display: none; }
  [data-vertical="cartographer"] header.site-header .wrap { justify-content: center; padding-top: 10px; padding-bottom: 4px; }
  [data-vertical="cartographer"] nav.site-nav { gap: 0; flex-wrap: nowrap; justify-content: center; }
  nav.site-nav a { padding-inline: 2px; font-size: 0.8125rem; min-width: 44px; }
}

/* ---- 3. Hero map at tablet and phone: the whole map, not a magnified fragment ---- */
@media (max-width: 860px) {
  .hero.has-map .hero-map {
    aspect-ratio: 600 / 555;
    overflow: visible;
    width: calc(100% - 2 * var(--gutter));
    max-width: 26rem;
    margin-inline: var(--gutter);
  }
  .hero.has-map .hero-map .carto { width: 100%; max-width: 100%; margin: 0; }
  .hero.has-map .carto .city.c-wainfleet:not(.is-here),
  .hero.has-map .carto .city.c-st-catharines:not(.is-here) { display: inline; }
  /* Labels are in SVG user units (viewBox 600 wide). 19 is the largest that keeps Buffalo and St. Catharines inside a 16px gutter. */
  .hero.has-map .carto { overflow: visible; clip-path: inset(0 -14px); }
  .hero.has-map .carto .city .lbl { font-size: 19px; }
  .hero.has-map .carto .home .lbl { font-size: 20px; }
  .hero.has-map .carto .bridge text, .hero.has-map .carto .minor { font-size: 15px; }
  .hero.has-map .carto .lake { font-size: 14px; }
  .hero.has-map .carto .hb { font-size: 13px; }
  .hero.has-map .hero-map-cap { padding-top: 8px; }
}
/* 768-860: text left, map right, instead of a stacked column with dead space. */
@media (min-width: 48rem) and (max-width: 860px) {
  .hero.has-map {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 32px;
    padding: 0 var(--gutter) 32px;
    align-items: start;
  }
  .hero.has-map .hero-inner { grid-column: 1; grid-row: 1 / span 2; padding-inline: 0; max-width: none; }
  .hero.has-map .hero-map { grid-column: 2; grid-row: 1; margin: 32px 0 0; width: 100%; max-width: none; align-self: start; }
  .hero.has-map .hero-map-cap { grid-column: 2; grid-row: 2; padding-inline: 0; }
  .hero.has-map h1 { font-size: clamp(2.25rem, 1rem + 4.2vw, 3.25rem); }
}

/* ---- 4. Hero text and map no longer touch between 861px and 72rem ---- */
@media (min-width: 861px) and (max-width: 72rem) {
  .hero.has-map h1 { font-size: clamp(2.5rem, 0.5rem + 4.4vw, 3.5rem); }
  .hero.has-map .hero-inner { max-width: min(44vw, 34rem); }
  .hero.has-map .hero-map { width: 46vw; }
  .hero.has-map .dek { max-width: 24rem; }
}

@media (min-width: 60rem) {

  /* 6. Card grids share the content column with the prose above them. */
  [data-vertical="cartographer"] :where(main, main > article, main > .offer-lander) > .area-cards {
    grid-column: 3 / 6;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 8. Pricing tiers outside the ledger: full-width rows, label and price left, list right. */
  html:root[data-vertical="cartographer"] main > div.price-callout.price-callout {
    grid-column: 3 / 6;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "label list" "price list";
    grid-template-rows: auto 1fr;
    column-gap: 40px;
    align-content: start;
    margin: 0 0 1.5rem;
    padding: 1.75rem 2rem 2rem;
  }
  html:root[data-vertical="cartographer"] main > div.price-callout.price-callout:first-of-type { margin-top: 1.5rem; }
  html:root[data-vertical="cartographer"] main > .price-callout .tier-label { grid-area: label; }
  html:root[data-vertical="cartographer"] main > .price-callout .tier-price { grid-area: price; margin: 0.25rem 0 0; font-size: clamp(2.25rem, 1.4rem + 1.6vw, 3rem); }
  html:root[data-vertical="cartographer"] main > .price-callout ul { grid-area: list; margin: 0; }

  /* 7. Dark tier section: same rail layout as the rest of the page. */
  [data-vertical="cartographer"] .ledger {
    column-gap: var(--gap);
    grid-template-columns: var(--edge) var(--rail) repeat(3, minmax(0, var(--col))) var(--edge);
  }
  [data-vertical="cartographer"] .ledger > * { grid-column: 3 / 6; max-width: none; }
  [data-vertical="cartographer"] .ledger > h2 {
    grid-column: 2;
    grid-row: span 2;
    align-self: start;
    max-width: none;
    margin: 0;
    font-size: clamp(1.5rem, 1rem + 1.1vw, 1.875rem);
    line-height: 1.12;
    text-wrap: balance;
  }
  [data-vertical="cartographer"] .ledger > p { max-width: 37rem; }
  [data-vertical="cartographer"] .ledger > .own-band { max-width: 37rem; }
  [data-vertical="cartographer"] .ledger .price-callout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  [data-vertical="cartographer"] .ledger .price-callout .tier-price {
    font-size: clamp(2.75rem, 1.6rem + 2.4vw, 4rem);
    line-height: 0.95;
  }
  [data-vertical="cartographer"] .ledger .price-callout .tier-price small { color: #E4E9EE; }
  [data-vertical="cartographer"] .ledger .price-callout .tier-price,
  html:root[data-vertical="cartographer"] main > .price-callout .tier-price { align-self: start; }
  /* The ledger's first block after the heading sits level with it. */
  [data-vertical="cartographer"] .ledger > h2 + * { margin-top: 0; }

  /* 11. Facts-table heading on the special page: same face as every other rail heading. */
  [data-vertical="cartographer"] .at-a-glance--trust > h2 {
    font-size: clamp(1.5rem, 1rem + 1.1vw, 1.875rem);
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--ink);
  }
}
/* 2026-10-31 accessibility review. */
@media (max-width: 860px) {
  html { scroll-padding-bottom: calc(56px + env(safe-area-inset-bottom) + 12px); }
}
.cta-bar a:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.ld-status--error::before { content: none; }
@media (prefers-reduced-motion: reduce) { .cta-bar, .cta-bar.is-hidden { transition: none; } }
.hero-map-cap { font-size: 0.75rem; }
.ld-hint { display: block; }
/* a11y round 6 (2026-10-29). Keep this file name; bump it if you edit it, because CSS is cached as immutable. */
.ld-opt input[type=radio],.ld-opt input[type=checkbox]{width:24px;height:24px;min-width:24px;flex:none}
