/* Halotaz design system -- one token set for the reader site and the ustaz
   console (the console reads the same tokens through console.css).

   A quiet manuscript page: one reading column, Arabic leading, citations in
   mono under every quote, and colour used only where it means something.
     verdigris  structure, links, a resolved narrator
     rubric     refusal: an unidentified link, "belum ada rujukan", a dispute
     ochre      disagreement and caveat: the schools differ, a machine translation
     amber      console only: a corpus match
   Published as the "Halotaz Design System" artifact; docs/UX-OVERHAUL.md. */

:root {
  --paper:   #F3F4F2;
  --paper2:  #F8F9F8;
  --paper3:  #EEF0ED;
  --panel:   #FFFFFF;
  --ink:     #141F24;
  --ink2:    #3D4B50;
  --muted:   #6F7C81;
  --line:    #C9D0CD;
  --hair:    #DEE3E0;
  --verdigris:   #2C5E58;
  --verdigris-2: #E3EEEC;
  --verdigris-3: #24504B;   /* pressed */
  --rubric:      #A33520;
  --rubric-2:    #F6E6E2;
  --ochre:       #8A6E2F;
  --ochre-2:     #F3ECDC;
  --amber:       #FFF6DC;
  --amber-line:  #E4D7A6;
  --on-accent:   #FFFFFF;
  --focus:       #2C5E58;

  --display:  "Newsreader", Georgia, "Times New Roman", serif;
  --body:     "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:     "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ar:       "Amiri", "Scheherazade New", "Traditional Arabic", "Noto Naskh Arabic", serif;
  --ar-quran: "Amiri Quran", "Amiri", "Scheherazade New", "KFGQPC Uthman Taha Naskh", serif;

  --t-xs: .72rem; --t-sm: .84rem; --t-md: 1rem; --t-lg: 1.12rem; --t-xl: 1.38rem; --t-2xl: 1.75rem; --t-3xl: 2.2rem;
  --ar-scale: 1.4;
  --measure: 68ch;
  --r: 8px; --r-sm: 6px; --r-xs: 4px; --r-pill: 999px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --shadow: 0 1px 2px rgba(20,31,36,.04);
  --shadow-pop: 0 4px 16px -2px rgba(20,31,36,.08);
  --nav-h: 64px;
  --tab-h: 62px;
  --wide: 1200px;
  --rail-w: 280px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper:#151A1C; --paper2:#1B2123; --paper3:#1A2022; --panel:#1F2628; --ink:#E9ECEA; --ink2:#C4CCC9; --muted:#8E9B98;
  --line:#3B4548; --hair:#2B3437; --verdigris:#7FBDB4; --verdigris-2:#1F3331; --verdigris-3:#9CCFC7;
  --rubric:#E08874; --rubric-2:#3A2320; --ochre:#D2B36A; --ochre-2:#332C1C; --amber:#332C1C; --amber-line:#5A4D2A;
  --on-accent:#0F1A18; --focus:#7FBDB4;
  --shadow: 0 1px 2px rgba(0,0,0,.35); --shadow-pop: 0 6px 20px -4px rgba(0,0,0,.5); color-scheme: dark } }
:root[data-theme="dark"] {
  --paper:#151A1C; --paper2:#1B2123; --paper3:#1A2022; --panel:#1F2628; --ink:#E9ECEA; --ink2:#C4CCC9; --muted:#8E9B98;
  --line:#3B4548; --hair:#2B3437; --verdigris:#7FBDB4; --verdigris-2:#1F3331; --verdigris-3:#9CCFC7;
  --rubric:#E08874; --rubric-2:#3A2320; --ochre:#D2B36A; --ochre-2:#332C1C; --amber:#332C1C; --amber-line:#5A4D2A;
  --on-accent:#0F1A18; --focus:#7FBDB4;
  --shadow: 0 1px 2px rgba(0,0,0,.35); --shadow-pop: 0 6px 20px -4px rgba(0,0,0,.5); color-scheme: dark }

