/* Hallmark · macrostructure: Search-First landing → Index-First results
 * nav: N13 inline search pill (results only; the landing IS the search)
 * footer: Ft4 dense colophon · theme: Almanac · enrichment: none (typographic)
 * tone: editorial · audience: general reader
 * motion: facet-toggle · row-hover  (2 primitives)
 * contrast: measured against --color-paper, all body text ≥ 4.5:1
 * responsive: no horizontal overflow at 320 / 375 / 414 / 768 (measured in-frame)
 * pre-emit critique: P5 H5 E5 S5 R5 V4
 */

@import url("/static/tokens.css");

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

html, body {
  overflow-x: clip;          /* clip, never hidden — keeps position:sticky alive */
  margin: 0;
  padding: 0;
}

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.u-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  /* Never animated — the ring must appear the instant focus lands. */
}

/* ── Nav · N13 inline search pill ─────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav__mark {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.nav__mark-name {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-accent);
}

.nav__mark-kind {
  font-size: var(--text-xs);
  color: var(--color-ink-3);
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.nav__search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  max-width: 34rem;
  border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: var(--radius-md);
  background: var(--color-paper);
  padding: 0 var(--space-sm);
  transition: border-color var(--dur-fast) var(--ease-out);
}

.nav__search:focus-within { border-color: var(--color-accent); }

.nav__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: var(--color-ink);
  padding: var(--space-xs) 0;
}

.nav__input::placeholder { color: var(--color-ink-3); }
.nav__input:focus { outline: none; }
.nav__input::-webkit-search-cancel-button { filter: grayscale(1) opacity(0.5); }

.nav__hint {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-ink-3);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-sm);
  padding: 1px var(--space-2xs);
  flex-shrink: 0;
}

/* Type-ahead dropdown ─────────────────────────────────────────────────── */

.nav__search { position: relative; }

.sugs {
  position: absolute;
  top: calc(100% + var(--space-2xs));
  left: -1px;
  right: -1px;
  z-index: 20;
  background: var(--color-paper);
  border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px -8px oklch(22% 0.01 60 / 0.28);
  overflow: hidden;
  max-height: 60vh;
  overflow-y: auto;
}

.sugs[hidden] { display: none; }

.sug {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  text-decoration: none;
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.sug:last-child { border-bottom: 0; }
.sug:hover,
.sug.is-active { background: var(--color-paper-2); }

.sug__word {
  font-weight: 600;
  color: var(--color-accent);
  flex-shrink: 0;
  overflow-wrap: anywhere;
  min-width: 0;
}

.sug__gloss {
  font-size: var(--text-sm);
  color: var(--color-ink-3);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Search scope — two radios styled as a segmented control. Real radios, so
   the form submits them and keyboard/AT users get the native semantics. */
.nav__scope {
  display: flex;
  gap: 1px;
  flex-shrink: 0;
  background: var(--color-rule);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.scope {
  font-size: var(--text-xs);
  color: var(--color-ink-3);
  background: var(--color-paper-2);
  padding: 3px var(--space-xs);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.scope input { position: absolute; opacity: 0; pointer-events: none; }
.scope:hover { background: var(--color-paper-3); }
.scope.is-on { background: var(--color-accent); color: var(--color-paper); }
.scope:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 1px; }

/* Active filter chips ─────────────────────────────────────────────────── */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  padding-bottom: var(--space-sm);
}

.chip {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2xs);
  font-size: var(--text-xs);
  text-decoration: none;
  color: var(--color-accent-2);
  background: var(--color-accent-wash);
  border: var(--rule-hair) solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 2px var(--space-xs);
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.chip:hover { background: var(--color-paper-3); }
.chip__x { font-weight: 700; }

/* ── Layout ───────────────────────────────────────────────────────────── */

.layout {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: start;
  padding: var(--space-xl) var(--space-lg);
  max-width: 78rem;
  margin: 0 auto;
}

/* ── Facet rail ───────────────────────────────────────────────────────── */

.facets {
  position: sticky;
  top: 4.5rem;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  padding-right: var(--space-xs);
}

.facet { border-bottom: var(--rule-hair) solid var(--color-rule); }

.facet__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-xs);
  padding: var(--space-sm) 0;
  cursor: pointer;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  color: var(--color-ink-2);
  list-style: none;
}

.facet__head::-webkit-details-marker { display: none; }
.facet__head:hover { color: var(--color-ink); }

.facet__count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-ink-3);
}

