/* ============================================================
   AJDSI — Reimagined Journal · Shared design system
   Editorial layout, teal primary anchored on the live brand.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,400;1,6..72,500;1,6..72,600&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* Visually-hidden screen-reader-only labels — used across ~15 core OJS
   templates (search, galley links, password reset, etc). Standard sr-only
   pattern; without it these labels render as plain visible text. */
.pkp_screen_reader {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

:root {
  /* paper & ink */
  --paper:    oklch(0.985 0.006 85);
  --paper-2:  oklch(0.955 0.010 85);
  --paper-3:  oklch(0.92 0.014 82);
  --ink:      oklch(0.18 0.018 240);
  --ink-2:    oklch(0.32 0.020 240);
  --ink-3:    oklch(0.50 0.014 240);
  --rule:     oklch(0.88 0.010 80);
  --rule-2:   oklch(0.78 0.013 80);

  /* teal — anchored on live brand */
  --teal:       oklch(0.42 0.08 240);     /* navy primary */
  --teal-deep:  oklch(0.32 0.075 240);
  --teal-dark:  oklch(0.20 0.050 240);
  --teal-soft:  oklch(0.93 0.020 240);
  --teal-tint:  oklch(0.82 0.040 240);

  /* warm secondary */
  --clay:       oklch(0.66 0.105 60);
  --gold:       oklch(0.78 0.13 85);
  --rust:       oklch(0.55 0.13 35);

  /* status */
  --ok:    oklch(0.62 0.13 150);
  --warn:  oklch(0.72 0.13 75);
  --err:   oklch(0.58 0.18 25);

  /* type */
  --serif: "Newsreader", "Source Serif Pro", Georgia, serif;
  --sans:  "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --maxw:   1600px;
  --gutter: clamp(20px, 3vw, 48px);

  --shadow-soft: 0 1px 0 var(--rule), 0 20px 40px -20px oklch(0.18 0.02 240 / 0.18);
  --shadow-card: 0 1px 0 var(--rule), 0 30px 60px -30px oklch(0.18 0.02 240 / 0.30);
}

[data-palette="oxblood"] {
  --teal:       oklch(0.40 0.12 25);
  --teal-deep:  oklch(0.34 0.13 25);
  --teal-dark:  oklch(0.24 0.10 25);
  --teal-soft:  oklch(0.95 0.04 25);
  --teal-tint:  oklch(0.85 0.07 25);
}
[data-palette="emerald"] {
  --teal:       oklch(0.45 0.085 165);
  --teal-deep:  oklch(0.36 0.090 165);
  --teal-dark:  oklch(0.24 0.07 165);
  --teal-soft:  oklch(0.93 0.04 165);
  --teal-tint:  oklch(0.84 0.07 165);
}
[data-palette="ink"] {
  --teal:       oklch(0.30 0.05 240);
  --teal-deep:  oklch(0.22 0.04 240);
  --teal-dark:  oklch(0.14 0.03 240);
  --teal-soft:  oklch(0.93 0.02 240);
  --teal-tint:  oklch(0.82 0.04 240);
}
[data-density="compact"] { --gutter: clamp(16px, 3vw, 40px); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02";
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ── primitives ────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
}
.eyebrow.teal { color: var(--teal-deep); }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.rule-thick { height: 1px; background: var(--ink); border: 0; margin: 0; }

.pill {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 5px 10px;
  background: var(--paper-2); border: 1px solid var(--rule); color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.pill.teal { background: var(--teal-soft); border-color: var(--teal-soft); color: var(--teal-deep); }
.pill.outline { background: transparent; }
.pill .ddot { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; }

.btn {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  padding: 11px 18px; border: 1px solid var(--ink);
  background: transparent; color: var(--ink); cursor: pointer;
  transition: all 0.18s ease;
  letter-spacing: 0.01em;
  display: inline-flex; align-items: center; gap: 8px;
  text-align: left;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.btn.teal { background: var(--teal); color: var(--paper); border-color: var(--teal); }
.btn.teal:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.btn.ghost { border-color: var(--rule-2); color: var(--ink-2); }
.btn.ghost:hover { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn .arrow { transition: transform 0.2s; display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }
.btn.block { width: 100%; justify-content: space-between; padding: 14px 18px; }

.icon-btn {
  width: 36px; height: 36px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--rule-2);
  color: var(--ink-2); cursor: pointer; background: transparent;
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink); }

input, textarea, select {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule-2);
  padding: 12px 14px; width: 100%; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  border-radius: 0;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--teal-deep);
  box-shadow: 0 0 0 3px var(--teal-soft);
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }
label.field {
  display: grid; gap: 8px; font-size: 13px;
}
label.field .lbl {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
  display: flex; justify-content: space-between; align-items: baseline;
}
label.field .lbl .req { color: var(--rust); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
label.field .lbl .opt { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .3px; color: var(--ink-3); }
label.field .hint { font-size: 12px; color: var(--ink-3); }
label.field.err input, label.field.err textarea { border-color: var(--err); }
label.field.err .errm { color: var(--err); font-size: 12px; font-family: var(--mono); }

.checkbox {
  display: inline-flex; gap: 10px; align-items: flex-start;
  font-size: 13.5px; color: var(--ink-2); cursor: pointer;
  line-height: 1.5;
}
.checkbox input { width: auto; appearance: none;
  width: 18px; height: 18px; padding: 0;
  border: 1px solid var(--rule-2); background: var(--paper);
  margin-top: 1px; flex-shrink: 0; position: relative;
  cursor: pointer;
}
.checkbox input:checked { background: var(--teal); border-color: var(--teal); }
.checkbox input:checked::after {
  content: ""; position: absolute; left: 5px; top: 1px;
  width: 5px; height: 10px; border: solid var(--paper);
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ── demo banner ───────────────────────────────────────────── */
.ajdsi-demo-banner {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 20px; text-align: center; justify-content: center;
  background: #7c2d12; color: #fff7ed;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; line-height: 1.4;
}
.ajdsi-demo-banner strong {
  text-transform: uppercase; letter-spacing: 0.08em; color: #fed7aa;
}
.ajdsi-demo-banner__dot {
  width: 7px; height: 7px; border-radius: 50%; background: #fb923c;
  flex-shrink: 0; box-shadow: 0 0 0 3px rgba(251,146,60,0.25);
}
@media (max-width: 720px) {
  .ajdsi-demo-banner { font-size: 11px; padding: 8px 12px; }
}

/* ── utility bar ──────────────────────────────────────────── */
.util {
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.util-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 36px; gap: 24px;
  max-width: 1320px; /* header stays at the original (narrower) width */
}
.util .left, .util .right { display: flex; gap: 22px; align-items: center; }
.util .left { opacity: 0.85; }
.util a, .util span { white-space: nowrap; }
.util a:hover { color: var(--gold); }
.util .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-soft); margin-right: 8px; vertical-align: middle;
  animation: pulse 2.4s ease-in-out infinite;
  box-shadow: 0 0 0 2px oklch(0.56 0.09 200 / 0.5);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 2px oklch(0.56 0.09 200 / 0.5); }
  50%      { box-shadow: 0 0 0 6px oklch(0.56 0.09 200 / 0); }
}
@media (max-width: 1100px) { .util .right a.for-link { display: none; } }
@media (max-width: 760px)  { .util .left span.opt { display: none; } }

/* user nav dropdown */
.util-user { position: relative; }
.util-user__trigger { cursor: pointer; white-space: nowrap; }
.util-user__trigger:hover { color: var(--gold); }
.util-drop {
  display: none;
  position: absolute; top: 100%; right: 0;
  padding-top: 8px;
  background: var(--ink); border: 1px solid oklch(1 0 0 / .12);
  border-radius: 4px; min-width: 160px; z-index: 200;
  background-clip: padding-box;
  box-shadow: 0 8px 24px oklch(0 0 0 / .35);
}
.util-drop a {
  display: block; padding: 9px 16px;
  font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: oklch(.88 .01 80 / .85); border-bottom: 1px solid oklch(1 0 0 / .06);
  white-space: nowrap;
}
.util-drop a:last-child { border-bottom: 0; }
.util-drop a:hover { background: oklch(1 0 0 / .06); color: var(--gold); }
.util-user:hover .util-drop,
.util-user:focus-within .util-drop { display: block; }

/* ── masthead ─────────────────────────────────────────────── */
.masthead {
  border-bottom: 1px solid var(--rule);
  background: color-mix(in oklch, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 40;
}
.mast-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: 32px;
  padding: 16px 0;
  max-width: 1320px; /* header stays at the original (narrower) width */
}
.logo { display: flex; align-items: center; gap: 14px; }

/* refined monogram mark */
.mono-mark {
  width: 46px; height: 46px;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 500;
  font-style: italic; font-size: 22px;
  position: relative; flex-shrink: 0;
}
.mono-mark::after {
  content: ""; position: absolute; inset: 4px;
  border: 1px solid var(--paper); opacity: 0.55;
}
.mono-mark.teal { background: var(--teal-deep); }
.mono-mark.lg { width: 76px; height: 76px; font-size: 36px; }
.mono-mark.lg::after { inset: 6px; }

.logo-text { line-height: 1.1; }
.logo-text .full {
  font-family: var(--serif); font-size: 18px; font-weight: 500;
  letter-spacing: -0.01em;
}
.logo-text .sub {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 3px;
}

nav.main {
  display: flex; gap: 26px; justify-content: center;
  font-size: 14px; font-weight: 500;
}
nav.main a {
  padding: 8px 2px; position: relative; color: var(--ink-2);
  transition: color 0.18s;
}
nav.main a:hover { color: var(--ink); }
nav.main a.active { color: var(--ink); }
nav.main a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--teal);
}
.mast-actions { display: flex; gap: 12px; align-items: center; }

/* dropdown submenus (e.g. "About") */
nav.main .has-sub { position: relative; display: flex; align-items: center; }
nav.main .has-sub > a::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 5px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg); transition: transform 0.18s;
}
nav.main .has-sub:hover > a::after,
nav.main .has-sub.active > a::after { transform: translateY(-1px) rotate(45deg); }
nav.main .has-sub .sub {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 220px; margin: 0; padding: 18px 8px 8px; list-style: none;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 12px;
  background-clip: padding-box;
  box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.16s, transform 0.16s;
  z-index: 40;
}
nav.main .has-sub:hover .sub,
nav.main .has-sub:focus-within .sub {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
nav.main .has-sub .sub li { margin: 0; }
nav.main .has-sub .sub a {
  display: block; padding: 9px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
}
nav.main .has-sub .sub a:hover { background: var(--paper-2); color: var(--ink); }

/* mobile menu */
.menu-btn { display: none; }
@media (max-width: 980px) {
  nav.main { display: none; }
  .menu-btn { display: inline-grid; }
}

/* ── footer ───────────────────────────────────────────────── */
footer.site {
  background: var(--ink); color: oklch(0.88 0.01 80);
  padding-top: 56px; margin-top: 56px;
}
/* No cream gap when the footer follows a full-bleed dark strip — the two
   dark blocks should sit flush, not sandwich a band of page background.
   (footer.site is a sibling of <main>, not of the strip, so target it via
   the body's page/op classes rather than an adjacent-sibling selector.) */
.pkp_page_about.pkp_op_index footer.site,
.pkp_page_about.pkp_op_contact footer.site,
.pkp_page_index.pkp_op_index footer.site { margin-top: 0; }
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid oklch(0.92 0.01 80 / 0.12);
}
/* Extra breathing room between the brand block and the link columns —
   the base grid gap alone read as too tight against the four columns. */
.foot-top > *:nth-child(2) { margin-left: 24px; }
footer.site .logo .mono-mark { background: var(--paper); color: var(--ink); }
footer.site .logo .mono-mark::after { border-color: var(--ink); opacity: 0.4; }
footer.site .logo-text .full { color: var(--paper); }
footer.site .logo-text .sub { color: oklch(0.88 0.01 80 / 0.6); }
.foot-brand .blurb {
  font-family: var(--serif); font-size: 16px; line-height: 1.55;
  color: oklch(0.88 0.01 80 / 0.8); max-width: 38ch;
  margin: 22px 0;
}
.foot-issn {
  display: flex; gap: 24px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  color: oklch(0.88 0.01 80 / 0.6); text-transform: uppercase;
}
.foot-issn strong { color: var(--paper); font-weight: 500; }
.foot-col h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: oklch(0.88 0.01 80 / 0.5);
  margin: 0 0 18px; font-weight: 500;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-col a { font-size: 14px; color: oklch(0.92 0.01 80 / 0.9); }
.foot-col a:hover { color: var(--teal-tint); }
.foot-bottom {
  padding: 20px 0;
  border-top: 1px solid oklch(0.92 0.01 80 / 0.12);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: oklch(0.88 0.01 80 / 0.5); text-transform: uppercase;
  gap: 16px 24px; flex-wrap: wrap;
}
.foot-bottom a:hover { color: var(--teal-tint); }
.foot-credits {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid oklch(0.92 0.01 80 / 0.12);
  padding-bottom: 32px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: oklch(0.88 0.01 80 / 0.55); text-transform: uppercase;
}
.foot-credits .fc-group { white-space: nowrap; }
.foot-credits .fc-about { margin-left: auto; }

/* ── newsletter inline ───────────────────────────────────── */
.news-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center; padding: 40px 0;
  border-top: 1px solid oklch(0.92 0.01 80 / 0.12);
}
.news-inner h3 {
  font-family: var(--serif); font-size: 36px; font-weight: 400;
  color: var(--paper); margin: 12px 0 0;
  letter-spacing: -0.015em; line-height: 1.05;
}
.news-inner h3 em { font-style: italic; color: var(--teal-tint); }
.news-inner p {
  font-family: var(--serif); font-size: 16px;
  color: oklch(0.88 0.01 80 / 0.75); max-width: 44ch; margin: 16px 0 0;
}
.news-form {
  display: flex; border: 1px solid oklch(0.92 0.01 80 / 0.3);
  background: oklch(1 0 0 / 0.04);
}
.news-form input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--paper); padding: 18px 20px;
  font-family: var(--sans); font-size: 15px;
}
.news-form input::placeholder { color: oklch(0.88 0.01 80 / 0.4); }
.news-form button {
  border: 0; background: var(--teal); color: var(--paper);
  font-family: var(--sans); font-weight: 600; font-size: 13px;
  padding: 0 28px; cursor: pointer; letter-spacing: 0.04em;
  text-transform: uppercase; transition: background 0.2s;
}
.news-form button:hover { background: var(--teal-deep); }
.news-form.ok button { background: var(--ok); }
.news-tags { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.news-tags .ntag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 5px 10px;
  border: 1px solid oklch(0.88 0.01 80 / 0.2); color: oklch(0.88 0.01 80 / 0.7);
}