/* ------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.65;
  font-feature-settings: "kern" 1; -webkit-font-smoothing: antialiased;
}
a { color: var(--verdigris); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--panel);
        padding: 8px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.skip:focus { left: 12px; }

/* ------------------------------------------------------------- type */
.h1 { font-family: var(--display); font-weight: 600; font-size: 2.5rem; line-height: 1.15;
      letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.h2 { font-family: var(--display); font-weight: 600; font-size: var(--t-xl); line-height: 1.2;
      margin: 0; text-wrap: balance; }
.h3 { font-family: var(--body); font-weight: 650; font-size: var(--t-md); margin: 0; }
.eyebrow { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em;
           text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.eyebrow.dot::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
           background: var(--verdigris); margin-inline-end: 8px; vertical-align: 1px; }
.lede { color: var(--ink2); font-size: var(--t-lg); line-height: 1.55; max-width: var(--measure);
        margin: 0 0 var(--s5); }
.small { font-size: var(--t-sm); }
.muted { color: var(--muted); }
.mono  { font-family: var(--mono); }
.num   { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- Arabic */
.ar { font-family: var(--ar); direction: rtl; text-align: right; unicode-bidi: isolate;
      font-size: calc(1rem * var(--ar-scale)); line-height: 2.1; color: var(--ink); }
.ar.sm, .ar-sm { font-size: calc(.82rem * var(--ar-scale)); line-height: 1.95; }
.ar.lg { font-size: calc(1.14rem * var(--ar-scale)); line-height: 2.15; }
.ar.quran { font-family: var(--ar-quran); line-height: 2.35; }
.ar-inline { font-family: var(--ar); direction: rtl; unicode-bidi: isolate; font-size: 1.12em; }
.ayah-no { font-family: var(--ar-quran); color: var(--verdigris); margin-inline: .25em; font-size: .85em; }

/* ------------------------------------------------------------- citation (never collapses) */
.cite { font-family: var(--mono); font-size: var(--t-xs); line-height: 1.6; color: var(--ink2);
        margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--hair);
        overflow-wrap: anywhere; }
.cite + .cite { border-top: 0; padding-top: 2px; margin-top: 2px; }
.cite b { font-weight: 600; color: var(--ink); }
.cite .loc { color: var(--verdigris); }

/* ------------------------------------------------------------- translation strip */
.tr { background: var(--paper2); border-radius: var(--r-sm); padding: var(--s3) var(--s4);
      margin-top: var(--s3); color: var(--ink2); }
.tr .eyebrow { display: flex; justify-content: space-between; gap: var(--s3); }
.tr .who { font-family: var(--mono); font-size: var(--t-xs); color: var(--muted); margin-top: var(--s2); }

/* ------------------------------------------------------------- surfaces & layout */
.card { background: var(--panel); border: 1px solid var(--hair); border-radius: var(--r);
        padding: var(--s5); box-shadow: var(--shadow); min-width: 0; }
.card > .card-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
        margin: calc(-1 * var(--s5)) calc(-1 * var(--s5)) var(--s4); padding: 14px var(--s5);
        border-bottom: 1px solid var(--hair); }
.card > .card-head .eyebrow { margin: 0; }
/* A designed gap: what is not known yet, said plainly, never an error look. */
.gap { border: 1px dashed var(--line); border-radius: var(--r); background: var(--paper2);
       padding: var(--s4) var(--s5); color: var(--ink2); font-size: .92rem; }
.gap b { color: var(--ink); font-weight: 600; }
.card.tight { padding: var(--s3) var(--s4); }
.card.flat { box-shadow: none; }
a.card { display: block; color: inherit; text-decoration: none; transition: border-color .15s; }
a.card:hover { border-color: var(--verdigris); text-decoration: none; background: var(--paper2); }
.strip { background: var(--paper2); border-radius: var(--r-sm); padding: var(--s3) var(--s4); }
a.strip { display: block; color: inherit; }
a.strip:hover { text-decoration: none; background: var(--verdigris-2); }
.stack { display: flex; flex-direction: column; gap: var(--s4); }
.stack.tight { gap: var(--s2); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.between { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: 1fr; } .grid4 { grid-template-columns: 1fr 1fr; } }
.section { margin-top: var(--s6); }
.section > .between:first-child { margin-bottom: var(--s3); }

/* ------------------------------------------------------------- chips & dots */
.chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: var(--t-xs);
        letter-spacing: .02em; padding: 2px 8px; border-radius: var(--r-xs); border: 1px solid var(--hair);
        color: var(--ink2); white-space: nowrap; line-height: 1.45; background: transparent; }
a.chip:hover { text-decoration: none; border-color: var(--verdigris); color: var(--verdigris); }
.chip.ok    { color: var(--verdigris-3); border-color: transparent; background: var(--verdigris-2); }
.chip.warn  { color: var(--ochre); border-color: transparent; background: var(--ochre-2); }
.chip.bad   { color: var(--rubric); border-color: transparent; background: var(--rubric-2); }
.chip.soft  { background: var(--paper2); }
.chip.hollow{ color: var(--rubric); border: 1.5px solid var(--rubric); }
.chip.ink   { color: var(--ink); border-color: var(--ink2); }
.vdot { width: 10px; height: 10px; border-radius: 50%; background: var(--verdigris); display: inline-block; flex: none; }
.vdot.weak { background: var(--ochre); } .vdot.comp { background: var(--ink); }
.vdot.unknown { background: transparent; border: 2px solid var(--rubric); }