.facet__list {
  list-style: none;
  margin: 0 0 var(--space-sm);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.facet__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-xs);
  padding: var(--space-2xs) var(--space-xs);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  transition: background-color var(--dur-fast) var(--ease-out);
}

.facet__item:hover { background: var(--color-paper-3); color: var(--color-ink); }

.facet__item.is-active {
  background: var(--color-accent-wash);
  color: var(--color-accent-2);
  font-weight: 600;
}

.facet__label {
  min-width: 0;
  overflow-wrap: anywhere;
  display: flex;
  align-items: baseline;
  gap: var(--space-2xs);
}

/* A drawn box rather than a real checkbox: each option is a link carrying the
   whole filter state, which keeps multi-select working without JavaScript. */
.facet__box {
  flex-shrink: 0;
  width: 0.85em;
  height: 0.85em;
  border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: 1px;
  font-size: 0.7em;
  line-height: 0.8;
  text-align: center;
  align-self: center;
  color: var(--color-paper);
}

.facet__item.is-active .facet__box {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.facet--flag { padding: var(--space-sm) 0; }

.facet__gloss {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-ink-3);
  font-weight: 400;
}

.facet__n {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-ink-3);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* ── Results ──────────────────────────────────────────────────────────── */

.results { min-width: 0; }

.results__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding-bottom: var(--space-md);
  border-bottom: var(--rule-hair) solid var(--color-rule-strong);
}

.results__intro {
  margin: 0;
  max-width: var(--measure);
  color: var(--color-ink-2);
  font-size: var(--text-md);
}

.results__count { margin: 0; font-size: var(--text-md); }
.results__count strong { font-variant-numeric: tabular-nums; }

.results__tools {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.sorts {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  font-size: var(--text-xs);
}

.sorts__label {
  color: var(--color-ink-3);
  letter-spacing: 0.04em;
}

.sorts__opt {
  color: var(--color-ink-2);
  text-decoration: none;
  border-bottom: var(--rule-hair) solid transparent;
  white-space: nowrap;
}

.sorts__opt:hover { border-bottom-color: var(--color-rule-strong); }

.sorts__opt.is-on {
  color: var(--color-accent);
  border-bottom-color: currentColor;
  font-weight: 600;
}

.results__clear {
  font-size: var(--text-sm);
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: var(--rule-hair) solid currentColor;
  white-space: nowrap;
}

.empty {
  padding: var(--space-2xl) 0;
  color: var(--color-ink-2);
  max-width: var(--measure);
}

.entries { list-style: none; margin: 0; padding: 0; }

.entry-row { border-bottom: var(--rule-hair) solid var(--color-rule); }

/* The row IS the link — Index-First's "the links themselves are the buttons". */
.entry-row__link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2xs) var(--space-xs);
  padding: var(--space-sm) var(--space-xs);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.entry-row__link:hover { background: var(--color-paper-2); }

/* Three ranks, so the eye lands on the headword first and the rest reads as
   annotation: the word itself, then its grammatical marks, then the gloss. */
.entry-row__word {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-accent);
  overflow-wrap: anywhere;
  min-width: 0;
  letter-spacing: -0.005em;
}

.entry-row__pos,
.entry-row__lang {
  font-size: var(--text-xs);
  color: var(--color-ink-3);
  font-style: normal;
}

.entry-row__gloss {
  /* Full width on its own line once the row wraps -- a definition that
     starts mid-row and continues under the headword is hard to scan. */
  flex: 1 1 26rem;
  min-width: 0;
  color: var(--color-ink-2);
  font-size: var(--text-base);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Type marks, not chips. A boxed badge on every row is the single loudest
   thing on the page, and it repeats "kelime" down the whole list -- the
   common case earns the least ink. Idioms and affixes are the informative
   ones, so only they carry any colour. */
.badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.01em;
  color: var(--color-ink-3);
  flex-shrink: 0;
  opacity: 0.75;
}

.badge--word { opacity: 0.45; }
.badge--idiom { color: var(--color-accent); opacity: 1; }
.badge--affix { color: var(--color-ink-2); }

/* ── Pager ────────────────────────────────────────────────────────────── */

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
}

.pager__step {
  text-decoration: none;
  color: var(--color-accent);
  font-size: var(--text-sm);
  border-bottom: var(--rule-hair) solid currentColor;
  white-space: nowrap;
}

.pager__pos {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-ink-3);
  font-variant-numeric: tabular-nums;
}

/* ── Entry page ───────────────────────────────────────────────────────── */

