/* counselara.com: the hand-written stylesheet for the static marketing pages.
   Values mirror the design tokens of the product (web/design/tokens.json); logical properties
   only, so the same rules serve the Hebrew (RTL) pages and the English (LTR) pages. */

/* ── faces (self-hosted, no CDN) ─────────────────────────────────────────────── */

/* Two voices: Rubik is the face of whoever is speaking (the site, the assistant, a question);
   Frank Ruhl Libre is the face of the record (headlines, case and document names). */
@font-face { font-family: 'Rubik Variable'; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url(fonts/rubik-hebrew-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Rubik Variable'; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url(fonts/rubik-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Frank Ruhl Libre Variable'; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url(fonts/frank-ruhl-libre-hebrew-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Frank Ruhl Libre Variable'; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url(fonts/frank-ruhl-libre-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono Variable'; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(fonts/jetbrains-mono-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ── tokens ──────────────────────────────────────────────────────────────────── */

:root {
  --cl-stone: #f1ede4;
  --cl-stone-bright: #fbf9f4;
  --cl-white: #ffffff;
  --cl-basalt: #1e1f1d;
  --cl-ink: #1e1f1d;
  --cl-ink-muted: #5f5c55;
  --cl-ink-faint: #8e8a80;
  --cl-line: #d4cdc0;
  --cl-line-strong: #c5bcab;
  /* the boundary of a control at rest (a field, a choice, the machine-set type chip); never a divider or a frame */
  --cl-edge: #908877;
  --cl-copper: #a8562a;
  --cl-copper-deep: #8f4722;
  --cl-copper-wash: #f7efe7;
  --cl-wash: #dcd2bd;
  --cl-cited: #f2dcc5;
  --cl-rust: #8e2a2a;
  --cl-rust-soft: #f5e4e1;
  --cl-status-queued: #8e8a80;
  --cl-status-processing: #a8562a;
  --cl-status-ready: #8f4722;
  --cl-kind-pdf: #c2411e;
  --cl-kind-doc: #2f5d8f;
  --cl-kind-text: #5f5c55;
  --cl-kind-image: #2f7d7a;
  --cl-kind-audio: #8a6a2f;
  --cl-space-2: 8px;  --cl-space-3: 12px; --cl-space-4: 16px; --cl-space-5: 20px;
  --cl-space-6: 24px; --cl-space-8: 32px; --cl-space-10: 40px; --cl-space-12: 48px; --cl-space-16: 64px;
  --cl-radius-sm: 4px; --cl-radius-md: 6px; --cl-radius-lg: 10px;
  --cl-shadow-card: 0 1px 2px rgba(30, 31, 29, 0.06), 0 4px 14px rgba(30, 31, 29, 0.06);
  --cl-shadow-dialog: 0 12px 40px rgba(30, 31, 29, 0.24);
  --cl-font-sans: 'Rubik Variable', system-ui, -apple-system, "Segoe UI", Arial, "Noto Sans Hebrew", sans-serif;
  --cl-font-display: 'Frank Ruhl Libre Variable', 'Rubik Variable', Georgia, "Times New Roman", serif;
  --cl-font-mono: 'JetBrains Mono Variable', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --cl-motion-fast: 120ms;
  --cl-motion-base: 200ms;
  --cl-motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  /* the site's own: the dark band the answer is built on, and the light text on it */
  --site-band: #141513;
  --site-band-ink: #f1ede4;
  --site-band-muted: #b3ada0;
  --site-band-line: #2c2d2a;
  --site-card-line: #3a3b36;
  --pad-x: clamp(20px, 4.5cqi, 64px);
  /* reading direction as a sign: motion along the reading direction multiplies by it */
  --rd: 1;
}
[dir=ltr] { --rd: -1; }

/* ── what the browser paints on the page itself ──────────────────────────────── */

/* As in the product, so someone moving from the site into the app sees one look: selected text is copper at
   about a third over whatever ground the words stand on, the words keeping their own colour, and the
   scrollbar takes our colour on the system's own bar. */
::selection { background: color-mix(in srgb, var(--cl-copper) 32%, transparent); }
:root { scrollbar-color: var(--cl-ink-faint) transparent; }

/* ── base ────────────────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--cl-stone); }
html { scroll-behavior: smooth; }
body { background: var(--cl-stone); color: var(--cl-ink); font-family: var(--cl-font-sans);
  font-size: 17px; line-height: 1.6; container-type: inline-size; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cl-copper); outline-offset: 3px; }
.site-nav a:not(.btn):focus-visible, .footer-nav a:focus-visible, .notfound .alt a:focus-visible { border-radius: var(--cl-radius-sm); }
h1, h2 { font-family: var(--cl-font-display); font-weight: 400; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.6cqi, 44px); line-height: 1.18; }
h3 { font-weight: 500; font-size: 19px; letter-spacing: -0.005em; margin: 0 0 var(--cl-space-2); }
p { margin: 0; }
svg { flex: none; }
/* Numbers, dates, file numbers and timecodes stay LTR inside Hebrew; they sit in the text face, not the mono,
   because a date inside a sentence is prose, not an identifier. */
bdi[dir=ltr] { unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.mono { font-family: var(--cl-font-mono); font-variant-numeric: tabular-nums; }
.code { font-family: var(--cl-font-mono); font-size: 0.86em; letter-spacing: 0.04em; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--pad-x); }
.spacer { flex: 1; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* words for a screen reader alone, inside a control whose visible words are shorter */
.vh { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lede { font-size: 19px; line-height: 1.6; color: var(--cl-ink-muted); max-width: 40ch; }

.btn { display: inline-flex; align-items: center; gap: var(--cl-space-2); padding: 13px 22px;
  border-radius: var(--cl-radius-md); font-weight: 500; font-size: 16px; line-height: 1; white-space: nowrap; border: 1px solid transparent;
  transition: background-color var(--cl-motion-base) var(--cl-motion-ease), border-color var(--cl-motion-base) var(--cl-motion-ease), color var(--cl-motion-base) var(--cl-motion-ease); }
.btn-primary { background: var(--cl-copper); color: var(--cl-white); border-color: var(--cl-copper); }
.btn-primary:hover { background: var(--cl-copper-deep); border-color: var(--cl-copper-deep); }
.btn-secondary { border-color: var(--cl-line-strong); color: var(--cl-ink); }
.btn-secondary:hover { border-color: var(--cl-ink); }

/* the brand: the wordmark "Counselara." with its raised copper figure is the lockup everywhere, in the header,
   the footer and the drawn app's sidebar, and it keeps its aspect (6228 x 930) at any height. The tile (the full
   stop and the figure on copper) is the favicon and the app icon, and no page draws it. */
.lockup { display: inline-flex; align-items: center; }
.wordmark { height: 24px; width: calc(24px * 6228 / 930); color: var(--cl-ink); display: block; }

/* the icon set: 24 grid, open arcs, currentColor; a file's kind icon carries its own colour */
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 15px; height: 15px; }
.k-pdf { color: var(--cl-kind-pdf); } .k-doc { color: var(--cl-kind-doc); } .k-text { color: var(--cl-kind-text); }
.k-image { color: var(--cl-kind-image); } .k-audio { color: var(--cl-kind-audio); }
/* rtl-check: allow. chevron-next is the one mirrored icon, flipped only under RTL */
[dir=rtl] .chev { transform: scaleX(-1); }

/* ── the pages' own materials ────────────────────────────────────────────────── */

/* Two materials carry every picture. A SHEET is a paper the product writes or reads (white, the record's face).
   A SLIP is a part of the app clipped beside it (stone-bright, the text face). Copper is a reference or a call,
   rust is a gap, and nothing else on a page is coloured except Word's own revision colours on a Word file. */
:root {
  --site-paper: var(--cl-white);
  --site-paper-shadow: 0 1px 1px rgba(30, 31, 29, 0.05), 0 18px 38px -22px rgba(58, 42, 22, 0.36);
  --site-paper-shadow-band: 0 26px 54px -26px rgba(0, 0, 0, 0.85);
  --site-slip: var(--cl-stone-bright);
  /* Word's own colours for tracked changes, as Word assigns them by author: the first author's red, the second
     author's blue, and the rule under a running head. The paper is Word's, so none of them is a token. */
  --site-word-theirs: #d13438;
  --site-word-ours: #0078d4;
  --site-word-rule: #bfbfbf;
  /* the app's own colour for the other side's change inside an item */
  --site-side-theirs: #3f5f78;
  --site-sheet-pad: clamp(16px, 2.7cqi, 36px);
  /* how far a paper leaves the reading column at a phone's width, and how far the page pulled out from under
     the hero's draft stands out past the draft's edge: the copper thread between them hangs on both */
  --site-bleed: 0px;
  --site-thread-out: 14px;
}

[hidden] { display: none !important; }
body { font-size: 16px; }
h2 { font-size: clamp(27px, 3.25cqi, 40px); line-height: 1.16; }
h3 { font-size: 17px; }

/* ── header ──────────────────────────────────────────────────────────────────── */

/* The wordmark, the site's pages, the other language, sign in and the way in. The practice areas open as a list
   under their word, a disclosure the page draws itself. At a phone's width the pages gather under one menu
   button and the way in stands in the page, not in the header. */
.site-header { position: relative; z-index: 5; display: flex; align-items: center; gap: 30px; padding-block: 20px; }
.site-pages { display: flex; align-items: center; gap: 26px; font-size: 15.5px; }
.site-pages > a, .site-menu > summary, .site-nav > a:not(.btn) { color: var(--cl-ink-muted); transition: color var(--cl-motion-base) var(--cl-motion-ease); }
.site-pages > a:hover, .site-menu > summary:hover, .site-nav > a:not(.btn):hover { color: var(--cl-ink); }
.site-menu { position: relative; }
.site-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; border-radius: var(--cl-radius-sm); }
.site-menu > summary::-webkit-details-marker { display: none; }
.site-menu > summary:focus-visible { outline: 2px solid var(--cl-copper); outline-offset: 3px; }
.site-menu > summary .ic { width: 15px; height: 15px; }
.site-menu > ul { position: absolute; inset-block-start: calc(100% + 10px); inset-inline-start: -14px; margin: 0; padding: 8px; list-style: none; min-width: 210px;
  background: var(--cl-stone-bright); border: 1px solid var(--cl-line); border-radius: var(--cl-radius-lg); box-shadow: var(--cl-shadow-dialog); }
.site-menu > ul a { display: block; padding: 10px 12px; border-radius: var(--cl-radius-md); color: var(--cl-ink); }
.site-menu > ul a:hover, .site-menu > ul a:focus-visible { background: var(--cl-wash); }
.site-menu > ul .group { padding: 12px 12px 4px; font-size: 13px; color: var(--cl-ink-muted); }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 15.5px; }
.site-header .btn { padding: 11px 18px; font-size: 15px; }
.site-menu-all { display: none; }
.site-menu-all > summary { width: 44px; height: 44px; justify-content: center; color: var(--cl-ink); }
.site-menu-all > summary .ic { width: 24px; height: 24px; }
.site-menu-all .ic-close, .site-menu-all[open] .ic-menu { display: none; }
.site-menu-all[open] .ic-close { display: block; }
.site-menu-all > ul { inset-inline-start: auto; inset-inline-end: 0; }
/* rtl-check: allow. the way back points against the reading direction: the one chevron flipped under LTR */
[dir=ltr] .chev-back { transform: scaleX(-1); }

/* ── the two materials ───────────────────────────────────────────────────────── */

.specimen { margin: 0; min-width: 0; }
/* what a paper is, said in the page's own voice: the draft's name as the app shows it, and that it is a sample.
   Above the paper where it stands alone; inside the paper's head where the paper hangs under a tab */
.tab, .sheet-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-family: var(--cl-font-sans); font-size: 13px; line-height: 1.4; color: var(--cl-ink-muted); }
.tab { padding-inline: 2px; margin-block-end: 8px; }
.sheet-cap { margin: 0; padding: 9px var(--site-sheet-pad) 8px; border-block-end: 1px solid var(--cl-line); }
.tab .doc-name, .sheet-cap .doc-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab .sample, .sheet-cap .sample { flex: none; }
.sheet { position: relative; background: var(--site-paper); border: 1px solid var(--cl-line); border-radius: 2px; box-shadow: var(--site-paper-shadow);
  color: var(--cl-ink); font-family: var(--cl-font-display); min-width: 0; }
.sheet-body { padding: clamp(18px, 2.4cqi, 30px) var(--site-sheet-pad); }
.slip { background: var(--site-slip); border: 1px solid var(--cl-line); border-radius: var(--cl-radius-lg); color: var(--cl-ink);
  font-family: var(--cl-font-sans); font-size: 15px; line-height: 1.55; min-width: 0; }

/* a numbered paragraph of a document: the number hangs in its own column */
.para { display: grid; grid-template-columns: 2em minmax(0, 1fr); margin: 0; }
.para + .para, .para-h + .para { margin-block-start: 0.45em; }
.para .num { color: var(--cl-ink-muted); }
.para-h { margin: 0.9em 0 0; font-weight: 600; }
/* a letter's paragraph carries no number */
.para.plain { display: block; }
.cp { white-space: nowrap; }

/* a reference, as the draft's sheet carries it: the source's number, then the place it opens */
.ref { display: inline-flex; align-items: stretch; vertical-align: 0.16em; margin-inline: 0.2em 0.1em; white-space: nowrap;
  font-family: var(--cl-font-sans); font-size: max(12.5px, 0.6em); line-height: 1.5; font-weight: 500; color: var(--cl-copper-deep);
  background: var(--cl-copper-wash); border: 1px solid color-mix(in srgb, var(--cl-copper) 58%, transparent); border-radius: 5px; }
.ref > .n { padding-inline: 0.5em; font-weight: 700; border-inline-end: 1px solid color-mix(in srgb, var(--cl-copper) 40%, transparent); }
/* the number is a left-to-right island, so on a Hebrew page its own start is the side that faces the place */
[dir=rtl] .ref > .n { border-inline-end: 0; border-inline-start: 1px solid color-mix(in srgb, var(--cl-copper) 40%, transparent); }
.ref > .loc { padding-inline: 0.5em; }
.ref > .loc.mono { letter-spacing: 0.02em; }
/* the reader's own check of a reference, the app's tick before the number */
.ref > .chk { align-self: center; width: 1.05em; height: 1.05em; margin-inline: 0.42em -0.12em; stroke-width: 2.2; display: none; }
.ref[data-checked="true"] > .chk { display: block; }
/* the reference whose source stands open beside the paper */
.ref.tied { background: var(--cl-cited); box-shadow: 0 0 0 2px var(--site-paper), 0 0 0 3.5px var(--cl-copper); }

/* a gap, as the draft's sheet carries it: the kind of gap, then what is missing */
.gap { display: inline-flex; align-items: stretch; vertical-align: 0.16em; margin-inline: 0.2em 0.1em; max-width: 100%;
  font-family: var(--cl-font-sans); font-size: max(12.5px, 0.6em); line-height: 1.5; font-weight: 500; color: var(--cl-rust);
  background: var(--cl-rust-soft); border: 1px solid color-mix(in srgb, var(--cl-rust) 52%, transparent); border-radius: 999px; }
.gap > span { display: inline-flex; align-items: center; gap: 0.38em; padding-inline: 0.72em; white-space: nowrap; }
.gap > span:first-child { font-weight: 700; padding-inline-end: 0.6em; border-inline-end: 1px solid color-mix(in srgb, var(--cl-rust) 40%, transparent); }
.gap .ic { width: 1.05em; height: 1.05em; stroke-width: 2; }
/* a gap that fills its line leaves room for the sentence's own stop after it */
.cp > .gap { max-width: calc(100% - 0.8em); }

/* the viewer's head over an open source: the file's name and the place the reference opened */
.src { margin: 0; min-width: 0; }
.src-head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 9px; padding: 13px 18px 12px; border-block-end: 1px solid var(--cl-line);
  font-family: var(--cl-font-sans); font-size: 15px; line-height: 1.4; }
.src-head .name { font-weight: 600; }
.src-head .at { margin-inline-start: auto; font-size: 13px; color: var(--cl-ink-muted); white-space: nowrap; }
/* the source's number, as the reference that opened it carries it */
.src-n { display: inline-grid; place-items: center; min-width: 1.6em; padding-inline: 0.35em; border: 1px solid color-mix(in srgb, var(--cl-copper) 58%, transparent); border-radius: 5px;
  background: var(--cl-copper-wash); color: var(--cl-copper-deep); font-size: 13px; font-weight: 700; line-height: 1.5; }
/* the page of a document a reference opens */
.page-body { padding: 16px var(--site-sheet-pad) 4px; font-size: clamp(16px, 1.55cqi, 18px); line-height: 1.7; }
.page-body p { margin: 0 0 8px; }
.pg-h { font-weight: 700; }
.pg-c { position: relative; display: grid; grid-template-columns: 2.6em minmax(0, 1fr); padding: 6px 10px; margin-inline: -10px; }
.pg-c .cn { justify-self: start; font-weight: 700; }
.pg-c.dim { color: var(--cl-ink-muted); }
.pg-c.cited { background: var(--cl-cited); border-inline-start: 3px solid var(--cl-copper); border-radius: 2px; }
.pg-c.cut { max-height: 2.5em; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 96%); mask-image: linear-gradient(to bottom, #000 20%, transparent 96%); }
/* a line of a paper whose words the sample does not hold: drawn as bars, never invented */
.bars { display: grid; gap: 6px; padding-block: 4px 6px; }
.bars i { height: 5px; border-radius: 3px; background: var(--cl-line); }
.bars .w55 { width: 55%; } .bars .w34 { width: 34%; } .bars .w80 { width: 80%; } .bars .w90 { width: 90%; } .bars .w64 { width: 64%; } .bars .w46 { width: 46%; }
.bars.centre { justify-items: center; }
/* the state of a reference under its open source, in the app's words */
.state { display: flex; align-items: center; gap: 7px; margin: 0; padding: 10px 18px 12px; border-block-start: 1px solid var(--cl-line);
  font-family: var(--cl-font-sans); font-size: 13.5px; line-height: 1.4; color: var(--cl-ink-muted); }
.state .ic { width: 15px; height: 15px; display: none; }
.state[data-checked="true"] { color: var(--cl-ink); }
.state[data-checked="true"] .ic { display: block; }

/* ── the first screen ────────────────────────────────────────────────────────── */

.hero { padding-block: clamp(6px, 2.2cqi, 30px) 0; }
.hero h1 { font-size: clamp(36px, 6.9cqi, 84px); line-height: 1.07; letter-spacing: -0.014em; text-wrap: wrap; }
.hero h1 > span { display: block; }
:lang(en) .hero h1 { font-size: clamp(30px, 5.05cqi, 60px); line-height: 1.1; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 18px clamp(28px, 5cqi, 72px); margin-block-start: clamp(14px, 2cqi, 26px); }
.hero .lede { font-size: clamp(15px, 1.48cqi, 18.5px); line-height: 1.55; max-width: 54ch; }
.call { display: flex; align-items: center; gap: 16px; }
.call .btn { padding: 15px 24px; }
.price { font-size: 13.5px; line-height: 1.45; color: var(--cl-ink-muted); max-width: 23ch; }

/* The papers under the headline: two sample documents on one desk, one shown at a time. Each has a tab above
   the paper, a radio's label, so the keyboard and a page without script both turn to the other paper */
.hero-stage { margin-block-start: clamp(18px, 2.6cqi, 34px); }
.doc-switch { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 2px; margin: 0; font-size: 14.5px; line-height: 1.3; }
.doc-switch label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 clamp(12px, 1.6cqi, 20px); border: 1px solid transparent; border-block-end: 0;
  border-start-start-radius: 4px; border-start-end-radius: 4px; color: var(--cl-ink-muted); cursor: pointer; transition: color var(--cl-motion-base) var(--cl-motion-ease); }
.doc-switch label:hover { color: var(--cl-ink); }
.pick-a:checked ~ .doc-switch > label:first-child, .pick-b:checked ~ .doc-switch > label:last-child {
  background: var(--site-paper); border-color: var(--cl-line); color: var(--cl-ink); font-weight: 500; margin-block-end: -1px; padding-block-end: 1px; cursor: default; }
.pick-a:focus-visible ~ .doc-switch > label:first-child, .pick-b:focus-visible ~ .doc-switch > label:last-child,
[data-keyed] .pick-a:focus ~ .doc-switch > label:first-child, [data-keyed] .pick-b:focus ~ .doc-switch > label:last-child { outline: 2px solid var(--cl-copper); outline-offset: 2px; }
.doc { display: none; }
.pick-a:checked ~ .doc-a, .pick-b:checked ~ .doc-b { display: block; }
/* a page with one paper has no tabs: its paper simply stands */
.doc.only { display: block; }
.hero-specimen { margin-inline: calc(var(--site-bleed) * -1); }
/* the paper under the tabs: the tab's corner is square where the two meet */
.hero-sheet { border-start-start-radius: 0; overflow: clip; }
.hero-sheet .sheet-body { font-size: clamp(20px, 2.8cqi, 32px); line-height: 1.5; padding-block: clamp(14px, 2cqi, 26px) 0; }
:lang(en) .hero-sheet .sheet-body { font-size: clamp(18.5px, 2.5cqi, 29px); }
/* the paragraph before, cut to its last line, and the lines after, standing back and thinning out, because the
   document goes on; one paragraph is at full ink and at reading scale */
.hero-sheet .prev { display: flex; flex-direction: column; justify-content: flex-end; max-height: 1.5em; overflow: hidden; margin: 0 0 0.45em; padding-inline-start: 2em; color: color-mix(in srgb, var(--cl-ink) 30%, transparent); }
.hero-sheet .prev .ref { opacity: 0.4; }
.hero-sheet .tail { margin-block-start: 0.7em; padding-block-end: 22px; color: color-mix(in srgb, var(--cl-ink) 30%, transparent); max-height: 4.4em; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 96%); mask-image: linear-gradient(to bottom, #000 30%, transparent 96%); }
.hero-sheet .tail .num { color: inherit; }
.hero-sheet .tail .para-h { margin-block-start: 0; }
/* the paragraphs after it that the sample does not hold: bars in line with the text */
.hero-sheet .tail .bars { gap: 0.42em; margin: 0; padding-inline-start: 2em; }
.doc-b .hero-sheet .sheet-body { font-size: clamp(18.5px, 2.35cqi, 27px); line-height: 1.7; padding-block-end: clamp(14px, 2cqi, 26px); }

/* The page pulled out from under the draft: the source one of its references opens, standing a little out past
   the draft's edge. One copper thread runs down the draft's margin beside the paragraph and on down the open
   page beside the cited passage. It is the page's one tie between a claim and its place in the material. */
.hero-sheet .lead { position: relative; }
.doc-a .hero-sheet .lead::after { content: ""; position: absolute; inset-inline-end: calc(var(--site-sheet-pad) / -2 - 1px); inset-block: 0.36em -40em; inline-size: 2px; background: var(--cl-copper); }
.hero-under { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 35em); grid-template-rows: auto 1fr; gap: 0 clamp(24px, 4cqi, 56px); align-items: start; }
/* what stands under the first paper, and what stands under the second: the open source, or the firm's decision */
.hero-under .for-b, .pick-b:checked ~ .hero-under .for-a { display: none; }
.pick-b:checked ~ .hero-under .for-b { display: grid; }
.hero-src, .hero-slip { grid-column: 2; grid-row: 1 / span 2; }
.hero-slip { margin-block-start: 12px; }
.hero-src { position: relative; z-index: 1; margin-block-start: -58px; margin-inline-end: calc((var(--site-bleed) + var(--site-thread-out)) * -1); }
.hero-src .sheet { overflow: clip; box-shadow: 0 1px 1px rgba(30, 31, 29, 0.06), 0 22px 44px -20px rgba(58, 42, 22, 0.5); }
.hero-src .src-head { padding-inline-end: calc(var(--site-thread-out) + var(--site-sheet-pad) / 2 + 13px); }
.hero-src .page-body { padding-inline: 18px calc(var(--site-thread-out) + var(--site-sheet-pad) / 2 - 1px); font-size: clamp(15.5px, 1.4cqi, 17px); line-height: 1.65; }
.hero-src .pg-c { margin-inline: 0; grid-template-columns: 2.3em minmax(0, 1fr); }
.hero-src .pg-c.cited { border-inline-start: 0; padding-inline-end: 16px; }
.hero-src .pg-c.cited::after { content: ""; position: absolute; inset-inline-end: 0; inset-block: -40em 0; inline-size: 2px; background: var(--cl-copper); }
.hero-under .legend { grid-column: 1; grid-row: 1; }
/* the one line the sheet needs said beside it */
.legend { display: flex; align-items: center; gap: 8px; margin-block-start: 12px; font-size: 14.5px; line-height: 1.45; color: var(--cl-ink-muted); }
.legend .ic { flex: none; width: 16px; height: 16px; color: var(--cl-rust); }

/* the marks arrive after the words, once: reference, reference, gap, then the thread */
@media (prefers-reduced-motion: no-preference) {
  .doc-a .hero-sheet .lead .ref, .doc-a .hero-sheet .lead .gap { animation: site-ink 620ms var(--cl-motion-ease) both; }
  .doc-a .hero-sheet .lead .cp:nth-of-type(1) > * { animation-delay: 420ms; }
  .doc-a .hero-sheet .lead .cp:nth-of-type(2) > * { animation-delay: 760ms; }
  .doc-a .hero-sheet .lead .cp:nth-of-type(3) > * { animation-delay: 1100ms; }
}
@keyframes site-ink { from { background-color: transparent; border-color: transparent; box-shadow: none; color: var(--cl-ink-faint); } }

/* ── the practice areas, right under the first paper: five ways on, each naming its document ── */

.doors { grid-column: 1; grid-row: 2; margin-block-start: clamp(22px, 2.6cqi, 34px); }
.doors h2 { font-family: var(--cl-font-sans); font-size: 15.5px; font-weight: 500; letter-spacing: 0; line-height: 1.4; color: var(--cl-ink-muted); }
.door-row { list-style: none; margin: 10px 0 0; padding: 0; border-block-end: 1px solid var(--cl-line); }
.door-row > li { border-block-start: 1px solid var(--cl-line); }
.door { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; min-height: 46px; padding: 10px 2px 11px; }
.door .area { font-family: var(--cl-font-display); font-size: clamp(18.5px, 1.7cqi, 21px); line-height: 1.3; white-space: nowrap; }
.door .doc-kind { font-size: 14px; line-height: 1.4; color: var(--cl-ink-muted); text-align: end; transition: color var(--cl-motion-base) var(--cl-motion-ease); }
.door:hover .area { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.door:hover .doc-kind { color: var(--cl-ink); }
.door:focus-visible { outline-offset: -2px; }

/* ── the reference opens the source: the page's one dark band ────────────────── */

.band { background: var(--site-band); color: var(--site-band-ink); margin-block-start: clamp(34px, 6cqi, 84px); padding-block: clamp(42px, 7.4cqi, 104px); }
.proof-head { display: grid; gap: 12px; }
.proof-head p { color: var(--site-band-muted); font-size: clamp(15.5px, 1.4cqi, 17.5px); max-width: 46ch; }
.proof-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 24px; align-items: start; margin-block-start: clamp(26px, 3.4cqi, 44px); }
.band .tab { color: var(--site-band-muted); }
.band .sheet, .band .slip { border-color: transparent; box-shadow: var(--site-paper-shadow-band); }
.strip .sheet-body { font-size: clamp(17px, 1.9cqi, 23px); line-height: 1.66; }
/* the draft's own count of the references still to check, under the paper's text */
.sheet-foot { display: flex; align-items: center; gap: 8px; margin: 0; padding: 11px var(--site-sheet-pad) 12px; border-block-start: 1px solid var(--cl-line);
  font-family: var(--cl-font-sans); font-size: 13.5px; line-height: 1.4; color: var(--cl-ink-muted); }

/* a reference that can be pressed: a radio's label, so the keyboard and a page without script both reach it */
.ref.press { position: relative; margin-inline: 0.36em; cursor: pointer; transition: background-color var(--cl-motion-base) var(--cl-motion-ease), box-shadow var(--cl-motion-base) var(--cl-motion-ease); }
.ref.press::after { content: ""; position: absolute; inset-inline: -7px; inset-block: -13px; }
.ref.press:hover { background: var(--cl-cited); }
input:checked + .ref.press { background: var(--cl-cited); box-shadow: 0 0 0 2px var(--site-paper), 0 0 0 3.5px var(--cl-copper); }
input:focus-visible + .ref.press, [data-keyed] input:focus + .ref.press { outline: 2px solid var(--cl-copper); outline-offset: 5px; }

.sources { min-width: 0; }
@media (min-width: 901px) { .sources { margin-block-start: 26px; } }
/* one source stands open at a time where the browser can tell which reference is pressed; where it cannot,
   both stand open, one under the other */
@supports selector(:has(a)) {
  .sources .src { display: none; }
  .proof-stage:has(#src-a:checked) .src-a, .proof-stage:has(#src-b:checked) .src-b { display: block; }
}
.sources .src + .src { margin-block-start: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .pressed .src > .slip, .pressed .src > .sheet { animation: site-open 240ms var(--cl-motion-ease) both; }
}
@keyframes site-open { from { opacity: 0; transform: translateY(6px); } }

/* the recording: where the reference lands on its length */
.rec-line { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 14px 18px 6px; }
.rec-line .time { font-size: 12.5px; color: var(--cl-ink-muted); }
.rec-line .time b { font-weight: 500; color: var(--cl-ink); }
.track { position: relative; height: 3px; border-radius: 2px; background: var(--cl-line-strong); }
.track i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 51.2%; border-radius: 2px; background: var(--cl-ink-muted); }
.track i::after { content: ""; position: absolute; inset-inline-end: -2px; inset-block-start: -5px; width: 4px; height: 13px; border-radius: 2px; background: var(--cl-copper); }
.transcript { padding: 4px 10px 12px; }
.spk { margin: 0; padding: 8px 8px 2px; font-size: 12.5px; font-weight: 600; color: var(--cl-ink-muted); }
.tr { position: relative; display: grid; grid-template-columns: 3.3em minmax(0, 1fr); gap: 4px; padding: 7px 8px; }
.tr .t { justify-self: start; padding-block-start: 0.28em; font-size: 12.5px; color: var(--cl-ink-muted); }
.tr.dim p { color: var(--cl-ink-muted); }
.tr.cited { background: var(--cl-cited); border-inline-start: 3px solid var(--cl-copper); border-radius: 2px; padding-block: 10px; font-size: clamp(16.5px, 1.5cqi, 18.5px); line-height: 1.6; }
.tr.cited .t { color: var(--cl-copper-deep); font-size: 12.5px; }
/* while the cited seconds play, a copper line runs under them for their length */
.tr.cited::after { content: ""; position: absolute; inset-inline-start: 0; inset-block-end: 0; inline-size: 0; block-size: 2px; background: var(--cl-copper); }
.tr.cited.playing::after { animation: site-run 14.1s linear forwards; }
.tr.cited.paused::after { animation-play-state: paused; }
@keyframes site-run { to { inline-size: 100%; } }
@media (prefers-reduced-motion: reduce) { .tr.cited.playing::after { animation: none; inline-size: 100%; } }
.listen-row { padding: 0 14px 14px; font-family: var(--cl-font-sans); }
.listen { display: inline-flex; align-items: center; gap: 11px; min-height: 46px; padding: 4px; padding-inline-end: 16px; border: 1px solid var(--cl-line-strong); border-radius: 999px;
  background: var(--cl-white); font: inherit; font-size: 15px; font-weight: 500; color: var(--cl-ink); cursor: pointer; transition: border-color var(--cl-motion-base) var(--cl-motion-ease); }
.listen:hover, .listen[aria-pressed="true"] { border-color: var(--cl-copper); }
.listen .disc { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--cl-copper); color: var(--cl-white); }
.listen .disc .ic { width: 20px; height: 20px; }
.listen .ic-play { fill: currentColor; }
.listen .ic-pause, .listen[aria-pressed="true"] .ic-play { display: none; }
.listen[aria-pressed="true"] .ic-pause { display: block; }
.listen .mono { font-size: 13px; font-weight: 400; color: var(--cl-ink-muted); min-width: 4ch; text-align: end; }
/* the note says two things, one under each picture: what the system verifies stands under the draft, what the
   readers mark themselves under the open source */
