/* Humantic AI legal pages: /tos /privacy /gdpr /cdpa /optout (Oct 2026). One quiet reading layout:
   a mist header, a sticky contents list, one 70-character column of text. Brand tokens only.
   Cabinet Grotesk + Manrope come from hai-brand.css. */

.lg {
  --gold: #FFC61E; --gold-3: #FFE8A5; --violet: #341D99; --ink: #110A33; --mist: #F6F4FF; --cream: #FFF4D2; --slate: #5B6478; --lav: #DDD6FF;
  --line: rgba(17,10,51,.12); --disp: "Cabinet Grotesk", Cabinetgrotesk, Arial, sans-serif;
  --body: Manrope, "Manrope Fallback", Arial, sans-serif; --shell: 1200px; --gutter: clamp(16px, 4vw, 48px);
  margin: 0; overflow-x: clip; background: #fff; color: var(--ink); font-family: var(--body);
}
html { overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html:has(body.lg) { scroll-behavior: smooth; } }
.lg *, .lg *::before, .lg *::after { box-sizing: border-box; }
.lg :where(h1, h2, h3, p, ol, ul) { margin: 0; }
.lg-shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
.lg main a:focus-visible, .lg main button:focus-visible, .lg-scroll:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }

/* Header */
.lg-hero { padding: clamp(112px, 12vw, 144px) 0 clamp(32px, 4vw, 48px); background: var(--mist); }
.lg-docs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.lg-docs a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 700 14px/1 var(--body); color: var(--ink); text-decoration: none; transition: background-color .15s; }
.lg-docs a:hover { background: var(--gold-3); }
.lg-docs a[aria-current="page"] { background: var(--gold-3); border-color: transparent; }
.lg .lg-hero h1 { max-width: 20ch; font: 700 clamp(32px, 5vw, 56px)/1.08 var(--disp); letter-spacing: -.04em; text-wrap: balance; overflow-wrap: break-word; }
.lg-dates { display: flex; flex-wrap: wrap; gap: 4px 32px; margin-top: 16px; font-size: 15px; line-height: 1.5; color: var(--slate); }

/* Layout */
.lg-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(40px, 5vw, 64px); padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(64px, 8vw, 96px); }
.lg-grid--solo { grid-template-columns: minmax(0, 760px); }
/* No ligatures: Manrope turns the clause label "(c)" into a copyright sign, which would change the legal text. */
.lg-doc { max-width: 760px; font-size: 17px; line-height: 1.7; text-wrap: pretty; overflow-wrap: break-word; font-variant-ligatures: none; font-feature-settings: "calt" 0, "liga" 0; }
.lg-doc [id] { scroll-margin-top: 112px; }

/* Contents */
.lg-toc { position: sticky; top: 104px; align-self: start; max-height: calc(100vh - 128px); overflow-y: auto; overscroll-behavior: contain; }
.lg-toc summary { list-style: none; font: 700 15px/1.3 var(--body); color: var(--ink); pointer-events: none; }
.lg-toc summary::-webkit-details-marker { display: none; }
.lg-toc ol { margin: 12px 0 0; padding: 0; list-style: none; border-left: 1.5px solid var(--line); }
.lg-toc ol a { display: block; margin-left: -1.5px; padding: 6px 0 6px 16px; border-left: 3px solid transparent; font-size: 14px; line-height: 1.4; color: var(--slate); text-decoration: none; }
.lg-toc ol a:hover { color: var(--ink); }
.lg-toc ol a[aria-current] { border-left-color: var(--gold); color: var(--ink); font-weight: 700; }
.lg-skip { position: absolute; left: -9999px; }
.lg-skip:focus { position: static; display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--violet); }

