/* uniconduct.com — the stylesheet for every page of the site.
 *
 * Which rules a page gets is decided by a class on its <body>:
 *
 *   .home      the company home page (/)
 *   .app-home  an app's landing page (/apps/intuition_check/)
 *   .doc       a text page — privacy, how-to, Q&A, support, version history;
 *              each one also carries .doc-<page> for the few rules of its own
 *
 * Two conventions keep this file honest:
 *
 * 1. A rule that belongs to one family is written :where(.doc) p, never
 *    .doc p. :where() adds nothing to specificity, so the scoped rule carries
 *    exactly the weight the same selector had while it lived inside the page,
 *    and the class-based rules layered on top of it (.page-eyebrow, .effective,
 *    .lang-menu a …) keep winning exactly as they did before.
 * 2. A rule with no family prefix is either shared by every page, or named
 *    after something only one family has (.release, .toc, .platform-card) —
 *    in which case it is written inside that family's section.
 *
 * Where two rules carry the same weight, order decides: shared first, then
 * the family, then the single page, then the narrow-screen rules at the end.
 */

/* ============================================================
   Tokens, reset, page
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f7f5f2;
  --surface: #ffffff;
  --ink: #0f0e0d;
  --ink-muted: #6b6860;
  --accent: #1a1a2e;
  --accent2: #c8974a;
  --border: rgba(15,14,13,0.1);

  /* How much room an in-page link has to leave above its target. The nav is
     pinned to the top of the window, so without this the first line of the
     target lands underneath it. site.js measures the nav — which takes two or
     three rows on a narrow screen, and more in some languages — and keeps this
     in step; 6rem is the fallback for the one-row nav when the script has not
     run. */
  --nav-clearance: 6rem;
}

html { scroll-behavior: smooth; }

/* Every element that can be the target of a "#" link, named once: whatever
   carries the id is what the browser scrolls to — a <section> on the how-to
   page, a group label in the Q&A, the release entry in the version history. */
[id] { scroll-margin-top: var(--nav-clearance); }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Navigation
   ============================================================ */

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.55rem 1.75rem;
  padding: 1.25rem 4rem;
  background: rgba(247,245,242,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: none;
}

/* The app's name and the llms.txt link beside it: one group at the start of
   the nav, so the link stays next to the name when the nav wraps. */
.nav-brand {
  display: flex; align-items: baseline; gap: 1rem;
}

/* The nav wraps instead of overflowing: when the links no longer fit beside
   the brand and the language picker, they move to a row of their own. */
.nav-links {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 0.35rem 1.75rem;
  margin-inline-start: auto;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  /* The llms.txt link's underline, so the label reads as a link (Nick, 2026-11-21). */
  border-bottom: 1px solid var(--accent2);
  padding-bottom: 1px;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--ink); }

.nav-version, .nav-llms {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--accent2);
  padding-bottom: 1px;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-version:hover, .nav-llms:hover { color: var(--accent2); }

/* ============================================================
   Language switcher — generated markup, identical on every page
   ============================================================ */

/* A flex box, so the height of the <details> is the height of its summary.
   Left as a block it would be as tall as a line of body text (1rem × 1.7)
   instead, and centring that taller box next to the nav's other items lifted
   the language name ~2.5px above their baseline. */
.lang-switch { position: relative; display: flex; align-items: center; }
.lang-switch summary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  list-style: none; cursor: pointer;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { color: var(--ink); }
.lang-chevron { transition: transform 0.2s; }
.lang-switch[open] .lang-chevron { transform: rotate(180deg); }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 0.6rem);
  /* Roomy, but never wider than the window: site.js pulls the menu back
     inside when it hangs over an edge, and that only works if it fits there
     in the first place. min() because a plain min-width would win over
     max-width and keep the overflow on a narrow phone. */
  /* Wide enough that no note wraps: the widest row is German's "Die
     Übersetzung kann Ungenauigkeiten enthalten", which puts the menu's
     max-content width at 323px, and the scrollbar takes 11px more once the
     list overflows. 21.5rem = 344px covers both with a little slack for a
     font that measures differently. A phone still clamps this to the window
     via max-width below, and there a note may wrap again — nothing else
     fits. */
  min-width: min(21.5rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  /* Thirteen languages, and eight of them carry a note under the name, so the
     list is already ~600px tall — on a short window (a phone turned sideways,
     a laptop with a small browser window) its foot falls past the bottom of
     the window. The menu hangs off the fixed nav, so it takes no part in the
     page's own scrolling and whatever is down there cannot be reached at all.
     Hence: never taller than what is left of the window below the nav, and
     scroll inside when it would be.

     --nav-clearance is the nav's measured height (site.js) — the nav wraps to
     two or three rows on a narrow screen and in a language with long words, so
     a fixed number would be wrong exactly where the room is tightest. Its
     stylesheet default is a one-row nav, which is the right guess when the
     script has not run.

     dvh rather than vh: on a phone vh is the tallest the window ever gets, so
     with the URL bar showing, the last entries would sit under it. Only
     overflow-y is set — that makes overflow-x compute to auto rather than
     visible, so an autonym too long for the box still scrolls into view
     instead of being clipped. */
  max-height: calc(100dvh - var(--nav-clearance) - 1rem);
  overflow-y: auto;
  /* Reaching the end of the list must not start scrolling the page behind it. */
  overscroll-behavior: contain;
  margin: 0; padding: 0.35rem; list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15,14,13,0.10);
}
/* macOS keeps the scrollbar hidden until something scrolls ("Show scroll bars:
   When scrolling", the default) and brings it back only for a scroll gesture,
   which a mouse cannot make. With a mouse there was therefore no bar to grab
   and — worse — nothing on screen saying the list goes on past the fold.

   Styling the pseudo-element is what opts the menu out of that overlay bar and
   gives it an ordinary one, present the whole time the list overflows. It has
   to be the pseudo-element and not the standard `scrollbar-width` /
   `scrollbar-color`: WebKit honours those *instead of* the pseudo-elements and
   then keeps the overlay. Measured in WebKit on this page — the bar occupies
   0px of layout width with the standard properties set, 11px without them. */