@media (max-width: 980px) {
  /* Brand takes its own full-width row; the 4 link columns become a
     2×2 grid below it (Journal+Publish share a row, Access+Legal share
     the next). */
  .foot-top { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .foot-top > .foot-brand { grid-column: 1 / -1; }
  .foot-top > *:nth-child(2) { margin-left: 0; }
  .news-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* Tighter rhythm — the desktop paddings stacked into a huge dead zone
     of empty dark space on phones. */
  footer.site { padding-top: 40px; margin-top: 40px; }
  .foot-top { padding-bottom: 32px; gap: 24px 20px; }
  .news-inner { padding: 32px 0; }
  .foot-bottom { padding: 16px 0; }
  /* "Designed by Airix Media" gets its own line; "Built on OJS" and "About
     this publishing system" are short enough to share the next line. */
  .foot-credits {
    align-items: flex-start; row-gap: 10px;
    padding-bottom: 24px;
  }
  .foot-credits .fc-group:first-child { flex-basis: 100%; }
  .foot-credits .fc-about { margin-left: 0; }
  /* "Built on OJS 3.5" + "About this publishing system →" don't fit one
     320px-wide line at the base tracking/size — tighten just enough. */
  .foot-credits { font-size: 10px; letter-spacing: 0.04em; column-gap: 12px; }
}

/* ── homepage hero ────────────────────────────────────────
   Missing from a prior edit: without .hero-grid/.hero-side, the
   aside collapses to full width and the aspect-ratio 3/4 .cover
   card inside it stretches to fill it, looking hugely oversized. */
.hero {
  padding: 32px 0 56px;
  border-bottom: 1px solid var(--rule);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 64px; align-items: start;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 6.6vw, 104px);
  line-height: 0.93; letter-spacing: -0.028em;
  margin: 18px 0 0; color: var(--ink);
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--teal-deep); }
.hero .meta-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero .lede {
  font-family: var(--serif); font-size: 21px; line-height: 1.45;
  color: var(--ink-2); max-width: 58ch; margin-top: 30px;
}
.hero .lede em { font-style: italic; }
.hero-ctas { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-side { border-left: 1px solid var(--rule); padding-left: 40px; padding-bottom: 8px; }
.hero-side .label {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-side { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; padding-top: 36px; }
}

/* ── homepage current-issue: TOC layout ──────────────────────
   Also missing: without these, .issue-meta-card's aspect-ratio 3/4
   .cover stretches full width instead of sitting in a 360px rail. */
.issue-layout {
  display: grid; grid-template-columns: 360px 1fr; gap: 64px; align-items: start;
}
.issue-meta-card { position: sticky; top: 96px; }
.issue-meta-list {
  margin-top: 24px; font-size: 13px; border-top: 1px solid var(--rule);
}
.issue-meta-list .imrow {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
}
.issue-meta-list .k {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
}
.issue-meta-list .v { color: var(--ink); text-align: right; }
.issue-actions { display: grid; gap: 10px; margin-top: 24px; }
.sect-divider {
  margin: 40px 0 24px; display: flex; align-items: baseline; gap: 16px;
  border-bottom: 1px solid var(--ink); padding-bottom: 14px;
}
.sect-divider:first-child { margin-top: 0; }
.sect-divider h3 {
  font-family: var(--serif); font-size: 24px; font-weight: 500;
  font-style: italic; margin: 0; letter-spacing: -0.01em;
}
.sect-divider .count {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
}
@media (max-width: 980px) {
  .issue-layout { grid-template-columns: 1fr; gap: 40px; }
  .issue-meta-card { position: static; }
}

/* ── page hero (article-style) ───────────────────────────── */
.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 640px) {
  .page-hero { padding: 28px 0 32px; }
}
.page-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 0.98; letter-spacing: -0.025em;
  margin: 14px 0 0; text-wrap: balance; max-width: 22ch;
}
.page-hero h1 em { font-style: italic; color: var(--teal-deep); }
.page-hero .breadcrumb {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); display: flex; gap: 10px; flex-wrap: wrap;
}
.page-hero .breadcrumb a:hover { color: var(--teal-deep); }
.page-hero .breadcrumb .sep { opacity: 0.4; }
.page-hero .lede {
  font-family: var(--serif); font-size: 21px; line-height: 1.5;
  color: var(--ink-2); max-width: 60ch; margin-top: 28px;
}

/* ── section header (canonical) ─────────────────────────── */
.sec-header {
  display: grid; grid-template-columns: 1fr auto;
  align-items: end; gap: 32px;
  padding-bottom: 28px; margin-bottom: 36px;
  border-bottom: 1px solid var(--ink);
}
@media (max-width: 640px) {
  .sec-header { grid-template-columns: 1fr; gap: 12px; }
}
.sec-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400; letter-spacing: -0.02em; line-height: 1;
  margin: 12px 0 0;
}
.sec-title em { font-style: italic; color: var(--teal-deep); }
.sec-meta {
  font-size: 13px; color: var(--ink-3);
  display: flex; gap: 16px; align-items: center;
  flex-wrap: wrap;
}
.sec-meta a {
  display: inline-flex; gap: 6px; align-items: center;
  color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px;
}
.sec-meta a:hover { color: var(--teal-deep); border-color: var(--teal-deep); }

section.section { padding: 80px 0; border-bottom: 1px solid var(--rule); }
section.section.tight { padding: 56px 0; }
section.section:last-of-type { border-bottom: 0; }

/* Homepage layout restored from AJDSI/index.html baseline. */
.index-strip { border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.index-inner { display: flex; align-items: center; gap: 32px; padding: 16px 0; overflow: hidden; }
.index-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
  white-space: nowrap; padding-right: 24px; border-right: 1px solid var(--rule);
}
.index-list {
  flex: 1; min-width: 0; overflow: hidden; white-space: nowrap;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.index-track {
  display: inline-flex; gap: 32px; align-items: center;
  font-family: var(--serif); font-size: 16px; color: var(--ink-2);
  animation: ajdsi-index-ticker 18s linear infinite;
  will-change: transform;
}
.index-track span { display: inline-flex; align-items: center; gap: 8px; }
.index-track span::before { content: ""; width: 6px; height: 6px; background: var(--teal); border-radius: 50%; flex-shrink: 0; }
@keyframes ajdsi-index-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--rule);
}
.stat { padding: 36px 32px; border-right: 1px solid var(--rule); position: relative; }
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--serif); font-size: 68px; font-weight: 500;
  line-height: 1; letter-spacing: -0.03em; color: var(--ink);
  display: flex; align-items: baseline; gap: 6px;
}
.stat .num .suf { font-size: 28px; color: var(--teal-deep); }
.stat .lbl { margin-top: 12px; font-size: 13px; color: var(--ink-3); line-height: 1.4; }
.stat .topnote {
  position: absolute; top: 16px; right: 20px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
}
.twoup { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--ink); }
.twoup .pane { padding: 56px 48px; border-right: 1px solid var(--rule); position: relative; background: var(--paper); }
.twoup .pane:last-child { border-right: 0; background: var(--ink); color: var(--paper); }
.twoup .pane:last-child .eyebrow { color: var(--paper); opacity: 0.55; }
.twoup .pane h3 { font-family: var(--serif); font-size: 44px; font-weight: 400; letter-spacing: -0.02em; line-height: 1; margin: 16px 0 20px; }
.twoup .pane h3 em { font-style: italic; color: var(--teal-deep); }
.twoup .pane:last-child h3 em { color: var(--gold); }
.twoup .pane p { font-family: var(--serif); font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 44ch; }
.twoup .pane:last-child p { color: oklch(0.94 0.01 80 / 0.85); }
.twoup .pane ul { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; }
.twoup .pane li { font-size: 14px; color: var(--ink-2); padding-left: 22px; position: relative; }
.twoup .pane li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 1px; background: var(--teal-deep); }
.twoup .pane:last-child li { color: oklch(0.92 0.01 80 / 0.95); }
.twoup .pane:last-child li::before { background: var(--gold); }
.twoup .stamp { position: absolute; top: 56px; right: 48px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--rule-2); padding: 6px 10px; }
.twoup .pane:last-child .stamp { color: oklch(0.92 0.01 80 / 0.7); border-color: oklch(0.92 0.01 80 / 0.3); }
@media (max-width: 980px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .twoup { grid-template-columns: 1fr; }
  .twoup .pane { border-right: 0; border-bottom: 1px solid var(--rule); padding: 40px 24px; }
  /* The corner-pinned stamp badge collides with the pane's own title at
     this width; drop it into normal flow above the title instead. */
  .twoup .stamp { position: static; display: inline-block; margin-bottom: 16px; }
}

/* ── prose ───────────────────────────────────────────────── */
/* Base prose text rules; headings, lists, tables, dividers and designed
   tables are defined in the comprehensive ".prose" block lower in this file. */
.prose { font-family: var(--serif); font-size: 17.5px; line-height: 1.62; color: var(--ink-2); }
.prose p { margin: 0 0 1.1em; }
.prose em { font-style: italic; }
.prose blockquote {
  margin: 1.4em 0; padding: 4px 0 4px 24px;
  border-left: 3px solid var(--teal);
  font-style: italic; color: var(--ink);
}

/* ── content layout helpers ──────────────────────────────── */
.two-col {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: 80px; align-items: start;
}
.two-col aside { position: sticky; top: 96px; font-size: 14px; }
.two-col aside .card {
  background: var(--paper-2); padding: 28px 24px;
  border-left: 3px solid var(--teal);
  display: grid; gap: 14px;
}
.two-col aside .card h5 {
  margin: 0; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 500;
}
.two-col aside .card .item .k {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
}
.two-col aside .card .item .v {
  color: var(--ink); margin-top: 4px;
}
.two-col aside ul.toc {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 8px;
  font-size: 13.5px;
}
.two-col aside ul.toc a {
  color: var(--ink-2); padding-left: 14px; position: relative; display: block;
  padding: 4px 0 4px 14px;
}
.two-col aside ul.toc a::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 6px; height: 1px; background: var(--rule-2);
}
.two-col aside ul.toc a:hover, .two-col aside ul.toc a.active { color: var(--teal-deep); }
.two-col aside ul.toc a.active::before { background: var(--teal); width: 10px; }

@media (max-width: 980px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col aside { position: static; }
}

/* ── sticky "on this page" nav (about page) ────────────────── */
.anchor-nav {
  position: sticky; top: 96px;
  display: grid; gap: 6px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-left: 1px solid var(--rule); padding-left: 18px;
}
.anchor-nav a { color: var(--ink-3); padding: 6px 0; display: block; }
.anchor-nav a:hover, .anchor-nav a.on { color: var(--teal-deep); }
.anchor-nav .group {
  font-size: 10px; letter-spacing: 0.18em; color: var(--ink-3); opacity: 0.6;
  padding-top: 14px; padding-bottom: 4px;
}

/* "On this page" TOC nav (about/submissions/information pages): on mobile
   this fell to the bottom of the page as a tall static list after the long
   prose column. Pin it as a horizontal scrollable strip right under the
   masthead instead. Scoped to asides that actually contain .anchor-nav so
   the unrelated "at a glance" card (editorial history) is unaffected. */
@media (max-width: 980px) {
  .two-col aside:has(.anchor-nav) {
    order: -1;
    position: sticky; top: 78px; z-index: 30;
    background: var(--paper);
    margin: 0 calc(-1 * var(--gutter)) 24px;
    padding: 10px var(--gutter);
    border-bottom: 1px solid var(--rule);
  }
  .anchor-nav {
    position: static;
    display: flex; gap: 4px; align-items: center;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    border-left: 0; padding-left: 0;
  }
  .anchor-nav .group { display: none; }
  .anchor-nav a { padding: 8px 12px; white-space: nowrap; }
  /* Submissions page nests a second "quick links" list inside the same
     nav (with its own inline display:grid); keep the horizontal strip
     focused on the on-page anchors. */
  .anchor-nav .qlinks { display: none !important; }
}

/* ── about page: four pillars / mission-vision / contact strip ── */
.quad {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.quad .item {
  padding: 32px; border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 12px;
}
.quad .item:last-child { border-right: 0; }
.quad .item .k {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal-deep);
}
.quad .item .t {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  line-height: 1.2; letter-spacing: -0.01em; color: var(--ink);
}
.quad .item p { font-size: 13.5px; color: var(--ink-2); margin: 0; line-height: 1.5; }

.mv {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
}
.mv .cell { padding: 64px 56px; border-right: 1px solid var(--rule); position: relative; }
.mv .cell:last-child { border-right: 0; background: var(--paper-2); }
.mv .stamp {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
}
.mv h3 {
  font-family: var(--serif); font-size: 38px; font-weight: 400;
  letter-spacing: -0.02em; line-height: 1.05; margin: 16px 0 18px;
}
.mv h3 em { font-style: italic; color: var(--teal-deep); }
.mv p {
  font-family: var(--serif); font-size: 17px; color: var(--ink-2);
  line-height: 1.5; max-width: 48ch; margin: 0;
}

.contact-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--ink); color: var(--paper);
}
.contact-strip .c { padding: 32px; border-right: 1px solid oklch(0.92 0.01 80 / 0.12); }
.contact-strip .c:last-child { border-right: 0; }
.contact-strip .c .k {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: oklch(0.88 0.01 80 / 0.55);
}
.contact-strip .c .v { font-family: var(--serif); font-size: 17px; line-height: 1.4; margin-top: 10px; }
.contact-strip .c .v a { color: var(--teal-tint); overflow-wrap: anywhere; }

