/* Meridian60 website styles
   Brand colours, fonts and the logo match the app (hcdsb-scheduling-app,
   src/style.css). Two changes for accessibility (WCAG 2.1 AA):
   - gold is only used on navy, or as a button with navy text (gold text on
     white is 2.4:1, too faint);
   - grey text uses --slate-dark (the app's --slate on cream is 3.9:1). */

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/fonts/source-serif-4-latin-wght.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-wght.woff2') format('woff2');
}

:root {
  --navy: #1B2A4A;
  --navy-light: #2C4066;
  --gold: #C9A227;
  --gold-light: #D9B748;
  --cream: #EDE7D9;
  --cream-light: #F7F4EC;
  --paper: #FFFFFF;
  --ink: #23262B;
  --slate-dark: #4B5260;
  --line: #E3E0D8;
  --on-navy: #D7DCE6;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1120px;
  --radius: 10px;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 7vw, 3.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
ul { padding-left: 1.2em; }

/* Focus ring: navy on light backgrounds, gold on navy (both at least 3:1). */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.on-navy :focus-visible { outline-color: var(--gold); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.section { padding: 64px 0; }
.section-cream { background: var(--cream-light); }
.section-navy { background: var(--navy); color: var(--on-navy); }
.section-navy h2, .section-navy h3 { color: var(--paper); }
.section-navy a { color: var(--paper); }
.center { text-align: center; }
.lead { font-size: 1.15rem; }
.note { color: var(--slate-dark); font-size: .975rem; }
.section-navy .note { color: var(--on-navy); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--navy); padding: 10px 16px; border-radius: 6px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  border-radius: 8px; border: 2px solid transparent;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; text-align: center;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn-navy { background: var(--navy); color: var(--paper); }
.btn-navy:hover { background: var(--navy-light); }
.btn-outline-light { border-color: var(--on-navy); color: var(--paper); }
.btn-outline-light:hover { background: var(--navy-light); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--cream-light); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row, .price-card .btn-row { justify-content: center; }
/* The short note under a "Try the Demo School" button (the button points to it with aria-describedby). */
.btn-note { margin: 12px 0 0; font-size: .95rem; color: var(--slate-dark); }
.on-navy .btn-note { color: var(--on-navy); }

.text-link { font-weight: 600; }

/* ===== Header ===== */
.site-header { background: var(--navy); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); min-height: 44px; }
.brand svg { width: 34px; height: 34px; flex: none; }
.wordmark { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--paper); }
.wordmark .num { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.login-link {
  color: var(--paper); font-weight: 600; font-size: .95rem; text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
}
.login-link:hover { text-decoration: underline; }
.site-header .btn { min-height: 44px; padding: 10px 16px; font-size: .95rem; white-space: nowrap; }
.login-link { white-space: nowrap; }

/* Main menu. Wide screens: a row between the logo and the buttons.
   Narrow screens: site.js adds .has-menu and a Menu button that opens the
   links as a list under the header. Without scripts the links simply show
   as a row under the logo. */
.site-header .wrap { flex-wrap: wrap; }
.site-nav { order: 3; flex: 1 0 100%; }
.site-nav ul { list-style: none; margin: 0; padding: 0 0 8px; display: flex; flex-wrap: wrap; gap: 0 4px; }
.site-nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 10px;
  color: var(--paper); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.site-nav .nav-login { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 10px;
  background: transparent; color: var(--paper); border: 2px solid var(--on-navy); border-radius: 8px;
  font-family: var(--sans); font-size: .95rem; font-weight: 600; cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle:hover { background: var(--navy-light); }
.has-menu .site-nav { display: none; }
.has-menu.menu-open .site-nav { display: block; border-top: 1px solid var(--navy-light); padding-top: 8px; }
.has-menu.menu-open .site-nav ul { flex-direction: column; }
.has-menu.menu-open .site-nav a { min-height: 48px; border-bottom: 0; border-left: 3px solid transparent; }
.has-menu.menu-open .site-nav a[aria-current="page"] { border-left-color: var(--gold); }
@media (max-width: 599px) {
  /* Log in moves into the menu to make room. */
  .header-actions .login-link { display: none; }
  .site-nav .nav-login { display: block; }
}
@media (min-width: 1100px) {
  .site-header .wrap { flex-wrap: nowrap; }
  .site-nav, .has-menu .site-nav { display: block; order: 0; flex: 0 1 auto; margin-left: auto; }
  .site-nav ul { padding: 0; flex-wrap: nowrap; }
  .site-nav a { padding: 0 9px; }
  .menu-toggle { display: none !important; }
}

@media (max-width: 480px) {
  .wordmark { font-size: 1.3rem; }
  .brand svg { width: 30px; height: 30px; }
  .site-header .wrap { padding: 0 12px; gap: 6px; }
  .header-actions { gap: 2px; }
  .site-header .btn { padding: 8px 10px; font-size: .8125rem; }
  .login-link { padding: 0 8px; font-size: .8125rem; }
  .menu-toggle { padding: 0 8px; font-size: .8125rem; }
}
@media (max-width: 379px) {
  /* Icon only; the word stays for screen readers. */
  .menu-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-toggle { padding: 0; justify-content: center; }
}
@media (max-width: 359px) {
  .brand svg { display: none; }
}

/* ===== First screen ===== */
.hero { background: var(--navy); color: var(--on-navy); padding: 48px 0 72px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero h1 { color: var(--paper); margin-bottom: .4em; }
.hero .lead { color: var(--on-navy); max-width: 36em; font-size: clamp(1.075rem, 2.4vw, 1.25rem); margin-bottom: 1.6em; }
.hero .lead a { color: var(--paper); }
.hero-small { margin: 22px 0 0; font-size: .95rem; color: var(--on-navy); }
/* One sentence per line, so the line never breaks mid-phrase. */
.hero-small span { display: block; text-wrap: balance; }
@media (min-width: 900px) {
  .hero { padding: 80px 0 104px; }
  .hero .wrap { grid-template-columns: 1.5fr 1fr; }
}
/* Home: the decorative illustration (transparent WebP on the standard navy).
   Narrow screens: centred under the text, 260px. From 900px: the right-hand column,
   vertically centred with the text, right edge on the site's content edge, with a
   60px gap to the text. 490px wide where the content is at its full 1080px (from
   1180px), shrinking with the screen below that (320px at 900px), so the text
   column never drops below 480px. */
.hero-visual { display: flex; justify-content: center; }
.hero-visual img { display: block; width: min(100%, 260px); height: auto; }
@media (min-width: 900px) {
  .hero-home .wrap { grid-template-columns: minmax(0, 1fr) auto; column-gap: 60px; }
  .hero-visual { justify-content: flex-end; }
  .hero-visual img { width: clamp(320px, calc(min(100vw - 40px, 1080px) - 590px), 490px); }
}
/* From 900 to 949px the text column is 480-529px, too narrow for "The scheduling
   season," at full size: a slightly smaller headline keeps it on 2 lines. */
@media (min-width: 900px) and (max-width: 949.98px) {
  .hero-home h1 { font-size: 3.375rem; }
}

/* ===== How it works ===== */
.steps { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 16px; counter-reset: step; }
.step {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; counter-increment: step;
}
.step::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: var(--paper);
  font-family: var(--serif); font-weight: 700; font-size: 1.1rem;
  margin-bottom: 12px;
}
.step h3, .step h2 { margin-bottom: .35em; }
.step h2 { font-size: 1.25rem; }
.step p { margin: 0; font-size: 1rem; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(5, 1fr); } }
/* How it works page: one step per row. */
.steps.steps-stacked { grid-template-columns: 1fr; }

/* ===== Who it's for (tabs) ===== */
.tablist { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0 0; }
.tab {
  min-height: 48px; padding: 10px 20px; border-radius: 999px;
  border: 2px solid var(--navy); background: var(--paper); color: var(--navy);
  font-family: var(--sans); font-size: 1rem; font-weight: 600; cursor: pointer;
}
.tab:hover { background: var(--cream-light); }
.tab[aria-selected="true"] { background: var(--navy); color: var(--paper); }
.audience {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; margin-top: 20px;
}
.audience h3 { font-size: 1.4rem; margin-bottom: .2em; }
.audience .tagline { font-family: var(--serif); font-size: 1.2rem; color: var(--slate-dark); margin-bottom: 1em; }
.audience ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.audience li { position: relative; padding-left: 28px; }
.audience li::before, .plan-list li::before {
  content: ""; position: absolute; left: 4px; top: .55em;
  width: 10px; height: 10px; border-radius: 50%; background: var(--gold);
}
.audience .aside { color: var(--slate-dark); font-style: italic; }
/* The tab buttons start hidden; site.js shows them. Without scripts all
   three audiences show, one after the other, each with its own heading. */

/* ===== Security strip ===== */
.features { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 28px; }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.feature svg { width: 44px; height: 44px; color: var(--gold); }
.feature h3 { font-family: var(--sans); font-size: 1.05rem; margin-bottom: .25em; }
.feature p { margin: 0; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(2, 1fr); gap: 36px 48px; } }

