/* Dental Office Guide: the full-mouth series on the viewbox. No hue at all: the radiograph's greyscale. The page is the
   viewbox's lit white; film black is the mount card and the ink; a mounted film is film grey, with a thin line of light
   around it in its window and its raised identification dot; an empty window shows the light. States are drawn, never
   coloured: bare light (not read), a film half slid in (the next window), a film with its dot (read), a ring (the window
   of the page). Type: Saira at its condensed widths is the X-ray equipment's lettering (numbers, labels, headings,
   buttons); Source Serif 4 is the text; Noto sets the scripts they lack (the layout loads the page language's).
   Logical properties throughout for right to left; the mount alone keeps its anatomical left and right. */
:root {
  --light: #f5f8f8;      /* the viewbox's lit white: the page, and the light in every empty window */
  --lamp: #ffffff;       /* radiopaque white: lettering on film and on the mount, never a fill */
  --ink: #0f1112;        /* film black: the mount card, the text */
  --film: #2a2f32;       /* a mounted film */
  --film-2: #3d4448;     /* a film under the pointer */
  --film-edge: #1b1f21;  /* the dense black at a film's edge */
  --ink-2: #24292c;      /* the lede: a density lighter than the ink */
  --grey: #535a5e;       /* quieter words on the light */
  --grey-dark: #a9b0b4;  /* quieter words on the mount and on film */
  --rule: #cbd1d4;       /* hairlines on the light */
  --rule-dark: #3a4145;  /* hairlines on the mount */
  --wash: #e7ecec;       /* the viewbox's housing: the footer */
  --display: "Saira", "Noto Sans", system-ui, sans-serif;
  --text: "Source Serif 4", "Noto Serif", Georgia, serif;
  --measure: 44rem;
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
  /* the shared house-ad player and the house logo take their accent from here: ink, never a hue */
  --zds-color-accent: #0f1112;
  --zds-color-accent-contrast: #ffffff;
  font-family: var(--text);
  font-size: 100%;
  line-height: 1.6;
  color: var(--ink);
  background: var(--light);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--film-2) var(--light);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; overflow-wrap: break-word; min-block-size: 100vh; display: flex; flex-direction: column; }
.main { flex: 1 0 auto; }
::selection { background: var(--film); color: var(--lamp); }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
img { max-inline-size: 100%; block-size: auto; }
h1, h2, h3 { text-wrap: balance; }
.article__title, .listing__title, .card__title { text-wrap: pretty; }
p, ul, ol { margin-block: 0 1em; }
.sr { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wrap { max-inline-size: 78rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.skip { position: absolute; inset-inline-start: 0.5rem; inset-block-start: -4rem; z-index: 10; padding: 0.7rem 1rem; background: var(--ink); color: var(--lamp); font-family: var(--display); font-weight: 600; border-radius: 6px; }
.skip:focus { inset-block-start: 0.5rem; }

/* ---- the film and the window: one drawing for every size ----
   A window (.win__frame, .mini__w, .num, .tag__frame, .key__w, .onward__w) is an opening that shows the light; its film
   (.win__film) waits above it, slides half in for the next window and all the way in once read. */
.win__film {
  position: absolute; inset: 3px; border-radius: 3px; background: var(--film);
  transform: translateY(calc(-100% - 4px));
  transition: transform 0.55s var(--ease);
}
.is-next .win__film { transform: translateY(-58%); }
.is-mounted .win__film, .is-read .win__film { transform: none; }
.series-still .win__film { transition: none; }

/* ---- the header: the mark, the name, the navigation, the language ---- */
.top { background: var(--light); border-block-end: 1px solid var(--rule); position: relative; z-index: 6; }
.top__row { display: flex; align-items: center; gap: 0.5rem 1.25rem; min-block-size: 4rem; padding-block: 0.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--ink); text-decoration: none; min-block-size: 44px; flex: none; }
.brand__mark { inline-size: 40px; block-size: 28px; flex: none; }
.m-card { fill: var(--ink); }
.m-film { fill: var(--film-2); }
.m-light { fill: var(--light); }
.m-dot { fill: var(--grey-dark); }
.brand__name { font-family: var(--display); font-stretch: 87.5%; font-weight: 700; font-size: 1.25rem; line-height: 1.1; white-space: nowrap; }
.top__note { display: none; margin: 0; padding-inline-start: 1.1rem; border-inline-start: 1px solid var(--rule); font-family: var(--display); font-stretch: 87.5%; font-weight: 500; font-size: 0.92rem; color: var(--grey); white-space: nowrap; }
.nav { display: none; margin-inline-start: auto; flex-wrap: wrap; justify-content: flex-end; gap: 0 1.35rem; font-family: var(--display); font-stretch: 87.5%; font-weight: 600; font-size: 1.02rem; }
.nav a { display: inline-block; padding-block: 0.6rem; color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }

.menu { margin-inline-start: auto; }
.menu summary, .lang summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 0.5rem; min-block-size: 44px; min-inline-size: 44px; justify-content: center; padding: 0.4rem 0.75rem; border: 1.5px solid var(--ink); border-radius: 6px; font-family: var(--display); font-stretch: 87.5%; font-weight: 600; font-size: 0.98rem; color: var(--ink); background: var(--light); }
.menu summary::-webkit-details-marker, .lang summary::-webkit-details-marker { display: none; }
.menu__icon { position: relative; inline-size: 16px; block-size: 12px; border-block: 2px solid currentColor; flex: none; }
.menu__icon::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 3px; block-size: 2px; background: currentColor; }
.menu[open] summary, .lang[open] summary { background: var(--ink); color: var(--lamp); }
.menu ul { position: absolute; inset-inline: 0; inset-block-start: 100%; margin: 0; padding: 0.5rem clamp(1rem, 4vw, 2.5rem) 1rem; list-style: none; background: var(--light); border-block-end: 3px solid var(--ink); }
.menu:not([open]) ul, .lang:not([open]) ul { display: none; }
.menu li a { display: block; padding-block: 0.75rem; border-block-end: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-family: var(--display); font-stretch: 87.5%; font-weight: 600; font-size: 1.15rem; }
.menu li a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.lang { position: relative; flex: none; }
.lang__name { display: none; }
.lang summary::after { content: ""; inline-size: 0.45em; block-size: 0.45em; border-inline-end: 2px solid; border-block-end: 2px solid; transform: translateY(-20%) rotate(45deg); }
.lang ul { position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 6px); z-index: 7; margin: 0; padding: 0.4rem; list-style: none; background: var(--light); border: 2px solid var(--ink); border-radius: 8px; inline-size: max-content; max-inline-size: min(22rem, 92vw); max-block-size: 60vh; overflow: auto; columns: 2; column-gap: 0.25rem; }
.lang li a { display: block; padding: 0.5rem 0.7rem; color: var(--ink); text-decoration: none; border-radius: 4px; font-family: var(--display); font-stretch: 87.5%; font-size: 0.98rem; }
.lang li a:hover { background: var(--wash); text-decoration: underline; }
.lang li a[aria-current] { background: var(--ink); color: var(--lamp); }

