/*
 * LEARN — legal.learnumt.app
 * ============================================================================
 * One stylesheet for every page on the legal site.
 *
 * The palette is LEARN's own, taken from the app's bundled fallback theme
 * (LEARN/src/theme/defaultThemeConfig.js): royal blue #4169e1 as primary,
 * deep sky #00bfff as accent, and the forest green #228B22 the logo's book
 * mark and the lecturer role both use. They are written out here as literal
 * values on purpose — this site is static and has no access to the admin
 * theme document, so tracking the app's live palette is not on offer. If an
 * admin re-themes the app, these do not follow, and that is the accepted
 * trade for a site that has to render with no API and no session.
 *
 * Two things here are load-bearing rather than decorative:
 *
 *  - The dark palette is defined under prefers-color-scheme only, and every
 *    colour has a light definition on bare :root first. A reader opening a
 *    policy at night gets a dark page; a reader who prints it gets black on
 *    white, because the print block below overrides both.
 *
 *  - The print rules are not an afterthought. A legal document is printed and
 *    filed — by a student disputing a charge, by a university's registry, by
 *    us. So the nav, the table of contents and every interactive affordance
 *    are dropped, link targets are expanded after the anchor text, and the
 *    page carries its own URL and effective date in the running header.
 */

/* ── Reset ────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
}

img { max-width: 100%; height: auto; display: block; }

/* ── Tokens ───────────────────────────────────────────────────────────── */

:root {
  --brand:          #4169e1;
  --brand-strong:   #2f4fc4;
  --brand-soft:     #eef2fe;
  --accent:         #00bfff;
  --green:          #228B22;
  --green-soft:     #eaf6ea;

  --bg:             #ffffff;
  --bg-muted:       #f6f8fb;
  --bg-sunken:      #eef1f6;
  --surface:        #ffffff;

  --text:           #14181f;
  --text-muted:     #55606f;
  --text-faint:     #67707d;
  --text-invert:    #ffffff;

  --border:         #dfe4ec;
  --border-strong:  #c6cedb;

  --warn-bg:        #fff8e6;
  --warn-border:    #f0d18a;
  --warn-text:      #6b4e06;

  --info-bg:        #eef2fe;
  --info-border:    #c3cffb;
  --info-text:      #24357f;

  --shadow-sm: 0 1px 2px rgba(20, 24, 31, .06), 0 1px 3px rgba(20, 24, 31, .04);
  --shadow-md: 0 4px 12px rgba(20, 24, 31, .07), 0 2px 4px rgba(20, 24, 31, .04);
  --shadow-lg: 0 12px 32px rgba(20, 24, 31, .10), 0 4px 8px rgba(20, 24, 31, .04);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
                "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  --wrap: 1180px;
  --measure: 72ch;
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand:         #7d9bff;
    --brand-strong:  #9db4ff;
    --brand-soft:    #1a2140;
    --accent:        #53d2ff;
    --green:         #5cc65c;
    --green-soft:    #16301a;

    --bg:            #0d1017;
    --bg-muted:      #141924;
    --bg-sunken:     #10141d;
    --surface:       #151b27;

    --text:          #e8ecf3;
    --text-muted:    #a7b1c1;
    --text-faint:    #7e899a;
    --text-invert:   #0d1017;

    --border:        #253045;
    --border-strong: #35435e;

    --warn-bg:       #2c2410;
    --warn-border:   #5d4c1c;
    --warn-text:     #f0d9a0;

    --info-bg:       #161f3d;
    --info-border:   #2b3a6a;
    --info-text:     #bfcdff;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .45);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .5);
  }
}

/* ── Base ─────────────────────────────────────────────────────────────── */

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent); text-underline-offset: 2px; }
a:hover { color: var(--brand-strong); text-decoration-color: currentColor; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: color-mix(in srgb, var(--brand) 25%, transparent); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; left: 12px; top: -100px;
  z-index: 200;
  background: var(--brand); color: #fff;
  padding: 12px 18px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Header ───────────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
}

.brand {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--text);
  font-weight: 700; letter-spacing: -.015em;
  flex: 0 0 auto;
}
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; }
.brand-name { font-size: 1.12rem; line-height: 1; }
.brand-sep {
  width: 1px; height: 20px; background: var(--border-strong);
  display: inline-block;
}
.brand-tag {
  font-size: .86rem; font-weight: 600; color: var(--text-muted);
  letter-spacing: .02em; line-height: 1;
}