.lang-menu::-webkit-scrollbar { width: 11px; }
.lang-menu::-webkit-scrollbar-track { background-color: transparent; }
.lang-menu::-webkit-scrollbar-thumb {
  /* background-color, not the background shorthand: the shorthand would reset
     background-clip, and the transparent border plus content-box clip is what
     insets the thumb from the menu's rounded edge. */
  background-color: rgba(15,14,13,0.32);
  background-clip: content-box;
  border: 3px solid transparent;
  border-radius: 999px;
}
.lang-menu::-webkit-scrollbar-thumb:hover { background-color: rgba(15,14,13,0.5); }
/* Firefox has no ::-webkit-scrollbar, and there the standard properties are
   the way to the same result — so they are kept, but only where the pseudo-
   element is unknown, which is exactly where they do not cost the overlay. */
@supports not selector(::-webkit-scrollbar) {
  .lang-menu { scrollbar-width: thin; scrollbar-color: rgba(15,14,13,0.32) transparent; }
}
.lang-menu li { margin: 0; padding: 0; font-size: inherit; line-height: inherit; }
.lang-menu a {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  text-decoration: none;
  border-bottom: none;
}
.lang-menu a:hover { background: var(--bg); color: var(--ink); }
/* The tick marking the language being read sits before its name. Every row
   reserves the same room for it, empty on the rest, so the names line up in a
   column instead of the current one being indented on its own. It is ::before
   rather than a first flex item, and the box is empty rather than holding a
   see-through tick, so a screen reader is not told "tick" on all thirteen
   rows — the row already carries aria-current, which is what states it. In a
   right-to-left language the leading side flips with the flex direction, so
   the mark follows the text. */
.lang-menu a::before {
  content: "";
  flex: none;
  width: 1em;
  font-size: 0.85rem;
}
.lang-menu a[aria-current]::before { content: "✓"; color: var(--accent2); }
.lang-entry { display: flex; flex-direction: column; gap: 0.1rem; }
.lang-entry > span:first-child { white-space: nowrap; }
.lang-note, .lang-page-note {
  font-size: 0.72rem;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-muted);
}
.lang-page-note { max-width: 11rem; }

/* ============================================================
   Footer
   ============================================================ */

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* margin: 0 keeps the paragraph clear of the bottom margin the text pages
   give every <p>. */
footer p { font-size: 0.82rem; color: var(--ink-muted); margin: 0; }

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--ink);
  border-bottom: none;
}

.footer-link {
  font-size: 0.82rem; color: var(--ink-muted); text-decoration: none;
  border-bottom: 1px solid var(--accent2);
}

/* ============================================================
   Pieces used by more than one family
   ============================================================ */

/* The margin is the page's business: the text pages set it below the box, the
   how-to above and below, the app landing above only. */
.highlight-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--accent2);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.8;
}

.highlight-box strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.5rem;
}

/* A word that names something on screen — a button, a screen, a setting. */
.ui {
  font-style: normal;
  color: var(--ink);
  font-weight: 400;
}

/* ============================================================
   The two landing pages share their hero and their "coming soon" block;
   sizes and spacing are set per page further down.
   ============================================================ */

.hero {
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(200,151,74,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(26,26,46,0.06) 0%, transparent 60%),
    var(--bg);
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1.5rem;
  position: relative; z-index: 1;
}

.hero-title {
  font-family: var(--font-serif);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ink);
  position: relative; z-index: 1;
}

.hero-title em { font-style: italic; color: var(--accent2); }

.hero-sub {
  margin-top: 2rem;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--ink-muted);
  position: relative; z-index: 1;
}

.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  background: rgba(255,255,255,0.6);
}

.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent2);
}

.coming { background: var(--accent); color: #f7f5f2; }
.coming .section-label { color: var(--accent2); }

.coming-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.5rem;
  border: 1px solid rgba(200,151,74,0.4);
  border-radius: 100px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--accent2);
}

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* ============================================================
   The company home page — .home
   ============================================================ */

/* The nav is the shared one: same markup, same rules, same wrapping — see
   "Navigation" above and the narrow-screen rules at the end. */

:where(.home) section { padding: 7rem 4rem; }
:where(.home) .section-label { margin-bottom: 3rem; }

:where(.home) .hero {
  min-height: 100vh;
  padding: 0 4rem 5rem;
}
:where(.home) .hero-eyebrow { opacity: 0; animation: fadeUp 0.8s 0.2s forwards; }
:where(.home) .hero-title {
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  max-width: 14ch;
  opacity: 0; animation: fadeUp 0.8s 0.4s forwards;
}
:where(.home) .hero-sub {
  max-width: 42ch;
  opacity: 0; animation: fadeUp 0.8s 0.6s forwards;
}

.hero-platform {
  margin-top: 3rem;
  display: flex; gap: 1rem; flex-wrap: wrap;
  position: relative; z-index: 1;
  opacity: 0; animation: fadeUp 0.8s 0.8s forwards;
}

.pill-icon { font-size: 0.95rem; }

.hero-line {
  position: absolute; bottom: 0; inset-inline-start: 4rem;
  width: 1px; height: 80px;
  background: linear-gradient(to bottom, transparent, var(--accent2));
  z-index: 1;
  opacity: 0; animation: fadeIn 1s 1.2s forwards;
}

