/* Legal pages: the /legal/ hub, every policy, the sitemap. Loaded only on those pages (see scripts/zome_legal.py).
   Uses the Zome tokens from styles.css and nothing else: hairlines, one blue, generous whitespace, no decoration for its own sake.
   Behaviour (scroll-spy, heading links, search, print) is in legal.js. Everything works without it. */

.lx { --lx-ink: var(--ink); --lx-body: #2f3644; --lx-gap: 72px; --lx-r: var(--r-xs); --lx-r-btn: 8px; --lx-r-sm: 6px; background: var(--paper); color: var(--lx-ink); }
.lx [hidden] { display: none !important; }
.lx-wrap { width: min(100% - 2 * var(--gutter), 1120px); margin-inline: auto; }

/* ---------- Top: crumbs and the policy switcher ---------- */
.lx-top { padding: 24px 0 0; }
.lx-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.lx-crumbs li + li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 10px 2px; border-top: 1.5px solid var(--faint-sm); border-right: 1.5px solid var(--faint-sm); transform: rotate(45deg); }
.lx-crumbs a { color: var(--muted); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.lx-crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.lx-tabs { display: flex; align-items: stretch; gap: 8px; margin-top: 18px; border-bottom: 1px solid var(--line); }
.lx-tab-hub { flex: none; display: inline-flex; align-items: center; gap: 8px; align-self: center; height: 36px; padding: 0 14px 0 12px; border-radius: var(--lx-r); background: var(--brand-tint); color: var(--brand-deep); font: 600 14px var(--display); white-space: nowrap; transition: background .2s; }
.lx-tab-hub svg { width: 16px; height: 16px; }
.lx-tab-hub[aria-current] { background: var(--brand); color: #fff; }
.lx-tabs ul { position: relative; display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-left: 8px; margin-left: 4px; border-left: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--lx-fl, 0px), #000 calc(100% - var(--lx-fr, 0px)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--lx-fl, 0px), #000 calc(100% - var(--lx-fr, 0px)), transparent); }
.lx-tabs ul::-webkit-scrollbar { display: none; }
.lx-tabs li { flex: none; }
.lx-tabs li a { position: relative; display: flex; align-items: center; min-height: 48px; padding: 0 8px; font: 500 14px var(--display); color: var(--muted); white-space: nowrap; transition: color .2s; }
.lx-tabs li a[aria-current] { color: var(--ink); font-weight: 600; }
.lx-tabs li a[aria-current]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand); }
.lx-tabs li a:focus-visible { outline-offset: -3px; }

/* ---------- Hero ---------- */
.lx-hero { padding: 40px 0 40px; }
.lx-title { margin-top: 0; max-width: 820px; font: 600 clamp(36px, 4.6vw, 58px)/1.04 var(--display); letter-spacing: -.038em; color: var(--ink); text-wrap: balance; }
.lx-dek { margin-top: 16px; max-width: 620px; font-size: 18px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.lx-meta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.lx-meta dl { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 0; }
.lx-meta dt { font: 600 12px/1 var(--display); letter-spacing: .07em; text-transform: uppercase; color: var(--faint-sm); }
.lx-meta dd { margin: 8px 0 0; font: 600 15.5px/1.2 var(--display); color: var(--ink); letter-spacing: -.01em; }
.lx-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.lx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--lx-r-btn); border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: 600 14.5px/1 var(--display); text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.lx-btn svg { width: 17px; height: 17px; flex: none; }
.lx-btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Layout: contents beside the text ---------- */
.lx-shell { padding: 8px 0 120px; }
.lx-grid { display: grid; grid-template-columns: 220px minmax(0, 600px); gap: var(--lx-gap); align-items: start; }
.lx-side { position: relative; align-self: stretch; }
.lx-sticky { position: sticky; top: calc(var(--header-h) + 28px); }
.lx-toc { max-height: calc(100vh - var(--header-h) - 80px); max-height: calc(100svh - var(--header-h) - 80px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 4px; }
.lx-toc-h { margin: 0 0 12px; font: 600 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--faint-sm); }
.lx-toc ol { border-left: 1px solid var(--line); }
.lx-toc a { display: flex; gap: 10px; padding: 7px 8px 7px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.35; color: var(--muted); transition: color .2s, border-color .2s, background .2s; }
.lx-toc a.on, .lx-toc a[aria-current="location"] { color: var(--ink); font-weight: 600; border-left-color: var(--brand); }
.lx-toc .lx-n { flex: none; min-width: 1.6em; font-variant-numeric: tabular-nums; color: var(--faint-sm); font-weight: 500; }
.lx-toc a.on .lx-n { color: var(--brand); }

