/* Retirement Home Advisors: see design-plan.md */
:root {
  --green: #0B6E4F;
  --green-deep: #084C37;
  --ink: #1D2622;
  --muted: #56625D;
  --mist: #EEF3F0;
  --amber: #E8A317;
  --rule: #D5DDD9;
  --white: #FFFFFF;
  --head: "Overpass", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --wrap: 1140px;
  --measure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; accent-color: var(--green); }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.1875rem; /* 19px */
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  caret-color: var(--green);
  /* Short pages (404) keep the footer at the bottom of the window */
  min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }
::selection { background: #CDE5D9; color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--head);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 4.2vw, 3.625rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 2.6vw, 2.3125rem); font-weight: 800; }
h3 { font-size: 1.5rem; font-weight: 700; }
p, ul, ol, dl { margin: 0 0 1em; }
p, li { text-wrap: pretty; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--green-deep); text-decoration-thickness: 2px; }
/* Focus: deep route green on light surfaces (9:1 on white); white on dark and green surfaces. Amber stays for route stops only. */
:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 3px; border-radius: 3px; }
.site-foot :focus-visible, .draft-bar :focus-visible { outline-color: var(--white); }
.nowrap { white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: 0.4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 1rem; font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--rule); }
.prose tr > :first-child { padding-left: 0; }
.prose tr > :last-child { padding-right: 0; }
.prose thead th { font-family: var(--head); line-height: 1.3; vertical-align: bottom; border-bottom: 2px solid var(--green); }
.prose tbody th { font-weight: 700; }
.prose table.stack tbody th { width: 11rem; }
.prose table:not(.stack) { width: auto; min-width: min(100%, 28rem); }
.prose .num { text-align: right; white-space: nowrap; }
.prose th.num { white-space: normal; }
@media (min-width: 641px) {
  .prose tr.total th, .prose tr.total td { border-top: 2px solid var(--ink); background: var(--mist); }
  .prose tr.total > :first-child { padding-left: 0.6rem; }
  .prose tr.total > :last-child { padding-right: 0.6rem; }
  .prose tr.total + tr.total th, .prose tr.total + tr.total td { border-top: 1px solid var(--rule); }
}
/* Tables with a "stack" class become labelled blocks on phones, so nothing hides off the side of the screen */
@media (max-width: 640px) {
  .prose table.stack, .prose table.stack tbody, .prose table.stack tr { display: block; width: auto; }
  .prose table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .prose table.stack tr { border-top: 1px solid var(--rule); padding: 0.9rem 0 0.75rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1rem; }
  .prose table.stack tr:last-child { border-bottom: 1px solid var(--rule); }
  .prose table.stack th, .prose table.stack td { display: block; width: auto; padding: 0; border: 0; text-align: left; background: none; }
  .prose table.stack tbody th { grid-column: 1 / -1; width: auto; font-family: var(--head); font-size: 1.125rem; }
  .prose table.stack .num { white-space: normal; }
  .prose table.stack tbody th a { display: inline-flex; align-items: center; min-height: 44px; }
  .prose table.stack tr:has(> th a) { padding-top: 0.35rem; }
  .prose table.stack td[colspan], .prose table.stack-wide td { grid-column: 1 / -1; }
  .prose table.stack td[data-label]::before { content: attr(data-label); display: block; font-size: 0.9375rem; font-weight: 700; color: var(--muted); line-height: 1.35; margin-bottom: 0.1rem; }
  .prose table.stack tr.total { background: var(--mist); border-top: 2px solid var(--ink); padding-left: 0.75rem; padding-right: 0.75rem; }
  .prose table.stack tr.total + tr.total { border-top: 1px solid var(--rule); }
}
@media (max-width: 760px) { .prose table:not(.stack) { display: block; overflow-x: auto; } }
.muted { color: var(--muted); }
.small { font-size: 1rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 0.75rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Draft notice (local review only) */
.draft-bar { background: var(--ink); color: var(--white); font-size: 0.95rem; padding: 0.5rem 0; }
.draft-bar p { margin: 0; }

/* Header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--white); }
.site-head .wrap { display: flex; align-items: center; column-gap: 1.5rem; min-height: 76px; flex-wrap: wrap; }
.wordmark { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 800; font-size: 1.25rem; line-height: 1.1; }
.wordmark:hover { color: var(--ink); }
.wordmark svg { flex: none; }
.site-nav { margin-left: auto; display: flex; column-gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.05rem; text-underline-offset: 0.3em; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; }
/* Narrower screens: wordmark and call button on the first row, the menu on its own row below */
@media (max-width: 1119px) {
  .site-head .wrap { padding-top: 0.6rem; padding-bottom: 0.25rem; }
  .site-head .btn { order: 2; margin-left: auto; }
  .site-nav { order: 3; width: 100%; margin-left: 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 52px; padding: 0.7rem 1.3rem;
  font-family: var(--head); font-weight: 800; font-size: 1.125rem; line-height: 1.1;
  border-radius: 6px; border: 2px solid var(--green);
  text-decoration: none; cursor: pointer;
}
.btn-call { background: var(--green); color: var(--white); }
.btn-call:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--white); text-decoration: none; }
.btn-quiet { background: var(--white); color: var(--green); }
.btn-quiet:hover { background: var(--mist); color: var(--green-deep); text-decoration: none; }
.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn[disabled] { opacity: 0.65; cursor: progress; }
.site-head .btn { min-height: 44px; font-size: 1rem; padding: 0.5rem 1rem; }