@media (max-width: 980px) {
  .quad { grid-template-columns: 1fr 1fr; }
  .quad .item:nth-child(2) { border-right: 0; }
  .quad .item:nth-child(1), .quad .item:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .mv { grid-template-columns: 1fr; }
  .mv .cell { border-right: 0; border-bottom: 1px solid var(--rule); padding: 40px 24px; }
  .contact-strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .contact-strip .c:nth-child(2) { border-right: 0; }
}
@media (max-width: 480px) {
  /* Two narrow columns force emails like "editor@ajdsi.example" to break
     mid-word; a single full-width column gives them room to sit on one line. */
  .contact-strip { grid-template-columns: 1fr; }
  .contact-strip .c { border-right: 0 !important; border-bottom: 1px solid oklch(0.92 0.01 80 / 0.12); }
  .contact-strip .c:last-child { border-bottom: 0; }
}

/* ── auth pages ──────────────────────────────────────────── */
.auth-shell {
  display: grid; grid-template-columns: 1fr 1fr;
  height: calc(100vh - 36px); /* minus util bar */
}
.auth-side {
  background: var(--teal-dark); color: var(--paper);
  padding: 40px 48px 32px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  height: 100%;
}
.auth-side::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 8%, oklch(0.78 0.13 85 / 0.30), transparent 50%),
    radial-gradient(circle at 8% 90%, var(--teal) 0%, transparent 55%);
}
.auth-side > * { position: relative; }
.auth-side .auth-quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.15; letter-spacing: -0.015em;
  color: var(--paper); max-width: 22ch;
}
.auth-side .auth-quote::before { content: "\201C"; color: var(--gold); margin-right: 4px; }
.auth-side .auth-quote::after  { content: "\201D"; color: var(--gold); margin-left: 2px; }
.auth-side .auth-meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: oklch(0.92 0.01 80 / 0.72);
  display: grid; gap: 6px;
  /* Give the credit line a proper footer "seat" instead of floating
     directly against the busy hero-cover artwork behind it. */
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid oklch(1 0 0 / 0.12);
}
.auth-side .auth-cover {
  margin: 20px 0;
  flex: 1; min-height: 0;
  background:
    radial-gradient(circle at 25% 70%, oklch(0.78 0.13 85 / 0.4), transparent 45%),
    linear-gradient(135deg, var(--teal-deep), var(--ink) 75%);
  position: relative; overflow: hidden;
  border: 1px solid oklch(1 0 0 / 0.08);
}
.auth-side .auth-cover::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, transparent 0 calc(100% - 1px), oklch(1 0 0 / 0.06) 0),
    linear-gradient(0deg, transparent 0 calc(100% - 1px), oklch(1 0 0 / 0.06) 0);
  background-size: 28px 28px;
}
.auth-side .auth-cover .hero-art {
  position: absolute; inset: 0;
  background-repeat: no-repeat; background-position: center 62%; background-size: 92%;
  opacity: 0.92;
}
.auth-side .auth-cover .caption {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  color: var(--paper); font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  display: flex; justify-content: space-between; gap: 12px;
}
.auth-side .auth-issue-title {
  position: absolute; left: 20px; top: 20px; right: 20px;
  color: var(--paper); font-family: var(--serif); font-style: italic;
  font-size: 32px; line-height: 1.05; max-width: 80%;
}

.auth-main {
  padding: 48px 56px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: safe center;
  background: var(--paper);
  height: 100%; overflow-y: auto;
}
.auth-card {
  width: 100%; max-width: 440px;
}
.auth-card .auth-eyebrow {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 12px;
}
.auth-card h2 {
  font-family: var(--serif); font-size: 44px; font-weight: 400;
  letter-spacing: -0.02em; line-height: 1; margin: 0 0 14px;
}
.auth-card h2 em { font-style: italic; color: var(--teal-deep); }
.auth-card .auth-sub {
  font-family: var(--serif); font-size: 16px; color: var(--ink-2);
  margin: 0 0 32px; line-height: 1.5;
}
.auth-card form { display: grid; gap: 20px; }
.auth-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth-card .meta-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}
.auth-card .meta-row a { color: var(--teal-deep); border-bottom: 1px solid var(--teal-tint); }
.auth-card .meta-row a:hover { color: var(--teal-dark); }
.auth-card .switch {
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule);
  font-size: 13px; color: var(--ink-3); text-align: center;
}
.auth-card .switch a { color: var(--teal-deep); border-bottom: 1px solid var(--teal-tint); }
.auth-card .alt {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin: 12px 0 4px;
}
.auth-card .alt-btn {
  display: flex; gap: 12px; align-items: center;
  border: 1px solid var(--rule-2); background: var(--paper);
  padding: 12px 14px; cursor: pointer; font-family: var(--sans);
  font-size: 13.5px; color: var(--ink); transition: all 0.18s;
}
.auth-card .alt-btn:hover { border-color: var(--ink); background: var(--paper-2); }
.auth-card .alt-btn .lab { flex: 1; white-space: nowrap; }
@media (max-width: 420px) {
  .auth-card .alt { grid-template-columns: 1fr; }
}
.auth-card .alt-btn .orcid {
  width: 22px; height: 22px; border-radius: 50%;
  background: #A6CE39; color: white; display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
}
.auth-card .divider {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-3); margin: 8px 0;
}
.auth-card .divider::before, .auth-card .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--rule);
}

.auth-status {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: oklch(0.92 0.01 80 / 0.7);
  display: flex; align-items: center; gap: 8px;
}
.auth-status .dot { width: 8px; height: 8px; background: var(--ok); border-radius: 50%; }

.auth-footer {
  display: none; /* shown only on mobile — see media query below */
  background: var(--ink); color: oklch(0.88 0.01 80 / 0.7);
  padding: 28px 0; margin-top: 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.auth-footer .wrap { display: grid; gap: 12px; }
.auth-footer .issn { opacity: 0.6; }
.auth-footer .credit { opacity: 0.85; line-height: 1.7; letter-spacing: 0.05em; }
.auth-footer .credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; height: auto; }
  .auth-side { padding: 40px 24px; height: auto; }
  .auth-side .auth-cover { flex: none; min-height: 220px; }
  .auth-main { padding: 48px 24px; height: auto; overflow-y: visible; }
  .auth-card { max-width: 520px; }
  /* .auth-side stops being a full-viewport-height flex column here, so
     auth-status (absolute, top:20/right:20) ends up floating independently
     of the logo instead of sitting in a proper row with it. Drop it into
     normal flow above the logo on mobile. */
  .auth-status { position: static; margin-bottom: 16px; }
  /* Same content now renders as a real page footer (.auth-footer) below
     the form instead of tucked inside the hero art. */
  .auth-side .auth-meta { display: none; }
  .auth-footer { display: block; }
}
@media (max-width: 480px) {
  .auth-side .auth-cover .caption { flex-direction: column; gap: 4px; }
}

/* ── article cards / row ─────────────────────────────────── */
.article-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px; padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start; cursor: pointer; transition: background 0.18s;
}
.article-row .ar-num {
  font-family: var(--mono); font-size: 13px; color: var(--ink-3);
  letter-spacing: 0.04em; padding-top: 4px;
}
.article-row .ar-sec {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--clay); margin-bottom: 6px;
}
.article-row .ar-title {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  line-height: 1.22; letter-spacing: -0.012em; margin: 0 0 10px;
  color: var(--ink); text-wrap: balance;
}
.article-row:hover .ar-title { color: var(--teal-deep); }
.article-row .ar-authors {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin-bottom: 8px;
}
.article-row .ar-authors .et { font-style: italic; color: var(--ink-3); }
.article-row .ar-meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-3); align-items: center;
}
.article-row .ar-meta .doi { color: var(--ink-2); }
.article-row .ar-meta .pages-inline { display: none; }
.article-row .ar-side {
  text-align: right; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; color: var(--ink-3);
  display: grid; gap: 6px; min-width: 96px;
}
.article-row .ar-side .pages {
  font-family: var(--serif); font-size: 22px; font-style: italic;
  color: var(--ink); letter-spacing: -0.01em;
}

/* ── definition list ─────────────────────────────────────── */
.def-list {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 4px 32px; border-top: 1px solid var(--rule);
}
.def-list dt {
  padding: 16px 0; border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
}
.def-list dd {
  padding: 16px 0; border-bottom: 1px solid var(--rule);
  margin: 0; color: var(--ink);
}

/* ── alerts ──────────────────────────────────────────────── */
.alert {
  padding: 18px 22px; border-left: 3px solid var(--ink);
  background: var(--paper-2); display: flex; gap: 14px;
  font-size: 14px; color: var(--ink-2);
}
.alert .title { font-family: var(--sans); font-weight: 600; color: var(--ink); }
.alert.ok   { border-color: var(--ok);  background: oklch(0.96 0.05 150); }
.alert.warn { border-color: var(--warn);background: oklch(0.96 0.05 75); }
.alert.err  { border-color: var(--err); background: oklch(0.96 0.06 25); }
.alert.teal { border-color: var(--teal); background: var(--teal-soft); }
.alert.teal .title { color: var(--teal-dark); }
@media (max-width: 560px) {
  .alert { flex-direction: column; align-items: stretch; }
  .alert .btn { align-self: stretch; justify-content: center; }
}

/* ── tweaks panel (vanilla) ──────────────────────────────── */
.tw-toggle {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 48px; height: 48px;
  border: 1px solid var(--ink); background: var(--paper); color: var(--ink);
  cursor: pointer; display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  box-shadow: 0 8px 24px -8px oklch(0.18 0.02 240 / 0.3);
  transition: all 0.18s;
}
.tw-toggle:hover { background: var(--ink); color: var(--paper); }
.tw-panel {
  position: fixed; right: 24px; bottom: 84px; z-index: 60;
  width: 300px; background: var(--paper); color: var(--ink);
  border: 1px solid var(--ink); padding: 18px;
  box-shadow: 0 24px 48px -16px oklch(0.18 0.02 240 / 0.35);
  display: none; flex-direction: column; gap: 16px;
}
.tw-panel.open { display: flex; }
.tw-panel h6 {
  margin: 0; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3);
}
.tw-panel .tw-sec { display: grid; gap: 8px; }
.tw-panel .tw-seg {
  display: grid; gap: 6px; grid-auto-flow: column; grid-auto-columns: 1fr;
  border: 1px solid var(--rule-2); padding: 4px;
}
.tw-panel .tw-seg button {
  background: transparent; border: 0; padding: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-2); cursor: pointer;
}
.tw-panel .tw-seg button.on { background: var(--ink); color: var(--paper); }
.tw-panel .tw-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--ink-2);
}
.tw-panel .tw-switch {
  width: 36px; height: 20px; background: var(--rule-2); border: 0; padding: 0;
  position: relative; cursor: pointer; flex-shrink: 0;
}
.tw-panel .tw-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; background: var(--paper);
  transition: transform 0.2s;
}
.tw-panel .tw-switch.on { background: var(--teal); }
.tw-panel .tw-switch.on::after { transform: translateX(16px); }
.tw-panel .tw-close {
  position: absolute; top: 8px; right: 8px;
  width: 24px; height: 24px; border: 0; background: transparent;
  color: var(--ink-3); cursor: pointer; display: grid; place-items: center;
}

/* ── search overlay ──────────────────────────────────────── */
.search-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: oklch(0.18 0.02 240 / 0.6);
  backdrop-filter: blur(6px);
  display: none; align-items: flex-start; justify-content: center;
  padding-top: 80px;
}
.search-overlay.open { display: flex; }
.search-overlay .search-box {
  width: min(720px, 92vw); background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 40px 80px -20px oklch(0.18 0.02 240 / 0.5);
}
.search-overlay .search-input-row {
  display: flex; align-items: center;
  border-bottom: 1px solid var(--rule);
  padding: 8px 18px 8px 18px;
}
.search-overlay input {
  border: 0; padding: 16px 0; font-size: 22px;
  font-family: var(--serif); color: var(--ink);
  outline: none; flex: 1; background: transparent;
}
.search-overlay input::placeholder { color: var(--ink-3); }
.search-overlay .esc {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  border: 1px solid var(--rule-2); padding: 4px 8px; color: var(--ink-3);
}
.search-overlay .results { padding: 12px 0; max-height: 60vh; overflow-y: auto; }
.search-overlay .res {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 14px; padding: 12px 22px; cursor: pointer;
}
.search-overlay .res:hover { background: var(--paper-2); }
.search-overlay .res .k {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--clay);
}
.search-overlay .res .t {
  font-family: var(--serif); font-size: 17px; color: var(--ink); margin-top: 2px;
}
.search-overlay .res .a { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.search-overlay .res .arr { color: var(--ink-3); align-self: center; }
.search-overlay .nores {
  padding: 32px 22px; color: var(--ink-3);
  font-family: var(--serif); font-style: italic;
}
.search-overlay .footer-row {
  border-top: 1px solid var(--rule); padding: 12px 22px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
}

/* ── covers ──────────────────────────────────────────────── */
.cover {
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, var(--teal-deep) 0%, var(--ink) 100%);
  color: var(--paper); padding: 28px 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.cover::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 10%, oklch(0.78 0.13 85 / 0.40), transparent 55%),
    radial-gradient(circle at 8% 95%, var(--teal) 0%, transparent 60%);
}
.cover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 12px);
}
.cover > * { position: relative; }
.cover .vol-mono {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; opacity: 0.75;
}
.cover .ci-title {
  font-family: var(--serif); font-style: italic; font-size: 40px;
  line-height: 1.02; font-weight: 400; letter-spacing: -0.012em;
}
.cover .ci-foot {
  display: flex; justify-content: space-between; align-items: end;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; opacity: 0.78;
}
.cover .ci-foot .issn { display: grid; gap: 2px; text-align: right; }