/* ---- the strip: the reader's series in miniature, under every page's header but the home's and start-here's ---- */
.strip { background: var(--light); border-block-end: 1px solid var(--rule); }
.strip__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1.25rem; padding-block: 0.45rem; }
.strip__series { display: inline-flex; align-items: center; gap: 0.7rem; min-block-size: 44px; color: var(--ink); text-decoration: none; font-family: var(--display); font-stretch: 87.5%; font-weight: 600; font-size: 0.95rem; }
.strip__series:hover .strip__word { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.strip__here { margin: 0; font-family: var(--display); font-stretch: 87.5%; font-weight: 600; font-size: 0.95rem; }
.strip__here a { text-decoration: none; }
.strip__here a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.strip__n { color: var(--grey); }
.strip__count { margin: 0 0 0 auto; margin-inline-start: auto; font-family: var(--display); font-stretch: 87.5%; font-size: 0.9rem; color: var(--grey); }
.mini { display: inline-grid; gap: 3px; padding: 4px 5px; background: var(--ink); border-radius: 4px; direction: ltr; flex: none; }
.mini__arch { display: grid; grid-template-columns: 11px 11px 7px 7px 7px 11px 11px; gap: 2px; align-items: center; block-size: 11px; }
.mini__w { position: relative; overflow: hidden; block-size: 8px; background: var(--light); border-radius: 1.5px; }
.mini__w--tall { block-size: 11px; }
.mini__w .win__film { inset: 1px; border-radius: 1px; }
.mini__w.is-here { outline: 1.5px solid var(--lamp); outline-offset: 1.5px; }

/* ---- the viewbox and the mount: the home and start-here ---- */
.viewbox { max-inline-size: 88rem; margin-inline: auto; padding: clamp(0.75rem, 2vw, 1.5rem) clamp(0.75rem, 3vw, 2.5rem) 0; }
.mount {
  display: grid; grid-template-areas: "claim" "go" "arches" "key"; gap: 1.25rem;
  padding: clamp(1rem, 2.6vw, 2.25rem); background: var(--ink); color: var(--lamp);
  border-radius: clamp(14px, 1.6vw, 22px);
}
.mount :focus-visible { outline-color: var(--lamp); }
.mount__claim { grid-area: claim; }
.mount__go { grid-area: go; margin: 0; }
.mount__arches { grid-area: arches; align-self: center; min-inline-size: 0; }
.mount__key { grid-area: key; align-self: end; }
.display { margin: 0; font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: clamp(2.15rem, 1.35rem + 2.5vw, 3.7rem); line-height: 1.02; letter-spacing: -0.01em; color: var(--lamp); }
.display--long { font-size: clamp(1.95rem, 1.25rem + 2vw, 3.05rem); }
.display--longer { font-size: clamp(1.75rem, 1.15rem + 1.6vw, 2.55rem); }
.mount__lede { margin: 1rem 0 0; max-inline-size: 34rem; font-size: clamp(1.03rem, 0.95rem + 0.3vw, 1.2rem); line-height: 1.5; color: var(--grey-dark); }
.mount__title { margin: 0; font-family: var(--display); font-stretch: 80%; font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); line-height: 1.05; }
/* a short laptop window (1024px wide or more, 800px tall or less): the claim sits in a narrow column beside the
   arches, and a translated claim and lede (Greek, Japanese, Bulgarian) pushed the way in under the fixed house bar;
   the claim and lede step down a size; at the reviewed 1440x900 nothing changes */
