/* Dont Shut Down site stylesheet.
   Design system D-070. Source of truth: DSD-Website-Brief.md.
   Rules of the system: body 20px, nothing under 17px, 8px spacing grid,
   no shadows, no stock photos, amber is never text on a light background. */

/* Fonts are served from this site: Inter 400 and 600 for body, Inter Tight 700 for headings.
   The same three weights the site used before; the two Inter weights share one file. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-tight-latin.woff2') format('woff2');
}

:root {
  /* Color */
  --navy: #08172A;        /* text, headings, header, footer */
  --amber: #F5A623;       /* button fill with navy text, accents, focus rings */
  --off-white: #F4F3EF;   /* page background, text on navy */
  --white: #FFFFFF;       /* cards, form fields */
  --slate: #5A6B7E;       /* secondary text only */
  --line: #E4E1DA;        /* borders: cards, form fields, tables */
  --line-strong: #CFC9BD; /* full-width lines between sections */
  --navy-deep: #040D18;   /* the top bar strip above the header */
  --amber-dark: #8A6A1F;  /* small bold labels only, 17px or larger */

  /* Type */
  --font-head: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text: 20px;
  --text-small: 17px;
  --h1: 52px;
  --h2: 36px;
  --h3: 26px;
  --measure: 68ch;

  /* Spacing, 8px grid */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s8: 64px;
  --s12: 96px;
  --section: 64px;
  --gutter: 32px;

  --radius: 8px;
  --control: 52px;
  --wrap: 1200px;
}

@media (max-width: 760px) {
  :root {
    --h1: 38px;
    --h2: 30px;
    --h3: 24px;
    --section: 48px;
    --gutter: 16px;
  }
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--off-white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: var(--text);
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

h1, h2, h3, h4 {
  margin: 0 0 var(--s3);
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  text-wrap: balance;
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--text); }

p, ul, ol, dl, blockquote, figure, table { margin: 0 0 var(--s3); }
p, li, dd, blockquote, figcaption { max-width: var(--measure); }
ul, ol { padding-left: var(--s4); }
li + li { margin-top: var(--s1); }
strong, b { font-weight: 600; }
small { font-size: var(--text-small); }
address { font-style: normal; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }

/* Links: navy and underlined; hover adds an amber underline. */
a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
a:hover {
  text-decoration-color: var(--amber);
  text-decoration-thickness: 3px;
}

/* Focus: 3px amber ring on every interactive element.
   The navy band inside it keeps the ring visible on light backgrounds. */
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--navy);
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--s2);
  top: -100px;
  z-index: 10;
  padding: var(--s2) var(--s3);
  background: var(--amber);
  color: var(--navy);
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { top: var(--s2); }

/* Layout */

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line-strong); }
.section > .wrap > :last-child { margin-bottom: 0; }

/* A white band, for alternating sections on a page. Where the background changes
   between two sections, the change separates them and the line is dropped. */
.section-alt { background: var(--white); }
/* Cards on a white band take the page colour, so they stand out the way white cards do on off-white. */
.section-alt .card { background: var(--off-white); }
.section-alt table { background: var(--off-white); }
.section + .section-alt,
.section-alt + .section:not(.section-alt) { border-top: 0; }

.section-navy {
  background: var(--navy);
  color: var(--off-white);
  border-top: 0;
}
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4, .section-navy a { color: var(--off-white); }

.grid { display: grid; gap: var(--s3); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}

/* Text helpers */

.lead { font-size: 24px; line-height: 1.5; }
.secondary { color: var(--slate); }
.label {
  display: block;
  margin-bottom: var(--s1);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-dark);
}
.section-navy .label { color: var(--amber); }

