
:root{
  --paper:#ffffff; --paper2:#eaf2fb; --ink:#0f4d92; --soft:#2a6ab5;
  --mut:#7aa3cf; --rule:#b8d4ec; --hair:#d8e9f7; --accent:#db2014; --accent-d:#e97910;
  --morph:#8b1a10;   /* the self-syllable mark (.syl-self): quiet dark emphasis, never a link */
  --accent2:#64ab71; --gold:#f5e202;
}
*{box-sizing:border-box}
/* one shared, clearly visible keyboard-focus ring (replaces five per-control suppressions) */
:is(input,select,a,button,[tabindex]):focus-visible{outline:2px solid var(--accent);outline-offset:1px;}
/* skip link: first tab stop, visible only when focused */
.skip{position:absolute;left:-9999px;top:0;z-index:50;background:var(--paper);color:var(--accent-d);padding:8px 14px;border:1px solid var(--rule);}
.skip:focus{left:8px;}
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:sans-serif; font-size:18px; line-height:1.55;
  overflow-wrap:break-word;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}
.han{font-family:sans-serif;}
.lat{font-style:italic;}
.recon{font-style:italic;}
/* the leading star is REAL text (<span class="star">*</span>) at every emission site, never CSS
   content — ::before doesn't copy, so selections came out starless / inconsistently starred */
.star{color:var(--accent);}
.gl,.gloss{font-variant:small-caps; letter-spacing:.02em;}

/* links: quiet neutral underline at rest; vermilion only on hover */
a{color:var(--ink); text-decoration:none; border-bottom:1px solid var(--rule);}
a:hover{color:var(--accent); border-bottom-color:var(--accent);}
.brand .wm a,nav.main a{border-bottom:none;}
a.xref{color:var(--accent); border-bottom:1px dotted var(--accent);}

/* masthead */
.top{height:18px;background:linear-gradient(var(--accent) 0 6px,var(--accent2) 6px 12px,var(--gold) 12px 18px);}
/* one row: wordmark, then the sections, search pushed to the right edge; when the row runs out
   of width, flex-wrap drops the search onto its own right-aligned line (and ≤720px restacks) */
header.mast{max-width:1080px;margin:0 auto;padding:22px 28px 14px;display:flex;align-items:flex-end;
  gap:26px;border-bottom:1px solid var(--rule);flex-wrap:wrap;}
.brand{display:flex;flex-direction:column;line-height:1;}
.brand .wm{font-family:sans-serif;font-weight:600;font-size:26px;letter-spacing:.01em;
  font-optical-sizing:auto;}
nav.main{display:flex;gap:20px;font-variant:small-caps;letter-spacing:.07em;font-size:15px;}
.hsearch{margin-left:auto;}
nav.main a{color:var(--soft);} nav.main a:hover{color:var(--accent);}
nav.main a.active{color:var(--ink);border-bottom:2px solid var(--accent);padding-bottom:2px;}
.hsearch input{font-family:inherit;font-size:15px;padding:7px 11px;width:200px;border:1px solid var(--rule);
  background:var(--paper2);color:var(--ink);border-radius:2px;}
.hsearch input:focus{border-color:var(--accent);}

main{max-width:1080px;margin:0 auto;padding:34px 28px 90px;}
.cap{color:var(--mut);font-size:14px;margin:0 0 14px;}
footer{max-width:1080px;margin:0 auto;padding:24px 28px 60px;border-top:1px solid var(--rule);
  color:var(--mut);font-size:13.5px;}

/* home */
.home{max-width:600px;margin:7vh auto 0;text-align:center;}
.bigsearch{position:relative;text-align:left;}
.bigsearch input{width:100%;font-family:inherit;font-size:21px;padding:14px 18px;border:1.5px solid var(--ink);
  background:var(--paper2);border-radius:3px;}
.bigsearch input:focus{border-color:var(--accent);}
.drop{position:absolute;left:0;right:0;top:104%;background:var(--paper);border:1px solid var(--rule);
  border-radius:3px;box-shadow:0 10px 30px rgba(33,28,21,.10);z-index:9;overflow:hidden;display:none;}
.drop a{display:flex;gap:10px;align-items:baseline;padding:9px 15px;border-bottom:1px solid var(--rule);}
.drop a:last-child{border-bottom:none}
.drop a:hover,.drop a.active{background:var(--paper2);color:inherit;border-color:var(--rule);}  /* .active = keyboard active descendant (home.js) */
.drop .k{font-variant:small-caps;font-size:11px;color:var(--mut);width:46px;flex:none;letter-spacing:.08em;}
.entry{display:flex;flex-wrap:wrap;gap:10px 22px;justify-content:center;margin-top:28px;font-size:15px;}
.entry a{color:var(--soft);}
.entry a:hover{color:var(--accent);}