/* ------------------------------------------------------------- disagreement, notices */
.disagree { display: flex; align-items: center; gap: var(--s2); color: var(--ochre); font-family: var(--mono);
            font-size: var(--t-xs); letter-spacing: .06em; font-weight: 600; }
.disagree::before { content: ""; width: 18px; height: 2px; background: var(--ochre); flex: none; }
.notice { border-inline-start: 3px solid var(--ochre); background: var(--ochre-2);
          border-radius: 0 var(--r) var(--r) 0; padding: var(--s3) var(--s4); margin: var(--s4) 0; }
.notice.stop { border-color: var(--rubric); background: var(--rubric-2); }
.notice.calm { border-color: var(--verdigris); background: var(--paper2); }
.notice h3, .notice .eyebrow { font-family: var(--mono); font-size: .69rem; letter-spacing: .1em;
          text-transform: uppercase; color: var(--ochre); margin: 0 0 4px; font-weight: 600; }
.notice.stop h3, .notice.stop .eyebrow { color: var(--rubric); }
.notice.calm h3, .notice.calm .eyebrow { color: var(--verdigris); }
.notice p { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--ink2); }

/* ------------------------------------------------------------- controls */
.btn, button { font-family: var(--body); font-size: .92rem; font-weight: 600; line-height: 1.2;
      padding: 11px 20px; border: 1px solid var(--verdigris); background: var(--verdigris);
      color: var(--on-accent); border-radius: var(--r); cursor: pointer; white-space: nowrap; }
.btn:hover, button:hover { background: var(--verdigris-3); border-color: var(--verdigris-3); }
.btn.ghost, button.ghost { background: transparent; color: var(--verdigris); }
.btn.ghost:hover, button.ghost:hover { background: var(--verdigris-2); }
.btn.quiet, button.quiet { background: var(--panel); color: var(--ink); border-color: var(--hair); }
.btn.quiet:hover, button.quiet:hover { background: var(--paper3); border-color: var(--line); }
.btn.sm, button.sm { padding: 6px 12px; font-size: var(--t-xs); border-radius: var(--r-sm); }
.btn[disabled], button:disabled { opacity: .45; cursor: default; }
a.btn { display: inline-block; text-decoration: none; }
.kbd { font-family: var(--mono); font-size: .68rem; border: 1px solid var(--line); border-bottom-width: 2px;
       border-radius: 4px; padding: 0 5px; color: var(--muted); background: var(--paper2); }
.input, input[type=text], input[type=search], textarea {
  font-family: var(--body); font-size: 1rem; width: 100%; padding: 13px 16px;
  border: 1px solid var(--hair); border-radius: var(--r); background: var(--panel); color: var(--ink); }
textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.input:focus, input[type=text]:focus, input[type=search]:focus, textarea:focus {
  outline: none; border-color: var(--verdigris); box-shadow: 0 0 0 3px var(--verdigris-2); }

/* ------------------------------------------------------------- loading */
.skel { background: linear-gradient(90deg, var(--hair) 25%, var(--paper2) 50%, var(--hair) 75%);
        background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 6px; height: 13px; }