/* Document text */
.lg-doc a { color: var(--violet); text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.lg-doc b, .lg-doc strong { font-weight: 700; }
.lg-doc h2 { margin: 48px 0 12px; font: 700 clamp(21px, 2.3vw, 26px)/1.25 var(--disp); letter-spacing: -.01em; text-wrap: balance; }
.lg-doc h3 { margin: 28px 0 8px; font: 700 clamp(18px, 1.8vw, 20px)/1.3 var(--disp); }
.lg-doc > :first-child { margin-top: 0; }
.lg-doc h2.lg-sched { margin-top: 48px; text-align: center; }
.lg-doc .lg-center { text-align: center; }
.lg-doc .lg-h2 { display: block; margin: 40px 0 8px; font: 700 clamp(21px, 2.3vw, 26px)/1.25 var(--disp); letter-spacing: -.01em; }
.lg-doc ol, .lg-doc ul { padding-inline-start: 2.6em; margin: 16px 0; }
.lg-doc ul { list-style: disc; padding-inline-start: 1.25em; }
.lg-doc li { margin-top: 12px; }
.lg-doc ol { list-style: none; counter-reset: item; }
.lg-doc ol > li { list-style: decimal; counter-increment: item; }
.lg-doc ol > li::marker { content: counters(item, ".") ". "; font-weight: 700; }
.lg-doc .lg-main { padding-inline-start: 0; }
.lg-doc .lg-main > li { list-style: none; margin-top: 0; }
.lg-doc .lg-main > li::marker { content: none; }
.lg-doc .lg-main > li > h2::before { content: counters(item, ".") ". "; }
.lg-doc .lg-alpha, .lg-doc .lg-paren, .lg-doc .lg-roman, .lg-doc .lg-upper { counter-reset: lgl; }
.lg-doc .lg-alpha > li, .lg-doc .lg-paren > li, .lg-doc .lg-roman > li, .lg-doc .lg-upper > li { counter-increment: lgl; }
.lg-doc .lg-alpha > li::marker { content: counter(lgl, lower-alpha) ". "; font-weight: 400; }
.lg-doc .lg-paren > li::marker { content: "(" counter(lgl, lower-alpha) ") "; font-weight: 400; }
.lg-doc .lg-roman > li::marker { content: counter(lgl, lower-roman) ". "; font-weight: 400; }
.lg-doc .lg-upper > li::marker { content: counter(lgl, upper-alpha) ". "; font-weight: 700; }
.lg-doc .lg-sched-wrap { margin-top: 32px; }

/* Tables */
.lg-scroll { margin: 20px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 24px; }
.lg-scroll table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.lg-scroll th, .lg-scroll td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.lg-scroll tr:first-child > * { border-top: 0; }
.lg-scroll th { background: var(--mist); font-weight: 700; }
.lg-scroll td ul, .lg-scroll td ol { margin: 0; }
.lg-scroll td li:first-child { margin-top: 0; }

/* Opt-out (Nov 6 2026, AK): VD's verified flow. One card, two steps (verify the requester's email, then what to opt out),
   a done card with the request ID, a status lookup and the Visitor ID card. Markup: views/v2/legal/optout.ejs. Script: optout.js.
   Success marks are gold with an ink tick (no green); errors are an ink line on gold 300 with an ink "!" (same as the old status line). */
.lg-card { margin-top: 24px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.lg-doc .lg-card__title { margin: 0 0 16px; font: 700 clamp(19px, 2vw, 22px)/1.3 var(--disp); letter-spacing: -.01em; }
.lg-input { flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0 20px; border: 1.5px solid rgba(17,10,51,.4); border-radius: 999px; background: #fff; font: 500 16px/1.2 var(--body); color: var(--ink); transition: border-color .15s; }
.lg-input::placeholder { color: var(--slate); opacity: 1; }
.lg-input:hover { border-color: rgba(17,10,51,.6); }
.lg-input:focus { border-color: var(--ink); }
.lg-input[aria-invalid="true"] { border-color: var(--ink); border-width: 2px; }
.lg-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--gold); color: var(--ink); font: 800 16px/1 var(--body); white-space: nowrap; cursor: pointer; transition: background-color .15s, opacity .15s, transform .16s cubic-bezier(.23, 1, .32, 1); }
.lg-btn:active:not(:disabled) { transform: scale(.96); }
.lg-btn:disabled { opacity: .45; cursor: not-allowed; }
.lg-btn[aria-busy="true"] { opacity: .7; cursor: progress; }
@media (hover: hover) and (pointer: fine) { .lg-btn:hover:not(:disabled) { background: var(--gold-3); } }
.lg-note { margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--slate); }
.lg-note a { color: var(--violet); }
/* focus: ink ring that keeps each control's own shape (the generic rule above squares them to 8px) */
.lg main :is(.lg-btn, .oo-ghost, .lg-input):focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 999px; }
.lg main .oo-digit:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 16px; }
/* fields: the ink border + ink ring are enough; the site-wide gold halo (shell.css main :focus-visible) made the code boxes read heavy */
.lg main :is(.lg-input, .oo-digit):focus-visible { box-shadow: none; }
.lg main .oo-remove:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; border-radius: 50%; }
.oo [hidden], .oo[hidden] { display: none !important; }
.oo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.oo-lede { font-size: clamp(17px, 1rem + .3vw, 19px); line-height: 1.6; }
.oo-lede p + p { margin-top: 4px; }
.oo-link { display: inline; padding: 10px 2px; margin: -10px -2px; border: 0; background: none; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--lav); text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; transition: text-decoration-color .15s; }
.oo-link:hover { text-decoration-color: var(--ink); }
.oo-link:disabled { color: var(--slate); text-decoration: none; cursor: not-allowed; }
.oo-noscript { font-size: 16px; line-height: 1.6; }