/* Hero */
.hero { padding: 3.5rem 0 3rem; }
.hero .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { max-width: 16ch; }
.hero .lede { font-size: 1.375rem; max-width: 34ch; margin-bottom: 1.5rem; }
.hero figure { margin: 0; }
.hero-photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--mist); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.hero figcaption { margin-top: 0.75rem; font-size: 1rem; color: var(--muted); }
.hero figcaption strong { color: var(--ink); font-family: var(--head); font-size: 1.125rem; display: block; }

/* The 401 route line: the one bold element */
.route-band { background: var(--mist); padding: 2.75rem 0 3rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.route-band h2 { margin-bottom: 0.25rem; }
.route-band .sub { color: var(--muted); margin-bottom: 2rem; }
/* Labels alternate above and below the line, like a route map */
.route { --lab: 3.4rem; --dot: 24px; position: relative; list-style: none; margin: 0; padding: 0; display: flex; }
.route::before {
  content: ""; position: absolute; left: 10px; right: 10px;
  top: calc(var(--lab) + var(--dot) / 2 - 3px); height: 6px;
  background: var(--green); border-radius: 3px;
  transform-origin: left center;
}
.route li { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; }
.route li:first-child { justify-content: flex-start; }
.route li:last-child { justify-content: flex-end; }
.route a, .route .here {
  display: grid; grid-template-rows: var(--lab) var(--dot) var(--lab); justify-items: center;
  text-decoration: none; color: var(--ink); text-align: center; position: relative; z-index: 1;
}
.route li:first-child a, .route li:first-child .here { justify-items: start; text-align: left; }
.route li:last-child a, .route li:last-child .here { justify-items: end; text-align: right; }
.route .stop {
  grid-row: 2; width: var(--dot); height: var(--dot); border-radius: 50%;
  background: var(--white); border: 5px solid var(--green);
}
.route .label { grid-row: 3; align-self: start; padding-top: 0.45rem; display: flex; flex-direction: column; white-space: nowrap; }
.route li:nth-child(even) .label { grid-row: 1; align-self: end; padding: 0 0 0.45rem; }
.route a:hover .stop, .route a:focus-visible .stop, .route .here .stop { background: var(--amber); border-color: var(--green-deep); }
.route .name { font-family: var(--head); font-weight: 800; font-size: 1.0625rem; line-height: 1.15; }
.route .count { font-size: 0.875rem; color: var(--muted); }
.route a:hover .name { color: var(--green); text-decoration: underline; }
.route .here .name { color: var(--green-deep); }
.route-more { margin-top: 1.5rem; }

@media (prefers-reduced-motion: no-preference) {
  .route.draw::before { animation: draw 1.4s cubic-bezier(.6,.1,.2,1) both; }
  .route.draw .stop { animation: pop .3s ease-out both; animation-delay: calc(var(--i) * 90ms + 200ms); }
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* Mini route on city pages */
.route.mini { --lab: 2rem; --dot: 18px; margin: 1.25rem 0 0; }
.route.mini .stop { border-width: 4px; }
.route.mini::before { height: 4px; top: calc(var(--lab) + var(--dot) / 2 - 2px); }
.route.mini .name { font-size: 0.875rem; font-weight: 700; }
.route.mini .here .name { font-weight: 800; }
.route.mini .count { display: none; }

/* Sections */
.section { padding: 3.5rem 0; }
.section + .section { border-top: 1px solid var(--rule); }
.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 3.25rem; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--green); color: var(--white);
  font-family: var(--head); font-weight: 800; font-size: 1.25rem;
  display: grid; place-items: center;
}
.steps h3 { margin-bottom: 0.35rem; }
.paid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.paid .statement { font-family: var(--head); font-size: 1.75rem; font-weight: 700; line-height: 1.3; color: var(--green-deep); max-width: 24ch; }