@media (min-width: 64rem) and (max-height: 50rem) {
  .mount__claim .display { font-size: clamp(2.2rem, 1rem + 2.3vw, 3rem); }
  .mount__claim .display--long { font-size: clamp(2rem, 0.9rem + 2vw, 2.7rem); }
  .mount__claim .display--longer { font-size: clamp(1.75rem, 0.85rem + 1.6vw, 2.3rem); }
  .mount__lede { font-size: 1rem; margin-block-start: 0.75rem; }
}
.mount__kept { margin: 0.75rem 0 0; font-size: 0.9rem; line-height: 1.45; color: var(--grey-dark); max-inline-size: 26rem; }
.mount__down { margin: 0.9rem 0 0; }

/* the arches: seven windows each, the anterior three portrait (24 by 40), the rest landscape (41 by 31), one scale and
   one baseline; every window has a cell of the same width, so that each label has the same room */
.arch { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: clamp(6px, 1vw, 15px); }
.arch + .arch { margin-block-start: clamp(14px, 2.2vw, 30px); }
.win { min-inline-size: 0; }
.win__link { display: flex; flex-direction: column; align-items: stretch; gap: 0.45rem; block-size: 100%; color: var(--lamp); text-decoration: none; border-radius: 6px; }
.win__area { display: grid; place-items: center; aspect-ratio: 41 / 40; }
.win__frame { position: relative; overflow: hidden; inline-size: 100%; aspect-ratio: 41 / 31; background: var(--light); border-radius: 6px; }
.win--tall .win__frame { inline-size: auto; block-size: 100%; aspect-ratio: 24 / 40; }
.win__frame .win__film { inset: 4px; border-radius: 4px; border: 3px solid var(--film-edge); }
.is-mounted .win__frame .win__film::before { content: ""; position: absolute; left: 7px; top: 7px; inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--grey-dark); }
.win__link:hover .win__frame .win__film { background: var(--film-2); }
.is-next .win__link:hover .win__film { transform: translateY(-40%); }
.win__label { display: block; text-align: center; text-wrap: balance; font-family: var(--display); font-stretch: 75%; font-weight: 600; font-size: clamp(0.82rem, 0.62rem + 0.32vw, 1rem); line-height: 1.15; color: var(--lamp); }
.win__n { font-weight: 800; }
.win__link:hover .win__label { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }

/* the key: the three states, each drawn and named */
.key__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-family: var(--display); font-stretch: 87.5%; font-weight: 500; font-size: 0.95rem; color: var(--grey-dark); }
.key__list li { display: block; }
.key__w { display: inline-block; position: relative; overflow: hidden; inline-size: 21px; block-size: 16px; margin-inline-end: 0.4rem; vertical-align: -3px; background: var(--light); border-radius: 3px; }
.key__w .win__film { inset: 2px; border-radius: 2px; transition: none; }

/* the buttons: the light (on the mount), film black (on the light), quiet (a second action on the mount) */
.button { display: inline-flex; align-items: center; justify-content: center; min-block-size: 52px; padding: 0.7rem 1.35rem; background: var(--light); color: var(--ink); border: 0; border-radius: 8px; font-family: var(--display); font-stretch: 87.5%; font-weight: 700; font-size: 1.12rem; line-height: 1.15; text-align: center; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--wash); }
.button--ink { background: var(--ink); color: var(--lamp); }
.button--ink:hover { background: var(--film); }
.button--quiet { min-block-size: 44px; background: none; color: var(--lamp); border: 1.5px solid var(--grey-dark); font-size: 1rem; font-weight: 600; }
.button--quiet:hover { background: var(--film); }
.button[hidden] { display: none; }