.coming-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 0.7rem 1.5rem;
  border: 1px solid rgba(200,151,74,0.5);
  border-radius: 100px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--accent2);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.coming-cta:hover { background: rgba(200,151,74,0.12); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  color: var(--ink);
}

.about-body {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.9;
}

.about-body p + p { margin-top: 1.2rem; }

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 4rem;
}

.platform-card {
  background: var(--surface);
  padding: 2.5rem 2rem;
  transition: background 0.3s;
}

.platform-card:hover { background: #fdfcfb; }

/* "Planned" beside a platform the studio has not shipped for yet (the
   iPad and Mac cards, the macOS and iPadOS pills): quieter than the name. */
.platform-status {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  vertical-align: middle;
  margin-left: 0.35rem;
}

.platform-icon {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  display: block;
}

.platform-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.platform-desc {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

.coming-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.coming-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.coming-title em { font-style: italic; color: var(--accent2); }

.coming-body {
  font-size: 1rem;
  color: rgba(247,245,242,0.6);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}

.contact-detail {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-top: 0.4rem;
}

.contact-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:first-child { border-top: 1px solid var(--border); }

.contact-item-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.3rem;
}

.contact-item-value {
  font-size: 1rem;
  color: var(--ink);
}

/* ============================================================
   An app's landing page — .app-home
   ============================================================ */

:where(.app-home) section { padding: 5rem 4rem; }
:where(.app-home) .section-label { margin-bottom: 2rem; }
/* The v2 app page (.app-brief): the same pieces, about half the space between the sections (Nick, 2026-10-30). The
   old app page keeps its spacing. */
:where(.app-brief) section { padding-block: 2.5rem; }
:where(.app-brief) .hero { padding-bottom: 2.5rem; min-height: 50vh; }
:where(.app-brief) .section-label { margin-bottom: 1rem; }
:where(.app-brief) .section-heading { margin-bottom: 1rem; }

:where(.app-home) .hero {
  min-height: 70vh;
  padding: 9rem 4rem 5rem;
}
:where(.app-home) .hero-title {
  font-size: clamp(3rem, 7vw, 6rem);
  max-width: 16ch;
}
:where(.app-home) .hero-sub { max-width: 52ch; }

:where(.app-home) .highlight-box { margin-top: 1.5rem; max-width: 70ch; }
:where(.app-home) .coming-badge { margin-top: 1.5rem; }

.hero-pills {
  margin-top: 2.5rem;
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  position: relative; z-index: 1;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.section-body {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.9;
  max-width: 70ch;
}

.section-body p + p { margin-top: 1rem; }
/* A short list inside a section's text (the app page's "Separately from the
   subscription" pair). Logical properties, so the bullets sit on the right on
   the RTL pages. */
.section-body ul { margin-block-start: 0.4rem; padding-inline-start: 1.3rem; }
.section-body p + ul { margin-block-start: 0.4rem; }

.coming .section-heading { color: #f7f5f2; }
.coming .section-body { color: rgba(247,245,242,0.7); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 3rem;
}

.feature-card {
  background: var(--surface);
  padding: 2.2rem 1.8rem;
}

.feature-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.75;
}

.set-list {
  margin-top: 3rem;
  display: flex; flex-direction: column;
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.set-row { background: var(--surface); padding: 1.6rem 1.8rem; }

.set-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}

.set-name { font-family: var(--font-serif); font-size: 1.2rem; }

.set-meta {
  margin-top: 0.3rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 70ch;
}

/* Every image in the set, wrapping to as many rows as it takes — Zodiac
   ships 13 tiles, so a non-wrapping strip would overflow a phone. */
.set-thumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.set-thumbs img { width: 52px; height: 52px; border-radius: 10px; display: block; }
/* The "?" cover is never an answer — dashed outline sets it apart. */
.set-thumbs .is-cover { outline: 1px dashed rgba(15,14,13,0.28); outline-offset: 2px; }

.set-price {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  white-space: nowrap;
}

.store-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  margin-inline-start: 1rem;
  padding: 0.7rem 1.5rem;
  border: 1px solid rgba(200,151,74,0.5);
  border-radius: 100px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--accent2);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.store-cta:hover { background: rgba(200,151,74,0.12); }

.links-row {
  display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 1.5rem;
}
.links-row a {
  font-size: 0.9rem; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--accent2); padding-bottom: 2px;
}
.links-row a:hover { color: var(--accent2); }

/* ============================================================
   The text pages — .doc
   ============================================================ */

:where(.doc) main {
  max-width: 720px;
  margin: 0 auto;
  padding: 9rem 2rem 6rem;
}

:where(.doc) a { color: var(--ink); border-bottom: 1px solid var(--accent2); text-decoration: none; }
:where(.doc) a:hover { color: var(--accent2); }

.page-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1rem;
}