.link-list { list-style: none; padding: 0; margin: 0 0 1em; }
.link-list li { border-top: 1px solid var(--rule); margin: 0; }
.link-list li:last-child { border-bottom: 1px solid var(--rule); }
.link-list a { display: block; padding: 0.8rem 0; font-weight: 700; text-decoration: none; line-height: 1.45; }
.link-list a:hover { text-decoration: underline; }
.link-list .muted { display: block; font-weight: 400; font-size: 1rem; margin-top: 0.15rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }

/* Page head */
.page-head { padding: 1.75rem 0 1.5rem; }
.crumbs { font-size: 1rem; margin-bottom: 0.5rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.4rem; }
.crumbs li + li::before { content: "/"; color: var(--muted); margin-right: 0.4rem; }
.crumbs a { color: var(--muted); display: inline-block; padding: 0.6rem 0; }
.crumbs a:hover { color: var(--green-deep); }
.page-head .lede { font-size: 1.25rem; max-width: 60ch; }
.page-head > p:not(.lede) { max-width: 68ch; }

/* City and home layouts */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: start; padding-bottom: 4rem; }
.with-aside > * { min-width: 0; }
.no-aside { padding-bottom: 4rem; }
.no-aside .with-aside { padding-bottom: 0; }
/* Section headings in the main column of city and care pages */
.with-aside > div > h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); margin: 2.75rem 0 0.75rem; }
.advisor-box { border: 2px solid var(--green); border-radius: 6px; padding: 1.25rem; position: sticky; top: 1rem; background: var(--white); }
.advisor-box .who { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 0.9rem; }
.advisor-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 10%; }
.advisor-box h2 { font-size: 1.25rem; margin: 0; }
.advisor-box p, .advisor-box ol { font-size: 1rem; }
.advisor-box ol { padding-left: 1.25rem; }
.advisor-box li { margin-bottom: 0.5rem; }
.advisor-box .btn { width: 100%; margin-bottom: 0.6rem; }
.advisor-box > :last-child { margin-bottom: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; padding: 0; border: 0; min-width: 0; }
.filters legend { font-weight: 700; margin-bottom: 0.6rem; padding: 0; float: left; width: 100%; }
.filters label { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; border: 2px solid var(--rule); border-radius: 999px; padding: 0.3rem 1rem 0.3rem 0.8rem; cursor: pointer; font-size: 1rem; line-height: 1.25; }
.filters label:hover { border-color: var(--green); }
.filters input { accent-color: var(--green); width: 1.1rem; height: 1.1rem; margin: 0; flex: none; }
@supports selector(:has(*)) {
  .filters input:focus-visible { outline: none; }
  .filters label:has(input:focus-visible) { outline: 3px solid var(--green-deep); outline-offset: 2px; }
}
.filters label:has(input:checked) { border-color: var(--green); background: var(--mist); }