/* ---- the home under the mount: the fourteen windows and their films, the follow-ups, the readings ---- */
.home { padding-block-start: clamp(2.5rem, 5vw, 4rem); }
.section-head { margin: 0 0 0.25rem; padding-block-start: 0.85rem; border-block-start: 3px solid var(--ink); font-family: var(--display); font-stretch: 87.5%; font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem); line-height: 1.1; }
.num { position: relative; display: inline-grid; place-items: end center; overflow: hidden; min-inline-size: 2.1em; block-size: 1.62em; padding: 0 0.3em 0.08em; margin-inline-end: 0.15em; vertical-align: -0.24em; background: var(--light); border: 2px solid var(--ink); border-radius: 0.28em; font-family: var(--display); font-stretch: 75%; font-weight: 800; line-height: 1.2; }
.num .win__film { inset: 2px; border-radius: 2px; }
.is-next .num .win__film { transform: translateY(-78%); }
.listing__title .num { font-size: 0.78em; vertical-align: 0.02em; }
.num__n { position: relative; color: var(--ink); }
.is-mounted .num__n { color: var(--lamp); }
.index__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2.75rem; }
.index__item { padding-block: 1.15rem 1.3rem; border-block-end: 1px solid var(--rule); }
.index__name { margin: 0 0 0.4rem; font-family: var(--display); font-stretch: 87.5%; font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
.index__name a { text-decoration: none; }
.index__name a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.index__what { margin: 0 0 0.7rem; font-size: 1.02rem; line-height: 1.5; color: var(--grey); max-inline-size: 36rem; }
.index__films { list-style: none; margin: 0 0 0.6rem; padding: 0; font-family: var(--display); font-stretch: 87.5%; font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.index__films li { position: relative; padding-block: 0.3rem; padding-inline-start: 1.6rem; }
.index__films li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0.55rem; inline-size: 1rem; block-size: 0.75rem; border: 2px solid var(--ink); border-radius: 2px; background: var(--light); }
.index__films li.is-read::before { background: var(--film); border-color: var(--film); }
.index__films a { text-decoration: none; }
.index__films a:hover { text-decoration: underline; }
.index__more { margin: 0; font-family: var(--display); font-stretch: 87.5%; font-weight: 600; font-size: 0.98rem; }
.shelf { margin-block-start: clamp(2.5rem, 5vw, 4rem); }
.shelf__all { margin: 1rem 0 0; font-family: var(--display); font-stretch: 87.5%; font-weight: 600; }

/* ---- cards: a film tag, the title, the summary, the kind, window and date ---- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 0 2.75rem; }
.card { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 0 1rem; padding-block: 1.15rem 1.35rem; border-block-end: 1px solid var(--rule); }
.tag { grid-column: 1; grid-row: 1; padding-block-start: 0.2rem; }
.tag__frame { position: relative; display: grid; place-items: center; overflow: hidden; inline-size: 3.5rem; aspect-ratio: 41 / 31; background: var(--light); border: 2px solid var(--ink); border-radius: 6px; }
.tag__frame .win__film { inset: 3px; }
.tag__n { position: relative; font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 1.25rem; line-height: 1; color: var(--ink); }
.is-read .tag__n { color: var(--lamp); }
.listing__key { margin: 0 0 0.5rem; }
.listing__key .key__list { color: var(--grey); }
.listing__key .key__w { border: 2px solid var(--ink); }
.card__body { grid-column: 2; grid-row: 1; min-inline-size: 0; }
.card__title { margin: 0 0 0.35rem; font-family: var(--display); font-stretch: 87.5%; font-weight: 700; font-size: 1.22rem; line-height: 1.2; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.card__summary { margin: 0 0 0.45rem; font-size: 1rem; line-height: 1.5; color: var(--grey); }
.card__meta { margin: 0; font-family: var(--display); font-stretch: 87.5%; font-size: 0.9rem; line-height: 1.35; color: var(--grey); }

/* ---- a film: the article ---- */
.read { display: grid; grid-template-columns: minmax(0, var(--measure)); gap: 2.5rem 3rem; padding-block-start: clamp(1.5rem, 3vw, 2.5rem); }
.crumbs { margin: 0 0 0.85rem; font-family: var(--display); font-stretch: 87.5%; font-weight: 500; font-size: 0.95rem; color: var(--grey); }
.crumbs a { color: var(--grey); }
.crumbs a:hover { color: var(--ink); }
.article__title, .listing__title, .starthead__title { margin: 0 0 1rem; font-family: var(--display); font-stretch: 80%; font-weight: 700; font-size: clamp(2.05rem, 1.45rem + 2vw, 3.1rem); line-height: 1.04; letter-spacing: -0.005em; }
.lede { margin: 0 0 1.1rem; max-inline-size: var(--measure); font-size: clamp(1.13rem, 1.02rem + 0.4vw, 1.32rem); line-height: 1.5; color: var(--ink-2); }
.meta { margin: 0 0 1.9rem; padding-block-end: 1.15rem; border-block-end: 1px solid var(--rule); font-family: var(--display); font-stretch: 87.5%; font-size: 0.95rem; color: var(--grey); }
.meta__kind { font-weight: 700; color: var(--ink); }
.cover { display: block; margin: 0 0 2rem; border-radius: 10px; }
.notice { margin: 0 0 1.5rem; padding: 0.9rem 1.1rem; background: var(--light); border: 2px dashed var(--ink); border-radius: 8px; font-family: var(--display); font-stretch: 87.5%; }

/* the findings film: lettered in radiopaque white on film grey, in its window of the mount (light edge, black card) */
.findings { position: relative; margin: 6px 6px 2.6rem; padding: 1.35rem 1.5rem 1.45rem; background: var(--film); color: var(--lamp); border: 3px solid var(--light); border-radius: 12px; outline: 6px solid var(--ink); }
.findings::before { content: ""; position: absolute; left: 13px; top: 13px; inline-size: 9px; block-size: 9px; border-radius: 50%; background: var(--grey-dark); }
.findings :focus-visible { outline-color: var(--lamp); }
.findings__title { margin: 0 0 0.85rem; padding-inline-start: 1.1rem; font-family: var(--display); font-stretch: 87.5%; font-weight: 700; font-size: 1.35rem; line-height: 1.1; }
.findings__list { counter-reset: finding; list-style: none; margin: 0; padding: 0; }
.findings__list li { counter-increment: finding; position: relative; margin-block-end: 0.75rem; padding-inline-start: 2.85rem; font-size: 1.07rem; line-height: 1.52; }
.findings__list li:last-child { margin-block-end: 0; }
.findings__list li::before { content: counter(finding); position: absolute; inset-inline-start: 0; inset-block-start: 0.05em; display: grid; place-items: center; inline-size: 2.1rem; block-size: 1.55rem; border: 1.5px solid var(--grey-dark); border-radius: 4px; font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 1.1rem; line-height: 1; }
.findings a, .findings strong { color: var(--lamp); }

/* the body */
.prose { font-size: 1.1875rem; line-height: 1.62; }
.prose h2 { margin: 2.3em 0 0.6em; font-family: var(--display); font-stretch: 87.5%; font-weight: 700; font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.85rem); line-height: 1.15; scroll-margin-block-start: 1rem; }
.prose h3 { margin: 1.8em 0 0.45em; font-family: var(--display); font-stretch: 87.5%; font-weight: 700; font-size: 1.22rem; line-height: 1.25; }
.prose > :first-child, .prose > section:first-child > h2:first-child { margin-block-start: 0; }
.prose p, .prose li, .prose blockquote { text-wrap: pretty; }
.prose ul { list-style: none; padding: 0; }
.prose ul > li { position: relative; margin-block-end: 0.45em; padding-inline-start: 1.45em; }
.prose ul > li::before { content: ""; position: absolute; inset-inline-start: 0.2em; inset-block-start: 0.6em; inline-size: 0.46em; block-size: 0.46em; border: 2px solid var(--ink); border-radius: 50%; }
/* an ordered list is a sequence of exposures: each step's number on a small film */
.prose ol { counter-reset: step; list-style: none; padding: 0; }
.prose ol > li { counter-increment: step; position: relative; margin-block-end: 0.9em; padding-inline-start: 3.1rem; min-block-size: 1.8rem; }
.prose ol > li::before { content: counter(step); position: absolute; inset-inline-start: 0; inset-block-start: 0.12em; display: grid; place-items: center; inline-size: 2.2rem; block-size: 1.65rem; background: var(--film); color: var(--lamp); border-radius: 4px; font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 1.1rem; line-height: 1; }
.prose li > ul, .prose li > ol { margin-block: 0.5em 0; }
/* the window note: a blockquote is light framed in mount black, its label run into its first line */
.prose blockquote { margin: 1.8em 0; padding: 1.1rem 1.3rem 1.15rem; background: var(--light); border: 6px solid var(--ink); border-radius: 12px; }
.prose blockquote p:last-child { margin-block-end: 0; }
.note__label { font-family: var(--display); font-stretch: 87.5%; font-weight: 800; }
.prose .zna-table, .prose pre { overflow-x: auto; overscroll-behavior-x: contain; margin-block: 1.5em; }
.prose .zna-table { border: 2px solid var(--ink); border-radius: 10px; }
.prose .zna-table:focus-visible, .prose pre:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.prose table { border-collapse: collapse; inline-size: 100%; font-size: 1rem; line-height: 1.45; }
.prose th { padding: 0.65rem 0.85rem; background: var(--ink); color: var(--lamp); text-align: start; vertical-align: bottom; font-family: var(--display); font-stretch: 87.5%; font-weight: 700; font-size: 0.98rem; }
.prose td { padding: 0.65rem 0.85rem; border-block-start: 1px solid var(--rule); text-align: start; vertical-align: top; }
.prose tr:first-child td { border-block-start: 0; }
.prose [align="right"] { text-align: end; font-variant-numeric: tabular-nums; }
.prose [align="center"] { text-align: center; }
.prose pre, .prose code { font-family: ui-monospace, monospace; font-size: 0.9em; }
.prose figure { margin: 2rem 0; }
.prose figure img { border-radius: 8px; }
.prose figcaption { margin-block-start: 0.5rem; font-family: var(--display); font-stretch: 87.5%; font-size: 0.92rem; color: var(--grey); }
.prose a { text-decoration-thickness: 1px; }
.faq { margin-block-start: 2.6em; }

