/* Knowledge Impact Lab v2 — additions to the production stylesheet (site.css, unchanged).
   Uses only the existing design tokens, so the identity, colours and dark theme carry over. */

/* Accessibility */
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 10px; }
main:focus { outline: none; }

/* Language direction: mirror "forward" arrows and right-aligned citations on English pages. */
[dir="ltr"] .i-fwd, [dir="ltr"] .more svg, [dir="ltr"] .btn svg.i-fwd { transform: scaleX(-1); }
[dir="ltr"] .cite { text-align: left; }
[dir="ltr"] body { font-family: var(--font-body); }

/* Breadcrumbs */
main > .crumbs { box-sizing: border-box; max-width: calc(var(--read) + 40px); margin: 0 auto; padding: 18px 20px 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-inline: 8px; color: var(--muted); }
[dir="rtl"] .crumbs li + li::before { content: "‹"; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--petrol); text-decoration: underline; }
main > .crumbs + .page:not(#v-home) { padding-top: 14px; }

/* Preview banner and translation notice */
.preview-bar { margin: 0; padding: 10px 20px; text-align: center; font-weight: 700; background: color-mix(in srgb, var(--saffron) 22%, var(--surface)); color: var(--ink); border-bottom: 1px solid var(--line); }
.tr-note { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 14.5px; color: var(--ink-2); background: color-mix(in srgb, var(--saffron) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--saffron) 40%, var(--line)); }

/* Badges */
.badge { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.7; background: var(--petrol-soft); color: var(--petrol); }
.badge-warn, .badge-review, .badge-pending { background: color-mix(in srgb, var(--saffron) 20%, var(--surface)); color: color-mix(in srgb, var(--saffron) 45%, var(--ink)); }
.badge-verified { background: color-mix(in srgb, #2e8b57 16%, var(--surface)); color: color-mix(in srgb, #2e8b57 70%, var(--ink)); }
.badge-opinion { background: color-mix(in srgb, var(--sky) 18%, var(--surface)); color: var(--heading); }

/* Taxonomy chips and the metadata panel */
.tax-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; }
.tax-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13.5px; text-decoration: none; }
.tax-chip:hover { border-color: var(--petrol); color: var(--petrol); }
.tax-id { font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: 700; color: var(--petrol); }
.meta-panel { display: grid; gap: 8px; padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--line); background: color-mix(in srgb, var(--tint) 55%, var(--surface)); font-size: 14.5px; }
.mp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; }
.fix-link { margin: 0; font-size: 14.5px; }
.fix-link a { color: var(--petrol); font-weight: 600; }