.skel + .skel { margin-top: 10px; }
.skel.ar { height: 22px; width: 84%; margin-inline-start: auto; }
.skel.h  { height: 30px; width: 46%; }
@keyframes sk { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }
.spinner { width: 15px; height: 15px; border: 2px solid var(--line); border-top-color: var(--verdigris);
           border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.reveal { animation: rv .16s ease-out both; }
@keyframes rv { from { opacity: .001; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------- shell */
/* One white bar: the wordmark and the places on the left, a search field
   and the light/dark switch on the right. Nothing else lives here. */
.topnav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
          background: var(--panel); border-bottom: 1px solid var(--hair); }
.topnav .in { display: flex; align-items: center; gap: var(--s6); height: var(--nav-h);
              padding: 0 var(--s6); max-width: calc(var(--wide) + 2 * var(--s6)); margin: 0 auto; }
.brand { font-family: var(--display); font-weight: 600; font-size: 1.4rem; color: var(--ink);
         letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand span { color: var(--verdigris); }
.brand small { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
               color: var(--muted); margin-inline-start: 8px; font-weight: 400; }
.topnav nav { display: flex; gap: var(--s5); }
.topnav nav a { color: var(--ink2); font-size: var(--t-sm); font-weight: 500; padding: 21px 0 19px;
                border-bottom: 2px solid transparent; }
.topnav nav a:hover { color: var(--ink); text-decoration: none; }
.topnav nav a.on { color: var(--ink); border-color: var(--verdigris); font-weight: 600; }
.topnav .tools { margin-inline-start: auto; display: flex; align-items: center; gap: var(--s2); }
.navsearch { position: relative; }
.navsearch svg { position: absolute; inset-inline-start: 11px; top: 50%; transform: translateY(-50%);
                 width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; }
.navsearch input { width: 260px; padding: 8px 12px 8px 34px; font-size: var(--t-sm); background: var(--paper2);
                   border-radius: var(--r-sm); }
.navsearch input:focus { background: var(--panel); }
.iconbtn { all: unset; box-sizing: border-box; width: 36px; height: 36px; display: inline-grid; place-items: center;
           border-radius: var(--r-sm); color: var(--ink2); cursor: pointer; }
.iconbtn:hover { background: var(--paper3); color: var(--ink); }
.iconbtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.iconbtn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8;
               stroke-linecap: round; stroke-linejoin: round; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none;
          background: var(--panel); border-top: 1px solid var(--hair);
          padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
            min-height: 52px; padding: 9px 0 7px; color: var(--muted); font-size: .68rem; font-weight: 500; }
.tabbar a:hover { text-decoration: none; }
.tabbar a.on { color: var(--verdigris); font-weight: 600; }
.tabbar svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75;
              stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1100px) { .navsearch input { width: 190px; } .topnav nav { gap: var(--s4); } .topnav .in { gap: var(--s5); } }
@media (max-width: 920px) { .navsearch { display: none; } }
@media (max-width: 760px) {
  .topnav .in { padding: 0 var(--s4); height: 56px; }
  .topnav nav { display: none; }
  .tabbar { display: flex; }
}

/* ------------------------------------------------------------- page frames */
.page { max-width: 820px; margin: 0 auto; }
.page.wide { max-width: var(--wide); }
.page.rail { display: grid; grid-template-columns: minmax(0, 1fr) var(--rail-w); gap: var(--s6); max-width: var(--wide); }
@media (max-width: 1040px) { .page.rail { grid-template-columns: 1fr; } .page.rail > aside { display: none; } }
/* The rail is a small card titled "Di halaman ini", sticky beside long pages. */
.railnav { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 2px;
           background: var(--panel); border: 1px solid var(--hair); border-radius: var(--r); padding: 12px; }
.railnav::before { content: "Di halaman ini"; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em;
           text-transform: uppercase; color: var(--muted); padding: 4px 10px 10px; margin-bottom: 4px;
           border-bottom: 1px solid var(--hair); }
.railnav a { font-size: var(--t-sm); color: var(--ink2); padding: 7px 10px; border-radius: var(--r-sm); }
.railnav a:hover { text-decoration: none; color: var(--ink); background: var(--paper2); }
.railnav a.on { color: var(--verdigris-3); background: var(--verdigris-2); font-weight: 600; }
.section-tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--hair);
                margin: var(--s5) 0 var(--s4); scrollbar-width: none; }
.section-tabs::-webkit-scrollbar { display: none; }
.section-tabs a { white-space: nowrap; font-size: var(--t-sm); font-weight: 500; color: var(--ink2);
                  padding: 9px 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.section-tabs a:hover { text-decoration: none; color: var(--ink); }
.section-tabs a.on { color: var(--ink); border-color: var(--verdigris); }
.section-tabs .n { font-family: var(--mono); font-size: .68rem; color: var(--muted); margin-inline-start: 4px; }

/* Breadcrumb, mono: where this page sits in the corpus. */
.crumbs { font-family: var(--mono); font-size: .72rem; color: var(--muted); display: flex; flex-wrap: wrap;
          gap: 6px; align-items: center; margin-bottom: 10px; }
.crumbs a { color: var(--ink2); } .crumbs a:hover { color: var(--verdigris); }
.crumbs i { font-style: normal; color: var(--line); }

/* Page head: title, short meta, actions. */
.pagehead { background: var(--panel); border: 1px solid var(--hair); border-radius: var(--r);
            padding: var(--s5) var(--s6); margin-bottom: var(--s5); }
.pagehead h1, .pagehead .h1 { font-size: clamp(1.7rem, 3vw, 2.1rem); margin: 0; }
.pagehead .meta { font-family: var(--mono); font-size: .74rem; color: var(--muted); margin-top: 8px; }
.pagehead .titlerow { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); flex-wrap: wrap; }
.pagehead .titlerow .muted { font-weight: 400; }
.pagehead .ar-title { font-size: 1.35rem; color: var(--ink2); }
@media (max-width: 760px) { .pagehead { padding: var(--s4); } }