.proof-note { max-width: 62ch; margin-block-start: clamp(22px, 2.6cqi, 32px); color: var(--site-band-muted); font-size: 15.5px; line-height: 1.55; }
/* a note of two sentences, one under each picture of the band; a note of one sentence stays a plain line, since a
   grid would lay its words and its left-to-right islands out as separate boxes */
.proof-note.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 24px; max-width: none; }
.proof-note.pair > span { max-width: 54ch; }

/* ── the sections after the band: a margin of words, a column of papers ───────── */

.sec { padding-block: clamp(46px, 8.2cqi, 116px) 0; }
.sec-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px clamp(28px, 5.2cqi, 76px); align-items: start; }
.note h2 + p { margin-block-start: 14px; }
.note p { color: var(--cl-ink-muted); font-size: clamp(15.5px, 1.4cqi, 17px); max-width: 34ch; }
@media (min-width: 901px) { .note { position: sticky; inset-block-start: 28px; } }

/* ── the response inside the other side's file ───────────────────────────────── */

.papers { display: grid; gap: 12px; min-width: 0; }
.word .sheet-body { font-size: clamp(16.5px, 1.62cqi, 19px); line-height: 1.8; padding-inline-end: calc(var(--site-sheet-pad) + 14px); }
.w-head { margin: 0 0 14px; padding-block-end: 3px; border-block-end: 1px solid var(--site-word-rule); text-align: center; font-weight: 700; font-size: 0.76em; line-height: 1.7; }
.w-title { margin: 0 0 12px; text-align: center; font-weight: 700; }
.word .para { grid-template-columns: 2.6em minmax(0, 1fr); }
.word .para .num { color: var(--cl-ink); }
/* Word's revision marks as Word draws them, each in its author's colour: an insertion underlined, a deletion
   struck. Words one side added and the other struck show the strike alone, in the colour of whoever struck them */
