/* =====================================================================
   ความเป็นธรรมทางการศึกษา — Educational Equity Thailand
   Design system · Boorapatis Ploysuwan
   ===================================================================== */

:root{
  /* surfaces */
  --paper:#f4f5f1;
  --paper-2:#ffffff;
  --paper-3:#eef0ea;
  --ink:#14243f;
  --ink-soft:#44506a;
  --ink-faint:#828a9a;
  --line:#dcdfd7;
  --line-soft:#e8eae3;

  /* concept spectrum */
  --c-ineq:#a63a2e;   --c-ineq-bg:#f6e6e2;
  --c-eqal:#5c6b82;   --c-eqal-bg:#e9ebef;
  --c-eqty:#0e7361;   --c-eqty-bg:#e0efea;
  --c-just:#b07d1f;   --c-just-bg:#f6ecd9;
  --c-incl:#6a57a6;   --c-incl-bg:#ece7f5;

  /* brand action */
  --brand:#0e7361;
  --brand-dk:#0a5749;
  --gold:#8a6d1c;

  /* type */
  --serif:"Noto Serif Thai", Georgia, serif;
  --sans:"Sarabun", system-ui, -apple-system, sans-serif;
  --mono:"IBM Plex Mono", ui-monospace, monospace;

  --wrap:1180px;
  --radius:6px;
  --shadow:0 2px 20px rgba(20,36,63,.07);
  --shadow-lg:0 12px 44px rgba(20,36,63,.13);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:var(--sans); color:var(--ink); background:var(--paper);
  line-height:1.65; font-size:17px; -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img,svg{ max-width:100%; display:block; }
a{ color:var(--brand-dk); text-decoration:none; }
a:hover{ text-decoration:underline; }

/* ---------- layout ---------- */
.wrap{ width:var(--wrap); max-width:calc(100% - 44px); margin-inline:auto; }
.section{ padding:74px 0; }
.section.tight{ padding:48px 0; }
.section.alt{ background:var(--paper-2); border-block:1px solid var(--line-soft); }
.section.ink{ background:var(--ink); color:#eef1f6; }
.section.ink .eyebrow{ color:#7fc3b6; }

.grid{ display:grid; gap:24px; }
.g-2{ grid-template-columns:repeat(2,1fr); }
.g-3{ grid-template-columns:repeat(3,1fr); }
.g-4{ grid-template-columns:repeat(4,1fr); }
.center{ text-align:center; }
.mt-s{ margin-top:14px; } .mt-m{ margin-top:26px; } .mt-l{ margin-top:44px; }
.maxw{ max-width:70ch; } .maxw.center{ margin-inline:auto; }

/* ---------- typography ---------- */
.eyebrow{
  font-family:var(--mono); font-size:12px; font-weight:600; letter-spacing:.22em;
  text-transform:uppercase; color:var(--gold);
}
h1,h2,h3,h4{ font-family:var(--serif); font-weight:700; color:var(--ink); line-height:1.18; letter-spacing:-.01em; }
.section.ink h1,.section.ink h2,.section.ink h3{ color:#fff; }
h1{ font-size:clamp(32px,5vw,52px); }
h2{ font-size:clamp(26px,3.4vw,38px); }
h3{ font-size:clamp(20px,2.2vw,25px); }
h4{ font-size:19px; }
.lead{ font-size:clamp(18px,2vw,21px); color:var(--ink-soft); line-height:1.6; }
.muted{ color:var(--ink-soft); }
.small{ font-size:14px; } .xsmall{ font-size:12.5px; }
strong,b{ font-weight:700; color:inherit; }
.kw{ font-family:var(--serif); font-weight:600; }
.mono{ font-family:var(--mono); }

/* ---------- spectrum motif (signature) ---------- */
.spectrum{ display:flex; height:6px; width:100%; border-radius:3px; overflow:hidden; }
.spectrum i{ flex:1; display:block; }
.spectrum i:nth-child(1){ background:var(--c-ineq); }
.spectrum i:nth-child(2){ background:var(--c-eqal); }
.spectrum i:nth-child(3){ background:var(--c-eqty); }
.spectrum i:nth-child(4){ background:var(--c-just); }
.spectrum i:nth-child(5){ background:var(--c-incl); }
.spectrum.slim{ height:4px; }

/* ---------- header / nav ---------- */
.site-header{
  position:sticky; top:0; z-index:60;
  background:rgba(244,245,241,.85); backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
.nav{ display:flex; align-items:center; justify-content:space-between; height:66px; }
.brand{ display:flex; align-items:center; gap:11px; color:var(--ink); font-family:var(--serif);
  font-weight:700; font-size:18px; letter-spacing:-.01em; }
.brand:hover{ text-decoration:none; }
.brand .mark{ width:30px; height:30px; border-radius:7px; background:var(--ink);
  display:grid; place-items:center; flex:none; }
.brand .mark span{ display:block; width:15px; height:15px; }
.brand .mark .spectrum{ height:15px; border-radius:3px; }
.brand-logo{ width:36px; height:36px; border-radius:8px; flex:none; object-fit:contain; background:#fff; }
.author-photo{ width:132px; height:132px; border-radius:14px; object-fit:cover; border:3px solid var(--paper-3); box-shadow:var(--shadow); flex:none; }
.author-row{ display:flex; gap:18px; align-items:center; }
.dl-row{ display:flex; flex-wrap:wrap; gap:8px; margin-top:auto; padding-top:16px; }
.dl-btn{ font-family:var(--mono); font-size:12.5px; font-weight:600; padding:9px 15px; border-radius:6px;
  background:var(--brand); color:#fff; border:1.5px solid var(--brand); transition:.18s; }
.dl-btn:hover{ background:var(--brand-dk); border-color:var(--brand-dk); text-decoration:none; transform:translateY(-1px); }
.dl-btn.ghost{ background:transparent; color:var(--ink-soft); border-color:var(--line); }
.dl-btn.ghost:hover{ border-color:var(--ink); color:var(--ink); background:var(--paper-2); }
.brand small{ display:block; font-family:var(--mono); font-size:8.5px; letter-spacing:.14em;
  color:var(--ink-faint); font-weight:500; text-transform:uppercase; margin-top:1px; }
.nav-links{ display:flex; align-items:center; gap:5px; list-style:none; }
.nav-links a{ display:block; padding:8px 13px; border-radius:5px; color:var(--ink-soft);
  font-size:15px; font-weight:500; letter-spacing:.01em; }
.nav-links a:hover{ background:var(--paper-3); color:var(--ink); text-decoration:none; }
.nav-links a.active{ color:var(--ink); font-weight:600; background:var(--paper-3); }
.nav-toggle{ display:none; background:none; border:1px solid var(--line); border-radius:6px;
  width:42px; height:38px; cursor:pointer; }
.nav-toggle span{ display:block; width:18px; height:2px; background:var(--ink); margin:3px auto; transition:.25s; }

/* ---------- buttons ---------- */
.btn{ display:inline-flex; align-items:center; gap:9px; font-family:var(--sans); font-weight:600;
  font-size:15.5px; padding:12px 22px; border-radius:7px; border:1.5px solid transparent;
  cursor:pointer; transition:.2s; }
.btn:hover{ text-decoration:none; transform:translateY(-1px); }
.btn-primary{ background:var(--brand); color:#fff; }
.btn-primary:hover{ background:var(--brand-dk); color:#fff; }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--line); }
.btn-ghost:hover{ border-color:var(--ink); background:var(--paper-2); }
.btn .arrow{ font-family:var(--mono); }

/* ---------- hero ---------- */
.hero{ position:relative; padding:82px 0 68px; overflow:hidden; }
.hero-grid{ display:grid; grid-template-columns:1.15fr .85fr; gap:52px; align-items:center; }
.hero h1{ margin-top:16px; }
.hero .lead{ margin-top:20px; max-width:56ch; }
.hero-cta{ display:flex; gap:14px; margin-top:32px; flex-wrap:wrap; }
.hero-spectrum{ max-width:340px; margin-top:26px; }
.hero-spectrum .labels{ display:flex; justify-content:space-between; margin-top:8px;
  font-family:var(--mono); font-size:9.5px; letter-spacing:.03em; color:var(--ink-faint); }

/* hero side visual */
.hero-card{ background:var(--paper-2); border:1px solid var(--line); border-radius:12px;
  box-shadow:var(--shadow-lg); padding:26px; }
.hero-card h4{ font-family:var(--mono); font-size:11px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--ink-faint); font-weight:600; }
.figrow{ display:flex; align-items:flex-end; justify-content:space-around; height:150px; margin:18px 0 6px; }

/* ---------- eyebrow-head block ---------- */
.head-block{ max-width:66ch; }
.head-block .eyebrow{ display:block; margin-bottom:12px; }
.head-block h2 + .lead{ margin-top:16px; }

/* ---------- concept cards ---------- */
.concept-card{ background:var(--paper-2); border:1px solid var(--line); border-radius:10px;
  padding:22px 22px 20px; border-top:4px solid var(--ink); transition:.2s; height:100%;
  display:flex; flex-direction:column; }
.concept-card:hover{ box-shadow:var(--shadow); transform:translateY(-2px); }
.concept-card .tag{ font-family:var(--mono); font-size:11px; font-weight:600; letter-spacing:.06em; }
.concept-card h3{ margin-top:4px; font-size:22px; }
.concept-card .en{ font-family:var(--mono); font-size:12.5px; font-weight:600; margin-top:2px; }
.concept-card p{ margin-top:12px; font-size:15px; color:var(--ink-soft); }
.concept-card .rule{ margin-top:auto; padding-top:14px; font-size:13px; }
.concept-card .rule b{ font-family:var(--mono); font-size:11px; text-transform:uppercase; letter-spacing:.08em; }
.c-ineq{ border-top-color:var(--c-ineq); } .c-ineq .tag,.c-ineq .en{ color:var(--c-ineq); }
.c-eqal{ border-top-color:var(--c-eqal); } .c-eqal .tag,.c-eqal .en{ color:var(--c-eqal); }
.c-eqty{ border-top-color:var(--c-eqty); } .c-eqty .tag,.c-eqty .en{ color:var(--c-eqty); }
.c-just{ border-top-color:var(--c-just); } .c-just .tag,.c-just .en{ color:var(--c-just); }
.c-incl{ border-top-color:var(--c-incl); } .c-incl .tag,.c-incl .en{ color:var(--c-incl); }

/* ---------- stat cards ---------- */
.stat{ background:var(--paper-2); border:1px solid var(--line); border-radius:10px; padding:24px; }
.section.ink .stat{ background:rgba(255,255,255,.05); border-color:rgba(255,255,255,.14); }
.stat .num{ font-family:var(--serif); font-weight:700; font-size:clamp(34px,4.4vw,46px);
  line-height:1; color:var(--ink); letter-spacing:-.02em; }
.section.ink .stat .num{ color:#fff; }
.stat .num .unit{ font-size:.5em; font-weight:600; color:var(--ink-soft); margin-left:3px; }
.section.ink .stat .num .unit{ color:#b9c4d4; }
.stat .lbl{ margin-top:10px; font-size:14.5px; color:var(--ink-soft); line-height:1.5; }
.section.ink .stat .lbl{ color:#c3ccdb; }
.stat .src{ margin-top:8px; font-family:var(--mono); font-size:10.5px; color:var(--ink-faint); }
.stat.accent-ineq{ border-left:4px solid var(--c-ineq); }
.stat.accent-eqty{ border-left:4px solid var(--c-eqty); }
.stat.accent-just{ border-left:4px solid var(--c-just); }
.stat.accent-incl{ border-left:4px solid var(--c-incl); }

/* ---------- prose blocks ---------- */
.prose p{ margin-top:16px; color:var(--ink-soft); }
.prose p:first-child{ margin-top:0; }
.prose h3{ margin-top:34px; }
.prose h4{ margin-top:24px; }
.prose ul{ margin-top:14px; padding-left:0; list-style:none; }
.prose ul li{ position:relative; padding-left:24px; margin-top:10px; color:var(--ink-soft); }
.prose ul li::before{ content:""; position:absolute; left:4px; top:11px; width:7px; height:7px;
  border-radius:50%; background:var(--brand); }
.callout{ border-left:4px solid var(--gold); background:var(--c-just-bg); padding:16px 20px;
  border-radius:0 8px 8px 0; margin-top:22px; font-size:15.5px; }
.callout.eqty{ border-color:var(--c-eqty); background:var(--c-eqty-bg); }
.callout.ineq{ border-color:var(--c-ineq); background:var(--c-ineq-bg); }
.callout b{ color:var(--ink); }

/* ---------- tables ---------- */
.table-wrap{ overflow-x:auto; margin-top:22px; border:1px solid var(--line); border-radius:10px; }
table.data{ width:100%; border-collapse:collapse; font-size:14.5px; background:var(--paper-2); min-width:560px; }
table.data th{ text-align:left; padding:13px 15px; background:var(--paper-3); color:var(--ink);
  font-weight:600; font-size:12.5px; border-bottom:1.5px solid var(--ink); }
table.data td{ padding:12px 15px; border-bottom:1px solid var(--line-soft); color:var(--ink-soft);
  vertical-align:top; }
table.data tr:last-child td{ border-bottom:none; }
table.data td b{ color:var(--ink); }
.chip{ display:inline-block; font-family:var(--mono); font-size:10px; font-weight:600; padding:2px 7px;
  border-radius:3px; letter-spacing:.03em; }
.chip.s{ background:var(--c-eqty-bg); color:var(--c-eqty); }
.chip.w{ background:var(--c-just-bg); color:var(--c-just); }

/* ---------- decoder (interactive) ---------- */
.decoder{ background:var(--paper-2); border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.decoder-tabs{ display:flex; flex-wrap:wrap; gap:2px; padding:10px; background:var(--paper-3);
  border-bottom:1px solid var(--line); }
.decoder-tab{ flex:1; min-width:120px; font-family:var(--sans); font-weight:600; font-size:14px;
  padding:10px 12px; border:none; background:transparent; border-radius:6px; cursor:pointer;
  color:var(--ink-soft); border-bottom:3px solid transparent; transition:.15s; }
.decoder-tab:hover{ background:var(--paper-2); }
.decoder-tab.active{ background:var(--paper-2); color:var(--ink); box-shadow:var(--shadow); }
.decoder-tab .en{ display:block; font-family:var(--mono); font-size:10px; font-weight:600; opacity:.75; }
.decoder-panel{ padding:28px; display:none; }
.decoder-panel.active{ display:block; animation:fade .3s ease; }
.decoder-panel .dp-th{ font-family:var(--serif); font-size:28px; font-weight:700; }
.decoder-panel .dp-en{ font-family:var(--mono); font-weight:600; font-size:14px; margin-top:2px; }
.decoder-panel .dp-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:20px; }
.dp-cell{ background:var(--paper); border-radius:8px; padding:15px 16px; }
.dp-cell h5{ font-family:var(--mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--ink-faint); font-weight:600; margin-bottom:7px; }
.dp-cell p{ font-size:14.5px; color:var(--ink-soft); }
.tab-ineq.active{ border-bottom-color:var(--c-ineq); } .tab-ineq.active .en{ color:var(--c-ineq); }
.tab-eqal.active{ border-bottom-color:var(--c-eqal); } .tab-eqal.active .en{ color:var(--c-eqal); }
.tab-eqty.active{ border-bottom-color:var(--c-eqty); } .tab-eqty.active .en{ color:var(--c-eqty); }
.tab-just.active{ border-bottom-color:var(--c-just); } .tab-just.active .en{ color:var(--c-just); }
.tab-incl.active{ border-bottom-color:var(--c-incl); } .tab-incl.active .en{ color:var(--c-incl); }

/* ---------- charts (svg/bar) ---------- */
.chart{ background:var(--paper-2); border:1px solid var(--line); border-radius:10px; padding:22px 24px; }
.chart h4{ font-family:var(--sans); font-weight:700; font-size:16px; }
.chart .cap{ font-size:13px; color:var(--ink-faint); margin-top:3px; }
.bars{ margin-top:20px; display:flex; flex-direction:column; gap:13px; }
.bar-row{ display:grid; grid-template-columns:130px 1fr 58px; align-items:center; gap:12px; font-size:13.5px; }
.bar-row .name{ color:var(--ink-soft); text-align:right; }
.bar-row .track{ background:var(--paper-3); border-radius:5px; height:22px; overflow:hidden; }
.bar-row .fill{ height:100%; border-radius:5px; width:0; transition:width 1.1s cubic-bezier(.2,.7,.3,1); }
.bar-row .val{ font-family:var(--mono); font-weight:600; font-size:13px; color:var(--ink); }
.bar-row.hl .name{ color:var(--ink); font-weight:700; }

/* ---------- timeline / layers ---------- */
.layers{ display:flex; flex-direction:column; gap:0; margin-top:26px; border-left:2px solid var(--line); }
.layer{ position:relative; padding:0 0 30px 30px; }
.layer::before{ content:""; position:absolute; left:-9px; top:3px; width:16px; height:16px;
  border-radius:50%; background:var(--paper); border:3px solid var(--brand); }
.layer:last-child{ padding-bottom:0; }
.layer .yr{ font-family:var(--mono); font-size:12px; font-weight:600; color:var(--gold); letter-spacing:.05em; }
.layer h4{ font-family:var(--serif); margin-top:2px; }
.layer p{ font-size:14.5px; color:var(--ink-soft); margin-top:6px; }

/* ---------- footer ---------- */
.site-footer{ background:var(--ink); color:#c3ccdb; padding:56px 0 30px; }
.site-footer a{ color:#d7dee9; }
.footer-grid{ display:grid; grid-template-columns:1.5fr 1fr 1fr; gap:40px; }
.site-footer h5{ font-family:var(--mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  color:#7f8ba1; font-weight:600; margin-bottom:14px; }
.site-footer .brand-f{ font-family:var(--serif); font-size:20px; color:#fff; font-weight:700; }
.site-footer p{ font-size:14px; margin-top:12px; line-height:1.6; }
.site-footer ul{ list-style:none; }
.site-footer ul li{ margin-top:9px; font-size:14px; }
.foot-author{ background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12);
  border-radius:9px; padding:16px 18px; margin-top:16px; }
.foot-author .nm{ color:#fff; font-weight:700; font-family:var(--serif); font-size:16px; }
.foot-author .rl{ font-size:13px; color:#a9b4c6; }
.foot-author a{ font-family:var(--mono); font-size:13px; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.12); margin-top:40px; padding-top:22px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  font-size:12.5px; color:#8f9ab0; font-family:var(--mono); }

/* ---------- misc ---------- */
.pill{ display:inline-flex; align-items:center; gap:7px; font-family:var(--mono); font-size:12px;
  font-weight:600; letter-spacing:.05em; padding:6px 13px; border-radius:20px;
  background:var(--paper-2); border:1px solid var(--line); color:var(--ink-soft); }
.pill .dot{ width:8px; height:8px; border-radius:50%; }
.divider{ height:1px; background:var(--line); margin:0; }
.backtop{ position:fixed; right:22px; bottom:22px; width:46px; height:46px; border-radius:50%;
  background:var(--ink); color:#fff; border:none; cursor:pointer; display:grid; place-items:center;
  opacity:0; pointer-events:none; transition:.25s; z-index:50; box-shadow:var(--shadow-lg); }
.backtop.show{ opacity:1; pointer-events:auto; }
.crumbs{ font-family:var(--mono); font-size:12px; color:var(--ink-faint); letter-spacing:.04em; }
.crumbs a{ color:var(--ink-soft); }

/* page hero (interior) */
.page-hero{ padding:56px 0 40px; border-bottom:1px solid var(--line); background:var(--paper-2); }
.page-hero .spectrum{ max-width:180px; margin-top:20px; }

/* ---------- reveal animation (progressive enhancement) ---------- */
html.js .reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
html.js .reveal.in{ opacity:1; transform:none; }
@keyframes fade{ from{opacity:0} to{opacity:1} }

/* ---------- ecosystem page ---------- */
.flow-arrow{ display:flex; flex-direction:column; align-items:center; gap:2px; margin:6px 0; color:var(--ink-faint); }
.flow-arrow .ar{ font-size:24px; line-height:1; }
.flow-arrow .lbl{ font-family:var(--mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; }
.found-band{ background:var(--ink); color:#eef1f6; border-radius:12px; padding:26px 28px; }
.found-band h3{ color:#fff; font-size:20px; }
.found-chips{ display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.found-chip{ background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16); border-radius:8px;
  padding:9px 14px; font-size:14px; color:#fff; }
.found-chip small{ display:block; font-family:var(--mono); font-size:10px; color:#9fb4c9; letter-spacing:.04em; margin-top:1px; }
.found-basis{ margin-top:16px; font-size:13px; color:#b9c4d4; font-family:var(--mono); letter-spacing:.01em; }
.node-actions{ list-style:none; margin-top:12px; display:flex; flex-direction:column; gap:7px; }
.node-actions li{ position:relative; padding-left:20px; font-size:13.5px; color:var(--ink-soft); }
.node-actions li::before{ content:"→"; position:absolute; left:0; top:0; font-family:var(--mono); font-size:12px; color:var(--brand); }
.node-src{ margin-top:auto; padding-top:12px; font-family:var(--mono); font-size:10.5px; color:var(--ink-faint); line-height:1.7; }
.eco-dim{ background:var(--paper); border-radius:8px; padding:11px 13px; margin-top:10px; font-size:13.5px; color:var(--ink-soft); }
.eco-dim b{ color:var(--ink); font-family:var(--serif); }
.cycle{ display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin-top:26px; counter-reset:cy; }
.cycle-step{ background:var(--paper-2); border:1px solid var(--line); border-radius:10px; padding:18px 15px 16px;
  border-top:4px solid var(--brand); position:relative; }
.cycle-step .n{ font-family:var(--serif); font-weight:700; font-size:22px; color:var(--brand); }
.cycle-step h4{ font-family:var(--sans); font-weight:700; font-size:15px; margin-top:4px; }
.cycle-step .en{ font-family:var(--mono); font-size:10px; color:var(--ink-faint); margin-top:2px; letter-spacing:.03em; }
.cycle-loop{ text-align:center; margin-top:14px; font-family:var(--mono); font-size:11px; letter-spacing:.08em; color:var(--gold); }
.print-btn{ display:inline-flex; align-items:center; gap:8px; font-family:var(--sans); font-weight:600; font-size:14px;
  padding:9px 16px; border-radius:7px; border:1.5px solid var(--line); background:var(--paper-2); color:var(--ink); cursor:pointer; }
.print-btn:hover{ border-color:var(--ink); }

/* ---------- responsive ---------- */
@media (max-width:900px){
  .hero-grid{ grid-template-columns:1fr; gap:36px; }
  .hero-card{ order:-1; }
  .g-4{ grid-template-columns:repeat(2,1fr); }
  .cycle{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr; gap:28px; }
  .decoder-panel .dp-grid{ grid-template-columns:1fr; }
}
@media (max-width:680px){
  body{ font-size:16px; }
  .nav-links{ position:fixed; inset:66px 0 auto 0; flex-direction:column; gap:0;
    background:var(--paper-2); border-bottom:1px solid var(--line); padding:8px;
    transform:translateY(-130%); transition:transform .3s; box-shadow:var(--shadow); }
  .nav-links.open{ transform:none; }
  .nav-links a{ padding:13px; border-radius:6px; font-size:16px; }
  .nav-toggle{ display:block; }
  .g-2,.g-3{ grid-template-columns:1fr; }
  .cycle{ grid-template-columns:1fr; }
  .section{ padding:52px 0; }
  .bar-row{ grid-template-columns:96px 1fr 50px; gap:8px; font-size:12.5px; }
}

@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; transition:none !important; scroll-behavior:auto !important; }
  .reveal{ opacity:1; transform:none; }
  .bar-row .fill{ transition:none; }
}

/* ---------- logo, author photo, document links (added) ---------- */
.brand-logo{ width:36px; height:36px; border-radius:9px; object-fit:cover; flex:none;
  box-shadow:0 1px 4px rgba(20,36,63,.15); background:#fff; }
.author-card-top{ display:flex; align-items:center; gap:16px; margin-bottom:4px; }
.author-photo{ width:78px; height:78px; border-radius:50%; object-fit:cover;
  border:3px solid var(--paper-3); flex:none; box-shadow:var(--shadow); }
.doclist{ list-style:none; margin-top:14px; padding:0; }
.doclist li{ margin:0; padding:0; }
.doclist li::before{ display:none; }
.doclist a{ display:flex; align-items:center; gap:11px; padding:11px 13px; border:1px solid var(--line);
  border-radius:8px; margin-top:9px; color:var(--ink); background:var(--paper-2); transition:.15s;
  font-size:14.5px; line-height:1.35; }
.doclist a:hover{ border-color:var(--brand); background:var(--c-eqty-bg); text-decoration:none; transform:translateX(2px); }
.doclist a .ic{ font-family:var(--mono); font-weight:600; font-size:10px; color:#fff; background:var(--c-ineq);
  padding:4px 6px; border-radius:4px; flex:none; letter-spacing:.03em; }
.doclist a .ic.ext{ background:var(--c-eqal); }
.doclist a .t{ flex:1; }
.doclist a .t small{ display:block; color:var(--ink-faint); font-size:12px; font-weight:400; margin-top:1px; }
.doclist a .go{ font-family:var(--mono); color:var(--ink-faint); font-size:14px; flex:none; }
.doclist a:hover .go{ color:var(--brand); }
.layer a{ font-family:var(--mono); font-size:12.5px; font-weight:600; white-space:nowrap; }
