/* One lamp for the app, the website, help and the legal pages: a box from what it hangs on down to its bulb, the
   cord its own ::before filling everything above the bulb, so its length is the layout's and it is centred on the
   bulb. A placement sets only the box's start, the bulb's size and the cord's colour; the light is a gradient, never
   a filter. tests/guards/lamp-one.test.js holds every bulb to it. */
.lamp { position: relative; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; pointer-events: none;
  --cord: linear-gradient(to bottom, rgba(214,184,128,.15), rgba(214,184,128,.9)); }
.lamp::before { content: ""; flex: 1 1 0; min-height: 0; width: var(--cord-w, 2px); border-radius: 2px; background: var(--cord); }
.lamp-bulb { position: relative; z-index: 1; flex: none; display: block; height: var(--bulb-h); width: auto; margin-top: var(--bulb-tuck, -2px); }
/* A lamp hanging from the page top or behind an opaque bar: its cord runs far above the box and is cut wherever that
   lies. --reach-at is where the cord meets the bulb, from the top of the box. */
.lamp-reach::before { position: absolute; z-index: 0; left: 50%; bottom: calc(100% - var(--reach-at)); height: 1600px; margin-left: calc(var(--cord-w, 2px) / -2); }
/* Whole or not at all: a lamp, its cord, bulb and glow (one beside it too) stay invisible, their room kept, until
   lamp.ts marks it lit once the bulb is decoded. */
.lamp:not(.lamp-lit) { visibility: hidden; }
:has(> .lamp:not(.lamp-lit)) > [class*="glow"] { visibility: hidden; }

/* The website's own pages (privacy, terms, account deletion, help): a document to read in Livria's colours and fonts.
   The page's inline check reads --livria-css to know the stylesheet really arrived. */