.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; align-items: center; gap: 4px;
}
.site-nav a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: .93rem; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--text); background: var(--bg-muted); }
.site-nav a[aria-current="page"] { color: var(--brand-strong); background: var(--brand-soft); font-weight: 600; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent; border: 1px solid var(--border-strong);
  color: var(--text); border-radius: var(--radius-sm);
  padding: 8px 12px; font: inherit; font-size: .9rem; font-weight: 600;
  cursor: pointer; align-items: center; gap: 8px;
}
.nav-toggle:hover { background: var(--bg-muted); }
.nav-toggle svg { width: 16px; height: 16px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .brand-sep, .brand-tag { display: none; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 10px 24px 18px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 12px 14px; font-size: 1rem; }
}

/* ── Hero (home) ──────────────────────────────────────────────────────── */

.hero {
  padding: 84px 0 64px;
  background:
    radial-gradient(900px 420px at 12% -10%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 70%),
    radial-gradient(760px 380px at 92% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid; gap: 56px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.hero-inner { max-width: 640px; }

/* The panel is routing, not decoration: most people arrive at a legal site
   with one question, and these are the five they arrive with. */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-md);
}
.hero-card h2 {
  font-size: .74rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-faint);
  margin-bottom: 4px;
}
.hero-card ul { list-style: none; padding: 0; margin: 0; }
.hero-card li { border-bottom: 1px solid var(--border); }
.hero-card li:last-child { border-bottom: 0; }
.hero-card a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 0; text-decoration: none;
  color: var(--text); font-size: .94rem; font-weight: 500;
  line-height: 1.4;
}
.hero-card a:hover { color: var(--brand); }
.hero-card a::after {
  content: "→"; color: var(--text-faint); flex: 0 0 auto;
  transition: transform .12s ease, color .12s ease;
}
.hero-card a:hover::after { color: var(--brand); transform: translateX(3px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--brand-strong);
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.3rem);
  line-height: 1.12; letter-spacing: -.028em; font-weight: 800;
  margin-bottom: 20px;
}
.hero p.lede {
  font-size: clamp(1.03rem, 2vw, 1.18rem);
  color: var(--text-muted); max-width: 62ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius);
  font-size: .95rem; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-strong); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-muted); color: var(--text); transform: translateY(-1px); }

/* ── Document index cards ─────────────────────────────────────────────── */

.section { padding: 64px 0; }
.section-head { margin-bottom: 30px; max-width: 62ch; }
.section-head h2 {
  font-size: clamp(1.45rem, 3vw, 1.85rem); line-height: 1.25;
  letter-spacing: -.02em; font-weight: 750; margin-bottom: 10px;
}
.section-head p { color: var(--text-muted); }

.card-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.doc-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none; color: inherit;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.doc-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
  box-shadow: var(--shadow-md);
  color: inherit;
}
.doc-card .icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
}
.doc-card .icon svg { width: 20px; height: 20px; }
.doc-card.is-green .icon { background: var(--green-soft); color: var(--green); border-color: color-mix(in srgb, var(--green) 25%, transparent); }
.doc-card h3 { font-size: 1.06rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 7px; }
.doc-card p { font-size: .93rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.doc-card .card-meta {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--text-faint);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.doc-card .card-go { color: var(--brand); font-weight: 600; }

/* ── Document layout ──────────────────────────────────────────────────── */

.doc-header {
  padding: 56px 0 34px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-muted);
}
.doc-header h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.75rem);
  line-height: 1.15; letter-spacing: -.026em; font-weight: 800;
  margin-bottom: 14px; max-width: 24ch;
}
.doc-header .lede { color: var(--text-muted); max-width: var(--measure); font-size: 1.04rem; }

.doc-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: .86rem;
}
.doc-meta div { display: flex; flex-direction: column; gap: 2px; }
.doc-meta dt, .doc-meta .k {
  font-size: .72rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-faint);
}
.doc-meta dd, .doc-meta .v { margin: 0; font-weight: 600; color: var(--text); }
.doc-meta .print-only { display: none; }

.doc-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
  padding: 44px 0 90px;
  align-items: start;
}
@media (max-width: 980px) {
  .doc-layout { grid-template-columns: 1fr; gap: 0; padding-top: 28px; }
}

