/* Electron Hub Legal Center, built on the landing site's system. The nav and footer copy landing-baroque/styles/nav.css
   and footer.css rule for rule (keep them in step); tokens and buttons come from its base.css. Paper and ink with one
   umber accent; Newsreader for display (never italic), Schibsted Grotesk for reading and labels, IBM Plex Mono only for
   code. Radius 8 / 16 / 24 / pill; the fresco and the painted cloud bank are the only art. Light only, like the landing.
   Motion stays under 300 ms, eases out, and hover effects only run on real pointers. */
@font-face { font-family: "Newsreader Fallback"; src: local("Georgia"); font-weight: 100 350; size-adjust: 91%; ascent-override: 80.77%; descent-override: 29.12%; line-gap-override: 0%; }
@font-face { font-family: "Newsreader Fallback"; src: local("Georgia"); font-weight: 351 1000; size-adjust: 92%; ascent-override: 79.89%; descent-override: 28.8%; line-gap-override: 0%; }
:root {
  color-scheme: light;
  --paper: #efe6da;
  --paper-hi: #f6f0e7;
  --paper-lo: #e5d9c9;
  --card: #fbf8f2;
  --vellum: #f6eee3;
  --cream: #f8f3ea;
  --ink: #2a1f19;
  --ink-2: #4c3e34;
  --ink-3: #66564a;
  --umber: #8a4f2c;
  --ok-lt: #a9cf9c;
  --gold: #e7cba7;
  --line: rgba(42, 31, 25, 0.12);
  --line-2: rgba(42, 31, 25, 0.22);
  --night: rgba(40, 30, 24, 0.82);
  --dark: #2e221b;
  --todo: #f6e08a;
  --serif: "Newsreader", "Newsreader Fallback", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --out: cubic-bezier(0.23, 1, 0.32, 1);
  --drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --r-sm: 8px; --r-md: 16px; --r-lg: 24px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-clear: 78px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* the filters, empty state and toast use `hidden`; component display rules must not beat it */
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scrollbar-color: #bfae9c var(--paper); scroll-padding-top: calc(var(--nav-clear) + 16px); }
@media (prefers-reduced-motion: no-preference) { html.smooth { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16.5px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: #dcc6aa; color: var(--ink); }
img { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
p, li, td { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--line-2); }
:focus-visible { outline: 2px solid var(--umber); outline-offset: 3px; border-radius: var(--r-sm); }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
mark.todo { background: var(--todo); color: var(--ink); border-radius: 4px; padding: 0 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ── Nav: landing-baroque/styles/nav.css, copied verbatim (re-copy it when the landing nav changes) ── */
.nav { position: fixed; z-index: 60; top: calc(12px + env(safe-area-inset-top, 0px)); left: 50%; translate: -50% 0; width: min(calc(100% - 24px), 1000px); }
.js .nav { animation: navIn 240ms var(--out) both; }
@keyframes navIn { from { opacity: 0; translate: -50% -6px; } }
.nav__bar { position: relative; display: flex; align-items: center; gap: 4px; height: 54px; padding: 0 7px 0 18px; border-radius: 999px; background: var(--night); color: var(--cream);
  -webkit-backdrop-filter: blur(18px) saturate(1.25); backdrop-filter: blur(18px) saturate(1.25); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 14px 34px -16px rgba(20,12,6,.55); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 600 16px/1 var(--sans); letter-spacing: -0.01em; color: var(--cream); flex: none; }
.brand svg { width: 22px; height: 22px; }
.brand--ink { color: var(--ink); }
.nav__menu { position: relative; margin-left: 18px; }
.nav__menu ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.nav__trigger, .nav__link { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: rgba(248,243,234,.84); font: 500 14px/1 var(--sans); text-decoration: none; cursor: pointer; transition: color 160ms ease; }
.nav__trigger svg { width: 14px; height: 14px; opacity: .7; transition: transform 200ms var(--out); }
.nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__trigger[aria-expanded="true"] { color: var(--cream); }
.nav__hover { position: absolute; z-index: 0; top: 0; left: 0; height: 40px; width: 0; border-radius: 999px; background: rgba(248,243,234,.1); opacity: 0;
  transition: transform 260ms var(--out), width 260ms var(--out), opacity 160ms ease; pointer-events: none; }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
@media (max-width: 360px) { .nav__end .btn--cream { display: none; } }
.nav__signin { color: rgba(248,243,234,.84); text-decoration: none; font: 500 14px/1 var(--sans); padding: 0 10px; height: 40px; display: inline-flex; align-items: center; border-radius: 999px; transition: color 160ms ease, background-color 160ms ease; }
.nav__burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--cream); cursor: pointer; place-items: center; }
.nav__burger svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .nav__trigger:hover, .nav__link:hover { color: var(--cream); }
  .nav__signin:hover { color: var(--cream); background: rgba(248,243,234,.08); }
}

.mega { position: absolute; top: calc(100% + 10px); left: 0; width: var(--mw, 680px); height: var(--mh, 300px); translate: var(--mx, 0px) 0;
  border-radius: var(--r-lg); background: rgba(43,33,27,.95); -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 30px 60px -24px rgba(20,12,6,.6); color: var(--cream);
  opacity: 0; scale: 0.97; transform-origin: var(--mo, 30%) top; pointer-events: none; visibility: hidden;
  transition: opacity 140ms ease, scale 140ms var(--out), width 300ms var(--drawer), height 300ms var(--drawer), translate 300ms var(--drawer), visibility 0s linear 140ms; }
.mega[data-open="true"] { opacity: 1; scale: 1; pointer-events: auto; visibility: visible; transition: opacity 200ms var(--out), scale 200ms var(--out), width 300ms var(--drawer), height 300ms var(--drawer), translate 300ms var(--drawer), visibility 0s; }
.mega[data-instant] { transition: none; }
.mega__clip { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.mega__view { position: absolute; top: 0; left: 0; padding: 14px; width: max-content; opacity: 0; translate: var(--from, 0) 0; transition: opacity 180ms var(--out), translate 300ms var(--drawer); }
.mega__view[data-active] { opacity: 1; translate: 0 0; }
.mega[data-instant] .mega__view { transition: none; }
.mega__cols { display: flex; gap: 10px; }
.mega__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 236px); gap: 2px; align-content: start; }
.mega__list a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; text-decoration: none; transition: background-color 160ms ease; }
html[data-kbd] .mega__list a:focus-visible { background: rgba(248,243,234,.07); }
.mega__list svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--gold); }
.mega__list b { display: block; font: 500 15px/1.3 var(--sans); color: var(--cream); }
.mega__list em { display: block; font: 400 13.5px/1.45 var(--sans); font-style: normal; color: rgba(248,243,234,.66); margin-top: 3px; }
.mega__feature { width: 268px; flex: none; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r-md); text-decoration: none; color: var(--cream);
  background: rgba(231,203,167,.08); box-shadow: inset 0 0 0 1px rgba(231,203,167,.16); transition: background-color 200ms ease; }
