/* ==========================================================================
   IJOPMR — scholarly design system
   Tokens → base → layout → components → pages → utilities
   ========================================================================== */

:root {
  /* Colour */
  --c-canvas: #fbfaf7;
  --c-surface: #ffffff;
  --c-surface-2: #f4f2ec;
  --c-ink: #17212e;
  --c-ink-2: #3b4655;
  --c-muted: #5d6877;
  --c-line: #e4e0d6;
  --c-line-strong: #cfc9bb;
  --c-navy: #0f2a43;
  --c-navy-2: #183b5c;
  --c-forest: #1f4d3a;
  --c-teal: #0e6f69;
  --c-teal-soft: #e3f1ef;
  --c-gold: #a7782a;
  --c-focus: #0b6bcb;
  --c-info: #1d5c8c;   --c-info-bg: #e8f1f8;
  --c-ok: #1f6b45;     --c-ok-bg: #e6f3ec;
  --c-warn: #8a5a00;   --c-warn-bg: #fdf3dc;
  --c-danger: #a3271f; --c-danger-bg: #fbe9e7;

  /* Type */
  --f-display: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --fs-xs: .78rem; --fs-sm: .875rem; --fs-base: 1rem; --fs-md: 1.125rem;
  --fs-lg: 1.375rem; --fs-xl: 1.75rem; --fs-2xl: clamp(1.9rem, 1.3rem + 2vw, 2.6rem); --fs-3xl: clamp(2.2rem, 1.4rem + 3vw, 3.4rem);

  /* Space (4-pt scale) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.25rem; --s-6: 1.5rem; --s-8: 2rem; --s-10: 2.5rem; --s-12: 3rem; --s-16: 4rem;

  --radius: 6px; --radius-lg: 10px;
  --shadow-1: 0 1px 2px rgba(15, 42, 67, .06), 0 1px 1px rgba(15, 42, 67, .04);
  --shadow-2: 0 6px 24px -10px rgba(15, 42, 67, .25);
  --container: 1200px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; background: var(--c-canvas); color: var(--c-ink);
  font: 400 var(--fs-base)/1.6 var(--f-body); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--c-navy); line-height: 1.2; margin: 0 0 var(--s-3); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p { margin: 0 0 var(--s-4); }
a { color: var(--c-teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--c-forest); }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 3px; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--s-8) 0; }
code { font-family: var(--f-mono); font-size: .9em; background: var(--c-surface-2); padding: .05em .35em; border-radius: 4px; }
::selection { background: var(--c-teal-soft); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--c-navy); color: #fff; padding: var(--s-3) var(--s-4); }
.skip-link:focus { left: var(--s-4); top: var(--s-4); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }
.container--narrow { max-width: 820px; }
.section { padding: var(--s-12) 0; }
.section--tight { padding: var(--s-8) 0; }
.section--alt { background: var(--c-surface); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.eyebrow { font: 600 var(--fs-xs)/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--c-teal); margin-bottom: var(--s-2); display: block; }
.lead { font-size: var(--fs-md); color: var(--c-ink-2); max-width: 62ch; }
.muted { color: var(--c-muted); }
.small { font-size: var(--fs-sm); }

/* ---------- Utility bar & header ---------- */
.utilbar { background: var(--c-navy); color: #cfd9e3; font-size: var(--fs-xs); }
.utilbar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 34px; flex-wrap: wrap; }
.utilbar a { color: #fff; text-decoration: none; }
.utilbar a:hover { text-decoration: underline; color: #fff; }
.utilbar__issn { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.utilbar__account { display: flex; gap: var(--s-4); align-items: center; }
.utilbar .badge-count { background: var(--c-gold); color: #fff; border-radius: 999px; padding: 0 .45em; font-weight: 600; margin-left: .25em; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--c-line); backdrop-filter: saturate(1.2) blur(6px); }
.site-header .container { display: flex; align-items: center; gap: var(--s-5); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--c-navy); min-width: 0; }
.brand__mark { flex: none; display: grid; place-items: center; width: 54px; height: 46px; border-radius: 4px; background: var(--c-navy); color: #fff; font: 700 .6rem/1 var(--f-body); letter-spacing: .04em; position: relative; overflow: hidden; }
.brand__mark::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 2px; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__acronym { font: 600 1.15rem/1.1 var(--f-display); }
.brand__title { font-size: .72rem; line-height: 1.3; color: var(--c-muted); max-width: 290px; }
.brand img.brand__logo { height: 46px; width: auto; }

.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-1); align-items: center; }
.nav__item { position: relative; }
.nav__link, .nav__toggle { display: inline-flex; align-items: center; gap: .3em; padding: .55rem .7rem; border-radius: var(--radius); color: var(--c-ink); font: 500 var(--fs-sm)/1.2 var(--f-body); text-decoration: none; background: none; border: 0; cursor: pointer; }
.nav__link:hover, .nav__toggle:hover, .nav__link[aria-current="page"] { background: var(--c-surface-2); color: var(--c-navy); }
.nav__toggle svg { width: 12px; height: 12px; transition: transform .15s; }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); padding: var(--s-2); list-style: none; margin: 0; }
.nav__menu.is-open { display: block; }
.nav__menu a { display: block; padding: .55rem .75rem; border-radius: var(--radius); color: var(--c-ink); text-decoration: none; font-size: var(--fs-sm); }
.nav__menu a:hover { background: var(--c-surface-2); color: var(--c-navy); }
.header-actions { display: flex; align-items: center; gap: var(--s-2); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-navy); cursor: pointer; }
.icon-btn:hover { background: var(--c-surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.nav-burger { display: none; }

.searchbar { display: none; border-top: 1px solid var(--c-line); background: var(--c-surface); }
.searchbar.is-open { display: block; }
.searchbar form { display: flex; gap: var(--s-2); padding: var(--s-3) 0; }
.searchbar input { flex: 1; }

@media (max-width: 1080px) {
  .brand__title { display: none; }
  .nav-burger { display: inline-grid; }
  .nav { position: fixed; inset: calc(var(--header-h) + 34px) 0 0 0; background: var(--c-surface); border-top: 1px solid var(--c-line); overflow-y: auto; display: none; padding: var(--s-4) var(--s-5) var(--s-12); }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link, .nav__toggle { width: 100%; justify-content: space-between; padding: .8rem .5rem; font-size: var(--fs-base); }
  .nav__menu { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--c-line); border-radius: 0; margin: 0 0 var(--s-2) var(--s-3); }
  .header-actions .btn--cta-label { display: none; }
}
@media (max-width: 480px) { .header-actions .btn--primary { padding: .5rem .7rem; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .62rem 1.05rem; border-radius: var(--radius); border: 1px solid transparent; font: 600 var(--fs-sm)/1.2 var(--f-body); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--primary { background: var(--c-navy); color: #fff; }
.btn--primary:hover { background: var(--c-navy-2); color: #fff; }
.btn--accent { background: var(--c-teal); color: #fff; }
.btn--accent:hover { background: #0b5d58; color: #fff; }
.btn--outline { background: var(--c-surface); color: var(--c-navy); border-color: var(--c-line-strong); }
.btn--outline:hover { background: var(--c-surface-2); color: var(--c-navy); }
.btn--ghost { background: transparent; color: var(--c-navy); }
.btn--ghost:hover { background: var(--c-surface-2); }
.btn--danger { background: var(--c-danger); color: #fff; }
.btn--danger:hover { background: #861f19; color: #fff; }
.btn--sm { padding: .4rem .7rem; font-size: var(--fs-xs); }
.btn--lg { padding: .85rem 1.4rem; font-size: var(--fs-base); }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }

/* ---------- Badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: .3em; padding: .18rem .55rem; border-radius: 999px; font: 600 .72rem/1.3 var(--f-body); letter-spacing: .02em; background: var(--c-surface-2); color: var(--c-ink-2); border: 1px solid var(--c-line); white-space: nowrap; }
.badge--info { background: var(--c-info-bg); color: var(--c-info); border-color: #cfe0ee; }
.badge--success { background: var(--c-ok-bg); color: var(--c-ok); border-color: #c8e3d3; }
.badge--warning { background: var(--c-warn-bg); color: var(--c-warn); border-color: #f0dfb3; }
.badge--danger { background: var(--c-danger-bg); color: var(--c-danger); border-color: #f2c9c4; }
.badge--neutral { }
.badge--type { background: transparent; border-color: var(--c-teal); color: var(--c-teal); text-transform: uppercase; letter-spacing: .08em; font-size: .66rem; }
.chip { display: inline-block; padding: .3rem .7rem; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-surface); color: var(--c-ink-2); text-decoration: none; font-size: var(--fs-sm); }
a.chip:hover { border-color: var(--c-teal); color: var(--c-teal); }
.chip-list { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: 0; }

/* Placeholder (unconfirmed) values — deliberately visible */
.ph { display: inline-flex; align-items: center; gap: .3em; font-size: .78em; color: var(--c-warn); background: var(--c-warn-bg); border: 1px dashed #d9b866; border-radius: 4px; padding: 0 .4em; font-weight: 500; }
.ph-badge { font-size: .66em; text-transform: uppercase; letter-spacing: .06em; color: var(--c-warn); border: 1px dashed #d9b866; border-radius: 3px; padding: 0 .3em; margin-left: .35em; vertical-align: middle; }
.placeholder-note { background: var(--c-warn-bg); border-bottom: 1px dashed #d9b866; color: #6b4700; padding: 0 .2em; }
.placeholder-note::before { content: "Pending confirmation: "; font-weight: 600; }
.utilbar .ph { color: #ffe3a3; background: rgba(255, 255, 255, .08); border-color: rgba(255, 227, 163, .5); }

/* ---------- Cards ---------- */
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.card__body { padding: var(--s-6); }
.card__head { padding: var(--s-4) var(--s-6); border-bottom: 1px solid var(--c-line); display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.card__head h2, .card__head h3 { margin: 0; font-size: var(--fs-md); }
.card__foot { padding: var(--s-4) var(--s-6); border-top: 1px solid var(--c-line); background: #fdfcf9; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.panel { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: var(--s-5); }
.panel + .panel { margin-top: var(--s-4); }
.panel__title { font: 600 var(--fs-xs)/1.3 var(--f-body); text-transform: uppercase; letter-spacing: .1em; color: var(--c-muted); margin: 0 0 var(--s-3); }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(180deg, #fff 0%, var(--c-canvas) 100%); border-bottom: 1px solid var(--c-line); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(15, 42, 67, .07) 1px, transparent 0); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%); pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--s-12); align-items: center; padding-top: var(--s-12); padding-bottom: var(--s-12); }
.hero h1 { font-size: var(--fs-3xl); margin-bottom: var(--s-4); }
.hero__facts { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--c-line); font-size: var(--fs-sm); color: var(--c-muted); }
.hero__facts dt { font-weight: 600; color: var(--c-ink-2); display: inline; }
.hero__facts dd { display: inline; margin: 0 0 0 .3em; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; gap: var(--s-8); padding-top: var(--s-8); padding-bottom: var(--s-8); } }

/* Issue cover (generated when no image uploaded) */
.issue-cover { position: relative; aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; background: var(--c-navy); color: #fff; box-shadow: 0 18px 40px -18px rgba(15, 42, 67, .55); display: flex; flex-direction: column; padding: 1.4rem; isolation: isolate; }
.issue-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.issue-cover--generated::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(120% 70% at 100% 0%, rgba(14, 111, 105, .65) 0%, transparent 60%),
  repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 14px), var(--c-navy); }
.issue-cover__acr { font: 700 .8rem/1 var(--f-body); letter-spacing: .2em; opacity: .9; }
.issue-cover__title { font: 600 1.25rem/1.25 var(--f-display); margin-top: .6rem; max-width: 14ch; }
.issue-cover__vol { margin-top: auto; font: 600 1.6rem/1.1 var(--f-display); }
.issue-cover__meta { font-size: .78rem; opacity: .85; margin-top: .3rem; }
.issue-cover__badge { position: absolute; top: 1rem; right: 1rem; background: var(--c-gold); color: #fff; font: 700 .62rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; padding: .35rem .5rem; border-radius: 3px; }
.current-issue-card { display: grid; grid-template-columns: 170px 1fr; gap: var(--s-5); align-items: center; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: var(--s-5); box-shadow: var(--shadow-2); }
.current-issue-card .issue-cover { padding: 1rem; }
.current-issue-card .issue-cover__title { font-size: .95rem; }
.current-issue-card .issue-cover__vol { font-size: 1.15rem; }
@media (max-width: 480px) { .current-issue-card { grid-template-columns: 110px 1fr; gap: var(--s-4); } }

/* ---------- Article list ---------- */
.article-list { list-style: none; margin: 0; padding: 0; }
.article-item { padding: var(--s-5) 0; border-bottom: 1px solid var(--c-line); }
.article-item:first-child { padding-top: 0; }
.article-item__meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: center; font-size: var(--fs-xs); color: var(--c-muted); margin-bottom: var(--s-2); }
.article-item__title { font: 600 1.18rem/1.35 var(--f-display); margin: 0 0 var(--s-2); }
.article-item__title a { color: var(--c-navy); text-decoration: none; }
.article-item__title a:hover { color: var(--c-teal); text-decoration: underline; }
.article-item__authors { font-size: var(--fs-sm); color: var(--c-ink-2); margin-bottom: var(--s-2); }
.article-item__links { display: flex; flex-wrap: wrap; gap: var(--s-4); font-size: var(--fs-sm); }
.article-item__links a { font-weight: 500; text-decoration: none; }
.article-item__links a:hover { text-decoration: underline; }
.article-item__snippet { font-size: var(--fs-sm); color: var(--c-muted); margin: 0 0 var(--s-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.doi { font-family: var(--f-mono); font-size: .82em; }

.grid { display: grid; gap: var(--s-6); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--main-side { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-10); }
.grid--side-main { grid-template-columns: 280px minmax(0, 1fr); gap: var(--s-8); }
@media (max-width: 1000px) { .grid--main-side, .grid--side-main { grid-template-columns: 1fr; } .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.subject-tile { display: block; padding: var(--s-5); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; height: 100%; }
.subject-tile:hover { border-color: var(--c-teal); transform: translateY(-1px); }
.subject-tile h3 { font-size: 1.05rem; margin-bottom: var(--s-1); }
.subject-tile p { font-size: var(--fs-sm); color: var(--c-muted); margin: 0; }
.subject-tile__count { font-size: var(--fs-xs); color: var(--c-teal); font-weight: 600; margin-top: var(--s-2); display: block; }

.feature { padding-left: var(--s-4); border-left: 2px solid var(--c-teal); }
.feature h3 { font-size: 1.05rem; margin-bottom: var(--s-1); }
.feature p { font-size: var(--fs-sm); color: var(--c-muted); margin: 0; }

.notice-list { list-style: none; padding: 0; margin: 0; }
.notice-list li { padding: var(--s-4) 0; border-bottom: 1px solid var(--c-line); }
.notice-list li:last-child { border-bottom: 0; }
.notice-list a { color: var(--c-navy); font-weight: 600; text-decoration: none; }
.notice-list a:hover { color: var(--c-teal); text-decoration: underline; }
.notice-list time { display: block; font-size: var(--fs-xs); color: var(--c-muted); margin-top: .2rem; }

.cta-band { background: var(--c-navy); color: #dbe5ee; border-radius: var(--radius-lg); padding: var(--s-10); display: grid; grid-template-columns: 1fr auto; gap: var(--s-6); align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(14, 111, 105, .35); }
.cta-band h2 { color: #fff; margin-bottom: var(--s-2); }
.cta-band p { margin: 0; max-width: 60ch; }
.cta-band .btn { position: relative; z-index: 1; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: var(--s-8) var(--s-6); } }

/* ---------- Page header / breadcrumbs ---------- */
.page-head { background: var(--c-surface); border-bottom: 1px solid var(--c-line); padding: var(--s-8) 0 var(--s-6); }
.page-head h1 { margin-bottom: var(--s-2); }
.page-head .lead { margin: 0; }
.breadcrumbs { list-style: none; margin: 0 0 var(--s-3); padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; font-size: var(--fs-xs); color: var(--c-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--c-line-strong); }
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-teal); text-decoration: underline; }

/* ---------- Prose (CMS / full text) ---------- */
.prose { max-width: 74ch; font-size: 1.02rem; }
.prose h2 { font-size: 1.5rem; margin-top: var(--s-10); padding-top: var(--s-2); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin-top: var(--s-8); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 var(--s-4); }
.prose li { margin-bottom: .35rem; }
.prose blockquote { margin: var(--s-4) 0; padding: var(--s-3) var(--s-5); border-left: 3px solid var(--c-teal); background: var(--c-surface-2); }
.prose table, table.table { width: 100%; border-collapse: collapse; margin: var(--s-4) 0 var(--s-6); font-size: var(--fs-sm); background: var(--c-surface); }
.prose th, .prose td, .table th, .table td { border-bottom: 1px solid var(--c-line); padding: .6rem .7rem; text-align: left; vertical-align: top; }
.prose th, .table th { background: var(--c-surface-2); font-weight: 600; color: var(--c-ink-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--radius-lg); background: var(--c-surface); }
.table-wrap .table { margin: 0; }
.table tr:last-child td { border-bottom: 0; }

.toc { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--c-line); }
.toc a { display: block; padding: .35rem 0 .35rem var(--s-4); margin-left: -2px; border-left: 2px solid transparent; color: var(--c-muted); text-decoration: none; font-size: var(--fs-sm); }
.toc a:hover, .toc a.is-active { color: var(--c-navy); border-left-color: var(--c-teal); }

/* ---------- Article page ---------- */
.article-head { background: var(--c-surface); border-bottom: 1px solid var(--c-line); padding: var(--s-8) 0 var(--s-6); }
.article-head h1 { font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.35rem); max-width: 30ch; }
.article-head__subtitle { font: 400 1.15rem/1.4 var(--f-display); color: var(--c-ink-2); margin: -.25rem 0 var(--s-4); }
.author-list { list-style: none; padding: 0; margin: 0 0 var(--s-3); display: flex; flex-wrap: wrap; gap: .2rem .9rem; font-size: 1rem; }
.author-list li { display: inline-flex; align-items: baseline; gap: .2rem; }
.author-list sup { color: var(--c-teal); font-weight: 600; font-size: .7em; }
.author-list .orcid { display: inline-flex; width: 15px; height: 15px; transform: translateY(2px); }
.author-list .corr { color: var(--c-gold); font-size: .85em; text-decoration: none; }
.affiliations { font-size: var(--fs-sm); color: var(--c-muted); margin: 0 0 var(--s-4); }
.affiliations summary { cursor: pointer; color: var(--c-teal); font-weight: 500; }
.affiliations ol { list-style: none; padding: 0; margin: var(--s-2) 0 0; }
.affiliations li { margin-bottom: .2rem; }
.article-meta-line { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--fs-sm); color: var(--c-ink-2); align-items: center; }
.article-meta-line strong { color: var(--c-navy); }
/* Identifier panel (DOI · article URL · article ID), dates row, quick links */
.id-panel { margin-top: var(--s-5); border: 1px solid var(--c-line); border-radius: var(--radius-lg); background: var(--c-canvas); overflow: hidden; }
.id-panel__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.id-panel__grid--single { grid-template-columns: minmax(0, 1fr); }
.id-panel__item { padding: var(--s-4) var(--s-5); min-width: 0; }
.id-panel__item + .id-panel__item { border-left: 1px solid var(--c-line); }
.id-panel__label { display: block; font: 600 var(--fs-xs)/1.3 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--c-teal); margin-bottom: var(--s-1); }
.id-panel__label--sub { margin-top: var(--s-3); color: var(--c-muted); }
.id-panel__value { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-1) var(--s-2); font-size: var(--fs-sm); min-width: 0; }
.id-panel__value .doi, .id-panel__url { overflow-wrap: anywhere; word-break: break-word; min-width: 0; color: var(--c-ink); }
.id-panel__value .doi { color: var(--c-teal); }
.id-panel__foot { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2); padding: var(--s-3) var(--s-5); border-top: 1px solid var(--c-line); background: var(--c-surface-2); font-size: var(--fs-sm); }
.id-panel__foot .id-panel__label { display: inline; margin: 0; }
.id-panel__foot code { background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-navy); font-weight: 600; }
@media (max-width: 760px) {
  .id-panel__grid { grid-template-columns: minmax(0, 1fr); }
  .id-panel__item + .id-panel__item { border-left: 0; border-top: 1px solid var(--c-line); }
}
.article-dates { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--c-ink-2); }
.article-dates strong { color: var(--c-navy); font-weight: 600; }
.article-dates span { overflow-wrap: anywhere; }
.article-copyright { margin: var(--s-2) 0 0; font-size: var(--fs-sm); color: var(--c-muted); }
.article-quicklinks { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-5); border-bottom: 1px solid var(--c-line); }
.article-quicklinks a { display: inline-flex; align-items: center; gap: .35em; padding: var(--s-2) var(--s-4); font: 600 var(--fs-sm)/1.2 var(--f-body); color: var(--c-navy); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.article-quicklinks a:hover { color: var(--c-teal); border-bottom-color: var(--c-teal); }
.article-quicklinks svg { width: 1em; height: 1em; }

/* Sticky bar after the title scrolls away (frontend/web/js/app.js toggles .is-visible) */
/* Fixed (not sticky): it must sit directly under the site header wherever the reader is on the page. */
.article-stickybar { position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 30; height: 0; }
.article-stickybar__inner { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; background: var(--c-navy); color: #fff; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-2); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.article-stickybar.is-visible .article-stickybar__inner { opacity: 1; transform: none; pointer-events: auto; }
.article-stickybar__pill { flex: none; font: 600 .68rem/1 var(--f-body); letter-spacing: .08em; background: var(--c-teal); color: #fff; padding: .35rem .6rem; border-radius: 999px; white-space: nowrap; }
.article-stickybar__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 var(--fs-sm)/1.2 var(--f-display); }
.article-stickybar__top { flex: none; color: #fff; }
.article-stickybar__top:hover { background: var(--c-navy-2); color: #fff; }
/* A grid item never shrinks below its content's min-width: without this the nowrap section nav widens the page on phones. */
.article-body { min-width: 0; }
.article-tabs { padding: 1rem 0; border-bottom: 1px solid var(--c-line); position: sticky; top: var(--header-h); background: var(--c-canvas); z-index: 5; overflow-x: auto; flex-wrap: nowrap; transition: top .18s ease; }
.has-stickybar .article-tabs { top: calc(var(--header-h) + 44px); }
.has-stickybar .side-stack { top: calc(var(--header-h) + 44px + var(--s-5)); }
@media (max-width: 640px) {
  .article-stickybar__title { display: none; }
  .article-stickybar__inner { justify-content: space-between; }
  .article-stickybar__top-label { display: none; }
}
@media (prefers-reduced-motion: reduce) { .article-stickybar__inner, .article-tabs { transition: none; } }

.integrity-banner { margin-top: var(--s-5); border-radius: var(--radius); padding: var(--s-4) var(--s-5); border: 1px solid; }
.integrity-banner--retraction { background: var(--c-danger-bg); border-color: #f2c9c4; color: #6e1a15; }
.integrity-banner--expression_of_concern { background: var(--c-warn-bg); border-color: #f0dfb3; color: #6b4700; }
.integrity-banner--correction { background: var(--c-info-bg); border-color: #cfe0ee; color: #163f5f; }
.is-retracted .article-body { position: relative; }
.is-retracted .article-body::before { content: "RETRACTED"; position: absolute; top: 2rem; right: 0; font: 700 3rem/1 var(--f-body); color: rgba(163, 39, 31, .09); transform: rotate(-12deg); pointer-events: none; }
.article-section { padding: var(--s-8) 0; border-bottom: 1px solid var(--c-line); }
.article-section:last-child { border-bottom: 0; }
.article-section > h2 { font-size: 1.35rem; }
.abstract { font-size: 1.04rem; line-height: 1.7; }
.ref-list { padding-left: 1.6rem; font-size: var(--fs-sm); }
.ref-list li { margin-bottom: var(--s-3); padding-left: .2rem; }
.dl-grid { display: grid; grid-template-columns: max-content 1fr; gap: .45rem var(--s-5); font-size: var(--fs-sm); margin: 0; }
.dl-grid dt { color: var(--c-muted); }
.dl-grid dd { margin: 0; color: var(--c-ink); }
.side-stack { display: flex; flex-direction: column; gap: var(--s-4); position: sticky; top: calc(var(--header-h) + var(--s-5)); }
@media (max-width: 1000px) { .side-stack { position: static; } }
.metric-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.metric { background: var(--c-surface-2); border-radius: var(--radius); padding: var(--s-3); text-align: center; }
.metric strong { display: block; font: 600 1.4rem/1.1 var(--f-display); color: var(--c-navy); }
.metric span { font-size: var(--fs-xs); color: var(--c-muted); }
.citation-box { font-size: var(--fs-sm); background: var(--c-surface-2); border-radius: var(--radius); padding: var(--s-3); margin-bottom: var(--s-3); word-break: break-word; }
.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li { padding: var(--s-3) 0; border-bottom: 1px solid var(--c-line); font-size: var(--fs-sm); }
.related-list li:last-child { border-bottom: 0; }
.related-list a { color: var(--c-navy); font-weight: 500; text-decoration: none; }
.related-list a:hover { color: var(--c-teal); text-decoration: underline; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: var(--s-5); }
.form-label, .form-group > label, .control-label { display: block; font: 600 var(--fs-sm)/1.3 var(--f-body); color: var(--c-ink-2); margin-bottom: .4rem; }
.required > label::after, .required > .form-label::after { content: " *"; color: var(--c-danger); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], input[type=number], input[type=date], input[type=tel], select, textarea, .form-control {
  width: 100%; padding: .62rem .8rem; border: 1px solid var(--c-line-strong); border-radius: var(--radius); background: var(--c-surface); color: var(--c-ink);
  font: 400 var(--fs-base)/1.4 var(--f-body); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-teal); box-shadow: 0 0 0 3px rgba(14, 111, 105, .18); }
input[type=file] { font-size: var(--fs-sm); max-width: 100%; }
.hint-block, .form-hint { font-size: var(--fs-xs); color: var(--c-muted); margin-top: .35rem; }
.help-block, .invalid-feedback { font-size: var(--fs-xs); color: var(--c-danger); margin-top: .35rem; }
.has-error input, .has-error select, .has-error textarea, .is-invalid { border-color: var(--c-danger) !important; }
.checkbox, .check { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-sm); line-height: 1.5; }
.checkbox input, .check input { margin-top: .25rem; width: 16px; height: 16px; flex: none; accent-color: var(--c-teal); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-5); }
.form-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .form-row, .form-row--3 { grid-template-columns: 1fr; } }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
fieldset { border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: var(--s-5); margin: 0 0 var(--s-5); }
legend { font: 600 var(--fs-sm)/1 var(--f-body); color: var(--c-navy); padding: 0 .4rem; }
.captcha-row { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.captcha-row img { border: 1px solid var(--c-line); border-radius: var(--radius); cursor: pointer; height: 50px; width: auto; }

/* ---------- Alerts / flashes ---------- */
.alert { border-radius: var(--radius); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-5); border: 1px solid; font-size: var(--fs-sm); display: flex; gap: var(--s-3); align-items: flex-start; }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.alert ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.alert--success { background: var(--c-ok-bg); border-color: #c8e3d3; color: #154d31; }
.alert--info { background: var(--c-info-bg); border-color: #cfe0ee; color: #163f5f; }
.alert--warning { background: var(--c-warn-bg); border-color: #f0dfb3; color: #5c3d00; }
.alert--error, .alert--danger { background: var(--c-danger-bg); border-color: #f2c9c4; color: #6e1a15; }
.flash-stack { padding-top: var(--s-5); }

/* ---------- Empty / error states / skeleton ---------- */
.empty { text-align: center; padding: var(--s-12) var(--s-6); border: 1px dashed var(--c-line-strong); border-radius: var(--radius-lg); background: var(--c-surface); color: var(--c-muted); }
.empty h2, .empty h3 { color: var(--c-ink-2); font-size: var(--fs-lg); }
.empty svg { width: 42px; height: 42px; color: var(--c-line-strong); margin-bottom: var(--s-3); }
.skeleton { background: linear-gradient(90deg, var(--c-surface-2) 25%, #ece9e1 37%, var(--c-surface-2) 63%); background-size: 400% 100%; animation: skel 1.4s ease infinite; border-radius: 4px; min-height: 1em; }
@keyframes skel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.error-page { text-align: center; padding: var(--s-16) 0; }
.error-page__code { font: 600 5rem/1 var(--f-display); color: var(--c-line-strong); }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; padding: 0; margin: var(--s-8) 0 0; justify-content: center; }
.pagination li a, .pagination li span { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 .6rem; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); color: var(--c-ink); text-decoration: none; font-size: var(--fs-sm); }
.pagination li a:hover { border-color: var(--c-teal); color: var(--c-teal); }
.pagination li.active a, .pagination li.active span { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }
.pagination li.disabled span { opacity: .45; }

/* ---------- Search / filters ---------- */
.filter-panel { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: var(--s-5); position: sticky; top: calc(var(--header-h) + var(--s-5)); }
.filter-panel .form-group { margin-bottom: var(--s-4); }
@media (max-width: 1000px) { .filter-panel { position: static; } }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-5); padding-bottom: var(--s-4); border-bottom: 1px solid var(--c-line); }
.results-bar select { width: auto; }
.search-hero { display: flex; gap: var(--s-2); max-width: 720px; }
.search-hero input { font-size: var(--fs-md); padding: .8rem 1rem; }
mark { background: #fff1c2; padding: 0 .1em; border-radius: 2px; }

/* ---------- Archive ---------- */
.issue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--s-6); }
.issue-tile { text-decoration: none; color: inherit; display: block; }
.issue-tile .issue-cover { padding: 1rem; transition: transform .15s; }
.issue-tile:hover .issue-cover { transform: translateY(-3px); }
.issue-tile .issue-cover__title { font-size: .95rem; }
.issue-tile .issue-cover__vol { font-size: 1.1rem; }
.issue-tile__label { margin-top: var(--s-2); font-weight: 600; color: var(--c-navy); font-size: var(--fs-sm); }
.issue-tile__date { font-size: var(--fs-xs); color: var(--c-muted); }
.year-block + .year-block { margin-top: var(--s-10); }
.year-block > h2 { font-size: 1.3rem; border-bottom: 1px solid var(--c-line); padding-bottom: var(--s-2); }
.toc-group + .toc-group { margin-top: var(--s-8); }
.toc-group > h2 { font: 600 var(--fs-xs)/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .12em; color: var(--c-teal); border-bottom: 1px solid var(--c-line); padding-bottom: var(--s-2); }

/* ---------- Board ---------- */
.board-group + .board-group { margin-top: var(--s-10); }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s-5); }
.person { display: grid; grid-template-columns: 64px 1fr; gap: var(--s-4); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: var(--s-5); }
.person__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--c-teal-soft); color: var(--c-teal); display: grid; place-items: center; font: 600 1.2rem/1 var(--f-display); }
.person__name { font: 600 1.05rem/1.3 var(--f-display); color: var(--c-navy); margin: 0; }
.person__role { font-size: var(--fs-xs); color: var(--c-teal); font-weight: 600; margin: .1rem 0 .35rem; }
.person__aff { font-size: var(--fs-sm); color: var(--c-ink-2); margin: 0; }
.person details { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--c-muted); }
.person details summary { cursor: pointer; color: var(--c-teal); }

/* ---------- Auth & portal ---------- */
.auth-wrap { min-height: calc(100vh - 400px); display: grid; place-items: center; padding: var(--s-12) var(--s-4); }
.auth-card { width: 100%; max-width: 460px; }
.auth-card--wide { max-width: 640px; }
.auth-card .card__body { padding: var(--s-8); }
.auth-card h1 { font-size: 1.6rem; }
.auth-alt { text-align: center; font-size: var(--fs-sm); margin-top: var(--s-5); color: var(--c-muted); }
.portal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-8); padding: var(--s-8) 0 var(--s-12); }
.portal-nav { list-style: none; padding: 0; margin: 0; position: sticky; top: calc(var(--header-h) + var(--s-5)); }
.portal-nav a { display: flex; justify-content: space-between; align-items: center; padding: .6rem .8rem; border-radius: var(--radius); color: var(--c-ink-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; }
.portal-nav a:hover { background: var(--c-surface-2); color: var(--c-navy); }
.portal-nav a.is-active { background: var(--c-navy); color: #fff; }
.portal-nav__label { font: 600 .68rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); padding: var(--s-4) .8rem var(--s-2); }
@media (max-width: 860px) { .portal { grid-template-columns: 1fr; gap: var(--s-5); } .portal-nav { position: static; display: flex; overflow-x: auto; gap: .3rem; } .portal-nav__label { display: none; } .portal-nav a { white-space: nowrap; } }
.portal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-6); }
.portal-head h1 { font-size: 1.7rem; margin: 0; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-4); margin-bottom: var(--s-6); }
.stat { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: var(--s-4) var(--s-5); }
.stat strong { display: block; font: 600 1.7rem/1.1 var(--f-display); color: var(--c-navy); }
.stat span { font-size: var(--fs-xs); color: var(--c-muted); }