/* Table of contents */
.toc {
  position: sticky; top: calc(var(--header-h) + 22px);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  font-size: .88rem;
  padding-right: 8px;
}
.toc h2 {
  font-size: .73rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-faint);
  margin-bottom: 12px;
}
.toc details summary {
  font-size: .73rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-faint);
  margin-bottom: 12px; list-style: none; cursor: default;
}
.toc details summary::-webkit-details-marker { display: none; }
@media (min-width: 981px) {
  /* Permanently open above the breakpoint: a sidebar that can be collapsed to
     nothing is a sidebar somebody collapses once and then cannot find. */
  .toc details > summary { pointer-events: none; }
}
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { margin: 0; }
.toc a {
  display: block; padding: 6px 12px;
  color: var(--text-muted); text-decoration: none;
  border-left: 2px solid var(--border);
  line-height: 1.45;
}
.toc a:hover { color: var(--text); border-left-color: var(--border-strong); background: var(--bg-muted); }
.toc a.is-active {
  color: var(--brand-strong); font-weight: 600;
  border-left-color: var(--brand);
  background: var(--brand-soft);
}

@media (max-width: 980px) {
  .toc {
    position: static; max-height: none; overflow: visible;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px; margin-bottom: 34px;
  }
  .toc a { border-left: none; padding: 5px 0; }
  .toc a.is-active { background: transparent; }
  .toc details summary {
    cursor: pointer; font-size: .73rem; font-weight: 700;
    letter-spacing: .09em; text-transform: uppercase; color: var(--text-faint);
    list-style: none;
  }
  .toc details summary::-webkit-details-marker { display: none; }
  .toc details summary::after { content: " ▾"; }
  .toc details[open] summary::after { content: " ▴"; }
  .toc details summary + ol { margin-top: 12px; }
}

/* Prose */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }

.prose h2 {
  font-size: 1.42rem; font-weight: 750; letter-spacing: -.016em;
  line-height: 1.3; margin-top: 2.6em; margin-bottom: .1em;
  padding-top: .5em;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; }
.prose h3 {
  font-size: 1.08rem; font-weight: 700; letter-spacing: -.008em;
  margin-top: 1.9em; margin-bottom: .1em;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.prose h4 {
  font-size: .97rem; font-weight: 700; color: var(--text-muted);
  margin-top: 1.5em; margin-bottom: .1em;
}

.prose p, .prose li { color: var(--text-muted); }
.prose strong { color: var(--text); font-weight: 650; }

.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--text-faint); }

.prose a { font-weight: 500; }

.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.6em 0; }

.prose code {
  font-family: var(--font-mono); font-size: .87em;
  background: var(--bg-sunken); border: 1px solid var(--border);
  padding: .1em .38em; border-radius: 4px; color: var(--text);
  word-break: break-word;
}

.prose blockquote {
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  padding: 14px 20px; border-radius: 0 var(--radius) var(--radius) 0;
  font-style: normal;
}
.prose blockquote p { color: var(--text); }

/* Anchor links on headings */
.anchor {
  float: left; margin-left: -.85em; padding-right: .3em;
  color: var(--text-faint); text-decoration: none;
  opacity: 0; transition: opacity .12s ease;
  font-weight: 400;
}
h2:hover > .anchor, h3:hover > .anchor, .anchor:focus { opacity: 1; }
@media (max-width: 980px) { .anchor { display: none; } }

/* Definition-style table */
.prose table {
  width: 100%; border-collapse: collapse; font-size: .92rem;
  margin-top: 1.4em;
}
.table-scroll { overflow-x: auto; margin-top: 1.4em; -webkit-overflow-scrolling: touch; }
.table-scroll table { margin-top: 0; }
.prose th, .prose td {
  text-align: left; vertical-align: top;
  padding: 11px 14px; border-bottom: 1px solid var(--border);
}
.prose th {
  font-size: .76rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-faint);
  background: var(--bg-muted); white-space: nowrap;
}
.prose tbody tr:last-child td { border-bottom: none; }
.prose td { color: var(--text-muted); }
.prose td:first-child { color: var(--text); font-weight: 600; }