/* ── editor avatar (initial circles) ─────────────────────── */
.avatar {
  width: 52px; height: 52px; flex-shrink: 0;
  background: var(--paper-3); display: grid; place-items: center;
  font-family: var(--serif); font-size: 19px; font-style: italic;
  color: var(--ink-2); border-radius: 50%;
  border: 1px solid var(--rule-2);
  position: relative; overflow: hidden;
}
.avatar.lg { width: 88px; height: 88px; font-size: 32px; }
.avatar.xl { width: 120px; height: 120px; font-size: 44px; }
.avatar.teal { background: var(--teal-soft); color: var(--teal-dark); border-color: var(--teal-tint); }
.avatar::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, oklch(1 0 0 / 0.18), transparent 50%);
}

/* ── status dots ─────────────────────────────────────────── */
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); display: inline-block; }
.status-dot.ok { background: var(--ok); }
.status-dot.warn { background: var(--warn); }
.status-dot.err { background: var(--err); }
.status-dot.teal { background: var(--teal); }

/* ── About page: normalize OJS-entered body content to the design prose ── */
/* The journal "about" text is pasted rich text using <h3><strong> for section
   headings; force it to the design template's .prose h2 typography. */
#about-body h2,
#about-body h3 {
  font-family: var(--serif); font-size: 30px; font-weight: 500;
  letter-spacing: -0.012em; margin: 2em 0 0.5em; color: var(--ink);
  border-bottom: 1px solid var(--rule); padding-bottom: 12px;
  font-style: normal; line-height: 1.2;
}
#about-body h2:first-child,
#about-body h3:first-child { margin-top: 0; }
#about-body h2 strong,
#about-body h3 strong,
#about-body h2 b,
#about-body h3 b {
  font-family: inherit; font-weight: inherit; color: inherit;
}
/* Body text, links, lists, tables and dividers come from the shared .prose
   rules (about-body also carries class="prose"). */

/* ── Issue page (AJDSI/current-issue.html): hero, TOC, meta bar ────── */
.issue-hero {
  display: grid; grid-template-columns: 360px 1fr;
  gap: 64px; padding: 56px 0 56px;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.issue-hero .vol-line {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-3);
}
.issue-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 0.98; letter-spacing: -0.025em;
  margin: 16px 0 0;
}
.issue-hero h1 em { font-style: italic; color: var(--teal-deep); }
.issue-hero .ctas { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.issue-hero .editorial-board-sig {
  margin-top: 24px; display: flex; gap: 12px; align-items: center;
  font-size: 13.5px; color: var(--ink-2);
}

.sect-header {
  margin: 56px 0 24px; display: flex; align-items: baseline; gap: 16px;
  border-bottom: 1px solid var(--ink); padding-bottom: 14px;
}
.sect-header h3 {
  font-family: var(--serif); font-size: 26px; font-weight: 500;
  font-style: italic; margin: 0; letter-spacing: -0.01em; flex: 1;
}
.sect-header .count {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
}
@media (max-width: 560px) {
  .sect-header { flex-wrap: wrap; }
  .sect-header h3 { flex: 1 1 100%; }
}

.article-card {
  display: grid; grid-template-columns: 120px 1fr 200px;
  gap: 32px; padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start; cursor: pointer; transition: background 0.18s;
}
.article-card:hover { background: var(--paper-2); }
.article-card .ar-cover {
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--teal-deep), var(--ink));
  position: relative; overflow: hidden;
}
.article-card .ar-cover::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 70% 30%, var(--teal) 0%, transparent 50%),
    radial-gradient(circle at 30% 80%, var(--gold) 0%, transparent 40%);
  opacity: 0.6;
}
.article-card .ar-cover::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, transparent 0 calc(100% - 1px), oklch(1 0 0 / 0.08) 0),
    linear-gradient(0deg, transparent 0 calc(100% - 1px), oklch(1 0 0 / 0.08) 0);
  background-size: 18px 18px;
}
.article-card .ar-cover .num {
  position: absolute; left: 8px; top: 8px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em;
  color: var(--paper); background: oklch(0 0 0 / 0.4);
  padding: 3px 5px; backdrop-filter: blur(4px);
}
.article-card .ar-section {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--clay); margin-bottom: 8px;
}
.article-card h4 {
  font-family: var(--serif); font-size: 24px; font-weight: 500;
  line-height: 1.18; letter-spacing: -0.012em; margin: 0 0 10px;
  text-wrap: balance;
}
.article-card:hover h4 { color: var(--teal-deep); }
.article-card .ar-authors { font-size: 13.5px; color: var(--ink-2); margin-bottom: 12px; line-height: 1.5; }
.article-card .ar-authors em { color: var(--ink-3); font-style: italic; }
.article-card .ar-abstract {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.55;
  border-top: 1px solid var(--rule); padding-top: 12px;
}
.article-card .ar-meta {
  text-align: right; display: grid; gap: 4px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-3);
}
.article-card .ar-meta .pages {
  font-family: var(--serif); font-style: italic; font-size: 22px;
  color: var(--ink); letter-spacing: -0.01em;
}
.article-card .ar-meta .row { display: flex; justify-content: flex-end; gap: 10px; align-items: center; }
/* "Download PDF" link — a proper small button everywhere it appears
   (homepage article rows, issue page article cards), not a tiny text link. */
.pdf {
  display: inline-flex; gap: 7px; align-items: center;
  font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: var(--teal-deep);
  border: 1px solid var(--teal-tint); background: var(--teal-soft);
  padding: 7px 12px; width: max-content; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.pdf:hover { background: var(--teal-soft); border-color: var(--teal-deep); }
.article-card .ar-meta .pdf { margin-top: 14px; margin-left: auto; }

.issue-meta-bar {
  background: var(--ink); color: var(--paper);
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.issue-meta-bar .b { padding: 24px; border-right: 1px solid oklch(0.92 0.01 80 / 0.12); }
.issue-meta-bar .b:last-child { border-right: 0; }
.issue-meta-bar .k {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: oklch(0.88 0.01 80 / 0.55);
}
.issue-meta-bar .v { font-family: var(--serif); font-size: 19px; margin-top: 8px; line-height: 1.2; }

@media (max-width: 980px) {
  .issue-hero { grid-template-columns: 1fr; }
  /* Put the metadata/PDF button directly under the cover thumbnail instead
     of at the bottom of the card, past the full title/authors/abstract.
     Cover+meta get their own explicit 2-row stack in column 1; the text
     wrapper (section+title+authors+abstract) spans both rows in column 2
     as a SINGLE grid item so its children keep flowing/spacing normally
     via their own margins, instead of each being pinned to a shared grid
     row whose height gets stretched to match the (taller) cover image. */
  .article-card {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
    gap: 0 32px;
  }
  .article-card .ar-cover           { grid-column: 1; grid-row: 1; }
  .article-card .ar-meta            { grid-column: 1; grid-row: 2; align-self: start; }
  .article-card > div:nth-child(2)  { grid-column: 2; grid-row: 1 / 3; }

  .article-card .ar-meta { text-align: left; margin-top: 14px; }
  .article-card .ar-meta .row { justify-content: flex-start; }
  .article-card .ar-meta .pages { font-size: 18px; }
  .article-card .ar-meta .pdf {
    margin-top: 10px; margin-left: 0; width: 100%;
    justify-content: center; white-space: normal; text-align: center;
    font-size: 11px; padding: 7px 6px;
  }
  /* Long abstracts push the metadata/PDF button far down the card;
     clamp to 2 lines so it stays close to the title on mobile. */
  .article-card .ar-abstract {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .issue-meta-bar { grid-template-columns: 1fr 1fr; }
  .issue-meta-bar .b { border-right: 1px solid oklch(0.92 0.01 80 / 0.12) !important; }
  .issue-meta-bar .b:nth-child(2n) { border-right: 0 !important; }
}

/* ── Issue page: normalize OJS-entered issue description to the design ── */
/* Issue descriptions are pasted rich text with inline font/size/justify
   styles; force the design's serif editorial typography and let it fill
   the full column width. */
.issue-hero .editorial { max-width: none; }
.issue-hero .editorial,
.issue-hero .editorial * {
  font-family: var(--serif) !important;
  font-size: 17px !important;
  line-height: 1.55 !important;
  color: var(--ink-2) !important;
  text-align: left !important;
  background: none !important;  text-transform: none !important;
  letter-spacing: normal !important;
}
.issue-hero .editorial p { margin: 0 0 0.85em !important; }
.issue-hero .editorial strong { color: var(--ink) !important; }


/* ── Issue page: breathing room around the hero ── */
.pkp_page_issue .issue-hero { margin-top: 28px; }
.pkp_page_issue .issue-meta-bar { margin-top: 36px; }
@media (max-width: 640px) {
  /* .issue-hero already carries 56px of its own top padding; the extra
     margin above just doubles the dead space before the cover on mobile. */
  .pkp_page_issue .issue-hero { margin-top: 0; }
  .issue-hero { padding: 28px 0 40px; }
}

/* ── Article page: normalize OJS-entered abstract to the design prose ── */
.art-content .abstract-body,
.art-content .abstract-body * {
  font-family: var(--serif) !important;
  font-size: 18px !important;
  line-height: 1.62 !important;
  color: var(--ink-2) !important;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  background: none !important;
}
.art-content .abstract-body p { margin: 0 0 1.25em !important; }
.art-content .abstract-body strong { color: var(--ink) !important; }
.art-content .abstract-body > p:first-child {
  font-size: 21px !important; line-height: 1.4 !important; color: var(--ink) !important;
}

/* ── Article hero: let the title and author line span the full width ── */
.art-hero h1 { max-width: none; }
.art-hero .authors { max-width: none; }

/* ════════════════════════════════════════════════════════════════════════
   Submissions page — designed long-form guidelines
   Styles the OJS-entered author guidelines (numbered sections, lists, the
   Article-Types table, dividers) into a cool, polished, on-brand layout.
   ════════════════════════════════════════════════════════════════════════ */
.prose {
  font-family: var(--serif); color: var(--ink-2);
}
.prose > p,
.prose li {
  font-family: var(--serif) !important;
  font-size: 16px !important; line-height: 1.66 !important; color: var(--ink-2);
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose a {
  color: var(--teal-deep); border-bottom: 1px solid var(--teal-tint);
  text-decoration: none; word-break: break-word;
}
.prose a:hover { color: var(--teal-dark); border-color: var(--teal-deep); }

/* Section headers (theme-added: Checklist / Author Guidelines / Copyright / Privacy) */
.prose h2 {
  font-family: var(--serif); font-size: 30px; font-weight: 500;
  letter-spacing: -0.012em; margin: 2.4em 0 0.7em; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 12px; line-height: 1.15;
}
.prose h2:first-child { margin-top: 0; }

/* Numbered subsections from the OJS guidelines (e.g. "3. Article Types…") */
.prose h3 {
  font-family: var(--serif); font-size: 22px; font-weight: 500; font-style: normal;
  letter-spacing: -0.01em; line-height: 1.2; color: var(--ink);
  margin: 1.9em 0 0.5em; padding-left: 16px; position: relative;
}
.prose h3::before {
  content: ""; position: absolute; left: 0; top: 0.18em; bottom: 0.18em;
  width: 3px; background: var(--teal); border-radius: 2px;
}
.prose h4 {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-deep);
  margin: 1.5em 0 0.5em;
}
.prose h2 strong, .prose h3 strong, .prose h4 strong {
  font-family: inherit; font-weight: inherit; color: inherit;
}

/* Elegant section dividers */
.prose hr {
  border: 0; height: 1px; margin: 2.4em 0;
  background: linear-gradient(90deg, var(--rule) 0%, var(--rule) 70%, transparent 100%);
  position: relative;
}
.prose hr::after {
  content: ""; position: absolute; left: 0; top: -2px;
  width: 28px; height: 3px; background: var(--teal);
}

/* Custom list markers */
.prose ul { list-style: none; padding-left: 22px; margin: 0.8em 0; }
.prose ul > li { position: relative; padding-left: 8px; margin: 0.45em 0; }
.prose ul > li::before {
  content: ""; position: absolute; left: -14px; top: 0.7em;
  width: 6px; height: 6px; background: var(--teal); border-radius: 50%;
}
.prose ul ul { margin: 0.4em 0; }
.prose ul ul > li::before {
  background: transparent; border: 1px solid var(--teal-deep); width: 5px; height: 5px;
}
.prose ol { padding-left: 22px; }
.prose ol > li { margin: 0.45em 0; padding-left: 6px; }

/* ── Designed tables (e.g. Article Types & Word Limits) ── */
.prose [class*="_tableContainer"],
.prose [class*="_tableWrapper"] {
  width: 100% !important; max-width: 100% !important; min-width: 0 !important;
  overflow-x: auto; margin: 1.4em 0;
  border: 1px solid var(--rule); border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}
.prose table {
  width: 100% !important; min-width: 520px !important; max-width: none !important;
  border-collapse: collapse; font-family: var(--sans); margin: 0;
  background: var(--paper);
}
/* standalone tables (no OJS wrapper) get their own frame */
.prose > table {
  border: 1px solid var(--rule); border-radius: 8px; overflow: hidden;
  margin: 1.4em 0;
}
.prose thead th {
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-align: left; padding: 13px 16px; vertical-align: middle;
  border: 0;
}
.prose thead th strong { color: var(--paper); font-weight: 600; }
.prose tbody td {
  padding: 12px 16px; font-size: 14px; color: var(--ink-2);
  border-top: 1px solid var(--rule); vertical-align: top; line-height: 1.5;
}
.prose tbody tr:nth-child(even) { background: var(--paper-2); }
.prose tbody tr:hover { background: var(--teal-soft, oklch(0.95 0.03 195)); }
.prose tbody td:first-child {
  font-family: var(--serif); font-size: 15px; font-weight: 500; color: var(--ink);
}
/* numeric-looking cells (word limits) in serif italic for a designed feel */
.prose tbody td:nth-child(2) {
  font-family: var(--serif); font-style: italic; color: var(--ink); font-size: 15px;
}

/* Checklist box keeps its sans body */
.prose .checklist .t { font-family: var(--sans) !important; font-size: 14.5px !important; }
.prose .checklist p { font-family: var(--sans) !important; }

/* ── Submissions page: process flow / manuscript types / checklist ── */
.timeline-flow {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
}
.timeline-flow .step { padding: 32px 24px; border-right: 1px solid var(--rule); position: relative; }
.timeline-flow .step:last-child { border-right: 0; }
.timeline-flow .step .n {
  font-family: var(--serif); font-style: italic; font-size: 38px;
  color: var(--teal-deep); letter-spacing: -0.02em;
}
.timeline-flow .step h4 {
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  margin: 8px 0 8px; letter-spacing: 0.005em;
}
.timeline-flow .step p { font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.5; }
.timeline-flow .step .t {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 12px;
}

.types-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
}
.types-grid .t { padding: 32px; border-right: 1px solid var(--rule); }
.types-grid .t:last-child { border-right: 0; }
.types-grid .t .lab {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal-deep);
}
.types-grid .t h4 {
  font-family: var(--serif); font-size: 24px; font-weight: 500;
  margin: 10px 0 12px; line-height: 1.15; letter-spacing: -0.01em;
}
.types-grid .t .specs {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 12px; color: var(--ink-2);
  display: grid; gap: 6px;
}
.types-grid .t .specs .spec { display: flex; justify-content: space-between; }
.types-grid .t .specs .k { color: var(--ink-3); letter-spacing: 0.06em; }

.checklist {
  display: grid; gap: 12px;
  background: var(--paper-2); padding: 32px;
  border-left: 3px solid var(--teal);
}
.checklist .ci { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; }
.checklist .ci .box {
  width: 18px; height: 18px; border: 1px solid var(--rule-2);
  margin-top: 2px; position: relative; background: var(--paper);
}
.checklist .ci .box::after {
  content: ""; position: absolute; left: 5px; top: 1px;
  width: 5px; height: 10px; border: solid var(--teal);
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.checklist .ci .t { font-size: 14.5px; color: var(--ink); line-height: 1.5; }
.checklist .ci .t strong { font-weight: 600; }

@media (max-width: 980px) {
  .timeline-flow { grid-template-columns: 1fr 1fr; }
  .timeline-flow .step:nth-child(2n) { border-right: 0; }
  .timeline-flow .step { border-bottom: 1px solid var(--rule); }
  .types-grid { grid-template-columns: 1fr; }
  .types-grid .t { border-right: 0; border-bottom: 1px solid var(--rule); }
}

/* ════════════════════════════════════════════════════════════════════════
   Announcements page (AJDSI/announcements.html) — filter row, card grid,
   and highlighted feature announcement.
   ════════════════════════════════════════════════════════════════════════ */
.filter-row {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  padding: 20px 0; border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}
.filter-row .label { color: var(--ink-3); }
.filter-row .chip {
  padding: 8px 14px; border: 1px solid var(--rule-2);
  color: var(--ink-2); cursor: pointer; transition: all 0.15s;
  font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; font-size: 11px;
  background: transparent;
}
.filter-row .chip:hover { color: var(--ink); border-color: var(--ink); }
.filter-row .chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.announce-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--ink);
}
.ann {
  padding: 36px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  cursor: pointer; transition: background 0.18s;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 280px;
}
.ann:nth-child(2n) { border-right: 0; }
.ann:hover { background: var(--paper-2); }
.ann.feature {
  grid-column: 1 / -1;
  background: var(--ink); color: var(--paper);
  padding: 56px 48px;
  min-height: 360px; position: relative; overflow: hidden;
}
.ann.feature::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 10%, oklch(0.78 0.13 85 / 0.30), transparent 50%),
    radial-gradient(circle at 8% 95%, var(--teal-deep), transparent 60%);
  pointer-events: none;
}
.ann.feature > * { position: relative; }
.ann .stamp {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.ann .stamp .badge {
  background: var(--teal); color: var(--paper); padding: 4px 8px;
}
.ann .stamp .date { color: var(--ink-3); }
.ann.feature .stamp .badge { background: var(--gold); color: var(--ink); }
.ann.feature .stamp .date { color: oklch(0.88 0.01 80 / 0.7); }
.ann h3 {
  font-family: var(--serif); font-size: 28px; font-weight: 500;
  line-height: 1.15; letter-spacing: -0.012em; margin: 0;
  text-wrap: balance; color: inherit;
}
.ann.feature h3 { font-size: 44px; max-width: 24ch; line-height: 1.05; }
.ann h3 em { font-style: italic; color: var(--teal-deep); }
.ann.feature h3 em { color: var(--gold); }
.ann h3 a { color: inherit; text-decoration: none; border: 0; }
.ann h3 a:hover { color: var(--teal-deep); }
.ann.feature h3 a:hover { color: var(--gold); }
.ann p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin: 0; flex: 1; }
.ann.feature p { color: oklch(0.88 0.01 80 / 0.85); font-size: 16px; max-width: 60ch; }
.ann .foot {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 12px; padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3);
  gap: 16px;
}
.ann.feature .foot {
  border-top: 1px solid oklch(0.92 0.01 80 / 0.18);
  color: oklch(0.88 0.01 80 / 0.6);
}
.ann .read {
  color: var(--teal-deep); border-bottom: 1px solid var(--teal-tint); padding-bottom: 2px;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.02em; text-transform: none;
  display: inline-flex; gap: 6px; align-items: center; white-space: nowrap;
}
.ann.feature .read {
  color: var(--gold); border-bottom: 1px solid oklch(0.78 0.13 85 / 0.4);
}
@media (max-width: 720px) {
  .announce-grid { grid-template-columns: 1fr; }
  .ann { border-right: 0; }
  .ann.feature { padding: 40px 28px; }
  .ann.feature h3 { font-size: 32px; }
}