.mega__feature b { font: 400 26px/1.05 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.mega__feature em { font: 400 13.5px/1.5 var(--sans); font-style: normal; color: rgba(248,243,234,.7); }
.mega__price { font: 400 13.5px/1.4 var(--sans); color: rgba(248,243,234,.72); }
.mega__price strong { font: 500 22px/1 var(--sans); color: var(--cream); }
.mega__go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font: 500 13.5px/1 var(--sans); color: var(--cream); text-decoration: none; padding-top: 6px; }
.mega__go svg { width: 13px; height: 13px; transition: transform 200ms var(--out); }
.mega__logos { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 10px; }
.mega__logos li { display: flex; align-items: center; gap: 7px; font: 400 13px/1.2 var(--sans); color: rgba(248,243,234,.8); }
.mega__logos img { width: 15px; height: 15px; }
.mega__more { color: rgba(248,243,234,.56) !important; }
.mega__copy { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 0; cursor: pointer; background: rgba(0,0,0,.22); color: var(--cream); transition: background-color 160ms ease; }
.mega__copy code { font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mega__copy svg { width: 15px; height: 15px; opacity: .75; flex: none; }
.mega__copy[data-copied="copied"] svg { color: var(--ok-lt); opacity: 1; }
.mega__count { font: 400 34px/1 var(--serif); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .mega__list a:hover { background: rgba(248,243,234,.07); }
  a.mega__feature:hover { background-color: rgba(231,203,167,.13); }
  .mega__feature:hover .mega__go svg, .mega__go:hover svg { transform: translateX(3px); }
  .mega__copy:hover { background: rgba(0,0,0,.32); }
}
.inv { filter: brightness(0) saturate(100%) invert(12%) sepia(14%) saturate(1500%) hue-rotate(338deg); }
.inv-light { filter: brightness(0) invert(94%) sepia(10%) saturate(300%) hue-rotate(340deg); }

.sheet { position: fixed; z-index: 59; top: 76px; left: 12px; right: 12px; max-height: calc(100svh - 92px); overflow: auto; overscroll-behavior: contain; padding: 10px; border-radius: 22px; background: rgba(43,33,27,.97);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); color: var(--cream); display: grid; gap: 2px;
  opacity: 0; translate: 0 -8px; scale: 0.98; pointer-events: none; visibility: hidden; transform-origin: top right;
  transition: opacity 140ms ease, translate 140ms var(--out), scale 140ms var(--out), visibility 0s linear 140ms; }