/* Buttons: min-height 52px, 20px text, 8px radius. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control);
  padding: var(--s1) var(--s3);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:focus-visible { border-radius: var(--radius); }
/* Doubled class so navy text holds inside the header, footer, and navy sections. */
.btn.btn-primary {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--navy);
}
.btn-primary:hover {
  border-color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--navy);
}
.btn-secondary {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-secondary:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--amber); }
.btn-on-navy, .section-navy .btn-secondary { border-color: var(--off-white); color: var(--off-white); }
.btn-on-navy:hover, .section-navy .btn-primary:hover { border-color: var(--amber); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* Cards: white, 1px line border, 8px radius, no shadows. */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s4);
  color: var(--navy);
}
.card > :last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .card { padding: var(--s3); }
}

/* Forms: labels above fields, inputs 52px or taller, plain-language errors. */

.form { display: grid; gap: var(--s3); max-width: 640px; }
.field { display: grid; gap: var(--s1); }
.field label, .field legend { font-weight: 600; }
.field .hint { font-size: var(--text-small); color: var(--slate); }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="url"], select, textarea {
  width: 100%;
  min-height: var(--control);
  padding: var(--s1) var(--s2);
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  color: var(--navy);
  font: inherit;
}
textarea { min-height: 160px; padding-block: var(--s2); resize: vertical; }
input[type="radio"], input[type="checkbox"] { width: 24px; height: 24px; accent-color: var(--navy); }
fieldset { margin: 0; padding: 0; border: 0; }
.choice { display: flex; align-items: center; gap: var(--s2); min-height: var(--control); }

.field .error, .form-error {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--navy);
  border-left: 4px solid var(--amber);
  padding-left: var(--s2);
}
.hidden-field { position: absolute; left: -9999px; }

/* Tables */

table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
th, td { padding: var(--s2); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-weight: 600; }
/* Header row in navy with off-white text, matching the printed guide. */
thead th { background: var(--navy); color: var(--off-white); border-bottom-color: var(--navy); }
.table-scroll { overflow-x: auto; }

/* On a phone, a stack-table shows each row as a block with its column names as labels. */
@media (max-width: 760px) {
  .stack-table, .stack-table tbody, .stack-table tr, .stack-table th, .stack-table td { display: block; }
  .stack-table thead { position: absolute; left: -9999px; }
  .stack-table tr { padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
  .stack-table tr:last-child { border-bottom: 0; }
  .stack-table th, .stack-table td { border: 0; padding: var(--s1) var(--s2); }
  .stack-table th[scope="row"] { font-family: var(--font-head); font-size: var(--h3); font-weight: 700; line-height: 1.2; }
  .stack-table td::before { content: attr(data-label); display: block; font-size: var(--text-small); font-weight: 600; color: var(--slate); }
}
.guide-note { margin-top: var(--s5); border-left: 6px solid var(--amber); }

/* Diagrams: navy lines, amber for the one thing to notice, Inter labels 17px or larger. */

/* Drawn 380 units wide with labels at 17 units or more, so text stays readable at phone width.
   The max-width keeps them from growing past a comfortable size on a desktop. */
.diagram { margin-inline: 0; max-width: 520px; }
.diagram svg, .diagram img { display: block; width: 100%; height: auto; }
.diagram figcaption { margin-top: var(--s2); font-size: var(--text-small); color: var(--slate); }

/* Small text helpers */

.h3 { font-size: var(--h3); }
.btn-note { margin: var(--s2) 0 0; font-size: var(--text-small); color: var(--slate); }
.section-navy .btn-note { color: var(--off-white); font-size: var(--text); }
.small-print { font-size: var(--text-small); color: var(--slate); margin: 0; }
button.btn:disabled { opacity: 0.6; cursor: default; }
[hidden] { display: none !important; }

/* Home */

.hero { padding-block: var(--section); }
.hero h1 { max-width: 16ch; }
/* A title meant to sit on one line on desktop; it still wraps naturally on a phone. */
.hero h1.h1-one-line { max-width: none; }
.hero .lead { margin-bottom: var(--s4); }
@media (max-width: 760px) {
  .btn-row .btn { flex: 1 1 100%; }
}

.steps, .record, .check-list, .habits { list-style: none; padding: 0; }
.steps li, .record li, .habits li { margin: 0; max-width: none; }
.habits h3 { margin-bottom: var(--s2); }
.habits .card > p:last-child { margin: 0; }
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--s2);
  border-radius: 50%;
  background: var(--navy);
  color: var(--off-white);
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
}
.record strong { display: block; font-family: var(--font-head); font-size: var(--h3); font-weight: 700; line-height: 1.15; margin-bottom: var(--s1); }
.record { margin-bottom: var(--s4); }

