/* Move to Jersey: an island guide set like a publication.
   Layout: a 1120px shell with a white masthead. Articles run a 680px serif reading column beside a
   220px contents rail; photos sit square-edged with captions underneath, never under text.
   Type: Franklin Gothic (Libre Franklin) for headlines and interface, Caslon (Libre Caslon Text) for reading.
   Colour: ink on white paper, one accent taken from the gorse on the north coast cliffs. */
:root {
  --paper: #FFFFFF;
  --paper-2: #F2F4F5;
  --ink: #121518;
  --ink-2: #3D454B;
  --ink-3: #687178;
  --rule: #DCE0E3;
  --gorse: #F2B705;
  --gorse-hover: #DDA600;
  --on-gorse: #121518;
  --verify: #A07800;
  --sea: #3E7C99;
  --footer-bg: #121518;
  --footer-fg: #C5CBCF;
  --footer-link: #FFFFFF;
  --sans: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;
  --serif: "Libre Caslon Text", "Big Caslon", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1113; --paper-2: #161A1D; --ink: #EEF0F1; --ink-2: #C2C8CC; --ink-3: #8F989E; --rule: #2A3136;
    --verify: #E0B23A; --sea: #6FA9C4; --footer-bg: #07090A; --footer-fg: #A9B1B6; --footer-link: #FFFFFF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E1113; --paper-2: #161A1D; --ink: #EEF0F1; --ink-2: #C2C8CC; --ink-3: #8F989E; --rule: #2A3136;
  --verify: #E0B23A; --sea: #6FA9C4; --footer-bg: #07090A; --footer-fg: #A9B1B6; --footer-link: #FFFFFF;
  color-scheme: dark;
}

/* Base */
html { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gorse); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--sans); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-weight: 700; letter-spacing: -0.022em; line-height: 1.05; }
h2 { font-weight: 700; font-size: 26px; line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-weight: 600; font-size: 19px; line-height: 1.25; letter-spacing: -0.005em; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 6px; }
strong { font-weight: 600; }
.small { font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.muted { color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: 1120px; margin-left: auto; margin-right: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.meta { font-size: 14px; color: var(--ink-3); margin: 0; }
.meta a { color: var(--ink-3); text-decoration-color: var(--rule); }
@media (min-width: 900px) { h2 { font-size: 32px; } h3 { font-size: 20px; } }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 18px; border-radius: 2px; border: 0; font: 600 15px var(--sans); letter-spacing: -0.005em; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--gorse); color: var(--on-gorse); }
.btn-primary:hover { background: var(--gorse-hover); color: var(--on-gorse); }
.text-link { font-weight: 600; font-size: 15px; white-space: nowrap; }

/* Masthead */
.masthead { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.masthead-inner { max-width: 1120px; margin: 0 auto; min-height: 64px; display: flex; align-items: center; gap: 24px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wordmark { display: inline-flex; flex-direction: column; font: 800 21px/1 var(--sans); letter-spacing: -0.025em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.wordmark span { font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }
.wordmark:hover { color: var(--ink); }
.nav-desktop { display: none; flex: 1; }
.nav-desktop ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-desktop li { margin: 0; }
.nav-desktop a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 21px 0; white-space: nowrap; }
.nav-desktop a:hover { color: var(--ink); }
.nav-desktop a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--gorse); }
.nav-cta { display: none; min-height: 40px; padding: 8px 14px; }
.menu-btn { margin-left: auto; min-height: 42px; padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 2px; background: transparent; color: var(--ink); font: 600 15px var(--sans); cursor: pointer; }
.menu-sheet { position: fixed; inset: 0; z-index: 30; background: var(--paper); overflow-y: auto; padding-top: env(safe-area-inset-top, 0px); }
.menu-sheet-inner { padding-block: 0 32px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 24px; }
.menu-sheet-head { display: flex; align-items: center; min-height: 64px; border-bottom: 1px solid var(--rule); }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { margin: 0; }
.menu-list a { display: block; font: 700 24px/1.2 var(--sans); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; padding: 13px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 1120px) {  /* seven links need about 1,100px; below that the Menu button takes over */
  .nav-desktop { display: block; }
  .nav-cta { display: inline-flex; }
  .menu-btn { display: none; }
}

/* Home cover */
.cover { padding-block: 48px 28px; }
.cover .meta { margin-bottom: 18px; }
.cover h1 { font-size: clamp(40px, 6.6vw, 82px); max-width: 15ch; }
.standfirst { font-family: var(--serif); font-size: clamp(19px, 2vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 52ch; margin: 20px 0 0; }
.cover-actions { display: flex; align-items: center; gap: 14px 24px; flex-wrap: wrap; margin-top: 28px; }
.cover-figure, .lead-figure { margin-top: 0; margin-bottom: 0; }
.cover-figure img, .lead-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-2); }
@media (min-width: 700px) { .cover-figure img, .lead-figure img { aspect-ratio: 16 / 8; } }
figcaption { font-size: 13px; line-height: 1.5; color: var(--ink-3); margin-top: 9px; }
figcaption .credit { color: var(--ink-3); }
figcaption a { color: var(--ink-3); text-decoration-color: var(--rule); text-decoration-thickness: 1px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 36px 0 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.facts div:nth-last-child(-n+1) { border-bottom: 0; grid-column: span 2; }
.facts dt { font-size: 13px; color: var(--ink-3); }
.facts dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .facts div { border-bottom: 0; padding: 16px 20px; border-left: 1px solid var(--rule); }
  .facts div:first-child { border-left: 0; padding-left: 0; }
  .facts div:nth-last-child(-n+1) { grid-column: auto; }
}

