/* MD Viewer website. Plain CSS, no external requests.
   If you change this file, bump the ?v= query in every page's <link>,
   because /assets/** is served with long immutable caching. */

:root {
  color-scheme: light dark;

  --paper: #f3f5fb;
  --sheet: #ffffff;
  --ink: #10173d;
  --ink-2: #4a5382;
  --rule: #d8ddec;
  --marker: #8e9ad0;
  --brand: #1b33c8;
  --brand-2: #2a55a0;
  --brand-wash: #e6eafb;
  --done: #1a7f37;
  --focus: #1b33c8;

  /* Rendered-Markdown palette, same as the app's own stylesheet */
  --md-bg: #ffffff;
  --md-text: #1f2328;
  --md-muted: #59636e;
  --md-border: #d1d9e0;
  --md-code-bg: #f6f8fa;
  --md-inline-code: #818b981f;
  --md-link: #0969da;
  --md-note: #0969da;
  --md-tip: #1a7f37;
  --md-important: #8250df;
  --md-warning: #9a6700;
  --md-caution: #d1242f;
  --hl-keyword: #cf222e;
  --hl-title: #8250df;
  --hl-string: #0a3069;
  --hl-type: #953800;
  --hl-comment: #59636e;

  --chrome: #e9ebf1;
  --chrome-line: #d3d7e2;
  --sidebar: #eef0f5;
  --sidebar-active: #d9def0;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --wide: 1120px;
  --measure: 66ch;
  --radius-window: 12px;
  --radius-small: 6px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a0f26;
    --sheet: #111834;
    --ink: #e7ebfb;
    --ink-2: #a6afd6;
    --rule: #252e57;
    --marker: #4a58a0;
    --brand: #93a5ff;
    --brand-2: #6f8cd6;
    --brand-wash: #18214a;
    --done: #3fb950;
    --focus: #93a5ff;

    --md-bg: #0d1117;
    --md-text: #f0f6fc;
    --md-muted: #9198a1;
    --md-border: #3d444d;
    --md-code-bg: #151b23;
    --md-inline-code: #656c7633;
    --md-link: #4493f8;
    --md-note: #4493f8;
    --md-tip: #3fb950;
    --md-important: #ab7df8;
    --md-warning: #d29922;
    --md-caution: #f85149;
    --hl-keyword: #ff7b72;
    --hl-title: #d2a8ff;
    --hl-string: #a5d6ff;
    --hl-type: #ffa657;
    --hl-comment: #9198a1;

    --chrome: #1c2030;
    --chrome-line: #2c3246;
    --sidebar: #161a28;
    --sidebar-active: #2a3150;
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--brand); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

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

p code, li code, dd code {
  background: var(--brand-wash);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

kbd {
  display: inline-block;
  min-width: 1.9em;
  padding: 0.05em 0.45em;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--sheet);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.85em;
  text-align: center;
  white-space: nowrap;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  padding: 8px 14px;
  background: var(--sheet);
  color: var(--ink);
  border-radius: var(--radius-small);
  z-index: 10;
}
.skip-link:focus { top: 12px; }

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

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 750;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { width: 28px; height: 28px; }

.site-nav ul {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  margin: 0; padding: 0;
  list-style: none;
}
.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.95rem;
}
@media (max-width: 420px) {
  .site-nav ul { gap: 16px; }
  .site-nav li:first-child { display: none; }
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { font-weight: 600; }

.site-footer {
  margin-top: clamp(56px, 9vw, 112px);
  border-top: 1px solid var(--rule);
  padding-block: 32px 48px;
  color: var(--ink-2);
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}
.site-footer p { margin: 0; }
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0; padding: 0;
  list-style: none;
}
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }

/* ---------- Markdown heading markers ----------
   Headings carry their Markdown syntax (#, ##) in the margin,
   the way the source file would show them. */

.md-h::before {
  font-family: var(--mono);
  font-weight: 400;
  color: var(--marker);
  letter-spacing: 0;
  content: "# ";
  content: "# " / "";
}
h2.md-h::before { content: "## "; content: "## " / ""; }

@media (min-width: 1280px) {
  .md-h { position: relative; }
  .md-h::before {
    position: absolute;
    right: 100%;
    margin-right: 0.35em;
    white-space: pre;
  }
}
/* Next to the support page's sidebar there's no margin to hang markers in */
.with-toc .md-h::before { position: static; margin-right: 0; }

/* ---------- Type ---------- */

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.125rem, 1.4rem + 3vw, 3.25rem); font-weight: 780; margin: 0 0 20px; }
h2 {
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.35rem);
  font-weight: 750;
  margin: 0 0 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
h3 { font-size: 1.25rem; font-weight: 680; letter-spacing: -0.012em; margin: 0 0 8px; }