.check-list li { position: relative; padding-left: var(--s5); margin: 0 0 var(--s2); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 9px;
  height: 16px;
  border: solid var(--navy);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.baseline-price {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--s3) var(--s4);
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
}
.price { margin: 0 var(--s2) 0 0; font-family: var(--font-head); font-size: var(--h1); font-weight: 700; line-height: 1; }

.person { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--s5); align-items: start; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius); border: 1px solid var(--line); }
.person blockquote { margin: 0 0 var(--s3); padding-left: var(--s3); border-left: 4px solid var(--amber); font-size: 24px; line-height: 1.5; }
@media (max-width: 760px) {
  .person { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .person img { max-width: 280px; }
  .person blockquote { font-size: var(--text); }
}

.check-list .plain-list { list-style: disc; margin: var(--s2) 0 0; padding-left: var(--s3); }
.check-list .plain-list li { padding-left: 0; }
.check-list .plain-list li::before { content: none; }
.steps .card > p:last-child { margin: 0; }
/* Number to the left of the heading; heading and text share one column beside it. */
.steps .card { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: var(--s2); align-content: start; }
.steps .card > .step-number { grid-row: 1 / span 2; margin: 0; }
.steps .card > h3, .steps .card > p { grid-column: 2; }
.steps .card > h3 { margin-top: 0; }

/* Sample report pages: small images beside a list, each labelled as a fictional company. */
.with-samples { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: var(--s5); align-items: start; }
.samples { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.samples li { margin: 0; max-width: none; }
.samples a { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--s2); align-items: center; text-decoration: none; }
.samples img { width: 120px; height: auto; border: 1px solid var(--slate); border-radius: 4px; background: var(--white); }
.samples .sample-name { display: block; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.samples a:hover .sample-name { text-decoration-color: var(--amber); text-decoration-thickness: 3px; }
.samples .label { margin: var(--s1) 0 0; letter-spacing: 0.03em; }
/* One label above the set of sample pages. */
.samples-label { margin: 0 0 var(--s2); color: var(--amber-dark); font-size: var(--text-small); font-weight: 700; }
/* Row layout, for a sample block that has a section to itself: three pages side by side,
   each label under its image. Stacks on a phone. */
.samples-row .samples { grid-template-columns: repeat(3, minmax(0, 220px)); gap: var(--s5); }
.samples-row .samples a { grid-template-columns: minmax(0, 1fr); align-items: start; }
.samples-row .samples img { width: 100%; }
@media (max-width: 760px) {
  .samples-row .samples { grid-template-columns: minmax(0, 220px); gap: var(--s4); }
}

@media (max-width: 960px) {
  .with-samples { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
}

/* Text beside a diagram on a wide screen; stacked on a phone. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: var(--s6); align-items: center; }
.split > .diagram { margin: 0; }
/* Text and diagram both start at the top: the heading sits in the text column, level with the diagram. */
.split-top { align-items: start; }
.split-top h2 { margin-top: 0; }
@media (max-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
}

.contact-form { margin-top: var(--s5); }
.contact-form .score-question { margin: 0; }
.contact-address { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--line); }

.pdf-viewer { display: block; width: 100%; height: 80vh; min-height: 480px; margin-block: var(--s4); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.credentials { font-weight: 600; }
.signature { font-weight: 600; }

/* Fit check and request form (/exit-baseline/start). It shares the question and option styles below. */

.fit-message { margin-block: var(--s3); border-left: 6px solid var(--amber); }
.fit-message:focus, #baseline-request:focus, main h1[tabindex="-1"]:focus, main h2[tabindex="-1"]:focus { outline: none; box-shadow: none; }
main h1, .score-questions, #score-heading, #score-sent { scroll-margin-top: var(--s3); }
[data-fit-other] { margin-top: var(--s2); }

/* Owner Dependence Score */

.score-wrap { max-width: calc(800px + 2 * var(--gutter)); }
.score-progress { margin-bottom: var(--s4); }
.score-progress-text { margin: 0 0 var(--s1); font-size: var(--text-small); font-weight: 600; }
.score-progress progress {
  display: block;
  width: 100%;
  height: 16px;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.score-progress progress::-webkit-progress-bar { background: var(--white); }
.score-progress progress::-webkit-progress-value { background: var(--navy); }
.score-progress progress::-moz-progress-bar { background: var(--navy); }

.score-question { margin: 0 0 var(--s5); }
.score-question legend { padding: 0; margin-bottom: var(--s2); font-family: var(--font-head); font-size: var(--h3); font-weight: 700; line-height: 1.2; }
.score-note { color: var(--slate); margin-bottom: var(--s2); }
.score-option {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: 60px;
  margin-bottom: var(--s1);
  padding: var(--s2);
  background: var(--white);
  border: 2px solid var(--slate); /* slate, not line: a choice needs a border people can see */
  border-radius: var(--radius);
  cursor: pointer;
}
.score-option:hover { border-color: var(--navy); }
.score-option:has(input:checked) { border-color: var(--navy); box-shadow: inset 6px 0 0 var(--amber); }
.score-option:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 3px; box-shadow: 0 0 0 3px var(--navy); }
.score-option input { flex: none; }
.score-option input:focus-visible { outline: none; box-shadow: none; }
.score-questions h2:focus, #score-heading:focus, #score-sent:focus { outline: none; box-shadow: none; }
.score-questions .form-error { margin-bottom: var(--s3); }

.score-bars { list-style: none; padding: 0; margin: var(--s4) 0 var(--s5); display: grid; gap: var(--s2); }
.score-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s1) var(--s3);
  margin: 0;
  max-width: none;
  padding: var(--s2) var(--s3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.score-bar.lowest { border: 2px solid var(--navy); }
.score-bar-name { font-weight: 600; }
.score-bar-flag { margin: 0; }
.score-bar-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.score-segment { height: 20px; border: 2px solid var(--navy); border-radius: 3px; background: var(--white); }
.score-segment.filled { background: var(--navy); }
.score-bar.lowest .score-segment.filled { background: var(--amber); }
.score-bar-level { font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) {
  .score-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .score-bar-title { grid-column: 1 / -1; }
}

.score-license { margin-block: var(--s4); border-left: 6px solid var(--amber); }
.score-read { margin-top: var(--s6); padding-top: var(--s6); border-top: 1px solid var(--line); }
.score-letter { align-items: flex-start; }
.score-letter input { flex: none; margin-top: 4px; }

/* Header */

.site-header { background: var(--navy); color: var(--off-white); }
.site-header a { color: var(--off-white); }

/* A darker strip so the top bar and the navy header read as one block, divided by a faint line. */
.top-bar { background: var(--navy-deep); color: var(--off-white); border-bottom: 1px solid rgba(244, 243, 239, 0.12); font-size: 18px; }
.top-bar a { color: var(--off-white); }
.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--s3);
  min-height: 48px;
  padding-block: var(--s1);
}
.top-bar-phone { font-weight: 600; }
.top-bar-links { display: flex; flex-wrap: wrap; gap: 0 var(--s4); }
.top-bar a[aria-current] { font-weight: 600; text-decoration-color: var(--amber); text-decoration-thickness: 3px; }
@media (max-width: 760px) {
  .top-bar { font-size: var(--text-small); }
  .top-bar-inner { gap: 0 var(--s2); }
  .top-bar-links { gap: 0 var(--s3); }
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--s3) var(--s4);
  padding-block: var(--s3);
}
.header-logo { display: block; justify-self: start; border-radius: 2px; }
.header-logo img { width: 307px; height: 40px; }
.header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s2); }