/* ===== Pricing ===== */
.price-card {
  max-width: 680px; margin: 0 auto; background: var(--paper);
  border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius);
  padding: 36px 28px; text-align: center;
}
/* Pricing page: the three licence cards. Stacked below 1000px, side by side from 1000px. */
.plans { list-style: none; padding: 0; margin: 0 auto; max-width: 640px; display: grid; gap: 20px; }
.plan {
  display: flex; flex-direction: column; min-width: 0; background: var(--paper);
  border: 1px solid var(--line); border-top: 4px solid var(--gold);
  border-radius: var(--radius); padding: 28px 24px;
}
.plan h2 {
  font-family: var(--sans); font-size: .9rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 14px;
}
.plan-price { margin: 0 0 14px; }
.plan-amount { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.plan-example { color: var(--slate-dark); font-size: .975rem; }
.plan-list { list-style: none; padding: 0; margin: 4px 0 24px; display: grid; gap: 10px; }
.plan-list li { position: relative; padding-left: 28px; }
.plan .btn-row { margin-top: auto; }
/* Evaluation card: what a school does in Parts 1 and 2. */
.plan-list.plan-parts { margin: 0 0 1em; }
/* "Want to see Meridian60 first?" under the cards. */
.plans-cta { margin-top: 40px; }
.plans-cta .lead { margin-bottom: .8em; }
@media (max-width: 480px) { .plan { padding: 24px 18px; } }
@media (min-width: 1000px) { .plans { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ===== For Boards / Principals / Guidance pages ===== */
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.point {
  background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--gold);
  border-radius: var(--radius); padding: 22px 20px;
}
.point h2 { font-size: 1.25rem; margin-bottom: .35em; }
.point p { margin: 0; font-size: 1rem; }
.points-note { margin: 28px 0 0; }
@media (min-width: 700px) { .points { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .points { grid-template-columns: repeat(3, 1fr); } }
/* Home: "More for boards" link under each audience panel. */
.audience-more { margin: 20px 0 0; }

/* ===== Screenshots (Home, For Boards / Principals / Guidance) =====
   Each image has width/height attributes, so the page doesn't jump while it loads. */
.shot { margin: 0; }
.shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 8px; background: var(--cream);
}
.on-navy .shot img { border-color: var(--navy-light); }
.shot-link { display: block; border-radius: 8px; }
.shot-link:hover img { border-color: var(--navy); }
.on-navy .shot-link:hover img { border-color: var(--gold); }
.shot figcaption { margin: 10px 0 0; font-size: .975rem; color: var(--slate-dark); }
.on-navy .shot figcaption { color: var(--on-navy); }
.shots { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 32px; }
@media (min-width: 900px) { .shots { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; } }
.shots-note { margin: 0; }
.shot-demo { display: block; margin-top: 4px; }
.board-shot { margin: 28px 0 40px; }

/* Screenshot lightbox (site.js): a modal <dialog> over a blurred, dimmed page.
   The dialog fills the window and is see-through; a click on it (outside the
   frame) closes it. The image keeps its proportions: it's limited by the
   window's width and height (less room for the Close row and the caption),
   and the frame wraps it. Not used under 700px wide (phones open the PNG). */
.lightbox {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 24px; border: 0;
  background: transparent; color: var(--ink);
  overflow: auto;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
/* Fallback where blur isn't supported: a plain, stronger dim. */
.lightbox::backdrop { background: rgba(27, 42, 74, .82); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lightbox::backdrop {
    background: rgba(27, 42, 74, .55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
}
html.lightbox-open { overflow: hidden; }
.lightbox-frame {
  --lightbox-chrome: calc(48px + 32px + 52px + 8rem); /* dialog and frame padding, Close row, caption */
  margin: auto; padding: 12px 16px 16px;
  width: min-content; min-width: min(560px, 100%);
  background: var(--paper); border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
  display: flex; flex-direction: column;
}
.lightbox-close {
  align-self: flex-end; flex: none;
  width: 44px; height: 44px; margin: 0 -6px 8px 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--line); border-radius: 8px;
  background: var(--paper); color: var(--navy);
  font: 400 1.75rem/1 var(--sans); cursor: pointer;
}
.lightbox-close:hover { border-color: var(--navy); background: var(--cream-light); }
.lightbox-img {
  display: block; align-self: center;
  width: auto; height: auto;
  max-width: min(1666px, 100vw - 80px);
  max-height: calc(100vh - var(--lightbox-chrome));
  max-height: calc(100dvh - var(--lightbox-chrome));
  border: 1px solid var(--line); border-radius: 8px; background: var(--cream);
}
.lightbox-caption {
  margin: 12px 0 0; font-size: .975rem; color: var(--slate-dark);
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px;
}
.lightbox-text { flex: 1 1 320px; }
/* Full screen button (shown only where the browser supports full screen). */
.lightbox-fs {
  flex: none; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px;
  border: 2px solid var(--navy); border-radius: 8px;
  background: var(--paper); color: var(--navy);
  font: 600 .975rem/1.2 var(--sans); white-space: nowrap; cursor: pointer;
}
.lightbox-fs:hover { background: var(--cream-light); }
.lightbox-fs svg { flex: none; }
/* Full screen (site.js sets .is-fullscreen while the frame is full screen):
   navy all round, the button alone in a bar at the top, and the screenshot
   scaled to fit the rest of the screen, proportions kept (object-fit). */
.lightbox-frame.is-fullscreen {
  width: 100%; height: 100%; min-width: 0; max-width: none; max-height: none;
  margin: 0; padding: 16px 24px 24px; border-radius: 0; box-shadow: none;
  background: var(--navy);
  display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 16px;
}
.is-fullscreen .lightbox-close, .is-fullscreen .lightbox-text { display: none; }
.is-fullscreen .lightbox-caption { display: contents; }
.is-fullscreen .lightbox-fs {
  grid-row: 1; justify-self: end;
  background: var(--navy); color: var(--paper); border-color: var(--on-navy);
}
.is-fullscreen .lightbox-fs:hover { background: var(--navy-light); }
.is-fullscreen .lightbox-fs:focus-visible { outline-color: var(--gold); }
.is-fullscreen .lightbox-img {
  grid-row: 2; align-self: stretch; justify-self: stretch;
  width: 100%; height: 100%; max-width: none; max-height: none;
  object-fit: contain; border: 0; border-radius: 0; background: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] .lightbox-frame { animation: lightbox-in .16s ease-out; }
  .lightbox[open]::backdrop { animation: lightbox-fade .16s ease-out; }
}
@keyframes lightbox-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes lightbox-fade { from { opacity: 0; } to { opacity: 1; } }

/* ===== Videos (Home, For Boards / Principals / Guidance) =====
   The browser's own <video> player, 16:9, at most 960px wide. width/height
   (1920x1080) keep the space before anything loads. site.js shows the gold
   play button over the poster and hides it once the video plays; without
   scripts the button stays hidden and the native controls work. */
.video-wrap { max-width: calc(960px + 40px); }
.video-frame { position: relative; }
.video-frame video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  border-radius: 8px; background: var(--navy);
}
/* Gold circle, navy icon (5.9:1). The navy ring keeps the circle's edge visible
   on light posters; on dark ones the gold stands out. Focus: a white band, then
   the navy ring, so it shows on light and dark parts of the poster. */
.video-play {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 3px solid var(--navy); border-radius: 50%;
  background: var(--gold); color: var(--navy);
  box-shadow: 0 4px 16px rgba(27, 42, 74, .35);
  cursor: pointer;
}
.video-play:hover { background: var(--gold-light); }
.video-play:focus-visible {
  outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 50%;
  box-shadow: 0 0 0 3px var(--paper);
}
.video-play svg { width: 36px; height: 36px; margin-left: 4px; }
@media (max-width: 480px) {
  .video-play { width: 48px; height: 48px; border-width: 2px; }
  .video-play svg { width: 24px; height: 24px; margin-left: 2px; }
}
.video-length { margin: 12px 0 20px; }
/* "Read the transcript": closed by default. */
.transcript { margin-top: 24px; border-top: 1px solid var(--line); }
.transcript summary {
  display: list-item; min-height: 44px; padding: 10px 0;
  color: var(--navy); font-weight: 600; cursor: pointer;
}
.transcript summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.transcript-text { max-width: 720px; padding: 4px 0 8px; }
.transcript-text p:last-child { margin-bottom: 0; }

/* ===== Quotes (Home's Proof section; For Principals; For Guidance) =====
   Contrast (WCAG AA, 4.5:1 for text): quote navy on cream-light 12.9:1, white on navy 14.2:1;
   attribution slate-dark on cream-light 7.1:1, on-navy on navy 10.3:1. The gold rule is decorative only. */
.quote { margin: 0; padding-left: 24px; border-left: 4px solid var(--gold); }
.quote blockquote { margin: 0; }
.quote blockquote p {
  margin: 0; font-family: var(--serif); font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.45; color: var(--navy);
}
.quote-long blockquote p { font-size: clamp(1.125rem, 2.2vw, 1.3rem); line-height: 1.6; }
.quote figcaption { margin: 18px 0 0; font-size: 1rem; color: var(--slate-dark); }
.quote-name { font-weight: 600; }
.on-navy .quote blockquote p { color: var(--paper); }
.on-navy .quote figcaption { color: var(--on-navy); }
@media (max-width: 480px) { .quote { padding-left: 16px; } }

/* ===== Long text pages (Security, About, Privacy) ===== */
.prose h2 { font-size: clamp(1.4rem, 3.5vw, 1.75rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose code { font-size: .95em; }
.story p { font-size: 1.125rem; }
.signature { margin-top: 1.6em; }
.table-scroll { overflow-x: auto; margin: 0 0 1.4em; }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .95rem; }
.table-scroll caption { text-align: left; font-weight: 600; margin-bottom: 8px; }
.table-scroll th, .table-scroll td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.table-scroll thead th { background: var(--cream-light); }
.table-scroll tbody th { font-weight: 600; }
/* "Scroll sideways…" under a wide table: shown only while the table is wider
   than the column it sits in (its min-width, 520px), so it actually scrolls.
   A container query on the text column, so desktop scrollbars don't throw it off.
   Browsers without container queries simply don't show it. */
.prose-table { container-type: inline-size; }
.table-hint { display: none; margin: -0.8em 0 1.4em; color: var(--slate-dark); font-size: .95rem; }
@container (max-width: 519.98px) { .table-hint { display: block; } }

/* ===== Contact form ===== */
.contact-form {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .optional { font-weight: 400; color: var(--slate-dark); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--slate-dark); border-radius: 8px;
}
.field textarea { resize: vertical; }
.field-hint { margin: -2px 0 6px; color: var(--slate-dark); font-size: .95rem; }
/* "I'd like to": a fieldset with a legend, styled like the other labels. */
.choice { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.choice legend { padding: 0; font-weight: 600; margin-bottom: 6px; }
.choice-option { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.choice-option input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--navy); }
.choice-option label { flex: 1; display: flex; align-items: center; min-height: 44px; cursor: pointer; }
@media (min-width: 600px) { .contact-form { padding: 32px; } }
.form-note, .form-privacy, .form-alt { color: var(--slate-dark); font-size: .95rem; }
.form-privacy { margin: 16px 0 0; }
.form-alt { margin: 20px 0 0; }
/* Spam trap, kept off screen. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ===== Placeholder / 404 pages ===== */
.page-intro { padding: 72px 0 96px; }
.page-intro h1 { font-size: clamp(2rem, 6vw, 3rem); }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: var(--on-navy); padding: 40px 0; font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 16px; }
.site-footer a { color: var(--paper); }
.site-footer p { margin: 0; }
.site-footer .brand { min-height: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
@media (min-width: 760px) {
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; }
  .footer-meta { text-align: right; }
  /* Logo and "Log in" on the first row, the page links on their own row below. */
  .footer-nav { order: 1; grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