.word ins, .word del { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.word ins { text-decoration-line: underline; }
.word del { text-decoration-line: line-through; }
.word .theirs { color: var(--site-word-theirs); }
.word .ours { color: var(--site-word-ours); }
/* the change bar at the page's outside edge, where Word draws it */
.word .changed { position: relative; }
.word .changed::before { content: ""; position: absolute; inset-inline-start: calc(100% + 12px); inset-block: 7px; width: 1.5px; background: var(--cl-ink); }
.word .faded { color: var(--cl-ink-muted); }
.word .wcut { max-height: 2.6em; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 15%, transparent 94%); mask-image: linear-gradient(to bottom, #000 15%, transparent 94%); }
/* whose mark is whose, under the page: the two sides in the app's words, each in its Word colour */
/* whose marks are whose, at the paper's head, so the two colours are read before the clause they mark */
.sheet-key { display: flex; align-items: center; gap: 22px; margin: 0; padding: 9px var(--site-sheet-pad) 9px; border-block-end: 1px solid var(--cl-line);
  font-family: var(--cl-font-sans); font-size: 13.5px; line-height: 1.4; color: var(--cl-ink-muted); }
.sheet-key span { display: inline-flex; align-items: center; gap: 8px; }
.sheet-key span::before { content: ""; inline-size: 18px; block-size: 0; border-block-end: 2px solid currentColor; }
.sheet-key .theirs::before { color: var(--site-word-theirs); }
.sheet-key .ours::before { color: var(--site-word-ours); }
.reply .word .sheet-body { font-size: clamp(18px, 1.9cqi, 22.5px); line-height: 1.75; }

.slips { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 12px; align-items: stretch; }
.decide { display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; align-content: start; padding: 15px 16px 16px; }
.item-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; font-size: 14.5px; }
.item-head .kind { font-weight: 600; }
.item-head .place { color: var(--cl-ink-muted); }
/* the other side's change inside the item: their added words underlined, in the app's colour for their side */
.their-run { margin: 0; padding: 10px 12px; background: var(--cl-white); border: 1px solid var(--cl-line); border-radius: var(--cl-radius-md); font-family: var(--cl-font-display); font-size: 16.5px; line-height: 1.6; }
.their-run ins { color: var(--site-side-theirs); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.their-run del { color: var(--site-side-theirs); text-decoration-thickness: 1px; }
.answers { margin: 0; }
.answers .lbl { display: block; margin-block-end: 6px; font-size: 13px; color: var(--cl-ink-muted); }
.answers .segs { display: grid; grid-template-columns: repeat(4, auto); border: 1px solid var(--cl-edge); border-radius: var(--cl-radius-md); background: var(--cl-white); overflow: hidden; }
.answers .seg { padding: 9px 4px; text-align: center; font-size: 13.5px; line-height: 1.35; white-space: nowrap; border-inline-start: 1px solid var(--cl-line-strong); }
.answers .seg:first-child { border-inline-start: 0; }
.answers .seg.on { background: var(--cl-wash); font-weight: 600; }
/* the four stand as two rows of two where one row is too narrow for them, as the app sets them: English words are longer */
:lang(en) .answers .segs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
:lang(en) .answers .seg:nth-child(3) { border-inline-start: 0; }
:lang(en) .answers .seg:nth-child(n+3) { border-block-start: 1px solid var(--cl-line-strong); }
.cover { display: grid; align-content: center; gap: 8px; padding: 15px 16px 16px; }
.cover p { margin: 0; }
.cover-total { font-weight: 600; }
.cover-left { color: var(--cl-ink-muted); font-size: 14px; }
.after { margin: 8px 0 0; padding-inline: 2px; max-width: 52ch; font-size: clamp(15.5px, 1.4cqi, 17px); color: var(--cl-ink-muted); }

/* ── from the draft to the filing file ───────────────────────────────────────── */

.leaves { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 20px; }
.leaves.single { grid-template-columns: minmax(0, 30em); }
.leaves li { display: flex; flex-direction: column; }
.leaves .mini { flex: 1; }
.leaves h3 { margin: 16px 0 3px; font-weight: 600; }
.leaves li > p { color: var(--cl-ink-muted); font-size: 15px; line-height: 1.55; max-width: 36ch; }
.mini { padding: 16px 20px 16px; font-size: 14.5px; line-height: 1.7; }
.mini p { margin: 0 0 6px; }
.mini .w-court { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.mini .w-title { margin-block: 6px 6px; font-size: 14.5px; }
.mini .w-row { display: flex; justify-content: space-between; gap: 12px; }
.mini .w-end { margin-block-start: 4px; }
.mini mark { background: var(--cl-cited); color: inherit; border-radius: 3px; padding: 1px 3px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--cl-copper) 45%, transparent); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.mini .para { grid-template-columns: 1.7em minmax(0, 1fr); }
.file { font-family: var(--cl-font-sans); font-size: 13.5px; line-height: 1.5; padding-inline: 18px; }
.file .b-h { display: block; margin-block-end: 8px; font-size: 12.5px; color: var(--cl-ink-muted); }
.b-row { display: flex; align-items: baseline; gap: 8px; padding-block: 5px; }
/* a long title takes a second line: cut short, its date would lose its first digits */
.b-row .b-name { min-width: 0; }
.b-row .b-name b { font-family: var(--cl-font-display); font-weight: 700; margin-inline-end: 4px; }
.b-row i { flex: 1; min-width: 0; border-block-end: 1px dotted var(--cl-line-strong); transform: translateY(-3px); }
/* each annex the Word file's written references name */
.b-row.named { margin-inline: -8px; padding-inline: 8px; background: var(--cl-cited); border-radius: 3px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--cl-copper) 45%, transparent); }
.b-row .b-pg { flex: none; white-space: nowrap; font-family: var(--cl-font-mono); font-size: 12.5px; color: var(--cl-copper-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* A sample file to take away stands under its paper as one link, and one line under the pair says what the two files are. */
.leaves .get { margin-block-start: 8px; }
.leaves .get a { color: var(--cl-copper-deep); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.leaves .get a:focus-visible { outline: 2px solid var(--cl-copper); outline-offset: 3px; border-radius: 2px; }
.sec-grid > .leaves-note { grid-column: -2 / -1; color: var(--cl-ink-muted); font-size: 13.5px; line-height: 1.55; }

/* ── the case keeps up: one question, two dated answers ──────────────────────── */

.thread { margin: 0; min-width: 0; }
.q { display: table; margin: 0 0 22px; padding: 12px 16px; max-width: 100%; background: var(--cl-wash); border-radius: 12px; font-size: clamp(16px, 1.5cqi, 17.5px); line-height: 1.45; font-weight: 500; }
.moments { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 0; }
.moment { min-width: 0; display: flex; flex-direction: column; }
/* the time between the two answers is the rule that joins their dates */
.when { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font-size: 13.5px; color: var(--cl-ink-muted); }
.when .date { font-family: var(--cl-font-display); font-size: 20px; line-height: 1.2; color: var(--cl-ink); white-space: nowrap; }
.when::after { content: ""; flex: 1; min-width: 12px; border-block-start: 1px solid var(--cl-line-strong); transform: translateY(-4px); }
.moment:last-child .when::after { border-color: transparent; }
.moment .ans { flex: 1; margin-inline-end: 16px; }
.moment:last-child .ans { margin-inline-end: 0; }
.ans { background: var(--cl-stone-bright); border: 1px solid var(--cl-line); border-radius: var(--cl-radius-lg); padding: 15px 16px 13px; font-size: 15.5px; line-height: 1.6; }
.ans > p { margin: 0; }
.ans.none > p:first-child { color: var(--cl-ink-muted); }
.ans sup { margin-inline-start: 1px; font-size: 0.72em; font-weight: 600; color: var(--cl-copper); }
.srcrow { display: flex; align-items: center; gap: 8px; margin-block-start: 12px !important; padding-block-start: 11px; border-block-start: 1px solid var(--cl-line); font-size: 13.5px; }
.srcrow .ic { width: 16px; height: 16px; }
.srcrow .name { font-weight: 600; }
.srcrow .loc { padding: 0 7px; border: 1px solid color-mix(in srgb, var(--cl-copper) 55%, transparent); border-radius: 5px; background: var(--cl-copper-wash); color: var(--cl-copper-deep); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.newer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-block-start: 10px !important; font-size: 13.5px; color: var(--cl-ink-muted); }
.newer .ic { width: 15px; height: 15px; color: var(--cl-copper-deep); }
.newer .again { margin-inline-start: auto; color: var(--cl-copper-deep); font-weight: 500; white-space: nowrap; }

/* ── the film, in the page's own player ──────────────────────────────────────── */

/* The one thing on a page that is not paper stands in a band of its own, a shade lighter than the desk. The band
   ships hidden with its figure, and the script shows both only where the file can be played. Under the picture,
   one row of controls in the form of the app's recording player, running left to right in both languages as a
   timeline does: play or pause, the time, the timeline, the sound, the whole screen. At rest the picture is a
   poster and only the two ways to start are live; a press puts the video in the poster's place. */
.sec.film { margin-block-start: clamp(46px, 8.2cqi, 116px); padding-block: clamp(34px, 5.4cqi, 72px); background: var(--cl-stone-bright); border-block: 1px solid var(--cl-line); }
.reel { margin: 0; min-width: 0; }
.reel[hidden] { display: none; }
.vplayer { border: 1px solid var(--site-band-line); border-radius: var(--cl-radius-lg); overflow: hidden; background: var(--cl-basalt); box-shadow: var(--site-paper-shadow); }
.vframe { position: relative; aspect-ratio: 16 / 9; }
.vposter { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.vposter img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0.86; transition: opacity var(--cl-motion-base) var(--cl-motion-ease); }
.vposter:hover img, .vposter:focus-visible img { opacity: 1; }
.vposter:focus-visible { outline: 2px solid var(--cl-copper); outline-offset: -2px; }
.vplay { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; width: 60px; height: 60px; margin-block-start: -30px; margin-inline-start: -30px; border-radius: 50%; background: var(--cl-copper); color: var(--cl-white); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); }
.vplay .ic { width: 26px; height: 26px; fill: currentColor; }
.vcap { position: absolute; inset-block-end: 10px; inset-inline-start: 12px; display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: rgba(20, 21, 19, 0.82); color: var(--cl-stone); font-size: 12.5px; line-height: 1.5; }
.vframe video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--cl-basalt); cursor: pointer; }
.vbar { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-block-start: 1px solid var(--site-band-line); background: color-mix(in srgb, var(--cl-white) 5%, var(--cl-basalt)); color: var(--cl-stone); }
.vb { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: var(--cl-radius-md); background: transparent; color: inherit; cursor: pointer; transition: background-color var(--cl-motion-base) var(--cl-motion-ease); }
.vb .ic { width: 17px; height: 17px; }
.vb:hover:not(:disabled) { background: color-mix(in srgb, var(--cl-white) 12%, transparent); }
.vb-play, .vb-play:hover:not(:disabled) { background: var(--cl-copper); color: var(--cl-white); }
.vb-play:hover:not(:disabled) { background: var(--cl-copper-deep); }
.vb-play .ic { fill: currentColor; stroke-width: 2.6; }
.vb:focus-visible, .vtrack:focus-visible { outline: 2px solid var(--cl-copper); outline-offset: 2px; }
.vb-play:focus-visible { outline-color: var(--cl-stone-bright); }
.vb:disabled, .vtrack:disabled { opacity: 0.4; cursor: default; }
.vtime { flex: none; font-size: 12px; color: var(--site-band-muted); white-space: nowrap; }
.vtime b { color: var(--cl-stone-bright); font-weight: 500; }
/* the timeline: a hairline whose played part is lit, with the app's copper mark at the place. The script says how
   much is played (--p, on the line that holds the field and the mark); a press or a drag anywhere on it moves the
   video there. The mark is drawn by the page: a field's own mark stands on whole pixels, so it steps along the
   line, and a drawn one moves by parts of a pixel and glides. The field's own stays under it, to be held, undrawn */