/* about */
.about p{margin:0 0 14px;}
.stats{display:flex;gap:34px;flex-wrap:wrap;margin:6px 0 18px;}
.stats .n{font-family:sans-serif;font-size:28px;color:var(--ink);line-height:1.1;font-variant-numeric:tabular-nums;}
.stats .l{font-variant:small-caps;letter-spacing:.08em;font-size:12px;color:var(--mut);}
.abbr{display:grid;grid-template-columns:max-content 1fr;gap:6px 16px;font-size:15px;margin:4px 0;}
.abbr dt{font-weight:700;} .abbr dd{margin:0;color:var(--soft);}

/* etymon page */
.ety-head{border-bottom:1px solid var(--rule);padding-bottom:14px;margin-bottom:24px;}
.ety-head .plg{font-variant:small-caps;letter-spacing:.08em;font-size:13px;color:var(--accent);}
.ety-head .pl{font-variant:small-caps;letter-spacing:.06em;font-size:13px;color:var(--accent);margin:10px 0 0;}
.ety-head .etno{float:right;font-family:sans-serif;font-size:14px;color:var(--mut);
  font-variant-numeric:tabular-nums;letter-spacing:.02em;}
.badge{font-variant:small-caps;letter-spacing:.08em;font-size:11px;padding:1px 8px;margin-left:8px;
  border-radius:2px;border:1px solid;vertical-align:middle;}
.badge.del{color:var(--accent);border-color:var(--accent);}
/* page titles are h1 elements (screen-reader landmark) styled entirely by class — the explicit
   font-weight/margins below override the UA's h1 defaults, so they render as they did as divs */
.ety-head .pf{font-family:sans-serif;font-size:44px;font-weight:400;line-height:1.1;margin:6px 0 4px;}
.vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.ety-head .pg{font-variant:small-caps;letter-spacing:.03em;font-size:20px;color:var(--soft);}
.crumbs{font-size:13px;color:var(--mut);margin:0 0 10px;}
.crumbs a{color:var(--soft);border-bottom:1px dotted var(--rule);}
.metabar{display:flex;gap:24px;margin:16px 0 4px;font-size:14px;color:var(--mut);flex-wrap:wrap;}
.metabar b{font-family:sans-serif;color:var(--ink);font-size:16px;margin-right:5px;font-variant-numeric:tabular-nums;}

/* section headers — the primary structural tier in ink (vermilion reserved for asterisk, proto-language, links) */
.notes h3,.reflexes h3,.thes h3,.conn h3,.meso h3,.apparatus h3,.ety-list h3,.phon h3{font-variant:small-caps;letter-spacing:.10em;
  font-size:16px;color:var(--ink);border-bottom:1px solid var(--rule);padding-bottom:5px;margin:0 0 12px;}
.reflexes h3{display:flex;align-items:baseline;}
.reflexes h3 .cnt{margin-left:auto;font-size:.92em;letter-spacing:0;color:var(--mut);font-variant-numeric:tabular-nums;}
.reflexes h3 .toggle-all{margin-left:auto;font-family:sans-serif;font-size:11.5px;font-variant:small-caps;
  letter-spacing:.06em;color:var(--mut);background:none;border:1px solid var(--rule);border-radius:3px;padding:2px 10px;cursor:pointer;}
.reflexes h3 .toggle-all:hover{color:var(--accent);border-color:var(--accent);}
/* group-page sections (Subgroups / Languages / Reconstructions): one uniform gap above each
   header, plus a right-aligned count — scoped here so other .ety-list headers are untouched */
.grpsec{margin-top:26px;}
.grpsec h3{display:flex;align-items:baseline;}
.grpsec h3 .cnt{margin-left:auto;font-size:.92em;letter-spacing:0;color:var(--mut);font-variant-numeric:tabular-nums;}
.notes{margin:26px 0 8px;}
.np{margin:0 0 12px;} .fn{font-size:.86em;color:var(--soft);}
.note-block{margin-bottom:6px;}
/* bottom-of-page footnote apparatus (render_note collector + footnotes_block) */
.footlink{border-bottom:none;}
.footnotes{margin-top:16px;padding-top:10px;border-top:1px solid var(--hair);
  font-size:.86em;color:var(--soft);}
.fnote{margin:0 0 6px;}
.footback{vertical-align:super;font-size:.85em;border-bottom:none;}
/* subgroup-anchored etymon note, shown on its band in the reflex table (original: band footnote) */
.sg .sgnote{margin:2px 0 10px;font-size:14px;color:var(--soft);}
.sg .sgnote .np{margin:0 0 6px;}

.sg{margin:0 0 22px;}
.sg h4{display:flex;align-items:baseline;gap:10px;font-variant:small-caps;letter-spacing:.06em;font-size:14px;
  color:var(--soft);margin:0 0 6px;}
.sg h4 .c{font-family:sans-serif;font-size:12px;color:var(--mut);letter-spacing:0;margin-left:auto;
  font-variant-numeric:tabular-nums;}