.sheet[data-open="true"] { opacity: 1; translate: 0 0; scale: 1; pointer-events: auto; visibility: visible; transition: opacity 220ms var(--out), translate 260ms var(--out), scale 260ms var(--out), visibility 0s; }
.sheet summary, .sheet__plain { list-style: none; cursor: pointer; font: 400 24px/1 var(--serif); padding: 14px; border-radius: 14px; text-decoration: none; color: var(--cream); display: block; }
.sheet summary::-webkit-details-marker { display: none; }
.sheet details a { display: block; padding: 11px 14px 11px 26px; color: rgba(248,243,234,.8); text-decoration: none; font-size: 15.5px; }
.sheet__end { display: flex; gap: 8px; padding: 12px 6px 4px; }
.sheet__end .btn { flex: 1; }
@media (max-width: 920px) {
  .nav__menu, .nav__signin { display: none; }
  .nav__burger { display: grid; }
  .mega { display: none; }
}
.nav__burger svg + svg, .nav__burger[aria-expanded="true"] svg:first-child { display: none; }
.nav__burger[aria-expanded="true"] svg + svg { display: block; }
.mega__list a:focus-visible { background: rgba(248,243,234,.07); }

/* ── Buttons (landing-baroque/styles/base.css) ── */
.btn { --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: var(--h); padding: 0 24px; border-radius: 999px; font: 500 15px/1 var(--sans); text-decoration: none; white-space: nowrap; border: 1px solid transparent; cursor: pointer;
  transition: transform 160ms var(--out), background-color 200ms ease, border-color 200ms ease, color 200ms ease; }