/* ── Single announcement: expiry banner ─────────────────── */
.expiry-banner {
  display: flex; align-items: center; gap: 12px;
  margin: 28px 0 8px;
  padding: 14px 20px;
  border: 1px solid var(--teal-tint);
  border-left: 4px solid var(--teal);
  background: var(--teal-tint);
  font-family: var(--sans); font-size: 14.5px; color: var(--teal-dark);
}
.expiry-banner .eb-ico { font-size: 16px; line-height: 1; }
.expiry-banner .eb-txt { letter-spacing: 0.01em; }
.expiry-banner.soon {
  border-color: oklch(0.78 0.13 85 / 0.45);
  border-left-color: var(--gold);
  background: oklch(0.78 0.13 85 / 0.12);
  color: var(--ink);
}
.expiry-banner.expired {
  border-color: var(--rule-2);
  border-left-color: var(--ink-3);
  background: var(--paper-2);
  color: var(--ink-3);
}

/* ── Single announcement: related grid ──────────────────── */
.related-ann { padding: 56px 0 80px; border-top: 1px solid var(--rule); margin-top: 56px; }
.related-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 4px; flex-wrap: wrap;
}
.related-head h2 {
  font-family: var(--serif); font-weight: 500; font-size: 30px;
  letter-spacing: -0.012em; margin: 0;
}
.related-grid .ann { min-height: 220px; }
@media (max-width: 720px) {
  .related-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ── Contact page ─────────────────────────────────────── */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
}
.contact-layout .channels { padding: 56px; background: var(--paper); }
.contact-layout .form-pane {
  padding: 56px; background: var(--paper-2);
  border-left: 1px solid var(--rule);
}
.channel {
  display: grid; grid-template-columns: 48px 1fr;
  gap: 16px; padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.channel:last-child { border-bottom: 0; }
.channel .num {
  font-family: var(--serif); font-style: italic; font-size: 28px;
  color: var(--teal-deep); letter-spacing: -0.01em;
}
.channel h4 {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  margin: 0 0 4px; color: var(--ink); letter-spacing: 0.01em;
}
.channel .desc { font-size: 13.5px; color: var(--ink-2); margin: 0 0 8px; line-height: 1.5; }
.channel .value {
  font-family: var(--mono); font-size: 14px;
  color: var(--ink); display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.channel .value a { border-bottom: 1px solid var(--rule-2); color: var(--teal-deep); }
.channel .value .badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 3px 8px;
  background: var(--paper-2); color: var(--ink-3); border: 1px solid var(--rule);
}
.form-pane h3 {
  font-family: var(--serif); font-size: 32px; font-weight: 400;
  letter-spacing: -0.02em; margin: 0 0 8px;
}
.form-pane h3 em { font-style: italic; color: var(--teal-deep); }
.form-pane .lede {
  font-family: var(--serif); font-size: 16px; color: var(--ink-2);
  margin: 0 0 28px; line-height: 1.5;
}
.form-pane .alert { margin-bottom: 24px; }
@media (max-width: 980px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-layout .channels, .contact-layout .form-pane { padding: 40px 24px; }
  .contact-layout .form-pane { border-left: 0; border-top: 1px solid var(--rule); }
}

/* ── Contact map strip ────────────────────────────────── */
.map-strip { background: var(--ink); color: var(--paper); overflow: hidden; position: relative; }
.map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 360px; }
.map-grid .visual { position: relative; background: var(--teal-dark); }
.map-grid .visual iframe {
  width: 100%; height: 100%; min-height: 360px; border: 0; display: block;
  /* tone the bright OSM tiles toward the dark teal design */
  filter: grayscale(0.4) contrast(0.92) brightness(0.82) sepia(0.18) hue-rotate(120deg) saturate(0.85);
}
.map-grid .visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 60% 70%, transparent 0%, oklch(0.30 0.05 180 / 0.35) 70%),
    linear-gradient(135deg, oklch(0.30 0.04 180 / 0.25), oklch(0.20 0.02 180 / 0.45));
  mix-blend-mode: multiply;
}
.map-grid .visual .pin {
  position: absolute; top: 50%; left: 50%;
  width: 16px; height: 16px;
  background: var(--gold); border-radius: 50%;
  box-shadow: 0 0 0 6px oklch(0.78 0.13 85 / 0.3), 0 0 0 14px oklch(0.78 0.13 85 / 0.15);
  transform: translate(-50%, -50%);
  animation: pinPulse 2.4s ease-in-out infinite; z-index: 2;
}
@keyframes pinPulse {
  0%, 100% { box-shadow: 0 0 0 6px oklch(0.78 0.13 85 / 0.3), 0 0 0 14px oklch(0.78 0.13 85 / 0.15); }
  50% { box-shadow: 0 0 0 10px oklch(0.78 0.13 85 / 0.3), 0 0 0 22px oklch(0.78 0.13 85 / 0); }
}
.map-grid .meta {
  padding: 48px; display: flex; flex-direction: column; justify-content: center;
}
.map-grid .meta .eyebrow { color: oklch(0.88 0.01 80 / 0.55); margin-bottom: 6px; }
.map-grid .meta h4 {
  font-family: var(--serif); font-style: italic; font-size: 32px; font-weight: 400;
  margin: 0 0 16px; letter-spacing: -0.01em; color: var(--paper);
}
.map-grid .meta p { color: oklch(0.88 0.01 80 / 0.85); margin: 0 0 8px; font-size: 16px; }
.map-grid .meta .mono {
  margin-top: 22px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: oklch(0.88 0.01 80 / 0.55);
  display: grid; gap: 4px;
}
@media (max-width: 980px) {
  .map-grid { grid-template-columns: 1fr; }
  .map-grid .meta { padding: 36px 24px; }
}

/* ════════════════════════════════════════════════════════════════
   MOBILE REFINEMENTS (AJDSI) — overrides loaded after output.css.
   Goal: nothing overflows the viewport, full-width stacked blocks,
   tidy masthead (logo left · search+menu right; Submit → hamburger).
   ═══════════════════════════════════════════════════════════════ */

/* Hard stop on horizontal overflow anywhere on small screens.
   `overflow-x: hidden` here would silently break `position: sticky` on the
   masthead (any overflow value other than visible on an ancestor kills
   sticky positioning) — `clip` contains overflow without that side effect. */
@media (max-width: 980px) {
  html, body { max-width: 100%; overflow-x: clip; }
  img, svg, table, pre, code { max-width: 100%; }
  /* `a` deliberately excluded: short nav-style links (e.g. footer "Privacy",
     "Accessibility") were being broken mid-word ("PRIVAC/Y") whenever their
     flex row got tight. Long unbroken URLs get their own targeted rules
     elsewhere (e.g. .metadata-table code) instead of this blanket one. */
  h1, h2, h3, h4, p, li { overflow-wrap: anywhere; word-break: normal; }
}

/* ── Masthead ─────────────────────────────────────────────────── */
@media (max-width: 980px) {
  /* Logo spreads on the left; only the search + hamburger sit right. */
  .mast-inner { grid-template-columns: 1fr auto; gap: 14px; }
  /* The "Submit" header button moves into the hamburger menu instead. */
  .mast-actions .btn { display: none; }
  .mast-actions { gap: 8px; }
}
@media (max-width: 360px) {
  /* Only on very narrow screens, drop the wordmark subtitle for room. */
  .logo-text .sub { display: none; }
  .logo-text .full { font-size: 16px; }
}

/* Submit CTA inside the mobile menu (added by chrome.js). */
#mobile-menu .btn.primary.block {
  width: 100%; justify-content: center; font-size: 15px;
}

/* ── Homepage hero CTAs: side-by-side, not stacked ────────────── */
@media (max-width: 640px) {
  .hero-ctas { flex-wrap: nowrap; gap: 10px; }
  .hero-ctas .btn {
    flex: 1 1 0; min-width: 0; justify-content: center;
    padding-left: 10px; padding-right: 10px; font-size: 12.5px;
    /* CTA labels are theme-option text and vary in length per page
       (About/Submissions guidelines links run longer than the homepage's);
       nowrap was clipping the longer ones, so allow a wrap instead. */
    white-space: normal; text-align: center; line-height: 1.3;
  }
  /* Hero's issue-cover artwork is a duplicate of the one already shown in
     the Current Issue section below — on phones it's just dead weight
     before the actual content. Cover + "Now reading / N articles" label are
     the only two things in .hero-side, so drop the whole aside (the
     Current Issue section's own cover stays — that one's kept). */
  .hero-side { display: none !important; }
  /* The fixed 60px/auto side columns left only a ~130px sliver for the
     title/authors text, reading as huge dead margins on both sides. */
  .article-row {
    grid-template-columns: 32px 1fr; gap: 6px 14px; padding: 18px 0;
  }
  .article-row .ar-title { font-size: 19px; }
  /* Page range moves to sit beside the Download PDF button instead of its
     own row (which .ar-side used to force it into). */
  .article-row .ar-side { display: none; }
  .article-row .ar-meta .pages-inline {
    display: inline-flex; font-family: var(--serif); font-style: italic;
    font-size: 14px; color: var(--ink);
  }
  .article-row .ar-meta .pdf { font-size: 13px; }
}