/* the form card and its two steps */
.oo-step + .oo-step { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.lg-doc .oo-step__h { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font: 700 clamp(19px, 2vw, 22px)/1.3 var(--disp); letter-spacing: -.01em; outline: none; }
.oo-mark { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 15px/1 var(--body); transition: background-color .2s, color .2s; }
.oo-mark__tick { display: none; width: 16px; height: 16px; }
.oo[data-stage="verified"] #step1 .oo-mark { background: var(--gold); color: var(--ink); }
.oo[data-stage="verified"] #step1 .oo-mark__n { display: none; }
.oo[data-stage="verified"] #step1 .oo-mark__tick { display: block; }
.oo:not([data-stage="verified"]) #step2 .oo-mark { background: var(--lav); color: var(--ink); }
.oo-locked { font-size: 15px; line-height: 1.55; color: var(--slate); }
.oo-label { display: block; margin-bottom: 8px; font: 700 15px/1.4 var(--body); color: var(--ink); }
.oo-quiet { font-weight: 500; color: var(--slate); }
.oo-hint { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--slate); }
.oo-row { display: flex; gap: 12px; align-items: stretch; }
.oo-row--code { flex-wrap: wrap; align-items: center; }
.oo-input--full { width: 100%; }
.oo-codetext { margin-bottom: 12px; font-size: 16px; line-height: 1.5; overflow-wrap: break-word; }
.oo-digits { display: flex; gap: 8px; flex: 1 1 300px; min-width: 0; max-width: 376px; }
.oo-digit { flex: 1 1 0; min-width: 0; height: 56px; padding: 0; border: 1.5px solid rgba(17,10,51,.4); border-radius: 16px; background: #fff; text-align: center; font: 700 24px/1 var(--body); font-variant-numeric: tabular-nums; color: var(--ink); caret-color: var(--ink); transition: border-color .15s, background-color .15s; }
.oo-digit:focus { border-color: var(--ink); }
.oo-digit.is-filled { border-color: var(--ink); background: var(--mist); }
.oo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--slate); }
.oo-meta .oo-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; margin: 0 -2px; font-weight: 600; color: var(--ink); }
.oo-expiry { font-variant-numeric: tabular-nums; }
.oo-expiry.is-over { font-weight: 700; color: var(--ink); }
#stageVerified:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.oo-chip { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; min-height: 48px; padding: 8px 20px 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--mist); }
@media (max-width: 479px) {
  .oo-chip { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 2px; width: 100%; border-radius: 24px; }
  .oo-chip__tick { grid-row: span 2; }
}
.oo-chip__tick { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--ink); }
.oo-chip__tick svg { width: 16px; height: 16px; }
.oo-chip__email { min-width: 0; font-weight: 700; font-size: 16px; overflow-wrap: break-word; }
.oo-chip__ok { flex: none; font: 800 13px/1 var(--body); color: var(--slate); }
.oo-err { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 16px; border-radius: 16px; background: var(--gold-3); color: var(--ink); font: 600 15px/1.5 var(--body); }
.oo-err::before { content: "!"; flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 13px/1 var(--body); }