/* THE row shell: every listing row on the site (.rfx entity attestations, .ety-hit etymon/
   language lists, .rx-hit search/thesaurus results) is one 3-column baseline grid —
   label | content | meta — declared ONCE here; each shell sets only widths/density/type size.
   The responsive section collapses them together too. */
.rfx,.ety-hit,.rx-hit{display:grid;align-items:baseline;border-bottom:1px solid var(--hair);}
.rfx,.rx-hit{position:relative;}   /* the .rx-go whole-row overlay anchors to these */
.rfx:hover,.rx-hit:hover{background:var(--paper2);}
.rfx{grid-template-columns:190px minmax(0,1fr) 190px;gap:2px 18px;padding:4px 0;line-height:1.35;}
/* hover permalink: a link icon in the left gutter pointing at this row's own anchor (#rn… on a
   language page, #r… on an etymon page), so a reader can grab a direct URL to one entry. The icon is
   a CSS mask (defined once; the per-row <a> is empty, which keeps big lists light), tinted via
   currentColor so it still goes mut→accent on hover. The <a> box spans the full row height and
   reaches the row's edge — the painted glyph stays small (left-aligned, vertically centred) but its
   hit area bridges the gutter gap, so moving from the row to the icon never drops :hover. */
.rfx .rnlink{position:absolute;left:-1.5em;top:0;bottom:0;width:1.5em;opacity:0;
  color:var(--mut);background-color:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") 0 50%/14px no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") 0 50%/14px no-repeat;}
.rfx:hover .rnlink,.rfx:focus-within .rnlink{opacity:1;}
.rfx:last-child{border-bottom:none}
.rfx:target,.rfx.rn-target{background:var(--paper2);box-shadow:inset 3px 0 0 var(--accent);padding-left:8px;}
/* etymon page only: subgroup-grouped reflexes + intermediate-recon rows.
   no per-row rule; the source trails the form instead of pinning hard-right;
   full-width section so its header rule lines up with Notes / Prev-reconstructed. */
/* etymon/meso reflex rows: source in its own right-aligned column (like search + the language page),
   not trailing the gloss. The middle (form·gloss) takes the slack; the source's right edges line up. */
.sg .rfx,.meso .rfx{grid-template-columns:190px minmax(0,1fr) auto;border-bottom:none;}
.rfx .lang{color:var(--soft);font-size:14.5px;}
.rfx .form{font-size:17px;}
.rfx .form .br{color:var(--mut);}
.rfx .src{font-size:13px;color:var(--mut);}
.rfx .g{color:var(--soft);font-size:13.5px;}   /* reflex gloss: roman in ‘single quotes’ (gloss_q) — italic is reserved for forms (.lat/.recon) */
.rfx a{border-bottom:none;}
.rfx a.lang{color:var(--soft);}
.rfx a:hover{color:var(--accent);}
/* etymon-page reflex rows: the whole row links to this form's attestation (#rn on its language page),
   like the search/thesaurus rows. The inner links (language name, "also contains" etyma, source, note
   xrefs) sit above the overlay so they keep their own targets; the rest falls through to it. Only the
   etymon-page builder emits .rx-go, so language-page .rfx rows are unaffected (no pointless self-link). */
.rfx .rx-go,.rx-hit .rx-go{position:absolute;inset:0;border-bottom:none;}
.rfx a.lang,.rfx .anl a,.rfx a.src,.rfx .noted{position:relative;z-index:1;}
.lgab{font-variant:small-caps;letter-spacing:.04em;font-size:12px;color:var(--mut);}
.asab{color:var(--mut);font-size:13px;}  /* the “as SHORTNAME” connective leading an entity row’s metadata column */
.rfx .pos,.rx-hit .pos,.drop .pos{font-variant:small-caps;letter-spacing:.03em;font-size:11.5px;color:var(--mut);margin-right:6px;}
.rfx .anl{display:block;font-size:12px;color:var(--mut);margin-top:1px;}   /* present only for un-segmented (chip) etyma; rows are otherwise single-line */
.rfx .anl a{border-bottom:none;color:var(--mut);}
.rfx .anl a:hover{color:var(--accent);}

/* end apparatus: citation + references, de-banner'd */
.apparatus{margin-top:42px;}
.citebox{border:1px solid var(--rule);padding:12px 15px;border-radius:2px;font-size:14.5px;color:var(--soft);
  max-width:48em;}
.citebox > div{margin:0 0 4px;} .citebox > div:last-child{margin-bottom:0;}
.citebox code{font-family:sans-serif;color:var(--ink);}
.cite-actions{display:flex;gap:18px;margin:12px 0 0;font-size:14px;flex-wrap:wrap;}
.cite-actions a,.copybtn{color:var(--soft);border:none;border-bottom:1px solid var(--rule);background:none;
  font-family:inherit;font-size:14px;padding:0;cursor:pointer;}
.cite-actions a:hover,.copybtn:hover{color:var(--accent);border-color:var(--accent);}