/* Home sections */
.section { padding-top: 64px; }
.section-head + .feature { margin-top: 22px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; border-top: 2px solid var(--ink); padding-top: 14px; }
.section-lead { font-family: var(--serif); font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 62ch; margin: 14px 0 30px; }
.feature { display: grid; gap: 18px 36px; grid-template-columns: minmax(0, 1fr); color: var(--ink); text-decoration: none; padding-bottom: 28px; }
.feature-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-2); }
.feature h3 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; margin-bottom: 12px; }
.feature p { font-family: var(--serif); font-size: 18px; line-height: 1.6; color: var(--ink-2); margin-bottom: 12px; }
.feature:hover h3, .index-item:hover h3, .parish-lead:hover h3, .parish-row:hover h3, .related a:hover .rel-title { text-decoration: underline; text-decoration-color: var(--gorse); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (min-width: 900px) { .feature { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; } .feature-eat { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); } .feature-eat .feature-img { order: 2; } }
.index-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 40px; }
.index-list li { margin: 0; border-top: 1px solid var(--rule); }
.index-item { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 18px 0; color: var(--ink); text-decoration: none; }
.index-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--paper-2); }
.index-text h3 { margin-bottom: 4px; }
.index-text p { font-family: var(--serif); font-size: 15.5px; line-height: 1.55; color: var(--ink-2); margin: 0 0 6px; }
.index-text .meta { font-size: 13px; }
@media (min-width: 700px) { .index-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .index-item { grid-template-columns: 112px minmax(0, 1fr); gap: 18px; } }
.popular { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); }
.popular span { color: var(--ink-3); }
.parishes { display: grid; gap: 28px 40px; grid-template-columns: minmax(0, 1fr); }
.parish-lead { color: var(--ink); text-decoration: none; }
.parish-lead-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-2); }
.parish-lead h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 14px 0 4px; }
.parish-lead p { font-family: var(--serif); font-size: 18px; color: var(--ink-2); margin: 0; }
.parish-list { list-style: none; margin: 0; padding: 0; }
.parish-list li { margin: 0; border-top: 1px solid var(--rule); }
.parish-list li:last-child { border-bottom: 1px solid var(--rule); }
.parish-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 0; color: var(--ink); text-decoration: none; }
.parish-row-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--paper-2); }
.parish-row h3 { margin-bottom: 3px; }
.parish-row p { font-family: var(--serif); font-size: 16px; color: var(--ink-2); margin: 0; }
@media (min-width: 900px) { .parishes { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } .parish-row { grid-template-columns: 104px minmax(0, 1fr); } }
.life .section-head { margin-bottom: 22px; }
.life-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(min(62vw, 240px), 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.life-card { margin: 0; min-width: 0; scroll-snap-align: start; }
.life-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); }
.life-card figcaption { font-size: 13px; }
@media (min-width: 960px) { .life-strip { grid-auto-columns: minmax(0, 1fr); overflow-x: visible; } }
.snapshot { display: grid; gap: 28px 48px; grid-template-columns: minmax(0, 1fr); }
.snapshot > div:first-child { border-top: 2px solid var(--ink); padding-top: 14px; }
.snapshot > div:first-child p { font-family: var(--serif); font-size: 18px; color: var(--ink-2); max-width: 46ch; margin-top: 14px; }
.snapshot .text-link { font-family: var(--sans); }
@media (min-width: 900px) { .snapshot { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; } }
.budget .table-wrap { margin: 0; }
.budget td:first-child { position: static; }
.budget .total td { font-weight: 700; border-top: 2px solid var(--ink); border-bottom: 0; }
.notes { display: grid; gap: 0 40px; grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
.note { padding: 20px 0 22px; border-bottom: 1px solid var(--rule); min-width: 0; }
.note h3 { margin-bottom: 8px; }
.note p { font-family: var(--serif); font-size: 16.5px; line-height: 1.6; color: var(--ink-2); margin-bottom: 10px; }
@media (min-width: 900px) { .notes { grid-template-columns: repeat(3, minmax(0, 1fr)); } .note { border-bottom: 0; } }
.home-faq h2 { border-top: 2px solid var(--ink); padding-top: 14px; margin: 0 0 8px; }
@media (min-width: 900px) { .home-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0 48px; align-items: start; } .home-faq .faq { margin-top: 0; border-top: 2px solid var(--ink); } }
.photo-credits { font-size: 13px; color: var(--ink-3); margin: 56px 0 48px; border-top: 1px solid var(--rule); padding-top: 14px; }
.photo-credits summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.photo-credits ul { padding-left: 18px; margin: 10px 0 0; }
.photo-credits li { overflow-wrap: anywhere; margin-bottom: 4px; }
.photo-credits a, .credits a { color: var(--ink-3); text-decoration-color: var(--rule); text-decoration-thickness: 1px; }

/* Article */
.article-head { padding-block: 36px 26px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-3); text-decoration-color: var(--rule); }
.article-head h1 { font-size: clamp(32px, 4.4vw, 52px); max-width: 22ch; }
.article-head .standfirst { max-width: 58ch; }
.article-head .meta { margin-top: 18px; }
.page { max-width: 1120px; margin: 0 auto; padding-block: 36px 64px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.toc { display: none; }
.toc-title { font-size: 13px; font-weight: 700; margin: 0 0 10px; }
.toc ul { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--rule); }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: 14px; line-height: 1.4; }
.toc a:hover { color: var(--ink); border-left-color: var(--gorse); }
.toc-mobile { margin-bottom: 28px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.toc-mobile summary { cursor: pointer; padding: 13px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: "+"; color: var(--ink-3); }
.toc-mobile[open] summary::after { content: "\2212"; }
.toc-mobile ul { list-style: none; margin: 0; padding: 0 0 10px; }
.toc-mobile li { margin: 0; }
.toc-mobile a { display: block; padding: 7px 0; text-decoration: none; color: var(--ink-2); font-size: 15px; }
@media (min-width: 960px) {
  .layout { grid-template-columns: 220px minmax(0, 680px); gap: 64px; }
  .toc { display: block; position: sticky; top: calc(64px + 28px + env(safe-area-inset-top, 0px)); align-self: start; }
  .toc-mobile { display: none; }
}

/* Reading text */
.prose { min-width: 0; font-family: var(--serif); font-size: 18px; line-height: 1.7; }
.prose h2 { font-size: 27px; margin: 48px 0 14px; scroll-margin-top: 90px; }
.prose h3 { font-size: 20px; margin: 30px 0 8px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--ink-3); }
.prose .lede { font-size: 1.06em; }
.prose blockquote { margin: 24px 0; padding: 2px 0 2px 18px; border-left: 2px solid var(--ink); font-style: italic; color: var(--ink-2); }
.prose blockquote p:last-child { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 36px 0; }
@media (min-width: 900px) { .prose { font-size: 19px; } .prose h2 { font-size: 30px; } }
.verify { color: var(--verify); font-family: var(--sans); font-size: 0.65em; cursor: help; margin-left: 1px; }
.verify-note { font-family: var(--sans); font-size: 13px; color: var(--ink-3); margin-top: 32px; }
.verify-note sup { color: var(--verify); }
.tbc { color: var(--ink-3); }

/* Spot illustrations: flat vector art drawn by illus2/art.py; colours follow the theme */
:root { --ill-warm: #FCEFCB; --ill-cool: #E2EDF2; --ill-sea-light: #A8CBDB; --ill-gorse-light: #FADF94; --ill-stone: #CDD3D7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ill-warm: #2B2513; --ill-cool: #15252C; --ill-sea-light: #2D5466; --ill-gorse-light: #8F7117; --ill-stone: #4A535A; } }
:root[data-theme="dark"] { --ill-warm: #2B2513; --ill-cool: #15252C; --ill-sea-light: #2D5466; --ill-gorse-light: #8F7117; --ill-stone: #4A535A; }
.spot { float: right; width: 38%; max-width: 220px; margin: 2px 0 12px 24px; }
.spot-left { float: left; margin: 2px 24px 12px 0; }
.illus { display: block; width: 100%; height: auto; overflow: visible; }
.illus .o { stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.illus .ln, .illus .ln2, .illus .ln3, .illus .tick, .illus .hlb, .illus .ring { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.illus .ln { stroke: var(--ink); stroke-width: 2.5; }
.illus .ln2 { stroke: var(--ink); stroke-width: 1.75; }
.illus .ln3 { stroke: var(--ink); stroke-width: 3.5; }
.illus .tick { stroke: var(--gorse); stroke-width: 3.5; }
.illus .ring { stroke: var(--gorse); stroke-width: 4; }
.illus .hlb { stroke: var(--ill-sea-light); stroke-width: 3; }
.illus .fp { fill: var(--paper); } .illus .fy { fill: var(--gorse); } .illus .fb { fill: var(--sea); }
.illus .fl { fill: var(--ill-sea-light); } .illus .fyl { fill: var(--ill-gorse-light); } .illus .fs { fill: var(--ill-stone); }
.illus .fk { fill: var(--ink); } .illus .fn { fill: none; }
.illus .bw { fill: var(--ill-warm); } .illus .bc { fill: var(--ill-cool); }
.illus .sh { fill: var(--ink); opacity: .1; }
.illus .tx { fill: var(--ink); font-family: var(--sans); font-weight: 700; }
.illus .txp { fill: var(--paper); font-family: var(--sans); font-weight: 700; }
.illus .hlw { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; opacity: .85; }
.illus .tube-o { fill: none; stroke: var(--ink); stroke-width: 8.5; stroke-linecap: round; stroke-linejoin: round; }
.illus .tube { fill: none; stroke: var(--sea); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.illus .dash { stroke-dasharray: 3 5; }
@media (max-width: 599px) { .spot { width: 40%; max-width: 150px; margin-left: 14px; } .spot-left { margin: 2px 14px 10px 0; } }

/* Tables */
.table-wrap { overflow-x: auto; margin: 18px 0 28px; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; }
th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding: 0 14px 8px 0; border-bottom: 2px solid var(--ink); }
td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); min-width: 104px; }
td:first-child, th:first-child { position: sticky; left: 0; background: var(--paper); }

/* Figures inside articles */
.parish-photo { margin: 6px 0 22px; }
.parish-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-2); }
.parish-photo figcaption { font-family: var(--sans); }