:root { --livria-css: 1; }
:root { --bg: #f6f2ea; --card: #ffffff; --ink: #17161a; --ink-soft: #5d5866; --line: rgba(23,22,26,.12); --accent: #d4602c; --accent-fade: rgba(212,96,44,.1);
  /* The wordmark in the app's one colour per theme (base.css); these pages have light and dark only. */
  --brand-word: #3a2a78; --brand-grad: linear-gradient(120deg, #0b1239 0%, #3a2a78 55%, #5b3a8c 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #141318; --card: #1f1e25; --ink: #f2efe8; --ink-soft: #a9a4b4; --line: rgba(255,255,255,.12); --accent: #f59457; --accent-fade: rgba(245,148,87,.12); --brand-word: #ffbe84; --brand-grad: linear-gradient(120deg, #ffdca6 0%, #ffbe84 55%, #f4ecdc 100%); } }
:root[data-theme="dark"] { --bg: #141318; --card: #1f1e25; --ink: #f2efe8; --ink-soft: #a9a4b4; --line: rgba(255,255,255,.12); --accent: #f59457; --accent-fade: rgba(245,148,87,.12); --brand-word: #ffbe84; --brand-grad: linear-gradient(120deg, #ffdca6 0%, #ffbe84 55%, #f4ecdc 100%); }
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 17px/1.7 Manrope, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
/* Solid, not see-through: the document showed through a translucent bar. */
.lg-bar { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.lg-bar-in { max-width: 1100px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lg-brand { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font: 700 26px "Playfair Display", Georgia, serif; color: var(--brand-word); }
/* The lamp lit as on the home page; the image has wide transparent sides, so negative margins bring the name close.
   The halo stays inside the bar. */
.lg-lamp { position: relative; z-index: 0; display: inline-grid; place-items: center; margin: 0 -10px 0 -12px;
  --reach-at: 7px; --cord: linear-gradient(to bottom, rgba(70,56,44,.35), rgba(74,58,42,.95)); }
.lg-lamp::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 96px; height: 58px; transform: translate(-50%,-50%);
  background: radial-gradient(closest-side, rgba(255,206,104,.9), rgba(255,196,90,.55) 30%, rgba(255,186,76,.2) 62%, rgba(255,190,80,0) 100%); }
/* The cord runs from the top of the screen to the bulb (lamp.css); on the dark background it is the warm light one. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lg-lamp { --cord: linear-gradient(to bottom, rgba(255,214,160,.15), rgba(214,170,120,.85)); } }
:root[data-theme="dark"] .lg-lamp { --cord: linear-gradient(to bottom, rgba(255,214,160,.15), rgba(214,170,120,.85)); }
.lg-lamp img { position: relative; z-index: 1; height: 42px; width: auto; margin-top: 0; }   /* lit by the gradient behind it, never a filter (code.md) */
.lg-bar-r { display: flex; align-items: center; gap: 10px; }
.lg-lang-wrap { position: relative; }
.lg-lang { display: inline-flex; align-items: center; gap: 6px; font: 700 14px Manrope, sans-serif; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 12px 8px 14px; cursor: pointer; }
.lg-lang:hover { border-color: var(--accent); }
.lg-lang svg { width: 15px; height: 15px; transition: transform .2s ease; }
.lg-lang[aria-expanded="true"] svg { transform: rotate(180deg); }
.lg-lang-pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 10; width: 210px; padding: 6px; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.35); }
.lg-lang-pop[hidden] { display: none; }
.lg-lang-opt { display: flex; align-items: center; gap: 12px; width: 100%; border: none; background: none; color: var(--ink); cursor: pointer;
  font: 600 15px Manrope, sans-serif; padding: 10px 12px; border-radius: 10px; text-align: left; }
.lg-lang-opt b { width: 24px; font-size: 12px; font-weight: 800; color: var(--ink-soft); letter-spacing: .05em; }
.lg-lang-opt:hover { background: var(--accent-fade); }
.lg-lang-opt.on { background: var(--accent-fade); color: var(--accent); }
.lg-lang-opt.on b { color: var(--accent); }
.lg-dl { text-decoration: none; font-weight: 800; font-size: 14px; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); white-space: nowrap; }
/* Hidden until legal.ts has text, bulb and fonts, then shown in one fade: never a cord, a bulb and a word apart. */
.lg-bar, .lg-main, .lg-foot { transition: opacity .22s ease; }
html.lg-wait .lg-bar, html.lg-wait .lg-main, html.lg-wait .lg-foot { opacity: 0; }
.lg-main { max-width: 760px; margin: 0 auto; padding: 56px 20px 40px; }
.lg-kicker { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-word); }
/* The wordmark's warm gradient, as in the app (base.css --brand-grad). */
.lg-brand > span:last-child, .lg-kicker { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lg-main h1 { margin: 0; font-size: clamp(36px, 6vw, 58px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.lg-updated { margin: 14px 0 0; font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.lg-intro { margin: 26px 0 0; font-size: 19px; line-height: 1.65; }
.lg-toc { margin: 34px 0 10px; padding: 22px 26px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.lg-toc-h { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.lg-toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 32px; }
.lg-toc li { break-inside: avoid; padding: 3px 0; font-weight: 700; font-size: 16px; }
.lg-toc li::marker { color: var(--accent); font-weight: 800; }
.lg-toc a { text-decoration: none; }
.lg-toc a:hover { color: var(--accent); }
.lg-sec { padding-top: 34px; scroll-margin-top: 70px; }
.lg-sec h2 { margin: 0 0 10px; font-size: clamp(22px, 3vw, 27px); line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
.lg-n { color: var(--accent); }
.lg-sec p { margin: 0; }
.lg-contact { margin-top: 48px; padding: 28px; border-radius: 22px; background: linear-gradient(150deg, #f59457, #d4602c); color: #fff; }
.lg-contact h2 { margin: 0 0 6px; font-size: 24px; font-weight: 800; }
.lg-contact p { margin: 0 0 18px; opacity: .95; }
.lg-btn { display: inline-block; text-decoration: none; font-weight: 800; padding: 12px 22px; border-radius: 999px; background: #fff; color: #c2532a; }
.lg-other { margin: 28px 0 0; font-weight: 800; }
.lg-other a { text-decoration: none; color: var(--accent); }
.lg-foot { max-width: 760px; margin: 0 auto; padding: 26px 20px 48px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.lg-foot a { text-decoration: none; }
.lg-foot a:hover { color: var(--ink); }
@media (max-width: 640px) {
  /* The cord shows from the screen's top to the bulb, as on the home page: with the bar at the top it was 10px (owner, 2026-10-29). */
  .lg-bar-in { padding-top: 34px; }
  .lg-main { padding-top: 36px; }
  .lg-toc ol { columns: 1; }
  .lg-dl { display: none; }
  .lg-intro { font-size: 17px; }
}

.lg-intro + .lg-intro { margin-top: 14px; }
.lg-sec h3 { margin: 22px 0 6px; font-size: 18px; font-weight: 800; }
.lg-sec p + p { margin-top: 12px; }
.lg-sec ul { margin: 10px 0 0; padding-left: 1.2em; display: grid; gap: 8px; }
.lg-sec ul + p { margin-top: 12px; }
.lg-sec li::marker { color: var(--accent); }

/* A book's test page, /<lang>/test/<book>/ (docs/specs/2026-10-23-seo-terms-tests-picker.html), in the legal pages'
   look: the book, every question with its answer in a <details>, and the way on; hover changes only colour and border. */
.tq-crumbs { margin: 0 0 18px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.tq-crumbs a { color: var(--ink-soft); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.tq-crumbs a:hover { color: var(--accent); }
.tq-book { display: flex; gap: 18px; align-items: center; margin: 24px 0 24px; text-decoration: none; }
.tq-cover { flex: 0 0 auto; width: 84px; aspect-ratio: 3 / 4; border-radius: 8px; object-fit: cover; background: var(--card); box-shadow: 0 10px 24px -14px rgba(0,0,0,.5); }
.tq-book-t { display: block; font-size: 20px; line-height: 1.25; font-weight: 800; color: var(--ink); }
.tq-book-a { display: block; margin: 4px 0 0; font-weight: 700; color: var(--ink-soft); }
.tq + .tq { margin-top: 18px; }
.tq { padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; }
.tq-of { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.tq-q { margin: 0 0 18px; font-size: clamp(20px, 3vw, 24px); line-height: 1.35; font-weight: 800; }
.tq-opts { display: grid; gap: 10px; }
.tq-opt { display: block; width: 100%; text-align: left; font: 700 16px/1.45 Manrope, system-ui, sans-serif; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
/* A phone keeps :hover on what was tapped, so hover waits for a real pointer. */
@media (hover: hover) and (pointer: fine) { .tq-opt:hover { border-color: var(--accent); } }
.tq-done .tq-opt { cursor: default; }
@media (hover: hover) and (pointer: fine) { .tq-done .tq-opt:hover { border-color: var(--line); } }
.tq-opt.right, .tq-done .tq-opt.right:hover { border-color: #3a9a62; background: rgba(58,154,98,.12); }
.tq-opt.wrong, .tq-done .tq-opt.wrong:hover { border-color: #d0543a; background: rgba(208,84,58,.1); }
.tq-say { margin: 18px 0 0; font-weight: 800; }
.tq-why { margin: 14px 0 0; color: var(--ink-soft); }
.tq-why summary { cursor: pointer; font-weight: 800; color: var(--ink); }
.tq-why p { margin: 8px 0 0; }
.tq-more { margin: 30px 0 0; }
.tq-more p { margin: 0 0 16px; font-weight: 700; }
.tq-go { display: flex; flex-wrap: wrap; gap: 10px; }
.tq-btn { display: inline-block; text-decoration: none; font-weight: 800; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: var(--bg); -webkit-touch-callout: none; }
.tq-btn.alt { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.tq-btn.alt:hover { border-color: var(--accent); }
[hidden] { display: none !important; }

/* A term's page and a language's index of terms (tools/seo/term-pages.js), in the same template. */
.tm-h { margin: 0; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.tm-x { margin: 22px 0 0; font-size: 20px; line-height: 1.6; }
.tm-src { margin: 12px 0 0; font-weight: 700; color: var(--ink-soft); }
.tm-sub, .tm-letter { margin: 40px 0 12px; font-size: 22px; font-weight: 800; }
.tm-books, .tm-index { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; }
.tm-books li::marker, .tm-index li::marker { color: var(--accent); }
.tm-books a, .tm-index a, .tm-src a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.tm-books a:hover, .tm-index a:hover, .tm-src a:hover, .tm-all a:hover { color: var(--accent); }
.tm-alt { margin: 4px 0 0; color: var(--ink-soft); }
.tm-all { margin: 34px 0 0; font-weight: 800; }
.tm-all a { color: var(--accent); text-decoration: none; }
.tm-index { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); column-gap: 28px; }

/* The book picker, /<lang>/which-book/ (tools/seo/picker-page.js, web/picker.ts). */
.pk { margin: 30px 0 0; padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; }
.pk-q { margin: 22px 0 10px; font-size: 19px; font-weight: 800; }
.pk-q:first-child { margin-top: 0; }
.pk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-chip { font: 700 15px/1.3 Manrope, system-ui, sans-serif; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 9px 14px; cursor: pointer; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) and (pointer: fine) { .pk-chip:hover { border-color: var(--accent); } }
.pk-chip[aria-checked="true"] { border-color: var(--accent); background: var(--accent-fade); color: var(--accent); }
.pk-hint { margin: 0; color: var(--ink-soft); font-weight: 600; }
.pk-books { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.pk-book { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); }
.pk-book:hover b { color: var(--accent); }
.pk-cover { flex: 0 0 auto; width: 60px; aspect-ratio: 3 / 4; border-radius: 6px; object-fit: cover; background: var(--bg); }
.pk-book > span { display: grid; gap: 2px; }
.pk-book > span > span { color: var(--ink-soft); font-weight: 600; font-size: 15px; }