.vline { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; --p: 0%; }
.vtrack { -webkit-appearance: none; appearance: none; flex: 1 1 auto; min-width: 0; width: 100%; height: 22px; margin: 0; padding: 0; border-radius: 2px; background: transparent; cursor: pointer; }
.vtrack::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--cl-stone) var(--p), color-mix(in srgb, var(--cl-white) 18%, transparent) var(--p)); }
.vtrack::-moz-range-track { height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--cl-white) 18%, transparent); }
.vtrack::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--cl-stone); }
.vtrack::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 4px; height: 14px; margin-block-start: -5px; border: 0; background: transparent; }
.vtrack::-moz-range-thumb { width: 4px; height: 14px; border: 0; background: transparent; }
.vmark { position: absolute; inset-block-start: 4px; inset-inline-start: 0; width: calc(100% - 4px); height: 14px; pointer-events: none; transform: translateX(var(--p)); }
.vmark::before { content: ""; display: block; width: 4px; height: 14px; border-radius: 2px; background: var(--cl-copper); }
.vtrack:disabled + .vmark { opacity: 0.4; }
/* the whole screen: the player fills it, the picture over the row of controls */
.vplayer:fullscreen { display: flex; flex-direction: column; border: 0; border-radius: 0; }
.vplayer:fullscreen .vframe { flex: 1 1 auto; min-height: 0; aspect-ratio: auto; }
.vplayer:fullscreen .vbar { padding: 10px 16px; }
.vplayer:-webkit-full-screen { display: flex; flex-direction: column; border: 0; border-radius: 0; }
.vplayer:-webkit-full-screen .vframe { flex: 1 1 auto; min-height: 0; aspect-ratio: auto; }
.vplayer:-webkit-full-screen .vbar { padding: 10px 16px; }

/* ── security and privacy, as plain lines ────────────────────────────────────── */

.fine { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(24px, 3.4cqi, 44px); }
.fine li { break-inside: avoid; padding-block: 13px; border-block-start: 1px solid var(--cl-line); font-size: 15.5px; line-height: 1.6; color: var(--cl-ink-muted); }

/* ── the way in ──────────────────────────────────────────────────────────────── */

.way { padding-block-end: clamp(64px, 8.6cqi, 120px); }
.way-in { padding-block-start: clamp(34px, 5cqi, 64px); border-block-start: 1.5px solid var(--cl-ink); }
.close-h { font-size: clamp(31px, 5cqi, 62px); line-height: 1.1; letter-spacing: -0.012em; max-width: 17ch; }
.way-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px clamp(28px, 5cqi, 72px); align-items: end; margin-block-start: clamp(28px, 4cqi, 52px); }
.next-h { margin: 0 0 14px; font-size: 15.5px; font-weight: 500; color: var(--cl-ink-muted); }
.next ol { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 26px; }
.next li { counter-increment: step; padding-block-start: 12px; border-block-start: 1px solid var(--cl-line-strong); font-size: clamp(16px, 1.45cqi, 17.5px); line-height: 1.5; }
.next li::before { content: counter(step); display: block; margin-block-end: 4px; font-family: var(--cl-font-mono); font-size: 13px; color: var(--cl-ink-muted); }
.way-calls { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.way .btn { padding: 17px 28px; font-size: 17px; justify-content: center; }
/* a second way to reach a person, in words and the site's own glyph; it ships switched off */
.wa-call .ic { width: 19px; height: 19px; }

/* ── footer ──────────────────────────────────────────────────────────────────── */

.site-footer { padding-block: 34px 30px; border-block-start: 1px solid var(--cl-line); font-size: 14.5px; color: var(--cl-ink-muted); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 22px clamp(28px, 5cqi, 72px); align-items: start; }
.foot-brand .wordmark { height: 20px; width: calc(20px * 6228 / 930); }
/* the site's own line under the wordmark, then where the product stands */
.foot-tag { margin-block-start: 14px; color: var(--cl-ink); }
.foot-status { margin-block-start: 6px; max-width: 40ch; line-height: 1.55; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 26px; }
.footer-nav > a, .footer-nav > .footer-holder, .footer-nav .lang-switch > * { display: inline-block; padding-block: 11px; }
.footer-nav a:hover { color: var(--cl-ink); }
.footer-holder { color: var(--cl-ink); }
.lang-switch { display: inline-flex; align-items: baseline; gap: 8px; }
.lang-switch .current { color: var(--cl-ink); }
.copyright { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; margin-block-start: 26px; font-size: 12.5px; color: var(--cl-ink-faint); }
.copyright .tm { color: var(--cl-ink-muted); }

/* ── the way in at a phone's foot: one slim bar, never a bubble; the script shows it ─ */

.waybar { display: none; }

/* ── not found ───────────────────────────────────────────────────────────────── */

.notfound { padding-block: clamp(48px, 10cqi, 120px) 96px; display: flex; flex-direction: column; align-items: flex-start; gap: var(--cl-space-4); }
.notfound .code { color: var(--cl-ink-muted); }
.notfound h1 { font-size: clamp(36px, 5cqi, 64px); line-height: 1.1; }
.notfound > p { color: var(--cl-ink-muted); font-size: 18px; max-width: 44ch; }
.notfound .btn { margin-block-start: var(--cl-space-2); }
.notfound .alt { font-size: 14px; color: var(--cl-ink-muted); margin-block-start: var(--cl-space-6); }
.notfound .alt a:hover { color: var(--cl-ink); }
/* the waiting list on the coming-soon page: our own fields, one column, the note and the outcome under them */
.soon h1 { max-width: 18ch; }
.soon-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr); gap: var(--cl-space-8) clamp(32px, 6cqi, 88px); align-items: start; width: 100%; }
.soon-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--cl-space-4); }
.soon-copy > p { color: var(--cl-ink-muted); font-size: 18px; max-width: 44ch; }
.soon-side { padding-block-start: 12px; }
.wait { display: flex; flex-direction: column; gap: var(--cl-space-4); width: min(100%, 440px); margin-block-start: var(--cl-space-4); }
/* the form gives way to the thank-you line once the address is saved: the script sets hidden on it, and the display above
   outranks the browser's own rule for hidden, so the hiding has to be said here too */
.wait[hidden] { display: none; }
.wait-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--cl-ink-muted); }
.wait-field input { font: inherit; font-size: 16px; color: var(--cl-ink); background: var(--cl-white); border: 1px solid var(--cl-edge); border-radius: var(--cl-radius-md); padding: 11px 14px; min-height: 46px; }
/* a name typed in the other language's script reads in its own direction; the empty field keeps the page's */
.wait-field input[name="name"], .wait-field input[name="firm"] { unicode-bidi: plaintext; }
.wait-field input:focus-visible { outline: 2px solid var(--cl-copper); outline-offset: 2px; border-color: var(--cl-copper); }
.wait-field input[aria-invalid="true"] { border-color: var(--cl-rust); }
/* the practice area is one choice among a few: the browser's own list under the fields' face, with the app's chevron
   at its far edge; while nothing is chosen the field reads as unfilled, and the open list keeps the ink */
.wait-pick { position: relative; display: block; }
.wait-pick select { appearance: none; -webkit-appearance: none; inline-size: 100%; margin: 0; font: inherit; font-size: 16px; color: var(--cl-ink); background: var(--cl-white); border: 1px solid var(--cl-edge); border-radius: var(--cl-radius-md); padding: 11px 14px; padding-inline-end: 40px; min-height: 46px; cursor: pointer; }
.wait-pick select:has(option[value=""]:checked) { color: var(--cl-ink-muted); }
.wait-pick option { color: var(--cl-ink); }
.wait-pick select:focus-visible { outline: 2px solid var(--cl-copper); outline-offset: 2px; border-color: var(--cl-copper); }
.wait-pick .ic { position: absolute; inset-block: 0; inset-inline-end: 13px; margin-block: auto; width: 16px; height: 16px; color: var(--cl-ink-muted); pointer-events: none; }
.wait-note { font-size: 13.5px; color: var(--cl-ink-muted); max-width: 44ch; line-height: 1.5; }
/* the link to the privacy policy under the notice; the production bundle removes it while the policy is held back,
   and the paragraph it leaves empty takes no room */
.wait-policy { font-size: 13.5px; color: var(--cl-ink-muted); margin-block-start: -6px; }
.wait-policy:empty { display: none; }
.wait-policy a { text-decoration: underline; text-decoration-color: var(--cl-line-strong); text-underline-offset: 3px; }
.wait-policy a:hover { color: var(--cl-ink); text-decoration-color: var(--cl-ink); }
.wait .btn { align-self: flex-start; }
.wait .btn[disabled] { opacity: 0.6; }
.wait-msg { font-size: 14.5px; color: var(--cl-rust); min-height: 1.5em; }
.wait-msg:empty { position: absolute; inline-size: 1px; block-size: 1px; min-height: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wait-msg a { text-decoration: underline; text-underline-offset: 3px; }
.wait-done { font-size: 18px; color: var(--cl-ink); max-width: 44ch; margin-block-start: var(--cl-space-4); }

/* ── the legal pages: privacy policy, terms of service ───────────────────────── */

/* A document to read, not a page to scan: one column at a reading measure, the display face for the headings the
   rest of the site uses, the text a notch larger and looser than the site's body. The contents list is the page's
   only navigation; the terms number their clauses so a letter can cite one, the privacy policy does not. */
.legal { padding-block: clamp(40px, 7cqi, 88px) 72px; }
.legal-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--cl-space-4); max-width: 68ch; }
.legal-head h1 { font-size: clamp(34px, 4.6cqi, 56px); line-height: 1.12; }
.legal-meta { color: var(--cl-ink-muted); font-size: 14px; }
.legal-draft { color: var(--cl-copper-deep); background: var(--cl-copper-wash); border: 1px solid var(--cl-cited);
  border-radius: var(--cl-radius-sm); padding: 3px 10px; font-size: 13.5px; }