.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { margin: 0; max-width: none; }
.menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.menu a:hover { border-bottom-color: var(--off-white); }
.menu a[aria-current] { border-bottom-color: var(--amber); }

.menu-wide { grid-column: 1 / -1; border-top: 1px solid rgba(244, 243, 239, 0.25); padding-top: var(--s2); }
.menu-wide ul { display: flex; flex-wrap: wrap; gap: 0 var(--s4); }
.menu-phone { display: none; }

/* The full menu needs about 1,110px to sit on one line. Below 1,200px it never wraps:
   it collapses into the "Menu" button, and the phone number stays in the top bar. */
@media (max-width: 1199px) {
  .header-inner { gap: var(--s2) var(--s4); }
  /* With the menu collapsed, Contact moves from the top bar into the Menu list. */
  .top-bar-contact { display: none; }
  .menu-wide { display: none; }
  .menu-phone { display: block; grid-column: 1 / -1; }
  .menu-phone summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--control);
    border: 2px solid var(--off-white);
    border-radius: var(--radius);
    font-size: var(--text);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
  }
  .menu-phone summary::-webkit-details-marker { display: none; }
  .menu-phone[open] summary { background: var(--off-white); color: var(--navy); }
  .menu-phone nav { padding-top: var(--s1); }
  .menu-phone a { min-height: var(--control); border-bottom: 1px solid rgba(244, 243, 239, 0.25); }
  .menu-phone a[aria-current] { border-bottom: 3px solid var(--amber); }
}