/* Checklist */
.steps { list-style: none; padding: 0; margin: 12px 0 30px; border-top: 1px solid var(--rule); }
.steps li { margin: 0; border-bottom: 1px solid var(--rule); }
.steps label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 13px 0; cursor: pointer; }
.steps input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--ink); }
.steps .step-text { min-width: 0; }
.steps input:checked + .step-text { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-3); }
.steps-progress { font-family: var(--sans); font-size: 13px; color: var(--ink-3); margin: -2px 0 6px; }

/* Checklist sign-up gate */
.gated { position: relative; max-height: 340px; overflow: hidden; }
.gated::after { content: ""; position: absolute; inset: auto 0 0 0; height: 220px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--paper) 85%); }
.gated.unlocked { max-height: none; overflow: visible; }
.gated.unlocked::after { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gated::after { background: linear-gradient(180deg, rgba(14, 17, 19, 0), var(--paper) 85%); } }
:root[data-theme="dark"] .gated::after { background: linear-gradient(180deg, rgba(14, 17, 19, 0), var(--paper) 85%); }
.gate { font-family: var(--sans); background: var(--paper-2); border-top: 3px solid var(--gorse); padding: 22px 22px 18px; margin: 4px 0 36px; }
.gate h2 { font-size: 24px; margin: 0 0 8px; }
.gate > p { font-family: var(--serif); font-size: 17px; color: var(--ink-2); margin: 0 0 16px; }
.gate-form { display: flex; flex-wrap: wrap; gap: 10px; }
.gate-form input[type="email"] { flex: 1 1 220px; min-width: 0; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--paper); color: var(--ink); font: 16px var(--sans); }
.gate-optin { flex-basis: 100%; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); cursor: pointer; margin-top: 4px; }
.gate-optin input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
.gate-form .small { flex-basis: 100%; margin: 2px 0 0; }
.gate-done { font-weight: 600; margin: 0; }

/* FAQ */
.faq { margin: 14px 0 28px; border-top: 1px solid var(--rule); font-family: var(--serif); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; padding: 15px 0; font-family: var(--sans); font-weight: 600; font-size: 17px; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--ink-3); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-body { padding: 0 0 18px; font-size: 17.5px; line-height: 1.65; }
.faq .faq-body p:last-child { margin: 0; }

/* Partner listing */
.clinic-card { background: var(--paper-2); border-left: 2px solid var(--ink); padding: 18px 22px; margin: 22px 0; }
.clinic-card .tag { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 6px; }
.clinic-card h3 { margin-top: 0; }
.clinic-card p:last-child { margin-bottom: 0; }