/* Wizard */
.steps { list-style: none; padding: 0; margin: 0 0 var(--s-6); display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-2); counter-reset: step; }
.steps li { counter-increment: step; }
.steps a, .steps span { display: flex; flex-direction: column; gap: .3rem; padding: var(--s-3); border-top: 3px solid var(--c-line); font-size: var(--fs-xs); color: var(--c-muted); text-decoration: none; }
.steps a::before, .steps span::before { content: "Step " counter(step); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .66rem; }
.steps .is-done a, .steps .is-done span { border-top-color: var(--c-teal); color: var(--c-ink-2); }
.steps .is-current a, .steps .is-current span { border-top-color: var(--c-navy); color: var(--c-navy); font-weight: 600; }
@media (max-width: 700px) { .steps { grid-template-columns: repeat(5, minmax(60px, 1fr)); overflow-x: auto; } .steps a, .steps span { font-size: .66rem; } }
.author-row { border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: var(--s-5); margin-bottom: var(--s-4); background: var(--c-surface); position: relative; }
.author-row__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-3); gap: var(--s-3); flex-wrap: wrap; }
.author-row__head strong { color: var(--c-navy); }
.file-table td { vertical-align: middle; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: .6rem; padding: .45rem 0; font-size: var(--fs-sm); }
.checklist li::before { content: "✓"; color: var(--c-ok); font-weight: 700; }
.checklist li.is-missing::before { content: "!"; color: var(--c-danger); }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--c-line); }
.timeline li { position: relative; padding: 0 0 var(--s-5) var(--s-5); font-size: var(--fs-sm); }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--c-surface); border: 2px solid var(--c-teal); }
.timeline time { display: block; font-size: var(--fs-xs); color: var(--c-muted); }
.letter { white-space: pre-wrap; font-family: var(--f-body); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--s-5); font-size: var(--fs-sm); line-height: 1.65; }
.review-score { display: flex; gap: .3rem; flex-wrap: wrap; }
.review-score label { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--c-line-strong); border-radius: var(--radius); cursor: pointer; font-weight: 600; }
.review-score input { position: absolute; opacity: 0; }
.review-score input:checked + span { color: #fff; }
.review-score label:has(input:checked) { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }
.review-score label:has(input:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: #0c2236; color: #b9c6d3; margin-top: var(--s-16); font-size: var(--fs-sm); }
.site-footer .container { padding-top: var(--s-12); padding-bottom: var(--s-6); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--s-8); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { color: #fff; font: 600 var(--fs-xs)/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--s-4); }
.site-footer a { color: #dfe7ef; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-brand { font: 600 1.15rem/1.35 var(--f-display); color: #fff; margin-bottom: var(--s-3); }
.footer-meta { display: grid; grid-template-columns: max-content 1fr; gap: .25rem var(--s-3); margin: var(--s-4) 0 0; }
.footer-meta dt { color: #8fa2b5; }
.footer-meta dd { margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: var(--s-10); padding-top: var(--s-5); display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; font-size: var(--fs-xs); color: #8fa2b5; }
.social { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.social a { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; }
.social svg { width: 15px; height: 15px; fill: currentColor; }
.site-footer .ph { color: #ffe3a3; background: rgba(255, 255, 255, .06); border-color: rgba(255, 227, 163, .45); }

/* ---------- Misc ---------- */
.copy-btn[data-copied]::after { content: " ✓"; }
.demo-ribbon { background: var(--c-gold); color: #fff; text-align: center; font-size: var(--fs-xs); font-weight: 600; padding: .3rem; letter-spacing: .03em; }
.kbd-list { columns: 2; }
.print-only { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .utilbar, .site-header, .site-footer, .side-stack, .toc, .btn, .demo-ribbon { display: none !important; }
  body { background: #fff; }
  .grid--main-side { grid-template-columns: 1fr; }
  a { color: #000; }
  .print-only { display: block; }
}