.homes { list-style: none; margin: 0; padding: 0; }
.homes > li { border-top: 1px solid var(--rule); padding: 1.1rem 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.3rem 2rem; }
.homes > li:last-child { border-bottom: 1px solid var(--rule); }
.homes h3 { font-size: 1.3125rem; line-height: 1.25; margin: 0; grid-column: 1; }
.homes h3 a { text-decoration: none; }
.homes h3 a:hover { text-decoration: underline; }
.homes .addr { grid-column: 1; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.4; }
.homes .care { grid-column: 1; margin: 0.25rem 0 0; font-size: 1rem; }
/* Care types as tags, so rows can be compared at a glance */
.homes .care-tags { grid-column: 1; list-style: none; margin: 0.35rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.homes .care-tags li { background: var(--mist); border: 1px solid var(--rule); border-radius: 4px; padding: 0.1rem 0.55rem; font-size: 1rem; line-height: 1.5; }
.homes .care-none { grid-column: 1; margin: 0.25rem 0 0; font-size: 1rem; color: var(--muted); }
.homes .price { grid-column: 2; grid-row: 1 / span 3; align-self: center; text-align: right; font-size: 0.95rem; margin: 0; min-width: 11rem; }
.homes .price strong { display: block; font-family: var(--head); font-size: 1.125rem; }
.homes li[hidden] { display: none; }
.homes .avail { grid-column: 1; margin: 0.25rem 0 0; font-size: 0.95rem; font-weight: 700; color: #7A5200; }
.homes .avail::before { content: ""; display: inline-block; width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--amber); margin-right: 0.4em; vertical-align: 0.05em; }
/* "Ask Sam about this home": a full 44px target, in its own column on wide screens */
.homes .ask { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; font-size: 1rem; }
.homes .ask a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; white-space: nowrap; }
.homes .partner { grid-column: 1; margin: 0.25rem 0 0; font-size: 0.95rem; font-weight: 700; color: var(--green-deep); }
.area-title { margin: 2.5rem 0 0.75rem; font-size: 1.5rem; }
[data-area]:first-of-type .area-title { margin-top: 0.5rem; }
.empty-msg { padding: 1rem 0; }
.with-aside .source-note { margin-top: 1.25rem; }

.facts { display: grid; grid-template-columns: 12rem minmax(0, 1fr); border-top: 1px solid var(--rule); margin: 0 0 2rem; }
.facts dt, .facts dd { padding: 0.8rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.facts dt { font-weight: 700; padding-right: 1rem; }
.mark { display: inline-block; width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--amber); margin-right: 0.4em; vertical-align: 0.05em; }
.source-note { font-size: 1rem; color: var(--muted); max-width: 70ch; }

/* Region hub */
.region { padding: 2rem 0; border-top: 1px solid var(--rule); }
.region h2 { font-size: 1.75rem; }
.city-grid { list-style: none; padding: 0; margin: 0; columns: 3 14rem; column-gap: 2rem; }
.city-grid li { break-inside: avoid; padding: 0; }
.city-grid a { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }

/* Form */
.form { max-width: 40rem; }
.field { margin-bottom: 1.25rem; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.field .hint { display: block; font-size: 1rem; color: var(--muted); margin-bottom: 0.35rem; font-weight: 400; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field select, .field textarea {
  width: 100%; font: inherit; padding: 0.7rem 0.8rem; border: 2px solid #8A9792; border-radius: 6px; background: var(--white); color: var(--ink);
}
.field textarea { min-height: 7rem; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field select { min-height: 52px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: 3px solid var(--green-deep); outline-offset: 2px; }
.field fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.field fieldset legend { padding: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.checks label, .consent label { font-weight: 400; display: flex; gap: 0.6rem; align-items: flex-start; cursor: pointer; }
.checks label { min-height: 44px; align-items: center; }
.checks input, .consent input { width: 1.3rem; height: 1.3rem; margin: 0.2rem 0 0; accent-color: var(--green); flex: none; }
.checks input { margin-top: 0; }
.form > .btn { min-width: 14rem; }
.form-status:focus { outline: none; }
.error { color: #A3261B; font-weight: 700; font-size: 1rem; margin-top: 0.35rem; }
.form-status { padding: 1rem 1.25rem; border-radius: 6px; margin-bottom: 1.5rem; }
.form-status.ok { background: var(--mist); border: 2px solid var(--green); }
.form-status.bad { background: #FBEDEB; border: 2px solid #A3261B; }

/* Footer */
.site-foot { background: var(--ink); color: #DCE4E0; padding: 3rem 0 2rem; margin-top: 0; font-size: 1rem; }
.site-foot a { color: var(--white); }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-foot h2 { color: var(--white); font-size: 1.125rem; }
.site-foot ul { list-style: none; padding: 0; }
.site-foot li { margin-bottom: 0.4rem; }
.site-foot .legal { border-top: 1px solid #3A4642; margin-top: 2rem; padding-top: 1.25rem; color: #B9C4BF; }
.site-foot a:hover { color: var(--white); text-decoration-thickness: 2px; }
.site-foot ::selection { background: #CDE5D9; color: var(--ink); }

.call-bar { display: none; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .paid, .two-col, .with-aside { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { aspect-ratio: 1 / 1; max-width: 340px; }
  .advisor-box { position: static; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-foot .cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 1.125rem; }
  /* Room under the footer for the fixed call bar, in the footer's own colour */
  .site-foot { padding-bottom: calc(2rem + 4rem + env(safe-area-inset-bottom, 0px)); }
  .call-bar {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; min-height: 4rem;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--green); color: var(--white); text-decoration: none;
    font-family: var(--head); font-weight: 800; font-size: 1.2rem;
    border-top: 3px solid var(--amber);
  }
  .call-bar:hover { color: var(--white); background: var(--green-deep); }
  .call-bar:focus-visible { outline: 3px solid var(--white); outline-offset: -8px; }
  /* Footer links: full-height tap targets */
  .site-foot li { margin: 0; }
  .site-foot ul a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-foot p a { display: inline-block; padding: 0.6rem 0; }
  .crumbs { margin-bottom: 0.25rem; }
  .with-aside { gap: 2.5rem; }
  .homes .ask, .homes .price { grid-column: 1; grid-row: auto; }
  .homes .ask { margin-top: 0.1rem; }
  .site-nav { margin-left: 0; width: 100%; column-gap: 1.1rem; }
  .site-head .btn { display: none; }
  .route { flex-direction: column; gap: 0.2rem; }
  .route::before { left: 9px; right: auto; top: 12px; bottom: 12px; width: 6px; height: auto; transform-origin: center top; }
  .route li, .route li:first-child, .route li:last-child { justify-content: flex-start; }
  .route a, .route .here, .route li:first-child a, .route li:last-child a {
    grid-template-rows: none; grid-template-columns: var(--dot) auto; gap: 0.9rem;
    align-items: center; justify-items: start; text-align: left; padding: 0.3rem 0;
  }
  .route .stop { grid-row: 1; }
  .route .label, .route li:nth-child(even) .label { grid-row: 1; grid-column: 2; padding: 0; flex-direction: row; gap: 0.6rem; align-items: baseline; }
  .route .name { font-size: 1.125rem; }
  .route.mini { display: none; }
  @media (prefers-reduced-motion: no-preference) {
    .route.draw::before { animation-name: draw-down; }
  }
  .homes > li { grid-template-columns: 1fr; }
  .homes .price { grid-column: 1; grid-row: auto; text-align: left; max-width: none; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
  .checks { grid-template-columns: 1fr; }
}
@keyframes draw-down { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media print {
  .site-head nav, .advisor-box, .route-band, .site-foot { display: none; }
}

/* Home pages: we're not the home (draft agreement 15.4) */
.not-the-home { margin: 0.5rem 0 0; font-size: 1rem; color: var(--muted); max-width: 70ch; }
.advisor-box .who.second { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.advisor-box > h2 { margin-bottom: 0.9rem; }

/* About page portrait: a steady 4:5 crop instead of the full-length photo */
.about-photo { margin: 0 0 1.75rem; width: min(100%, 18rem); }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 6%; border-radius: 6px; background: var(--mist); }

/* Not-found page */
.not-found { padding-bottom: 4rem; }
.not-found .btn-row { margin-top: 1.75rem; }
.not-found .page-head { padding-top: 3.5rem; }
@media (max-width: 600px) { .form > .btn { width: 100%; } }