.btn:active { transform: scale(0.97); }
.btn svg { width: 15px; height: 15px; flex: none; transition: transform 200ms var(--out); }
.btn--sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn--xs { --h: 32px; padding: 0 12px; font-size: 13px; }
.btn--cream { background: var(--cream); color: var(--ink); box-shadow: 0 10px 28px -14px rgba(20,12,6,.55); }
.btn--line { background: rgba(248,243,234,.4); color: var(--ink); border-color: var(--line-2); }
.btn--glass { background: rgba(27,22,18,.6); color: var(--cream); border-color: rgba(255,248,238,.14); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
@media (hover: hover) and (pointer: fine) {
  .btn--cream:hover { background: #fffaf2; }
  .btn--line:hover { border-color: var(--ink-3); background: var(--card); }
}

/* ── Library hero: the fresco's sky, dusk behind the words, the cloud bank melting into paper ── */
.hero { position: relative; isolation: isolate; overflow: clip; padding: calc(var(--nav-clear) + 72px + env(safe-area-inset-top, 0px)) 0 150px; margin-top: calc(-1 * env(safe-area-inset-top, 0px)); }
.hero__art { position: absolute; inset: 0; z-index: -2; background: #8f7b66; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: brightness(1.04) saturate(1.04); }
.hero__art::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 55% at 32% 52%, rgba(30,22,16,.46), rgba(30,22,16,0) 75%), linear-gradient(rgba(30,22,16,.34), rgba(30,22,16,.05) 40%, rgba(30,22,16,0)); }
.hero__clouds { position: absolute; z-index: -1; left: 0; right: 0; bottom: -2px; height: 46%; pointer-events: none; }
.hero__clouds img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; -webkit-mask-image: linear-gradient(transparent, #000 45%); mask-image: linear-gradient(transparent, #000 45%); }
.hero__copy { display: grid; gap: 18px; color: var(--cream); max-width: 640px; }
.hero h1 { font: 300 clamp(50px, 7vw, 96px)/0.96 var(--serif); letter-spacing: -0.034em; margin: 0; text-shadow: 0 2px 24px rgba(20,12,6,.35); }
.hero p { margin: 0; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: rgba(248,243,234,.92); max-width: 50ch; text-shadow: 0 1px 12px rgba(20,12,6,.4); }
.hero__contact { font-size: 14px; color: rgba(248,243,234,.86); }
.hero__contact a { color: var(--cream); text-decoration-color: rgba(248,243,234,.45); white-space: nowrap; }

/* ── Library ── */
.lib { position: relative; padding-bottom: 96px; }
.featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; margin-top: -64px; position: relative; }
.feat { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--r-lg); background: var(--dark); color: var(--cream); text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 48px -28px rgba(20,12,6,.6); transition: transform 200ms var(--out); }
.feat h2 { font: 300 30px/1.08 var(--serif); letter-spacing: -0.02em; margin: 0; }
.feat p { margin: 0; color: rgba(248,243,234,.78); font-size: 15px; line-height: 1.55; max-width: 50ch; }
.feat__go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font: 500 14px/1 var(--sans); }
.feat__go svg { width: 14px; height: 14px; transition: transform 200ms var(--out); }
@media (hover: hover) and (pointer: fine) { .feat:hover { transform: translateY(-2px); } .feat:hover .feat__go svg { transform: translateX(3px); } }
.bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 56px 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font: 500 14px/1 var(--sans); height: 38px; padding: 0 16px; border-radius: 999px; cursor: pointer; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.chip[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: var(--cream); }
.chip__n { margin-left: 4px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .chip__n { color: inherit; }
@media (hover: hover) and (pointer: fine) { .chip[aria-pressed="false"]:hover { color: var(--ink); border-color: var(--ink-3); } }
.search { display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); width: min(320px, 100%); }
.search:focus-within { outline: 2px solid var(--umber); outline-offset: 2px; }
.search svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); }
.search input { border: 0; background: transparent; color: var(--ink); font: 15px var(--sans); width: 100%; min-width: 0; outline: none; }
.search input::placeholder { color: var(--ink-3); }
.count { font: 400 14px/1 var(--sans); color: var(--ink-3); margin: 0; font-variant-numeric: tabular-nums; }