/* step 2 */
.oo-labelrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 8px; }
.oo-labelrow .oo-label { margin: 0; }
.oo-emailrow { display: flex; align-items: center; gap: 4px; }
.oo-emailrow + .oo-emailrow { margin-top: 8px; }
.oo-remove { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--slate); cursor: pointer; transition: background-color .15s, color .15s; }
.oo-remove:hover { background: var(--mist); color: var(--ink); }
.oo-field { margin-top: 20px; }
.oo-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); font: 700 15px/1 var(--body); white-space: nowrap; cursor: pointer; transition: background-color .15s, transform .16s cubic-bezier(.23, 1, .32, 1); }
.oo-ghost--sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.oo-ghost:active:not(:disabled) { transform: scale(.96); }
.oo-ghost:disabled { opacity: .5; cursor: progress; }
@media (hover: hover) and (pointer: fine) { .oo-ghost:hover:not(:disabled) { background: var(--mist); } }
.oo-nudge { margin-top: 20px; padding: 16px 20px; border: 1.5px solid var(--ink); border-radius: 16px; background: var(--mist); font-size: 15px; line-height: 1.55; }
.oo-nudge strong { font-weight: 800; }
.oo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 12px; }
.lg-doc .oo-next { margin-top: 24px; }
.lg-doc .oo-next__h { margin: 0 0 4px; font: 700 15px/1.4 var(--body); }
.lg-doc .oo-next ul { margin: 0; padding: 0; list-style: none; }
.lg-doc .oo-next li { position: relative; margin-top: 4px; padding-left: 20px; font-size: 15px; line-height: 1.55; color: var(--slate); }
.oo-next li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.oo-check { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; padding: 10px 0; font-size: 16px; line-height: 1.5; cursor: pointer; }
.oo-check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); cursor: pointer; }
.oo-submit { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 20px; }
.oo-submit .oo-hint { margin: 0; }

/* done card */
.oo-done { display: grid; justify-items: center; gap: 12px; text-align: center; }
.oo-done__tick { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--ink); }
.oo-done__tick svg { width: 28px; height: 28px; }
.lg-doc .oo-done__h { margin: 0; font: 700 clamp(26px, 3vw, 32px)/1.15 var(--disp); letter-spacing: -.02em; outline: none; }
.oo-done__p { max-width: 46ch; font-size: 16px; line-height: 1.55; color: var(--slate); overflow-wrap: break-word; }
.oo-done__p b { color: var(--ink); }
.oo-ref { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; max-width: 100%; margin: 4px 0; padding: 12px 12px 12px 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--mist); }
.oo-ref__label { font: 700 14px/1.2 var(--body); color: var(--slate); }
.oo-ref__id { min-width: 0; font: 800 clamp(22px, 4vw, 28px)/1.2 var(--body); font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--ink); overflow-wrap: anywhere; user-select: all; }
.oo-done .oo-ghost { margin-top: 4px; }

/* status lookup */
.oo-status { padding: 0; }
.oo-status__sum { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px clamp(20px, 3vw, 32px); list-style: none; cursor: pointer; border-radius: 24px; }
.oo-status__sum::-webkit-details-marker { display: none; }
.lg main .oo-status__sum:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.lg-doc .oo-status__h { margin: 0; font: 700 clamp(17px, 1.8vw, 19px)/1.35 var(--disp); }
.oo-chev { flex: none; width: 10px; height: 10px; margin: 0 4px 4px 0; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }
.oo-status[open] .oo-chev { transform: rotate(-135deg); margin-bottom: -4px; }
@media (prefers-reduced-motion: no-preference) { .oo-chev { transition: transform .25s cubic-bezier(.16, 1, .3, 1); } }
.oo-status__form, .oo-status .oo-result, .oo-status .oo-err { margin-left: clamp(20px, 3vw, 32px); margin-right: clamp(20px, 3vw, 32px); }
.oo-status__form { padding-bottom: clamp(20px, 3vw, 32px); }
.oo-status__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.oo-status__grid .oo-field { margin-top: 0; }
.oo-status__form .oo-ghost { margin-top: 16px; }
.oo-status .oo-result, .oo-status .oo-err { margin-top: 0; margin-bottom: clamp(20px, 3vw, 32px); }
.oo-result { padding: 12px 16px; border-radius: 16px; background: var(--mist); font: 600 15px/1.5 var(--body); color: var(--ink); overflow-wrap: anywhere; }
.oo-foot { margin-top: 24px; font-size: 15px; line-height: 1.6; color: var(--slate); }
.oo-foot p + p { margin-top: 8px; }
.oo-foot + .lg-vidar { margin-top: 32px; }

/* one quiet entrance per stage change (occasional, so it may animate); reduced motion shows it at once */
@keyframes oo-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes oo-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .oo-stage:not([hidden]), .oo-nudge:not([hidden]), .oo-err:not([hidden]), .oo-result:not([hidden]), .oo-done:not([hidden]) { animation: oo-in .24s cubic-bezier(.23, 1, .32, 1) both; }
  .oo-done:not([hidden]) .oo-done__tick path { stroke-dasharray: 1; animation: oo-draw .4s .12s cubic-bezier(.23, 1, .32, 1) both; }
}

