/* Ārstniecības augi sievietēm — skice. Herbarium label theme. */

@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(fonts/alegreya-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(fonts/alegreya-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya"; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url(fonts/alegreya-latin-ext-wght-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya"; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url(fonts/alegreya-latin-wght-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Alegreya Sans: 400 / 500 / 700, normal + italic, latin + latin-ext */
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/alegreya-sans-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/alegreya-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/alegreya-sans-latin-ext-400-italic.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/alegreya-sans-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/alegreya-sans-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/alegreya-sans-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-style: italic; font-weight: 500; font-display: swap; src: url(fonts/alegreya-sans-latin-ext-500-italic.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya Sans"; font-style: italic; font-weight: 500; font-display: swap; src: url(fonts/alegreya-sans-latin-500-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/alegreya-sans-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/alegreya-sans-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-style: italic; font-weight: 700; font-display: swap; src: url(fonts/alegreya-sans-latin-ext-700-italic.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya Sans"; font-style: italic; font-weight: 700; font-display: swap; src: url(fonts/alegreya-sans-latin-700-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #F3F6F1;
  --sheet: #FFFFFF;
  --ink: #1E2B24;
  --muted: #56645C;
  --rule: #C9D3CB;
  --green: #2F7A52;
  --green-dark: #1F5A3B;
  /* source categories, hues kept from the old site; Sievietes moved to rose so the two pale yellows don't collide */
  --c-monografija: #8EBF7F;  --c-monografija-ink: #2E5A22;
  --c-vecmates: #F2C94C;     --c-vecmates-ink: #6B4E00;
  --c-sievietes: #EFC3CC;    --c-sievietes-ink: #7A2E44;
  --c-ticejumi: #DDBE8C;     --c-ticejumi-ink: #5E4316;
  --stop: #B3261E;  --stop-bg: #FBE9E7;
  --unknown: #5B4B8A; --unknown-bg: #EEEAF6;
  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --measure: 68ch;
  --r: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.125rem/1.5 var(--sans);
}
a { color: var(--green-dark); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
i, .latin { font-style: italic; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--sheet); padding: .5rem 1rem; z-index: 10; }

/* ---------- header ---------- */
.top { background: var(--sheet); border-bottom: 1px solid var(--rule); }
.top-in { max-width: 72rem; margin: 0 auto; padding: .75rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--ink); text-decoration: none; display: flex; align-items: baseline; gap: .6rem; }
.stamp {
  font-family: var(--sans); font-weight: 700; font-size: .78rem; color: var(--stop);
  border: 1.5px solid var(--stop); border-radius: 2px; padding: .05rem .4rem; transform: rotate(-3deg); display: inline-block; white-space: nowrap;
}
.nav { display: flex; flex-wrap: wrap; gap: .15rem 1.1rem; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: .25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { border-bottom-color: var(--green); color: var(--green-dark); }
.nav a.nav-warn { color: var(--stop); }

main:focus { outline: none; }
main { max-width: 72rem; margin: 0 auto; padding: 2rem 1.25rem 3rem; min-height: 60vh; }
.lead { font-size: 1.3rem; line-height: 1.45; color: var(--ink); max-width: 40ch; }

/* ---------- search ---------- */
.search { display: flex; gap: .5rem; max-width: 40rem; margin: 1.25rem 0 .75rem; }
.search input {
  flex: 1; min-width: 0; font: inherit; font-size: 1.2rem; padding: .7rem .9rem;
  border: 2px solid var(--ink); border-radius: var(--r); background: var(--sheet); color: var(--ink);
}
.search button, .btn {
  font: inherit; font-weight: 700; padding: .7rem 1.1rem; border-radius: var(--r); cursor: pointer;
  border: 2px solid var(--green-dark); background: var(--green-dark); color: #fff;
}
.hint { color: var(--muted); font-size: 1rem; }
.quick { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.quick a { display: inline-block; padding: .2rem .6rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--sheet); text-decoration: none; color: var(--ink); font-size: 1rem; }
.quick a:hover { border-color: var(--green); }

/* ---------- the evidence ladder (start page) ---------- */
.ladder { margin: 2.5rem 0; max-width: 52rem; }
.ladder ol { list-style: none; margin: 1rem 0 0; padding: 0; }
.rung {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 0 1rem; align-items: stretch;
  border-top: 1px solid var(--rule); padding: 1rem 0;
}
.rung-bar { border-radius: 2px; background: var(--c); min-height: 3rem; position: relative; }
.rung:nth-child(1) .rung-bar { width: 100%; }
.rung:nth-child(2) .rung-bar { width: 78%; }
.rung:nth-child(3) .rung-bar { width: 58%; }
.rung:nth-child(4) .rung-bar { width: 40%; }
.rung h3 { margin: 0 0 .2rem; display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; }
.rung h3 a { color: var(--ink); }
.rung .n { font-family: var(--sans); font-weight: 400; font-size: 1rem; color: var(--muted); }
.rung p { margin: 0; }
.ladder-note { color: var(--muted); font-size: 1rem; margin-top: .5rem; }

.cat-monografija { --c: var(--c-monografija); --ci: var(--c-monografija-ink); }
.cat-vecmates    { --c: var(--c-vecmates);    --ci: var(--c-vecmates-ink); }
.cat-sievietes   { --c: var(--c-sievietes);   --ci: var(--c-sievietes-ink); }
.cat-ticejumi    { --c: var(--c-ticejumi);    --ci: var(--c-ticejumi-ink); }

/* source tag used everywhere */
.src { display: inline-flex; align-items: center; gap: .35rem; font-size: .95rem; font-weight: 700; color: var(--ci); white-space: nowrap; }
.src::before { content: ""; width: .8rem; height: .8rem; border-radius: 1px; background: var(--c); border: 1px solid color-mix(in srgb, var(--ci) 35%, transparent); }

/* four-cell strip: which sources mention a plant */
.strip { display: inline-grid; grid-template-columns: repeat(4, 1.05rem); gap: 2px; vertical-align: middle; }
.strip span { height: 1.05rem; border-radius: 1px; background: var(--c); border: 1px solid color-mix(in srgb, var(--ci) 30%, transparent); }
.strip span.off { background: transparent; border: 1px dashed var(--rule); }

/* ---------- warnings ---------- */
.warn {
  display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .95rem;
  color: #fff; background: var(--stop); padding: .1rem .5rem; border-radius: 2px; white-space: nowrap;
}
.warn::before { content: "!"; display: inline-grid; place-items: center; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: #fff; color: var(--stop); font-size: .8rem; }
.warn.unk { background: var(--unknown); }
.warn.unk::before { content: "?"; color: var(--unknown); }
.alert {
  border-left: 6px solid var(--stop); background: var(--stop-bg); padding: 1rem 1.25rem; margin: 1.25rem 0; max-width: 52rem;
}
.alert.unk { border-color: var(--unknown); background: var(--unknown-bg); }
.alert h2, .alert h3 { color: var(--stop); margin-bottom: .35rem; }
.alert.unk h2, .alert.unk h3 { color: var(--unknown); }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }

/* ---------- plant index ---------- */
.letters { display: flex; flex-wrap: wrap; gap: .25rem; margin: 1rem 0; padding: 0; list-style: none; }
.letters a { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; border: 1px solid var(--rule); border-radius: 2px; background: var(--sheet); text-decoration: none; font-family: var(--serif); font-weight: 700; color: var(--ink); }
.plants { list-style: none; margin: 0; padding: 0; columns: 2 22rem; column-gap: 3rem; }
.plants li { break-inside: avoid; }
.plants .letter { font-family: var(--serif); font-weight: 800; font-size: 1.6rem; color: var(--green); padding: .75rem 0 .15rem; }
.plant-row { display: grid; grid-template-columns: auto 1fr auto; gap: .1rem .75rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.plant-row:hover .pn { text-decoration: underline; }
.plant-row .pn { font-weight: 700; font-size: 1.15rem; }
.plant-row .pl { grid-column: 2 / 4; grid-row: 2; color: var(--muted); font-size: .95rem; font-style: italic; }
.plant-row .strip { grid-row: 1 / 3; }

/* ---------- browse / filters ---------- */
.browse { display: grid; grid-template-columns: 17rem 1fr; gap: 2rem; align-items: start; }
.filters { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); padding: 1rem; position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; }
.filters summary { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; cursor: pointer; }
.filters fieldset { border: 0; padding: 0; margin: 1rem 0 0; }
.filters legend { font-weight: 700; margin-bottom: .3rem; }
.filters label { display: flex; gap: .5rem; align-items: center; padding: .15rem 0; cursor: pointer; font-size: 1.02rem; }
.filters label .c { margin-left: auto; color: var(--muted); font-size: .9rem; }
.filters select, .filters input[type=search] { width: 100%; font: inherit; padding: .45rem .5rem; border: 1px solid var(--muted); border-radius: var(--r); background: var(--sheet); color: var(--ink); }
.filters .reset { margin-top: 1rem; font: inherit; background: none; border: 0; color: var(--green-dark); text-decoration: underline; cursor: pointer; padding: 0; }
.summary-line { color: var(--muted); margin: 0 0 1rem; }

/* ---------- record lists ---------- */
.group { margin: 0 0 2rem; }
.group > h3 { display: flex; align-items: baseline; gap: .75rem; padding: .5rem .75rem; margin: 0; background: color-mix(in srgb, var(--c) 45%, var(--sheet)); border-top: 4px solid var(--c); font-size: 1.2rem; }
.group > h3 .n { font-family: var(--sans); font-weight: 400; font-size: 1rem; color: var(--muted); }
.group > p.gexpl { font-size: 1rem; color: var(--muted); margin: .4rem .75rem .25rem; }
.recs { list-style: none; margin: 0; padding: 0; background: var(--sheet); border: 1px solid var(--rule); border-top: 0; }
.rec { padding: .65rem .75rem; border-top: 1px solid var(--rule); display: grid; gap: .15rem; }
.rec:first-child { border-top: 0; }
.rec.is-stop { background: var(--stop-bg); box-shadow: inset 4px 0 0 var(--stop); }
.rec.is-unk { background: var(--unknown-bg); box-shadow: inset 4px 0 0 var(--unknown); }
.rec-head { display: flex; flex-wrap: wrap; gap: .2rem .75rem; align-items: baseline; }
.rec-ind { font-weight: 700; font-size: 1.12rem; }
.rec-plant { font-weight: 500; }
.rec-plant .latin { color: var(--muted); font-weight: 400; }
.rec-meta { display: flex; flex-wrap: wrap; gap: .1rem 1.25rem; margin: 0; font-size: 1rem; }
.rec-meta div { display: flex; gap: .35rem; }
.rec-meta dt { color: var(--muted); }
.rec-meta dd { margin: 0; }
.rec-meta .na { color: var(--muted); font-style: italic; }
.rec-ref { font-size: 1rem; }
.rec-ref a { font-weight: 700; }
.more { margin: .5rem 0 0; }

/* ---------- plant page ---------- */
.label-sheet {
  background: var(--sheet); border: 1px solid var(--ink); padding: 1.25rem 1.5rem; max-width: 52rem; margin: .5rem 0 1.5rem;
  display: grid; grid-template-columns: 1fr auto; gap: .5rem 2rem; position: relative;
}
.label-sheet h1 { margin: 0; }
.label-sheet .latin-big { font-family: var(--serif); font-style: italic; font-size: 1.35rem; margin: 0; }
.label-sheet dl { grid-column: 1 / -1; display: grid; grid-template-columns: max-content 1fr; gap: .2rem 1rem; margin: .5rem 0 0; font-size: 1rem; border-top: 1px solid var(--rule); padding-top: .6rem; }
.label-sheet dt { color: var(--muted); }
.label-sheet dd { margin: 0; }
.label-sheet .side { text-align: right; display: grid; gap: .35rem; justify-items: end; align-content: start; }
.crumbs { font-size: 1rem; color: var(--muted); margin: 0 0 .5rem; }

/* ---------- index tables (indications, periods) ---------- */
.idx { list-style: none; padding: 0; margin: 0; columns: 2 20rem; column-gap: 3rem; max-width: 60rem; }
.idx li { break-inside: avoid; border-bottom: 1px solid var(--rule); }
.idx a { display: flex; gap: 1rem; justify-content: space-between; padding: .45rem 0; text-decoration: none; color: var(--ink); }
.idx a:hover span:first-child { text-decoration: underline; }
.idx .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.periods { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0; max-width: 60rem; border-top: 1px solid var(--rule); }
.periods a { display: block; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.periods strong { font-family: var(--serif); font-size: 1.35rem; display: block; }
.periods span { color: var(--muted); }

/* ---------- long text (research) ---------- */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2rem; }
.prose blockquote { margin: 1rem 0; padding: .25rem 0 .25rem 1rem; border-left: 3px solid var(--c-monografija); font-family: var(--serif); font-size: 1.15rem; }
.prose blockquote cite { display: block; font-family: var(--sans); font-style: normal; font-size: .95rem; color: var(--muted); margin-top: .25rem; }
.docs { list-style: none; padding: 0; margin: 1rem 0; max-width: 52rem; }
.docs li { border-top: 1px solid var(--rule); padding: .9rem 0; display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: center; }
.docs li:last-child { border-bottom: 1px solid var(--rule); }
.docs .t { font-weight: 700; font-size: 1.15rem; }
.docs .d { grid-column: 1; color: var(--muted); font-size: 1rem; }
.docs .btn { grid-column: 2; grid-row: 1 / 3; text-decoration: none; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem 2rem; margin: 1rem 0 2rem; max-width: 52rem; padding: 0; list-style: none; }
.facts li { border-top: 2px solid var(--ink); padding-top: .4rem; font-size: 1rem; }
.facts b { display: block; font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; }
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem 2.5rem; margin: 1rem 0 2.5rem; max-width: 60rem; }
.paths h3 { margin-bottom: .25rem; }
.paths p { font-size: 1.02rem; margin: 0; }

/* research notes on a plant page, glossary, page references */
.note { max-width: 52rem; margin: 1.25rem 0 2rem; padding: 1rem 1.25rem; background: var(--sheet); border: 1px solid var(--rule); border-left: 6px solid var(--c-monografija); }
.note h2 { font-size: 1.3rem; }
.note blockquote, .alert blockquote { margin: .75rem 0; padding: .1rem 0 .1rem 1rem; border-left: 3px solid var(--rule); font-family: var(--serif); font-size: 1.08rem; }
.note blockquote cite, .alert blockquote cite { display: block; font-family: var(--sans); font-style: normal; font-size: .92rem; color: var(--muted); margin-top: .2rem; }
.note p:last-child { margin-bottom: 0; }
.idx small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.3; }
.gloss { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.25rem; }
.gloss dt { font-weight: 700; }
.gloss dd { margin: 0; }
@media (max-width: 760px) { .gloss { grid-template-columns: 1fr; gap: .1rem; } .gloss dd { margin-bottom: .6rem; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); background: var(--sheet); }
.foot-in { max-width: 72rem; margin: 0 auto; padding: 1.5rem 1.25rem 2rem; display: grid; grid-template-columns: 2fr 1fr; gap: 1rem 3rem; font-size: 1rem; }
.foot .disclaimer { border-left: 4px solid var(--stop); padding-left: 1rem; }
.foot .disclaimer strong { color: var(--stop); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }

.loading { color: var(--muted); }
.empty { padding: 1rem; background: var(--sheet); border: 1px dashed var(--rule); }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  body { font-size: 1.0625rem; }
  .top-in { padding: .6rem 1rem; }
  .nav { margin-left: 0; width: 100%; gap: .1rem .9rem; font-size: 1rem; }
  main { padding: 1.25rem 1rem 2.5rem; }
  .browse { grid-template-columns: 1fr; gap: 1rem; }
  .filters { position: static; max-height: none; }
  .label-sheet { grid-template-columns: 1fr; padding: 1rem; }
  .label-sheet .side { text-align: left; justify-items: start; }
  .rung { grid-template-columns: 2.5rem 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .search button { padding: .7rem .8rem; }
  .docs li { grid-template-columns: 1fr; }
  .docs .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: .4rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .top .nav, .filters, .search { display: none; } }