.legal-scope { color: var(--cl-ink-muted); font-size: 18px; line-height: 1.6; }
.legal-toc { margin-block-start: var(--cl-space-8); padding-block: var(--cl-space-5); border-block: 1px solid var(--cl-line); max-width: 68ch; }
.legal-toc h2 { font-family: var(--cl-font-sans); font-size: 14px; font-weight: 500; color: var(--cl-ink-muted); margin-block-end: var(--cl-space-3); }
.legal-toc ol { margin: 0; padding-inline-start: 1.4em; columns: 2 16em; column-gap: var(--cl-space-8); font-size: 15.5px; }
.legal-toc li { padding-block: 3px; break-inside: avoid; }
.legal-toc li::marker { color: var(--cl-ink-faint); }
.legal-toc a { color: var(--cl-ink-muted); }
/* the annex sits under the numbered list, unnumbered, as it is in the body */
.legal-toc-annex { margin-block-start: var(--cl-space-2); font-size: 15.5px; }
.legal-toc a:hover { color: var(--cl-ink); }
.legal-body { max-width: 68ch; }
.legal-body section { padding-block-start: var(--cl-space-10); scroll-margin-block-start: var(--cl-space-6); }
.legal-body h2 { font-size: clamp(24px, 2.6cqi, 30px); line-height: 1.25; margin-block-end: var(--cl-space-4); }
.legal-body h3 { margin-block-start: var(--cl-space-6); }
.legal-body p, .legal-body li { font-size: 17px; line-height: 1.7; }
.legal-body p + p, .legal-body p + ul, .legal-body ul + p, .legal-body p + ol, .legal-body ol + p { margin-block-start: var(--cl-space-3); }
.legal-body ul, .legal-body ol { margin: var(--cl-space-3) 0 0; padding-inline-start: 1.3em; }
.legal-body li + li { margin-block-start: 6px; }
.legal-body li::marker { color: var(--cl-ink-faint); }
.legal-body a { text-decoration: underline; text-decoration-color: var(--cl-line-strong); text-underline-offset: 3px; }
.legal-body a:hover { text-decoration-color: var(--cl-ink); }
.legal-body a:focus-visible, .legal-toc a:focus-visible { border-radius: var(--cl-radius-sm); }
/* Numbered clauses. The number is a left-to-right island at the start of the line, so "4.2" reads the same inside
   Hebrew as inside English and never turns into "2.4". The island is made inside the generated text itself (the
   isolate marks U+2066 and U+2069), not by setting direction on the pseudo-element: a direction there would also
   flip its own logical offsets and margins, and in Hebrew the number would land on the wrong side of the text. */
.legal-terms .legal-body { counter-reset: clause; }
.legal-terms .legal-body h2 { counter-increment: clause; }
.legal-terms .legal-body h2.annex { counter-increment: none; }
.legal-terms .legal-body h2.annex::before { content: none; }
.legal-terms .legal-body h2::before { content: "\2066" counter(clause) ".\2069"; margin-inline-end: 0.45em; color: var(--cl-ink-faint); }
.legal-terms .clauses { list-style: none; padding: 0; counter-reset: sub; }
.legal-terms .clauses > li { counter-increment: sub; position: relative; padding-inline-start: 2.9em; }
.legal-terms .clauses > li::before { content: "\2066" counter(clause) "." counter(sub) "\2069"; position: absolute; inset-inline-start: 0;
  color: var(--cl-ink-faint); font-variant-numeric: tabular-nums; }
.legal-terms .clauses ul { margin-block-start: 6px; }
.legal-list { list-style: none; padding: 0; }
.legal-list > li { padding-block: var(--cl-space-3); border-block-start: 1px solid var(--cl-line); }
.legal-list > li:last-child { border-block-end: 1px solid var(--cl-line); }
.legal-list b { font-weight: 500; }
.legal-foot { margin-block-start: var(--cl-space-12); display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; color: var(--cl-ink-muted); }
.legal-foot a:hover { color: var(--cl-ink); }
@container (max-width: 600px) {
  .legal-body p, .legal-body li { font-size: 16.5px; }
  .legal-terms .clauses > li { padding-inline-start: 2.6em; }
}
/* printed, a legal page is the document alone; every other page prints as it did */
@media print {
  body:has(> main.legal) > .site-header, .legal-toc, .legal-foot { display: none; }
  html:has(main.legal), body:has(> main.legal) { background: var(--cl-white); }
  .legal { padding-block: 0; }
  .legal-body a { text-decoration: none; }
}

/* ── narrower than a desk ────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero-under { grid-template-columns: minmax(0, 1fr) minmax(0, 26em); }
  .site-nav .hide-sm { display: none; }
  .sec-grid, .proof-head, .proof-note.pair { grid-template-columns: minmax(0, 1fr); }
  .proof-stage { grid-template-columns: minmax(0, 1fr); }
  .note p { max-width: 46ch; }
  .way-grid, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { justify-content: flex-start; }
  .fine { columns: 1; }
  .fine li:first-child { padding-block-start: 4px; border-block-start: 0; }
  .soon-grid { grid-template-columns: 1fr; }
  .soon-side { display: none; }
}

@media (max-width: 720px) {
  :root { --site-bleed: 8px; --site-thread-out: 6px; }

  .site-header { gap: 14px; padding-block: 8px 6px; }
  .site-pages, .site-nav .btn { display: none; }
  .site-menu-all { display: block; }
  /* a menu that would hold one page alone is not drawn: the bar keeps that page's link */
  .site-header:has(.site-menu-all > ul > li:only-child) .site-pages { display: flex; }
  .site-header:has(.site-menu-all > ul > li:only-child) .site-pages > a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; }
  .site-header:has(.site-menu-all > ul > li:only-child) .site-menu-all { display: none; }
  .site-nav .lang { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; }
  .site-header .wordmark { height: 21px; width: calc(21px * 6228 / 930); }
  .site-header .lockup { min-height: 44px; }

  .hero h1 { line-height: 1.09; }
  .hero h1 .brk { display: block; }
  .hero-row { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-block-start: 12px; }
  .call { gap: 14px; }
  .call .btn { padding: 15px 20px; }
  .price { font-size: 13px; max-width: 21ch; }
  .hero-stage { margin-block-start: 14px; }
  .doc-switch { margin-inline: calc(var(--site-bleed) * -1); font-size: 14px; }
  .doc-switch label { padding-inline: 12px; }
  .sheet-cap { padding-block: 7px 6px; font-size: 12.5px; }
  .hero-sheet .sheet-body { padding-block-start: 12px; line-height: 1.48; }
  .hero-sheet .prev { display: none; }
  .hero-sheet .para { display: block; }
  .hero-sheet .para .num { margin-inline-end: 0.3em; }
  .hero-sheet .tail .para-h { display: none; }
  .hero-sheet .tail .bars { padding-inline-start: 0; }
  .hero-sheet .tail { max-height: 3.4em; }
  /* the open page stands under the draft, moved toward the far edge so the draft's own corner shows above it */
  .hero-under { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .hero-src, .hero-slip { grid-column: 1; grid-row: auto; }
  .hero-src { margin-block-start: -40px; margin-inline-start: 20px; }
  .hero-slip { margin-inline: calc(var(--site-bleed) * -1); margin-block-start: 10px; }
  .doors { grid-row: auto; margin-block-start: 22px; }
  .door { min-height: 48px; padding-block: 12px; }
  .door .area { font-size: 19px; }
  .door .doc-kind { font-size: 13.5px; }
  .hero-src .src-head { padding: 10px 14px 9px; padding-inline-end: calc(var(--site-thread-out) + var(--site-sheet-pad) / 2 + 12px); font-size: 14.5px; }
  .hero-src .page-body { padding-block: 10px 2px; padding-inline-start: 8px; }
  .hero-src .pg-c { grid-template-columns: 2.1em minmax(0, 1fr); padding-inline-start: 6px; }
  .hero-under .legend { grid-row: auto; margin-block-start: 10px; }

  h2 { font-size: 26px; }
  .sec { padding-block-start: 38px; }
  .note h2 + p { margin-block-start: 10px; }
  .sec-grid { row-gap: 16px; }

  .specimen, .papers, .thread, .reel, .sources { margin-inline: calc(var(--site-bleed) * -1); }
  .papers .specimen { margin-inline: 0; }
  .tab { padding-inline: 10px; margin-block-end: 6px; }
  .band { margin-block-start: 30px; padding-block: 36px 30px; }
  .tr.dim { display: none; } /* the line before the cited one stays at wider screens */
  .proof-stage { gap: 14px; margin-block-start: 20px; }
  .strip .para { display: block; }
  .strip .para .num { margin-inline-end: 0.3em; }
  .strip .para + .para { margin-block-start: 0.6em; }
  .strip .sheet-body { padding-block: 16px 14px; }
  .sheet-foot { padding-block: 9px 10px; }
  .src-head { padding: 11px 16px 10px; }
  .src-head .at { font-size: 12.5px; }
  .rec-line { padding: 12px 16px 2px; }
  .transcript { padding-block-end: 10px; }
  .listen-row { padding-block-end: 12px; }
  .state { padding: 8px 16px 10px; }
  .proof-note { margin-block-start: 14px; font-size: 15px; }

  .slips { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .papers { gap: 10px; }
  .word .sheet-body { padding-block: 16px 18px; }
  .word .para { grid-template-columns: 2.3em minmax(0, 1fr); }
  .doc-b .hero-sheet .para { display: grid; }
  .decide, .cover { padding: 12px 14px 13px; }
  .decide { gap: 9px; }
  .their-run { font-size: 16px; }
  .after { margin-block-start: 6px; padding-inline: 10px; }

  /* the two papers that leave stand one under the other */
  .leaves, .leaves.single { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-inline: calc(var(--site-bleed) * -1); }
  .leaves h3, .leaves li > p { padding-inline: 10px; }
  .leaves h3 { margin-block: 10px 1px; font-size: 16px; }
  .leaves li > p { font-size: 14.5px; }
  .mini { padding: 14px 16px; }
  /* a small paper keeps the bars that stand for the lines it skips; only a head's centred lines leave */
  .mini .bars.centre { display: none; }
  .mini .w-court { margin-block-end: 10px; padding-block-end: 8px; border-block-end: 1px solid var(--cl-line); }
  .b-row { padding-block: 4px; }
  .b-row i { min-width: 6px; }

  .q { margin-inline: 8px; margin-block-end: 14px; padding: 10px 14px; }
  .moments { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .when { padding-inline: 10px; margin-block-end: 7px; }
  .when::after, .moment:last-child .when::after { border-color: transparent; }
  .moment .ans { margin-inline-end: 0; }
  .ans { padding: 13px 14px 11px; font-size: 15px; }
  .srcrow { margin-block-start: 10px !important; padding-block-start: 9px; }

  .sec.film { margin-block-start: 36px; padding-block: 26px 28px; }
  .vplayer { border-radius: var(--cl-radius-md); }

  .vplay { inset-block-start: auto; inset-inline-start: auto; inset-block-end: 10px; /* rtl-check: allow */ left: 10px; width: 44px; height: 44px; margin: 0; }
  .vplay .ic { width: 20px; height: 20px; }
  .vcap { display: none; }

  .fine li { font-size: 15px; line-height: 1.5; padding-block: 9px; }
  .footer-nav { gap: 0 24px; }
  .footer-nav .lang-switch { display: none; } /* the header carries the other language at this width */
  .foot-grid { gap: 10px; }
  .way-in { padding-block-start: 26px; }
  .next ol { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .next li { display: grid; grid-template-columns: 1.7em minmax(0, 1fr); padding-block: 11px; }
  .next li::before { margin: 0; padding-block-start: 0.28em; }
  .next li:last-child { border-block-end: 1px solid var(--cl-line-strong); }
  .way-grid { gap: 20px; margin-block-start: 22px; }
  .way { padding-block-end: 40px; }
  .site-footer { padding-block: 22px 18px; }
  .foot-status { margin-block-start: 10px; }
  .copyright { margin-block-start: 10px; flex-direction: column; }

  /* the bar: one row, the height of a finger's target and a hair of air; it rises once the first call has left
     the screen and steps aside wherever the page itself offers a call or holds something to press */
  .waybar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 30;
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px)); padding-inline-start: 20px;
    background: color-mix(in srgb, var(--cl-stone-bright) 96%, transparent); border-block-start: 1px solid var(--cl-line-strong);
    transform: translateY(105%); visibility: hidden; transition: transform 240ms var(--cl-motion-ease), visibility 0s linear 240ms; }
  .waybar.on { transform: none; visibility: visible; transition: transform 240ms var(--cl-motion-ease), visibility 0s; }
  .waybar-note { min-width: 0; font-size: 14px; line-height: 1.3; color: var(--cl-ink-muted); }
  /* the button is drawn 38 high and pressed over 44 */
  .waybar .btn { position: relative; flex: none; min-height: 38px; padding: 0 18px; font-size: 15px; }
  .waybar .btn::after { content: ""; position: absolute; inset-inline: 0; inset-block: -4px; }
}

@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .waybar, .waybar.on { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .door, .door .doc-kind, .ref.press, .listen, .doc-switch label { transition: none; }
}

/* ── the product page: an index of small papers, then a paper and its parts a theme ──── */

/* the head: a shorter headline than the home page's, over the same row of lede and call */
.page-head h1 { font-size: clamp(33px, 5.4cqi, 66px); line-height: 1.1; text-wrap: balance; }
:lang(en) .page-head h1 { font-size: clamp(31px, 5cqi, 60px); }

