/* Majalla design system — Arabic first, works in both directions through
   logical properties. Naskh for reading, Plex Sans Arabic for the interface. */

@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Plex Arabic"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Plex Arabic"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Naskh"; font-weight: 400; font-display: swap; src: url("../fonts/noto-naskh-arabic-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Naskh"; font-weight: 700; font-display: swap; src: url("../fonts/noto-naskh-arabic-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Naskh"; font-weight: 400; font-display: swap; src: url("../fonts/noto-naskh-arabic-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Naskh"; font-weight: 700; font-display: swap; src: url("../fonts/noto-naskh-arabic-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --ink: #0E3B43;
  --ink-2: #155763;
  --ink-soft: #E4EEEF;
  --paper: #FFFFFF;
  --stone: #F2F4F3;
  --stone-2: #E8ECEA;
  --rule: #D8DEDC;
  --rule-strong: #B9C3C1;
  --text: #182326;
  --muted: #59686B;
  --faint: #8A9799;
  --saffron: #B8862B;
  --saffron-soft: #F6EEDC;
  --good: #2F7D4F;
  --good-soft: #E3F1E8;
  --warn: #9A6210;
  --warn-soft: #FAF0DC;
  --bad: #B23A3A;
  --bad-soft: #F8E4E2;
  --info: #2C5E9E;
  --info-soft: #E5EDF7;
  --accent: var(--ink);

  --ui: "Plex Arabic", "Segoe UI", Tahoma, sans-serif;
  --read: "Naskh", "Amiri", "Times New Roman", serif;

  --s-xs: .8rem;
  --s-sm: .875rem;
  --s-md: 1rem;
  --s-lg: 1.25rem;
  --s-xl: 1.5625rem;
  --s-2xl: 1.953rem;
  --s-3xl: 2.441rem;

  --r-sm: 6px;
  --r-md: 10px;
  --shadow-pop: 0 10px 30px rgba(14, 59, 67, .12), 0 2px 6px rgba(14, 59, 67, .06);
  --wrap: 1240px;
  --gutter: clamp(16px, 3vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ui);
  font-size: var(--s-md);
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}
[dir="ltr"] body { line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--ink-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; font-weight: 600; color: var(--text); }
h1 { font-size: var(--s-2xl); }
h2 { font-size: var(--s-xl); }
h3 { font-size: var(--s-lg); }
h4 { font-size: var(--s-md); }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 1.5rem 0; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.rtl { direction: rtl; unicode-bidi: isolate; }
.muted { color: var(--muted); }
.small { font-size: var(--s-sm); }
.tiny { font-size: var(--s-xs); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; inset-block-start: 0; inset-inline-start: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.stack > * + * { margin-block-start: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .icon.flip { transform: scaleX(-1); }

/* --- Top bar ---------------------------------------------------------------- */
.topbar { border-block-end: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 30; }
.topbar .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 60px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.topnav { display: flex; gap: .25rem; margin-inline-start: auto; align-items: center; }
.topnav a, .topnav button.linkish { text-decoration: none; color: var(--text); padding: .4rem .7rem; border-radius: var(--r-sm); font-size: var(--s-sm); display: inline-flex; gap: .35rem; align-items: center; }
.topnav a:hover, .topnav button.linkish:hover { background: var(--stone); color: var(--ink); }
.topnav a[aria-current="page"] { color: var(--ink); background: var(--ink-soft); }
.bell { position: relative; }
.bell .dot { position: absolute; inset-block-start: 5px; inset-inline-end: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--saffron); }
.lang-switch { margin: 0; }
.lang-switch button { font: inherit; background: none; border: 1px solid var(--rule); border-radius: var(--r-sm); padding: .25rem .6rem; cursor: pointer; color: var(--muted); font-size: var(--s-xs); }
.menu-toggle { display: none; background: none; border: 0; padding: .4rem; color: var(--ink); cursor: pointer; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-grid; place-items: center; font-size: .72rem; font-weight: 600; flex: none; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; margin-inline-start: auto; }
  .topnav { display: none; position: absolute; inset-inline: 0; inset-block-start: 60px; background: var(--paper); flex-direction: column; align-items: stretch; padding: .5rem var(--gutter) 1rem; border-block-end: 1px solid var(--rule); box-shadow: var(--shadow-pop); }
  .topnav.open { display: flex; }
}