/* search */
.sr h1{font-family:sans-serif;font-weight:600;font-size:24px;margin:0 0 4px;}
.sr .sub{color:var(--mut);font-size:14px;margin-bottom:24px;}
.sec-label{font-variant:small-caps;letter-spacing:.10em;font-size:13px;color:var(--accent);
  border-bottom:1px solid var(--rule);padding-bottom:5px;margin:28px 0 10px;
  display:flex;align-items:baseline;}
.sec-label .sec-n{margin-left:auto;color:var(--mut);font-variant:normal;letter-spacing:0;
  font-size:.9em;font-variant-numeric:tabular-nums;}
.ety-hit{grid-template-columns:auto 1fr auto;gap:14px;padding:8px 0;}
a.ety-hit{border-bottom:1px solid var(--hair);}
a.ety-hit:hover{color:inherit;background:var(--paper2);border-color:var(--hair);}
.ety-hit .pf2{font-size:19px;}
/* attested reflex form: same column treatment as a protoform but NO reconstruction asterisk */
.ety-hit .rf{font-size:19px;}
.ety-hit .pg2{font-variant:small-caps;color:var(--soft);}
/* attestation gloss: a plain definition — soft, but NOT small-caps (that's for protoglosses) */
.ety-hit .gl2{color:var(--soft);}
.ety-hit .tagn{font-family:sans-serif;font-size:12px;color:var(--mut);font-variant-numeric:tabular-nums;}
.rx-hit{grid-template-columns:160px 1fr auto;gap:4px 14px;padding:6px 0;font-size:15px;}
/* whole-row link to the form's attestation (#rn): a transparent overlay covering the row. The real
   inner links (syllables/via -> etyma, source) and the note are raised above it so they keep their
   own click targets; everything else in the row falls through to this overlay. */
.rx-hit a.lang,.rx-hit .syl,.rx-hit .via,.rx-hit .rx-src a,.rx-hit .rx-cat,.rx-hit .noted{position:relative;z-index:1;}
.rx-cat{font-size:12.5px;color:var(--mut);white-space:nowrap;} .rx-cat::before{content:"· ";} .rx-cat:hover{color:var(--accent);}
.rx-hit .lang{color:var(--soft);font-size:13.5px;border-bottom:none;}
.rx-hit a.lang:hover{color:var(--accent);}
.rx-hit .rx-mid{min-width:0;}
.rx-hit .g,.drop .gl,.drop .g{color:var(--soft);}   /* glosses are soft + roman; the reflex gloss carries quotes (gloss_q), the protogloss small-caps (.gl) */
/* interactable morpheme (per-syllable etymon link): a quiet accent tint atop the dotted underline,
   so it reads as clickable without shouting; brightens to full accent on hover. Not scoped to
   .rx-hit, so the treatment stays consistent anywhere a .syl link appears. */
/* syllable links underline via text-decoration, not border-bottom: the border hugged the
   inline BOX, which superscript tones/aspiration inflate, dropping the line far below the
   baseline; decoration anchors to the baseline and skips descender ink. Color: at-rest was
   too faint to read as a link (review finding) — darker red text, gold dotted line. */
.syl-w,.morph-w{position:relative;}  /* the trigger + its popover card, side by side */
a.syl{color:var(--accent-d);text-decoration:underline;text-decoration-style:dotted;
  text-decoration-color:var(--gold);text-decoration-thickness:1px;text-underline-offset:2px;}
a.syl:hover{color:var(--accent);text-decoration-color:var(--accent);}
/* hover/focus popover previewing the etymon a linked syllable reflects (*protoform 'gloss'); replaces
   the always-on ruby. Opens ABOVE the syllable so it covers the already-read row above rather than
   obscuring the next form in a top-down wordlist. Lift the stacking context so the bubble isn't pierced. */
/* hidden via visibility (not display) with a short close delay: the card is several lines
   tall now, and an instant close made the diagonal mouse-in path unforgiving */
.syl-w .sylpop,.morph-w .mpop{visibility:hidden;transition:visibility 0s linear .25s;display:block;
  position:absolute;left:0;bottom:calc(100% + 5px);z-index:6;width:max-content;
  max-width:min(280px,calc(100vw - 24px));background:var(--paper);border:1px solid var(--rule);border-radius:3px;
  padding:5px 9px;font-style:normal;font-weight:400;font-size:12.5px;line-height:1.45;color:var(--soft);
  white-space:normal;text-align:left;overflow-wrap:anywhere;letter-spacing:0;}
.syl-w:hover .sylpop,.syl-w:focus-within .sylpop,.morph-w:hover .mpop,.morph-w:focus-within .mpop{visibility:visible;transition-delay:0s;}
/* the popover's elink-style card: linked '#tag PLG *protoform' header, then the etymon's
   mesoroots and allofam family under small-caps section labels */