.entry {
  max-width: 52rem;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.entry__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-sm);
  padding-bottom: var(--space-md);
  /* A hairline in ink, not a 2px slab: the headword is already the loudest
     thing on the page and does not need underlining to prove it. */
  border-bottom: var(--rule-hair) solid var(--color-ink);
}

.entry__word {
  font-family: var(--font-display);
  font-size: var(--text-display-s);
  font-weight: 700;
  font-style: normal;          /* roman display — italic headers are banned */
  line-height: var(--leading-tight);
  margin: 0;
  color: var(--color-accent);
  overflow-wrap: anywhere;
  min-width: 0;
}

.entry__pron,
.entry__infl {
  font-size: var(--text-md);
  color: var(--color-ink-2);
}

/* Word class, set beside the headword in italic as the printed dictionary
   does -- "söz is." -- rather than boxed on a line of its own. */
.entry__pos {
  font-size: var(--text-md);
  font-style: italic;
  color: var(--color-ink-2);
  cursor: help;
}

.entry__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  padding: var(--space-sm) 0;
}

/* Most entries carry no verb class, no inflection and no site id, and an empty
   flex row still spends its padding. */
.entry__meta:empty { display: none; }

/* The printed dictionary sets these as type, not as chips: the field label is
   italic, the period tag and the siglum are simply lighter. Boxing all three
   turns a definition into a row of buttons -- five or six outlines around a
   single sense. Only the entry-level meta keeps a frame, because there it is
   a summary rather than part of a sentence. */
.meta-chip {
  font-size: var(--text-xs);
  color: var(--color-ink-2);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-sm);
  padding: 1px var(--space-2xs);
  background: var(--color-paper-2);
  cursor: help;
}

.meta-chip--mono { font-family: var(--font-mono); }

.tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-ink-3);
  cursor: help;
}

.domain {
  font-style: italic;
  color: var(--color-ink-2);
  cursor: help;
}

.domain--register { font-style: italic; color: var(--color-ink-3); }

/* A sense's own word class. Mono rather than italic so it reads as a
   grammatical mark and not as another field label sitting next to it. */
.sense__pos {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-ink-3);
  cursor: help;
}


.src {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-ink-3);
  cursor: help;
}

.section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-3);
  /* More air above than below: the label belongs to what follows it. */
  margin: var(--space-2xl) 0 var(--space-md);
  padding-bottom: var(--space-2xs);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-xs);
}

.section-label__n {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.etymology__text {
  margin: 0;
  font-size: var(--text-md);
  overflow-wrap: anywhere;
}

.etymology__lang {
  font-weight: 600;
  color: var(--color-accent);
  margin-right: var(--space-2xs);
}

.arabic {
  font-size: var(--text-xl);
  line-height: 1.9;
  margin: var(--space-sm) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  color: var(--color-ink);
}

.senses { list-style: none; margin: 0; padding: 0; }

/* No rule between senses. A dictionary entry is one continuous reading, and
   a hairline under every sense chops thirteen meanings into thirteen cards;
   the numeral and the space already do the separating. */
.sense {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
}

.sense + .sense { padding-top: var(--space-md); }

.sense__n {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-ink-3);
  font-variant-numeric: tabular-nums;
  text-align: right;
  padding-top: 0.28em;
}

.sense__body { min-width: 0; }

.sense__text {
  margin: 0;
  max-width: var(--measure);
  font-size: var(--text-md);
  overflow-wrap: anywhere;
}

.sense__text .tag,
.sense__text .domain,
.sense__text .sense__pos { margin-right: 0.35em; }

.sense__examples {
  margin: var(--space-2xs) 0 0;
  color: var(--color-ink-2);
  font-size: var(--text-sm);
}