/* Callouts */
.callout {
  border: 1px solid var(--border);
  background: var(--bg-muted);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 1.5em;
}
.callout > * + * { margin-top: .6em; }
.callout .callout-title {
  display: flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-faint);
}
.callout p { font-size: .95rem; }
.callout.is-info { background: var(--info-bg); border-color: var(--info-border); }
.callout.is-info .callout-title { color: var(--info-text); }
.callout.is-info p, .callout.is-info li { color: var(--info-text); }
.callout.is-info a, .callout.is-warn a { color: var(--brand-strong); }
.callout.is-warn { background: var(--warn-bg); border-color: var(--warn-border); }
.callout.is-warn .callout-title { color: var(--warn-text); }
.callout.is-warn p, .callout.is-warn li { color: var(--warn-text); }

/* Contact block */
.contact-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 1.5em;
}
.contact-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 16px 18px;
}
.contact-card .k {
  font-size: .72rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-faint); display: block;
  margin-bottom: 5px;
}
.contact-card a, .contact-card span { font-size: .95rem; font-weight: 600; word-break: break-word; }

/* Back-to-top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { transform: translateY(-2px); background: var(--bg-muted); }
.to-top svg { width: 18px; height: 18px; }

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
  padding: 54px 0 34px;
  font-size: .91rem;
}
.footer-grid {
  display: grid; gap: 36px;
  grid-template-columns: minmax(220px, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
}
.footer-brand img { width: 128px; margin-bottom: 14px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .footer-brand img,
  :root:not([data-theme="light"]) .brand img {
    filter: brightness(1.28) saturate(1.1);
  }
}
.footer-brand p { color: var(--text-muted); max-width: 40ch; font-size: .9rem; }
.footer-col h2 {
  font-size: .73rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { color: var(--text-muted); text-decoration: none; }
.footer-col a:hover { color: var(--brand); text-decoration: underline; }

.footer-bottom {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  align-items: center; justify-content: space-between;
  color: var(--text-faint); font-size: .85rem;
}

/* ── Print ────────────────────────────────────────────────────────────── */

@media print {
  :root {
    --bg: #fff; --bg-muted: #fff; --bg-sunken: #fff; --surface: #fff;
    --text: #000; --text-muted: #1a1a1a; --text-faint: #444;
    --border: #bbb; --border-strong: #999;
    --brand: #000; --brand-soft: #fff;
  }
  @page { margin: 18mm 16mm; }

  body { font-size: 10.5pt; line-height: 1.55; background: #fff; color: #000; }

  .site-header, .site-nav, .nav-toggle, .toc, .to-top, .skip-link,
  .hero-actions, .anchor, .site-footer .footer-col { display: none !important; }

  .doc-meta .print-only { display: flex; }
  .doc-header { border-bottom: 1.5pt solid #000; padding: 0 0 12pt; background: #fff; }
  .doc-header h1 { font-size: 20pt; }
  .doc-layout { display: block; padding: 0; }
  .prose { max-width: none; }
  .wrap { max-width: none; padding-inline: 0; }

  .prose h2 { font-size: 13pt; margin-top: 18pt; page-break-after: avoid; }
  .prose h3 { font-size: 11pt; page-break-after: avoid; }
  .prose p, .prose li { orphans: 3; widows: 3; }
  .prose table, .callout, .contact-card { page-break-inside: avoid; }
  /* Plain callouts go white on paper; the tinted two keep a light wash. The
     warning callout is where the load-bearing caveats live — that the app lock
     does not protect the account, that an alarm is not a guarantee — and on a
     printed policy those should still be the paragraphs the eye lands on. Both
     stay legible on a mono printer, where the wash renders as pale grey. */
  .callout { border: 1pt solid #666; background: #fff; }
  .callout.is-info { background: #eef2fe; border-color: #7f93d8; }
  .callout.is-warn { background: #fff8e6; border-color: #b8952f; }
  .callout.is-info p, .callout.is-info li { color: #1d2b6b; }
  .callout.is-warn p, .callout.is-warn li { color: #5a4105; }

  /* A printed policy has to survive leaving the browser, so every link
     carries its destination. Same-page anchors would print as noise. */
  .prose a[href^="http"]::after,
  .prose a[href^="mailto"]::after {
    content: " (" attr(href) ")";
    font-size: 8.5pt; color: #444; word-break: break-all;
  }

  .site-footer { border-top: 1pt solid #000; padding: 10pt 0 0; background: #fff; }
  .footer-brand img { width: 90px; filter: grayscale(100%); }
}