/* the index: the kinds of document the product writes, a row of small papers, each a way to its section */
.kinds { margin-block-start: clamp(22px, 3.2cqi, 42px); }
.kinds ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px clamp(10px, 1.5cqi, 20px); }
.kinds li { flex: 1 1 0; min-width: 0; }
.kinds.three ul { justify-content: flex-start; }
.kinds.three li { flex: 0 1 calc((100% - 4 * clamp(10px, 1.5cqi, 20px)) / 5); }
.kind { display: block; border-radius: 2px; }
.kind:focus-visible { outline-offset: 5px; }
/* a small paper: the top of the sample its section draws, set in type that scales with the paper's own width */
.thumb { display: block; aspect-ratio: 5 / 6; overflow: hidden; container-type: inline-size; transition: transform var(--cl-motion-base) var(--cl-motion-ease), box-shadow var(--cl-motion-base) var(--cl-motion-ease); }
.thumb .t { display: block; block-size: 100%; padding: 9cqi 9cqi 0; font-size: max(6px, 5.5cqi); line-height: 1.6; text-align: start;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 97%); mask-image: linear-gradient(to bottom, #000 62%, transparent 97%); }
.thumb .t > * { display: block; }
.thumb .row { display: flex !important; justify-content: space-between; gap: 1em; }
.thumb .row bdi, .thumb .dots bdi { flex: none; white-space: nowrap; }
.thumb .dots > span { min-width: 0; overflow: hidden; white-space: nowrap; }
.thumb .c { text-align: center; }
.thumb .sm { font-size: 0.86em; color: var(--cl-ink-muted); }
.thumb .gapb { margin-block-start: 0.7em; }
.thumb .rule { margin-block: 0.6em 0.9em; border-block-end: 1px solid var(--cl-ink); }
.thumb .hd { padding-block-end: 0.3em; margin-block-end: 0.8em; border-block-end: 1px solid var(--site-word-rule); text-align: center; font-weight: 700; font-size: 0.82em; }
.thumb .bars { display: grid !important; gap: 0.5em; padding-block: 0.6em; }
.thumb .bars i { height: 0.3em; border-radius: 0.15em; }
.thumb .mk { inline-size: fit-content; margin-inline-start: auto; margin-block-end: 0.9em; padding: 0 0.5em; border: 1px solid var(--cl-ink); font-weight: 700; }
.thumb .dots { display: flex !important; align-items: baseline; gap: 0.5em; font-family: var(--cl-font-sans); }
.thumb .dots i { flex: 1; border-block-end: 1px dotted var(--cl-line-strong); }
.thumb .dots bdi { font-family: var(--cl-font-mono); color: var(--cl-copper-deep); }
.thumb.sans .t { font-family: var(--cl-font-sans); }
.thumb .ref { font-size: 0.72em; margin-inline: 0.2em 0; vertical-align: 0.1em; }
.kind .name { display: block; margin-block-start: 10px; font-family: var(--cl-font-display); font-size: clamp(16.5px, 1.65cqi, 20px); line-height: 1.3;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--cl-line-strong); }
.kind:hover .thumb { transform: translateY(-3px); box-shadow: 0 1px 1px rgba(30, 31, 29, 0.06), 0 24px 40px -22px rgba(58, 42, 22, 0.5); }
.kind:hover .name { text-decoration-color: currentColor; }

/* a section a small paper leads to stops a little under the window's top */
.sec[id], .band[id], .leaf[id] { scroll-margin-block-start: 18px; }

/* a paper at reading size in a column of papers: larger than a small paper, quieter than the first screen's */
.read .sheet-body { font-size: clamp(16.5px, 1.6cqi, 20px); line-height: 1.7; }
/* the paragraph after the one that is read: cut to its first lines, because the document goes on */
.goes-on { max-height: 2.6em; overflow: hidden; margin-block-start: 0.45em; color: color-mix(in srgb, var(--cl-ink) 34%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 15%, transparent 94%); mask-image: linear-gradient(to bottom, #000 15%, transparent 94%); }
.goes-on .num { color: inherit; }

/* a court document's head: the court and the file number on one line, then the parties; a value taken from the
   case's details stands on a dotted rule */
.court-cap { margin-block-end: 0.9em; }
.court-cap p { margin: 0 0 0.2em; }
.cc-row { display: flex; justify-content: space-between; gap: 14px; }
.cc-side { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); }
.cc-vs { text-align: center; }
.fld { border-block-end: 1px dotted var(--cl-edge); }
.fld bdi { white-space: nowrap; }

/* two things side by side under a paper: a small paper with its line, and a part of the app */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; align-items: start; }
.leaf { margin: 0; min-width: 0; }
.leaf h3 { margin: 14px 0 0; font-weight: 600; }
.leaf h3 + p { margin-block-start: 3px; }
.leaf > p, .cap-line { margin-block-start: 10px; color: var(--cl-ink-muted); font-size: 15px; line-height: 1.55; max-width: 40ch; }

/* a letter on the firm's paper: the letterhead over a rule, the closing, and each signer's signature and stamp */
.letter .lh { display: grid; justify-items: center; margin: 0 0 12px; padding-block-end: 8px; border-block-end: 1px solid var(--cl-ink); text-align: center; }
.letter .lh b { font-size: 16px; }
.letter .lh span { font-family: var(--cl-font-sans); font-size: 12px; color: var(--cl-ink-muted); }
.signers { display: flex; gap: 22px; margin-block-start: 4px; }
.signer { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: end; gap: 2px 8px; margin: 0; }
.signer .sig { width: 52px; height: 22px; fill: none; stroke: var(--cl-ink-muted); stroke-width: 1.3; stroke-linecap: round; }
.signer .stamp { padding: 2px 6px; border: 1.2px solid var(--cl-ink-muted); border-radius: 4px; font-family: var(--cl-font-sans); font-size: 9.5px; line-height: 1.3; color: var(--cl-ink-muted); text-align: center; transform: rotate(-4deg); }
.signer .who { grid-column: 1 / -1; padding-block-start: 3px; border-block-start: 1px solid var(--cl-line-strong); font-size: 13.5px; }

/* a part of the app with a head line of its own, in the text face */
.slip-pad { padding: 15px 16px 16px; }
.slip-h { margin: 0; font-weight: 600; font-size: 15.5px; line-height: 1.4; }
.slip-sub { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--cl-ink-muted); }
.slip-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.slip-head > .ic { width: 22px; height: 22px; margin-block-start: 1px; color: var(--cl-copper-deep); }

/* the checks before an export: the count of gaps, and each gap as the draft marks it */
.checks .count { margin: 8px 0 8px; font-size: 14px; color: var(--cl-ink-muted); }
.checks .find { margin: 0; }
.checks .find + .find { margin-block-start: 6px; }
.checks .gap { margin-inline: 0; font-size: 12.5px; border-radius: 14px; }
.checks .gap > span:last-child { min-width: 0; white-space: normal; }
/* a value the case record lacks keeps its name whole on a line of its own under its kind, in one box, as the app's
   own card draws it */
.checks .gap.rec { flex-wrap: wrap; border-radius: 10px; }
.checks .gap.rec > span:first-child { border-inline-end: 0; }
.checks .gap.rec > span:last-child { flex: 1 0 100%; padding-block-end: 0.3em; }

/* the files a filing file is made of: an annex's first page with its mark at the top, over the contents; and the
   result of the check of the body's annex references */
.annex-top { position: relative; display: block; margin: 0 0 12px; padding: 30px 14px 0; height: 62px; border: 1px solid var(--cl-line); border-block-end: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%); mask-image: linear-gradient(to bottom, #000 45%, transparent 100%); }
.annex-top .amark { position: absolute; inset-block-start: 7px; inset-inline-end: 12px; padding: 0 7px; border: 1px solid var(--cl-ink); font-family: var(--cl-font-display); font-weight: 700; font-size: 13px; line-height: 1.5; }
.b-ok { display: flex; gap: 7px; margin: 10px 0 0 !important; padding-block-start: 9px; border-block-start: 1px solid var(--cl-line); font-size: 12.5px; line-height: 1.5; color: var(--cl-ink-muted); }
.b-ok .ic { flex: none; width: 15px; height: 15px; margin-block-start: 2px; color: var(--cl-ink); }

/* the reply in the band: the paper beside the parts of the app that decide it */
.reply-stage { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 14px 22px; align-items: start; margin-block-start: clamp(24px, 3.2cqi, 40px); }
.reply-stage .side { display: grid; gap: 12px; min-width: 0; }
@media (min-width: 901px) { .reply-stage .side { margin-block-start: 26px; } }
/* what an answer does to the returned file, under the item's answers */
.result { display: flex; gap: 7px; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--cl-ink-muted); }
.result .ic { flex: none; width: 15px; height: 15px; margin-block-start: 3px; color: var(--cl-ink); }
/* the export's choice between the two files, as the export window sets it */
.export .lbl { display: block; margin: 8px 0 6px; font-size: 13px; color: var(--cl-ink-muted); }
.xopt { display: flex; align-items: center; gap: 9px; margin: 0; padding-block: 5px; font-size: 14.5px; }
.xopt i { flex: none; display: grid; place-items: center; width: 17px; height: 17px; border: 1.5px solid var(--cl-edge); border-radius: 50%; background: var(--cl-white); }
.xopt.on { font-weight: 600; }
.xopt.on i { border-color: var(--cl-ink); }
.xopt.on i::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cl-ink); }
.band .cover-left { color: var(--cl-ink-muted); }

/* an email draft: the subject over a rule, and the two things copied from it at the paper's foot */
.mail .subject { margin: 0 0 0.7em; padding-block-end: 0.5em; border-block-end: 1px solid var(--cl-line); font-family: var(--cl-font-sans); font-weight: 600; font-size: 0.82em; line-height: 1.5; }
.mail .para.plain + .para.plain { margin-block-start: 0.6em; }
.sheet-foot.acts { gap: 20px; color: var(--cl-copper-deep); font-weight: 500; }

/* the proposal of a case's details, waiting for the reader: a group's name, then each detail with the place it
   was taken from */
.grp { display: flex; align-items: center; gap: 7px; margin: 14px 0 2px; font-size: 13px; font-weight: 600; color: var(--cl-ink-muted); }
.grp .ic { width: 15px; height: 15px; }
.rows { margin: 0; }
.rows > div { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 2px 10px; padding-block: 7px; border-block-start: 1px solid var(--cl-line); }
.rows dt { font-size: 13.5px; color: var(--cl-ink-muted); }
.rows dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 12px; }
.rows .val { font-weight: 500; }
.rows .from, .ev .from, .grp-src .from, .person .from { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--cl-ink-muted); white-space: nowrap; }
.rows .from .ic, .ev .from .ic, .grp-src .from .ic, .person .from .ic { width: 14px; height: 14px; }
.rows .from .loc, .ev .from .loc, .grp-src .from .loc, .person .from .loc { padding: 0 6px; border: 1px solid color-mix(in srgb, var(--cl-copper) 55%, transparent); border-radius: 5px; background: var(--cl-copper-wash); color: var(--cl-copper-deep); font-size: 12px; font-weight: 500; }
.grp-src { margin: 0 0 5px; font-size: 12.5px; line-height: 1.7; color: var(--cl-ink-muted); }
.grp-src .from { vertical-align: baseline; margin-inline-start: 3px; }
.people { margin-block-start: 5px; padding-inline: 12px; border: 1px solid var(--cl-line); border-radius: var(--cl-radius-md); background: var(--cl-white); }
.person { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; margin: 0; padding-block: 8px; font-size: 14px; line-height: 1.5; }
.person + .person { border-block-start: 1px solid var(--cl-line); }
.person .val { font-weight: 500; }
.facts { display: inline-flex; flex-wrap: wrap; color: var(--cl-ink-muted); }
.facts span + span::before { content: "\00b7"; display: inline-block; inline-size: 16px; text-align: center; }
.person .more { margin-inline-start: auto; font-size: 12px; font-weight: 500; color: var(--cl-copper-deep); white-space: nowrap; }
.acts-count { align-self: center; margin-inline-end: auto; font-size: 12px; color: var(--cl-ink-muted); }
.newc { flex-basis: 100%; display: flex; align-items: center; gap: 7px; font-size: 13.5px; }
.newc i { flex: none; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 3px; background: var(--cl-ink); color: var(--cl-white); }
.newc i .ic { width: 12px; height: 12px; stroke-width: 2.4; }
.missing { font-size: 13.5px; color: var(--cl-ink-muted); }
.acts-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 12px 0 0; padding-block-start: 12px; border-block-start: 1px solid var(--cl-line); }
.act { padding: 7px 12px; border: 1px solid var(--cl-line-strong); border-radius: var(--cl-radius-md); background: var(--cl-white); font-size: 13.5px; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.act.ghost { border-color: transparent; background: transparent; color: var(--cl-ink-muted); }
.act.primary { border-color: var(--cl-ink); background: var(--cl-ink); color: var(--cl-white); }

/* the case's overview: the summary with its numbered sources, the next date, and the key events with their places */
.record { margin-block-start: 12px; }
.record .sum { margin: 0; font-size: 15.5px; line-height: 1.65; }
.record sup { margin-inline-start: 1px; font-size: 0.72em; font-weight: 600; color: var(--cl-copper); }
.record .next { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 12px 0 0; padding-block: 10px; border-block: 1px solid var(--cl-line); font-size: 14.5px; }
.record .next .lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--cl-ink-muted); }
.record .next .lbl .ic { width: 15px; height: 15px; align-self: center; }
.record .next .day { color: var(--cl-ink-muted); }
.ev { display: grid; grid-template-columns: 8.6em minmax(0, 1fr); gap: 2px 10px; padding-block: 7px; border-block-start: 1px solid var(--cl-line); font-size: 14.5px; }
.grp + .ev { border-block-start: 0; }
.ev .d { font-size: 13.5px; color: var(--cl-ink-muted); }
.ev .from { grid-column: 2; }