/* ── Impact stats: full-width stacked, no overflow ───────────────
   The compiled grid (repeat(4,1fr) → 1fr 1fr) crams the 68px serif
   numbers into narrow columns and pushes past the viewport edge. */
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 18px; }
  .stat .num { font-size: 44px; }
  .stat .num .suf { font-size: 20px; }
  .topnote { top: 12px; right: 14px; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; }
  .stat .num { font-size: 48px; }
}

/* ── Information pages: two-column + metadata table on mobile ─────
   The prose/side-nav grid kept desktop width because long OAI URLs in
   <code> set a min-content wider than the viewport, so the column (and
   page) ballooned and got clipped. Force wrapping + stack the rows. */
@media (max-width: 980px) {
  .two-col { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .two-col aside { position: static; }
}
@media (max-width: 720px) {
  .prose code, .metadata-table code { word-break: break-all; }
  .metadata-table .row {
    grid-template-columns: 1fr; gap: 4px; padding: 14px 0;
  }
  .metadata-table .row .v { overflow-wrap: anywhere; }
  .metadata-table .row .v code { display: inline-block; max-width: 100%; }
}

/* ════════════════════════════════════════════════════════════════════
   Archive page (AJDSI/archive.html) — controls, grid/list view, year bands
   ════════════════════════════════════════════════════════════════════ */
.archive-controls {
  display: grid; grid-template-columns: 1fr auto auto auto;
  gap: 16px; padding: 24px 0;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
  align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}
.archive-controls .count { color: var(--ink-3); }
.archive-controls .seg { display: inline-flex; border: 1px solid var(--rule-2); }
.archive-controls .seg button {
  background: transparent; border: 0; padding: 8px 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-2); cursor: pointer;
  border-right: 1px solid var(--rule-2);
}
.archive-controls .seg button:last-child { border-right: 0; }
.archive-controls .seg button.on { background: var(--ink); color: var(--paper); }
.archive-controls select {
  width: auto; padding: 8px 28px 8px 12px; border: 1px solid var(--rule-2);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%23333' d='M4 5L0 0h8z'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
}
/* Leading icons (calendar / tag) so the two filters read at a glance
   instead of as two identical unlabeled boxes. */
#year-filter {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%23333' d='M4 5L0 0h8z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23767267' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-position: right 10px center, left 10px center;
  background-repeat: no-repeat, no-repeat;
  padding-left: 30px;
}
#section-filter {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%23333' d='M4 5L0 0h8z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23767267' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41 13 21l-9-9V3h9l9 9.41a2 2 0 0 1 0 2.83z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E");
  background-position: right 10px center, left 10px center;
  background-repeat: no-repeat, no-repeat;
  padding-left: 30px;
}

.arch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 48px 0; }
.arch-card { cursor: pointer; transition: transform 0.18s; }
.arch-card:hover { transform: translateY(-4px); }
.arch-card .cover { aspect-ratio: 3 / 4; padding: 24px 22px; }
.arch-card .cover .ci-title { font-size: 32px; }
.arch-card .meta {
  margin-top: 16px; display: grid; grid-template-columns: 1fr auto; gap: 8px;
  align-items: baseline;
}
.arch-card .meta .v { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.arch-card .meta .v em { font-style: italic; color: var(--teal-deep); }
.arch-card .meta .pp { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; }
.arch-card .desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin-top: 6px; }
.arch-card .stats {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule);
  display: flex; gap: 16px; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
}
.arch-card.upcoming { opacity: 0.55; pointer-events: none; }
.arch-card.upcoming .cover {
  background: repeating-linear-gradient(45deg, var(--paper-3) 0 12px, var(--paper-2) 12px 24px);
  color: var(--ink-3);
}
.arch-card.upcoming .cover::before, .arch-card.upcoming .cover::after { display: none; }
.arch-card.upcoming .cover .ci-title { color: var(--ink-3); }
.arch-card.upcoming .meta .v em { color: var(--ink-3); }

.arch-list { padding: 48px 0; display: none; }
.arch-list-row {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 32px;
  padding: 24px 0; border-bottom: 1px solid var(--rule);
  align-items: center; cursor: pointer;
}
.arch-list-row .vol-mono { font-family: var(--serif); font-style: italic; font-size: 32px; color: var(--teal-deep); letter-spacing: -0.01em; }
.arch-list-row h4 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin: 0; letter-spacing: -0.012em; }
.arch-list-row .ds { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.arch-list-row .right {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-3); display: grid; gap: 4px; text-align: right;
}
body.view-list .arch-grid { display: none; }
body.view-list .arch-list { display: block; }

.year-band {
  border-top: 1px solid var(--ink); margin-top: 32px;
  padding: 32px 0; display: grid; grid-template-columns: 200px 1fr; gap: 32px;
  align-items: baseline;
}
.year-band h2 { font-family: var(--serif); font-size: 64px; font-weight: 500; letter-spacing: -0.03em; margin: 0; line-height: 1; }
.year-band .info {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
}

@media (max-width: 980px) {
  .arch-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .archive-controls { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  /* Keep two columns on phones too, per request, rather than dropping to one. */
  .arch-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .arch-card .cover .ci-title { font-size: 22px; }
  .arch-card .meta .v { font-size: 17px; }
  .year-band { grid-template-columns: 1fr; gap: 8px; }

  /* List view: the 80px/1fr/auto grid squeezed the title column down to
     almost nothing once the right-hand meta claimed its "auto" width,
     wrapping titles one letter per line. Stack everything instead. */
  .arch-list-row {
    grid-template-columns: 1fr; gap: 6px; padding: 20px 0;
  }
  .arch-list-row .vol-mono { font-size: 22px; }
  .arch-list-row h4 { font-size: 18px; }
  .arch-list-row .right {
    text-align: left; display: flex; flex-wrap: wrap; gap: 6px 14px;
    margin-top: 4px;
  }
}
@media (max-width: 480px) {
  /* "1 issue · 4 articles total" wraps mid-phrase in a half-width cell.
     Rebuild the whole controls row as: count (full width), grid/list
     toggle + filters as a compact icon-led row instead of stacked
     full-width <select> boxes. */
  .archive-controls {
    grid-template-columns: 1fr; gap: 12px;
  }
  .archive-controls .count { grid-column: 1 / -1; }
  .archive-controls .seg { grid-column: 1 / -1; display: flex; }
  .archive-controls .seg button { flex: 1; text-align: center; }
  .archive-controls .filters {
    grid-column: 1 / -1; display: grid;
    grid-template-columns: 1fr 1fr; gap: 10px;
  }
  .archive-controls select { width: 100%; }
}

/* ════════════════════════════════════════════════════════════════════
   Article page (AJDSI/article.html) — hero, meta bar, 3-col body, rail, modal
   ════════════════════════════════════════════════════════════════════ */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: transparent; z-index: 50; }
.progress .bar { height: 100%; width: 0; background: var(--teal); transition: width 0.05s linear; }

.art-hero { padding: 56px 0 32px; border-bottom: 1px solid var(--rule); }
.art-hero .crumb {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
  display: flex; gap: 10px; flex-wrap: wrap;
}
.art-hero .crumb .sep { opacity: 0.4; }
.art-hero .crumb .sec { color: var(--clay); }
.art-hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.05; letter-spacing: -0.022em;
  margin: 18px 0 0; max-width: 28ch; text-wrap: balance;
}
.art-hero .authors { font-family: var(--serif); font-size: 18px; line-height: 1.45; color: var(--ink); margin-top: 28px; max-width: 60ch; }
.art-hero .authors .a { white-space: nowrap; }
.art-hero .authors .a sup { color: var(--teal-deep); font-family: var(--mono); font-size: 10px; margin-left: 1px; }
.art-hero .affiliations { margin-top: 18px; display: grid; gap: 4px; font-size: 13px; color: var(--ink-3); }
.art-hero .affiliations sup { color: var(--teal-deep); font-family: var(--mono); margin-right: 6px; }

.art-meta-bar {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.art-meta-bar .b { padding: 18px 24px; border-right: 1px solid var(--rule); }
.art-meta-bar .b:last-child { border-right: 0; }
.art-meta-bar .k {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
}
.art-meta-bar .v { font-family: var(--serif); font-size: 18px; margin-top: 4px; }
.art-meta-bar .v .mono { font-family: var(--mono); font-size: 14px; color: var(--ink); }

.art-body {
  display: grid; grid-template-columns: 240px minmax(0, 1fr) 280px;
  gap: 56px; padding: 56px 0 80px;
}
.art-body .left, .art-body .right { position: sticky; top: 96px; align-self: start; }
.art-body .toc h6 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px;
}
.art-body .toc ul {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 4px;
  border-left: 1px solid var(--rule); padding-left: 18px;
}
.art-body .toc a {
  color: var(--ink-2); padding: 6px 0; display: block; font-size: 13.5px;
  position: relative; line-height: 1.4;
}
.art-body .toc a::before {
  content: ""; position: absolute; left: -19px; top: 14px;
  width: 6px; height: 1px; background: var(--rule-2);
}
.art-body .toc a.on, .art-body .toc a:hover { color: var(--teal-deep); }
.art-body .toc a.on::before { background: var(--teal); width: 12px; }

.art-content { font-family: var(--serif); font-size: 18px; line-height: 1.62; color: var(--ink-2); max-width: 720px; }
.art-content > p { margin: 0 0 1.25em; }
.art-content h2 {
  font-family: var(--serif); font-size: 26px; font-weight: 500;
  color: var(--ink); margin: 2.4em 0 0.4em;
  border-bottom: 1px solid var(--rule); padding-bottom: 8px;
  letter-spacing: -0.012em;
}
.art-content h3 { font-family: var(--serif); font-size: 21px; font-weight: 500; margin: 1.8em 0 0.3em; font-style: italic; color: var(--ink); }
.art-content .lede { font-size: 21px; color: var(--ink); margin: 0 0 1.4em; line-height: 1.4; }
.art-content blockquote {
  margin: 1.4em 0; padding: 4px 0 4px 24px;
  border-left: 3px solid var(--teal); font-style: italic; color: var(--ink);
}
.art-content ul { padding-left: 22px; }
.art-content figure { margin: 2em 0; padding: 0; }
.art-content figure .fig-placeholder {
  aspect-ratio: 16/9; background: var(--paper-2);
  background-image: repeating-linear-gradient(45deg, transparent 0 14px, var(--paper-3) 14px 15px);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  color: var(--ink-3); font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.art-content figure figcaption { font-family: var(--sans); font-size: 13px; color: var(--ink-3); margin-top: 12px; line-height: 1.5; }
.art-content figure figcaption strong { color: var(--ink); font-weight: 600; }
.art-content .ref-list { list-style: none; padding: 0; margin: 0; counter-reset: ref; font-size: 14px; line-height: 1.55; }
.art-content .ref-list li { padding: 12px 0 12px 36px; border-bottom: 1px solid var(--rule); position: relative; color: var(--ink-2); }
.art-content .ref-list li::before {
  counter-increment: ref; content: "[" counter(ref) "]";
  position: absolute; left: 0; top: 12px;
  font-family: var(--mono); font-size: 12px; color: var(--teal-deep);
  letter-spacing: 0.04em;
}

.art-rail { display: grid; gap: 24px; font-size: 13.5px; }
.rail-card { border-left: 3px solid var(--teal); padding: 18px 20px; background: var(--paper-2); }
.rail-card h6 {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px;
}
.rail-stats { display: grid; gap: 10px; }
.rail-stats .s { display: flex; justify-content: space-between; align-items: baseline; }
.rail-stats .s .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); }
.rail-stats .s .v { font-family: var(--serif); font-size: 19px; color: var(--ink); font-weight: 500; }
.rail-actions { display: grid; gap: 8px; }
.rail-actions .btn { padding: 10px 14px; font-size: 13px; }

.keyword-row { display: flex; flex-wrap: wrap; gap: 6px; }
.keyword-row .kw {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  padding: 4px 8px; background: var(--paper); border: 1px solid var(--rule-2);
  color: var(--ink-2); text-transform: lowercase;
}

.modal {
  position: fixed; inset: 0; background: oklch(0.18 0.02 240 / 0.55);
  backdrop-filter: blur(6px); z-index: 80;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal.open { display: flex; }
.modal .card { background: var(--paper); border: 1px solid var(--ink); width: min(640px, 100%); padding: 32px; }
.modal .seg { display: flex; border: 1px solid var(--rule-2); margin-bottom: 18px; }
.modal .seg button {
  flex: 1; background: transparent; border: 0; padding: 10px 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-2); cursor: pointer;
  border-right: 1px solid var(--rule-2);
}
.modal .seg button:last-child { border-right: 0; }
.modal .seg button.on { background: var(--ink); color: var(--paper); }
.modal pre {
  background: var(--paper-2); border: 1px solid var(--rule); padding: 16px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6;
  color: var(--ink); white-space: pre-wrap; margin: 0 0 14px;
}
.modal .actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; }

@media (max-width: 1180px) {
  .art-body { grid-template-columns: 1fr 280px; }
  .art-body .left { display: none; }
}
@media (max-width: 980px) {
  .art-meta-bar { grid-template-columns: 1fr 1fr; }
  .art-meta-bar .b { border-right: 1px solid var(--rule) !important; border-bottom: 1px solid var(--rule); }
  .art-meta-bar .b:nth-child(2n) { border-right: 0 !important; }
  .art-body { grid-template-columns: 1fr; }
  .art-body .right { position: static; }
}