:where(.doc) h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.effective {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

:where(.doc) section { margin-bottom: 2.8rem; }

:where(.doc) h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

:where(.doc) p {
  font-size: 0.97rem;
  color: var(--ink-muted);
  line-height: 1.9;
  margin-bottom: 0.8rem;
}

:where(.doc) p:last-child { margin-bottom: 0; }

:where(.doc) ul, :where(.doc) ol { margin: 0 0 0.8rem 1.2rem; }

:where(.doc) li {
  font-size: 0.97rem;
  color: var(--ink-muted);
  line-height: 1.9;
  margin-bottom: 0.4rem;
}

:where(.doc) ol li { padding-inline-start: 0.3rem; }

:where(.doc) .highlight-box { margin-bottom: 3rem; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ---------- The help, generated from the app's texts — .doc-help ----------
   (i18n/make_help_pages.py, /apps/intuition_check/). Drawn the way the app draws it
   (DocView, Nick 2026-10-30): one mark each, never bold for a label or a link — labels
   and paths in Settings italic in the text colour, links inside the help underlined in
   the text colour, web and mail links in the system's link blue without an underline;
   colour only where nothing else marks the text (the button icons, the footnote marks,
   and labels in the scripts without an italic). */
:where(.doc-help) .ui { font-style: italic; color: inherit; font-weight: inherit; }
:where(.help-no-italic) .ui { font-style: normal; color: var(--accent2); }
:where(.doc-help) main a { color: inherit; border-bottom: 1px solid currentColor; }
:where(.doc-help) main a:hover { color: var(--ink); }
:where(.doc-help) a.help-web { color: #007aff; border-bottom: none; }
:where(.doc-help) a.help-web:hover { text-decoration: underline; }
:where(.doc-help) .help-icon { color: var(--accent2); vertical-align: -0.15em; }
:where(.doc-help) .help-fn { font-size: 0.7em; line-height: 0; }
:where(.doc-help) .help-fn a { color: var(--accent2); border-bottom: none; }
:where(.doc-help) .page-eyebrow a { color: inherit; border-bottom: none; }
:where(.doc-help) .page-eyebrow a:hover { border-bottom: 1px solid currentColor; }
:where(.doc-help) h2 { margin-top: 2.4rem; }
:where(.doc-help) h3 { font-size: 1.05rem; font-weight: 500; color: var(--ink); margin: 1.6rem 0 0.5rem; }
:where(.doc-help) .help-date { font-size: 0.85rem; }
/* A long word in a big heading («конфиденциальности») ran past the edge of an SE:
   headings hyphenate by the page's language, and break as a last resort. */
:where(.doc-help) :is(h1, h2) { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
/* The policy's PDF, under its title. */
:where(.doc-help) .help-pdf { font-size: 0.9rem; margin: -0.5rem 0 1rem; }
/* A version's date on the line of its number, on the same baseline; it wraps under
   the number only when the line has no room. The heading keeps its top margin. */
:where(.doc-help) .help-dated { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 1rem; }
:where(.doc-help) .help-dated > :is(h2, h3, h4) { margin-bottom: 0; }
:where(.doc-help) .help-dated > .help-date { margin: 0; font-size: 0.95rem; color: var(--ink-muted); }
:where(.doc-help) .help-dated + * { margin-top: 0.6rem; }
:where(.doc-help) .help-topics { list-style: none; margin: 1.5rem 0 2.5rem; padding: 0; }
:where(.doc-help) .help-topics li { margin: 0; border-top: 1px solid var(--border); }
:where(.doc-help) .help-topics li:last-child { border-bottom: 1px solid var(--border); }
:where(.doc-help) .help-topics a { display: block; padding: 0.7rem 0; border-bottom: none; color: var(--ink); }
:where(.doc-help) .help-sources li { font-size: 0.85rem; }
/* The title in the text colour, the citation around it muted; a long address breaks
   anywhere instead of running past the edge of a phone screen. */
:where(.doc-help) .help-src-title { color: var(--ink); }
:where(.doc-help) .help-sources a { overflow-wrap: anywhere; }
:where(.doc-help) .help-about { color: var(--ink-muted); }
/* An SVG example (the app's code block): exactly as written, monospaced on a plate; long lines scroll
   sideways instead of wrapping, as in the app. */
:where(.doc-help) .help-code { margin: 0.8rem 0 1.2rem; padding: 0.8rem 1rem; overflow-x: auto;
  background: var(--surface, rgba(127, 127, 127, 0.1)); border-radius: 10px; font-size: 0.82rem; line-height: 1.5;
  white-space: pre; tab-size: 2; }
:where(.doc-help) .help-code code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); }
:where(.doc-help) .help-code-block { margin: 0.8rem 0 1.2rem; }
:where(.doc-help) .help-code-block .help-code { margin: 0; }
/* Under the example, at its end (as in the app): Copy, then the file to download. */
:where(.doc-help) .help-code-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center;
  gap: 0.4rem 0.9rem; margin: 0.45rem 0 0; font-size: 0.85rem; }
/* Copy (a button) and Save (a download link) look the same: two buttons. The font parts one by one, not the
   `font` shorthand: site_coverage.py refuses the shorthand (2026-11-15). */
:where(.doc-help) .help-copy, :where(.doc-help) .help-save { font-family: inherit; font-size: inherit;
  font-weight: inherit; font-style: inherit; line-height: 1.4; color: var(--ink);
  background: transparent; border: 1px solid var(--border); border-radius: 8px; padding: 0.2rem 0.7rem;
  cursor: pointer; text-decoration: none; display: inline-block; }
:where(.doc-help) .help-save:hover, :where(.doc-help) .help-copy:hover { border-color: var(--ink-muted); }
:where(.doc-help) .help-copy.copied::after { content: " ✓"; }
/* A prompt (2026-11-15): translated text to copy into a chatbot — wraps, unlike code, and follows the page's
   direction. The formats row: the title, then Copy and the file to download, on one plate. */
:where(.doc-help) .help-prompt { white-space: pre-wrap; overflow-wrap: anywhere; }
:where(.doc-help) .help-formats { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 0.5rem 1rem; padding: 0.7rem 1rem; background: var(--surface, rgba(127, 127, 127, 0.1)); border-radius: 10px; }
:where(.doc-help) .help-formats .help-code-actions { margin: 0; }
:where(.doc-help) .help-formats-title { font-weight: 600; color: var(--ink); }
:where(.doc-help) .help-back { margin-top: 3rem; }
/* The one-page app page (.help-app, Nick 2026-10-30): every topic a section — the topic's h2, its own headings one
   level down — then Availability, the contents, the sources and the credits in a smaller type. */
:where(.help-app) .help-head { display: flex; gap: 2rem; align-items: flex-start; justify-content: space-between; }
:where(.help-app) .help-head-text { flex: 1; min-width: 0; }
:where(.help-app) h1 { margin-bottom: 0.75rem; }
/* The pages of their own (policy, its history, the version history): a title, not a poster — the shared .doc size
   (up to 3.5rem) read far too big over a legal text (Nick, 2026-10-30). The app page keeps the big name. */
:where(.help-doc) h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; }
:where(.help-app) .help-line { font-size: 1rem; color: var(--ink-muted); line-height: 1.7; margin-bottom: 1rem; }
:where(.help-app) .help-store-link { font-size: 0.9rem; color: var(--ink); border-bottom: 1px solid var(--accent2); }
/* The second head link, to the AI section (2026-11-18). */
:where(.help-app) .help-store-link + .help-store-link { margin-inline-start: 1.5rem; }
:where(.help-app) .help-qr { flex: none; border-bottom: none; line-height: 0; background: #fff; padding: 0.5rem;
  border-radius: 12px; border: 1px solid var(--border); margin-top: 0.4rem; }