/* the firm's library in a case: an item it offers, and a copy already added; then the writing-style switches */
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.lib-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 9px; padding-block: 10px; border-block-start: 1px solid var(--cl-line); font-size: 14.5px; }
.slip-h + .lib-row { margin-block-start: 10px; }
.lib-row.first { padding-block-start: 0; border-block-start: 0; }
.lib-row .name { font-weight: 500; }
.lib-row .facts { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; color: var(--cl-ink-muted); }
.sw-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; margin: 12px 0 0; }
.sw-row b { display: block; font-weight: 600; font-size: 14.5px; }
.sw-row .hint { display: block; font-size: 13.5px; color: var(--cl-ink-muted); text-wrap: balance; }
.sw { position: relative; inline-size: 32px; block-size: 18px; margin-block-start: 2px; border-radius: 999px; background: var(--cl-ink); }
.sw::after { content: ""; position: absolute; inset-block-start: 3px; inset-inline-end: 3px; inline-size: 12px; block-size: 12px; border-radius: 50%; background: var(--cl-white); }
.style-note { margin: 12px 0 0; padding-block-start: 10px; border-block-start: 1px solid var(--cl-line); font-size: 13.5px; line-height: 1.55; color: var(--cl-ink-muted); }

@media (max-width: 900px) {
  .reply-stage { grid-template-columns: minmax(0, 1fr); }
  .kinds.three li { flex-basis: calc((100% - 2 * clamp(10px, 1.5cqi, 20px)) / 3); }
}

@media (max-width: 720px) {
  .page-head h1 { line-height: 1.12; }
  /* the small papers stand three and two, every kind named on the first screen */
  .kinds { margin-block-start: 16px; }
  .kinds ul { gap: 12px 10px; }
  .kinds li, .kinds.three li { flex: 0 0 calc((100% - 20px) / 3); }
  .kind .name { margin-block-start: 6px; font-family: var(--cl-font-sans); font-size: 13px; line-height: 1.35; text-align: center; }
  .thumb .t { padding: 8cqi 8cqi 0; }

  .duo, .pair { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .duo, .pair, .slip.solo, .reply-stage, .leaf { margin-inline: calc(var(--site-bleed) * -1); }
  .duo .leaf, .reply-stage .specimen, .papers .duo, .papers .slip.solo { margin-inline: 0; }
  .annex-top .bars { display: grid; }
  .leaf > p, .leaf h3, .cap-line { padding-inline: 10px; }
  .leaf > p, .cap-line { font-size: 14.5px; }
  .leaf h3 { margin-block-start: 10px; font-size: 16px; }
  .cc-side { grid-template-columns: 4.2em minmax(0, 1fr); }
  .read .para { display: block; }
  .read .para .num { margin-inline-end: 0.3em; }
  .read .sheet-body { padding-block: 16px 14px; }
  .slip-pad { padding: 12px 14px 13px; }
  .reply-stage { gap: 10px; margin-block-start: 20px; }
  .reply-stage .side { gap: 10px; }
  .rows > div { grid-template-columns: 6.2em minmax(0, 1fr); }
  .ev { grid-template-columns: minmax(0, 1fr); }
  .ev .from { grid-column: 1; }
  .acts-row { justify-content: flex-start; }
  .acts-count { flex-basis: 100%; }
  .signers { gap: 14px; }
  /* a gap's words wrap inside its chip where one line is too narrow for them */
  .gap { border-radius: 14px; }
  .gap > span:last-child { min-width: 0; white-space: normal; }
  .read .gap > span:first-child { min-width: 0; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .thumb { transition: none; }
  .kind:hover .thumb { transform: none; }
}

/* ── a practice-area page: the area's own paper under the head, a drawn answer, the way in ──── */

/* the head: an area's name stands a step under the home page's sentence */
.area-head h1 { font-size: clamp(36px, 5.6cqi, 68px); line-height: 1.08; }

/* the area's own paper under the head, and what stands beside it */
.area-stage { position: relative; }
/* a paper at an area page's reading scale */
.area-sheet .sheet-body { font-size: clamp(18px, 1.78cqi, 21.5px); line-height: 1.75; }
/* the part of the app that belongs beside the paper: under it where the page is narrow */
.area-beside { margin-block-start: 10px; }

/* the words a Word comment is tied to, shaded in its writer's colour as Word shades them */
.word .w-anchor { background: color-mix(in srgb, var(--site-word-theirs) 12%, transparent); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* a comment thread of the Word file, as Word's own card: the other side's comment and the firm's reply under it,
   each writer named in the writer's Word colour; it hangs under its clause, in line with the clause's words */
.w-thread { position: relative; display: grid; gap: 9px; margin-block: 12px 14px; margin-inline-start: 2.6em; padding: 11px 14px 13px;
  border: 1px solid var(--site-word-rule); border-radius: 4px; background: var(--site-paper); box-shadow: 0 1px 2px rgba(30, 31, 29, 0.07); font-family: var(--cl-font-sans); }
.w-note { margin: 0; font-size: 14.5px; line-height: 1.5; }
.w-note b { display: block; font-size: 13px; font-weight: 600; }
/* the reply stands behind a rule in its writer's colour */
.w-note + .w-note { padding-inline-start: 11px; border-inline-start: 2px solid var(--site-word-ours); }
.w-thread + .para { margin-block-start: 0.45em; }

/* an answer of more than one paragraph */
.ans > p + p:not(.srcrow):not(.newer) { margin-block-start: 0.7em; }
/* several sources under an answer: one rule over the list, and a long file name runs on under itself, clear of
   its icon, with the places it opens after its last word */
.srcs { display: grid; gap: 7px; margin-block-start: 12px; padding-block-start: 12px; border-block-start: 1px solid var(--cl-line); }
.srcs .srcrow { display: block; margin: 0 !important; padding: 0; padding-inline-start: 24px; border: 0; text-indent: -24px; line-height: 1.65; }
.srcs .srcrow > * { text-indent: 0; }
.srcs .srcrow .ic { display: inline-block; vertical-align: -3px; margin-inline-end: 8px; }
.srcs .srcrow .name { overflow-wrap: anywhere; }
.srcs .srcrow .loc { display: inline-block; margin-inline-start: 4px; line-height: 1.5; }
/* the export a voice message came out of, on a line of its own under the message's name */
.srcs .srcrow .from { display: block; font-size: 12.5px; line-height: 1.5; color: var(--cl-ink-muted); }

/* that a drawn question and its answer are a sample, said under them as a paper's caption says it */
.sample-mark { margin-block-start: 8px; padding-inline: 2px; font-size: 13px; line-height: 1.4; color: var(--cl-ink-muted); text-align: end; }

/* a section's second sentence under its first */
.note p + p { margin-block-start: 10px; }

/* the other practice areas inside the way in: the home page's doors under the call */
.way-doors { margin-block-start: clamp(34px, 5cqi, 60px); }
.way-doors .door-row { border-block-end: 0; }
.way-doors .door-row > li { border-block-end: 1px solid var(--cl-line); }

@media (min-width: 721px) {
  /* two doors abreast, one rule over the first pair */
  .way-doors .door-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5cqi, 72px); }
  .way-doors .door-row > li:nth-child(n+3) { border-block-start: 0; }
}

@media (min-width: 721px) and (max-width: 900px) {
  .area-beside { max-inline-size: 26em; margin-inline-start: auto; }
}

@media (min-width: 901px) {
  /* on a desk what stands beside the paper is pulled out from under it at the page's far side, a little out past
     the paper's edge, as the home page's open source is */
  .area-beside { position: relative; z-index: 1; max-inline-size: 35em; margin-block-start: -40px; margin-inline: auto calc(var(--site-thread-out) * -1);
    box-shadow: 0 1px 1px rgba(30, 31, 29, 0.06), 0 16px 30px -18px rgba(58, 42, 22, 0.45); }
  /* a Word page with its margin: the text in one column and the comments' lane at the page's far side */
  .word .lane-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(296px, 0.5fr); grid-template-rows: repeat(4, auto) minmax(0, 1fr); column-gap: clamp(28px, 3.2cqi, 44px); align-items: start; padding-inline-end: var(--site-sheet-pad); }
  .lane-body > * { grid-column: 1; }
  /* the thread stands in the lane beside its clause (the page's third paragraph) and runs on beside what follows;
     the last row is the page's blank foot, so a thread taller than its clause opens no gap between the clauses */
  .lane-body > .w-thread { grid-column: 2; grid-row: 3 / span 3; margin: 3px 0 0; }
  /* Word's line from the comment to the words it is tied to */
  .lane-body > .w-thread::before { content: ""; position: absolute; inset-inline-end: 100%; inset-block-start: 16px; inline-size: clamp(28px, 3.2cqi, 44px); border-block-start: 1px dashed var(--site-word-theirs); }
  /* or, where the paper has a lane, the app's item is clipped to the page's far edge beside the clause it answers:
     its top stands at the paper's first paragraph under the caption and the running head */
  .area-beside.clipped { position: absolute; inset-block-start: calc(82px + clamp(18px, 2.4cqi, 30px)); inset-inline-end: calc(var(--site-thread-out) * -1); inline-size: 21em; max-inline-size: none; margin: 0; }
}

@media (max-width: 720px) {
  .area-beside { margin-inline: calc(var(--site-bleed) * -1); }
  .w-thread { margin-inline-start: 2.3em; }
  .sample-mark { padding-inline: 10px; font-size: 12.5px; }
  .way-doors .door-row > li + li { border-block-start: 0; }
  /* the film's row of controls at a phone's width: each is drawn as it was and pressed over 44 px, the row no taller */
  .vbar { padding-block: 0; gap: 14px; }
  .vb { position: relative; }
  .vb::after { content: ""; position: absolute; inset: -7px; }
  .vtrack { height: 44px; }
  .vmark { inset-block-start: 15px; }
}

/* ── an area page that opens on a draft with its source open beside it ─────────── */

/* an area page's opening draft: one paragraph at full ink, a step under the home page's scale and over a Word
   paper's, so a line holds about seventy characters on a desk */
.area-draft .sheet-body { font-size: clamp(19px, 2.3cqi, 27px); line-height: 1.56; }
/* the paragraph before, cut to its last sentence: one line on a desk, two where the paper is narrower */
.area-draft .prev { max-height: 3.12em; text-wrap: balance; }
/* a reference in the lines that follow stands back with them */
.area-draft .tail .ref { opacity: 0.4; }
/* the copper thread down the draft's margin beside its paragraph, as the home page's first paper carries it; the
   open source's own half of the thread is the vocabulary's */
.area-draft .lead::after { content: ""; position: absolute; inset-inline-end: calc(var(--site-sheet-pad) / -2 - 1px); inset-block: 0.36em -40em; inline-size: 2px; background: var(--cl-copper); }

/* the source the draft's reference opens: pulled out from under the paper's foot at the page's far side and a
   little out past its edge, as on the home page, so the thread runs unbroken from the paragraph to the passage */
.area-stage .hero-src { margin-block-start: -58px; margin-inline: auto calc((var(--site-bleed) + var(--site-thread-out)) * -1); box-shadow: none; }

/* a court document's first line over the draft: the court and the file's number, a step smaller than the paragraph
   that is read, with a rule under it where the heading's other lines are not drawn */
.area-draft .w-court { display: flex; justify-content: space-between; gap: 14px; margin: 0 0 0.8em; padding-block-end: 0.55em; border-block-end: 1px solid var(--cl-line); font-size: 0.74em; line-height: 1.6; }
/* the document's own name and its first heading, under the court's line */
.area-draft .w-title { margin-block-end: 0.2em; font-size: 0.86em; text-wrap: balance; }
.area-draft .para-h { margin-block-start: 0.5em; font-size: 0.86em; }
/* a motion's first paragraph, the remedy it asks for, and the line that opens its grounds: standing back over the
   paragraph that is read, as the lines after it do */
.area-draft .w-title + .para { margin-block-start: 0.5em; }
.area-draft .back { color: color-mix(in srgb, var(--cl-ink) 34%, transparent); }
.area-draft .back .num { color: inherit; }
.area-draft .grounds { margin-block-end: 0.5em; }

/* the mark of a reference that rests on a picture's automatic description: beside the reference's number in an
   answer, and before the place in the picture's source row */
.ans sup { white-space: nowrap; }
.ans sup .cap-ic { width: 10px; height: 10px; margin-inline-start: 1px; vertical-align: baseline; }
.srcs .srcrow .loc .cap-ic { width: 12px; height: 12px; margin-inline-end: 4px; vertical-align: -1.5px; }
/* a numbered list inside an answer, and the paragraph after it */
.ans ol { margin: 0.5em 0 0; padding-inline-start: 1.4em; display: grid; gap: 3px; }
.ans ol + p { margin-block-start: 0.7em; }

@media (max-width: 720px) {
  /* the open source stands under the draft, moved toward the far edge, as on the home page */
  .area-stage .hero-src { margin-block-start: -40px; margin-inline-start: 20px; }
  /* at a phone's width the paragraph follows the document's name, so it stays on the first screen */
  .area-draft .w-court { margin-block-end: 0.6em; }
  .area-draft .para-h { display: none; }
  .area-draft .w-title { margin-block-end: 0.5em; }
  /* the remedy is cut to its last line here, as the paragraph before is on the home page's paper at a desk */
  .area-draft .para.back:not(.grounds) { display: flex; flex-direction: column; justify-content: flex-end; max-height: 1.56em; overflow: hidden; text-wrap: balance; }
  .area-draft .w-title + .para { margin-block-start: 0; }
  /* a file's machine-given name keeps to one line beside its icon */
  .srcs .srcrow .name[dir="ltr"] { font-variant-numeric: normal; letter-spacing: -0.015em; }
}

/* the paragraphs the sample does not hold, before the ones drawn and after them: bars in line with the text,
   the ones after thinning out with the paper's foot */
.area-draft .bars { margin: 0.6em 0 0.8em; padding-inline-start: 2em; }
.area-draft .tail .bars { gap: 0.42em; margin: 0; }
/* the file's number is never broken over two lines; a long court's name gives way instead */
.area-draft .w-court bdi { flex: none; white-space: nowrap; }
/* a gap whose words are longer than the line: its second part runs on inside the mark */
.area-draft .gap { border-radius: 14px; }
.area-draft .gap > span:last-child { white-space: normal; }

/* a text file as the open source: its lines as the app's viewer numbers them, the number in a gutter and the line
   in the text face; the thread ends at the cited lines' far edge */