.sylpop a.sp-h{display:block;color:var(--ink);border-bottom:none;}
.sylpop a.sp-h:hover{color:var(--accent);}
.sylpop .sp-sec{display:block;margin-top:4px;font-variant:small-caps;letter-spacing:.06em;color:var(--mut);}
.sylpop .sp-m{display:block;padding-left:14px;}
a.sp-m{color:var(--soft);border-bottom:none;}  /* whole-row links (improves on the original) */
a.sp-m:hover{color:var(--accent);}
.sylpop .sp-plg{font-variant:small-caps;letter-spacing:.05em;color:var(--mut);}

/* the reveal hook (static/site.js) flips a top-clipped preview to open below its syllable */
.syl-w .sylpop.flip,.morph-w .mpop.flip{bottom:auto;top:calc(100% + 5px);}
/* invisible hover bridge across the 5px offset, so the pointer can travel into the bubble
   without dismissing it (WCAG 1.4.13 hoverable); mirrored when flipped below */
.syl-w .sylpop::after,.morph-w .mpop::after{content:"";position:absolute;left:0;right:0;top:100%;height:7px;}
.syl-w .sylpop.flip::after,.morph-w .mpop.flip::after{top:auto;bottom:100%;}
.syl-w:hover,.syl-w:focus-within,.morph-w:hover,.morph-w:focus-within{z-index:5;}
/* on an etymon page, the reflex syllable that IS this etymon: grouped in the morpheme colour but a
   solid underline (not the dotted link), since you're already on its page. */
/* the current etymon's own syllable: bold, NOT underlined — an underline here read as
   "this is a link", and the one thing .syl-self never is, is a link */
.syl-self{color:var(--morph);font-weight:700;}
/* coded (non-cognate) morpheme: a quiet dotted underline — NOT a link (there's no page to open),
   so it's grey, not the syllable link's accent — with the analysis (prefix/suffix/loanword/morpheme)
   named in a hover/focus popover. Borrowings (.morph-b) take a heavier, morpheme-coloured line so
   loans stand out a touch more than prefixes/suffixes/bare morphemes. Focusable for keyboard/touch. */
.morph{text-decoration:underline dotted;text-decoration-color:var(--mut);text-decoration-thickness:1px;
  text-underline-offset:2px;cursor:help;outline-offset:2px;}
.morph-b{text-decoration-color:var(--morph);text-decoration-thickness:2px;}
.rx-hit .br{color:var(--mut);}
.vias{color:var(--mut);font-size:12.5px;margin-left:.45em;}   /* inline trailing etymon chips (search + language wordlist) */
.via{font-size:12.5px;color:var(--mut);border-bottom:none;}
.via:hover{color:var(--accent);}
.rx-hit .rx-src{text-align:right;color:var(--mut);font-size:12.5px;white-space:nowrap;}
.rx-hit .rx-src a{color:var(--mut);border-bottom:1px dotted var(--rule);}
.rx-hit .rx-src a:hover{color:var(--accent);}
/* a reflex carrying a lexical note: a small circled-i after the gloss (NOT a dotted underline —
   that signal is reserved for clickable morphemes); the note reveals on hover/focus. The badge is
   drawn in CSS so it's crisp and on-palette, brightening to accent when active. */
/* language-page source filter (language-page.js): rows/sections outside the picked source */
.srchide{display:none !important;}
.srcpick{float:right;font-size:13px;font-weight:400;color:var(--mut);letter-spacing:0;font-variant:normal;margin-left:14px;}
.srcpick select{max-width:340px;font-family:inherit;font-size:13px;color:var(--ink);background:var(--paper2);
  border:1px solid var(--rule);border-radius:2px;padding:3px 7px;}
.srcpick select:focus{border-color:var(--accent);}
/* stacked content sections (Sources list, then Reflexes) need air between them */
section.reflexes + section.reflexes{margin-top:34px;}
.src-only{font:inherit;font-size:12px;color:var(--soft);background:none;border:none;cursor:pointer;
  border-bottom:1px dotted var(--rule);margin-left:10px;padding:0;}
.src-only:hover{color:var(--accent);border-bottom-color:var(--accent);}
.noted{cursor:help;position:relative;}
/* a filled disc, not an outline ring: the note marker is an invitation, and the muted ring
   was invisible at row size (review finding — 'much more prominent') */
.noted::after{content:"i";display:inline-grid;place-content:center;box-sizing:border-box;
  width:1.5em;height:1.5em;margin-left:.38em;border-radius:50%;
  font:italic 700 .7em/1 "Fraunces",serif;vertical-align:.24em;
  background:var(--gold);color:var(--paper);}
.noted:hover::after,.noted:focus::after,.noted:focus-within::after{background:var(--accent);}
/* right:0 anchors the bubble under the circled-i (the right end of .noted), not the gloss's left
   edge — otherwise a long gloss strands the bubble far from its icon. */
.noted>.notepop{display:none;position:absolute;right:0;top:1.55em;z-index:6;width:max-content;max-width:min(340px,calc(100vw - 24px));
  background:var(--paper);border:1px solid var(--rule);border-radius:3px;padding:7px 10px;font-style:normal;
  font-size:12.5px;line-height:1.5;color:var(--soft);white-space:normal;text-align:left;overflow-wrap:anywhere;}
