/* Peak Explorer — site styles. No framework, no JavaScript, no external requests.
   Palette and type follow the app's "Sottobosco" theme (Theme.swift). */

@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/BricolageGrotesque-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/BricolageGrotesque-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #EDE7D9;
  --paper-deep: #E4DCC9;
  --surface: #F4F0E5;
  --card: #FAF8F2;
  --ink: #20241E;
  --ink-body: #2E332B;
  --muted: #55534B;
  --soft: #77746A;
  --forest: #1E4D2B;
  --forest-light: #2A6B3C;
  --leaf: #DCE8DA;
  --tan: #C89B62;
  --leather: #7A5230;
  --route: #FF6A00;
  --on-forest: #F4F0E5;
  --on-forest-muted: #C9D5C4;
  --line: rgba(32, 36, 30, 0.13);
  --line-strong: rgba(32, 36, 30, 0.26);
  --shadow: 0 30px 70px -34px rgba(32, 36, 30, 0.5);
  --radius: 18px;
  --max: 1140px;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

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

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--forest-light);
  text-decoration-thickness: 2px;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
figure {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

strong {
  font-weight: 700;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--on-forest);
  background: var(--forest);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 20px;
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 6px 16px -8px rgba(30, 77, 43, 0.6);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(250, 248, 242, 0.72);
}

.nav a {
  min-width: 76px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
  background: var(--leaf);
}

.nav a[aria-current="page"] {
  color: var(--on-forest);
  background: var(--forest);
}

.nav a.nav-lang {
  min-width: 0;
  color: var(--forest);
  font-weight: 700;
}

/* ---------- Common type ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--forest);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--route);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.18);
}

h1 {
  max-width: 13em;
  margin-bottom: 20px;
  font-size: clamp(42px, 6.4vw, 80px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.04;
}

.lede {
  max-width: 36em;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

/* ---------- Buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  color: var(--on-forest);
  background: var(--forest);
  box-shadow: 0 12px 26px -14px rgba(30, 77, 43, 0.9);
}

.button.primary:hover {
  color: var(--on-forest);
  background: var(--forest-light);
}

.button.secondary {
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  background: rgba(250, 248, 242, 0.6);
}

.button.secondary:hover {
  color: var(--ink);
  background: var(--card);
}

/* Tick list used in heroes */

.ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  color: var(--ink-body);
  font-size: 15.5px;
  font-weight: 600;
}

.ticks li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.ticks li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 8px;
  margin-top: -4px;
  border-left: 2.5px solid var(--forest-light);
  border-bottom: 2.5px solid var(--forest-light);
  transform: rotate(-45deg);
}

.availability {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Hero ---------- */

.topo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.topo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("contours.svg") center / cover no-repeat;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 35%, #000 70%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 35%, #000 70%);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  padding-block: clamp(24px, 5vw, 56px) clamp(56px, 8vw, 96px);
}

.hero-copy {
  min-width: 0;
}

.app-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.app-lockup img {
  width: 72px;
  height: 72px;
  border-radius: 17px;
  box-shadow: 0 14px 28px -16px rgba(30, 77, 43, 0.8);
}

.app-lockup .eyebrow {
  margin-bottom: 4px;
}