@media (max-width: 640px) { :where(.help-app) .help-qr { display: none; } }
:where(.help-app) main > section { margin: 2.5rem 0 0; padding-top: 2rem; border-top: 1px solid var(--border); }
:where(.help-app) main > section > h2 { font-size: 1.9rem; margin: 0 0 0.5rem; }
:where(.help-app) main > section > h3:first-of-type { margin-top: 1rem; }
:where(.help-app) .help-head + section { margin-top: 2rem; }
/* Two footnote marks side by side read as one number ("23"): a comma between them, as the app's NBSP does. */
:where(.doc-help) .help-fn + .help-fn::before { content: ","; color: var(--accent2); }
:where(.help-app) .help-sources li { line-height: 1.55; margin-bottom: 0.9rem; }
:where(.help-app) .help-sources-section > h2 { font-size: 1.3rem; }
:where(.help-app) .help-credits { padding-top: 1.2rem; }
:where(.help-app) .help-topics { margin: 1rem 0 1.5rem; }
:where(.help-app) .help-topics li { line-height: 1.5; }
:where(.help-app) .help-topics a { padding: 0.5rem 0; display: flex; justify-content: space-between; }
:where(.help-app) .help-topics a::after { content: "→"; color: var(--ink-muted); }
:where(.help-app) .help-topics a:is(:lang(ar), :lang(he), :lang(ur))::after { content: "←"; }   /* every RTL language (ur added 2026-11-12) */
:where(.help-app) h3 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 400; color: var(--ink); margin: 1.8rem 0 0.6rem; }
:where(.help-app) h4 { font-size: 1.02rem; font-weight: 500; color: var(--ink); margin: 1.3rem 0 0.4rem; }
:where(.help-app) .help-credits, :where(.help-app) .help-credits p { font-size: 0.8rem; }
:where(.help-app) .help-credits > h2 { font-size: 1rem; }

/* ---------- How-to — .doc-how-to ---------- */

/* Its sections are the targets of the table of contents; the room they leave
   for the nav comes from [id] at the top of this file. */
:where(.doc-how-to) section { margin-bottom: 3rem; }
:where(.doc-how-to) h2 {
  font-size: 1.5rem;
  margin-bottom: 0.9rem;
}
:where(.doc-how-to) .highlight-box { margin: 1.5rem 0; }

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--accent2);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 3rem;
}
.toc strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.75rem;
}
.toc ol { margin: 0 0 0 1.1rem; }
.toc li { margin-bottom: 0.35rem; }

/* ---------- Q&A — .doc-qa ---------- */

:where(.doc-qa) h2::before {
  content: "Q.";
  color: var(--accent2);
  font-style: italic;
  margin-inline-end: 0.4rem;
}

.group-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
  margin: 2.5rem 0 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
/* The intro paragraph already draws a bottom rule; the first group label must not add a second one. */
.effective + .group-label { border-top: none; padding-top: 0; }

/* ---------- Version history — .doc-versions ---------- */

/* No dated intro line under the title here, so the title carries the gap. */
:where(.doc-versions) h1 { margin-bottom: 3.5rem; }

/* Timeline of releases */
.release {
  position: relative;
  padding: 0 0 2.6rem 1.75rem;
  border-inline-start: 1px solid var(--border);
}
.release:last-child { border-left-color: transparent; padding-bottom: 0; }

.release::before {
  content: "";
  position: absolute;
  left: -5px; top: 0.35rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent2);
}
.release.latest::before {
  box-shadow: 0 0 0 4px rgba(200,151,74,0.18);
}

.release-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

/* The id of a release sits on the .release entry, not on this line, so the
   room for the nav is left there — by [id] at the top of this file. */
.release-version {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1;
}