/* Visitor ID card (Oct build, unchanged) */
.lg-vidar { padding: 0; overflow: hidden; background: var(--cream); border-color: transparent; }
.lg-doc .lg-vidar__heading { margin: 0; }
.lg-vidar__toggle { display: flex; align-items: center; gap: 16px; width: 100%; padding: 20px clamp(20px, 3vw, 32px); border: 0; background: transparent; text-align: left; color: var(--ink); font: inherit; cursor: pointer; }
.lg-vidar__label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lg-vidar__title { font: 700 clamp(17px, 1.8vw, 19px)/1.35 var(--disp); }
.lg-vidar__sub { font: 400 14px/1.4 var(--body); color: var(--slate); }
.lg-vidar__chevron { flex: none; width: 10px; height: 10px; margin: 0 4px 4px auto; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }
.lg-vidar__toggle[aria-expanded="true"] .lg-vidar__chevron { transform: rotate(-135deg); margin-bottom: -4px; }
@media (prefers-reduced-motion: no-preference) { .lg-vidar__chevron { transition: transform .25s cubic-bezier(.16, 1, .3, 1); } }
.lg-vidar__panel { padding: 0 clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px); }
.lg-vidar__panel .lg-note { margin: 0 0 16px; }
.lg-vidar__frame { display: block; width: 100%; height: 940px; border: 0; border-radius: 16px; background: var(--mist); }

/* Tablet and phone: the contents list folds into a panel above the text */
@media (max-width: 1023px) {
  .lg-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .lg-toc { position: static; max-height: none; overflow: visible; padding: 4px 20px; border-radius: 24px; background: var(--mist); }
  .lg-toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; pointer-events: auto; }
  .lg-toc summary::after { content: ""; width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }
  .lg-toc details[open] summary::after { transform: rotate(-135deg); }
  .lg-toc ol a { display: flex; align-items: center; min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
  .lg-toc ol { margin-bottom: 12px; }
}
@media (max-width: 639px) {
  .lg-doc { font-size: 16px; }
  .lg-doc ol, .lg-doc ul { padding-inline-start: 2.2em; }
  .lg-doc ul { padding-inline-start: 1.25em; }
  .oo-row { flex-direction: column; }
  .oo-row .lg-btn { width: 100%; }
  .oo-row--code { flex-wrap: nowrap; align-items: stretch; }   /* a wrapping column sizes its line to max-content */
  .oo-digits { flex: none; width: 100%; max-width: none; }
  .oo-submit { flex-direction: column-reverse; align-items: stretch; }
  .oo-submit .lg-btn { width: 100%; }
  .oo-submit .oo-hint { text-align: center; }
  .oo-status__grid { grid-template-columns: minmax(0, 1fr); }
  .oo-status__grid .oo-field + .oo-field { margin-top: 16px; }
  .oo-ref { padding: 12px 16px; }
  .lg-vidar__frame { height: 1100px; }
}
/* 320-379: six code boxes must fit beside the card padding */
@media (max-width: 379px) {
  .oo.lg-card { padding: 20px 16px; }
  .oo-digits { gap: 6px; }
  .oo-digit { height: 52px; font-size: 22px; border-radius: 14px; }
  .oo-status .oo-status__form, .oo-status .oo-result, .oo-status .oo-err { margin-left: 16px; margin-right: 16px; }
  .oo-status__sum { padding-left: 16px; padding-right: 16px; }
}

/* Print: just the document */
@media print {
  body.lg > :not(main) { display: none !important; }
  .lg-docs, .lg-toc, .oo-js, .oo-done, .lg-vidar, .lg-vidar__frame { display: none !important; }
  .lg { background: #fff; color: #000; }
  .lg-hero { padding: 0 0 12pt; background: none; }
  .lg .lg-hero h1 { font-size: 22pt; }
  .lg-grid { display: block; padding: 0; }
  .lg-doc { max-width: none; font-size: 10.5pt; line-height: 1.5; }
  .lg-doc a { color: inherit; }
  .lg-doc a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; overflow-wrap: anywhere; }
  .lg-doc h2, .lg-doc h3 { break-after: avoid; }
  .lg-doc li, .lg-scroll tr { break-inside: avoid; }
  .lg-scroll { overflow: visible; border: 0; border-radius: 0; }
  .lg-scroll table { min-width: 0; }
  .lg-scroll th, .lg-scroll td { border: 1px solid #999; }
  .lg-scroll th { background: none; }
}