/* ------------------------------------------------------------- console density */
.match { background: var(--amber); border: 1px solid var(--amber-line); border-radius: var(--r-sm);
         padding: var(--s3) var(--s4); }

/* ------------------------------------------------------------- section nav (buttons; the hash is the router) */
.railnav button, .section-tabs button { all: unset; box-sizing: border-box; cursor: pointer; font-family: var(--body); }
.railnav button { font-size: var(--t-sm); color: var(--ink2); padding: 7px 10px; border-radius: var(--r-sm); }
.railnav button:hover { color: var(--ink); background: var(--paper2); }
.railnav button.on { color: var(--verdigris-3); background: var(--verdigris-2); font-weight: 600; }
.section-tabs button { white-space: nowrap; font-size: var(--t-sm); font-weight: 500; color: var(--ink2);
                       padding: 9px 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.section-tabs button.on { color: var(--ink); border-color: var(--verdigris); }
.railnav button:focus-visible, .section-tabs button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.node-tabs { position: sticky; top: var(--nav-h); z-index: 20; background: var(--paper); margin-top: var(--s4); }
@media (min-width: 1041px) { .node-tabs { display: none; } }
.node-section { scroll-margin-top: calc(var(--nav-h) + 56px); }
@media (min-width: 1041px) { .node-section { scroll-margin-top: calc(var(--nav-h) + 16px); } }

/* ------------------------------------------------------------- segmented switch */
.seg { display: inline-flex; border: 1px solid var(--hair); border-radius: var(--r-sm); padding: 2px; background: var(--paper2); }
.seg button { background: transparent; color: var(--ink2); border: 0; padding: 5px 12px; font-size: var(--t-xs); font-weight: 600; border-radius: 4px; }
.seg button:hover { background: var(--paper2); color: var(--ink); border: 0; }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(20,31,36,.12); }

/* ------------------------------------------------------------- isnad fan */
.fan { position: relative; --lw: 18px; }
.fan-lines { position: absolute; top: 0; inset-inline-start: 0; overflow: visible; pointer-events: none; }
.fan-lines path { fill: none; stroke: var(--line); stroke-width: 1.5; }
.fan-lines path.e-book { stroke-dasharray: 2 4; }
.fan-lines path.e-disputed { stroke: var(--ochre); stroke-dasharray: 6 4; }
.fan-lines path.e-unknown { stroke: var(--rubric); stroke-dasharray: 3 3; }
.fan-rows { list-style: none; margin: 0; padding: 0; }
.fan-row { position: relative; padding-inline-start: calc(var(--lanes) * var(--lw) + 12px); padding-block: 7px; min-height: 44px; }
.fan-dot { position: absolute; top: 19px; inset-inline-start: calc(var(--lane) * var(--lw) + var(--lw) / 2 - 6px);
           width: 12px; height: 12px; border-radius: 50%; background: var(--verdigris); z-index: 1; }
.fan-dot.t-ok { background: var(--verdigris); }
.fan-dot.t-weak { background: var(--ochre); }
.fan-dot.t-comp { background: var(--ink); }
.fan-dot.t-plain { background: var(--panel); border: 2px solid var(--verdigris); }
.fan-dot.t-unknown { background: var(--panel); border: 2px solid var(--rubric); }
.fan-dot.t-prophet { background: var(--panel); border: 2px solid var(--ink); border-radius: 3px; transform: rotate(45deg); }
.fan-dot.t-book { background: var(--paper2); border: 1.5px solid var(--ink2); border-radius: 2px; }
.fan-label { min-width: 0; text-align: right; }
.fan-name { font-family: var(--ar); font-size: calc(.86rem * var(--ar-scale)); line-height: 1.7; color: var(--ink); }
a.fan-name:hover { color: var(--verdigris); }
.fan-row.leaf .fan-name { font-size: calc(.74rem * var(--ar-scale)); color: var(--ink2); }
.fan-row.leaf .fan-name::before { content: ""; }
.fan-term { font-family: var(--ar); color: var(--muted); font-size: 1rem; margin-inline-end: 8px; }
.fan-madar { margin-inline-start: 8px; vertical-align: 3px; }
.fan-sub { font-size: var(--t-xs); color: var(--muted); line-height: 1.5; text-align: right; }
.fan-sub .ar-inline { color: var(--ink2); }
.fan-row.madar > .fan-dot { box-shadow: 0 0 0 4px var(--verdigris-2); }
.fan-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--t-xs); color: var(--muted); margin-top: var(--s3); }
.fan-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fan-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