.release-date {
  font-size: 0.82rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.tag-new {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
  border: 1px solid var(--accent2);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  align-self: center;
}

/* The gap between releases is the entry's own padding, so the list adds none. */
.release > ul { margin-bottom: 0; }

:where(.doc-versions) li strong { color: var(--ink); font-weight: 500; }

/* ============================================================
   Narrow screens
   ============================================================ */

/* Below this width the nav no longer fits on one line in every language, so
   the links take a row of their own under the brand and the language picker —
   on every page, and with nothing hidden or pushed off screen. */
@media (max-width: 900px) {
  .nav-links {
    order: 2; flex: 1 0 100%; margin-inline-start: 0; column-gap: 1.25rem;
  }
  .nav-link, .nav-version { white-space: nowrap; }
}

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }

  /* On phones the nav can take two or three rows, so it flows with the page
     (still pinned while scrolling) instead of covering the content. The home
     page keeps its nav fixed: its hero is a full viewport tall with the words
     at the bottom, so the rows the nav takes cover nothing. */
  :where(.app-home, .doc) nav { position: sticky; left: auto; right: auto; }

  :where(.home) .hero,
  :where(.home) section,
  :where(.home) footer { padding-inline-start: 1.5rem; padding-inline-end: 1.5rem; }
  :where(.home) .hero { padding-bottom: 4rem; }
  :where(.home) .about-grid,
  :where(.home) .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  :where(.home) .platforms-grid { grid-template-columns: 1fr; }
  :where(.home) .hero-line { inset-inline-start: 1.5rem; }

  :where(.app-home) .hero,
  :where(.app-home) section,
  :where(.app-home) footer { padding-inline-start: 1.5rem; padding-inline-end: 1.5rem; }
  :where(.app-home) .hero { min-height: 0; padding-top: 2rem; padding-bottom: 3rem; }
  :where(.app-home) .features-grid { grid-template-columns: 1fr; }
  :where(.app-home) .set-row { padding: 1.3rem 1.4rem; gap: 1rem; }
  :where(.app-home) .set-thumbs img { width: 44px; height: 44px; }

  :where(.doc) main { padding: 2.25rem 1.5rem 4rem; }
  :where(.doc) footer { padding: 1.5rem; }
}

@media (max-width: 560px) {
  .nav-links { column-gap: 1.1rem; }
}

/* ============================================================
   Scripts without an italic, and scripts that cannot be tracked
   ============================================================ */

/* The Devanagari, Arabic and Hebrew faces have no italic, and neither has
   the Thai sans (fonts.css). A browser that slants an upright face on its own
   produces a defect, not an italic, so style synthesis is off on these pages:
   the gold accent words stay upright, in colour only, and a Latin word inside
   them (Apple, Check.) keeps DM Serif Display's real italic. Weight synthesis
   stays on, as on every other page. Bengali (2026-11-08): Hind Siliguri and
   Noto Serif Bengali have no italic either — same treatment. Tamil (2026-11-10):
   Hind Madurai has no italic and the gold accent stays upright, as for
   Bengali (Noto Serif Tamil's italic is not served) — same treatment.
   Marathi (2026-11-10): Mukta and Noto Serif Devanagari have no italic
   either — same treatment. Gujarati, Kannada, Malayalam, Odia, Punjabi and
   Telugu (2026-11-11): their faces (fonts.css) have no italic either — same
   treatment. Urdu (Noto Nastaliq Urdu, 2026-11-11): no italic either — same
   treatment. */
:lang(hi), :lang(th), :lang(ar), :lang(he), :lang(bn), :lang(ta), :lang(mr), :lang(gu), :lang(kn), :lang(ml), :lang(or), :lang(pa), :lang(te), :lang(ur) { font-synthesis: weight; }

/* In running text an <em> would now look like the words around it; it gets
   the treatment of .ui instead — full ink, one weight up. The gold accent
   words of the headlines are not running text and are excluded: this
   selector has the same specificity as `.hero-title em` and comes later, so
   without the :not() it turned the home page's gold «Apple.» black. */
em:is(:lang(hi), :lang(th), :lang(ar), :lang(he), :lang(bn), :lang(ta), :lang(mr), :lang(gu), :lang(kn), :lang(ml), :lang(or), :lang(pa), :lang(te), :lang(ur)):not(.hero-title em, .coming-title em) {
  color: var(--ink);
  font-weight: 400;
}

/* Letter-spacing pulls joined Arabic letters apart, breaks the headline
   bar of Devanagari (Hindi, Marathi), Bengali, Gurmukhi and Odia (and their conjuncts),
   detaches Tamil, Gujarati, Kannada, Malayalam and Telugu vowel signs, pulls Urdu's
   joined letters apart as Arabic's, and lifts Thai vowel and tone marks off their consonants,
   so the tracked labels, the nav and the hero title are set solid on those
   pages. The language is tested on the element itself, not on an ancestor,
   so the Latin brand lettering marked lang="en" (the «Intuition Check.»
   titles) keeps the English tracking and gold italic. */
:is(.nav-link, .nav-version, .lang-switch summary,
  .highlight-box strong, .hero-eyebrow, .hero-title, .pill, .section-label,
  .coming-badge, .coming-cta, .contact-item-label, .set-price, .store-cta,
  .page-eyebrow, .toc strong, .group-label, .release-date, .tag-new, .platform-status):is(:lang(ar), :lang(hi), :lang(th), :lang(bn), :lang(ta), :lang(mr), :lang(gu), :lang(kn), :lang(ml), :lang(or), :lang(pa), :lang(te), :lang(ur)) {
  letter-spacing: normal;
}

/* Tamil headings (2026-11-10, Nick). Noto Serif Tamil is a wide face and
   Tamil words are long: the longest word of a heading, set alone, measured
   in WebKit (em of the heading's size) — home title «உருவாக்கப்படுவது» 11.89,
   about heading 11.68, policy h1 8.16 and h2 12.42, app page topic h2 11.63
   and h3 15.28. A word never breaks, so each size is capped where its
   longest word just fits the narrowest column, 100vw - 3rem (the 1.5rem side
   padding under 768px), with ~5 % to spare: cap = (100vw - 3rem) / N, N =
   the word's em × 1.05. Above a phone's width the cap is larger than the
   size itself, so nothing else moves. The home title also has to fit its
   14ch box at every width, and the box scales with the type: the title is
   set at 0.6 of its usual size (needed 0.624 = box 7.42 em / word 11.89 em)
   and the box widened by 1 / 0.6, so it keeps its pixel width. The language
   is tested on the element itself, as above; each rule restates its base
   rule's size, and the topic-h2 rule leaves out the sources and credits
   sections, whose own smaller h2 rules must keep winning. */