.lines { padding: 12px 18px 4px; padding-inline-end: calc(var(--site-thread-out) + var(--site-sheet-pad) / 2 - 1px); font-family: var(--cl-font-sans); font-size: clamp(14.5px, 1.3cqi, 16px); line-height: 1.6; }
.ln { display: grid; grid-template-columns: 1.7em minmax(0, 1fr); column-gap: 10px; margin: 0; padding: 4px 10px; }
.ln .lno { justify-self: end; padding-block-start: 0.24em; font-size: 12.5px; color: var(--cl-ink-muted); }
.ln.dim { color: var(--cl-ink-muted); }
.ln.cut { max-height: 2.5em; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 96%); mask-image: linear-gradient(to bottom, #000 20%, transparent 96%); }
.lines .cited { position: relative; padding-block: 3px; background: var(--cl-cited); border-radius: 2px; }
.lines .cited .lno { font-weight: 500; color: var(--cl-copper-deep); }
.lines .cited::after { content: ""; position: absolute; inset-inline-end: 0; inset-block: -40em 0; inline-size: 2px; background: var(--cl-copper); }

/* a recording as the open source: the app's slip takes the open page's clip and shadow, its time line and its
   transcript stand clear of the thread, and the thread ends at the cited words' far edge in place of the mark at
   their near one */
.hero-src .slip { overflow: clip; box-shadow: 0 1px 1px rgba(30, 31, 29, 0.06), 0 22px 44px -20px rgba(58, 42, 22, 0.5); }
.hero-src .rec-line { padding-inline: calc(var(--site-thread-out) + var(--site-sheet-pad) / 2 + 13px); }
.hero-src .transcript { padding-inline-end: calc(var(--site-thread-out) + var(--site-sheet-pad) / 2 - 1px); }
.hero-src .tr.cited { border-inline-start: 0; padding-inline-end: 14px; }
.hero-src .tr.cited::before { content: ""; position: absolute; inset-inline-end: 0; inset-block: -40em 0; inline-size: 2px; background: var(--cl-copper); }
/* where 3:23 stands on a recording of 4:48 */
.track.t-323 i { width: 70.5%; }

@media (max-width: 900px) {
  /* a long file name runs on beside the source's number and icon, and the place stands under it */
  .src-head.long { align-items: flex-start; }
  .src-head.long .ic { margin-block-start: 1px; }
  .src-head.long .name { flex: 1 1 0; min-width: 0; }
  .src-head.long .at { flex-basis: 100%; text-align: end; }
}

@media (max-width: 720px) {
  /* the paragraph's number runs in with its words here, so the bars start at the paper's edge */
  .area-draft .bars { padding-inline-start: 0; }
  /* a long court's name and the file's number keep one line at a phone's width */
  .area-draft .w-court.long { font-size: 12.5px; }
  .lines { padding: 8px 8px 2px; padding-inline-end: calc(var(--site-thread-out) + var(--site-sheet-pad) / 2 - 1px); }
  .ln { padding-inline: 8px; column-gap: 8px; }
  .hero-src .tr { grid-template-columns: 2.9em minmax(0, 1fr); }
}

/* ── the request page, the not-found page and the legal pages' frame ───────────── */

/* ── the request page: the home page's way in, opened into a page ────────────── */

/* the page: under the closing section's ink rule, the headline and the form in one column, and beside them what
   follows a request, so a desk's first screen holds the whole decision */
.ask { padding-block: clamp(4px, 1.4cqi, 18px) clamp(56px, 8cqi, 112px); }
.ask-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 36px clamp(32px, 6.4cqi, 92px); align-items: start;
  padding-block-start: clamp(24px, 3.4cqi, 44px); border-block-start: 1.5px solid var(--cl-ink); }
/* the headline at the scale its column carries on two lines, breaking where its two offers part */
.ask h1 { font-size: clamp(30px, 4.5cqi, 56px); line-height: 1.1; letter-spacing: -0.012em; }
.ask h1 > span { display: block; }
:lang(en) .ask h1 { font-size: clamp(29px, 3.7cqi, 45px); }
/* what the product is, in one line under the headline, for a visitor who lands on this page first */
.ask .lede { margin-block-start: 12px; font-size: clamp(15.5px, 1.45cqi, 18px); line-height: 1.55; max-width: 44ch; }

/* the form stands on the page's ground, its fields the app's own; nothing between the headline and its first field */
.ask .wait { width: 100%; max-width: 460px; margin: clamp(20px, 2.8cqi, 34px) 0 0; gap: 14px; }
.ask .wait-field { gap: 5px; line-height: 1.4; }
/* the address takes the form's width; the four fields a visitor may leave empty stand two abreast wherever each
   keeps room for its longest choice, so five fields are a row shorter than four were and the button stands higher */
.ask .wait:not([hidden]) { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.ask .wait > * { grid-column: 1 / -1; }
.ask .wait > .wait-field:not(:first-child) { grid-column: auto; }
/* the form's call: the button, the second way to reach a person, and the price line beside them */
.ask-calls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-block-start: 4px; }
.ask-calls .btn { padding: 16px 26px; font: inherit; font-size: 16.5px; font-weight: 500; line-height: 1; cursor: pointer; }
.ask-calls .btn[disabled] { cursor: default; }
/* the price line takes what the row leaves beside the button and breaks into even lines there, so a longer
   sentence (the English one) never falls under the button with one word left over */
.ask-calls .price { margin: 0; flex: 1 1 12em; min-width: 0; text-wrap: balance; }
/* what the form says back stands right under its button */
.ask .wait-msg { margin: 0; line-height: 1.5; }
/* the notice the privacy law asks for stands on the form, right under the button it belongs to and what the form
   says back, so the button stays with the fields in the first screen: small print, set off by a hairline */
.ask .wait-note { max-width: none; margin-block-start: 8px; padding-block-start: 14px; border-block-start: 1px solid var(--cl-line); line-height: 1.6; }
.ask .wait-policy a { display: inline-block; padding-block: 6px; }

/* the thank-you line that takes the form's place: the record's face, under the app's tick */
.ask .wait-done { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: start; max-width: 460px; margin: clamp(20px, 2.8cqi, 34px) 0 0; padding-block: 18px 20px;
  border-block: 1px solid var(--cl-line-strong); font-family: var(--cl-font-display); font-size: clamp(21px, 2.1cqi, 26px); line-height: 1.32; }
.ask .wait-done .ic { width: 1.1em; height: 1.1em; margin-block-start: 0.12em; color: var(--cl-copper); stroke-width: 2; }
.ask .wait-done:focus-visible { outline: 2px solid var(--cl-copper); outline-offset: 6px; border-radius: var(--cl-radius-sm); }

/* what follows a request, as a list down the column beside the form: a number, a line, a hairline */
.ask-after { padding-block-start: clamp(6px, 0.9cqi, 12px); }
.ask .next-h { font-family: var(--cl-font-sans); letter-spacing: 0; line-height: 1.5; text-wrap: wrap; }
.ask .next ol { grid-template-columns: minmax(0, 1fr); gap: 0; }
.ask .next li { display: grid; grid-template-columns: 2em minmax(0, 1fr); padding-block: 13px 14px; }
.ask .next li::before { margin: 0; padding-block-start: 0.3em; }
.ask .next li:last-child { border-block-end: 1px solid var(--cl-line-strong); }

/* the sample paper under the steps: the home page's first paper at a column's scale, with no thread and no tab */
.ask .specimen { margin-block-start: clamp(24px, 3cqi, 36px); }
.ask .hero-sheet { border-start-start-radius: 2px; --site-sheet-pad: clamp(16px, 2cqi, 26px); }
.ask .hero-sheet .sheet-body { font-size: clamp(17.5px, 1.5cqi, 19px); line-height: 1.62; }
.ask .hero-sheet .tail { max-height: 3.6em; padding-block-end: 16px; }

@media (max-width: 980px) {
  /* a second column too narrow for the paper's marks: the steps stay beside the form, the paper stands under both */
  .ask-after { display: contents; }
  .ask .next { padding-block-start: clamp(6px, 0.9cqi, 12px); }
  .ask .specimen { grid-column: 1 / -1; max-width: 36em; margin-block-start: 0; }
}

@media (max-width: 720px) {
  /* one column: the headline and the form, then what follows, then the paper */
  .ask { padding-block: 0 44px; }
  .ask-grid { grid-template-columns: minmax(0, 1fr); padding-block-start: 18px; gap: 30px; }
  .ask-after { display: block; padding-block-start: 0; }
  .ask .next { padding-block-start: 0; }
  .ask h1, :lang(en) .ask h1 { font-size: 30px; }
  .ask .wait, .ask .wait-done { max-width: none; margin-block-start: 16px; }
  .ask .wait { gap: 12px; }
  /* a phone's form is one column, a field a row */
  .ask .wait:not([hidden]) { grid-template-columns: minmax(0, 1fr); }
  /* the button takes the column, as the closing section's does, and the price line stands under it */
  .ask-calls { flex-direction: column; align-items: stretch; gap: 10px; margin-block-start: 6px; }
  .ask-calls .btn { align-self: stretch; justify-content: center; padding-block: 17px; font-size: 17px; }
  .ask-calls .price { max-width: none; flex: none; }
  /* the policy's link is a finger's target */
  .ask .wait-policy { margin-block-start: -14px; }
  .ask .wait-policy a { padding-block: 12px; }
  .ask .specimen { max-width: none; margin-block-start: 22px; }
}

/* ── the not-found page ──────────────────────────────────────────────────────── */

/* the page is one screen at least, its footer at the screen's foot */
body:has(> main.notfound) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body:has(> main.notfound) > .wrap { width: 100%; }
body:has(> main.notfound) > main { flex: 1 0 auto; padding-block: clamp(36px, 6.6cqi, 84px) clamp(44px, 5.4cqi, 68px); }
/* the missing page's number, set as the site's mark for a gap: what is not there is rust */
.notfound .code { display: inline-flex; align-items: center; gap: 0.5em; padding-block: 3px; padding-inline: 11px 13px; border: 1px solid color-mix(in srgb, var(--cl-rust) 52%, transparent); border-radius: 999px;
  background: var(--cl-rust-soft); color: var(--cl-rust); font-weight: 700; line-height: 1.5; }
.notfound .code .ic { width: 1.15em; height: 1.15em; stroke-width: 2; }
.notfound .alt a { display: inline-block; padding-block: 11px; }

/* ── the legal pages' frame ──────────────────────────────────────────────────── */

/* printed, a legal page is the document alone: the footer leaves with the header */
@media print {
  body:has(> main.legal) > .site-footer { display: none; }
}

/* ── the English pages: what longer words and one sample letter need ───────────── */

/* a letter's paragraph hangs no number, so the line cut from the paragraph before starts at the paper's own edge */
.hero-sheet .prev.plain { padding-inline-start: 0; }

/* the price line beside the first call holds two lines of English at a desk, as its Hebrew does */
@media (min-width: 901px) { :lang(en) .price { max-width: 31ch; } }

/* the practice areas on a page whose area pages are in another language: the five names alone, in one row that wraps */
.doors.names .door-row { display: flex; flex-wrap: wrap; gap: 0 clamp(18px, 2.4cqi, 30px); border-block-start: 1px solid var(--cl-line); }
.doors.names .door-row > li { border-block-start: 0; }
/* an area page's own list of the other areas: the names alone under their question, with no rule under each */
.way-doors.names .door-row > li { border-block-end: 0; }

/* the line under an answer that newer files have passed: its words wrap beside its glyph, where the English runs
   longer than the row, and the way to ask again takes the line's end */
:lang(en) .newer > span:not(.again) { flex: 1 1 12em; min-width: 0; }
:lang(en) .newer .ic { align-self: flex-start; margin-block-start: 0.2em; }

@media (max-width: 720px) {
  /* beside a longer English call the price line keeps to three lines */
  :lang(en) .call { gap: 12px; }
  :lang(en) .call .btn { padding-inline: 17px; }
  :lang(en) .price { font-size: 12.5px; }
  /* a film in another language says so on its poster at a phone's width too, at the corner the play disc leaves free */
  :lang(en) .vcap { display: inline-flex; inset-inline-start: auto; inset-inline-end: 10px; }
  /* a moment's count of files holds one line beside its date */
  :lang(en) .when { gap: 8px; }
  :lang(en) .when .files { font-size: 13px; }
}

/* The practice areas in the first screen (the Hebrew home page): five doors in one row between the call and the
   papers, each an area with the document drawn on its page; at a phone's width the five names alone, in two lines. */
.doors.lead { margin-block-start: clamp(14px, 1.9cqi, 22px); }
.doors.lead .door-row { display: grid; grid-template-columns: repeat(5, minmax(0, max-content)); justify-content: space-between; gap: 0 clamp(12px, 1.8cqi, 26px);
  margin: 0; border-block-end: 0; border-block-start: 1px solid var(--cl-line); }
.doors.lead .door-row > li { border-block-start: 0; }
.doors.lead .door { display: block; min-height: 0; padding: 9px 0 0; }
.doors.lead .door .area { display: block; font-size: clamp(17px, 1.75cqi, 19.5px);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--cl-line-strong); }
.doors.lead .door:hover .area { text-decoration-color: currentColor; }
.doors.lead .door .doc-kind { display: block; margin-block-start: 1px; font-size: 13px; text-align: start; }
.doors.lead + .hero-stage { margin-block-start: clamp(14px, 2cqi, 24px); }
/* on a short screen the first lines of the paper keep the first screen: the line before the paragraph leaves */
@media (min-width: 721px) and (max-height: 859px) {
  .hero-sheet .prev { display: none; }
}
@media (max-width: 720px) {
  .doors.lead { margin-block-start: 8px; }
  .doors.lead .door-row { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0 22px; padding-block-start: 3px; }
  .doors.lead .door { display: inline-flex; align-items: center; min-height: 32px; padding: 0; }
  .doors.lead .door .area { font-size: 17px; }
  .doors.lead .door .doc-kind { display: none; }
  .doors.lead + .hero-stage { margin-block-start: 10px; }
}