.sense__sources {
  margin: var(--space-2xs) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.xrefs {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.xref {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: var(--rule-hair) solid currentColor;
  font-size: var(--text-md);
}

.xref--dead {
  color: var(--color-ink-3);
  border-bottom-style: dotted;
  cursor: not-allowed;
}

.idioms {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: var(--space-xl);
}

.idioms li { break-inside: avoid; padding: 2px 0; }

.idioms a {
  color: var(--color-ink);
  text-decoration: none;
  border-bottom: var(--rule-hair) solid var(--color-rule);
  overflow-wrap: anywhere;
}

.idioms a:hover { border-bottom-color: var(--color-accent); color: var(--color-accent); }

.glyph-warning {
  margin-top: var(--space-xl);
  padding: var(--space-sm);
  border-left: 2px solid var(--color-rule-strong);
  background: var(--color-paper-2);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  max-width: var(--measure);
}

/* ── Abbreviation key ─────────────────────────────────────────────────── */

.abbr__lede {
  max-width: var(--measure);
  color: var(--color-ink-2);
  margin: var(--space-sm) 0 0;
}

.abbr {
  margin: 0;
  columns: 2;
  column-gap: var(--space-2xl);
}

.abbr--wide { columns: 1; }

.abbr__row {
  break-inside: avoid;
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: var(--space-xs);
  padding: 2px 0;
}

.abbr--wide .abbr__row { grid-template-columns: 10rem minmax(0, 1fr); }

.abbr__code {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-accent);
  overflow-wrap: anywhere;
}

.abbr__exp {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  overflow-wrap: anywhere;
}

@media (max-width: 620px) {
  .abbr, .abbr--wide { columns: 1; }
  .abbr__row { grid-template-columns: 6rem minmax(0, 1fr); }
}

/* ── Landing ──────────────────────────────────────────────────────────────
   The front page asks for a word and shows nothing else. No header search
   (it would be the same field twice), no facet rail, no result list. */

.landing {
  min-height: 76vh;
  display: grid;
  place-items: center;
  padding: var(--space-2xl) var(--space-lg);
}

.landing__inner {
  width: 100%;
  max-width: 40rem;
  text-align: center;
}

.landing__mark {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  /* Larger than any heading inside the app: this is the one place the
     dictionary states its own name. */
  font-size: var(--text-display-s);
  color: var(--color-accent);
  overflow-wrap: anywhere;
}

.landing__kind {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-3);
  margin-top: var(--space-2xs);
}

.landing__blurb {
  margin: 0 auto var(--space-xl);
  max-width: 34rem;
  color: var(--color-ink-2);
}

.landing__search {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-md);
  border: var(--rule-hair) solid var(--color-rule-strong);
  border-radius: var(--radius-md);
  background: var(--color-paper);
  text-align: left;
}

.landing__search:focus-within { border-color: var(--color-accent); }

.landing__input {
  flex: 1 1 14rem;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-ink);
}

.landing__input:focus { outline: none; }
.landing__input::placeholder { color: var(--color-ink-3); }

.landing__scope {
  display: flex;
  gap: var(--space-2xs);
  flex-shrink: 0;
}

.landing__go {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: var(--space-2xs) var(--space-md);
  border: var(--rule-hair) solid transparent;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-paper);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.landing__go:hover { background: var(--color-accent-2); }
.landing__go:active { background: var(--color-accent-2); transform: translateY(1px); }
.landing__go:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.landing__links {
  margin-top: var(--space-lg);
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: var(--space-xs);
  font-size: var(--text-base);
}

.landing__adv { color: var(--color-accent); text-decoration: none; }
.landing__adv:hover { text-decoration: underline; }
.landing__sep { color: var(--color-ink-3); }

@media (max-width: 560px) {
  .landing { min-height: 68vh; padding-inline: var(--space-md); }
  .landing__search { padding-left: var(--space-sm); }
  /* The button drops to its own row before the field gets too narrow to
     type a headword into. */
  .landing__go { flex: 1 1 100%; }
}

/* ── Colophon · Ft4 ───────────────────────────────────────────────────── */

.colophon {
  border-top: var(--rule-hair) solid var(--color-rule-strong);
  margin-top: var(--space-3xl);
  padding: var(--space-xl) var(--space-lg) var(--space-2xl);
  max-width: 78rem;
  margin-inline: auto;
  font-size: var(--text-sm);
  color: var(--color-ink-3);
}

.colophon p { margin: 0 0 var(--space-xs); max-width: 76ch; }
.colophon__lede { color: var(--color-ink-2); }
.colophon__note { font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.7; }

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
  }
  .facets {
    position: static;
    max-height: none;
    overflow: visible;
    border-bottom: var(--rule-hair) solid var(--color-rule-strong);
    padding-bottom: var(--space-sm);
  }
  .idioms { columns: 1; }
}

@media (max-width: 560px) {
  .nav {
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
  }
  .nav__search { max-width: none; flex-basis: 100%; }
  .layout { padding: var(--space-lg) var(--space-md); }
  .entry { padding: var(--space-xl) var(--space-md); }
  .colophon { padding-inline: var(--space-md); }
  .entry-row__gloss { flex-basis: 100%; }
  .results__head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