:where(.home) .hero-title:lang(ta) {
  font-size: min(calc(clamp(3.5rem, 8vw, 7.5rem) * 0.6), calc((100vw - 3rem) / 12.5));
  max-width: calc(14ch / 0.6);
}
.about-heading:lang(ta) { font-size: min(clamp(2rem, 4vw, 3.2rem), calc((100vw - 3rem) / 12.3)); }
:where(.doc-privacy) h1:lang(ta) { font-size: min(clamp(2.2rem, 5vw, 3.5rem), calc((100vw - 3rem) / 8.6)); }
:where(.doc-privacy) h2:lang(ta) { font-size: min(1.4rem, calc((100vw - 3rem) / 13)); }
:where(.help-app main > section:not(.help-sources-section, .help-credits)) > h2:lang(ta) { font-size: min(1.9rem, calc((100vw - 3rem) / 12.2)); }
:where(.help-app) h3:lang(ta) { font-size: min(1.3rem, calc((100vw - 3rem) / 16)); }

/* Malayalam and Telugu headings on a phone (2026-11-11, the font step; the
   Tamil method above). Longest word set alone in WebKit, em of the heading's
   size: Malayalam home title «Apple-⁠നായി» 6.0 (the word joiner keeps it one
   word), app page topic h2 and h3 «സ്ഥിതിവിവരക്കണക്കുകൾ» 13.55; Telugu home
   title «రూపొందించేది» 5.5. With the base sizes these words were wider than
   the 320–430 pt column (the Malayalam and Telugu titles already were with
   the system fonts). Same cap, N = the word's em × 1.05; from ~430 pt up the
   cap is larger than the size, so desktop does not move. Every other heading
   of the six new languages fits at 320 pt (checked per word). */
:where(.home) .hero-title:lang(ml) { font-size: min(clamp(3.5rem, 8vw, 7.5rem), calc((100vw - 3rem) / 6.3)); }
:where(.help-app main > section:not(.help-sources-section, .help-credits)) > h2:lang(ml) { font-size: min(1.9rem, calc((100vw - 3rem) / 14.2)); }
:where(.help-app) h3:lang(ml) { font-size: min(1.3rem, calc((100vw - 3rem) / 14.2)); }
:where(.home) .hero-title:lang(te) { font-size: min(clamp(3.5rem, 8vw, 7.5rem), calc((100vw - 3rem) / 5.8)); }

/* Kazakh and Bulgarian headings (2026-11-12, the font step; the Tamil method
   above). Longest word set alone in WebKit, em of the heading's size, in
   Uniconduct Serif KK / CYR: Kazakh home title «Қолданбаларымыздың» 10.34 —
   wider than the title's 14ch box (7.42 em) at every width, as it already
   was with the system fonts — so, as for Tamil, the title is set at 0.68 of
   its size (needed 0.72) with the box widened by 1 / 0.68, plus the phone
   cap; Bulgarian home title «Приложения,» 5.98 and policy h1 «поверителност»
   7.78 only overflowed the 320–360 pt column: the phone cap alone, N = the
   word's em × 1.05. Every other heading of both languages fits at 320 pt. */
:where(.home) .hero-title:lang(kk) {
  font-size: min(calc(clamp(3.5rem, 8vw, 7.5rem) * 0.68), calc((100vw - 3rem) / 10.9));
  max-width: calc(14ch / 0.68);
}
:where(.home) .hero-title:lang(bg) { font-size: min(clamp(3.5rem, 8vw, 7.5rem), calc((100vw - 3rem) / 6.3)); }
:where(.doc-privacy) h1:lang(bg) { font-size: min(clamp(2.2rem, 5vw, 3.5rem), calc((100vw - 3rem) / 8.2)); }

/* Long words of the other languages on a narrow phone (2026-11-12; the Tamil
   method above). Every heading word of every page of all 53 languages set
   alone in WebKit at 320 / 360 / 375 / 390 pt: these were wider than the
   column (most only at 320–360 pt) — the box ran past the screen edge, and on
   the da, de, fi, nb, ru and uk policy pages the page scrolled sideways; the
   app's own policy, policy history and version history titles hyphenated or
   broke inside the word instead. Longest word, em of the heading's size: home
   title — el «φτιαγμένες» 4.94, hu «platformjaira.» 6.34, lt «platformoms.»
   6.15, pt-BR / pt-PT «plataformas» 5.47, ru «Приложения» 5.80, tr
   «platformumuz:» 6.78; policy title — da «Anonymitetspolitik» 9.08, de
   «Datenschutzrichtlinie» 10.13, fi «Tietosuojakäytäntö» 9.11, nb
   «Personvernerklæring» 9.97, ro «confidențialitate» 7.77, ru
   «конфиденциальности» 10.38, sv «Integritetspolicy» 7.84, uk
   «конфіденційності» 8.49; the app's document titles — de
   «Datenschutzrichtlinie» 10.13, nl «Wijzigingsgeschiedenis» 10.82, ru
   «конфиденциальности» 10.38. Same cap, N = the word's em × 1.05; from ~450 pt
   up the cap is larger than the size, so nothing moves on a wider screen. A
   word is never broken: a size fits every one of them. */