/* the next window of the series */
.onward { margin: 2.75rem 0 0; }
.onward a { display: flex; align-items: center; gap: 1.1rem; padding: 1rem 1.25rem; background: var(--light); border: 2px solid var(--ink); border-radius: 12px; text-decoration: none; }
.onward a:hover { background: var(--wash); }
.onward a:hover .onward__text { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.onward__w { position: relative; overflow: hidden; flex: none; inline-size: 3.4rem; aspect-ratio: 41 / 31; background: var(--light); border: 5px solid var(--ink); border-radius: 7px; }
.onward--tall .onward__w { inline-size: 2.3rem; aspect-ratio: 24 / 40; }
.onward__w .win__film { inset: 2px; border-radius: 2px; }
.onward__text { font-family: var(--display); font-stretch: 87.5%; font-weight: 700; font-size: 1.22rem; line-height: 1.25; }
.onward__label { font-weight: 500; color: var(--grey); }
.onward__n { font-weight: 800; }

.tags { margin: 1.6rem 0 0; font-family: var(--display); font-stretch: 87.5%; font-size: 0.98rem; line-height: 2.6; }
.tags__label { color: var(--grey); margin-inline-end: 0.3rem; }
.tags a { display: inline-block; margin-inline-end: 0.45rem; padding: 0.35rem 0.75rem; line-height: 1.5; border: 1.5px solid var(--ink); border-radius: 6px; text-decoration: none; font-weight: 600; }
.tags a:hover { background: var(--ink); color: var(--lamp); }

/* On this film */
.contents { font-family: var(--display); font-stretch: 87.5%; }
/* under 1100px the contents would follow the whole film and its house ad, where they no longer serve as contents */
@media (max-width: 1099.98px) { .read > .contents { display: none; } }
.contents__title { margin: 0 0 0.6rem; padding-block-start: 0.7rem; border-block-start: 3px solid var(--ink); font-weight: 700; font-size: 1.05rem; }
.contents ol { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.contents li { counter-increment: c; position: relative; padding-inline-start: 1.6rem; border-block-end: 1px solid var(--rule); }
.contents li::before { content: counter(c); position: absolute; inset-inline-start: 0; inset-block-start: 0.55rem; font-weight: 800; color: var(--grey); }
.contents a { display: block; padding-block: 0.5rem; font-weight: 600; font-size: 0.98rem; line-height: 1.3; text-decoration: none; }
.contents a:hover { text-decoration: underline; }
.more { margin-block-start: clamp(3rem, 6vw, 4.5rem); }

/* ---- lists: a section, a window ---- */
.listing { padding-block-start: clamp(1.5rem, 3vw, 2.5rem); }
.listing__head { margin-block-end: 1.25rem; max-inline-size: var(--measure); }
.listing__page { color: var(--grey); font-weight: 600; }
.pager { display: flex; flex-wrap: wrap; gap: 1rem; margin-block-start: 2rem; font-family: var(--display); font-stretch: 87.5%; font-weight: 700; }
.pager a { display: inline-flex; align-items: center; min-block-size: 44px; padding: 0.4rem 1rem; border: 2px solid var(--ink); border-radius: 8px; text-decoration: none; }
.pager a:hover { background: var(--ink); color: var(--lamp); }

/* ---- start here ---- */
.starthead { padding-block: clamp(1.5rem, 3vw, 2.5rem) 0.25rem; }
.starthead .lede { max-inline-size: 46rem; }
.start { padding-block-start: clamp(2rem, 4vw, 3rem); }
.how { max-inline-size: var(--measure); font-size: 1.1rem; }
.how h2 { margin: 0 0 0.6rem; font-family: var(--display); font-stretch: 87.5%; font-weight: 700; font-size: 1.5rem; }
.windows { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0 2.75rem; }
.window { padding-block: 1.35rem 1.5rem; border-block-start: 1px solid var(--rule); scroll-margin-block-start: 1rem; }
.window:target { border-block-start: 3px solid var(--ink); }
.window__name { margin: 0 0 0.5rem; font-family: var(--display); font-stretch: 87.5%; font-weight: 700; font-size: 1.45rem; line-height: 1.2; }
.window__what { margin: 0 0 0.75rem; font-size: 1.05rem; line-height: 1.55; }
.window__asks { margin: 0 0 0.35rem; font-family: var(--display); font-stretch: 87.5%; font-weight: 600; font-size: 0.95rem; color: var(--grey); }
.window__qs { list-style: none; margin: 0 0 0.8rem; padding: 0; font-size: 1rem; line-height: 1.45; }
.window__qs li { position: relative; margin-block-end: 0.3rem; padding-inline-start: 1.35em; }
.window__qs li::before { content: ""; position: absolute; inset-inline-start: 0.15em; inset-block-start: 0.5em; inline-size: 0.45em; block-size: 0.45em; border: 2px solid var(--ink); border-radius: 50%; }
.window__open { margin: 0; font-family: var(--display); font-stretch: 87.5%; font-weight: 700; }
.window__none { margin: 0; font-family: var(--display); font-stretch: 87.5%; color: var(--grey); }

/* ---- pages of text: about, contact, privacy, terms, not found ---- */
.text-page { padding-block-start: clamp(1.5rem, 3vw, 2.5rem); }
.text-page .article { max-inline-size: var(--measure); }
.text-page .meta { border: 0; padding: 0; margin-block-end: 0.6rem; }
.mail { font-family: var(--display); font-stretch: 87.5%; font-size: 1.2rem; font-weight: 600; }
.mail__label { color: var(--grey); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-block-start: 1.75rem; }
.actions__link { font-family: var(--display); font-stretch: 87.5%; font-weight: 600; }

/* ---- the house ad: a panel of the viewbox's light framed in ink, like the next window's; its go in film black ---- */
.house { display: grid; gap: 0.4rem; max-inline-size: var(--measure); margin-block: 3rem 0; padding: 1.25rem 1.4rem 1.4rem; background: var(--light); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px; text-decoration: none; }
.house .house__logo { color: var(--ink); inline-size: 97px; block-size: 20px; }
.house__title { font-family: var(--display); font-stretch: 87.5%; font-weight: 700; font-size: 1.35rem; line-height: 1.2; }
.house__text { font-size: 1rem; line-height: 1.5; color: var(--grey); }
.house__go { justify-self: start; margin-block-start: 0.45rem; padding: 0.55rem 1.05rem; background: var(--ink); color: var(--lamp); border-radius: 7px; font-family: var(--display); font-stretch: 87.5%; font-weight: 700; }
.house:hover { background: var(--wash); }
.house:hover .house__go { background: var(--film); }

/* the floating house ad: the viewbox's lower rail, fixed to the window's foot; the page keeps its measured height free
   (--bar-h, set by the script) */
.has-bar { padding-block-end: var(--bar-h, 4.5rem); }
html:has(.has-bar) { scroll-padding-block-end: calc(var(--bar-h, 4.5rem) + 0.75rem); }
.house-bar { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 5; display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem clamp(1rem, 4vw, 2rem) calc(0.45rem + env(safe-area-inset-bottom)); background: var(--light); border-block-start: 3px solid var(--ink); }
.house-bar[hidden] { display: none; }
.house-bar__link { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1rem; min-block-size: 44px; color: var(--ink); text-decoration: none; }
.house-bar .house__logo { color: var(--ink); flex: none; }
.house-bar__text { flex: 1 1 12rem; font-family: var(--display); font-stretch: 87.5%; font-weight: 600; font-size: 1rem; line-height: 1.25; }
.house-bar__go { flex: none; padding: 0.45rem 0.95rem; background: var(--ink); color: var(--lamp); border-radius: 7px; font-family: var(--display); font-stretch: 87.5%; font-weight: 700; font-size: 0.98rem; }
.house-bar__link:hover .house-bar__go { background: var(--film); }
.house-bar__close { flex: none; display: grid; place-items: center; inline-size: 44px; block-size: 44px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--ink); cursor: pointer; }
.house-bar__close:hover { background: var(--wash); }
.house-bar__close svg { inline-size: 1rem; block-size: 1rem; }

/* ---- the footer: the viewbox's housing ---- */
.foot { margin-block-start: clamp(3.5rem, 7vw, 5.5rem); padding-block: 2.2rem 2.4rem; background: var(--wash); border-block-start: 3px solid var(--ink); }
.foot__row { display: grid; gap: 0.5rem 2.5rem; }
.foot__name { margin: 0; font-family: var(--display); font-stretch: 87.5%; font-weight: 700; font-size: 1.25rem; }
.foot__note { margin: 0; color: var(--grey); font-size: 1rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 1.4rem; font-family: var(--display); font-stretch: 87.5%; font-weight: 600; }
.foot__links a { display: inline-block; padding-block: 0.6rem; text-decoration: none; }
.foot__links a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.foot__copy { margin: 0; font-family: var(--display); font-stretch: 87.5%; font-size: 0.92rem; color: var(--grey); }

/* ---- scripts the faces do not set: Noto from the layout, no tracking, no slanted type ---- */
.lang-ar-SA { --display: "Saira", "Noto Sans Arabic", sans-serif; --text: "Source Serif 4", "Noto Naskh Arabic", serif; }
.lang-hi-IN { --display: "Saira", "Noto Sans Devanagari", sans-serif; --text: "Source Serif 4", "Noto Serif Devanagari", serif; }
.lang-th-TH { --display: "Saira", "Noto Sans Thai", sans-serif; --text: "Source Serif 4", "Noto Serif Thai", serif; }
.lang-ja-JP { --display: "Saira", "Noto Sans JP", sans-serif; --text: "Source Serif 4", "Noto Serif JP", serif; }
.lang-ko-KR { --display: "Saira", "Noto Sans KR", sans-serif; --text: "Source Serif 4", "Noto Serif KR", serif; }
.lang-zh-CHS { --display: "Saira", "Noto Sans SC", sans-serif; --text: "Source Serif 4", "Noto Serif SC", serif; }
.lang-zh-CHT { --display: "Saira", "Noto Sans TC", sans-serif; --text: "Source Serif 4", "Noto Serif TC", serif; }
:is(.lang-ar-SA, .lang-hi-IN, .lang-th-TH, .lang-ja-JP, .lang-ko-KR, .lang-zh-CHS, .lang-zh-CHT) :is(.display, .article__title, .listing__title, .starthead__title) { letter-spacing: 0; line-height: 1.3; }
:is(.lang-ar-SA, .lang-hi-IN, .lang-th-TH, .lang-ja-JP, .lang-ko-KR, .lang-zh-CHS, .lang-zh-CHT) :is(h2, h3, .card__title, .index__name, .window__name) { line-height: 1.35; }
:is(.lang-ar-SA, .lang-hi-IN, .lang-th-TH) .prose, :is(.lang-ar-SA, .lang-hi-IN, .lang-th-TH) .lede { line-height: 1.8; }
:is(.lang-ar-SA, .lang-hi-IN, .lang-th-TH, .lang-ja-JP, .lang-ko-KR, .lang-zh-CHS, .lang-zh-CHT) :is(em, i) { font-style: normal; font-weight: 700; }
.lang-ja-JP :is(h1, h2, h3) { word-break: auto-phrase; }
.lang-ko-KR { word-break: keep-all; }
:is(.lang-ja-JP, .lang-zh-CHS, .lang-zh-CHT) { line-break: strict; }

/* ---- wider screens ---- */
@media (min-width: 420px) {
  .lang__name { display: inline; }
  .lang__code { display: none; }
}
@media (min-width: 700px) {
  .index__list, .windows { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(7, auto); }
  .foot__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name links" "note copy"; align-items: baseline; }
  .foot__name { grid-area: name; }
  .foot__note { grid-area: note; }
  .foot__links { grid-area: links; justify-content: flex-end; }
  .foot__copy { grid-area: copy; text-align: end; }
}
@media (min-width: 1024px) {
  /* the label panel at the mount's left, the two arches beside it; the mount keeps its own left and right in every
     language, so its arches stay clear of the house-ad player at the window's lower right */
  .mount { direction: ltr; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); grid-template-rows: auto auto 1fr; grid-template-areas: "claim arches" "go arches" "key arches"; gap: 1.5rem clamp(2rem, 3.5vw, 3.5rem); }
  [dir="rtl"] :is(.mount__claim, .mount__go, .mount__key) { direction: rtl; }
  .mount--start { grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); grid-template-rows: auto 1fr; grid-template-areas: "claim arches" "key arches"; }
  .mount__go { margin-block-start: 0.4rem; }
}
@media (min-width: 1100px) {
  .nav { display: flex; }
  .menu { display: none; }
  .read { grid-template-columns: minmax(0, var(--measure)) minmax(13rem, 17rem); justify-content: space-between; }
  .contents { grid-column: 2; grid-row: 1; position: sticky; inset-block-start: 1.5rem; align-self: start; }
}
@media (min-width: 1280px) {
  .top__note { display: block; }
}