.noted:hover>.notepop,.noted:focus>.notepop,.noted:focus-within>.notepop{display:block;}
/* lift the whole popover stacking context above the sibling via-chips: both are z-index:1 and the
   chips come later in the DOM, so they'd otherwise paint over the (opaque) bubble. */
.noted:hover,.noted:focus,.noted:focus-within{z-index:5;}
.noted>.notepop p,.noted>.notepop .np{margin:0;} .noted>.notepop a{color:var(--soft);}
.noted>.notepop .np{display:block;} .noted>.notepop .np+.np{margin-top:1.35em;}   /* separate notes by an empty line, no divider */
/* Stammbaum-subgroup header between attested-form result groups */
.rx-sub{font-variant:small-caps;letter-spacing:.05em;color:var(--soft);font-size:13px;
  margin:16px 0 3px;padding-bottom:2px;border-bottom:1px solid var(--rule);}

/* reconstructions browse: client-side filter + windowed list */
.rbar{display:flex;gap:14px;align-items:baseline;flex-wrap:wrap;margin:0 0 14px;}
.rbar input{flex:1;min-width:240px;font-family:inherit;font-size:16px;padding:9px 13px;
  border:1px solid var(--rule);background:var(--paper2);color:var(--ink);border-radius:2px;}
.rbar input:focus{border-color:var(--accent);}
.rcount{font-size:13px;color:var(--mut);white-space:nowrap;font-variant-numeric:tabular-nums;}
.rnone{display:none;color:var(--mut);font-size:15px;padding:24px 0;}
.wl-spacer{pointer-events:none;}   /* reserves the unrendered tail's height (see _WINDOWED_JS) */

/* thesaurus */
/* the volumes TOC atop the thesaurus tree: one jump per top-level chapter */
.vol-toc{display:flex;flex-wrap:wrap;gap:6px 18px;margin:14px 0 22px;font-size:14px;}
.vol-toc a{color:var(--soft);border-bottom:1px dotted var(--rule);}
.vol-toc a:hover{color:var(--accent);border-bottom-color:var(--accent);}
.vol-toc .vk{font-family:sans-serif;font-size:12.5px;color:var(--gold);margin-right:5px;}
.thes ul{list-style:none;padding:0;margin:0;}
.thes li{border-bottom:1px solid var(--rule);}
.thes .ety-list h3{margin-top:30px;}
.thes li a.row{display:flex;align-items:baseline;gap:12px;padding:11px 6px;border-bottom:none;}
.thes li a.row:hover{background:var(--paper2);color:inherit;}
.thes .sk{font-family:sans-serif;font-size:13px;color:var(--mut);width:64px;flex:none;
  font-variant-numeric:tabular-nums;}
.thes .ti{font-size:18px;}
.thes .ct{margin-left:auto;font-size:13px;color:var(--mut);font-variant-numeric:tabular-nums;}
.thes .ety-list{margin-top:18px}

/* connections / mesoroots / language+source + index pages */
.pagetitle{font-family:sans-serif;font-weight:600;font-size:36px;line-height:1.08;margin:6px 0 4px;}
.conn,.meso{margin:24px 0 8px;}
.phon{margin:20px 0 8px;}
.phoninv{margin:24px 0 34px;}
.phoninv > summary{cursor:pointer;list-style:none;display:flex;align-items:baseline;gap:9px;
  font-variant:small-caps;letter-spacing:.10em;font-size:16px;color:var(--ink);
  border-bottom:1px solid var(--rule);padding-bottom:5px;}
.phoninv > summary::-webkit-details-marker{display:none;}
.phoninv > summary::before{content:"▸";color:var(--mut);font-size:11px;letter-spacing:0;}
.phoninv[open] > summary::before{content:"▾";}
.phoninv > summary:hover{color:var(--accent);}
.phoninv-fig{max-width:600px;margin:14px 0 0;}
.phoninv-img{display:block;width:100%;height:auto;border:1px solid var(--rule);border-radius:2px;background:var(--paper);}
.phoninv-load{margin:0;font-size:13.5px;color:var(--mut);font-style:italic;}
.phoninv figcaption{margin-top:9px;font-size:13.5px;color:var(--mut);}
.phoninv figcaption cite{font-style:italic;}
.phon-grid{display:flex;flex-wrap:wrap;gap:7px 26px;}
.phon .pf-f{font-size:15px;white-space:nowrap;}
.phon .pf-f .rl{display:inline;width:auto;flex:none;margin-right:7px;}
.phon .pf-f .val{font-family:sans-serif;color:var(--ink);}
.conn-row{display:flex;align-items:baseline;gap:12px;padding:6px 0;}
/* computed allofam family: one unbreakable chip per member, wrapping at member boundaries */
ul.famlist{list-style:none;margin:0;padding:0;line-height:1.7;}  /* one allofam per line */
.rl{font-variant:small-caps;letter-spacing:.08em;font-size:12px;color:var(--accent);width:92px;flex:none;}
/* a linked label underlines its TEXT, not its fixed-width column box (border-bottom on the
   92px flex item drew a long rule past short labels like 'PTB') */