/* The library: Anthropic's legal-centre layout (tags, title, date, summary, View more + PDF) in our type and palette. */
.lib__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 300px); align-items: end; gap: 32px; margin: 72px 0 8px; }
.lib__head h2 { font: 300 clamp(34px, 3.6vw, 48px)/1.02 var(--serif); letter-spacing: -0.025em; margin: 0 0 12px; }
.lib__head p { margin: 0; color: var(--ink-2); font-size: 16.5px; max-width: 46ch; }
.lib__art { width: 100%; max-width: 340px; justify-self: end; }
.lib__grid { margin-top: 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 276px), 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; padding: 24px 24px 20px; border-radius: var(--r-md); background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 200ms ease, transform 200ms var(--out); }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 6px; font: 500 12px/1 var(--sans); color: var(--ink-2); background: var(--vellum); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.tag svg { width: 13px; height: 13px; color: var(--ink-3); }
.tag--ind { background: color-mix(in oklab, var(--umber) 12%, var(--card)); color: var(--umber); box-shadow: none; }
.tag--biz { background: #e8e4f3; color: #4d3f8f; box-shadow: none; }
.tag--all { background: transparent; }
.card h3 { font: 400 25px/1.12 var(--serif); letter-spacing: -0.018em; margin: 0 0 8px; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-md); }
.card__date { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.card__date svg { width: 14px; height: 14px; }
.card__sum { margin: 0 0 20px; flex: 1; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.card__more { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; font: 500 14px/1 var(--sans); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.card__more svg { width: 14px; height: 14px; transition: transform 200ms var(--out); }
.card__pdf { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px; border-radius: var(--r-sm); font: 500 14px/1 var(--sans); color: var(--ink-2); text-decoration: none; transition: color 160ms ease, background-color 160ms ease; }
.card__pdf svg { width: 15px; height: 15px; }
.card--req { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.card--req .card__more { position: relative; z-index: 1; }
.card:focus-within { box-shadow: inset 0 0 0 2px var(--umber); }
.card h3 a:focus-visible { outline: none; }
@media (hover: hover) and (pointer: fine) {
  .card:not(.card--req):hover { box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 40px -28px rgba(42,31,25,.55); transform: translateY(-2px); }
  .card:not(.card--req):hover .card__more { background: var(--dark); color: var(--cream); box-shadow: none; }
  .card:hover .card__more svg { transform: translateX(3px); }
  .card__pdf:hover { color: var(--ink); background: var(--paper-hi); }
  .card--req .card__more:hover { background: var(--dark); color: var(--cream); box-shadow: none; }
}

button.tlink { background: none; border-width: 0 0 1px; padding: 0 0 3px; cursor: pointer; margin-left: 4px; }
.empty { padding: 44px; text-align: center; color: var(--ink-2); border: 1px dashed var(--line-2); border-radius: var(--r-lg); margin-top: 28px; }

/* ── Reader ── */
.band { position: relative; isolation: isolate; height: calc(var(--nav-clear) + 150px + env(safe-area-inset-top, 0px)); margin-top: calc(-1 * env(safe-area-inset-top, 0px)); overflow: clip; }
.band img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(30,22,16,.22), rgba(30,22,16,0) 50%); }
.reader { position: relative; z-index: 1; display: grid; grid-template-columns: 220px minmax(0, 1fr) 232px; gap: 56px; align-items: start; margin-top: -70px; padding-bottom: 112px; }
.doc-head { padding-bottom: 4px; }
.crumb { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font: 500 14px/1 var(--sans); color: var(--ink-3); }
.crumb a { text-decoration: none; color: var(--ink-2); }
.crumb svg { width: 12px; height: 12px; }
.doc-head h1 { font: 300 clamp(40px, 5vw, 66px)/1 var(--serif); letter-spacing: -0.03em; margin: 0 0 18px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 14px; color: var(--ink-3); margin: 0 0 32px; }
.meta__actions { margin-left: auto; display: flex; gap: 8px; }
.meta .btn svg { width: 14px; height: 14px; }
.draft { color: var(--umber); font-weight: 500; }
.short { border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 24px 28px 22px; margin-bottom: 40px; }
.short h2 { font: 600 15px/1.3 var(--sans); color: var(--ink); margin: 0 0 12px; }
.short ul { margin: 0; padding-left: 20px; display: grid; gap: 9px; }
.short li { font-size: 16px; }
.short li::marker { color: var(--umber); }
.short p { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.prose { max-width: 70ch; }
.prose > p:first-child { font-size: 17.5px; color: var(--ink-2); }
.prose h2 { position: relative; font: 300 31px/1.15 var(--serif); letter-spacing: -0.02em; margin: 56px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 12px; }
.prose h2 .n { flex: none; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.prose h2 .n::after { content: "."; }
.prose h2 .h { flex: 1; }
.anchor { flex: none; align-self: center; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; font: 500 13px var(--sans); padding: 6px 9px; border-radius: var(--r-sm); opacity: 0; transition: opacity 140ms ease, background-color 140ms ease; }
.prose h2:hover .anchor, .anchor:focus-visible { opacity: 1; }
@media (hover: none) { .anchor { opacity: 1; } }
@media (hover: hover) and (pointer: fine) { .anchor:hover { background: var(--paper-hi); color: var(--ink); } }
.prose p { margin: 0 0 15px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; display: grid; gap: 7px; }
.prose li::marker { color: var(--umber); }
.prose strong { font-weight: 600; }
.prose code { font: 0.86em var(--mono); background: var(--paper-hi); padding: 2px 6px; border-radius: 5px; }
.prose a { text-decoration-color: color-mix(in oklab, var(--umber) 55%, transparent); }
@media (hover: hover) and (pointer: fine) { .prose a:hover { text-decoration-color: var(--umber); } }
.tbl { overflow-x: auto; margin: 18px 0 24px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.tbl table { border-collapse: collapse; width: 100%; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font: 600 14px/1.3 var(--sans); color: var(--ink); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { font-weight: 500; }
.tbl td.num { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.toc, .rail { position: sticky; top: calc(var(--nav-clear) + 16px); }
.toc { max-height: calc(100vh - var(--nav-clear) - 32px); overflow: auto; padding: 4px 6px 16px 0; font-size: 14px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; overscroll-behavior: contain; }
.toc__title { font: 600 14px/1.3 var(--sans); color: var(--ink); margin: 6px 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { position: relative; display: grid; grid-template-columns: 3ch minmax(0, 1fr); column-gap: 6px; align-items: baseline; padding: 5px 10px 5px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink-3); line-height: 1.4; transition: color 160ms ease, background-color 160ms ease; }
.toc__n { color: var(--ink-3); }
.toc__n:not(:empty)::after { content: "."; }
.toc a[aria-current="true"] { color: var(--ink); }
.toc a[aria-current="true"] .toc__t { font-weight: 500; }
.toc a[aria-current="true"] .toc__n { color: var(--umber); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--ink); background: var(--paper-hi); } }
.toc__end { display: grid; gap: 4px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.toc__end a { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; color: var(--ink-2); text-decoration: none; font-size: 13.5px; border-radius: var(--r-sm); }
.toc__end svg { width: 14px; height: 14px; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .toc__end a:hover { color: var(--ink); background: var(--paper-hi); } }
.rail { display: grid; font-size: 14px; }
.rail section { padding: 18px 0; border-top: 1px solid var(--line); }
.rail section:first-child { border-top: 0; padding-top: 6px; }
.rail h3 { font: 600 14px/1.3 var(--sans); color: var(--ink); margin: 0 0 10px; }
.rail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rail p { margin: 0; color: var(--ink-2); }
.rail a { text-decoration: none; color: var(--ink-2); }
.rail p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .rail a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--umber); } }
.hist ul { gap: 12px; }
.hist li { display: grid; gap: 2px; padding-left: 12px; border-left: 1px solid var(--line-2); }
.hist li:first-child { border-left-color: var(--umber); }
.hist .d { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hist__more { margin-top: 12px !important; }
.toc-m { display: none; margin: 0 0 28px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.toc-m summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 14px 2px; font: 600 15px/1.3 var(--sans); color: var(--ink); list-style: none; }
.toc-m summary::-webkit-details-marker { display: none; }
.toc-m summary svg { width: 14px; height: 14px; transition: transform 200ms var(--out); }
.toc-m[open] summary svg { transform: rotate(180deg); }
.toc-m ol { margin: 0; padding: 0 2px 16px; list-style: none; display: grid; gap: 4px; font-size: 15.5px; }
.toc-m a { display: grid; grid-template-columns: 3ch minmax(0, 1fr); column-gap: 6px; padding: 5px 0; color: var(--ink-2); text-decoration: none; }
.toc-m .toc__n { color: var(--ink-3); }
.toc-m .toc__n:not(:empty)::after { content: "."; }

/* ── Footer (landing-baroque/styles/footer.css) ── */
.foot { border-top: 1px solid var(--line); background: linear-gradient(var(--paper), var(--paper-lo)); padding: 64px 0 calc(36px + env(safe-area-inset-bottom, 0px)); }
.foot__top { display: grid; grid-template-columns: 1.1fr 2fr; gap: 48px; }
.foot__brand { display: grid; gap: 14px; align-content: start; }
.foot__brand p { margin: 0; max-width: 34ch; color: var(--ink-2); font-size: 14.5px; }
.foot__cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.foot__h { margin: 0 0 14px; font: 500 14px/1 var(--sans); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot ul a { text-decoration: none; color: var(--ink-2); font-size: 14.5px; transition: color 160ms ease; display: inline-block; padding-block: 2px; }
.social { display: flex; gap: 6px; }
.social a { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink-2); transition: background-color 160ms ease, color 160ms ease; }
.social svg { width: 16px; height: 16px; overflow: visible; }
.foot__base { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.foot__base a { color: inherit; text-underline-offset: 3px; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .foot ul a:hover, .foot__base a:hover { color: var(--ink); } .social a:hover { background: var(--paper-hi); color: var(--ink); } }

/* ── Questions: landing-baroque rooms/pricing.css (.faq) and kit.css (QA), copied verbatim ── */
.faq__h { font-family: var(--serif); font-weight: 300; margin: 0; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); font-optical-sizing: auto; font-size: clamp(34px, 3.4vw, 46px); }
.faq-band { padding: clamp(24px, 4vw, 40px) 0 clamp(96px, 10vw, 140px); }
.faq { margin-top: clamp(72px, 8vw, 112px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line-2); display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq__copy { display: grid; gap: 18px; position: sticky; top: 120px; }
.faq__copy p { margin: 0; color: var(--ink-3); font-size: 15px; }
.faq__copy p a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.faq__copy .tlink { justify-self: start; }
.faq__art { margin-top: 24px; max-width: 360px; }
.tlink { display: inline-flex; align-items: center; gap: 7px; font: 500 14.5px/1.2 var(--sans); color: var(--ink); text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid var(--line-2); transition: border-color 200ms ease; }
@media (pointer: coarse) { .tlink { position: relative; } .tlink::before { content: ''; position: absolute; inset: -10px -4px; } }
.tlink svg { width: 13px; height: 13px; transition: transform 200ms var(--out); }
/* ── Questions (kit QA): an answer row that opens on the grid, then its words settle in ── */
.qa { border-top: 1px solid var(--line-2); }
.qa__item { position: relative; border-bottom: 1px solid var(--line-2); }
.qa__item::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--out); }
.qa__item.is-open::after { transform: scaleX(1); }
.qa h3 { margin: 0; font: inherit; }
.qa__btn { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 36px; align-items: center; gap: 14px; padding: 24px 0; background: none; border: 0; cursor: pointer; text-align: left; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.qa__q { font: 300 clamp(21px, 2.2vw, 29px)/1.2 var(--serif); letter-spacing: -0.015em; transition: color 200ms ease; }
.qa__icon { position: relative; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color 240ms ease, box-shadow 240ms ease, transform 160ms var(--out); }
.qa__icon i { position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; border-radius: 1px; background: var(--ink-2); transition: transform 240ms var(--out), opacity 200ms ease, background-color 200ms ease; }
.qa__icon i + i { transform: rotate(90deg); }
.qa__btn:active .qa__icon { transform: scale(.97); }
.qa__item.is-open .qa__icon { background: var(--dark); box-shadow: none; }
.qa__item.is-open .qa__icon i { background: var(--cream); }
.qa__item.is-open .qa__icon i + i { transform: rotate(180deg); opacity: 0; }
.qa__btn:focus-visible { outline: none; }
html[data-kbd] .qa__btn:focus-visible .qa__icon { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--umber); }
@media (hover: hover) and (pointer: fine) {
  .qa__btn:hover .qa__icon { box-shadow: inset 0 0 0 1px var(--ink-3); }
  .qa__item:not(.is-open) .qa__btn:hover .qa__q { color: var(--ink-2); }
}
/* Height opens on the grid row; the words follow a beat later and settle upward. Closing is quicker. */
.qa__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 200ms var(--out); }
.qa__item.is-open .qa__panel { grid-template-rows: 1fr; transition-duration: 300ms; transition-timing-function: var(--drawer); }
.qa__inner { overflow: hidden; min-height: 0; }
.qa__inner p { margin: 0; padding: 0 50px 28px 0; max-width: 66ch; color: var(--ink-2); font-size: 16px; line-height: 1.65; opacity: 0; transform: translateY(-6px); transition: opacity 120ms ease, transform 160ms ease; }
.qa__item.is-open .qa__inner p { opacity: 1; transform: none; transition: opacity 240ms var(--out) 60ms, transform 280ms var(--out) 40ms; }
.qa__inner p a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 640px) {
  .qa__inner p { padding: 0 0 24px; }
}


/* Reveal: cards and section heads rise once as they enter (legal.js adds .is-in); off with reduced motion or no JS. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; translate: 0 14px; transition: opacity 480ms var(--out), translate 560ms var(--out); transition-delay: var(--d, 0ms); }
  .js .reveal.is-in { opacity: 1; translate: 0 0; }
}

/* ── Prints: landing-baroque/styles/print.css and base.css [data-engine] rules, copied verbatim. The dithered painting is
   drawn by engines/relief.js; its still shows until the engine is live and stays when WebGL can't run. ── */
.print { position: relative; width: 100%; aspect-ratio: var(--ar); pointer-events: none;
  clip-path: inset(0 0 calc((1 - var(--e, 1)) * 100%) 0); transform: translate3d(0, calc((1 - var(--e, 1)) * 24px + var(--py, 0) * 1px), 0); }
.print .still, .print canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.print .still { object-fit: contain; image-rendering: pixelated; transition: opacity 500ms ease; }
[data-engine].is-live > .still { opacity: 0; transition: opacity 300ms var(--out) 800ms; }
[data-engine].is-still > canvas { display: none; }
[data-engine].is-still > .still { opacity: 1 !important; }

.toast:not(.is-on) { opacity: 0; pointer-events: none; }
.toast { transition: opacity 160ms var(--out); position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; background: var(--dark); color: var(--cream); padding: 10px 16px; border-radius: 999px; font-size: 14px; z-index: 70; box-shadow: 0 14px 34px -16px rgba(20,12,6,.55); }

.narrow { max-width: 820px; }
.archive { position: relative; z-index: 1; margin-top: -40px; padding-bottom: 112px; }
.archive h1 { font: 300 clamp(40px, 5vw, 64px)/1 var(--serif); letter-spacing: -0.03em; margin: 0 0 14px; }
.archive .lede { color: var(--ink-2); max-width: 60ch; margin: 0 0 26px; }

@media (max-width: 1100px) {
  .reader { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: -60px; }
  .toc { display: none; }
  .toc-m { display: block; }
  .rail { position: static; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 32px; margin-top: 48px; border-top: 1px solid var(--line-2); }
  .rail section, .rail section:first-child { border-top: 0; padding-top: 18px; }
}
@media (max-width: 960px) { .foot__top { grid-template-columns: 1fr; } .faq { grid-template-columns: 1fr; } .faq__copy { position: static; } .faq__art { display: none; } }
@media (max-width: 800px) { .foot__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-bottom: 120px; }
  .featured { margin-top: -48px; }
  .prose h2 { font-size: 26px; margin-top: 44px; }
  .search { width: 100%; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .short { padding: 20px; }
  .meta .btn { margin-left: 0; }
  .card { padding: 22px 20px 18px; }
  .lib__head { grid-template-columns: 1fr; }
  .lib__art { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print {
  .nav, .sheet, .mega, .faq-band, .lib__head, .toc, .toc-m, .rail, .foot, .anchor, .btn, .toast, .skip, .band, .hero__art, .hero__clouds { display: none !important; }
  .reader { display: block; margin: 0; padding: 0; }
  .reveal { opacity: 1 !important; translate: none !important; }
  .doc-main .crumb, .meta__actions { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .doc-head h1 { font-size: 30pt; margin-bottom: 8pt; }
  .short { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  .prose { max-width: none; }
  .prose h2 { break-after: avoid; font-size: 18pt; margin-top: 22pt; }
  .tbl { overflow: visible; }
  .tbl tr { break-inside: avoid; }
  .prose a { color: inherit; }
}