/* --- Journal masthead ------------------------------------------------------- */
.masthead { background: var(--accent); color: #fff; }
.masthead .wrap { display: flex; gap: 1.25rem; align-items: center; padding-block: 1.6rem 1.4rem; flex-wrap: wrap; }
.masthead-logo { width: 64px; height: 64px; border-radius: var(--r-md); background: rgba(255,255,255,.12); display: grid; place-items: center; overflow: hidden; flex: none; }
.masthead-logo img { width: 100%; height: 100%; object-fit: cover; }
.masthead-logo span { font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
.masthead-title { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; color: #fff; margin: 0; line-height: 1.25; }
.masthead-title a { color: inherit; text-decoration: none; }
.masthead-sub { color: rgba(255,255,255,.78); font-size: var(--s-sm); margin: .2rem 0 0; display: flex; gap: 1.1rem; flex-wrap: wrap; }
.masthead-cta { margin-inline-start: auto; }
.journal-nav { background: var(--paper); border-block-end: 1px solid var(--rule); }
.journal-nav .wrap { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; position: relative; }
@media (max-width: 760px) { .journal-nav form { display: none; } .masthead-cta { margin-inline-start: 0; } .masthead .wrap { padding-block: 1.1rem; } .masthead-logo { width: 48px; height: 48px; } }
.journal-nav a { padding: .8rem .9rem; text-decoration: none; color: var(--muted); font-size: var(--s-sm); white-space: nowrap; border-block-end: 2px solid transparent; }
.journal-nav a:hover { color: var(--text); }
.journal-nav a[aria-current="page"] { color: var(--accent); border-block-end-color: var(--accent); font-weight: 500; }
.journal-nav form { margin-inline-start: auto; display: flex; align-items: center; }
.journal-nav input[type=search] { border: 1px solid var(--rule); border-radius: 999px; padding: .35rem .9rem; font: inherit; font-size: var(--s-sm); min-width: 220px; background: var(--stone); }

/* --- Buttons ------------------------------------------------------------------ */
.btn { --b: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font: inherit; font-size: var(--s-sm); font-weight: 500; line-height: 1.2; padding: .62rem 1.1rem; border-radius: var(--r-sm); border: 1px solid var(--b); background: var(--b); color: #fff; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-outline:hover { background: var(--stone); color: var(--ink); border-color: var(--ink); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--ink-2); padding-inline: .5rem; }
.btn-quiet:hover { background: var(--stone); color: var(--ink); border-color: transparent; }
.btn-danger { --b: var(--bad); }
.btn-danger:hover { background: #8f2c2c; border-color: #8f2c2c; }
.btn-light { background: #fff; color: var(--accent); border-color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.88); color: var(--accent); border-color: transparent; }
.btn-sm { padding: .38rem .7rem; font-size: var(--s-xs); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* --- Forms ----------------------------------------------------------------------- */
.field { margin-block-end: 1.15rem; }
.field > label, .label { display: block; font-weight: 500; font-size: var(--s-sm); margin-block-end: .35rem; color: var(--text); }
.field .req { color: var(--bad); margin-inline-start: .15rem; }
.help { color: var(--muted); font-size: var(--s-xs); margin-block-start: .3rem; }
.errorlist { list-style: none; padding: 0; margin: .3rem 0 0; color: var(--bad); font-size: var(--s-xs); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: var(--s-sm); color: var(--text); background: var(--paper);
  border: 1px solid var(--rule-strong); border-radius: var(--r-sm); padding: .6rem .75rem; line-height: 1.6;
}
textarea { resize: vertical; min-height: 4.5rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 3px var(--ink-soft); }
input[type=file] { font: inherit; font-size: var(--s-sm); width: 100%; padding: .55rem; border: 1px dashed var(--rule-strong); border-radius: var(--r-sm); background: var(--stone); }
input[type=color] { width: 56px; height: 38px; padding: 2px; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); background: var(--paper); }
.check { display: flex; gap: .65rem; align-items: flex-start; padding: .75rem .85rem; border: 1px solid var(--rule); border-radius: var(--r-sm); margin-block-end: .5rem; cursor: pointer; background: var(--paper); }
.check:hover { border-color: var(--rule-strong); }
.check input { margin-block-start: .35rem; accent-color: var(--ink); width: 1rem; height: 1rem; flex: none; }
.check.has-error { border-color: var(--bad); background: var(--bad-soft); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: .6rem; align-items: center; justify-content: flex-end; padding-block-start: 1.1rem; border-block-start: 1px solid var(--rule); margin-block-start: 1.5rem; flex-wrap: wrap; }
.form-actions .back { margin-inline-end: auto; }
.radio-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.radio-row label { display: inline-flex; align-items: center; justify-content: center; min-width: 2.4rem; padding: .35rem .7rem; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); cursor: pointer; font-size: var(--s-sm); }
.radio-row input { position: absolute; opacity: 0; pointer-events: none; }
.radio-row input:checked + span { color: #fff; }
.radio-row label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.radio-row label:has(input:focus-visible) { outline: 2px solid var(--saffron); outline-offset: 2px; }
.choice-list { display: grid; gap: .5rem; }
.choice-list label { display: flex; gap: .7rem; align-items: center; padding: .7rem .9rem; border: 1px solid var(--rule); border-radius: var(--r-sm); cursor: pointer; }
.choice-list label:has(input:checked) { border-color: var(--ink); background: var(--ink-soft); }
.choice-list input { accent-color: var(--ink); }

/* --- Panels & layout ---------------------------------------------------------------- */
.page { padding-block: 2rem 4rem; }
.page-head { display: flex; gap: 1rem; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-block-end: 1.5rem; }
.page-head h1 { margin: 0; }
.page-head p { margin: .25rem 0 0; color: var(--muted); }
.panel { border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--paper); }
.panel-head { padding: .9rem 1.15rem; border-block-end: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.panel-head h2, .panel-head h3 { font-size: var(--s-md); margin: 0; }
.panel-body { padding: 1.15rem; }
.panel-body > :last-child { margin-block-end: 0; }
.panel + .panel { margin-block-start: 1.25rem; }
.panel.tinted { background: var(--stone); border-color: transparent; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.75rem; align-items: start; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } }
.sidebar-sticky { position: sticky; top: 84px; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: 0; font-size: var(--s-sm); }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; overflow-wrap: anywhere; }

/* --- Flash messages ---------------------------------------------------------------------- */
.flash-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.flash { padding: .7rem 1rem; border-radius: var(--r-sm); font-size: var(--s-sm); border-inline-start: 3px solid var(--info); background: var(--info-soft); }
.flash.success { border-color: var(--good); background: var(--good-soft); }
.flash.error { border-color: var(--bad); background: var(--bad-soft); }
.flash.warning { border-color: var(--warn); background: var(--warn-soft); }

/* --- Status chips ---------------------------------------------------------------------- */
.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--s-xs); font-weight: 500; line-height: 1; padding: .38rem .6rem; border-radius: 999px; background: var(--stone-2); color: var(--muted); white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.plain::before { display: none; }
.st-draft { background: var(--stone-2); color: var(--muted); }
.st-submitted, .st-with_editor { background: var(--info-soft); color: var(--info); }
.st-under_review, .st-revised { background: var(--ink-soft); color: var(--ink-2); }
.st-returned, .st-revisions, .st-proofing { background: var(--warn-soft); color: var(--warn); }
.st-accepted, .st-production, .st-published { background: var(--good-soft); color: var(--good); }
.st-rejected, .st-withdrawn { background: var(--bad-soft); color: var(--bad); }
.chip.oa { background: var(--saffron-soft); color: #7A5713; }
.chip.late { background: var(--bad-soft); color: var(--bad); }
.chip.ok { background: var(--good-soft); color: var(--good); }

/* --- Stage tracker (a real sequence) --------------------------------------------------------- */
.stages { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; counter-reset: st; margin: 0; padding: 0; list-style: none; }
.stages li { position: relative; padding-block-start: 1.6rem; font-size: var(--s-xs); color: var(--faint); text-align: center; }
.stages li::before { content: ""; position: absolute; inset-block-start: .45rem; inset-inline: 0; height: 2px; background: var(--rule); }
.stages li::after { content: ""; position: absolute; inset-block-start: .1rem; inset-inline-start: calc(50% - .4rem); width: .8rem; height: .8rem; border-radius: 50%; background: var(--paper); border: 2px solid var(--rule-strong); }
.stages li.done { color: var(--muted); }
.stages li.done::before { background: var(--ink-2); }
.stages li.done::after { background: var(--ink-2); border-color: var(--ink-2); }
.stages li.now { color: var(--ink); font-weight: 600; }
.stages li.now::before { background: linear-gradient(to var(--to-end, left), var(--ink-2) 50%, var(--rule) 50%); }
[dir="ltr"] .stages li.now::before { --to-end: right; }
.stages li.now::after { border-color: var(--ink); background: var(--saffron); box-shadow: 0 0 0 4px var(--saffron-soft); }
.stages li:first-child::before { inset-inline-start: 50%; }
.stages li:last-child::before { inset-inline-end: 50%; }
.stages.halted li.now::after { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
@media (max-width: 640px) { .stages li span { display: none; } .stages li.now span { display: block; position: absolute; inset-inline: -3rem; } .stages { padding-block-end: 1.5rem; } }

/* --- Tabs --------------------------------------------------------------------------------- */
.tabs { display: flex; gap: .25rem; border-block-end: 1px solid var(--rule); margin-block-end: 1.5rem; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: .7rem .9rem; color: var(--muted); text-decoration: none; font-size: var(--s-sm); border-block-end: 2px solid transparent; margin-block-end: -1px; white-space: nowrap; display: inline-flex; gap: .4rem; align-items: center; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--ink); border-block-end-color: var(--ink); font-weight: 600; }
.tabs .count { background: var(--stone-2); color: var(--muted); border-radius: 999px; padding: 0 .45rem; font-size: .72rem; line-height: 1.6; }
.tabs a[aria-current="page"] .count { background: var(--ink); color: #fff; }

/* --- Tables -------------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: var(--s-sm); }
table.data th { text-align: start; font-weight: 500; color: var(--muted); font-size: var(--s-xs); padding: .6rem .8rem; border-block-end: 1px solid var(--rule); white-space: nowrap; background: var(--stone); }
table.data td { padding: .8rem; border-block-end: 1px solid var(--rule); vertical-align: top; }
table.data tr:last-child td { border-block-end: 0; }
table.data tbody tr:hover { background: #FAFBFB; }
table.data .title-cell a { color: var(--text); text-decoration: none; font-weight: 500; display: block; line-height: 1.5; }
table.data .title-cell a:hover { color: var(--ink); text-decoration: underline; }
table.data .code { color: var(--muted); font-size: var(--s-xs); direction: ltr; unicode-bidi: isolate; }

/* --- Queue bar (counts as filters, not cards) ------------------------------------------------ */
.queue-bar { display: flex; border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; margin-block-end: 1.25rem; overflow-x: auto; }
.queue-bar a { flex: 1 0 auto; min-width: 110px; padding: .8rem 1rem; text-decoration: none; color: var(--muted); border-inline-end: 1px solid var(--rule); font-size: var(--s-xs); display: grid; gap: .1rem; }
.queue-bar a:last-child { border-inline-end: 0; }
.queue-bar a strong { font-size: var(--s-xl); font-weight: 600; color: var(--text); line-height: 1.1; font-variant-numeric: tabular-nums; }
.queue-bar a:hover { background: var(--stone); }
.queue-bar a[aria-current="page"] { background: var(--ink); color: rgba(255,255,255,.8); }
.queue-bar a[aria-current="page"] strong { color: #fff; }
.queue-bar a.alert strong { color: var(--bad); }
.queue-bar a.alert[aria-current="page"] strong { color: #fff; }

/* --- Activity timeline ------------------------------------------------------------------------ */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding-inline-start: 1.4rem; padding-block-end: .9rem; font-size: var(--s-sm); }
.timeline li::before { content: ""; position: absolute; inset-inline-start: .25rem; inset-block-start: .55rem; width: 7px; height: 7px; border-radius: 50%; background: var(--rule-strong); }
.timeline li::after { content: ""; position: absolute; inset-inline-start: calc(.25rem + 3px); inset-block-start: 1.1rem; bottom: 0; width: 1px; background: var(--rule); }
.timeline li:last-child::after { display: none; }
.timeline li:first-child::before { background: var(--ink-2); }
.timeline time { display: block; color: var(--faint); font-size: var(--s-xs); }

/* --- Wizard -------------------------------------------------------------------------------------- */
.wizard { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.wizard-steps { list-style: none; margin: 0; padding: 0; position: sticky; top: 84px; counter-reset: w; }
.wizard-steps li { counter-increment: w; }
.wizard-steps a, .wizard-steps span { display: flex; gap: .7rem; align-items: center; padding: .55rem .2rem; color: var(--faint); text-decoration: none; font-size: var(--s-sm); }
.wizard-steps a::before, .wizard-steps span::before { content: counter(w); width: 1.7rem; height: 1.7rem; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--rule-strong); font-size: var(--s-xs); background: var(--paper); }
.wizard-steps .done a { color: var(--muted); }
.wizard-steps .done a::before { content: "✓"; background: var(--ink-soft); border-color: var(--ink-soft); color: var(--ink); }
.wizard-steps .now a, .wizard-steps .now span { color: var(--ink); font-weight: 600; }
.wizard-steps .now a::before, .wizard-steps .now span::before { background: var(--ink); color: #fff; border-color: var(--ink); }
.wizard-journal { padding: .9rem 1rem; border-radius: var(--r-md); background: var(--stone); margin-block-end: 1.25rem; font-size: var(--s-sm); }
.wizard-journal strong { display: block; color: var(--ink); }
@media (max-width: 860px) { .wizard { grid-template-columns: 1fr; gap: 1rem; } .wizard-steps { position: static; display: flex; overflow-x: auto; gap: .25rem; } .wizard-steps span, .wizard-steps a { font-size: 0; gap: 0; } .wizard-steps .now span, .wizard-steps .now a { font-size: var(--s-sm); gap: .5rem; } }

.check-report { list-style: none; margin: 0; padding: 0; }
.check-report li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .1rem .6rem; padding: .7rem 0; border-block-end: 1px solid var(--rule); font-size: var(--s-sm); }
.check-report li:last-child { border-block-end: 0; }
.check-report .mark { width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; margin-block-start: .15rem; }
.check-report .ok .mark { background: var(--good-soft); color: var(--good); }
.check-report .warn .mark { background: var(--warn-soft); color: var(--warn); }
.check-report .fail .mark { background: var(--bad-soft); color: var(--bad); }
.check-report .detail { grid-column: 2; color: var(--muted); font-size: var(--s-xs); }

/* --- Dropzone ------------------------------------------------------------------------------------- */
.dropzone { border: 1.5px dashed var(--rule-strong); border-radius: var(--r-md); background: var(--stone); padding: 2rem 1.25rem; text-align: center; position: relative; transition: border-color .15s, background .15s; }
.dropzone.drag { border-color: var(--ink); background: var(--ink-soft); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .icon { width: 2rem; height: 2rem; color: var(--ink-2); }
.dropzone strong { display: block; margin-block: .5rem .2rem; }
.dropzone .filename { margin-block-start: .6rem; font-weight: 500; color: var(--ink); direction: ltr; unicode-bidi: isolate; }

/* --- Author rows ---------------------------------------------------------------------------------- */
.author-card { border: 1px solid var(--rule); border-radius: var(--r-md); padding: 1rem 1.15rem .3rem; margin-block-end: 1rem; position: relative; }
.author-card .author-head { display: flex; justify-content: space-between; align-items: center; margin-block-end: .75rem; }
.author-card .order { font-weight: 600; color: var(--ink); font-size: var(--s-sm); }

/* --- Footer --------------------------------------------------------------------------------------- */
.site-footer { border-block-start: 1px solid var(--rule); background: var(--stone); color: var(--muted); font-size: var(--s-sm); margin-block-start: 3rem; }
.site-footer .wrap { display: flex; gap: 2rem; justify-content: space-between; flex-wrap: wrap; padding-block: 2rem; }
.site-footer a { color: var(--muted); }

/* --- Empty states ---------------------------------------------------------------------------------- */
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty .icon { width: 2rem; height: 2rem; color: var(--faint); margin-block-end: .5rem; }
.empty p { max-width: 42ch; margin-inline: auto; }

/* --- Platform home ------------------------------------------------------------------------------------ */
.home-hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.home-hero .wrap { padding-block: clamp(2.5rem, 7vw, 5rem); position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: end; }
.home-hero h1 { color: #fff; font-family: var(--read); font-weight: 700; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.3; margin: 0 0 1rem; }
.home-hero p { color: rgba(255,255,255,.8); font-size: var(--s-lg); max-width: 40ch; }
.home-hero form { display: flex; gap: .5rem; margin-block-start: 1.5rem; max-width: 560px; }
.home-hero input[type=search] { background: #fff; border: 0; padding: .85rem 1.1rem; font-size: var(--s-md); border-radius: var(--r-sm); }
.home-hero .pattern { position: absolute; inset-block: 0; inset-inline-end: 0; width: 46%; height: 100%; opacity: .12; color: #fff; -webkit-mask-image: linear-gradient(to var(--fade, right), transparent, #000 60%); mask-image: linear-gradient(to var(--fade, right), transparent, #000 60%); }
[dir="ltr"] .home-hero .pattern { --fade: left; }
.hero-figures { display: flex; gap: 2.5rem; justify-content: flex-end; }
.hero-figures div { text-align: start; }
.hero-figures strong { display: block; font-size: var(--s-3xl); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-figures span { color: rgba(255,255,255,.7); font-size: var(--s-sm); }
@media (max-width: 860px) { .home-hero .wrap { grid-template-columns: 1fr; } .hero-figures { justify-content: flex-start; } }

.journal-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.journal-item { background: var(--paper); border: 1px solid var(--rule); border-block-start: 3px solid var(--accent); border-radius: 4px var(--r-md) var(--r-md) var(--r-md); padding: 1.25rem 1.3rem; display: grid; grid-template-columns: 52px 1fr; gap: .4rem 1rem; text-decoration: none; color: var(--text); position: relative; }
.journal-item:hover { border-color: var(--rule-strong); border-block-start-color: var(--accent); }
.journal-item:hover h3 { color: var(--ink); text-decoration: underline; }
.journal-item .jlogo { grid-row: span 3; width: 52px; height: 52px; border-radius: var(--r-sm); background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; overflow: hidden; }
.journal-item .jlogo img { width: 100%; height: 100%; object-fit: cover; }
.journal-item h3 { font-size: var(--s-md); margin: 0; }
.journal-item p { margin: 0; color: var(--muted); font-size: var(--s-xs); }

/* --- Article list items --------------------------------------------------------------------------------- */
.art-list { list-style: none; margin: 0; padding: 0; }
.art-item { padding-block: 1.15rem; border-block-end: 1px solid var(--rule); }
.art-item:first-child { padding-block-start: 0; }
.art-item:last-child { border-block-end: 0; }
.art-meta { display: flex; gap: .4rem 1rem; flex-wrap: wrap; align-items: center; font-size: var(--s-xs); color: var(--muted); margin-block-end: .35rem; }
.art-type { color: var(--accent); font-weight: 600; }
.art-title { font-family: var(--read); font-size: 1.22rem; font-weight: 700; line-height: 1.55; margin: 0 0 .3rem; }
[lang="en"] .art-title, .art-title.ltr { font-family: var(--ui); font-weight: 600; font-size: 1.08rem; }
.art-title a { color: var(--text); text-decoration: none; }
.art-title a:hover { color: var(--accent); text-decoration: underline; }
.art-authors { font-size: var(--s-sm); color: var(--muted); margin: 0; }
.art-actions { display: flex; gap: 1rem; margin-block-start: .5rem; font-size: var(--s-xs); }
.art-actions a { text-decoration: none; display: inline-flex; gap: .3rem; align-items: center; }

/* --- Journal home --------------------------------------------------------------------------------------- */
.jhome { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.5rem; padding-block: 2rem 3rem; }
@media (max-width: 960px) { .jhome { grid-template-columns: 1fr; } }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-block-end: 2px solid var(--text); padding-block-end: .5rem; margin-block: 0 1.25rem; }
.section-title h2 { font-size: var(--s-lg); margin: 0; }
.section-title a { font-size: var(--s-sm); text-decoration: none; }
.side-block { margin-block-end: 2rem; }
.side-block h3 { font-size: var(--s-sm); color: var(--muted); font-weight: 600; margin-block-end: .75rem; padding-block-end: .5rem; border-block-end: 1px solid var(--rule); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; }
.facts div { background: var(--paper); padding: .85rem 1rem; }
.facts strong { display: block; font-size: var(--s-xl); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; color: var(--text); }
.facts span { font-size: var(--s-xs); color: var(--muted); }
.issue-cover { display: grid; grid-template-columns: 92px 1fr; gap: 1rem; text-decoration: none; color: var(--text); align-items: center; }
.issue-cover .cover { aspect-ratio: 3 / 4; border-radius: 4px; background: var(--accent); color: #fff; display: grid; place-items: center; text-align: center; font-size: var(--s-xs); padding: .5rem; line-height: 1.4; box-shadow: 0 1px 0 var(--rule); }
.issue-cover .cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.ranked { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.ranked li { counter-increment: r; display: grid; grid-template-columns: 1.6rem 1fr; gap: .6rem; padding-block: .6rem; border-block-end: 1px solid var(--rule); font-size: var(--s-sm); }
.ranked li::before { content: counter(r); font-weight: 600; color: var(--accent); font-size: var(--s-lg); line-height: 1.2; }
.ranked a { color: var(--text); text-decoration: none; line-height: 1.5; }
.ranked a:hover { text-decoration: underline; }

/* --- Article page ---------------------------------------------------------------------------------------------- */
.article-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr) 280px; gap: 2.75rem; padding-block: 2.25rem 4rem; align-items: start; }
@media (max-width: 1180px) { .article-shell { grid-template-columns: minmax(0, 1fr) 270px; } .article-toc { display: none; } }
@media (max-width: 860px) { .article-shell { grid-template-columns: 1fr; gap: 1.5rem; } .article-rail { position: static; } }
.mobile-only { display: none; }
@media (max-width: 860px) { .mobile-only { display: flex; } }
.article-toc { position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow: auto; font-size: var(--s-sm); padding-inline-end: .25rem; }
.article-toc h2 { font-size: var(--s-xs); color: var(--muted); font-weight: 600; margin-block-end: .5rem; }
.article-toc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid var(--rule); }
.article-toc ol ol { border: 0; padding-inline-start: .8rem; }
.article-toc a { display: block; padding: .3rem .85rem; color: var(--muted); text-decoration: none; line-height: 1.45; border-inline-start: 2px solid transparent; margin-inline-start: -1px; }
.article-toc a:hover { color: var(--text); }
.article-toc a.active { color: var(--accent); border-inline-start-color: var(--accent); font-weight: 500; }

.art-head { padding-block-end: 1.5rem; border-block-end: 1px solid var(--rule); margin-block-end: 1.75rem; }
.art-head .kicker { display: flex; gap: .5rem 1rem; flex-wrap: wrap; align-items: center; font-size: var(--s-sm); margin-block-end: 1rem; }
.art-head .kicker .type { color: var(--accent); font-weight: 600; }
.art-head h1 { font-family: var(--read); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.6; margin: 0 0 .6rem; color: var(--text); }
[dir="ltr"] .art-head h1 { line-height: 1.3; }
.art-head h1.ltr, .art-head .trans-title.ltr { font-family: var(--ui); }
.art-head .trans-title { font-size: var(--s-lg); color: var(--muted); font-weight: 400; line-height: 1.5; margin: 0 0 1.2rem; }
.author-line { display: flex; flex-wrap: wrap; gap: .25rem .2rem; margin: 0 0 .5rem; font-size: var(--s-md); }
.author-line .a { font-weight: 500; color: var(--text); }
.author-line sup { color: var(--accent); font-size: .7em; margin-inline-start: .1rem; }
.author-line .orcid { display: inline-block; width: .95em; height: .95em; vertical-align: -.1em; margin-inline-start: .2rem; }
.author-line .sep { color: var(--faint); }
.affil-list { list-style: none; margin: .3rem 0 0; padding: 0; font-size: var(--s-xs); color: var(--muted); }
.affil-list sup { color: var(--accent); margin-inline-end: .25rem; }
.journey { display: flex; margin: 1.4rem 0 0; padding: 0; list-style: none; font-size: var(--s-xs); color: var(--muted); }
.journey li { flex: 1; position: relative; padding-block-start: 1.05rem; }
.journey li::before { content: ""; position: absolute; inset-block-start: .3rem; inset-inline: 0; height: 1px; background: var(--rule-strong); }
.journey li::after { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0; width: .6rem; height: .6rem; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--accent); }
.journey li:last-child::before { display: none; }
.journey li:last-child::after { background: var(--accent); }
.journey strong { display: block; color: var(--text); font-weight: 500; font-size: var(--s-sm); }

.abstract-box { background: var(--stone); border-radius: var(--r-md); padding: 1.35rem 1.5rem; margin-block-end: 2rem; }
.abstract-box h2 { font-size: var(--s-md); margin-block-end: .6rem; }
.abstract-box .abstract-text { font-family: var(--read); font-size: 1.08rem; line-height: 2; }
.abstract-box .abstract-text.ltr { font-family: var(--ui); font-size: 1rem; line-height: 1.75; }
.kw { display: flex; gap: .4rem; flex-wrap: wrap; margin-block-start: 1rem; }
.kw a { font-size: var(--s-xs); padding: .25rem .65rem; border-radius: 999px; border: 1px solid var(--rule-strong); text-decoration: none; color: var(--muted); background: var(--paper); }
.kw a:hover { border-color: var(--accent); color: var(--accent); }
.lang-tabs { display: flex; gap: .25rem; margin-block-end: .75rem; }
.lang-tabs button { font: inherit; font-size: var(--s-xs); background: none; border: 1px solid var(--rule-strong); padding: .2rem .6rem; border-radius: 999px; cursor: pointer; color: var(--muted); }
.lang-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.crumbs { display: flex; flex-wrap: wrap; gap: .2rem .45rem; font-size: var(--s-xs); color: var(--faint); margin-block-end: .9rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.special-issue { font-size: var(--s-sm); color: var(--muted); margin: -.4rem 0 .8rem; padding-inline-start: .7rem; border-inline-start: 3px solid var(--accent); }
.abstract-text .abs-part { margin-block-end: .55em; }
.abstract-text .abs-part b { font-family: var(--ui); font-weight: 600; color: var(--text); font-size: .92em; }
.article-toc .toc-sub { margin-block-start: 1.4rem; }
.article-toc .toc-figs a { font-size: var(--s-xs); padding-block: .25rem; }

.article-body { font-family: var(--read); font-size: 1.14rem; line-height: 2.05; max-width: 72ch; }
.article-body.ltr { font-family: var(--read); line-height: 1.85; }
.article-body section { scroll-margin-top: 84px; }
.article-body h2 { font-family: var(--ui); font-size: 1.4rem; font-weight: 600; margin: 2.4rem 0 .9rem; padding-block-start: .4rem; }
.article-body h3 { font-family: var(--ui); font-size: 1.15rem; font-weight: 600; margin: 1.8rem 0 .6rem; }
.article-body h4 { font-family: var(--ui); font-size: 1rem; font-weight: 600; margin: 1.4rem 0 .5rem; }
.article-body p { margin-block-end: 1.05em; text-align: justify; text-justify: inter-word; hyphens: auto; }
.article-body blockquote { margin: 1.25rem 0; padding: .3rem 1.25rem; border-inline-start: 3px solid var(--accent); color: var(--muted); }
.article-body figure { margin: 2rem 0; }
.article-body figcaption { font-family: var(--ui); font-size: var(--s-sm); color: var(--muted); margin-block: .6rem; line-height: 1.6; }
.article-body figcaption .label { color: var(--text); font-weight: 600; margin-inline-end: .35rem; }
.article-body .table-wrap figcaption { margin-block: 0 .6rem; }
.article-body .table-scroll { overflow-x: auto; border-block: 2px solid var(--text); }
.article-body table { width: 100%; border-collapse: collapse; font-family: var(--ui); font-size: var(--s-sm); line-height: 1.6; }
.article-body th, .article-body td { padding: .55rem .7rem; text-align: start; border-block-end: 1px solid var(--rule); vertical-align: top; }
.article-body thead th { border-block-end: 1px solid var(--text); font-weight: 600; }
.article-body tbody tr:last-child td { border-block-end: 0; }
.article-body img { display: block; margin-inline: auto; border-radius: 4px; }
.article-body ul, .article-body ol { padding-inline-start: 1.4rem; }

.references { font-size: var(--s-sm); line-height: 1.75; }
.references ol { padding-inline-start: 1.6rem; margin: 0; }
.references li { padding-block: .45rem; padding-inline-start: .3rem; border-block-end: 1px dashed var(--rule); overflow-wrap: anywhere; }
.references li > span { display: block; }
.references li::marker { color: var(--faint); font-variant-numeric: tabular-nums; }
.statements { font-size: var(--s-sm); color: var(--muted); }
.statements h3 { font-size: var(--s-sm); color: var(--text); margin: 1rem 0 .25rem; }

.article-rail { position: sticky; top: 84px; display: grid; gap: 1rem; font-size: var(--s-sm); }
.rail-actions { display: grid; gap: .5rem; }
.rail-block { border: 1px solid var(--rule); border-radius: var(--r-md); padding: 1rem 1.1rem; }
.rail-block h3 { font-size: var(--s-xs); color: var(--muted); font-weight: 600; margin: 0 0 .6rem; }
.rail-metrics { display: grid; grid-template-columns: 1fr 1fr; }
.rail-metrics div + div { border-inline-start: 1px solid var(--rule); padding-inline-start: 1rem; }
.rail-metrics strong { display: block; font-size: var(--s-xl); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.rail-metrics span { color: var(--muted); font-size: var(--s-xs); }
.spark { display: flex; gap: 2px; align-items: flex-end; height: 34px; margin-block-start: .8rem; }
.spark span { flex: 1; background: var(--accent); opacity: .55; border-radius: 1px 1px 0 0; min-height: 2px; }
.doi-link { direction: ltr; unicode-bidi: isolate; display: inline-block; font-size: var(--s-xs); word-break: break-all; }
.cite-text { font-size: var(--s-xs); line-height: 1.7; background: var(--stone); padding: .7rem .8rem; border-radius: var(--r-sm); margin-block-end: .6rem; }
.license { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--s-xs); color: var(--muted); }
.license svg { flex: none; width: 1.6rem; height: 1.6rem; color: var(--text); }
.notice-preview { background: var(--warn-soft); border-block-end: 1px solid #E8D3A8; padding: .6rem 0; font-size: var(--s-sm); }

/* --- Pagination ------------------------------------------------------------------------------------------- */
.pager { display: flex; gap: .3rem; justify-content: center; margin-block-start: 2rem; }
.pager a, .pager span { padding: .35rem .75rem; border: 1px solid var(--rule); border-radius: var(--r-sm); text-decoration: none; font-size: var(--s-sm); color: var(--text); }
.pager .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* --- Auth --------------------------------------------------------------------------------------------------- */
.auth { min-height: calc(100vh - 61px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--ink); color: #fff; padding: clamp(2rem, 6vw, 4.5rem); display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.auth-side h2 { color: #fff; font-family: var(--read); font-size: var(--s-2xl); font-weight: 700; line-height: 1.5; max-width: 22ch; position: relative; }
.auth-side p { color: rgba(255,255,255,.75); max-width: 40ch; position: relative; }
.auth-side .pattern { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .1; color: #fff; }
.auth-main { display: grid; place-items: center; padding: 2rem var(--gutter); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: var(--s-xl); }
.divider { display: flex; align-items: center; gap: .75rem; color: var(--faint); font-size: var(--s-xs); margin-block: 1.25rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.btn-orcid { background: var(--paper); color: var(--text); border-color: var(--rule-strong); }
.btn-orcid:hover { background: var(--stone); color: var(--text); border-color: #A6CE39; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* --- Review & editor bits ------------------------------------------------------------------------------------ */
.reviewer-row { display: grid; grid-template-columns: auto 1fr auto; gap: .5rem 1rem; align-items: center; padding: .9rem 0; border-block-end: 1px solid var(--rule); }
.reviewer-row:last-child { border-block-end: 0; }
.reviewer-row .meta { font-size: var(--s-xs); color: var(--muted); }
.reco { font-weight: 600; font-size: var(--s-sm); }
.reco-accept { color: var(--good); } .reco-minor { color: var(--ink-2); } .reco-major { color: var(--warn); } .reco-reject { color: var(--bad); }
.suggest-row { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; padding: .75rem 0; border-block-end: 1px solid var(--rule); align-items: center; }
.suggest-row:last-child { border-block-end: 0; }
.match { display: flex; gap: .3rem; flex-wrap: wrap; }
.match span { font-size: .72rem; background: var(--ink-soft); color: var(--ink-2); padding: .1rem .45rem; border-radius: 4px; }
.conflict { font-size: .72rem; color: var(--bad); }
.score-bar { display: grid; grid-template-columns: 9rem 1fr 1.5rem; gap: .6rem; align-items: center; font-size: var(--s-xs); color: var(--muted); }
.score-bar .bar { height: 6px; border-radius: 3px; background: var(--stone-2); overflow: hidden; }
.score-bar .bar span { display: block; height: 100%; background: var(--ink-2); }
.comment-block { white-space: pre-wrap; font-size: var(--s-sm); line-height: 1.85; background: var(--stone); padding: 1rem 1.1rem; border-radius: var(--r-sm); }
.message { padding: .85rem 1rem; border-radius: var(--r-md); background: var(--stone); margin-block-end: .75rem; font-size: var(--s-sm); }
.message.mine { background: var(--ink-soft); }
.message.internal { background: var(--saffron-soft); }
.message header { display: flex; justify-content: space-between; gap: .5rem; color: var(--muted); font-size: var(--s-xs); margin-block-end: .3rem; }
.message .body { white-space: pre-wrap; }
.file-row { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; padding: .7rem 0; border-block-end: 1px solid var(--rule); font-size: var(--s-sm); }
.file-row:last-child { border-block-end: 0; }
.file-badge { font-size: .68rem; font-weight: 600; text-transform: uppercase; background: var(--stone-2); color: var(--muted); border-radius: 4px; padding: .25rem .4rem; min-width: 2.6rem; text-align: center; direction: ltr; }
.similarity { display: flex; align-items: center; gap: .9rem; }
.similarity .score { font-size: var(--s-2xl); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.similarity .score.high { color: var(--bad); } .similarity .score.mid { color: var(--warn); } .similarity .score.low { color: var(--good); }
details.disclose summary { cursor: pointer; color: var(--ink-2); font-size: var(--s-sm); list-style: none; display: inline-flex; gap: .3rem; align-items: center; }
details.disclose summary::-webkit-details-marker { display: none; }
details.disclose[open] summary { margin-block-end: .75rem; }
.callout { border-radius: var(--r-md); padding: 1rem 1.15rem; background: var(--ink-soft); border: 1px solid #C9DCDF; font-size: var(--s-sm); }
.callout.warn { background: var(--warn-soft); border-color: #EBD6AE; }
.callout.bad { background: var(--bad-soft); border-color: #EBC3BF; }
.callout.good { background: var(--good-soft); border-color: #BFDCCB; }
.callout h3 { font-size: var(--s-md); margin-block-end: .3rem; }
.callout > :last-child { margin-block-end: 0; }
.manage-nav { display: flex; gap: .25rem; margin-block-end: 1.5rem; border-block-end: 1px solid var(--rule); overflow-x: auto; }
.manage-nav a { padding: .6rem .9rem; text-decoration: none; color: var(--muted); font-size: var(--s-sm); border-block-end: 2px solid transparent; margin-block-end: -1px; white-space: nowrap; }
.manage-nav a[aria-current="page"] { color: var(--ink); border-color: var(--ink); font-weight: 600; }
.fieldset { border: 0; margin: 0 0 2rem; padding: 0; }
.fieldset legend { font-weight: 600; font-size: var(--s-lg); padding: 0; margin-block-end: 1rem; }
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-list li a { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; text-decoration: none; color: var(--text); border-block-end: 1px solid var(--rule); font-size: var(--s-sm); }
.notif-list li a:hover { background: var(--stone); }
.notif-list li.unread a { font-weight: 600; }
.notif-list li.unread a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--saffron); flex: none; margin-block-start: .55rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .topbar, .journal-nav, .article-toc, .article-rail, .site-footer, .masthead-cta { display: none !important; }
  .article-shell { display: block; }
}
html { scroll-behavior: smooth; }

/* Back matter: declarations, supplementary material, references, about this article */
.back-matter, .references, .about-article { max-width: 72ch; }
.back-matter h2, .references h2, .about-article h2 { font-size: 1.3rem; margin: 2.75rem 0 1rem; }
.declarations { border-block-start: 1px solid var(--rule); }
.statement { margin-block-end: 1.1rem; font-size: var(--s-sm); line-height: 1.9; }
.statement h3 { font-size: var(--s-sm); font-weight: 600; margin: 0 0 .2rem; color: var(--text); }
.statement p { margin: 0 0 .4rem; }
.publisher-note { color: var(--muted); margin-block-start: 1.6rem; }
.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li { display: flex; align-items: center; gap: .7rem; padding: .7rem 0; border-block-end: 1px solid var(--rule); font-size: var(--s-sm); flex-wrap: wrap; }
.file-list li .btn { margin-inline-start: auto; }
.file-list .icon { color: var(--muted); }
.references h2 { margin-block-start: 2.75rem; }
.references li > .ref-tools { display: flex; gap: .9rem; margin-block-start: .15rem; font-size: var(--s-xs); }
.ref-tools a { color: var(--muted); text-decoration: none; }
.ref-tools a:hover { color: var(--accent); text-decoration: underline; }
.about-article { border-block-start: 2px solid var(--text); margin-block-start: 3rem; }
.about-article h3 { font-size: var(--s-sm); font-weight: 600; margin: 0 0 .5rem; }
.about-cite { margin-block-end: 1.5rem; }
.about-cite .cite-text { font-size: var(--s-sm); }
.cite-formats { font-size: var(--s-xs); color: var(--muted); display: inline-flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.about-dl { grid-template-columns: 9rem 1fr; gap: .6rem 1.2rem; }
.rail-formats { margin: 0; font-size: var(--s-xs); color: var(--muted); display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.share-row { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; font-size: var(--s-sm); }
.share-row .btn { flex-basis: 100%; }
.article-body figure.fig img { cursor: zoom-in; }
.fig-dialog { border: 0; border-radius: var(--r-md); padding: 1rem; max-width: min(1100px, 94vw); max-height: 92vh; background: var(--paper); box-shadow: var(--shadow-pop); }
.fig-dialog::backdrop { background: rgb(14 30 34 / .72); }
.fig-dialog img { display: block; max-width: 100%; max-height: 74vh; margin: .5rem auto; }
.fig-dialog .fig-caption { font-size: var(--s-sm); color: var(--muted); margin: .5rem 0 0; max-width: 80ch; }
.fig-dialog form { display: flex; justify-content: flex-end; }
@media print { .ref-tools, .about-cite .row, .fig-dialog { display: none !important; } }
@media (max-width: 560px) { .about-dl { grid-template-columns: 6.5rem 1fr; gap: .5rem .8rem; } }

/* Official documents */
.doc-list { list-style: none; margin: 0; padding: .3rem 1.15rem .6rem; }
.doc-list li { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem 0; border-block-end: 1px solid var(--rule); font-size: var(--s-sm); }
.doc-list li:last-child { border-block-end: 0; }
.doc-list li > div { display: grid; gap: .1rem; }
.doc-list .icon { color: var(--muted); margin-block-start: .2rem; }
.docs-panel { margin-block-start: 1rem; }
.verify-page { max-width: 680px; }
.verify-form { display: flex; gap: .5rem; margin-block: 1.25rem 1.75rem; }
.verify-form input { flex: 1; font-size: 1.1rem; letter-spacing: .08em; text-align: center; }
.verify-result { border: 1px solid var(--rule); border-radius: var(--r-md); padding: 1.2rem 1.3rem; }
.verify-result.ok { border-color: #9CC9B4; background: #F2F9F5; }
.verify-result.bad { border-color: #E4B8B0; background: #FCF4F2; }
.verify-status { display: flex; align-items: center; gap: .5rem; font-weight: 600; margin-block-end: .9rem; }
.verify-result.ok .verify-status { color: #1E6B4B; }
.verify-result.bad .verify-status { color: var(--bad); }

/* Reports */
.report-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-block-end: 1.25rem; }
.report-bar .btn { margin-inline-start: auto; }
.seg { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); overflow: hidden; }
.seg a { padding: .4rem .8rem; font-size: var(--s-sm); color: var(--muted); text-decoration: none; border-inline-start: 1px solid var(--rule); }
.seg a:first-child { border-inline-start: 0; }
.seg a[aria-current="page"] { background: var(--ink); color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-block-end: 1.25rem; }
.tile { border: 1px solid var(--rule); border-radius: var(--r-md); padding: .9rem 1rem; background: var(--paper); }
.tile strong, .times strong { display: block; font-size: 1.75rem; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--text); }
.tile span, .times span { color: var(--muted); font-size: var(--s-xs); }
.times { display: grid; grid-template-columns: repeat(4, 1fr); }
.times > div { padding: 1rem 1.15rem; border-inline-start: 1px solid var(--rule); }
.times > div:first-child { border-inline-start: 0; }
@media (max-width: 760px) { .times { grid-template-columns: 1fr 1fr; } .times > div:nth-child(3) { border-inline-start: 0; } }
.panel + .panel, .two-col + .panel, .panel + .two-col { margin-block-start: 1.25rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.month-bars { display: flex; align-items: flex-end; gap: 2px; height: 170px; padding-block-end: 1.4rem; position: relative; border-block-end: 1px solid var(--rule-strong); }
.month-bars .mb { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; outline: none; }
.month-bars .bar { width: min(28px, 70%); background: var(--ink-2); border-radius: 4px 4px 0 0; min-height: 2px; }
.month-bars .mb:hover .bar, .month-bars .mb:focus .bar { background: var(--ink); }
.month-bars .lbl { position: absolute; inset-block-end: -1.35rem; font-size: var(--s-xs); color: var(--muted); }
.month-bars .tip { display: none; position: absolute; inset-block-end: calc(100% + 4px); background: var(--text); color: #fff; font-size: var(--s-xs); padding: .4rem .6rem; border-radius: var(--r-sm); white-space: nowrap; z-index: 2; line-height: 1.6; }
.month-bars .mb:hover .tip, .month-bars .mb:focus .tip { display: block; }
.month-bars .mb:hover { z-index: 3; }
.inline-search { display: flex; gap: .4rem; }
.inline-search input { min-width: 260px; }
.thanks-list { list-style: none; margin: 0; padding: 0; columns: 2 280px; column-gap: 2rem; }
.thanks-list li { break-inside: avoid; padding: .55rem 0; border-block-end: 1px solid var(--rule); display: grid; }
.metrics-dl { grid-template-columns: 1fr max-content; font-size: var(--s-sm); }
.metrics-dl dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.ref-pair { display: grid; grid-template-columns: 2rem 1fr; gap: .75rem; padding-block: 1rem; border-block-end: 1px solid var(--rule); }
.ref-pair:first-child { padding-block-start: 0; }
.ref-n { color: var(--faint); padding-block-start: .1rem; }
.ref-ar { margin: 0 0 .5rem; font-size: var(--s-sm); line-height: 1.8; }
.ref-pair textarea { width: 100%; font-size: var(--s-sm); }
.references .ref-latin-text { display: block; color: var(--muted); font-size: var(--s-xs); margin-block-start: .2rem; }

/* Policies and indexing readiness */
.policy-toc ol { columns: 2 240px; padding-inline-start: 1.2rem; margin: 1rem 0 2rem; }
.policy-toc li { margin-block-end: .3rem; }
.policy { scroll-margin-top: 84px; }
.policy h2 { font-size: 1.2rem; margin: 2.2rem 0 .6rem; }
.policy p { line-height: 2; }
.policy-edit { margin-block-end: 1rem; }
.sticky-actions { position: sticky; bottom: 0; background: var(--paper); padding-block: .9rem; }
.readiness-head { display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-start; margin-block-end: 1rem; }
.readiness-head h2 { margin: 0 0 .3rem; font-size: 1.3rem; }
.readiness-head p { margin: 0; max-width: 68ch; }
.readiness-score { text-align: end; display: grid; gap: .5rem; justify-items: end; }
.readiness-score strong { font-size: 2.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.readiness-score strong span { font-size: 1.1rem; color: var(--muted); font-weight: 400; }
.readiness-group { margin-block-end: 1rem; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 1.6rem 1fr auto; gap: .8rem; align-items: start; padding: .9rem 1.15rem; border-block-end: 1px solid var(--rule); }
.checks li:last-child { border-block-end: 0; }
.checks p { margin: .15rem 0 0; font-size: var(--s-sm); color: var(--muted); }
.checks .mark { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.checks .mark .icon { width: .95rem; height: .95rem; }
.check-ok .mark { background: var(--good-soft); color: var(--good); }
.check-warn .mark { background: var(--warn-soft); color: var(--warn); }
.check-todo .mark { background: var(--bad-soft); color: var(--bad); }
@media (max-width: 640px) { .readiness-head { flex-direction: column; } .readiness-score { justify-items: start; text-align: start; } .checks li { grid-template-columns: 1.6rem 1fr; } .checks li .btn { grid-column: 2; justify-self: start; } }
.request-panel { margin-block-end: 1rem; }
.request-panel.open { border-color: #EBD6AE; }
.request-form { margin-block-start: 1rem; }
.request-form > form { padding: 0 1.15rem 1rem; }
details.panel.request-form > summary { padding: .9rem 1.15rem; }
.calls, .si-list, .plain-list { list-style: none; margin: 0; padding: 0; }
.calls li { display: grid; gap: .15rem; padding-block: .5rem; border-block-end: 1px solid var(--rule); }
.calls li:last-child { border-block-end: 0; }
.si-list li { display: grid; gap: .25rem; padding-block: 1rem; border-block-end: 1px solid var(--rule); }
.si-list p { margin: .2rem 0 0; color: var(--muted); font-size: var(--s-sm); }
.si-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; padding-block: .5rem 1.5rem; margin-block-end: 1.75rem; border-block-end: 1px solid var(--rule); }
.si-head h1 { font-family: var(--read); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.55; margin: 0; }
.si-head .trans-title { color: var(--muted); margin: .4rem 0 0; }
.si-cta { display: grid; gap: .7rem; justify-items: end; flex: none; }
.si-deadline { margin: 0; display: grid; text-align: end; }
.si-deadline span { font-size: var(--s-xs); color: var(--muted); }
.si-deadline strong { font-size: var(--s-lg); }
.si-call { font-family: var(--read); font-size: 1.08rem; line-height: 2; max-width: 70ch; }
.plain-list li { padding-block: .35rem; font-size: var(--s-sm); }
.call-edit { padding: .2rem 1.15rem .9rem; border-block-end: 1px solid var(--rule); }
.call-edit summary { font-size: var(--s-sm); }
@media (max-width: 760px) { .si-head { flex-direction: column; align-items: stretch; } .si-cta { justify-items: start; } .si-deadline { text-align: start; } }
.export-panel { margin-block: 1.5rem 1rem; }
.export-form select { width: auto; min-width: 16rem; }
.ai-fit { margin: 0 0 .8rem; padding-inline-start: .7rem; border-inline-start: 3px solid var(--rule-strong); }
.ai-fit.fit-good { border-color: var(--good); } .ai-fit.fit-partial { border-color: var(--warn); } .ai-fit.fit-poor { border-color: var(--bad); }
.ai-note { display: block; color: var(--muted); font-size: var(--s-xs); margin-block-start: .15rem; }
.ai-points { margin: 0; padding-inline-start: 1.1rem; }
.ai-points li { margin-block-end: .3rem; }

/* National */
.uni-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .9rem; }
.uni-grid a { display: flex; gap: .9rem; align-items: center; padding: 1rem 1.1rem; border: 1px solid var(--rule); border-radius: var(--r-md); text-decoration: none; color: var(--text); background: var(--paper); }
.uni-grid a:hover { border-color: var(--ink-2); }
.uni-grid a > span:last-child { display: grid; gap: .15rem; }
.uni-logo { width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--ink-soft); color: var(--ink); display: grid; place-items: center; font-weight: 600; flex: none; overflow: hidden; }
.uni-logo img { width: 100%; height: 100%; object-fit: contain; }
.journal-rows { list-style: none; margin: 0; padding: .3rem 1.15rem .6rem; }
.journal-rows li { display: grid; gap: .1rem; padding-block: .6rem; border-block-end: 1px solid var(--rule); }
.journal-rows li:last-child { border-block-end: 0; }
.record-page { max-width: 900px; }
.record-page h1 { font-family: var(--read); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.6; margin: 0 0 .5rem; }
.record-page h1.ltr { font-family: var(--ui); line-height: 1.3; }
.record-page .trans-title { color: var(--muted); font-size: var(--s-lg); margin: 0 0 1rem; }
.integrity-panel { border-color: #E4B8B0; }
.flag-list { list-style: none; margin: 0; padding: .4rem 1.15rem; }
.flag-list li { display: grid; gap: .2rem; padding-block: .7rem; border-block-end: 1px solid var(--rule); }
.flag-list li.open strong { color: var(--bad); }
.flag-list form { display: flex; gap: .4rem; margin-block-start: .3rem; }
.flag-list input[type=text] { flex: 1; min-width: 0; padding: .35rem .5rem; font-size: var(--s-sm); }
.cited-by h2 { font-size: 1.3rem; margin: 2.75rem 0 .5rem; }
.cited-list { margin: 0; padding: .4rem 2.4rem .8rem 1.15rem; }
[dir="ltr"] .cited-list { padding: .4rem 1.15rem .8rem 2.4rem; }
.cited-list li { padding-block: .55rem; border-block-end: 1px solid var(--rule); }
.cited-list li > * { display: block; }
.plain-link { color: inherit; text-decoration: none; }
.plain-link:hover { text-decoration: underline; }
.person-head { display: flex; gap: 1.2rem; align-items: center; margin-block: .5rem 1.5rem; }
.person-head h1 { margin: 0; }
.person-head p { margin: .2rem 0; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.4rem; }
.people-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.people-grid a { display: flex; gap: .8rem; align-items: center; padding: .85rem 1rem; border: 1px solid var(--rule); border-radius: var(--r-md); text-decoration: none; color: var(--text); }
.people-grid a:hover { border-color: var(--ink-2); }
.people-grid a > span:last-child { display: grid; gap: .1rem; }
.claim-list { list-style: none; margin: 0; padding: 0; }
.claim-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding-block: .8rem; border-block-end: 1px solid var(--rule); }
.claim-list li > div { display: grid; gap: .2rem; }
details.migrate { margin-block-start: .4rem; }
details.migrate form { display: grid; gap: .5rem; margin-block-start: .5rem; min-width: 220px; }
svg.orcid { width: 1em; height: 1em; vertical-align: -.15em; }

/* Security and privacy */
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.manage-nav .count { background: var(--bad-soft); color: var(--bad); border-radius: 999px; padding: 0 .45rem; font-size: .72rem; margin-inline-start: .25rem; }
.refs { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-end; max-width: 14rem; }
.ref-tag { font-size: .72rem; color: var(--muted); border: 1px solid var(--rule); border-radius: 4px; padding: .05rem .4rem; white-space: nowrap; }
@media (max-width: 640px) { .checks li .refs { grid-column: 2; justify-content: flex-start; } }
.matrix td { vertical-align: top; }
.matrix td.small { max-width: 52ch; line-height: 1.6; }
.owner { font-size: var(--s-sm); padding-inline-start: .6rem; border-inline-start: 3px solid var(--rule); }
.owner-platform { border-color: var(--good); }
.owner-shared { border-color: var(--saffron); }
.owner-operator { border-color: var(--muted); }
.flows { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.flows .panel { margin: 0; }
.flow-sensitive { border-inline-start: 3px solid var(--warn); }
.flow-dl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: 0; padding: 1rem 1.15rem; font-size: var(--s-sm); }
.flow-dl dt { color: var(--muted); }
.flow-dl dd { margin: 0; }
.request-card.overdue { border-inline-start: 3px solid var(--bad); }
.late-text { color: var(--bad); font-weight: 600; }
.steps-list { margin: 0; padding-inline-start: 1.3rem; display: grid; gap: 1.4rem; }
.steps-list li::marker { font-weight: 700; color: var(--ink); }
.steps-list p { margin: .2rem 0 0; }
.qr-row { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; margin-block-start: .7rem; }
.qr svg { width: 180px; height: 180px; display: block; border: 1px solid var(--rule); border-radius: 8px; background: #fff; }
.secret { display: block; font-size: 1rem; letter-spacing: .06em; background: var(--stone-2); padding: .5rem .7rem; border-radius: 6px; margin-block-end: .5rem; word-break: break-all; }
.code-form { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; margin-block-start: .7rem; }
.code-form .field { margin: 0; }
.code-input { font-size: 1.4rem !important; letter-spacing: .3em; text-align: center; max-width: 12rem; font-variant-numeric: tabular-nums; }
.recovery-codes { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 1.5rem; }
.recovery-codes code { font-size: 1.05rem; letter-spacing: .05em; }
.plain-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.prose-page h2 { font-size: 1.15rem; margin: 2rem 0 .5rem; }
.prose-page p, .prose-page li { line-height: 1.85; }
@media print { .topbar, .site-footer, .form-actions { display: none !important; } }
.ror-link { font-size: .68rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--rule); border-radius: 3px; padding: 0 .3rem; text-decoration: none; margin-inline-start: .3rem; vertical-align: .1em; }
.ror-link:hover { color: var(--ink); border-color: var(--ink); }
.index-tabs { margin-block-end: 1.25rem; }
.matrix .title-cell > strong { display: block; }
.matrix .title-cell > span { display: block; margin-block-start: .2rem; }

/* Editorial workflow additions */
.invite-panel { border-color: var(--saffron); }
.invite-panel .panel-head { background: var(--warn-soft); }
.recommend-panel { border-inline-start: 3px solid var(--saffron); }
.confirm-list { list-style: none; margin: 0; padding: .4rem 1.15rem .9rem; display: grid; gap: .45rem; font-size: var(--s-sm); }
.confirm-list li { display: flex; justify-content: space-between; gap: .75rem; align-items: center; }
.disclose.credit { margin-block-start: .6rem; }
.credit-grid ul, .credit-grid > div { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .35rem .9rem; font-size: var(--s-sm); }
.credit-grid label { display: flex; gap: .45rem; align-items: center; font-weight: 400; }