a.rl{border-bottom:none;text-decoration:underline;text-decoration-thickness:1px;text-decoration-color:var(--rule);text-underline-offset:3px;}
a.rl:hover{text-decoration-color:var(--accent);}
.conn-row .reltgt{flex:1;}
.exm{color:var(--gold);font-variant:small-caps;letter-spacing:.06em;font-size:.9em;}
/* public=0: not an official STEDT reconstruction (original shows a red '(provisional)') */
.prov{color:var(--mut);font-variant:small-caps;letter-spacing:.06em;font-size:.9em;}
/* search Reflexes section: the sort control in the section-label row */
.sec-label .rxsort{margin-left:14px;font-variant:normal;letter-spacing:0;font-size:12.5px;color:var(--mut);white-space:nowrap;}
.sec-label .rxsort select{font-family:inherit;font-size:12.5px;color:var(--ink);background:var(--paper2);
  border:1px solid var(--rule);border-radius:3px;padding:1px 4px;}
.sec-label .rxsort select:focus{border-color:var(--accent);}
.sr .bigsearch{margin:0 0 8px;}
/* the search-syntax hint under the box: one runnable example + an expandable reference */
.qhint{margin:0 0 22px;line-height:1.9;display:flex;gap:24px;align-items:baseline;flex-wrap:wrap;}
.qhint code{font-family:sans-serif;background:var(--paper2);border:1px solid var(--hair);
  border-radius:3px;padding:1px 6px;font-size:12.5px;white-space:nowrap;}
.qhint a:hover code{border-color:var(--accent);color:var(--accent);}
.qref{flex:1 1 100%;margin:0;}
.home .qhint{margin-top:26px;display:block;}
.home .qref{text-align:left;}
.home .qref summary{margin:0 auto;}  /* the collapsed invitation centers like the rest of the home */

.qref summary{cursor:pointer;font-variant:small-caps;letter-spacing:.06em;color:var(--mut);width:max-content;}
.qref summary:hover{color:var(--accent);}
.qref p{margin:8px 0 10px;}  /* full width: a 64ch cap at this 14px size wrapped at ~460px while the field grid below ran the container */
.qfields{display:grid;grid-template-columns:max-content 1fr;gap:7px 18px;margin:0;align-items:baseline;}
.qfields dt{margin:0;}
.qfields dd{margin:0;}
@media (max-width:720px){
  .qhint{gap:8px;}
}
/* curated etyma.sequence on thesaurus listings (decimal = sub-root of the integer root) */
.seqn{color:var(--mut);font-variant-numeric:tabular-nums;}
/* thesaurus tree depth styling: roots bold in the hierarchical view only — the sorted
   (flattened) view ranks nodes as peers, where leftover bold reads as unmeant emphasis */
.tree .d0{font-weight:600;}
.tree.flat .d0{font-weight:inherit;}
/* thesaurus-index marker for nodes carrying chapter notes; when present it takes the row's
   flexible gap so the recon/reflex count keeps its right edge */
.tree .nnote{color:var(--mut);font-size:12px;white-space:nowrap;margin-left:auto;}
.tree .nnote~.ct{margin-left:14px;}
.metabar a{border-bottom:1px dotted var(--rule);}
.metabar a:hover{color:var(--accent);}
.idx{list-style:none;padding:0;margin:6px 0 0;columns:2;column-gap:44px;font-size:15px;}
.idx li{break-inside:avoid;padding:2px 0;}
.grp{font-variant:small-caps;letter-spacing:.05em;font-size:15px;color:var(--ink);margin:18px 0 2px;}
.grp .plg2{color:var(--mut);font-variant:normal;font-size:.82em;letter-spacing:0;}
/* stammbaum group number (e.g. 6.1.1) shown alongside subgroup names on group/languages/etymon pages */
.grpno{color:var(--mut);font-variant-numeric:tabular-nums;font-size:.82em;letter-spacing:0;margin-right:.35em;}
/* full family tree on group pages: compact, scrollable, one click to any node */
.lgtree{border:1px solid var(--rule);border-radius:2px;max-height:360px;overflow:auto;padding:8px 14px;
  font-size:13.5px;line-height:1.7;}
.lgtree > div{white-space:nowrap;}
.lgtree a{border-bottom:none;color:var(--soft);}
.lgtree a:hover{color:var(--accent);}
.lgtree .here{color:var(--ink);font-weight:700;}
.srcidx{list-style:none;padding:0;margin:8px 0 0;}
.srcidx li{padding:8px 2px;border-bottom:1px solid var(--rule);}
.srcidx li a{font-family:sans-serif;}
.srcidx .srcref{color:var(--soft);font-size:13.5px;margin-left:9px;}
.srcidx .srccnt{color:var(--mut);font-size:12.5px;margin-left:9px;font-variant-numeric:tabular-nums;white-space:nowrap;}
.srcsort{font-size:13px;color:var(--mut);margin:6px 0 14px;}
.refonly{margin-top:24px;}
.srcsort select{font-family:inherit;font-size:13px;color:var(--ink);background:var(--paper2);
  border:1px solid var(--rule);border-radius:2px;padding:3px 7px;}