/* ════════════════════════════════════════════════════════════════════
   Search page (AJDSI/search.html) — hero, big input, facets, results
   ════════════════════════════════════════════════════════════════════ */
.search-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--ink); }
.search-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 0.98; letter-spacing: -0.025em;
  margin: 18px 0 28px; max-width: 22ch;
}
.search-hero h1 em { font-style: italic; color: var(--teal-deep); }

.big-input {
  display: flex; align-items: center;
  border: 1px solid var(--ink); background: var(--paper);
  padding: 8px 8px 8px 22px; gap: 10px; max-width: 920px;
}
.big-input input {
  flex: 1; background: transparent; border: 0; outline: 0;
  font-family: var(--serif); font-size: 24px; color: var(--ink);
  padding: 16px 0;
}
.big-input input::placeholder { color: var(--ink-3); }
.big-input button.go {
  background: var(--ink); color: var(--paper);
  border: 0; padding: 14px 22px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em; cursor: pointer;
}
.big-input button.go:hover { background: var(--teal-deep); }
@media (max-width: 560px) {
  /* The serif input font + full "Search →" button don't fit one row at
     phone widths — the input was being squeezed to a sliver. */
  .big-input { flex-wrap: wrap; padding: 8px 14px; }
  .big-input input { flex: 1 1 100%; order: 1; font-size: 18px; padding: 10px 0; width: 100%; }
  .big-input button.go { order: 2; flex: 1 1 100%; text-align: center; padding: 12px; }
  .big-input > span:first-child { order: 0; }
}

.hints {
  margin-top: 18px; display: flex; gap: 22px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
}

.search-body { display: grid; grid-template-columns: 260px 1fr; gap: 56px; padding: 56px 0 80px; }
.facets { font-size: 14px; }
.facets h6 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3); margin: 24px 0 12px;
}
.facets h6:first-child { margin-top: 0; }

.results-header {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 16px; border-bottom: 1px solid var(--ink); margin-bottom: 24px;
}
.results-header h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin: 0; letter-spacing: -0.01em; }
.results-header h3 em { font-style: italic; color: var(--teal-deep); }

.no-results {
  padding: 56px 0; text-align: center;
  color: var(--ink-3); font-family: var(--serif); font-style: italic; font-size: 22px;
}

@media (max-width: 980px) {
  .search-body { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════════
   Editorial masthead (AJDSI/editorial-masthead.html) — portraits, board grid
   (page-specific has-photo/links/open-roles-em overrides live inline in
   editorialMasthead.tpl's own <style> block, not duplicated here)
   ════════════════════════════════════════════════════════════════════ */
.portrait {
  aspect-ratio: 1 / 1; width: 100%;
  background: linear-gradient(155deg, var(--teal-deep), var(--ink) 90%);
  position: relative; overflow: hidden; color: var(--paper);
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 16px;
}
.portrait::before {
  content: ""; position: absolute; left: 50%; bottom: -30%; width: 140%; height: 70%;
  background: oklch(1 0 0 / 0.08); border-radius: 50% 50% 0 0 / 80% 80% 0 0;
  transform: translateX(-50%);
}
.portrait::after {
  content: ""; position: absolute; left: 50%; bottom: 38%; width: 40%; height: 40%;
  background: oklch(1 0 0 / 0.10); border-radius: 50%;
  transform: translateX(-50%);
}
.portrait .initial {
  position: relative; z-index: 1;
  font-family: var(--serif); font-style: italic; font-size: 22px;
  background: oklch(1 0 0 / 0.12); backdrop-filter: blur(6px);
  padding: 4px 10px; border: 1px solid oklch(1 0 0 / 0.15); letter-spacing: 0.05em;
}
.portrait.empty {
  background: repeating-linear-gradient(45deg, var(--paper-3) 0 8px, var(--paper-2) 8px 16px);
  color: var(--ink-3);
}
.portrait.empty::before, .portrait.empty::after { background: oklch(0 0 0 / 0.04); }
.portrait.empty .initial { background: var(--paper); color: var(--ink-3); border-color: var(--rule-2); }
.portrait.gold { background: linear-gradient(155deg, var(--gold), var(--rust) 90%); }
.portrait.clay { background: linear-gradient(155deg, var(--clay), var(--rust) 90%); }
.portrait.deep { background: linear-gradient(155deg, var(--teal), var(--teal-dark) 90%); }
.portrait .tag {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 3px 6px;
  background: oklch(0 0 0 / 0.35); color: var(--paper); backdrop-filter: blur(4px);
}
.portrait.empty .tag { background: var(--paper); color: var(--ink-3); }

.lead-editors {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
}
.lead-editor {
  display: grid; grid-template-columns: 200px 1fr; gap: 32px;
  padding: 48px 48px; border-right: 1px solid var(--rule);
}
.lead-editor:last-child { border-right: 0; }
.lead-editor .meta-role {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal-deep);
}
.lead-editor h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: -0.01em; margin: 8px 0 6px; line-height: 1.1; }
.lead-editor .aff { font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: 15px; margin-bottom: 16px; }
.lead-editor p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.lead-editor .links { display: flex; gap: 14px; margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; }
.lead-editor .links a { color: var(--teal-deep); border-bottom: 1px solid var(--teal-tint); padding-bottom: 2px; }

.board-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.board-grid .b { padding: 28px 24px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.board-grid .b:nth-child(4n) { border-right: 0; }
.board-grid .b:nth-last-child(-n+4) { border-bottom: 0; }
.board-grid .b .portrait { margin-bottom: 16px; }
.board-grid .b .role {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal-deep);
}
.board-grid .b h5 { font-family: var(--serif); font-size: 17px; font-weight: 500; margin: 6px 0 4px; line-height: 1.2; }
.board-grid .b .ba { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.board-grid .b.open h5 { color: var(--ink-3); font-style: italic; }
.board-grid .b.open .role { color: var(--clay); }

.open-roles {
  background: var(--paper-2); padding: 56px; border-left: 3px solid var(--teal);
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.open-roles h3 { font-family: var(--serif); font-size: 28px; margin: 0; letter-spacing: -0.01em; }
.open-roles p { font-size: 14.5px; color: var(--ink-2); margin: 8px 0 0; }

/* Business/circulation section: 4-column grid, matching the editorial and
   advisory board rosters (room to grow past the current 2 members). */
.business-grid { grid-template-columns: repeat(4, 1fr) !important; }
.business-grid .b:nth-child(4n) { border-right: 0; }
.business-grid .b:nth-last-child(-n+4) { border-bottom: 0; }

@media (max-width: 980px) {
  .lead-editors { grid-template-columns: 1fr; }
  .lead-editor { grid-template-columns: 1fr; padding: 32px 24px; }
  .lead-editor:first-child { border-right: 0; border-bottom: 1px solid var(--rule); }
  .board-grid { grid-template-columns: 1fr 1fr; }
  .board-grid .b { border-right: 1px solid var(--rule) !important; }
  .board-grid .b:nth-child(2n) { border-right: 0 !important; }
}
@media (max-width: 720px) {
  .open-roles { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════════
   Editorial history (AJDSI/editorial-history.html) — timeline, volumes
   ════════════════════════════════════════════════════════════════════ */
.timeline { position: relative; margin: 32px 0 0; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--rule); }
.tl-item { position: relative; padding: 0 0 56px; }
.tl-item::before {
  content: ""; position: absolute; left: -36px; top: 8px;
  width: 9px; height: 9px; background: var(--teal); border-radius: 50%;
  box-shadow: 0 0 0 4px var(--paper);
}
.tl-item.current::before { background: var(--gold); box-shadow: 0 0 0 4px var(--paper), 0 0 0 8px oklch(0.78 0.13 85 / 0.25); }
.tl-date {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
}
.tl-item h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: -0.01em; margin: 8px 0 6px; }
.tl-item h3 em { font-style: italic; color: var(--teal-deep); }
.tl-item .role { font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: 16px; }
.tl-item p { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin: 12px 0 0; max-width: 60ch; }
.tl-item ul { padding-left: 20px; margin: 12px 0 0; }
.tl-item li { color: var(--ink-2); font-size: 14px; line-height: 1.55; }

.vol-history { border-top: 1px solid var(--ink); }
.vol-row {
  display: grid; grid-template-columns: 200px 1fr auto;
  gap: 32px; padding: 24px 0; align-items: center;
  border-bottom: 1px solid var(--rule);
}
.vol-row .vol { font-family: var(--serif); font-style: italic; font-size: 28px; letter-spacing: -0.01em; }
.vol-row .meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-3); }
.vol-row .name { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.vol-row .sub { font-size: 13px; color: var(--ink-3); }
.vol-row .badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 4px 10px;
  background: var(--teal-soft); color: var(--teal-deep);
}

/* ════════════════════════════════════════════════════════════════════
   Subscriptions page (AJDSI/subscriptions.html) — OA banner, pricing tiers
   ════════════════════════════════════════════════════════════════════ */
.oa-banner {
  background: var(--teal-dark); color: var(--paper);
  padding: 64px 0; position: relative; overflow: hidden;
}
.oa-banner::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 20%, oklch(0.78 0.13 85 / 0.25), transparent 50%),
    radial-gradient(circle at 10% 80%, var(--teal), transparent 60%);
}
.oa-banner > * { position: relative; }
.oa-banner .stamp {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: oklch(0.88 0.01 80 / 0.7);
  display: flex; align-items: center; gap: 12px;
}
.oa-banner .stamp .badge { background: var(--gold); color: var(--ink); padding: 5px 10px; }
.oa-banner h2 {
  font-family: var(--serif); font-size: clamp(40px, 5vw, 72px);
  font-weight: 400; letter-spacing: -0.022em; line-height: 1.05;
  margin: 16px 0 24px; max-width: 22ch;
}
.oa-banner h2 em { font-style: italic; color: var(--gold); }
.oa-banner p { font-family: var(--serif); font-size: 19px; color: oklch(0.88 0.01 80 / 0.85); max-width: 56ch; line-height: 1.5; }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.tier { padding: 40px 32px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 16px; }
.tier:last-child { border-right: 0; }
.tier.featured { background: var(--paper-2); border-top: 3px solid var(--teal); margin-top: -1px; }
.tier .stamp {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
  display: flex; justify-content: space-between;
}
.tier.featured .stamp { color: var(--teal-deep); }
.tier h3 { font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: -0.012em; margin: 0; line-height: 1.1; }
.tier .price { font-family: var(--serif); font-style: italic; font-size: 56px; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.tier .price .suf { font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--ink-3); margin-left: 6px; letter-spacing: 0.02em; }
.tier ul { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 10px; }
.tier li { font-size: 14px; color: var(--ink-2); padding-left: 22px; position: relative; line-height: 1.5; }
.tier li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 1px; background: var(--teal-deep); }
.tier .cta { margin-top: auto; padding-top: 16px; }

@media (max-width: 980px) {
  .pricing { grid-template-columns: 1fr; }
  .tier { border-right: 0; border-bottom: 1px solid var(--rule); }
}

/* ════════════════════════════════════════════════════════════════════
   Single announcement page (AJDSI/announcement.html) hero
   (rest of the page reuses .art-body/.rail-card/.ann/.expiry-banner,
   already defined for the article and announcements-list pages)
   ════════════════════════════════════════════════════════════════════ */
.ann-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--rule); }
.ann-hero .badge-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ann-hero .badge {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 5px 10px;
  background: var(--teal-soft); color: var(--teal-deep);
}
.ann-hero .badge.dl { background: oklch(0.95 0.05 25); color: var(--rust); }

/* ════════════════════════════════════════════════════════════════════
   ORCID about page (AJDSI/orcid-about.html) — split hero, feature grid
   ════════════════════════════════════════════════════════════════════ */
.orcid-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 1px solid var(--ink); }
.orcid-hero .left { padding: 64px 56px; background: var(--paper); }
.orcid-hero .right {
  padding: 64px 56px; background: var(--teal-dark); color: var(--paper);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
}
.orcid-hero .right::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, oklch(0.78 0.13 85 / 0.30), transparent 50%),
    radial-gradient(circle at 10% 90%, var(--teal) 0%, transparent 60%);
}
.orcid-hero .right > * { position: relative; }
.orcid-id {
  display: inline-flex; align-items: center; gap: 10px;
  background: #A6CE39; color: white; padding: 6px 12px;
  font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
}
.orcid-id::before {
  content: "iD"; background: white; color: #A6CE39;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
}
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.feature-grid .f { padding: 40px 32px; border-right: 1px solid var(--rule); }
.feature-grid .f:last-child { border-right: 0; }
.feature-grid .f .n {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--teal-deep);
}
.feature-grid .f h4 { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; margin: 16px 0 12px; }
.feature-grid .f p { font-size: 14px; color: var(--ink-2); line-height: 1.5; margin: 0; }

@media (max-width: 980px) {
  .orcid-hero { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid .f { border-right: 0; border-bottom: 1px solid var(--rule); }
}

/* ════════════════════════════════════════════════════════════════════
   Information pages (authors/readers) — three-up step/option cards
   ════════════════════════════════════════════════════════════════════ */
.three-up { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.three-up .c { padding: 32px; border-right: 1px solid var(--rule); }
.three-up .c:last-child { border-right: 0; }
.three-up .c .n {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal-deep);
}
.three-up .c h4 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin: 8px 0 12px; letter-spacing: -0.01em; line-height: 1.2; }
.three-up .c p { color: var(--ink-2); font-size: 14px; line-height: 1.55; margin: 0 0 16px; }
@media (max-width: 980px) {
  .three-up { grid-template-columns: 1fr; }
  .three-up .c { border-right: 0; border-bottom: 1px solid var(--rule); }
}

/* ════════════════════════════════════════════════════════════════════
   Error / generic message page (AJDSI/message.html)
   ════════════════════════════════════════════════════════════════════ */