/* ---- narrow screens: the header in one row, the mount's windows by number ---- */
@media (max-width: 699px) {
  .top__row { gap: 0.5rem; min-block-size: 3.5rem; }
  .brand { gap: 0.5rem; min-inline-size: 0; flex: 0 1 auto; }
  .brand__mark { inline-size: 34px; block-size: 24px; }
  .brand__name { font-size: 1.08rem; }
  .menu__word { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .menu summary { padding-inline: 0.6rem; }
  .arch { column-gap: 4px; }
  .win__area { aspect-ratio: auto; block-size: 46px; }
  .win__frame { border-radius: 4px; }
  .win__frame .win__film { inset: 3px; border-radius: 2px; }
  .house-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 0 0.35rem; padding-block: 0.3rem calc(0.3rem + env(safe-area-inset-bottom)); }
  .house-bar__link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 0.6rem; min-block-size: 0; }
  .house-bar .house__logo { grid-column: 1; grid-row: 1; }
  .house-bar__go { grid-column: 3; grid-row: 1; padding: 0.4rem 0.8rem; font-size: 0.9rem; }
  .house-bar__text { grid-column: 1 / -1; grid-row: 2; min-inline-size: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 0.88rem; line-height: 1.5; }
  .house-bar__close { inline-size: 40px; block-size: 40px; }
  .is-mounted .win__frame .win__film::before { left: 4px; top: 4px; inline-size: 5px; block-size: 5px; }
  .win__name > [aria-hidden] { display: none; }
  .win__label { font-size: 0.98rem; }
  .win__link { gap: 0.3rem; }
  .strip__word, .strip__count { display: none; }
  .strip__row { gap: 0.25rem 0.9rem; }
  .card { grid-template-columns: 3rem minmax(0, 1fr); gap: 0 0.85rem; }
  .tag__frame { inline-size: 3rem; }
  .findings { padding: 1.2rem 1.1rem 1.25rem; }
  .findings__list li { padding-inline-start: 2.6rem; }
  .prose { font-size: 1.125rem; }
}
@media (max-width: 359px) {
  .top__row { gap: 0.35rem; }
  .brand { gap: 0.35rem; }
  .brand__mark { inline-size: 26px; block-size: 18px; }
  .brand__name { font-size: 0.95rem; }
  .menu summary, .lang summary { padding-inline: 0.45rem; gap: 0.3rem; }
}

/* ---- motion: one slide, the film into its window; none when the reader asks for less ---- */
@media (prefers-reduced-motion: reduce) {
  .win__film { transition: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---- print: the text, not the controls ---- */
@media print {
  .house-bar, .house, .nav, .menu, .lang, .strip, .skip, .contents, .mount__go, .mount__key, .foot__links { display: none !important; }
  .has-bar { padding-block-end: 0; }
  body { background: #fff; }
  .top { border: 0; }
}