.srcsort select:focus{border-color:var(--accent);}
.subg{color:var(--soft);font-size:14px;}
details.seg{border-bottom:1px solid var(--rule);}
details.seg:last-of-type{border-bottom:none;}
details.seg > summary{cursor:pointer;list-style:none;display:flex;align-items:baseline;gap:10px;
  font-variant:small-caps;letter-spacing:.06em;font-size:15px;color:var(--ink);padding:9px 2px;}
details.seg > summary::-webkit-details-marker{display:none;}
details.seg > summary::before{content:"▸";color:var(--mut);font-size:11px;}
details.seg[open] > summary::before{content:"▾";}
details.seg > summary:hover{color:var(--accent);}
details.seg > summary .c{margin-left:auto;font-family:sans-serif;font-size:12px;color:var(--mut);
  letter-spacing:0;font-variant-numeric:tabular-nums;}
details.seg .rfx{padding-left:20px;}
details.seg[open]{padding-bottom:8px;}

/* code box (BibTeX on etymon/source pages; was also the contribution-diff box before the
   edit flow was torn out — the form/gate/diff-coloring rules went with it) */
pre.diff{background:#faf7ef;border:1px solid var(--rule);border-radius:3px;padding:14px 16px;overflow:auto;
  font-family:monospace;font-size:13px;line-height:1.5;}

/* ---------------------------------------------------------------- responsive (phones/tablets) */
@media (max-width:720px){
  body{font-size:17px;}

  /* masthead stacks: wordmark / search / nav, each full width; nav wraps instead of overflowing */
  header.mast{flex-direction:column;align-items:stretch;gap:12px;padding:16px 18px 12px;}
  .brand{order:1;}
  .brand .wm{font-size:25px;}
  .hsearch{order:2;margin:0;}  /* cancel the desktop right-push so the stacked box stretches */
  /* 16px floor on focusable controls: iOS auto-zooms the page when a focused control is smaller */
  .hsearch input{width:100%;font-size:16px;}
  /* SYNC(page-class) ↔ templates/base.html <body> class: home and search already carry a
     full-width search box in the body — stacking the masthead twin above it reads as two inputs */
  .p-home .hsearch,.p-search .hsearch{display:none;}
  .sec-label .rxsort select,.srcsort select{font-size:16px;}
  nav.main{order:3;margin:0;flex-wrap:wrap;gap:9px 18px;font-size:14px;}

  main{padding:24px 18px 70px;}
  footer{padding:20px 18px 48px;}

  /* big titles down a notch; etymon number drops from a float to its own line */
  .pagetitle{font-size:28px;}
  .ety-head .pf{font-size:32px;}
  .ety-head .pg{font-size:18px;}
  .ety-head .etno{float:none;display:block;margin:0 0 6px;}

  /* record rows collapse to a single stacked column (lang / form·gloss / source) */
  /* minmax(0,…) like the desktop rules: a bare 1fr's auto minimum lets one unbreakable token
     widen the row and zoom the whole viewport out */
  .rfx,.sg .rfx,.meso .rfx,.rx-hit{grid-template-columns:minmax(0,1fr);gap:1px 0;}  .rfx{padding:8px 0;}
  .rx-hit .rx-src{text-align:left;}
  .ety-hit{grid-template-columns:1fr auto;gap:2px 12px;}
  .ety-hit .pg2,.ety-hit .gl2{grid-column:1;}
  .ety-hit .tagn{grid-column:2;grid-row:1/3;align-self:start;}

  /* language index: one column */
  .idx{columns:1;}

  /* connections: let the relation label sit on its own line above the target */
  .conn-row{flex-wrap:wrap;}
  .conn-row .rl{width:100%;}

  /* thesaurus rows: let the title wrap, keep the count pinned right (don't let title grow) */
  .thes .ti{min-width:0;}

  .stats{gap:20px;}
}

/* the home-page preview banner ({% if preview %}) */
.preview-banner{background:var(--accent);color:var(--paper);padding:14px 20px;border-radius:3px;
  margin:0 0 22px;font-size:15px;line-height:1.55;}
/* source page: the full-reference line under the title (resets .pg's small-caps look) */
.pg.citeline{font-variant:normal;font-size:16px;color:var(--soft);letter-spacing:0;}

/* print: drop the interactive chrome; the scholarship is the page */
@media print{
  .hsearch,.skip,nav.main,.rbar,.srcsort,.rxsort,.cite-actions,.preview-banner,footer{display:none !important;}
  body{background:none;}
}