/* Article footer */
.about-guide { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--rule); font-family: var(--sans); }
.about-guide h2 { font-size: 15px; margin: 0 0 6px; letter-spacing: 0; }
.about-guide p { font-size: 14px; color: var(--ink-2); margin: 0; }
/* More guides: photo cards, two across from 600px, compact rows on phones */
.related { margin-top: 44px; font-family: var(--sans); }
.related h2 { font-size: 20px; border-top: 2px solid var(--ink); padding-top: 12px; margin: 0 0 4px; }
.rel-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.rel-grid li { margin: 0; border-bottom: 1px solid var(--rule); }
.rel-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; color: var(--ink); text-decoration: none; }
.rel-img { display: block; overflow: hidden; aspect-ratio: 1 / 1; background: var(--paper-2); }
.rel-img img { width: 100%; height: 100%; object-fit: cover; }
.rel-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rel-title { font-weight: 700; font-size: 17px; line-height: 1.25; letter-spacing: -0.01em; }
.rel-blurb { font-family: var(--serif); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.rel-meta { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.rel-card:hover .rel-title, .rel-card:focus-visible .rel-title { text-decoration: underline; text-decoration-color: var(--gorse); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (min-width: 600px) {
  .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin-top: 16px; }
  .rel-grid li { border-bottom: 0; }
  .rel-card { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 0; }
  .rel-img { aspect-ratio: 2 / 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .rel-img img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
  .rel-card:hover .rel-img img { transform: scale(1.035); }
}
.sources { margin-top: 28px; font-family: var(--sans); font-size: 14px; color: var(--ink-3); }
.sources summary { cursor: pointer; list-style: none; }
.sources summary::-webkit-details-marker { display: none; }
.sources h2 { display: inline; font-size: 15px; letter-spacing: 0; }
.sources h2::after { content: " +"; color: var(--ink-3); font-weight: 400; }
.sources[open] h2::after { content: " \2212"; }
.sources ul, .sources ol { padding-left: 18px; margin-top: 10px; }
.sources li { margin-bottom: 4px; overflow-wrap: anywhere; }
.sources a { color: var(--ink-3); text-decoration-color: var(--rule); text-decoration-thickness: 1px; }
.prose .photo-credits { font-family: var(--sans); margin: 14px 0 0; border-top: 0; padding-top: 0; }
.credits { font-family: var(--sans); font-size: 14px; color: var(--ink-3); padding-left: 18px; }
.credits li { overflow-wrap: anywhere; }

/* Newsletter */
.newsletter { background: var(--paper-2); border-top: 1px solid var(--rule); }
.newsletter-inner { max-width: 1120px; margin: 0 auto; padding-block: 44px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: grid; gap: 18px 48px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.newsletter h2 { font-size: 26px; margin-bottom: 6px; }
.newsletter-inner > div p { font-family: var(--serif); font-size: 18px; color: var(--ink-2); margin: 0; max-width: 46ch; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter-form input { flex: 1 1 220px; min-width: 0; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--paper); color: var(--ink); font: 16px var(--sans); }
.newsletter-form .small { flex-basis: 100%; margin: 0; }
@media (min-width: 900px) { .newsletter-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Footer */
.footer { background: var(--footer-bg); color: var(--footer-fg); }
.footer-inner { max-width: 1120px; margin: 0 auto; padding-block: 44px 36px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.footer-top { display: grid; gap: 28px 48px; grid-template-columns: minmax(0, 1fr); margin-bottom: 32px; }
.wordmark-footer { color: var(--footer-link); margin: 0; }
.wordmark-footer span { color: var(--footer-fg); }
.footer-cols { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.footer-head { font-size: 13px; font-weight: 700; color: var(--footer-link); margin: 0 0 8px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 6px; }
.footer a { color: var(--footer-fg); text-decoration: none; font-size: 15px; }
.footer a:hover { color: var(--footer-link); text-decoration: underline; text-decoration-color: var(--gorse); }
.footer-legal { font-size: 13px; line-height: 1.5; margin: 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14); max-width: 90ch; }
@media (min-width: 700px) { .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .footer-top { grid-template-columns: 260px minmax(0, 1fr); } }

@media (prefers-reduced-motion: no-preference) { .btn, .nav-desktop a { transition: background-color 0.15s ease, color 0.15s ease; } }

/* ===================== Graphics: charts, diagrams and maps (built by graphics.py) =====================
   Colour roles: --sea is the one series or the emphasised series; --chart-muted is context, always labelled;
   gorse only for icons and markers. The status pathway uses a validated ordinal sea ramp per theme. */
:root { --chart-muted: #A3ADB3; --chart-grid: #E8EBED; --chart-axis: #C3CACE; --chart-on-sea: #FFFFFF;
  --pw1: #8DB8CC; --pw2: #6A9FB8; --pw3: #4F89A5; --pw4: #2F6A86; --pw-t1: var(--ink); --pw-t2: var(--ink); --pw-t3: #121518; --pw-t4: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --chart-muted: #5D686F; --chart-grid: #1E2428; --chart-axis: #3A4248; --chart-on-sea: #0E1113;
  --pw1: #2A5163; --pw2: #376A82; --pw3: #4E8DAB; --pw4: #7DB6D0; --pw-t1: #EEF0F1; --pw-t2: #EEF0F1; --pw-t3: #0E1113; --pw-t4: #0E1113; } }
:root[data-theme="dark"] { --chart-muted: #5D686F; --chart-grid: #1E2428; --chart-axis: #3A4248; --chart-on-sea: #0E1113;
  --pw1: #2A5163; --pw2: #376A82; --pw3: #4E8DAB; --pw4: #7DB6D0; --pw-t1: #EEF0F1; --pw-t2: #EEF0F1; --pw-t3: #0E1113; --pw-t4: #0E1113; }

.gi { display: block; width: 24px; height: 24px; fill: var(--ink); }
.gi .du { fill: var(--gorse); opacity: 1; }

.graphic { clear: both; margin: 34px 0 34px; padding-top: 14px; border-top: 2px solid var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.45; }
.graphic ul, .graphic ol { list-style: none; margin: 0; padding: 0; }
.graphic li { margin: 0; }
.graphic li::marker { content: none; }
.g-head { display: block; margin: 0 0 16px; color: var(--ink); font-size: inherit; }
.g-title { display: block; font-weight: 700; font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
.g-sub { display: block; font-size: 14px; color: var(--ink-3); margin-top: 3px; }
.g-source { font-size: 12.5px; color: var(--ink-3); margin: 14px 0 0; line-height: 1.45; }
.g-source a { color: var(--ink-3); text-decoration-color: var(--rule); text-decoration-thickness: 1px; }
.g-table { margin-top: 6px; }
.g-table summary { display: inline-block; cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 4px 0; }
.g-table summary::-webkit-details-marker { display: none; }
.g-table summary::before { content: "+"; display: inline-block; width: 14px; font-weight: 700; }
.g-table[open] summary::before { content: "\2212"; }
.g-table .table-wrap { margin: 8px 0 0; }
.g-tip { position: absolute; z-index: 60; pointer-events: none; max-width: 280px; padding: 7px 10px; border-radius: 6px; background: var(--ink); color: var(--paper); font: 400 13px/1.35 var(--sans); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.g-tip strong { display: block; font-size: 14px; font-weight: 700; }

/* At a glance */
.glance { clear: both; margin: 6px 0 30px; padding-top: 10px; border-top: 2px solid var(--ink); font-family: var(--sans); }
.glance-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 4px; }
.glance-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.glance-grid li { margin: 0; padding: 14px 16px 14px 0; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: center; border-bottom: 1px solid var(--rule); }
.glance-grid li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
.glance-grid li::marker { content: none; }
.gl-icon { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 50%; background: var(--ill-cool); display: grid; place-items: center; }
.gl-value { font-size: 23px; font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; color: var(--ink); }
.gl-label { font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
@media (max-width: 599px) {
  .glance-grid li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 10px 12px 0; }
  .glance-grid li:nth-child(even) { padding-left: 12px; }
  .gl-icon { width: 36px; height: 36px; } .gl-icon .gi { width: 20px; height: 20px; }
  .gl-value { font-size: 19px; } .gl-label { font-size: 12.5px; }
}

/* Bars and ranges */
.b-row { display: grid; grid-template-columns: minmax(100px, 32%) 1fr; align-items: center; column-gap: 14px; padding: 5px 0; border-radius: 4px; }
.b-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.b-label { font-size: 14px; color: var(--ink-2); line-height: 1.3; }
.b-track { position: relative; display: flex; align-items: center; min-height: 22px; }
.b-bar { display: flex; align-items: center; justify-content: flex-end; flex: 0 0 var(--w); height: 20px; background: var(--sea); border-radius: 0 4px 4px 0; transition: filter .15s; }
.b-bar.s0 { background: var(--chart-muted); }
.b-val { font-size: 14px; font-weight: 600; color: var(--ink); padding-left: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.b-val.in { color: var(--chart-on-sea); padding: 0 8px 0 0; }
.b-bar.s0 .b-val.in { color: var(--ink); }
.b-row:hover .b-bar, .b-row:focus-visible .b-bar, .b-row:hover .r-bar { filter: brightness(1.12) saturate(1.1); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -4px 0 12px !important; font-size: 13px; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 7px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--sea); flex: none; }
.sw.s0 { background: var(--chart-muted); }
.grp + .grp { margin-top: 14px; }
.grp-label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.bars-grp .b-row { grid-template-columns: 1fr; padding: 3px 0; }
.r-track { height: 24px; background-image: linear-gradient(to right, var(--chart-grid) 1px, transparent 1px); background-size: calc(100% / var(--n)) 100%; box-shadow: inset -1px 0 0 var(--chart-grid); }
.r-bar { position: absolute; top: 3px; height: 18px; min-width: 6px; background: var(--sea); border-radius: 4px; transition: filter .15s; }
.r-bar.open { border-radius: 4px 0 0 4px; background: linear-gradient(to right, var(--sea) 35%, color-mix(in srgb, var(--sea) 0%, transparent)); }
.r-bar.dot { width: 12px !important; min-width: 12px; height: 12px; top: 6px; border-radius: 50%; }
.r-mark { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--gorse); box-shadow: 0 0 0 2px var(--paper); }
.r-val { position: absolute; top: 50%; transform: translateY(-50%); font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.r-axis { padding-top: 0; }
.r-ticks { position: relative; display: block; height: 20px; border-top: 1px solid var(--chart-axis); }
.r-ticks span { position: absolute; top: 4px; transform: translateX(-50%); font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.r-ticks span:first-child { transform: none; }
.r-ticks span:last-child { transform: translateX(-100%); }
@media (max-width: 599px) {
  .b-row { grid-template-columns: 1fr; row-gap: 3px; padding: 6px 0; }
  .r-axis .b-label { display: none; }
}

/* Line chart */
.lc { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: 230px auto; margin-top: 6px; }
.lc-y { position: relative; }
.lc-y .ly { position: absolute; right: 8px; transform: translateY(-50%); font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lc-plot { position: relative; touch-action: pan-y; cursor: crosshair; }
.lc-plot:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.lc-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lc-plot .gl { stroke: var(--chart-grid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lc-plot .gl.base { stroke: var(--chart-axis); }
.lc-plot .ln-main { fill: none; stroke: var(--sea); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.lc-plot .ln-area { fill: var(--sea); opacity: .1; stroke: none; }
.lc-x { grid-column: 2; position: relative; height: 24px; }
.lc-x .lx { position: absolute; top: 6px; transform: translateX(-50%); font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lc-x .lx:first-child { transform: none; } .lc-x .lx:last-child { transform: translateX(-100%); }
.lc-dot, .lc-hdot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--sea); box-shadow: 0 0 0 2px var(--paper); }
.lc-hdot { pointer-events: none; }
.lc-note { position: absolute; right: 0; transform: translateY(calc(-100% - 10px)); font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; text-align: right; }
.lc-cross { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ink-3); pointer-events: none; }

/* Timelines and steppers */
.timeline { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); column-gap: 20px; }
.timeline li { position: relative; padding-top: 56px; }
.timeline li::before { content: ""; position: absolute; top: 21px; left: 0; right: -20px; height: 2px; background: var(--rule); }
.timeline li:last-child::before { display: none; }
.tl-node { position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--ill-warm); display: grid; place-items: center; box-shadow: 0 0 0 5px var(--paper); }
.tl-when { display: block; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.tl-title { display: block; font-size: 16px; font-weight: 700; line-height: 1.25; margin: 2px 0 4px; color: var(--ink); }
.tl-text { display: block; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 599px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline li { padding: 0 0 18px 60px; min-height: 60px; }
  .timeline li::before { top: 44px; bottom: 0; left: 21px; right: auto; width: 2px; height: auto; }
  .timeline li:last-child::before { display: none; }
}
.stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; counter-reset: st; }
.stepper a { display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; align-items: center; height: 100%; padding: 12px; border: 1px solid var(--rule); border-radius: 8px; color: var(--ink); text-decoration: none; transition: border-color .15s, background-color .15s; }
.stepper a:hover { border-color: var(--ink); background: var(--paper-2); }
.st-icon { grid-row: 1 / 4; width: 40px; height: 40px; border-radius: 50%; background: var(--ill-cool); display: grid; place-items: center; }
.st-num { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.st-num::before { content: "Step "; }
.stages .st-num::before { content: "Stage "; }
.st-label { font-size: 15px; font-weight: 700; line-height: 1.2; }
.st-sub { font-size: 13px; color: var(--ink-3); }
.roadmap { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.roadmap a { grid-template-columns: 1fr; row-gap: 2px; align-content: start; padding: 12px 10px; }
.roadmap .st-icon { grid-row: auto; margin-bottom: 8px; }
.roadmap .st-label { font-size: 14px; }
@media (max-width: 759px) { .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .roadmap a { grid-template-columns: 40px 1fr; } .roadmap .st-icon { grid-row: 1 / 3; margin: 0; } }
@media (max-width: 599px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stepper a { grid-template-columns: 1fr; padding: 10px; } .st-icon { grid-row: auto; margin-bottom: 6px; width: 36px; height: 36px; } .roadmap .st-icon { grid-row: auto; margin-bottom: 6px; } .roadmap a { grid-template-columns: 1fr; } }

/* Icon list, tiers */
.icon-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.icon-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.35; color: var(--ink); }
.il-icon { flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--ill-cool); display: grid; place-items: center; }
@media (max-width: 599px) { .icon-list { grid-template-columns: 1fr; } }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tier { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--rule); border-radius: 8px; }
.tier-num { position: absolute; top: 14px; right: 16px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.tier-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--ill-cool); display: grid; place-items: center; margin-bottom: 4px; }
.tier-title { font-size: 16px; line-height: 1.25; }
.tier-price { font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.tier ul { margin-top: 6px !important; font-size: 13.5px; color: var(--ink-2); }
.tier li { padding: 6px 0; border-top: 1px solid var(--rule); }
@media (max-width: 699px) { .tiers { grid-template-columns: 1fr; } }

/* Housing status pathway */
.pathway { display: grid; row-gap: 8px; }
.pw-scale, .pw-row { display: grid; grid-template-columns: 112px repeat(3, minmax(0, 1fr)); column-gap: 6px; }
.pw-scale span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 0 0 4px 8px; border-left: 2px solid var(--chart-axis); }
.pw-scale span:first-child { border: 0; }
.pw-track { align-self: center; font-size: 13px; font-weight: 700; color: var(--ink-2); line-height: 1.3; padding-right: 6px; }
.pw-seg { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 6px; font-size: 13px; line-height: 1.35; }
.pw-seg strong { font-size: 14.5px; line-height: 1.2; }
.pw-when { display: none; font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.pw-seg.lv1 { background: var(--pw1); color: var(--pw-t1); } .pw-seg.lv2 { background: var(--pw2); color: var(--pw-t2); }
.pw-seg.lv3 { background: var(--pw3); color: var(--pw-t3); } .pw-seg.lv4 { background: var(--pw4); color: var(--pw-t4); }
@media (max-width: 599px) {
  .pw-scale { display: none; }
  .pw-row { grid-template-columns: 1fr; row-gap: 6px; }
  .pw-seg { grid-column: auto !important; }
  .pw-when { display: block; }
  .pw-row + .pw-row { margin-top: 10px; }
}

/* Yes, limited, no symbols in tables */
.sym { display: inline-flex; align-items: flex-start; gap: 7px; }
.sym svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; }
.sym-yes circle { fill: var(--sea); }
.sym-yes path { fill: none; stroke: var(--chart-on-sea); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sym-no circle { fill: none; stroke: var(--ink-3); stroke-width: 1.6; }
.sym-no path { fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; }
.sym-part circle { fill: none; stroke: var(--sea); stroke-width: 1.6; }
.sym-part .half { fill: var(--sea); }

/* Jersey and Guernsey side by side */
.vs-head, .vs-row { display: grid; grid-template-columns: 34% minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--rule); border-radius: 0; }
.vs-head { padding-top: 0; font-size: 13px; font-weight: 700; color: var(--ink-2); border-bottom: 2px solid var(--ink); }
.vs-head > span { display: flex; align-items: center; gap: 7px; }
.vs-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.vs-metric { font-size: 14px; font-weight: 600; color: var(--ink); }
.vs-note { display: block; font-size: 12.5px; font-weight: 400; color: var(--ink-3); margin-top: 2px; }
.vs-val { display: block; font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.vs-bar { display: block; height: 8px; margin-top: 7px; width: var(--w); background: var(--sea); border-radius: 0 4px 4px 0; }
.vs-bar.s0 { background: var(--chart-muted); }
@media (max-width: 599px) {
  .vs-head, .vs-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 4px; }
  .vs-metric { grid-column: 1 / -1; }
  .vs-head > span:first-child { display: none; }
}

/* Maps */
.pmap, .cmap { position: relative; }
.map-svg { display: block; width: 100%; height: auto; overflow: visible; }
.map-svg .land { fill: var(--ill-cool); stroke: var(--ink-2); stroke-width: 1.25; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map-svg .france { fill: var(--paper-2); stroke: var(--chart-axis); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pm-label { position: absolute; transform: translate(-50%, -50%); padding: 2px 6px; border-radius: 4px; font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--ink); text-decoration: none; white-space: nowrap; transition: background-color .15s; }
.pm-label:hover, .pm-label:focus-visible { background: var(--gorse); color: var(--on-gorse); }
.pm-sea { position: absolute; transform: translate(-50%, -50%); font-family: var(--serif); font-style: italic; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; pointer-events: none; }
.pm-sea.v { transform: translate(-50%, -50%) rotate(-90deg); }
.rm-pin { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; box-shadow: 0 0 0 2px var(--paper); }
.rm-pin:focus-visible { outline: 2px solid var(--gorse); outline-offset: 2px; }
.rm-list { margin-top: 16px !important; columns: 2; column-gap: 28px; font-size: 14px; line-height: 1.4; }
.rm-list li { display: flex; gap: 9px; break-inside: avoid; margin-bottom: 9px; }
.rm-list strong { display: block; color: var(--ink); }
.rm-num { flex: 0 0 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 11.5px; font-weight: 700; }
.cm-label { position: absolute; transform: translate(-50%, -50%); font-size: 13px; line-height: 1.3; color: var(--ink-2); text-align: center; white-space: nowrap; }
.cm-label strong { display: block; font-size: 15px; color: var(--ink); }
.cm-label.minor { font-size: 12px; color: var(--ink-3); }
.cm-label.france { font-family: var(--serif); font-style: italic; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.locator { float: right; width: 150px; margin: 4px 0 10px 22px; }
.locator .halo { fill: var(--gorse); opacity: .45; }
.locator .pin { fill: var(--ink); stroke: var(--paper); stroke-width: 6; }
.locator figcaption { margin-top: 2px; text-align: center; font-family: var(--sans); font-size: 12px; color: var(--ink-3); }
@media (max-width: 599px) {
  .pm-label { font-size: 10.5px; padding: 1px 3px; }
  .pm-sea { font-size: 10px; }
  .rm-list { columns: 1; }
  .rm-pin { width: 20px; height: 20px; font-size: 11px; }
  .cm-label { font-size: 11px; } .cm-label strong { font-size: 13px; }
  .locator { width: 118px; margin-left: 14px; }
}
.cmap .map-svg { overflow: hidden; }
.map-key path { fill: none; stroke: var(--ink-3); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.map-key path.n { fill: var(--ink-3); stroke: none; }
.map-key text { fill: var(--ink-3); font-family: var(--sans); font-size: 13px; font-weight: 600; }
.cmap { border: 1px solid var(--rule); background: var(--ill-cool); }
.cmap .map-svg .land { fill: var(--paper); }
.cmap .map-svg .france { fill: var(--paper-2); stroke: var(--ink-3); }
.b-track { flex-wrap: wrap; row-gap: 3px; }
@media (max-width: 599px) {
  .pm-sea, .map-key { display: none; }
  .cm-label .cm-detail, .cm-label.minor { display: none; }
  .cm-label strong { font-size: 12.5px; }
}
/* Home: the five numbers, budget bars, note art */
.home-glance { margin-top: 30px; margin-bottom: 0; }
.home-glance .glance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-glance .glance-grid li:last-child { grid-column: span 2; }
@media (min-width: 900px) {
  .home-glance .glance-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .home-glance .glance-grid li { border-bottom: 0; padding: 14px 16px; border-left: 1px solid var(--rule); }
  .home-glance .glance-grid li:first-child { border-left: 0; padding-left: 0; }
  .home-glance .glance-grid li:last-child { grid-column: auto; }
}
@media (max-width: 599px) { .home-glance .glance-grid li:last-child { border-left: 0; padding-left: 0; } }
.budget .bars { margin: 0; padding: 0; list-style: none; font-family: var(--sans); }
.budget .bars li { margin: 0; }
.budget .b-row { grid-template-columns: minmax(120px, 44%) 1fr; }
.budget-total { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 0; padding-top: 10px; border-top: 2px solid var(--ink); font-family: var(--sans); font-size: 15px; }
.budget-total strong { font-size: 22px; letter-spacing: -0.01em; }
.budget .g-table { font-family: var(--sans); }
.note-art { display: block; width: 104px; margin: 0 0 10px -8px; }
.note-art .illus { width: 104px; }
.good-to-know { font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--ink-2); background: var(--paper-2); border-radius: 6px; padding: 12px 16px 13px; }
.gtk-label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.gtk-web { display: block; margin-top: 6px; font-weight: 600; }
.gtk-web a::after { content: " \2197"; font-weight: 400; }
.price-band { display: inline-block; margin-right: 8px; padding: 0 7px; border-radius: 4px; background: var(--paper); border: 1px solid var(--rule); font-weight: 700; color: var(--ink); letter-spacing: .04em; }

/* ===================== Interactive tools (graphics.py builds them; site.js runs them) =====================
   Same frame as a chart: a 2px ink rule, a sans title, the result set large in Franklin with proportional
   figures, explanations in Caslon. Options are square-edged keys; the chosen one inverts to ink. */
.tool { clear: both; margin: 34px 0; padding-top: 14px; border-top: 2px solid var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.45; }
.tool .g-head { margin-bottom: 14px; }
.tool .g-head p { margin: 0; }
.tool .g-sub { margin-top: 3px; }
.tool-static { font-size: 15px; color: var(--ink-2); margin: 0 0 6px; }
.tool .g-source { margin-top: 16px; }
.tool-table .table-wrap { margin-bottom: 4px; }
.field-label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.btn-quiet { min-height: 44px; padding: 8px 2px; border: 0; background: none; color: var(--ink-2); font: 600 14px var(--sans); text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; }
.btn-quiet:hover { color: var(--ink); text-decoration-color: var(--gorse); }

/* Take-home calculator */
.calc-inputs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 20px; align-items: center; }
@media (min-width: 640px) { .calc-inputs { grid-template-columns: 220px minmax(0, 1fr); } }
.money-input { position: relative; display: flex; align-items: center; }
.money-input span { position: absolute; left: 14px; font-size: 22px; font-weight: 600; color: var(--ink-3); pointer-events: none; }
.money-input input { width: 100%; min-height: 52px; padding: 8px 14px 8px 32px; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--paper); color: var(--ink); font: 600 22px/1.2 var(--sans); letter-spacing: -0.01em; }
.money-input input[aria-invalid="true"] { border-color: var(--verify); box-shadow: inset 0 0 0 1px var(--verify); }
.calc-error { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--ink); padding-left: 10px; border-left: 3px solid var(--verify); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; --p: 35%; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--ink) 0 var(--p), var(--rule) var(--p) 100%); }
.range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--rule); }
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--ink); }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--gorse); border: 2px solid var(--ink); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--gorse); border: 2px solid var(--ink); }
.range:focus { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.preset { min-height: 44px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 2px; background: var(--paper); color: var(--ink); font: 600 14px var(--sans); cursor: pointer; }
.preset:hover { border-color: var(--ink-3); }
.preset[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--gorse); }
.calc-out { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
.calc-out.is-empty .calc-headline, .calc-out.is-empty .res-line, .calc-out.is-empty .meters, .calc-out.is-empty .calc-breakdown, .calc-out.is-empty .calc-rule { opacity: .35; }
.res-label { font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 0; }
.res-figure { margin: 2px 0 0; font-size: clamp(38px, 7vw, 50px); font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; color: var(--ink); }
.res-unit { font-size: 18px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.res-sub { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }
.res-line { margin: 12px 0 0; font-family: var(--serif); font-size: 19px; line-height: 1.45; color: var(--ink); }
.meters { margin: 22px 0 8px; }
.meters-title { margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.meter { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 12px; row-gap: 4px; align-items: center; margin-bottom: 12px; }
.meter-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.meter-track { position: relative; display: block; height: 20px; background: var(--ill-cool); border-radius: 0 4px 4px 0; overflow: hidden; }
.meter-fill { position: absolute; inset: 0 auto 0 0; background: var(--sea); border-radius: 0 4px 4px 0; box-shadow: 2px 0 0 var(--paper); }  /* 2px surface gap where kept meets deducted */
.meter-e .meter-track { background: var(--chart-grid); }
.meter-e .meter-fill { background: var(--chart-muted); }
.meter-note { grid-column: 2; font-size: 13.5px; color: var(--ink-2); }
.meter-note strong { color: var(--ink); }
.calc-breakdown { margin: 16px 0 8px; }
.calc-breakdown td, .calc-breakdown th { min-width: 0; }
.calc-breakdown .num { text-align: right; padding-right: 0; padding-left: 14px; white-space: nowrap; }
.calc-breakdown tr.total td { font-weight: 700; color: var(--ink); }
.calc-breakdown tr.total + tr.total td, .calc-breakdown tr.total:first-of-type td { border-top: 1px solid var(--ink-3); }
.calc-rule { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
@media (max-width: 599px) { .meter { grid-template-columns: minmax(0, 1fr); } .meter-note { grid-column: 1; } .calc-breakdown td:first-child { font-size: 14px; } }

/* Options: questions for the parish quiz and the status checker */
.q { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.q legend { padding: 0; margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: inline-flex; margin: 0; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt span { display: flex; align-items: center; min-height: 44px; padding: 9px 14px; border: 1px solid var(--rule); border-radius: 2px; background: var(--paper); color: var(--ink); font-size: 14.5px; font-weight: 500; line-height: 1.3; }
.opt:hover span { border-color: var(--ink-3); }
.opt input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.quiz-out, .status-out { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--rule); }
.quiz-hint { margin: 0; font-size: 14.5px; color: var(--ink-3); }
.picks-title { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.picks { list-style: none; margin: 0; padding: 0; }
.picks > li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; margin: 0; padding: 12px 0; border-top: 1px solid var(--rule); }
.pick-rank { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gorse); color: var(--on-gorse); font-size: 14px; font-weight: 700; }
.pick-name { font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.pick-why { list-style: none; margin: 4px 0 0; padding: 0; font-family: var(--serif); font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.pick-why li { margin: 0 0 2px; }
.picks-note { margin: 8px 0 0; font-size: 14px; color: var(--ink-3); }

/* Parish map: picks from the quiz are numbered; the rest step back */
/* 44px-tall hit areas. Neighbours' areas may overlap on small screens, so each name sits above every hit area
   and stays directly tappable. */
.pm-label::after { content: ""; position: absolute; inset: -12.5px -6px; }
.pm-name { position: relative; z-index: 1; }
@media (max-width: 599px) { .pm-label::after { inset: -15px -6px; } }
.pmap.has-picks .pm-label:not(.is-pick) { color: var(--ink-3); }
.pm-label.is-pick { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px 2px 3px; background: var(--paper); box-shadow: 0 0 0 1.5px var(--ink); }
.pm-label.is-pick::before, .pm-key-dot { content: attr(data-rank); display: grid; place-items: center; flex: none; width: 19px; height: 19px; border-radius: 50%; background: var(--gorse); color: var(--on-gorse); font-size: 11px; font-weight: 700; line-height: 1; }
.pm-label.is-pick:hover, .pm-label.is-pick:focus-visible { background: var(--gorse); }
.pm-key { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 599px) { .pm-label.is-pick { padding: 1px 5px 1px 2px; gap: 3px; } .pm-label.is-pick::before { width: 15px; height: 15px; font-size: 9.5px; } }

/* Housing status checker */
.status-name { margin: 2px 0 2px; font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.status-how { margin: 0 0 12px; font-family: var(--serif); font-size: 16.5px; color: var(--ink-2); }
.status-rights { margin: 0; border-top: 1px solid var(--rule); }
.status-rights div { display: grid; grid-template-columns: 136px minmax(0, 1fr); column-gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.status-rights dt { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.status-rights dd { margin: 0; font-size: 15px; color: var(--ink); }
.status-next { margin: 12px 0 0; font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--ink); }
.status-notes { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; color: var(--ink-2); }
.status-notes li { position: relative; margin: 0 0 6px; padding-left: 16px; }
.status-notes li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; background: var(--gorse); }
.status-links { margin: 10px 0 0; font-size: 14.5px; font-weight: 600; }
.decide { margin: 10px 0 8px; padding-left: 22px; font-size: 15px; }
.decide li { margin-bottom: 6px; }
.decide-note { font-size: 14px; color: var(--ink-2); margin: 0 0 6px; }
.pw-seg.is-you { box-shadow: 0 0 0 2px var(--paper), 0 0 0 5px var(--gorse); }
.pw-key { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 13.5px; color: var(--ink-2); }
.pw-key::before { content: ""; width: 14px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 3px var(--gorse); flex: none; }
.matrix tr.is-you td { background: color-mix(in srgb, var(--gorse) 18%, var(--paper)); }
.matrix tr.is-you td:first-child { font-weight: 700; box-shadow: inset 3px 0 0 var(--gorse); }
@media (max-width: 599px) { .status-rights div { grid-template-columns: minmax(0, 1fr); row-gap: 2px; } .status-name { font-size: 26px; } }

/* Moving checklist: your dates */
.move-date { margin: 0 0 14px; padding: 12px 14px 14px; background: var(--paper-2); border-radius: 2px; }
.move-date-help { margin: -2px 0 8px; font-size: 13.5px; color: var(--ink-3); }
.move-date-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.move-date input[type="date"] { min-height: 46px; padding: 8px 12px; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--paper); color: var(--ink); font: 600 16px var(--sans); }
.move-date-note { margin: 8px 0 0; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.move-date-note:empty { display: none; }
.st-date { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.stages .st-icon { grid-row: 1 / span 4; }
.st-now { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 2px; background: var(--gorse); color: var(--on-gorse); font-size: 10.5px; letter-spacing: .04em; vertical-align: 1px; }
.stages li.is-now a { border-color: var(--ink); box-shadow: inset 0 3px 0 var(--gorse); }
.stage-when { margin: -4px 0 12px; padding-left: 10px; border-left: 3px solid var(--gorse); font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink-2); }
@media (max-width: 599px) { .stages .st-icon { grid-row: auto; } }

/* Reading progress, along the foot of the masthead on guides */
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--gorse); transform: scaleX(0); transform-origin: 0 50%; }

/* Restaurant map: a pin and its list entry light up together */
.rm-pin { cursor: default; }
.rm-pin::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; }
@media (max-width: 599px) { .rm-pin::before { inset: -12px; } }  /* pins are 20px on phones */
.rm-pin:hover, .rm-pin:focus-visible, .rm-pin.is-hot { background: var(--gorse); color: var(--on-gorse); transform: translate(-50%, -50%) scale(1.18); z-index: 3; }
.rm-list li.is-hot .rm-num { background: var(--gorse); color: var(--on-gorse); }
.rm-list li.is-hot strong { text-decoration: underline; text-decoration-color: var(--gorse); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Motion: only when the reader has not asked for less, and only once site.js has marked the page.
   Bars grow from the baseline, the rate line draws left to right, values follow. */
@media (prefers-reduced-motion: no-preference) {
  /* the hidden state has no transition, so it applies instantly; only the reveal is animated */
  .motion .will-grow .b-bar, .motion .will-grow .r-bar, .motion .will-grow .vs-bar { clip-path: inset(0 100% 0 0); }
  .motion .will-grow.in-view .b-bar, .motion .will-grow.in-view .r-bar, .motion .will-grow.in-view .vs-bar {
    clip-path: inset(-2px -2px -2px -2px); transition: clip-path .8s cubic-bezier(.22, .8, .3, 1) calc(var(--i, 0) * 45ms), filter .15s; }
  .motion .will-grow .b-val:not(.in), .motion .will-grow .r-val, .motion .will-grow .r-mark { opacity: 0; }
  .motion .will-grow.in-view .b-val:not(.in), .motion .will-grow.in-view .r-val, .motion .will-grow.in-view .r-mark {
    opacity: 1; transition: opacity .35s ease calc(var(--i, 0) * 45ms + .5s); }
  .motion .will-draw .lc-line { clip-path: inset(-12px 100% -12px -12px); }
  .motion .will-draw.in-view .lc-line { clip-path: inset(-12px -12px -12px -12px); transition: clip-path 1.4s cubic-bezier(.45, .05, .3, 1); }
  .motion .will-draw .lc-dot, .motion .will-draw .lc-note { opacity: 0; }
  .motion .will-draw.in-view .lc-dot, .motion .will-draw.in-view .lc-note { opacity: 1; transition: opacity .4s ease 1.2s; }
  .meter-fill { transition: width .35s cubic-bezier(.22, .8, .3, 1); }
  .opt span, .preset, .rm-pin, .pm-label { transition: background-color .15s, border-color .15s, color .15s, transform .15s; }
}

/* ===================== Sign-ups (one component everywhere) ===================== */
.signup { font-family: var(--sans); }
.signup-form { display: grid; gap: 10px; margin: 0; }
.su-head { display: flex; gap: 12px; align-items: flex-start; }
.su-icon { flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--ill-warm); display: grid; place-items: center; }
.su-title { font-size: 17px; font-weight: 700; line-height: 1.25; margin: 0 0 2px; color: var(--ink); }
.su-text { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); margin: 0; }
.su-row { display: flex; flex-wrap: wrap; gap: 10px; }
.su-row input[type="email"] { flex: 1 1 220px; }
.signup input[type="email"], .signup input[type="text"], .signup input[type="tel"], .signup input[type="date"], .signup select {
  min-width: 0; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--paper); color: var(--ink); font: 16px var(--sans); }
.signup select { padding-right: 10px; }
.signup [aria-invalid="true"] { border-color: #B3261E; box-shadow: 0 0 0 1px #B3261E; }
.su-stack { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.su-field { display: grid; gap: 4px; min-width: 0; }
.su-field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.su-optional { font-weight: 400; color: var(--ink-3); }
.su-actions { display: flex; }
.su-opt { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.su-opt input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
.su-consent { color: var(--ink); }
.su-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.su-small { font-size: 12.5px; line-height: 1.45; color: var(--ink-3); margin: 0; }
.su-small a { color: var(--ink-3); }
.su-error { font-size: 13.5px; font-weight: 600; color: #B3261E; margin: 0; }
.su-done { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 6px; background: var(--paper); border: 1px solid var(--rule); font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.su-done .su-done-icon { flex: 0 0 22px; width: 22px; height: 22px; }
.su-done .su-done-icon .du { fill: var(--gorse); }
.su-proto { display: block; font-size: 12.5px; font-weight: 400; color: var(--ink-3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .signup [aria-invalid="true"], :root:not([data-theme="light"]) .su-error { border-color: #F2B8B5; color: #F2B8B5; } }
:root[data-theme="dark"] .signup [aria-invalid="true"], :root[data-theme="dark"] .su-error { border-color: #F2B8B5; color: #F2B8B5; }
@media (max-width: 599px) { .su-stack { grid-template-columns: 1fr; } .su-row .btn, .su-actions .btn { flex: 1 1 100%; } }

/* Lead cards: a download or a reminder offered beside the content */
.lead-card { clear: both; margin: 28px 0; padding: 18px 20px 20px; border-radius: 8px; background: var(--paper-2); border-top: 3px solid var(--gorse); font-family: var(--sans); }
.lead-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.lead-icon { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; }
.lead-title { font-size: 18px; font-weight: 700; line-height: 1.25; margin: 0 0 3px; color: var(--ink); }
.lead-text { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.lead-compact { padding: 14px 18px 16px; }
.lead-unlocked { margin: 12px 0 0; }
.lead-card .su-done { background: var(--paper); }

/* The checklist gate uses the same form */
.gate .signup-form { gap: 10px; }

/* Request form inside the recommended dentist card */
.clinic-card .signup-card { margin: 4px 0 20px; padding: 16px; border-radius: 6px; background: var(--paper); border: 1px solid var(--rule); }
.clinic-card .signup-card .su-head { margin-bottom: 4px; }

/* Compact forms: under the moving date, in the slide-in */
.signup-compact .su-text { font-size: 14px; }
.move-date .signup { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); }

/* Parish quiz: picks two and three until unlocked */
.picks li.is-locked .pick-hidden { filter: blur(5px); user-select: none; color: var(--ink-3); text-decoration: none; }
.pick-locked-note { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-3); }
.quiz-lock { margin: 14px 0 6px; padding: 16px; border-radius: 6px; background: var(--paper-2); border: 1px dashed var(--chart-axis); }

/* Home: the moving pack */
.pack-inner { display: grid; gap: 20px 40px; grid-template-columns: minmax(0, 1fr); padding: 26px 24px 24px; border-radius: 8px; background: var(--paper-2); border-top: 3px solid var(--gorse); }
.pack-kicker { display: inline-block; margin: 0 0 8px; padding: 2px 8px; border-radius: 3px; background: var(--gorse); color: var(--on-gorse); font: 700 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.pack h2 { font-size: 28px; margin: 0 0 8px; }
.pack-copy p:not(.pack-kicker) { font-family: var(--serif); font-size: 17px; line-height: 1.55; color: var(--ink-2); margin: 0; }
@media (min-width: 900px) { .pack-inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; padding: 32px; } }

/* Slide-in on guides */
.slidein { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 360px; max-width: calc(100vw - 32px); padding: 18px 18px 16px; border-radius: 10px; background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--gorse); box-shadow: 0 14px 40px rgba(0, 0, 0, .18); font-family: var(--sans); }
.slidein-title { margin: 0 28px 4px 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.slidein-text { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.slidein-close { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; background: none; color: var(--ink-2); font-size: 24px; line-height: 1; cursor: pointer; }
.slidein-close:hover { color: var(--ink); }
.slidein-link { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .slidein { transform: translateY(16px); opacity: 0; transition: transform .35s ease, opacity .35s ease; }
  .slidein.is-in { transform: none; opacity: 1; }
}
@media (max-width: 599px) {
  .slidein { left: 0; right: 0; bottom: 0; width: auto; max-width: none; border-radius: 10px 10px 0 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
  .slidein .signup, .slidein-text { display: none; }
  .slidein-title { grid-column: 1; margin: 0; font-size: 15px; }
  .slidein-link { display: inline-flex; grid-column: 2; grid-row: 1; min-height: 44px; padding: 8px 14px; font-size: 14px; }
  .slidein-close { position: static; grid-column: 3; grid-row: 1; width: 40px; height: 44px; }
  .slidein { grid-template-columns: minmax(0, 1fr) auto auto; }
}
@media print { .slidein, .signup, .lead-card, .pack { display: none !important; } }

.slidein.is-away { display: none; }
.lead-note { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-3); }