p { margin: 0 0 1em; }

.lede {
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
}

.section { padding-block: clamp(56px, 9vw, 104px) 0; }
.section-intro { max-width: var(--measure); color: var(--ink-2); margin-bottom: 40px; }

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

.hero { padding-block: clamp(24px, 5vw, 56px) 0; }

.hero-grid {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

.app-id {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.app-id img { width: 88px; height: 88px; margin: -8px; }
.app-id-text { margin: 0; }
.app-id-name {
  display: block;
  font-size: 1.25rem;
  font-weight: 780;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.app-id-sub { display: block; color: var(--ink-2); font-size: 0.95rem; }

.buy {
  margin-top: 32px;
  display: grid;
  gap: 16px;
  justify-items: start;
}
.price-line { margin: 0; color: var(--ink-2); }
.price {
  color: var(--ink);
  font-size: 1.75rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
}

.appstore-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 10px;
  background: linear-gradient(180deg, #1b33c8, #2a55a0);
  color: #fff;
  font-weight: 650;
  font-size: 1.0625rem;
  text-decoration: none;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.25) inset, 0 6px 18px -8px rgb(27 51 200 / 0.8);
}
.appstore-link:hover { background: linear-gradient(180deg, #2a42d6, #3161b0); }
.appstore-link svg { width: 20px; height: 20px; flex: none; }
@media (prefers-color-scheme: dark) {
  .appstore-link { box-shadow: 0 1px 0 rgb(255 255 255 / 0.2) inset, 0 8px 24px -10px rgb(80 110 255 / 0.9); }
}

.req { margin: 0; font-size: 0.9rem; color: var(--ink-2); }

/* ---------- App window mockup ---------- */

.window {
  --win-h: 560px;
  border-radius: var(--radius-window);
  background: var(--md-bg);
  border: 1px solid var(--chrome-line);
  box-shadow:
    0 0 0 0.5px rgb(0 0 0 / 0.08),
    0 24px 60px -20px rgb(16 23 61 / 0.35),
    0 8px 20px -12px rgb(16 23 61 / 0.25);
  overflow: hidden;
  font-family: var(--sans);
  color: var(--md-text);
  font-size: 13.5px;
  line-height: 1.55;
}
@media (prefers-color-scheme: dark) {
  .window { box-shadow: 0 0 0 1px rgb(0 0 0 / 0.6), 0 30px 70px -20px rgb(0 0 0 / 0.8); }
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 14px;
  background: var(--chrome);
  border-bottom: 1px solid var(--chrome-line);
}
.lights { display: flex; gap: 8px; }
.lights span { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.2); }
.lights span:nth-child(2) { background: #febc2e; }
.lights span:nth-child(3) { background: #28c840; }
.win-title { font-weight: 600; font-size: 13px; color: var(--md-text); margin-left: 8px; }
.win-tools { margin-left: auto; display: flex; gap: 14px; color: var(--md-muted); }
.win-tools svg { width: 16px; height: 16px; }

.win-body {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  height: var(--win-h);
}

.win-side {
  background: var(--sidebar);
  border-right: 1px solid var(--chrome-line);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  font-size: 12.5px;
}
.win-side ul { list-style: none; margin: 0; padding: 0; }
.win-side li { padding: 4px 8px; border-radius: 6px; color: var(--md-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-side li.l2 { padding-left: 20px; color: var(--md-muted); }
.win-side li.active { background: var(--sidebar-active); color: var(--md-text); }
.win-stats { margin-top: auto; padding: 8px; color: var(--md-muted); font-size: 11.5px; }

.win-doc {
  position: relative;
  overflow: hidden;
  padding: 22px 28px;
}
.win-doc::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--md-bg));
}

.win-doc .fm {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  margin-bottom: 16px;
  border: 1px solid var(--md-border);
  border-radius: 6px;
  color: var(--md-muted);
  font-size: 12px;
}
.fm-caret { width: 0; height: 0; border-left: 5px solid currentColor; border-block: 4px solid transparent; }

.win-doc .d-h1 {
  font-size: 22px; font-weight: 600; line-height: 1.25;
  padding-bottom: 6px; margin: 0 0 12px;
  border-bottom: 1px solid var(--md-border);
}
.win-doc .d-h2 {
  font-size: 16.5px; font-weight: 600; line-height: 1.25;
  padding-bottom: 5px; margin: 18px 0 10px;
  border-bottom: 1px solid var(--md-border);
}
.win-doc p { margin: 0 0 10px; }
.win-doc .ic { font-family: var(--mono); font-size: 12px; background: var(--md-inline-code); padding: 0.1em 0.35em; border-radius: 5px; }

.d-alert {
  border-left: 3px solid var(--md-important);
  padding: 6px 12px;
  margin: 0 0 12px;
}
.d-alert-title { display: flex; align-items: center; gap: 6px; color: var(--md-important); font-weight: 600; font-size: 13px; }
.d-alert-title svg { width: 14px; height: 14px; }

.d-tasks { list-style: none; margin: 0 0 8px; padding: 0; }
.d-tasks li { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.box {
  flex: none;
  width: 14px; height: 14px;
  border: 1.5px solid var(--md-muted);
  border-radius: 4px;
  display: grid; place-items: center;
}
.box.on { background: var(--md-link); border-color: var(--md-link); }
.box svg { width: 10px; height: 10px; color: #fff; }
.box:not(.on) svg { opacity: 0; }

.d-code {
  position: relative;
  background: var(--md-code-bg);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 11.75px;
  line-height: 1.6;
  white-space: pre;
  overflow: hidden;
  margin: 0 0 12px;
}
.d-copy {
  position: absolute;
  top: 8px; right: 8px;
  padding: 2px 8px;
  border: 1px solid var(--md-border);
  border-radius: 5px;
  background: var(--md-bg);
  color: var(--md-muted);
  font-family: var(--sans);
  font-size: 11px;
}
.k { color: var(--hl-keyword); }
.t { color: var(--hl-title); }
.s { color: var(--hl-string); }
.y { color: var(--hl-type); }
.c { color: var(--hl-comment); }

/* The one animated moment: the agent ticks off a task and adds another,
   and the open document updates. Runs once. */
.live-check .box { animation: tick 0.25s ease-out 1.6s both; }
.live-check .box svg { animation: tick-mark 0.25s ease-out 1.6s both; }
.live-new {
  display: grid;
  grid-template-rows: 1fr;
  animation: grow 0.45s cubic-bezier(.2,.7,.2,1) 2.6s both;
}
.live-new > span {
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  animation: flash 1.8s ease-out 2.6s both;
}

@keyframes tick {
  from { background: transparent; border-color: var(--md-muted); }
  to   { background: var(--md-link); border-color: var(--md-link); }
}
@keyframes tick-mark { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
@keyframes grow { from { grid-template-rows: 0fr; opacity: 0; } to { grid-template-rows: 1fr; opacity: 1; } }
@keyframes flash {
  from { background: color-mix(in srgb, var(--md-link) 22%, transparent); }
  to   { background: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .live-check .box, .live-check .box svg, .live-new, .live-new > span { animation: none; }
  .live-check .box { background: var(--md-link); border-color: var(--md-link); }
  .live-check .box svg { opacity: 1; }
}

@media (max-width: 640px) {
  .window { --win-h: 440px; font-size: 12.5px; }
  .win-body { grid-template-columns: minmax(0, 1fr); }
  .win-side { display: none; }
  .win-doc { padding: 16px 18px; }
  .win-tools { display: none; }
}

/* ---------- Features ---------- */

.features { display: grid; gap: clamp(48px, 6vw, 72px); }

.feature {
  display: grid;
  gap: 20px 56px;
  align-items: start;
}
@media (min-width: 880px) {
  .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}
.feature-text p { color: var(--ink-2); max-width: 36em; }
.feature-text p:last-child { margin-bottom: 0; }

/* Specimens: pieces of rendered Markdown shown next to each feature */
.specimen {
  background: var(--md-bg);
  color: var(--md-text);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 20px 22px;
  font-size: 0.9375rem;
  line-height: 1.55;
}
.specimen > :last-child { margin-bottom: 0; }
.specimen-note { margin: 12px 2px 0; font-size: 0.875rem; color: var(--ink-2); }

.sh {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sh .p { color: var(--md-muted); user-select: none; }
.sh .c { color: var(--hl-comment); }

.alert {
  border-left: 3px solid var(--a);
  padding: 4px 0 4px 14px;
  margin: 0 0 14px;
}
.alert-title { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--a); margin: 0 0 2px; }
.alert-title svg { width: 16px; height: 16px; flex: none; }
.alert p { margin: 0; }
.alert.note { --a: var(--md-note); }
.alert.tip { --a: var(--md-tip); }
.alert.warning { --a: var(--md-warning); }

.md-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin: 4px 0 0; }
.md-table th, .md-table td { border: 1px solid var(--md-border); padding: 5px 10px; text-align: left; }
.md-table th { font-weight: 600; }
.md-table tbody tr:nth-child(2n) { background: var(--md-code-bg); }
.md-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.md-table del { color: var(--md-muted); }

.mermaid-svg { width: 100%; color: var(--md-text); }
.mermaid-tall { display: none; max-width: 240px; margin-inline: auto; }
@media (max-width: 560px) {
  .mermaid-wide { display: none; }
  .mermaid-tall { display: block; }
}
.mermaid-svg .node { fill: var(--md-code-bg); stroke: var(--md-muted); stroke-width: 1.2; }
.mermaid-svg .edge { stroke: var(--md-muted); stroke-width: 1.2; fill: none; }
.mermaid-svg .arrow { fill: var(--md-muted); }
.mermaid-svg text { fill: currentColor; font-family: var(--sans); font-size: 14px; }
.mermaid-svg .label-bg { fill: var(--md-bg); }
.mermaid-svg .label { fill: var(--md-muted); font-size: 12.5px; }

/* Real, clickable task list */
.try-tasks { list-style: none; margin: 0 0 16px; padding: 0; }
.try-tasks li { padding: 3px 0; }
.try-tasks label { display: inline-flex; align-items: baseline; gap: 10px; cursor: pointer; }
.try-tasks input {
  width: 1rem; height: 1rem;
  margin: 0;
  accent-color: var(--md-link);
  position: relative; top: 2px;
  flex: none;
}

.frontmatter {
  border: 1px solid var(--md-border);
  border-radius: 6px;
  font-size: 0.875rem;
}
.frontmatter summary {
  cursor: pointer;
  padding: 7px 12px;
  color: var(--md-muted);
}
.frontmatter dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 16px;
  margin: 0;
  padding: 4px 12px 12px;
  font-family: var(--mono);
  font-size: 0.8125rem;
}
.frontmatter dt { color: var(--md-muted); }
.frontmatter dd { margin: 0; overflow-wrap: anywhere; }

.toc-spec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin: 0; padding: 0; list-style: none; font-size: 0.9rem; }
.toc-spec li { padding: 4px 10px; border-radius: 6px; }
.toc-spec li.l2 { padding-left: 26px; color: var(--md-muted); }
.toc-spec li.active { background: var(--sidebar-active); color: var(--md-text); }
.toc-stats { margin: 12px 10px 0; font-size: 0.8125rem; color: var(--md-muted); }

.keys { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; margin: 0; align-items: baseline; }
.keys dt { text-align: right; }
.keys dd { margin: 0; }

.editors { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.editors li {
  padding: 4px 12px;
  border: 1px solid var(--md-border);
  border-radius: 999px;
  font-size: 0.875rem;
}

.also {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  max-width: var(--measure);
}

/* ---------- How it works (a real sequence, so it's numbered) ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0; padding: 0;
  display: grid;
  gap: 32px;
}
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.steps li { counter-increment: step; position: relative; padding-top: 52px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-wash);
  color: var(--brand);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.steps p { color: var(--ink-2); margin: 0; }

.works-with { margin-top: 40px; color: var(--ink-2); max-width: var(--measure); }

/* ---------- Privacy callout ---------- */

.privacy-grid { display: grid; gap: 24px 56px; }
@media (min-width: 880px) { .privacy-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.privacy-grid .lede { margin-bottom: 0; }
.nots { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.nots li { display: flex; gap: 12px; align-items: baseline; }
.nots svg { width: 16px; height: 16px; flex: none; color: var(--done); position: relative; top: 2px; }

/* ---------- Document pages (support, privacy, 404) ---------- */

.doc-page { padding-top: clamp(24px, 5vw, 56px); }
.doc-page h1 { margin-bottom: 12px; }
.doc-page .updated { color: var(--ink-2); margin-bottom: 40px; }

.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); margin-top: 56px; margin-bottom: 20px; }
.prose h3 { margin-top: 32px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose > :first-child { margin-top: 0; }

.with-toc { display: grid; gap: 32px 64px; }
@media (min-width: 960px) {
  .with-toc { grid-template-columns: 240px minmax(0, 1fr); }
  .page-toc { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow: auto; }
}
.page-toc {
  font-size: 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--sheet);
  padding: 14px 8px;
}
.page-toc h2 {
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0;
  border: 0;
  margin: 0 10px 8px;
  padding: 0;
}
.page-toc ul { list-style: none; margin: 0; padding: 0; }
.page-toc a {
  display: block;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--ink-2);
  text-decoration: none;
}
.page-toc a:hover { background: var(--brand-wash); color: var(--ink); }
.page-toc .l2 a { padding-left: 22px; }

.contact-card {
  margin-top: 56px;
  padding: 24px;
  border-radius: 10px;
  background: var(--sheet);
  border: 1px solid var(--rule);
}
.contact-card h2 { margin-top: 0; }
.contact-card p:last-child { margin-bottom: 0; }

.notfound { min-height: 50vh; }
.notfound .links { display: flex; flex-wrap: wrap; gap: 12px 24px; list-style: none; padding: 0; margin: 24px 0 0; }