.msg-shell { min-height: calc(100vh - 36px - 78px); display: grid; grid-template-columns: 1.1fr 1fr; }
.msg-left { padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; }
.msg-left .code {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(80px, 12vw, 180px); line-height: 0.85;
  color: var(--teal-deep); letter-spacing: -0.04em; margin: 0;
}
.msg-left h1 {
  font-family: var(--serif); font-size: clamp(32px, 4vw, 52px);
  font-weight: 400; letter-spacing: -0.02em; line-height: 1.02;
  margin: 24px 0 16px; max-width: 18ch;
}
.msg-left h1 em { font-style: italic; color: var(--teal-deep); }
.msg-left p { font-family: var(--serif); font-size: 18px; color: var(--ink-2); max-width: 46ch; line-height: 1.5; margin: 0 0 32px; }
.msg-left .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.msg-left .suggestions { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--rule); }
.msg-left .suggestions h6 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px;
}
.msg-left .suggestions .links { display: flex; flex-wrap: wrap; gap: 10px; }
.msg-left .suggestions a {
  font-size: 13px; padding: 8px 14px; border: 1px solid var(--rule-2);
  color: var(--ink-2); transition: all 0.15s;
}
.msg-left .suggestions a:hover { border-color: var(--ink); color: var(--ink); }
.msg-right {
  background: var(--teal-dark); color: var(--paper);
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 56px;
}
.msg-right::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 70% 20%, oklch(0.78 0.13 85 / 0.30), transparent 50%),
    radial-gradient(circle at 20% 90%, var(--teal), transparent 60%);
}
.msg-right::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, transparent 0 calc(100% - 1px), oklch(1 0 0 / 0.05) 0),
    linear-gradient(0deg, transparent 0 calc(100% - 1px), oklch(1 0 0 / 0.05) 0);
  background-size: 40px 40px;
}
.msg-right .quote {
  position: relative; font-family: var(--serif); font-style: italic;
  font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; max-width: 22ch;
}
.msg-right .quote .src {
  display: block; margin-top: 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; font-style: normal; color: oklch(0.88 0.01 80 / 0.7);
}
@media (max-width: 980px) {
  .msg-shell { grid-template-columns: 1fr; }
  .msg-right { min-height: 280px; }
}

/* ════════════════════════════════════════════════════════════════════
   Payment history page (AJDSI/payment-history.html)
   (.dash/.side-nav from the mockup are unused — our real page is a
   single-column wrap, there's no account-dashboard shell in OJS)
   ════════════════════════════════════════════════════════════════════ */
.summary-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}
.summary-row .s { padding: 24px; border-right: 1px solid var(--rule); }
.summary-row .s:last-child { border-right: 0; }
.summary-row .s .k {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
}
.summary-row .s .v { font-family: var(--serif); font-size: 32px; font-weight: 500; letter-spacing: -0.02em; margin-top: 4px; line-height: 1.1; }
.summary-row .s .v.teal { color: var(--teal-deep); font-style: italic; }

.pay-table { border-top: 1px solid var(--ink); }
.pay-table .hd {
  display: grid; grid-template-columns: 120px 1fr 160px 120px 120px 100px;
  gap: 20px; padding: 14px 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
  border-bottom: 1px solid var(--rule);
}
.pay-row {
  display: grid; grid-template-columns: 120px 1fr 160px 120px 120px 100px;
  gap: 20px; padding: 18px 0;
  border-bottom: 1px solid var(--rule); align-items: center; cursor: pointer;
}
.pay-row:hover { background: var(--paper-2); }
.pay-row .date { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.pay-row .desc h5 { font-family: var(--serif); font-size: 17px; font-weight: 500; margin: 0; letter-spacing: -0.01em; }
.pay-row .desc .sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.pay-row .ref { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.pay-row .amt { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink); text-align: right; letter-spacing: -0.01em; }
.pay-row .status {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 4px 8px; text-align: center;
  border: 1px solid var(--rule-2); color: var(--ink-2);
}
.pay-row .status.ok { background: oklch(0.95 0.08 150); color: var(--ok); border-color: oklch(0.85 0.10 150); }
.pay-row .status.refunded { background: var(--paper-2); color: var(--ink-3); }
.pay-row .arr { color: var(--ink-3); text-align: right; }

.empty-state {
  margin-top: 64px; padding: 48px;
  background: var(--paper-2); border-left: 3px solid var(--teal);
  text-align: center;
}
.empty-state h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 8px; }
.empty-state h3 em { font-style: italic; color: var(--teal-deep); }

@media (max-width: 980px) {
  .summary-row { grid-template-columns: 1fr 1fr; }
  .pay-table .hd, .pay-row { grid-template-columns: 1fr; gap: 6px; }
  .pay-table .hd { display: none; }
}

/* ════════════════════════════════════════════════════════════════════
   Payment receipt page (AJDSI/payment-receipt.html)
   ════════════════════════════════════════════════════════════════════ */
.receipt-page { background: var(--paper-3); padding: 40px 0 80px; }
.receipt {
  max-width: 720px; margin: 0 auto; background: var(--paper);
  box-shadow: 0 30px 60px -20px oklch(0.18 0.02 240 / 0.18);
  border: 1px solid var(--rule);
}
.receipt .top {
  padding: 32px 40px; border-bottom: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: start;
}
.receipt .top .brand { display: flex; align-items: center; gap: 14px; }
.receipt .top .meta { text-align: right; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--ink-3); }
.receipt .top .meta .ref { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink); letter-spacing: -0.01em; }
.receipt .hero { padding: 40px 40px 32px; background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.receipt .hero h2 { font-family: var(--serif); font-size: 38px; font-weight: 400; letter-spacing: -0.02em; margin: 0 0 12px; line-height: 1; }
.receipt .hero h2 em { font-style: italic; color: var(--teal-deep); }
.receipt .hero p { color: var(--ink-2); margin: 0; }
.receipt .body { padding: 32px 40px; }
.receipt .body h6 {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px;
}
.receipt .line {
  display: grid; grid-template-columns: 1fr auto;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
  gap: 24px; align-items: baseline;
}
.receipt .line.head { border-bottom: 1px solid var(--ink); }
.receipt .line .k {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
}
.receipt .line .v { color: var(--ink); }
.receipt .total {
  margin-top: 24px; padding: 16px 0; border-top: 2px solid var(--ink);
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 24px;
}
.receipt .total .lab {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink);
}
.receipt .total .v {
  font-family: var(--serif); font-style: italic; font-size: 44px;
  color: var(--teal-deep); letter-spacing: -0.02em; line-height: 1;
}
.receipt .note {
  padding: 24px 40px; background: var(--paper-2); border-top: 1px solid var(--rule);
  font-size: 13px; color: var(--ink-2); line-height: 1.55;
}
.receipt .foot {
  padding: 20px 40px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
}
.receipt-actions { max-width: 720px; margin: 24px auto 0; display: flex; gap: 12px; justify-content: flex-end; }
.receipt-stamp {
  position: absolute; right: 40px; top: 200px; transform: rotate(-8deg);
  border: 2px solid var(--ok); color: var(--ok);
  font-family: var(--mono); font-size: 18px; letter-spacing: 0.12em;
  padding: 8px 16px; opacity: 0.55; background: oklch(1 0 0 / 0.5);
}
@media print {
  body { background: var(--paper); }
  .receipt-page { padding: 0; }
  .receipt { box-shadow: none; border: 0; max-width: 100%; }
  .receipt-actions, .util, .masthead, footer.site { display: none !important; }
}

/* ════════════════════════════════════════════════════════════════════
   Subscription purchase pages (AJDSI/purchase-individual.html)
   (.pay-seg from the mockup is unused — no payment-method toggle here)
   ════════════════════════════════════════════════════════════════════ */
.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 56px; padding: 56px 0 80px; }
.checkout h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 16px; }
.checkout h3 em { font-style: italic; color: var(--teal-deep); }
.summary {
  border-left: 3px solid var(--teal); background: var(--paper-2);
  padding: 28px; position: sticky; top: 96px; align-self: start;
}
.summary h6 {
  margin: 0 0 16px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
}
.summary .li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px;
}
.summary .li:last-child { border-bottom: 0; padding-top: 18px; font-weight: 600; color: var(--ink); font-size: 18px; }
.summary .li .k { color: var(--ink-3); }
.summary .li .v { color: var(--ink); font-family: var(--serif); font-size: 16px; }
.summary .li:last-child .v { font-family: var(--serif); font-size: 22px; font-style: italic; }

.tier-radio { display: grid; gap: 10px; margin-bottom: 24px; }
.tier-opt {
  border: 1px solid var(--rule-2); padding: 14px 18px; position: relative;
  display: grid; grid-template-columns: 22px 1fr auto;
  gap: 14px; cursor: pointer; transition: border-color 0.15s; align-items: center;
}
.tier-opt:hover { border-color: var(--ink); }
.tier-opt.on { border-color: var(--teal); background: var(--teal-soft); }
.tier-opt .radio { width: 18px; height: 18px; border: 1px solid var(--rule-2); border-radius: 50%; position: relative; }
.tier-opt.on .radio { border-color: var(--teal); }
.tier-opt.on .radio::after { content: ""; position: absolute; inset: 3px; background: var(--teal); border-radius: 50%; }
.tier-opt .nm { font-weight: 600; }
.tier-opt .sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.tier-opt .pr { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink); }

@media (max-width: 980px) {
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
}

/* ════════════════════════════════════════════════════════════════════
   PDF galley viewer (AJDSI/article-galley.html) — sidebar + iframe pane
   (the mockup's custom .pdf-toolbar/.pdf-page canvas styles aren't used —
   the real page embeds pdf.js's own viewer UI in an iframe)
   ════════════════════════════════════════════════════════════════════ */
.galley-shell { display: grid; grid-template-columns: 280px 1fr; background: var(--paper-2); }
.galley-side { background: var(--paper); border-right: 1px solid var(--rule); padding: 24px; overflow-y: auto; }
.galley-side h6 {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3); margin: 24px 0 12px;
}
.galley-side h6:first-child { margin-top: 0; }
.galley-side h4 { font-family: var(--serif); font-size: 17px; font-weight: 500; line-height: 1.25; margin: 0 0 6px; letter-spacing: -0.01em; }
.galley-side .authors { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.galley-side .meta-list { margin-top: 18px; display: grid; gap: 6px; font-size: 12px; }
.galley-side .meta-list .row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--rule); }
.galley-side .meta-list .k {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
}
.galley-side .meta-list .v { color: var(--ink); }
.pdf-pane { display: flex; flex-direction: column; overflow: hidden; }

@media (max-width: 980px) {
  .galley-shell { grid-template-columns: 1fr; height: auto; }
  .galley-side { border-right: 0; border-bottom: 1px solid var(--rule); }
}

/* ════════════════════════════════════════════════════════════════════
   Registration wizard (AJDSI/register.html) — step rail, panes, checklist
   ════════════════════════════════════════════════════════════════════ */
.step-rail {
  display: flex; gap: 0; margin: 0 0 28px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
}
.step-rail .step {
  flex: 1; padding: 12px 8px 10px 0;
  border-top: 2px solid var(--rule-2);
  display: flex; gap: 8px; align-items: baseline;
}
.step-rail .step.on { border-top-color: var(--teal); color: var(--ink); }
.step-rail .step.done { border-top-color: var(--ok); color: var(--ok); }
.step-rail .step .n { font-family: var(--mono); font-weight: 600; }
.reg-step { display: none; }
.reg-step.on { display: grid; gap: 18px; }
.reg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nav-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; }
.nav-row .btn { flex: 1; justify-content: center; }
.nav-row .btn.back { flex: 0 0 auto; background: transparent; border-color: var(--rule-2); color: var(--ink-2); }
.nav-row .btn.back:hover { background: var(--paper-2); color: var(--ink); }
.check-grid { display: grid; gap: 10px; padding: 14px; background: var(--paper-2); border: 1px solid var(--rule); }
@media (max-width: 560px) {
  .reg-row { grid-template-columns: 1fr; }
  /* Step labels ("YOUR IDENTITY", "ROLES & CONSENT") wrap mid-word at this
     width; the eyebrow above already says "Step 1 of 3", so just show the
     numbered ticks here instead of fighting the wrap. */
  .step-rail .step span:not(.n) { display: none; }
  .step-rail .step { justify-content: center; padding-right: 0; }
}
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); padding: 18px 0; }
.faq-item summary {
  cursor: pointer; list-style: none; font-family: var(--sans);
  font-size: 15.5px; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--mono); font-size: 20px; font-weight: 400;
  color: var(--ink-3); flex-shrink: 0; transition: transform 0.15s ease;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 14px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.ann-hero .date {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
}
.ann-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 0.98; letter-spacing: -0.025em;
  margin: 18px 0 0; max-width: 22ch; text-wrap: balance;
}
.ann-hero h1 em { font-style: italic; color: var(--teal-deep); }

/* --- Legacy class aliases: some templates use .ajdsi-btn / .ajdsi-form-section-title
   instead of the .btn / fieldset-legend patterns above. Defined here so every
   existing usage (subscriptions, ORCID connect, manual payment, pagination,
   registration) renders instead of falling back to unstyled browser defaults. */
.ajdsi-btn {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  padding: 11px 18px; border: 1px solid var(--ink);
  background: transparent; color: var(--ink); cursor: pointer;
  transition: all 0.18s ease; letter-spacing: 0.01em;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.ajdsi-btn:hover { background: var(--ink); color: var(--paper); }
.ajdsi-btn--primary { background: var(--ink); color: var(--paper); }
.ajdsi-btn--primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--paper); }
.ajdsi-btn--secondary { background: transparent; color: var(--ink); }
.ajdsi-btn--ghost { border-color: var(--rule-2); color: var(--ink-2); background: transparent; }
.ajdsi-btn--ghost:hover { color: var(--ink); border-color: var(--ink); background: transparent; }
.ajdsi-btn--sm { padding: 6px 12px; font-size: 12px; }

.ajdsi-form-section-title {
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  color: var(--ink); letter-spacing: 0.01em;
  padding-bottom: 8px; margin-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  width: 100%; display: block;
}