@media (max-width: 760px) {
  .header-inner { grid-template-columns: minmax(0, 1fr); padding-block: var(--s2); }
  .header-logo img { width: 246px; height: 32px; }
  .header-actions { justify-content: stretch; }
  .header-actions .btn { flex: 1 1 100%; }
}

/* Footer: navy background, off-white text, the fee-only sentence first. */

.site-footer {
  background: var(--navy);
  color: var(--off-white);
  padding-block: var(--section);
  font-size: 18px;
}
/* When the page ends on a navy section, a line marks where the footer starts:
   same colour and weight as the footer's own lines, across the same content width. */
main:has(> .section-navy:last-child) + .site-footer { position: relative; }
main:has(> .section-navy:last-child) + .site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  transform: translateX(-50%);
  border-top: 1px solid rgba(244, 243, 239, 0.25);
}
.site-footer a { color: var(--off-white); }
.site-footer p { max-width: var(--measure); }
.footer-fee-only { font-size: var(--text); font-weight: 600; margin-bottom: var(--s5); }
.footer-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--s5);
  padding-block: var(--s5);
  border-top: 1px solid rgba(244, 243, 239, 0.25);
  border-bottom: 1px solid rgba(244, 243, 239, 0.25);
  margin-bottom: var(--s4);
}
.footer-contact { display: grid; gap: var(--s2); align-content: start; justify-items: start; }
.footer-contact a[href^="tel:"] { font-size: var(--text); font-weight: 600; }
.footer-logo { width: 246px; height: 32px; margin-bottom: var(--s2); }
.footer-links ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--s5); }
.footer-links li { margin: 0 0 var(--s2); break-inside: avoid; }
.footer-legal { font-size: var(--text-small); margin-bottom: var(--s1); }
.footer-legal:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .footer-columns { grid-template-columns: minmax(0, 1fr); gap: var(--s4); padding-block: var(--s4); }
  .footer-links ul { columns: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media print {
  .site-header, .site-footer, .skip-link { display: none; }
  body { background: #fff; }
}