.app-lockup strong {
  display: block;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

/* Screenshot cards: plain app screenshots (no store captions), shown as a
   phone screen with a thin dark bezel. The radius follows the iPhone screen
   corners (165 px on a 1320 px wide screenshot = 12.5 % of the width). */

.shot {
  margin: 0;
  justify-self: center;
  width: min(100%, 390px);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 6px solid #20241e;
  border-radius: 12.5% / 5.75%;
  background: #20241e;
  box-shadow: var(--shadow);
}

/* The recording picture is a photo with the app's card on it, not a bare
   screen: it keeps the plain rounded card. */
.shot.photo img {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
}

.shot figcaption,
.credit {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.shot figcaption a,
.credit a {
  color: var(--muted);
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(56px, 8vw, 100px);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 740px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.card h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.card p + p {
  margin-top: 10px;
}

.card .kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--leather);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Split layout: text beside a screenshot */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.split.reverse {
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
}

.split.reverse .shot {
  order: -1;
}

.points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.points li {
  padding-block: 18px;
  border-top: 1px solid var(--line);
}

.points li:last-child {
  border-bottom: 1px solid var(--line);
}

.points h3 {
  margin-bottom: 6px;
  font-size: 19px;
}

.points p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Trail grade chips, same colours as the app's map (Models.swift),
   darkened slightly where white text needs more contrast. */

.grades {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.grades .label {
  min-width: 118px;
  margin-right: 4px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.g1 { background: #167D3D; }
.g2 { background: #1466C7; }
.g3 { background: #DE9112; color: var(--ink); }
.g4 { background: #C4352A; }
.g5 { background: #7D21A3; }
.g6 { background: #1A1A1A; }

.grade-block {
  margin-bottom: 26px;
}

/* Forest band (pricing) */

.band-forest {
  color: var(--on-forest);
  background: var(--forest);
}

.band-forest h2,
.band-forest h3 {
  color: var(--on-forest);
}

.band-forest .eyebrow {
  color: var(--on-forest-muted);
}

.band-forest .section-head p:not(.eyebrow),
.band-forest .card p,
.band-forest .fineprint {
  color: var(--on-forest-muted);
}

.band-forest .card {
  border-color: rgba(244, 240, 229, 0.18);
  background: rgba(244, 240, 229, 0.06);
}

.band-forest .card .kicker {
  color: var(--tan);
}

.band-forest a {
  color: var(--on-forest);
}

.band-forest .fineprint {
  max-width: 820px;
  margin: 28px 0 0;
  font-size: 15px;
}

/* Calm safety note */

.note {
  display: grid;
  gap: 6px;
  max-width: 860px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--tan);
  border-radius: 14px;
  background: var(--surface);
}

.note p {
  margin: 0;
  color: var(--ink-body);
}

.note .small {
  color: var(--muted);
  font-size: 14.5px;
}

/* Marketing details */

.details {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  align-items: start;
  gap: clamp(28px, 5vw, 60px);
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.detail-list div {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.detail-list dt {
  margin-bottom: 6px;
  color: var(--leather);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  color: var(--ink-body);
  font-size: 15.5px;
}

/* ---------- Documents (legal and support pages) ---------- */

.page {
  width: min(900px, calc(100% - 32px));
  margin-inline: auto;
  padding-block: clamp(20px, 4vw, 44px) clamp(56px, 8vw, 88px);
}

.doc {
  padding: clamp(24px, 5.5vw, 60px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 24px 60px -48px rgba(32, 36, 30, 0.6);
}

.doc h1 {
  max-width: none;
  margin-bottom: 12px;
  font-size: clamp(36px, 5.6vw, 60px);
  line-height: 1.02;
}

.doc h2 {
  margin: 48px 0 14px;
  font-size: clamp(22px, 2.6vw, 27px);
  line-height: 1.2;
  letter-spacing: -0.012em;
  scroll-margin-top: 20px;
}

.doc h3 {
  margin: 28px 0 8px;
  font-size: 18.5px;
  line-height: 1.3;
  scroll-margin-top: 20px;
}

.doc p,
.doc li,
.doc dd {
  color: var(--ink-body);
}

.doc ul,
.doc ol {
  margin-bottom: 18px;
  padding-left: 22px;
}

.doc li {
  margin-bottom: 8px;
}

.doc li::marker {
  color: var(--forest-light);
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.updated {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.lang-switch {
  display: inline-block;
  margin: 0;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

.lang-switch a {
  font-weight: 700;
}

.summary {
  margin: 0 0 12px;
  padding: 24px 26px;
  border-radius: 16px;
  background: var(--leaf);
}

.summary h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.summary ul {
  margin: 0;
}

.summary li:last-child {
  margin-bottom: 0;
}

.toc {
  margin: 28px 0 8px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.toc h2 {
  margin: 0 0 10px;
  font-size: 15px;
  font-family: var(--text);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  columns: 2 260px;
  column-gap: 32px;
  margin: 0;
  padding-left: 22px;
}

.toc li {
  margin-bottom: 6px;
  break-inside: avoid;
  font-size: 15.5px;
}

.callout {
  margin: 18px 0 22px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--tan);
  border-radius: 12px;
  background: var(--surface);
}

.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--ink-body);
}

th {
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}

thead th {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody th {
  width: 26%;
  font-weight: 700;
}

.table-group th {
  background: var(--leaf);
  color: var(--forest);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts {
  display: grid;
  grid-template-columns: minmax(150px, 0.4fr) minmax(0, 1fr);
  gap: 0;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.facts dt,
.facts dd {
  margin: 0;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  background: var(--surface);
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 700;
}

.facts dd {
  overflow-wrap: anywhere;
}

.facts dt:last-of-type,
.facts dd:last-of-type {
  border-bottom: 0;
}

code,
.mono {
  font-family: var(--mono);
  font-size: 0.9em;
}

pre {
  overflow: auto;
  max-height: 560px;
  margin: 14px 0 22px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #F1ECE0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre;
  tab-size: 2;
}

pre.wrap-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

details {
  margin: 14px 0 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

details > summary {
  padding: 14px 18px;
  cursor: pointer;
  color: var(--forest);
  font-weight: 700;
}

details[open] > summary {
  border-bottom: 1px solid var(--line);
}

details > pre,
details > .details-body {
  margin: 0;
  border: 0;
  border-radius: 0 0 12px 12px;
}

details > .details-body {
  padding: 16px 20px;
}

.source-list {
  padding-left: 22px;
}

.source-list li {
  font-size: 15.5px;
}

.faq-group {
  margin-top: 56px;
  padding-top: 8px;
  border-top: 2px solid var(--ink);
}

.faq-group > h2 {
  margin-top: 18px;
}

.contact-box {
  display: grid;
  gap: 4px;
  margin: 8px 0 12px;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--leaf);
}

.contact-box p {
  margin: 0;
}

.contact-box .big {
  font-family: var(--display);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  overflow-wrap: anywhere;
}

/* ---------- 404 ---------- */

.lost {
  display: grid;
  place-items: center;
  min-height: 56vh;
  text-align: center;
}

.lost .eyebrow {
  justify-content: center;
}

.lost h1 {
  margin-inline: auto;
}

.lost .actions {
  justify-content: center;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 14.5px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 40px;
  padding-block: 40px 44px;
}

.footer-brand p {
  max-width: 30em;
  margin: 10px 0 0;
}

.footer-brand .brand {
  font-size: 18px;
}

.footer-brand .brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  align-content: start;
  gap: 8px 28px;
}

.footer-links a {
  color: var(--ink-body);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--forest);
  text-decoration: underline;
}

.provider {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-body);
  font-style: normal;
  overflow-wrap: anywhere;
}

.fineprint {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.fineprint a,
.provider a {
  color: inherit;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .cards.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .hero,
  .split,
  .split.reverse,
  .details {
    grid-template-columns: 1fr;
  }

  .split.reverse .shot {
    order: 0;
  }

  .shot {
    width: min(100%, 340px);
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topo::before {
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), #000 60%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), #000 60%);
    opacity: 0.4;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16.5px;
  }

  .cards,
  .cards.two,
  .cards.four,
  .detail-list {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 22px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .facts dt {
    border-bottom: 0;
    padding-bottom: 4px;
  }

  .facts dd {
    padding-top: 4px;
  }

  .facts dt:last-of-type {
    border-bottom: 0;
  }
}

@media (max-width: 580px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .nav {
    width: 100%;
  }

  .nav a {
    flex: 1;
    min-width: 0;
    padding: 8px 4px;
    font-size: 14px;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .grades .label {
    min-width: 100%;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
  }
}

/* ---------- Print (legal pages print cleanly) ---------- */

@media print {
  body {
    background: #FFFFFF;
    font-size: 11pt;
  }

  .site-header .nav,
  .skip-link,
  .lang-switch,
  .toc,
  .site-footer .footer-links,
  .fineprint {
    display: none !important;
  }

  .doc {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .site-footer {
    background: none;
  }

  pre {
    max-height: none;
    white-space: pre-wrap;
  }

  a {
    color: #000000;
  }
}