/* The mobile contents bar */
.lx-mtoc { display: none; }

/* ---------- The text ---------- */
.lx-doc { min-width: 0; max-width: 600px; font-size: 17px; line-height: 1.7; color: var(--lx-body); overflow-wrap: break-word; }
.lx-doc > * + *, .lx-sec > * + *, .lx-intro > * + * { margin-top: 18px; }
.lx-intro { margin-bottom: 36px; font-size: 17px; color: var(--ink-2); }
.lx-printhead { display: none; }

.lx-short { margin: 0 0 48px; padding: 24px 28px 22px; border-radius: var(--lx-r); background: var(--brand-wash); box-shadow: inset 0 0 0 1px var(--brand-soft); }
.lx-doc .lx-short h2 { margin: 0; font: 600 18px/1.2 var(--display); letter-spacing: -.018em; color: var(--ink); }
.lx-doc .lx-short ul { display: grid; gap: 12px; margin-top: 16px; padding: 0; list-style: none; }
.lx-doc .lx-short li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.lx-doc .lx-short li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 8.4 2.2 2.2 4.8-5'/%3E%3C/svg%3E") center / 100% no-repeat; }
.lx-doc .lx-short li a { color: var(--brand-deep); }
.lx-short-note { margin-top: 18px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

.lx-sec { scroll-margin-top: calc(var(--header-h) + 24px); }
.lx-sec + .lx-sec { margin-top: 52px; padding-top: 44px; border-top: 1px solid var(--line); }
.lx-doc h2, .lx-doc h3 { position: relative; color: var(--ink); scroll-margin-top: calc(var(--header-h) + 28px); }
.lx-doc h2 { margin-top: 0; font: 600 clamp(24px, 2.3vw, 29px)/1.22 var(--display); letter-spacing: -.028em; }
.lx-doc h3 { margin-top: 36px; font: 600 20px/1.3 var(--display); letter-spacing: -.018em; }
.lx-doc h2 + *, .lx-doc h3 + * { margin-top: 16px; }
.lx-doc h2 .lx-n { display: inline-block; vertical-align: .12em; margin-right: 12px; padding: 4px 8px 3px; border-radius: var(--lx-r-sm); background: var(--brand-tint); color: var(--brand-deep); font: 700 13px/1 var(--display); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.lx-link { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-left: 6px; border-radius: var(--lx-r-sm); color: var(--faint-sm); vertical-align: middle; opacity: 0; transition: opacity .2s, background .2s, color .2s; }
.lx-link svg { width: 16px; height: 16px; }
.lx-link:focus-visible { opacity: 1; }
@media (hover: none) { .lx-link { opacity: .55; } }

.lx-doc a { color: var(--brand-deep); text-decoration: underline; text-decoration-color: var(--brand-soft); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: text-decoration-color .2s; }
.lx-doc strong { color: var(--ink); font-weight: 650; }
.lx-doc em { font-style: italic; }
.lx-doc code { padding: 2px 6px; border-radius: var(--lx-r-sm); background: var(--stone); font-size: .86em; overflow-wrap: anywhere; }
.lx-doc ul, .lx-doc ol { display: grid; gap: 10px; padding: 0; list-style: none; }
.lx-doc ul > li, .lx-doc ol > li { position: relative; padding-left: 28px; }
.lx-doc ul > li::before { content: ""; position: absolute; left: 7px; top: .78em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.lx-doc ol { counter-reset: lxo; }
.lx-doc ol > li { counter-increment: lxo; }
.lx-doc ol > li::before { content: counter(lxo); position: absolute; left: 0; top: .3em; width: 22px; height: 22px; border-radius: var(--lx-r-sm); display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-deep); font: 700 12px/1 var(--display); }
.lx-doc hr { border: 0; height: 1px; background: var(--line); margin: 40px 0; }
.lx-doc .callout, .lx-doc .md-quote { padding: 16px 20px; border-radius: var(--lx-r); background: var(--cream); box-shadow: inset 3px 0 0 var(--brand), inset 0 0 0 1px var(--line); }
.lx-doc .callout b { display: block; margin-bottom: 4px; font: 600 14px var(--display); }

/* Tables: a framed grid on a computer, one card per row on a phone */
.lx-table { margin-top: 22px; overflow-x: auto; border-radius: var(--lx-r); box-shadow: 0 0 0 1px var(--line-2); background: #fff; -webkit-overflow-scrolling: touch; }
.lx-table:focus-visible { outline-offset: 2px; }
.lx-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.lx-table th { padding: 12px 16px; text-align: left; font: 600 12.5px/1.2 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--cream); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.lx-table td { padding: 14px 16px; vertical-align: top; border-top: 1px solid var(--line); color: var(--ink-2); }
.lx-table tbody tr:first-child td { border-top: 0; }
.lx-table td:first-child { color: var(--ink); font-weight: 550; min-width: 150px; }
.lx-table td code { white-space: normal; word-break: break-word; }
.lx-table td:first-child code { background: var(--brand-wash); color: var(--brand-deep); font-weight: 600; }

@media (max-width: 760px) {
  .lx-table { overflow: visible; box-shadow: none; background: none; }
  .lx-table table, .lx-table tbody, .lx-table tr, .lx-table td { display: block; width: 100%; }
  .lx-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lx-table tbody { display: grid; gap: 12px; }
  .lx-table tr { padding: 6px 16px 10px; border-radius: var(--lx-r); background: #fff; box-shadow: 0 0 0 1px var(--line-2); }
  .lx-table td { padding: 9px 0 0; border: 0; }
  .lx-table td:first-child { min-width: 0; padding-top: 10px; padding-bottom: 4px; font-size: 15px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  .lx-table td:first-child::before { display: none; }
  .lx-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 600 11.5px/1.3 var(--display); letter-spacing: .07em; text-transform: uppercase; color: var(--faint-sm); }
}

/* What changed, and the question card */
.lx-changed { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.lx-doc .lx-changed h2, .lx-ask h2 { font: 600 18px/1.3 var(--display); letter-spacing: -.015em; color: var(--ink); }
.lx-changed ul { margin-top: 14px; gap: 12px; }
.lx-changed li { display: grid; grid-template-columns: 8.2em 1fr; gap: 12px; padding: 0; font-size: 15px; line-height: 1.55; }
.lx-changed li::before { display: none; }
.lx-changed time { font: 600 13.5px/1.7 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.lx-ask { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 40px; padding: 22px 26px; border-radius: var(--lx-r); background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.lx-ask p { margin-top: 6px; font-size: 15.5px; line-height: 1.5; color: var(--muted); max-width: 440px; }
.lx-doc .lx-ask a.lx-btn { color: #fff; text-decoration: none; }
.lx-ask .lx-btn { flex: none; }

.lx-status { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 12px); max-width: calc(100vw - 32px); padding: 11px 18px; border-radius: 12px; background: var(--ink); color: #fff; font: 600 14px/1.3 var(--display); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.lx-status.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Hub ---------- */
.lx-hero-hub { padding-bottom: 24px; }
.lx-hubwrap { display: grid; gap: 56px; }
.lx-search label { display: block; margin-bottom: 10px; font: 600 14px/1 var(--display); color: var(--ink); }
.lx-search-box { position: relative; max-width: 640px; }
.lx-search-box svg { position: absolute; left: 16px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); color: var(--faint-sm); pointer-events: none; }
.lx-search input { width: 100%; height: 52px; padding: 0 16px 0 46px; border: 1px solid var(--line-2); border-radius: var(--lx-r); background: #fff; font: 500 16px var(--text); color: var(--ink); transition: border-color .2s, box-shadow .2s; text-overflow: ellipsis; }
.lx-search input::placeholder { color: var(--faint-sm); }
.lx-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .14); }
.lx-hint { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.lx-results:empty { display: none; }
.lx-results { max-width: 640px; margin-top: 14px; border-radius: var(--lx-r); box-shadow: 0 0 0 1px var(--line-2); background: #fff; overflow: hidden; }
.lx-results ul { display: grid; }
.lx-results li + li { border-top: 1px solid var(--line); }
.lx-results a { display: grid; gap: 4px; padding: 14px 18px; transition: background .15s; }
.lx-results a:focus-visible { background: var(--brand-wash); outline-offset: -3px; }
.lx-r-p { font: 600 12px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--brand-deep); }
.lx-r-t { font: 600 16px/1.3 var(--display); color: var(--ink); }
.lx-r-x { font-size: 14px; line-height: 1.5; color: var(--muted); }
.lx-results mark { background: rgba(var(--brand-rgb), .14); color: inherit; border-radius: 3px; padding: 0 1px; }
.lx-r-none { padding: 18px; font-size: 15px; color: var(--muted); }

.lx-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lx-q { display: block; width: 100%; height: 100%; padding: 14px 16px; border-radius: var(--lx-r); box-shadow: 0 0 0 1px var(--line-2); background: #fff; text-align: left; transition: box-shadow .2s, background .2s; }
.lx-q b { display: block; font: 600 14.5px/1.25 var(--display); color: var(--ink); }
.lx-q small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; color: var(--muted); }

.lx-group-h { margin-bottom: 8px; }
.lx-group-h h2 { font: 600 22px/1.2 var(--display); letter-spacing: -.022em; color: var(--ink); }
.lx-group-h p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.lx-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin-top: 8px; border-bottom: 1px solid var(--line); }
.lx-card { position: relative; display: block; height: 100%; padding: 18px 40px 18px 0; border-top: 1px solid var(--line); }
.lx-card-b { display: grid; gap: 4px; min-width: 0; align-content: start; }
.lx-card-t { font: 600 17px/1.3 var(--display); letter-spacing: -.015em; color: var(--ink); }
.lx-card-d { font-size: 15px; line-height: 1.5; color: var(--muted); }
.lx-card-m { margin-top: 2px; font-size: 13px; color: var(--faint-sm); }
.lx-card-go { position: absolute; right: 4px; top: 20px; color: var(--faint-sm); transition: color .2s, transform .2s; }
.lx-card-go svg { width: 18px; height: 18px; }
.lx-ask-hub { margin-top: 0; }

/* ---------- Security: the report card ---------- */
.lx-sec[aria-labelledby="report-a-vulnerability"] { padding: 28px 28px 26px; border: 1px solid var(--line-2); border-radius: var(--lx-r); background: var(--cream); }
.lx-sec[aria-labelledby="report-a-vulnerability"]:not(:first-child) { margin-top: 52px; }

/* ---------- Sitemap ---------- */
.lx-jump ul { display: flex; flex-wrap: wrap; gap: 8px; }
.lx-jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--lx-r); box-shadow: 0 0 0 1px var(--line-2); font: 600 14px var(--display); color: var(--ink); transition: background .2s, box-shadow .2s; }
.lx-jump span, .lx-sm h2 span, .lx-sm-sub summary span { font: 600 12px/1 var(--display); color: var(--faint-sm); font-variant-numeric: tabular-nums; }
.lx-sm { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.lx-sm h2 { display: flex; align-items: baseline; gap: 12px; font: 600 24px/1.2 var(--display); letter-spacing: -.025em; }
.lx-sm-h3 { margin: 24px 0 0; font: 600 13px/1 var(--display); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.lx-sm-note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.lx-sm-list { margin-top: 14px; columns: 3 240px; column-gap: 32px; }
.lx-sm-list li { break-inside: avoid; padding: 5px 0; font-size: 15px; line-height: 1.4; }
.lx-sm-list a { color: var(--ink-2); text-decoration: none; }
.lx-sm-list a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
.lx-sm-sub { margin-top: 12px; border-top: 1px solid var(--line); }
.lx-sm-sub summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; cursor: pointer; font: 600 16px var(--display); list-style: none; }
.lx-sm-sub summary::-webkit-details-marker { display: none; }
.lx-sm-sub summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-left: auto; border-right: 1.7px solid var(--faint-sm); border-bottom: 1.7px solid var(--faint-sm); transform: rotate(45deg); transition: transform .2s; }
.lx-sm-sub[open] summary::after { transform: rotate(-135deg); }
.lx-sm-sub summary span { margin-left: 8px; }
.lx-sm-sub .lx-sm-list { margin-top: 4px; padding-bottom: 14px; }

/* ---------- Hover (only where there is a pointer to hover with) ---------- */
@media (hover: hover) {
  .lx-crumbs a:hover { color: var(--ink); text-decoration-color: currentColor; }
  .lx-tab-hub:hover { background: var(--brand-soft); }
  .lx-tabs li a:hover { color: var(--ink); }
  .lx-btn:hover { background: var(--stone); border-color: var(--faint-sm); }
  .lx-btn-brand:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
  .lx-toc a:hover { color: var(--ink); }
  .lx-doc h2:hover > .lx-link, .lx-doc h3:hover > .lx-link { opacity: 1; }
  .lx-link:hover { background: var(--stone); color: var(--brand-deep); }
  .lx-doc a:hover { text-decoration-color: currentColor; }
  .lx-table tbody tr:hover td { background: var(--cream); }
  .lx-search input:hover { border-color: var(--faint-sm); }
  .lx-results a:hover { background: var(--brand-wash); }
  .lx-q:hover { box-shadow: 0 0 0 1px var(--brand-soft); background: var(--brand-wash); }
  .lx-card:hover .lx-card-t { color: var(--brand-deep); }
  .lx-card:hover .lx-card-go { color: var(--brand); transform: translateX(2px); }
  .lx-jump a:hover { background: var(--brand-wash); box-shadow: 0 0 0 1px var(--brand-soft); }
  .lx-sm-list a:hover { color: var(--brand-deep); text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 3px; }
}

/* ---------- Medium and small screens ---------- */
@media (max-width: 1000px) {
  .lx-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lx-side { display: none; }
  .lx-mtoc { display: block; position: sticky; top: var(--header-h); z-index: 40; background: var(--paper, #fff); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); margin-bottom: 36px; }
  /* The site header floats a few pixels above this bar; body text must not show in that gap while the bar is stuck. */
  .lx-mtoc::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 14px; background: var(--paper, #fff); pointer-events: none; }
  .lx-mtoc summary { display: flex; align-items: center; gap: 12px; width: min(100% - 2 * var(--gutter), 1120px); min-height: 52px; margin-inline: auto; cursor: pointer; list-style: none; }
  .lx-mtoc summary::-webkit-details-marker { display: none; }
  .lx-mtoc-k { flex: none; font: 600 14.5px var(--display); color: var(--ink); }
  .lx-mtoc-cur { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--muted); }
  .lx-mtoc-cur:not(:empty)::before { content: "\00b7"; margin-right: 10px; color: var(--faint-sm); }
  .lx-mtoc summary > svg { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform .25s var(--ease); }
  .lx-mtoc[open] summary > svg { transform: rotate(180deg); }
  .lx-mtoc nav { position: absolute; left: 0; right: 0; top: 100%; max-height: min(60vh, 460px); overflow-y: auto; overscroll-behavior: contain; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(21, 26, 38, .35); }
  .lx-mtoc nav ol { width: min(100% - 2 * var(--gutter), 1120px); margin-inline: auto; padding: 8px 0 14px; }
  .lx-mtoc nav a { display: flex; gap: 12px; align-items: baseline; min-height: 44px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.35; color: var(--ink-2); }
  .lx-mtoc nav li:last-child a { border-bottom: 0; }
  .lx-mtoc nav a.on { color: var(--brand-deep); font-weight: 600; }
  .lx-mtoc .lx-n { flex: none; min-width: 1.7em; color: var(--faint-sm); font-variant-numeric: tabular-nums; font-size: 13px; }
  .lx-cards { grid-template-columns: minmax(0, 1fr); }
  .lx-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-doc { max-width: none; }
}
@media (max-width: 640px) {
  .lx-top { padding-top: 16px; }
  .lx-hero { padding: 28px 0 28px; }
  .lx-dek { font-size: 17px; }
  .lx-meta { margin-top: 24px; padding-top: 20px; }
  .lx-meta dl { gap: 14px 22px; }
  .lx-meta dd { font-size: 15px; }
  .lx-tabs ul { --lx-fr: 28px; padding-right: 24px; }
  .lx-actions { width: 100%; }
  .lx-actions .lx-btn { flex: 1 1 auto; }
  .lx-doc { font-size: 16.5px; line-height: 1.7; }
  .lx-short { padding: 20px 20px 18px; }
  .lx-sec[aria-labelledby="report-a-vulnerability"] { padding: 22px 18px 20px; }
  .lx-sec + .lx-sec { margin-top: 40px; padding-top: 34px; }
  .lx-doc h2 .lx-n { display: block; width: max-content; margin: 0 0 10px; }
  .lx-changed li { grid-template-columns: 1fr; gap: 2px; }
  .lx-ask { flex-direction: column; align-items: stretch; padding: 22px 20px; }
  .lx-ask .lx-btn { width: 100%; }
  .lx-quick { grid-template-columns: minmax(0, 1fr); }
  .lx-shell { padding-bottom: 80px; }
  .lx-hubwrap { gap: 44px; }
}

/* The footer's legal row: tidy wrapping now that it holds more links */
.site-footer .foot-legal nav { row-gap: 2px; }

/* ---------- Motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  .lx *, .lx *::before, .lx *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
@media (forced-colors: active) {
  .lx-tabs li a[aria-current]::after { background: Highlight; }
  .lx-short li::before { background: Highlight; }
}

@media print {
  @page { margin: 18mm 16mm; }
  .annc, .site-header, .site-footer, .page-dim, .mobile-menu, .skip, .zcn, [class*="zcn-"], #zome-consent, .lx-top, .lx-side, .lx-mtoc, .lx-actions, .lx-link, .lx-ask, .lx-status, .lx-search, .lx-quick, .lx-jump { display: none !important; }
  html, body, .lx { background: #fff !important; color: #000 !important; }
  body { font-size: 11pt; }
  .lx-wrap, .lx-doc { width: auto; max-width: none; }
  .lx-grid { display: block; }
  .lx-hero { padding: 0 0 12pt; }
  .lx-title { font-size: 26pt; color: #000; margin-top: 6pt; }
  .lx-dek { font-size: 11pt; color: #000; margin-top: 6pt; }
  .lx-meta { margin-top: 10pt; padding-top: 8pt; border-top: 1px solid #000; }
  .lx-meta dd, .lx-meta dt { color: #000; }
  .lx-printhead { display: block; margin-bottom: 14pt; padding-bottom: 8pt; border-bottom: 1px solid #000; font-size: 9pt; color: #000; }
  .lx-doc { font-size: 10.5pt; line-height: 1.5; color: #000; }
  .lx-doc a { color: #000; text-decoration: underline; }
  .lx-doc a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  .lx-doc a[href^="/"]::after { content: " (https://zome.io" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  .lx-doc a[href^="#"]::after { content: none; }
  .lx-short { background: none; box-shadow: none; border: 1px solid #000; border-radius: 0; break-inside: avoid; }
  .lx-doc .lx-short li::before { width: 6px; height: 6px; top: .62em; left: 4px; border-radius: 50%; background: #000 !important; }
  .lx-intro, .lx-doc .lx-short li, .lx-short-note, .lx-doc strong, .lx-table td, .lx-changed li { color: #000; }
  .lx-doc code, .lx-table td:first-child code { background: none; color: #000; padding: 0; font-weight: 600; }
  .lx-doc h2, .lx-doc h3 { color: #000; break-after: avoid; }
  .lx-doc h2 .lx-n { background: none; color: #000; padding: 0; margin-right: 8pt; }
  .lx-sec + .lx-sec { margin-top: 18pt; padding-top: 14pt; border-top: 1px solid #999; }
  .lx-sec p, .lx-sec li { orphans: 3; widows: 3; }
  .lx-doc ul > li::before, .lx-doc ol > li::before { background: none; color: #000; }
  .lx-doc ul > li::before { background: #000; }
  .lx-table, .lx-table table, .lx-table tbody, .lx-table thead { display: revert; overflow: visible; box-shadow: none; }
  .lx-table table { width: 100%; font-size: 9pt; }
  .lx-table thead { position: static; width: auto; height: auto; clip: auto; }
  .lx-table tr { display: table-row; box-shadow: none; padding: 0; break-inside: avoid; }
  .lx-table td, .lx-table th { display: table-cell; width: auto; padding: 4pt 6pt; border: 1px solid #999; color: #000; background: none; }
  .lx-table td::before { content: none !important; }
  .lx-table th { background: #eee; color: #000; }
  .lx-changed { border-top: 1px solid #999; }
  .lx-sm-sub { display: block; }
  .lx-sm-sub > :not(summary) { display: block !important; }
  .lx-sm-list { columns: 2; }
  .lx-sm-list a { color: #000; }
}