:where(.home) .hero-title:lang(el) { font-size: min(clamp(3.5rem, 8vw, 7.5rem), calc((100vw - 3rem) / 5.2)); }
:where(.home) .hero-title:lang(hu) { font-size: min(clamp(3.5rem, 8vw, 7.5rem), calc((100vw - 3rem) / 6.7)); }
:where(.home) .hero-title:lang(lt) { font-size: min(clamp(3.5rem, 8vw, 7.5rem), calc((100vw - 3rem) / 6.5)); }
:where(.home) .hero-title:is(:lang(pt-BR), :lang(pt-PT)) { font-size: min(clamp(3.5rem, 8vw, 7.5rem), calc((100vw - 3rem) / 5.8)); }
:where(.home) .hero-title:lang(ru) { font-size: min(clamp(3.5rem, 8vw, 7.5rem), calc((100vw - 3rem) / 6.1)); }
:where(.home) .hero-title:lang(tr) { font-size: min(clamp(3.5rem, 8vw, 7.5rem), calc((100vw - 3rem) / 7.2)); }
:where(.doc-privacy) h1:lang(da) { font-size: min(clamp(2.2rem, 5vw, 3.5rem), calc((100vw - 3rem) / 9.6)); }
:where(.doc-privacy) h1:lang(de) { font-size: min(clamp(2.2rem, 5vw, 3.5rem), calc((100vw - 3rem) / 10.7)); }
:where(.doc-privacy) h1:lang(fi) { font-size: min(clamp(2.2rem, 5vw, 3.5rem), calc((100vw - 3rem) / 9.6)); }
:where(.doc-privacy) h1:lang(nb) { font-size: min(clamp(2.2rem, 5vw, 3.5rem), calc((100vw - 3rem) / 10.5)); }
:where(.doc-privacy) h1:lang(ro) { font-size: min(clamp(2.2rem, 5vw, 3.5rem), calc((100vw - 3rem) / 8.2)); }
:where(.doc-privacy) h1:lang(ru) { font-size: min(clamp(2.2rem, 5vw, 3.5rem), calc((100vw - 3rem) / 10.9)); }
:where(.doc-privacy) h1:lang(sv) { font-size: min(clamp(2.2rem, 5vw, 3.5rem), calc((100vw - 3rem) / 8.3)); }
:where(.doc-privacy) h1:lang(uk) { font-size: min(clamp(2.2rem, 5vw, 3.5rem), calc((100vw - 3rem) / 9)); }
:where(.help-doc) h1:lang(de) { font-size: min(clamp(1.7rem, 3.2vw, 2.4rem), calc((100vw - 3rem) / 10.7)); }
:where(.help-doc) h1:lang(nl) { font-size: min(clamp(1.7rem, 3.2vw, 2.4rem), calc((100vw - 3rem) / 11.4)); }
:where(.help-doc) h1:lang(ru) { font-size: min(clamp(1.7rem, 3.2vw, 2.4rem), calc((100vw - 3rem) / 10.9)); }

/* Urdu (2026-11-11). The /ur/ pages are set in Noto Nastaliq Urdu (fonts.css),
   whose ink reaches ~2.3 em above the baseline (stacked letters) and ~0.6 em
   below it: the face's own line is 2.5 em. With the site's line heights one
   line's descenders met the next line's ascenders. Measured on every block of
   the /ur/ pages (each pair of adjacent lines rasterised at the column widths
   of 320–1 920 pt, decisions/site-fonts.md): the headings, set in the Bold, no
   longer touch at 2.1; running text touches in ~5 % of line pairs at 2.1 and
   in at most 2 of ~1 000, by a few pixels, at 2.5. The Latin brand lettering
   marked lang="en" is not touched (the language is tested on the element
   itself). */
:is(h1, h2, h3, .hero-title, .about-heading, .contact-heading):lang(ur) { line-height: 2.1; }
:is(p, li, dd, td):lang(ur) { line-height: 2.5; }
.highlight-box:lang(ur) { line-height: 2.5; }
/* The home hero is a full viewport tall with its words at the bottom and the
   nav fixed over its top. The Urdu title's three or four tall lines can make
   the words taller than the viewport (phones up to 375 pt wide, desktop
   windows up to ~1 080 pt tall), and the nav then covered the eyebrow and the
   title's first line. Room for the nav (at most 121 pt tall, three rows at
   320 pt) at the top of the hero: where the words fit, the padding sits in
   the empty part of the full-height box and nothing moves; where they do not,
   the hero grows instead of running under the nav. */
:where(.home) .hero:lang(ur) { padding-top: 8rem; }

/* The language menu's entries inherit the page's face. Where that face lacks
   letters of an entry's name or note, those letters come from another face
   inside the word. Each such entry names its own faces instead: the variables
   resolve on the entry, which carries its language, so it looks as it does on
   its own pages. Found by checking every entry on every language's pages
   against fonts.css and the files (2026-11-12, decisions/site-fonts.md):
   - «Қазақ тілі» on /bg/ (Manrope), /ru/ and /uk/ (Onest): no Kazakh letters;
   - «Tiếng Việt» on every other page: DM has no Vietnamese letters;
   - on /vi/, Be Vietnam Pro has no č ř š ž ů ł ś ż ć ų ū ț ş ť, so the Czech,
     Croatian, Lithuanian, Polish, Romanian, Slovak, Slovenian and Turkish
     entries go back to DM, as on every other page;
   - on /ar/, Noto Sans Arabic has no ی ں ہ ے for the Urdu note;
   - on /pa/, WebKit took π of the Greek note from the system's own «Mukta
     Mahee» (the site's file has no Greek; the name matches) and the other
     Greek letters from the fallback face. */
html:lang(bg) .lang-menu a:lang(kk),
html:lang(ru) .lang-menu a:lang(kk),
html:lang(uk) .lang-menu a:lang(kk),
.lang-menu a:lang(vi),
html:lang(vi) .lang-menu a:lang(cs),
html:lang(vi) .lang-menu a:lang(hr),
html:lang(vi) .lang-menu a:lang(lt),
html:lang(vi) .lang-menu a:lang(pl),
html:lang(vi) .lang-menu a:lang(ro),
html:lang(vi) .lang-menu a:lang(sk),
html:lang(vi) .lang-menu a:lang(sl),
html:lang(vi) .lang-menu a:lang(tr),
html:lang(ar) .lang-menu a:lang(ur),
html:lang(pa) .lang-menu a:lang(el) { font-family: var(--font-sans); }