/* Glossary */
.term h3 a { color: inherit; text-decoration: none; }
.term h3 a:hover { color: var(--petrol); text-decoration: underline; }
.term-dom { margin: 0; font-size: 13px; color: var(--muted); }
.f-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.f-row label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.f-row select, .fb-form select, .fb-form input, .fb-form textarea {
  min-height: 44px; box-sizing: border-box; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 15.5px; max-width: 100%;
}
.f-row select:focus-visible, .fb-form :is(select, input, textarea):focus-visible { outline: 2px solid var(--petrol); outline-offset: 1px; }
.az-wrap { display: grid; gap: 6px; }
.az { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.az-k { font-size: 13px; font-weight: 700; color: var(--muted); margin-inline-end: 6px; }
.az-b { min-width: 34px; min-height: 34px; padding: 2px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 15px; cursor: pointer; }
.az-b[aria-pressed="true"] { background: var(--petrol); border-color: var(--petrol); color: var(--on-petrol); }
.def-box { display: grid; gap: 8px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.term-def.big { font-size: 18px; line-height: 1.9; color: var(--ink); }
.def-src { margin: 0; font-size: 13.5px; color: var(--muted); }
.rel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rel-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.rel-o { font-size: 13.5px; color: var(--muted); }
.ref-list { margin: 0; padding-inline-start: 22px; display: grid; gap: 10px; font-size: 14.5px; line-height: 1.7; text-align: start; }
.ref-v { display: block; font-size: 13px; color: var(--muted); }
.edge-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.edge { font-weight: 600; }
.edge-r { font-weight: 400; color: var(--muted); }
.edge-c { display: block; font-size: 13px; color: var(--muted); text-align: start; }

/* Library facets */
.facets { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.facets > summary { cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.facet-grid { display: grid; gap: 10px; padding: 4px 14px 12px; }
@media (min-width: 640px) { .facet-grid { grid-template-columns: 1fr 1fr; } }
.facet-grid .f-row { display: grid; gap: 4px; }
.facet-grid select { width: 100%; }
.facets .small { padding: 0 14px 12px; margin: 0; }
.lib-v { margin: 0; font-size: 13.5px; }
.lib-cite { color: var(--muted); }

/* Encyclopedia */
.enc-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .enc-grid { grid-template-columns: 1fr 1fr; } }
.enc-card { display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.enc-card:hover { border-color: var(--petrol); }
.enc-num { font-size: 13px; font-weight: 800; color: var(--petrol); letter-spacing: .02em; }
.enc-t { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--heading); line-height: 1.5; }
.enc-o { font-size: 13.5px; color: var(--muted); }
.enc-m { font-size: 13.5px; color: var(--ink-2); }
.enc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.enc-node { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.enc-node.is-child { margin-inline-start: 28px; }
.enc-node.is-empty { background: transparent; border-style: dashed; }
.enc-node.is-empty .enc-n > span:first-child { color: var(--ink-2); }
.enc-n { display: grid; gap: 2px; }
.enc-n > a { font-weight: 700; }
.enc-scope, .enc-alias { font-size: 13.5px; color: var(--ink-2); }
.enc-c { font-size: 13px; color: var(--muted); white-space: nowrap; }
@media (max-width: 560px) { .enc-node { grid-template-columns: 44px minmax(0, 1fr); } .enc-c { grid-column: 2; } }
.enc-strip { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.enc-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.enc-pill:hover { border-color: var(--petrol); color: var(--petrol); }

/* «معرفتك لها أثر» */
.fb-band { box-sizing: border-box; }
.fb-in { display: grid; gap: 18px; align-items: center; padding: 28px 28px; border-radius: 20px; color: #fff;
  background: linear-gradient(135deg, var(--foot-bg), color-mix(in srgb, var(--petrol) 70%, var(--foot-bg))); }
.fb-in h2 { color: #fff; margin: 0 0 6px; }
.fb-in p { margin: 0; color: color-mix(in srgb, #fff 86%, transparent); max-width: 40em; }
.fb-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.fb-in .btn-primary { background: var(--saffron); color: var(--on-saffron); }
.fb-in .btn-primary:hover { background: color-mix(in srgb, var(--saffron) 85%, #fff); }
.fb-mail { color: #fff; font-weight: 600; }
@media (min-width: 900px) { .fb-in { grid-template-columns: minmax(0, 1fr) auto; padding: 34px 40px; } }
.fb-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > label { font-weight: 600; color: var(--ink-2); font-size: 15px; }
.fb-form textarea { min-height: 150px; line-height: 1.8; resize: vertical; }
.field-err { margin: 0; color: #b42318; font-weight: 600; }

/* Observatory */
.obs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.obs { display: grid; gap: 6px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.obs-m { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--muted); }
.obs-t { font-size: 19px; margin: 0; }
.obs-s { margin: 0; font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.obs-v { color: var(--muted); }

/* Search page */
.page-search { max-width: none; }
.search-results .hits { gap: 4px; }
.search-results .hit-d { white-space: normal; }

/* Articles and footer */
.post-art { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 16px; display: block; }
@media (min-width: 900px) { .foot-in { grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); } }
.nf-en { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 18px; }
.tl-one { margin-top: 0; }
.tl-name a { color: inherit; text-decoration: none; }
.tl-name a:hover { color: var(--petrol); text-decoration: underline; }
[dir="ltr"] .hh-cta .btn-primary svg { transform: scaleX(-1); }
/* English brand name is longer than the Arabic one: let it wrap on small phones so the header never overflows. */
@media (max-width: 480px) {
  [dir="ltr"] .brand-name { white-space: normal; font-size: 15.5px; line-height: 1.2; max-width: 7.2em; }
}
@media (max-width: 400px) {
  .head-bar { padding-inline: 14px; gap: 8px; }
  [dir="ltr"] .brand .mark { width: 42px; height: 28px; }
}
/* «معرفتك لها أثر» dialog */
.fb-dialog { box-sizing: border-box; width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 22px 22px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.fb-dialog::backdrop { background: rgb(27 32 29 / .55); }
.fb-dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.fb-dlg-head h2 { margin: 0; font-size: 22px; }
.fb-dlg-head .small { margin: 2px 0 0; }
.fb-done { display: grid; gap: 14px; }
.fb-privacy { margin: 0; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fb-form input[type="email"], .fb-form input[type="url"] { text-align: start; }
@media (max-width: 560px) { .fb-dialog { padding: 18px 16px 14px; } }

/* Global Knowledge Index page: report card, sub-index list, result tables */
.gki-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 0; }
.gki-fact { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.gki-fact dt { font-size: 13.5px; color: var(--muted); margin-bottom: 4px; }
.gki-fact dd { margin: 0; font-weight: 600; color: var(--heading); line-height: 1.6; }
.gki-sub { display: grid; gap: 8px; padding-inline-start: 1.2em; }
.gki-sub b { color: var(--heading); }
.gki-scroll { overflow-x: auto; margin: 6px 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.gki-scroll:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.gki-table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 300px; }
.gki-table caption { text-align: start; padding: 12px 14px 6px; font-weight: 600; color: var(--heading); }
.gki-table th, .gki-table td { padding: 8px 14px; border-top: 1px solid var(--line); text-align: start; }
.gki-table thead th { font-size: 13.5px; color: var(--muted); font-weight: 600; border-top: 0; }
.gki-table tbody th { font-weight: 500; color: var(--ink); }
.gki-table .n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.gki-table td.n { text-align: end; }
.gki-table thead th.n { text-align: end; }
.gki-table tr.hl { background: var(--petrol-soft); }
.gki-table tr.hl th { font-weight: 700; color: var(--heading); }
.gki-table:not(.gki-ksa) td:first-child, .gki-table:not(.gki-ksa) thead th:first-child { width: 4.5em; text-align: start; }

/* ---- 2026-11-27: owner's logo, light/dark toggle, privacy consent, visit counter, intro video ---- */
.brand .brand-logo { width: 46px; height: 46px; border-radius: 12px; flex: none; display: block; object-fit: cover;
  box-shadow: 0 1px 2px rgb(52 70 61 / .18), 0 6px 14px -8px rgb(52 70 61 / .5); }
.site-foot .brand .brand-logo { width: 54px; height: 54px; border-radius: 14px; box-shadow: 0 0 0 1px rgb(255 255 255 / .08); }
@media (max-width: 400px) { .site-head .brand .brand-logo { width: 40px; height: 40px; border-radius: 10px; } }
.hero-logo { filter: drop-shadow(0 12px 18px rgb(52 70 61 / .35)); }

.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, fill .3s ease, stroke .3s ease, box-shadow .3s ease !important; }
@media (prefers-reduced-motion: reduce) { .theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: none !important; } }

.btn-ghost { background: transparent; color: var(--petrol); border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.btn-ghost:hover { background: var(--petrol-soft); }

.consent { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 70; max-width: 780px; margin-inline: auto;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 22px 60px -24px rgb(18 22 20 / .55); }
.consent[hidden] { display: none; }
.consent-in { padding: 18px 20px; display: grid; gap: 12px; max-height: min(82vh, 660px); overflow: auto; }
.consent h2 { font-family: var(--font-display); font-size: 18px; margin: 0; color: var(--heading); }
.consent p { margin: 0; line-height: 1.75; }
.consent-act { display: flex; flex-wrap: wrap; gap: 8px; }
.consent-act .btn { min-height: 44px; }
.c-panel { display: grid; gap: 10px; }
.c-panel[hidden] { display: none; }
.c-cat { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--paper); }
.c-cat-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.c-cat-h label { cursor: pointer; }
.c-switch { display: inline-flex; align-items: center; gap: 8px; }
.c-switch input { width: 20px; height: 20px; margin: 0; accent-color: var(--petrol); }
.c-state { font-size: 13px; color: var(--muted); }
.c-cat .small { margin-top: 4px; max-width: none; }
.consent.c-saved .consent-txt, .consent.c-saved .c-panel, .consent.c-saved .consent-act { display: none; }
.c-done:empty { display: none; }
.c-done { color: var(--heading); font-weight: 600; }
@media (max-width: 560px) { .consent { inset-inline: 8px; bottom: 8px; } .consent-in { padding: 14px 16px; gap: 10px; } .consent-act .btn { flex: 1 1 calc(50% - 4px); padding-inline: 10px; } .consent-act .btn-ghost { flex-basis: 100%; min-height: 36px; } }

.foot-tools { box-sizing: border-box; max-width: calc(var(--max) + 40px); margin: 0 auto; padding: 4px 20px 14px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 28px; }
.foot-btn { background: none; border: 0; padding: 8px 2px; color: var(--foot-ink); font: inherit; font-size: 14px;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 40px; }
.foot-btn:hover { color: #ffffff; }
.visits { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--foot-ink); }
.visits[hidden], .visits [hidden] { display: none; }
.visits b { color: #ffffff; font-weight: 600; font-variant-numeric: tabular-nums; }

.band.intro-band { display: block; padding-block: 8px; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; padding: 28px 32px; border-radius: 24px;
  background: radial-gradient(120% 120% at 15% 50%, color-mix(in srgb, var(--sky) 14%, transparent), transparent 60%), var(--surface); border: 1px solid var(--line); }
.intro-txt { max-width: 34em; }
.intro-txt h2 { font-family: var(--font-display); color: var(--heading); font-size: clamp(22px, 3vw, 30px); margin: 4px 0 10px; }
.intro-txt p { line-height: 1.85; }
.intro-frame { margin: 0; justify-self: center; width: min(290px, 76vw); border-radius: 28px; overflow: hidden; background: #1f2622;
  box-shadow: 0 34px 60px -30px rgb(20 26 22 / .7), 0 0 0 1px rgb(120 135 123 / .22), 0 0 60px -16px rgb(120 135 123 / .45); }
.intro-video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: #1f2622; }
@media (max-width: 760px) { .intro { grid-template-columns: 1fr; gap: 22px; text-align: center; padding: 22px 16px; } .intro-txt { margin-inline: auto; } }

.policy h2 { margin-top: 1.6em; }
/* Compact header on phones now that the bar also holds the light/dark button. */
@media (max-width: 480px) {
  .head-act { gap: 6px; }
  .head-act .icon-btn { width: 40px; height: 40px; border-radius: 11px; }
  .head-act .icon-btn svg { width: 20px; height: 20px; }
  .lang-switch { padding: 6px 9px; font-size: 13px; min-height: 40px; display: inline-flex; align-items: center; }
}
@media (max-width: 420px) {
  .head-bar { padding-inline: 12px; gap: 8px; }
  .brand { gap: 8px; }
  .site-head .brand .brand-logo { width: 38px; height: 38px; border-radius: 10px; }
  .site-head .brand-name { white-space: normal; font-size: 15px; line-height: 1.2; }
  .head-act .icon-btn { width: 38px; height: 38px; }
}
@media (max-width: 372px) {
  .head-bar { padding-inline: 10px; gap: 6px; }
  .head-act { gap: 4px; }
  .head-act .icon-btn { width: 36px; height: 36px; }
  .lang-switch { padding: 5px 7px; font-size: 12.5px; }
  .site-head .brand .brand-logo { width: 34px; height: 34px; }
  .site-head .brand-name { font-size: 14px; max-width: 5em; }
}
/* Page-head and term-of-the-day watermarks: the new logo instead of the old mark's outline. */
main > .page:not(#v-home) > .block:first-child::after {
  background: url("../img/logo-medallion.webp") no-repeat center / contain;
  width: 170px; height: 170px; bottom: -58px; inset-inline-end: -28px; opacity: .14; border-radius: 50%; }
:root[data-theme="dark"] main > .page:not(#v-home) > .block:first-child::after { opacity: .22; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) main > .page:not(#v-home) > .block:first-child::after { opacity: .22; } }
.term-band .feature::after {
  background: url("../img/logo-medallion.webp") no-repeat center / contain;
  width: 220px; height: 220px; bottom: -70px; inset-inline-end: -40px; opacity: .3; }

/* ---------- Shorter pages on phones (2026-11-27). Nothing is removed: long lists become rows that scroll sideways or compact grids. ---------- */
.home-nav { display: grid; gap: 28px; }
@media (max-width: 719px) {
  #v-home { gap: 40px; }
  .hh-in { padding-block: 30px 34px; gap: 18px; }
  .hh-art { max-width: 230px; }
  /* Section cards: icon beside the title, short description hidden on phones (it is the first line of each section page). */
  .home-nav { gap: 18px; }
  .cats { gap: 10px; margin-top: -18px; }
  .cat { display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 2px; align-items: center; padding: 12px; text-align: start; }
  .cat-ic { grid-row: 1 / span 2; width: 38px; height: 38px; border-radius: 11px; }
  .cat-ic svg { width: 21px; height: 21px; }
  .cat-t { font-size: 14.5px; line-height: 1.45; }
  .cat-d { display: none; }
  .cat-m { margin: 0; padding: 0; font-size: 12.5px; }
  /* Encyclopedia domains: one row that scrolls sideways. */
  .enc-band { gap: 10px; }
  .enc-band .band-head { gap: 6px; }
  .enc-strip { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; margin-inline: -20px; padding-inline: 20px; scrollbar-width: thin; }
  .enc-pill { flex: none; scroll-snap-align: start; white-space: nowrap; }
  /* Articles and tools: one card at a time, swipe for the next; the next card's edge shows that the row goes on. */
  #v-home .pcards, #v-home .svc { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding: 2px 20px 10px; scroll-padding-inline: 20px; scrollbar-width: thin; }
  #v-home .pcards > .pcard { flex: 0 0 82%; scroll-snap-align: start; }
  #v-home .svc > .svc-card { flex: 0 0 74%; scroll-snap-align: start; }
  #v-home .pcard-s { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  #v-home .band { gap: 14px; }
  /* Intro video beside its text instead of under it. */
  .intro { grid-template-columns: minmax(0, 1fr) 132px; gap: 14px; text-align: start; padding: 16px 14px; align-items: start; }
  .intro-txt { margin-inline: 0; }
  .intro-txt h2 { font-size: 20px; margin: 2px 0 6px; }
  .intro-txt p { font-size: 14.5px; line-height: 1.75; }
  .intro-txt p.small { font-size: 13px; }
  .intro-frame { width: 132px; border-radius: 18px; }
  /* Lab in numbers: four figures in one row. */
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat { padding: 16px 4px; }
  .stat-ic svg { width: 22px; height: 22px; }
  .stat-n { font-size: 26px; }
  .stat-l { font-size: 12px; line-height: 1.5; }
  /* Footer: link groups two by two. */
  .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; padding-top: 36px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-col a { font-size: 14.5px; padding: 4px 0; }
}
@media (prefers-reduced-motion: no-preference) { #v-home .pcards, #v-home .svc, .enc-strip { scroll-behavior: smooth; } }
/* Glossary index: names only, two or three to a row; definitions return with the button or while searching. */
.g-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.g-toggle { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.g-hint { margin: 0; }
.az-det > summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink-2); padding: 4px 0; }
.az-det[open] > summary { margin-bottom: 6px; }
#g-list.g-compact:not(.g-full):not(.g-q) .g-sec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
@media (min-width: 900px) { #g-list.g-compact:not(.g-full):not(.g-q) .g-sec { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
#g-list.g-compact:not(.g-full):not(.g-q) .g-sec-h { grid-column: 1 / -1; }
#g-list.g-compact:not(.g-full):not(.g-q) .term { padding: 10px 4px; gap: 0; align-content: start; }
#g-list.g-compact:not(.g-full):not(.g-q) .term h3 { font-size: 16px; line-height: 1.5; }
#g-list.g-compact:not(.g-full):not(.g-q) .term-en { font-size: 13px; }
#g-list.g-compact:not(.g-full):not(.g-q) :is(.term-def, .term-dom) { display: none; }
@media (max-width: 719px) {
  .g-sec-h { padding-top: 16px; }
  .g-sec-h h2 { font-size: 20px; }
  #v-glossary .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 2px 20px 8px; scrollbar-width: thin; }
  #v-glossary .fchip { flex: none; white-space: nowrap; }
}
/* Library: details fold under each reference; scholars index: short entries. */
.lib-more > summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--petrol); padding: 4px 0; width: max-content; max-width: 100%; }
.lib-more[open] > summary { margin-bottom: 4px; }
.lib-more { display: grid; gap: 4px; }
.lib-item { padding: 12px 0; }
.tl-index > li { padding-bottom: 20px; }
.tl-index .tl-name { font-size: 20px; }
.tl-more { margin: 0; font-size: 14px; font-weight: 700; }
@media (max-width: 719px) {
  #v-library .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 2px 20px 8px; scrollbar-width: thin; }
  #v-library .fchip { flex: none; white-space: nowrap; }
  .lib-t { font-size: 16.5px; }
}
/* «In this page» links and the «Top» button. */
.toc a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.toc a:hover { border-color: var(--petrol); color: var(--petrol); }
.toc-links { margin: 4px 0 8px; align-items: center; }
.toc-k { flex-basis: 100%; margin: 0; font-size: 14px; font-weight: 700; color: var(--muted); }
:target { scroll-margin-top: 80px; }
.to-top { position: fixed; z-index: 20; bottom: 18px; inset-inline-end: 16px; display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px 8px 12px; border-radius: 999px;
  background: var(--petrol); color: var(--on-petrol); font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px -10px rgb(0 0 0 / .55); }
.to-top svg { width: 18px; height: 18px; transform: rotate(180deg); }
.to-top:hover { background: color-mix(in srgb, var(--petrol) 85%, var(--brand)); }
.to-top:focus-visible { outline: 2px solid var(--heading); outline-offset: 2px; }
@media print { .to-top, .toc-links { display: none !important; } }
/* Copper for small highlights: kickers, counts, years and «read more» (ivory palette, 2026-11-27). */
.kicker, .hh-kicker, .cat-m, .svc-m, .pcard-more, .tl-year, .stat-ic { color: var(--saffron); }
