/* OJS theme demo — reader site. Mobile-first. Theme colours/fonts arrive as
   :root vars from ojs-templates.php; body classes pick header/hero/pattern. */

:root {
  --on-ac: #fff;
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --soft: color-mix(in srgb, var(--ink) 5%, var(--bg));
  --muted: color-mix(in srgb, var(--ink) 62%, var(--bg));
  --pat: none;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --demo: #0f213b;
}
body.pat-leaf { --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M20 60C20 35 40 20 60 20 60 45 40 60 20 60ZM20 60 50 30' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E"); }
body.pat-grid { --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M32 0H0V32' fill='none' stroke='black' stroke-width='1'/%3E%3C/svg%3E"); }
body.pat-topo { --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='none' stroke='black' stroke-width='1.2'%3E%3Cpath d='M0 40Q40 10 80 40T160 40M0 60Q40 30 80 60T160 60M0 80Q40 50 80 80T160 80M0 100Q40 70 80 100T160 100M0 120Q40 90 80 120T160 120'/%3E%3C/g%3E%3C/svg%3E"); }
body.pat-mandala { --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='black' stroke-width='1.2'%3E%3Ccircle cx='60' cy='60' r='12'/%3E%3Ccircle cx='60' cy='60' r='26'/%3E%3Cpath d='M60 20Q72 40 60 60 48 40 60 20ZM100 60Q80 72 60 60 80 48 100 60ZM60 100Q48 80 60 60 72 80 60 100ZM20 60Q40 48 60 60 40 72 20 60Z'/%3E%3C/g%3E%3C/svg%3E"); }
body.pat-dots { --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='3' cy='3' r='1.6'/%3E%3C/svg%3E"); }
body.pat-ornament { --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 6 54 30 30 54 6 30ZM30 18 42 30 30 42 18 30Z' fill='none' stroke='black' stroke-width='1'/%3E%3C/svg%3E"); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--ac); outline-offset: 2px; }

/* buttons + small parts */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ac); color: var(--on-ac); text-decoration: none; font-weight: 700; font-size: .95rem; padding: 12px 20px; border-radius: min(var(--r), 12px); border: 1.5px solid var(--ac); margin: 0 8px 8px 0; cursor: pointer; font-family: var(--body); transition: transform .2s var(--ease), filter .2s; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.o { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.sm { padding: 8px 14px; font-size: .85rem; margin: 0; }
.kick { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ac); margin: 0 0 12px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.badges span { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--soft); }
.sec { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ac); }
.crumb { font-size: .8rem; color: var(--muted); margin: 0 0 10px; }
.crumb a { text-decoration: none; }
.gal { display: inline-flex; gap: 6px; }
.gal a { font-size: .7rem; font-weight: 800; text-decoration: none; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); }
.gal a.g-pdf { background: var(--ac); color: var(--on-ac); border-color: var(--ac); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .75rem; color: var(--muted); margin-top: 8px; }

/* demo toolbar (ours, not the journal's) */
.dbar { position: sticky; top: 0; z-index: 50; background: var(--demo); color: #fff; font: 13px/1.3 system-ui, sans-serif; }
.dbar-in { display: flex; align-items: center; gap: 8px; padding: 7px 12px; overflow-x: auto; scrollbar-width: none; }
.dbar-lbl { flex: none; }
.dbar-lbl b { color: #ffd766; }
.dsel select { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 5px 8px; font-size: 13px; max-width: 150px; }
.dsel option, .dsel optgroup { color: #111; }
.dbtn { flex: none; display: inline-flex; gap: 6px; align-items: center; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 6px 10px; font-size: 13px; text-decoration: none; cursor: pointer; }
.dbtn.gold { background: #d4a017; color: #1a2332; border-color: #d4a017; font-weight: 800; }
.dbtn span { display: none; }
.demo-foot { text-align: center; font: 12px/1.5 system-ui, sans-serif; color: var(--muted); padding: 14px 16px 28px; margin: 0; background: var(--bg); }

/* logo */
.lg { width: 44px; height: 44px; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--ac); color: var(--on-ac); border-radius: min(var(--r), 12px); font-family: var(--head); font-weight: 700; font-size: 1.3rem; }
.lg.lgx { width: 64px; height: 64px; font-size: 1.8rem; }
.lg.sm { width: 30px; height: 30px; font-size: .95rem; border-radius: 7px; }
.lg.sq { border-radius: 0; width: 52px; height: 52px; }
.lg.has-img { background: #fff; padding: 3px; }
.lg img { width: 100%; height: 100%; object-fit: contain; }

/* ── headers ── */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.bn { font-family: var(--head); font-weight: 700; line-height: 1.2; font-size: 1rem; }
.bn small { display: block; font-family: var(--body); font-weight: 400; font-size: .75rem; color: var(--muted); margin-top: 2px; }
.nav { display: flex; gap: 4px 18px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-size: .9rem; font-weight: 600; }
.nav a { text-decoration: none; padding: 10px 0; opacity: .85; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { opacity: 1; color: var(--ac); border-bottom-color: var(--ac); }
.hd-act { display: flex; align-items: center; gap: 12px; font-size: .82rem; }
.usr a { text-decoration: none; margin-left: 10px; font-weight: 600; }
.usr a:first-child { margin-left: 0; }
.srch { text-decoration: none; opacity: .8; }

.util { background: var(--deep); color: #fff; font-size: .75rem; }
.util .wrap { display: flex; justify-content: space-between; gap: 10px; padding-top: 6px; padding-bottom: 6px; }
.util .usr a { color: #fff; }
.hd { background: var(--bg); border-bottom: 1px solid var(--line); }
.hd-mast .wrap:first-child { display: flex; justify-content: center; padding-top: 22px; padding-bottom: 14px; text-align: center; }
.hd-mast .brand { flex-direction: column; gap: 10px; }
.hd-mast .bn { font-size: clamp(1.3rem, 4.5vw, 2.1rem); }
.hd-mast .nav.center { justify-content: flex-start; border-top: 1px solid var(--line); }

.hd-bar { position: sticky; top: 36px; z-index: 20; backdrop-filter: saturate(1.4) blur(10px); background: color-mix(in srgb, var(--bg) 88%, transparent); }
.hd-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding-top: 10px; }
.hd-bar .brand { flex: 1 1 auto; }
.hd-bar .nav { order: 3; flex: 1 1 100%; }
.hd-bar .usr { display: none; }

.hd-overlay { background: var(--deep); color: #fff; border: 0; }
.hd-overlay.on-hero { position: absolute; left: 0; right: 0; z-index: 10; background: transparent; }
.hd-overlay .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding-top: 12px; }
.hd-overlay .brand { flex: 1; }
.hd-overlay .nav { flex: 1 1 100%; order: 3; }
.hd-overlay .nav a[aria-current], .hd-overlay .nav a:hover { color: #fff; border-bottom-color: #fff; }
.hd-overlay .bn small { color: rgba(255,255,255,.7); }

.hd-split { border-bottom: 4px solid var(--ink); }
.hd-split .wrap { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; }
.hd-split .bn { font-size: 1.15rem; text-transform: uppercase; letter-spacing: -.01em; }
.hd-split .hd-right { display: flex; flex-direction: column; gap: 4px; }
.hd-split .hd-act { justify-content: flex-end; order: -1; }
.hd-split .nav.big { text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; font-weight: 800; }

.hd-side { background: var(--deep); color: #fff; }
.hd-side .side-in { padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.hd-side .brand { flex: 1 1 auto; }
.hd-side .tag, .hd-side .issn { display: none; }
.hd-side .nav { flex: 1 1 100%; }
.hd-side .nav a[aria-current], .hd-side .nav a:hover { color: #fff; border-color: var(--ac); }
.hd-side .usr a { color: #fff; }
.hd-side > .side-in > .btn { display: none; }

/* ── covers ── */
.cover { position: relative; overflow: hidden; aspect-ratio: 3 / 4; width: 100%; max-width: 300px; margin: 0 auto; padding: 20px; border-radius: min(var(--r), 14px); color: #fff; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg, var(--ac), var(--deep) 75%); filter: hue-rotate(var(--hue, 0deg)); box-shadow: 0 30px 60px -24px color-mix(in srgb, var(--deep) 70%, transparent); }
.cv-pat, .hf-pat { position: absolute; inset: 0; background: currentColor; -webkit-mask: var(--pat) repeat; mask: var(--pat) repeat; opacity: .14; pointer-events: none; }
.cover > * { position: relative; }
.cover .cv-pat { position: absolute; }
.cv-top, .cv-bot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cover small { font-size: .7rem; opacity: .9; }
.cover strong { font-family: var(--head); font-size: 1.35rem; line-height: 1.15; }
.cover.cv-lg { max-width: 260px; }

/* ── heroes ── */
.hero { padding: 40px 0; position: relative; }
.hero h1 { font-size: clamp(1.9rem, 6vw, 3.2rem); letter-spacing: -.015em; margin-bottom: 16px; }
.hero p { max-width: 640px; color: var(--muted); margin: 0 0 22px; }
.hero-cover .wrap { display: grid; gap: 32px; }
.hero-cover .cover { transform: rotate(-2.5deg); }

.hero-type .wrap { display: grid; gap: 16px; }
.hero-type .vol { font-family: var(--head); font-weight: 700; font-size: clamp(5rem, 24vw, 13rem); line-height: .82; color: var(--ac); letter-spacing: -.05em; }
.hero-type .vol span { display: block; font-size: .14em; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); margin-bottom: .6em; }
.hero-type .vol em { font-style: normal; color: var(--line); }
.hero-type h1 { font-size: clamp(1.7rem, 5vw, 2.8rem); }
.dropcap::first-letter { float: left; font-family: var(--head); font-size: 3.4em; line-height: .85; padding: 4px 8px 0 0; color: var(--ac); }

.hero-full { background: var(--deep); color: #fff; padding: 120px 0 48px; overflow: hidden; }
.hero-full .hf-pat { color: #fff; opacity: .12; }
.hero-full .hf-in { position: relative; display: grid; gap: 32px; }
.hero-full h1 { font-size: clamp(2rem, 7vw, 3.6rem); }
.hero-full p { color: rgba(255,255,255,.82); }
.hero-full .kick { color: rgba(255,255,255,.8); }
.hero-full .btn.o { color: #fff; border-color: rgba(255,255,255,.5); }
.hero-full .cover { box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); }

.hero-split .wrap { display: grid; gap: 28px; }
.hs-r { background: var(--soft); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.hs-r h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ac); }
.hl { display: block; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hl small { display: block; font-size: .7rem; font-weight: 800; color: var(--ac); text-transform: uppercase; letter-spacing: .08em; }
.hl strong { font-family: var(--head); font-size: 1rem; line-height: 1.3; }
.hl:hover strong { color: var(--ac); }
.more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: .85rem; color: var(--ac); text-decoration: none; }

.hero-spot { overflow: hidden; padding: 56px 0; }
.hero-spot .glow { position: absolute; width: 640px; height: 640px; right: -200px; top: -260px; background: radial-gradient(circle, color-mix(in srgb, var(--ac) 55%, transparent), transparent 65%); filter: blur(20px); pointer-events: none; }
.hero-spot .wrap { position: relative; }
.hero-spot h1 { background: linear-gradient(90deg, var(--ink), var(--ac)); -webkit-background-clip: text; background-clip: text; color: transparent; max-width: 820px; }
.spot { display: block; text-decoration: none; max-width: 760px; padding: 24px; border-radius: var(--r); background: color-mix(in srgb, #fff 6%, transparent); border: 1px solid color-mix(in srgb, var(--ac) 45%, transparent); backdrop-filter: blur(12px); margin: 8px 0 24px; transition: transform .3s var(--ease); }
.spot:hover { transform: translateY(-3px); }
.spot small { color: var(--ac); font-weight: 700; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.spot strong { display: block; font-family: var(--head); font-size: clamp(1.2rem, 3.5vw, 1.7rem); line-height: 1.25; margin: 8px 0; }
.spot > span { display: block; color: var(--muted); font-size: .9rem; }
.spot .arts { margin-top: 12px; font-size: .78rem; color: var(--ac); display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats h1 { font-size: clamp(2.2rem, 9vw, 5rem); text-transform: uppercase; line-height: .95; letter-spacing: -.02em; max-width: 900px; }
.hero-stats .big { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 28px; }
.hero-stats .big div { background: var(--ac); color: var(--on-ac); padding: 18px 20px; display: flex; align-items: baseline; gap: 14px; }
.hero-stats .big div:nth-child(2) { background: var(--ink); color: var(--bg); }
.hero-stats .big b { font-family: var(--head); font-size: clamp(2.4rem, 8vw, 4rem); line-height: 1; }

/* ── article lists ── */
.blk { padding: 40px 0; }
.blk.alt { background: var(--soft); }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-h a { font-size: .85rem; font-weight: 700; color: var(--ac); text-decoration: none; }
.sh { font-size: clamp(1.35rem, 3.5vw, 1.8rem); }
.l-toc .ar { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.l-toc h3, .l-cards h3, .l-masonry h3, .l-thumbs h3 { font-size: 1.06rem; line-height: 1.35; margin: 4px 0; }
.l-toc h3 a, .l-cards h3 a, .l-masonry h3 a, .l-thumbs h3 a, .l-table a { text-decoration: none; }
.l-toc h3 a:hover, .l-cards h3 a:hover, .l-masonry h3 a:hover, .l-thumbs h3 a:hover, .l-table a:hover { color: var(--ac); }
.l-toc p, .l-cards p, .l-masonry p, .l-thumbs p { margin: 0; font-size: .86rem; color: var(--muted); }
.l-toc .pg { flex: none; font-size: .8rem; color: var(--muted); }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.l-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.l-table th { text-align: left; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: 10px 12px; border-bottom: 2px solid var(--ink); }
.l-table td { padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.l-table .no { font-family: var(--head); font-size: 1.6rem; font-weight: 700; color: var(--ac); line-height: 1; }
.l-table a { font-family: var(--head); font-weight: 700; font-size: 1.02rem; }
.l-table small { display: block; color: var(--muted); font-size: .82rem; margin-top: 4px; }
.l-table .ty, .l-table .pg { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.l-cards, .l-masonry { display: grid; gap: 16px; }
.ac { background: var(--soft); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; border-top: 4px solid var(--ac); transition: transform .25s var(--ease), box-shadow .25s; }
.ac:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--deep) 60%, transparent); }
.l-masonry .ac { border-top-width: 1px; }
.l-masonry .ac.first { background: var(--deep); color: #fff; border-color: var(--deep); }
.l-masonry .ac.first h3 { font-size: clamp(1.3rem, 3.5vw, 1.9rem); }
.l-masonry .ac.first p, .l-masonry .ac.first .meta { color: rgba(255,255,255,.75); }
.l-masonry .ac.first .sec { color: #fff; opacity: .85; }
.l-masonry .ac.first .gal a { border-color: rgba(255,255,255,.3); }
.l-thumbs { display: grid; gap: 4px; }
.at { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.th { flex: none; width: 64px; height: 64px; border-radius: min(var(--r), 14px); display: grid; place-items: center; font-family: var(--head); font-size: 1.6rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--ac), var(--deep)); }

/* ── signature modules ── */
.sig { padding: 44px 0; background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sig.band { background: var(--ink); color: var(--bg); }
.nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.nums div { border-top: 3px solid var(--ac); padding-top: 12px; }
.nums b { display: block; font-family: var(--head); font-size: clamp(2.2rem, 8vw, 3.6rem); line-height: 1; color: var(--ac); }
.nums span { font-size: .85rem; opacity: .8; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.th-chip { display: inline-flex; gap: 10px; align-items: center; padding: 12px 18px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.th-chip i { color: var(--ac); }
.th-chip:hover { border-color: var(--ac); }
.gls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gl { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.gl b { display: block; font-family: var(--head); color: var(--ac); font-size: 1.1rem; letter-spacing: .04em; }
.gl span { font-size: .8rem; color: var(--muted); }
.note-l { margin: 16px 0 0; font-size: .9rem; }
.note-l i { color: var(--ac); margin-right: 6px; }
.arts3 { display: grid; gap: 14px; }
.arts3 div { padding: 22px; border-radius: var(--r); background: color-mix(in srgb, var(--ac) 10%, var(--bg)); border: 1px solid color-mix(in srgb, var(--ac) 35%, transparent); }
.arts3 i { font-size: 1.4rem; color: var(--ac); }
.arts3 b { display: block; margin: 10px 0 4px; font-family: var(--head); font-size: 1.1rem; }
.arts3 span { font-size: .85rem; color: var(--muted); }
blockquote { margin: 0 auto; max-width: 820px; text-align: center; }
blockquote p { font-family: var(--head); font-size: clamp(1.3rem, 4vw, 2rem); font-style: italic; line-height: 1.35; }
blockquote cite { font-size: .85rem; color: var(--muted); font-style: normal; }
.mathbox { display: grid; gap: 18px; align-items: center; }
.mathbox .eq { font-family: var(--head); font-size: clamp(1.8rem, 6vw, 3rem); color: var(--ac); font-style: italic; padding: 20px; border: 1px dashed var(--line); border-radius: var(--r); text-align: center; }
.sdgs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sdg { color: #fff; padding: 14px; border-radius: 6px; min-height: 96px; display: flex; flex-direction: column; justify-content: space-between; }
.sdg b { font-size: 1.8rem; line-height: 1; }
.sdg span { font-size: .8rem; font-weight: 700; text-transform: uppercase; }
.bil { display: grid; gap: 16px; }
.bil div { background: var(--bg); border-left: 4px solid var(--ac); padding: 16px 18px; border-radius: 0 var(--r) var(--r) 0; }
.idx { display: flex; flex-wrap: wrap; gap: 10px; }
.idx span { padding: 10px 16px; border: 1px solid var(--line); background: var(--bg); border-radius: var(--r); font-weight: 700; font-size: .85rem; }

/* ── general blocks ── */
.two { display: grid; gap: 22px; }
.box { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: var(--bg); }
.box ul { margin: 0; padding-left: 18px; }
.cfp { border-left: 5px solid var(--ac); background: var(--soft); }
.board { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mem { text-align: center; font-size: .85rem; }
.mem b { display: block; }
.mem small { display: block; color: var(--muted); font-size: .76rem; }
.av { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; background: linear-gradient(135deg, var(--ac), var(--deep)); color: #fff; font-family: var(--head); font-weight: 700; font-size: 1.4rem; }
.ph { background: var(--soft); padding: 36px 0; border-bottom: 1px solid var(--line); }
.ph h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.ph p { color: var(--muted); margin: 0; }

/* issue */
.issue-hd { padding: 36px 0; background: var(--soft); border-bottom: 1px solid var(--line); }
.issue-hd .wrap { display: grid; gap: 26px; }
.issue-hd h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
.facts { display: grid; grid-template-columns: repeat(3, auto); gap: 6px 20px; justify-content: start; margin: 16px 0 20px; font-size: .85rem; }
.facts dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 0; font-weight: 700; }
.toc-sec { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ac); padding-bottom: 8px; border-bottom: 2px solid var(--ac); margin: 30px 0 0; }
.toc-sec:first-child { margin-top: 0; }

/* archive */
.search { display: flex; gap: 8px; margin-bottom: 26px; }
.search input { flex: 1; min-width: 0; font: inherit; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: min(var(--r), 12px); background: var(--bg); color: var(--ink); }
.issues { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.iss { text-decoration: none; text-align: center; }
.iss .cover { margin-bottom: 10px; transition: transform .3s var(--ease); }
.iss:hover .cover { transform: translateY(-4px) rotate(-1deg); }
.iss strong { display: block; font-size: .9rem; }
.iss small { color: var(--muted); font-size: .78rem; }

/* article */
.art-hd { padding: 36px 0 20px; border-bottom: 1px solid var(--line); }
.art-hd h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); max-width: 900px; margin-top: 8px; }
.auths { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.auths li { font-size: .9rem; }
.auths small { display: block; color: var(--muted); font-size: .78rem; }
.auths .fa-orcid { color: #a6ce39; }
.art { display: grid; gap: 28px; }
.art-main h2 { font-size: 1.2rem; margin-top: 26px; }
.art-main h2:first-child { margin-top: 0; }
.kw { display: flex; flex-wrap: wrap; gap: 8px; }
.kw span { padding: 4px 12px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: .82rem; }
.refs { padding-left: 20px; font-size: .88rem; color: var(--muted); }
.refs li { margin-bottom: 8px; }
.art-side { display: grid; gap: 14px; align-content: start; }
.side-box { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.side-box h3 { font-size: 1rem; }
.side-box dl { margin: 0; font-size: .85rem; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.side-box dt { color: var(--muted); }
.side-box dd { margin: 0; word-break: break-word; }
.gal-big { display: flex; flex-wrap: wrap; gap: 8px; }
.gal-big .btn { margin: 0; }
.cite { font-size: .84rem; margin: 0 0 10px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 60px; }
.bars i { flex: 1; background: var(--ac); border-radius: 3px 3px 0 0; opacity: .85; }
.mini { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }

/* about / submit */
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.steps span { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--ac); color: var(--on-ac); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.chk { list-style: none; padding: 0; margin: 0; }
.chk li { display: flex; gap: 10px; padding: 8px 0; font-size: .9rem; }
.chk i { color: var(--ac); margin-top: 4px; }

/* auth */
.auth { display: grid; gap: 28px; align-items: start; }
.auth-card { max-width: 480px; width: 100%; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px; background: var(--bg); box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--deep) 60%, transparent); }
.auth-card.wide { max-width: 720px; margin: 0 auto; }
.demo-note { font-size: .82rem; background: var(--soft); border-radius: 8px; padding: 8px 12px; color: var(--muted); }
.demo-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 14px; }
.demo-form input[type=text], .demo-form input[type=email], .demo-form input[type=password], .demo-form select { display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: min(var(--r), 10px); background: var(--bg); color: var(--ink); }
.demo-form .inl { display: flex; gap: 10px; font-weight: 400; align-items: flex-start; }
.demo-form .inl input { margin-top: 4px; accent-color: var(--ac); }
.demo-form fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.demo-form legend { font-family: var(--head); font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; }
.g2 { display: grid; gap: 0 14px; }
.aux { font-size: .82rem; margin: 10px 0 0; }
.roles h2 { font-size: 1.15rem; }
.role { display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; align-items: center; text-decoration: none; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; transition: border-color .2s, transform .2s var(--ease); }
.role:hover { border-color: var(--ac); transform: translateX(4px); }
.role i { grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--ac) 14%, var(--bg)); color: var(--ac); }
.role small { color: var(--muted); font-size: .8rem; }

/* footer */
.ft { background: var(--deep); color: #fff; padding: 40px 0 0; margin-top: 30px; font-size: .86rem; }
.ft-in { display: grid; gap: 22px; }
.ft h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; opacity: .7; font-family: var(--body); }
.ft a { display: block; text-decoration: none; opacity: .85; margin-bottom: 6px; }
.ft a.brand { display: flex; opacity: 1; margin-bottom: 10px; }
.ft p { opacity: .8; margin: 0; }
.ft-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 14px; padding-bottom: 14px; margin-top: 26px; font-size: .75rem; opacity: .7; }

/* customiser */
.cz { position: fixed; inset: 0 0 0 auto; width: min(380px, 100%); z-index: 70; background: #fff; color: #1a2332; box-shadow: -20px 0 60px rgba(0,0,0,.25); font: 14px/1.5 system-ui, sans-serif; overflow-y: auto; animation: czIn .35s var(--ease); }
.cz[hidden] { display: none; }
@keyframes czIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.cz-in { padding: 20px; }
.cz-hd { display: flex; justify-content: space-between; align-items: center; }
.cz-hd h2 { font: 800 1.2rem/1.2 system-ui, sans-serif; margin: 0; }
.cz-x { border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: #64748b; }
.cz-note { color: #64748b; font-size: .82rem; }
.cz-note.small { font-size: .74rem; }
.cz label { display: block; font-weight: 700; font-size: .8rem; margin-bottom: 12px; }
.cz input[type=text] { display: block; width: 100%; margin-top: 5px; font: 16px system-ui, sans-serif; padding: 9px 12px; border: 1.5px solid #e2e8f0; border-radius: 9px; }
.cz input[type=color] { display: block; width: 100%; height: 40px; margin-top: 5px; border: 1.5px solid #e2e8f0; border-radius: 9px; padding: 2px; background: #fff; }
.cz-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.cz-logo { margin-bottom: 14px; }
.cz-logo .lbl { display: block; font-weight: 700; font-size: .8rem; margin-bottom: 6px; }
.cz-logo small { display: block; color: #64748b; font-size: .74rem; margin-top: 4px; }
.cz-up { display: inline-flex !important; gap: 8px; align-items: center; background: #0f213b; color: #fff; border-radius: 9px; padding: 9px 14px; cursor: pointer; margin: 0 8px 0 0 !important; }
.cz-link { border: 0; background: none; color: #00629F; font-weight: 700; cursor: pointer; padding: 0; font-size: .82rem; }
.cz-acts { display: flex; gap: 12px; align-items: center; }
.cz-btn { border: 1.5px solid #e2e8f0; background: #fff; border-radius: 9px; padding: 9px 14px; font-weight: 700; cursor: pointer; }
.cz-cta { display: block; margin-top: 18px; text-align: center; background: #d4a017; color: #1a2332; font-weight: 800; text-decoration: none; border-radius: 10px; padding: 13px; }
.flash { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; background: #0f213b; color: #fff; padding: 10px 18px; border-radius: 999px; font: 600 14px system-ui, sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.3); }

/* ── publisher-style themes: weekly (Vanguard), tabs (Ledger), portal (Corpus) ── */
.wk-strip { background: var(--deep); color: #fff; font-size: .75rem; letter-spacing: .04em; }
.wk-strip .wrap { display: flex; justify-content: space-between; gap: 10px; padding-top: 6px; padding-bottom: 6px; }
.wk-strip .usr a { color: #fff; }
.hd-weekly { border-bottom: 0; }
.hd-weekly .wrap:first-child { text-align: center; padding-top: 20px; padding-bottom: 8px; border-bottom: 4px solid var(--ac); }
.hd-weekly .brand { justify-content: center; }
.hd-weekly .bn { font-size: clamp(1.7rem, 6vw, 3rem); font-weight: 700; letter-spacing: -.02em; }
.wk-tag { margin: 6px 0 0; font-size: .82rem; color: var(--muted); font-style: italic; }
.wk-nav { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--ink); }
.wk-nav .nav { flex: 1; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; }
.hero-lead { padding: 26px 0 36px; }
.ld-grid { display: grid; gap: 22px; }
.ld-main { display: block; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.ld-main small, .ld-item small { color: var(--ac); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.ld-main h1 { font-size: clamp(1.7rem, 5vw, 2.7rem); margin: 8px 0 12px; line-height: 1.12; }
.ld-main:hover h1 { color: var(--ac); }
.ld-by { display: block; font-size: .85rem; font-weight: 600; }
.ld-read { display: inline-block; margin-top: 10px; color: var(--ac); font-weight: 700; font-size: .85rem; }
.ld-side h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; border-top: 3px solid var(--ink); padding-top: 8px; }
.ld-item { display: block; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ld-item strong { display: block; font-family: var(--head); font-size: 1.02rem; line-height: 1.3; margin: 2px 0; }
.ld-item span { font-size: .78rem; color: var(--muted); }
.ld-issue { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; }
.ld-issue .cover { max-width: 110px; padding: 10px; border-radius: 0; }
.ld-issue .cover strong { font-size: .8rem; }
.ld-issue p { font-size: .85rem; margin: 0 0 8px; }
.l-columns { columns: 1; column-gap: 32px; column-rule: 1px solid var(--line); }
.col-it { break-inside: avoid; padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.col-it h3 { font-size: 1.08rem; line-height: 1.3; margin: 4px 0; }
.col-it h3 a { text-decoration: none; }
.col-it h3 a:hover { color: var(--ac); }
.col-it p { margin: 0; font-size: .85rem; color: var(--muted); }
.ctx { display: grid; gap: 12px; }
.ctx > div { background: var(--bg); border-top: 4px solid var(--ac); padding: 16px 18px; }
.ctx h3 { font-size: 1rem; color: var(--ac); }
.ctx p { margin: 0; font-size: .9rem; }

.tb-top { background: var(--deep); color: #fff; }
.tb-top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 12px; padding-bottom: 12px; }
.tb-top .brand { flex: 1 1 auto; }
.tb-top .usr a { color: #fff; }
.tb-search { order: 3; flex: 1 1 100%; }
.tb-search input { width: 100%; font: inherit; font-size: .9rem; padding: 9px 14px; border-radius: 999px; border: 0; background: rgba(255,255,255,.14); color: #fff; }
.tb-search input::placeholder { color: rgba(255,255,255,.7); }
.hd-tabs { border-bottom: 1px solid var(--line); }
.tb-row { display: flex; flex-direction: column; }
.tb-tags { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 10px; scrollbar-width: none; }
.tb-tags a { flex: none; text-decoration: none; font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; border: 1.5px solid var(--tc); color: var(--tc); }
.tb-tags a:hover { background: var(--tc); color: #fff; }
.hero-grid4 { padding: 30px 0 40px; }
.g4-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; margin-bottom: 20px; }
.g4-head h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); max-width: 720px; margin: 0; }
.g4-grid { display: grid; gap: 14px; }
.g4 { display: flex; flex-direction: column; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.g4:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(0,0,0,.35); }
.g4-vis { height: 90px; background: linear-gradient(135deg, var(--tc), color-mix(in srgb, var(--tc) 40%, var(--deep))); }
.g4.big .g4-vis { height: 150px; }
.g4 small { margin: 12px 16px 0; color: var(--tc); font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.g4 strong { margin: 4px 16px; font-family: var(--head); font-size: 1.02rem; line-height: 1.3; }
.g4.big strong { font-size: 1.35rem; }
.g4 > span:last-child { margin: 0 16px 16px; font-size: .8rem; color: var(--muted); }
.tg-it { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.tg { justify-self: start; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #fff; background: var(--tc); padding: 3px 10px; border-radius: 4px; }
.tg-it h3 { font-size: 1.06rem; margin: 0 0 4px; }
.tg-it h3 a { text-decoration: none; }
.tg-it h3 a:hover { color: var(--ac); }
.tg-it p { margin: 0; font-size: .85rem; color: var(--muted); }
.resp-grid { display: grid; gap: 18px; }
.resps { display: grid; gap: 10px; align-content: start; }
.resp { background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--ac); border-radius: var(--r); padding: 12px 14px; }
.resp small { display: block; color: var(--muted); font-size: .76rem; }
.resp p { margin: 6px 0 0; font-size: .9rem; }
.vabs { border-radius: var(--r); background: var(--deep); color: #fff; padding: 20px; }
.vabs small { text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; opacity: .8; }
.vabs strong { display: block; font-family: var(--head); font-size: 1.1rem; margin: 6px 0 14px; line-height: 1.3; }
.va-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.va-row span { background: rgba(255,255,255,.1); border-radius: 8px; padding: 10px; font-size: .75rem; text-align: center; }
.va-row b { display: block; font-size: 1.3rem; }

.pt-pub { background: #f1f3f5; border-bottom: 1px solid #e2e5e9; font-size: .8rem; color: #374151; }
.pt-pub .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 8px; padding-bottom: 8px; }
.pt-name { font-weight: 800; flex: 1 1 auto; }
.pt-search { display: flex; align-items: center; gap: 8px; order: 3; flex: 1 1 100%; background: #fff; border: 1px solid #d1d5db; border-radius: 4px; padding: 0 10px; }
.pt-search input { border: 0; flex: 1; font: inherit; padding: 7px 0; min-width: 0; background: transparent; }
.pt-links { display: flex; gap: 12px; }
.pt-links a, .pt-links .usr a { text-decoration: none; font-weight: 600; }
.hd-portal .wrap:first-child { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 16px; padding-bottom: 12px; }
.hd-portal .bn { font-size: 1.15rem; }
.hd-portal .btn.sm { flex: none; }
.nav.pt-tabs a { padding: 10px 2px; border-bottom-width: 3px; }
.hero-journal { padding: 30px 0; background: var(--soft); border-bottom: 1px solid var(--line); }
.jn-grid { display: grid; gap: 22px; }
.jn-cv { max-width: 170px; margin: 0; padding: 14px; }
.jn-cv strong { font-size: 1rem; }
.jn-main h1 { font-size: clamp(1.5rem, 4.5vw, 2.3rem); }
.jn-ed { font-size: .85rem; }
.jn-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0 0; }
.jn-metrics div { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.jn-metrics dt { font-family: var(--head); font-size: 1.3rem; font-weight: 700; }
.jn-metrics dd { margin: 0; font-size: .76rem; color: var(--muted); }
.jn-side { display: grid; gap: 4px; align-content: start; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.jn-side .btn { justify-content: center; margin: 0 0 8px; }
.jn-side a:not(.btn) { font-size: .88rem; padding: 6px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.jn-side a:not(.btn):hover { color: var(--ac); }
.cp-it { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 12px; }
.cp-top { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .75rem; color: var(--muted); }
.oa { color: #b45309; font-weight: 700; }
.cp-it h3 { font-size: 1.06rem; margin: 6px 0 4px; }
.cp-it h3 a { text-decoration: none; color: #1a4fa3; }
.theme-corpus .cp-it h3 a { color: var(--ink); }
.cp-it h3 a:hover { text-decoration: underline; }
.cp-it p { margin: 0; font-size: .85rem; color: var(--muted); }
.cls { display: grid; gap: 14px; }
.cl { display: grid; gap: 4px; text-decoration: none; padding: 18px; border: 1px solid var(--line); border-top: 4px solid var(--ac); border-radius: var(--r); background: var(--bg); }
.cl strong { font-family: var(--head); font-size: 1.1rem; }
.cl small { color: var(--muted); font-size: .8rem; }
.cl .open { justify-self: start; font-size: .7rem; font-weight: 800; color: #166534; background: #dcfce7; border-radius: 999px; padding: 2px 9px; }
.side-box.coll { border-top: 4px solid var(--ac); }
.side-box.coll small { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.side-box.coll b { display: block; font-family: var(--head); margin: 4px 0 8px; }
.side-box.coll a { font-size: .85rem; font-weight: 700; color: var(--ac); text-decoration: none; }
.theme-vanguard .sh { font-weight: 700; border-top: 3px solid var(--ink); padding-top: 10px; }
.theme-vanguard .btn { border-radius: 0; }
.theme-ledger .sh { color: var(--ac); }

@media (min-width: 576px) {
  .jn-metrics { grid-template-columns: repeat(4, 1fr); }
  .va-row b { font-size: 1.5rem; }
}
@media (min-width: 768px) {
  .ld-grid { grid-template-columns: 1.7fr 1fr; }
  .ld-main { grid-row: span 2; border-bottom: 0; border-right: 1px solid var(--line); padding-right: 24px; }
  .l-columns { columns: 2; }
  .ctx { grid-template-columns: repeat(3, 1fr); }
  .g4-grid { grid-template-columns: repeat(3, 1fr); }
  .g4.big { grid-column: span 2; grid-row: span 2; }
  .g4.big .g4-vis { height: 240px; }
  .tg-it { grid-template-columns: 140px 1fr; gap: 16px; }
  .resp-grid { grid-template-columns: 1.4fr 1fr; }
  .jn-grid { grid-template-columns: 170px 1fr 260px; align-items: start; }
  .cls { grid-template-columns: repeat(3, 1fr); }
  .tb-search, .pt-search { order: 0; flex: 0 1 320px; }
  .tb-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
}
@media (min-width: 992px) {
  .l-columns { columns: 3; }
}

/* ── dark themes ── */
body.dark .hd-bar { background: color-mix(in srgb, var(--bg) 80%, transparent); }
body.dark .gal a.g-pdf { color: var(--on-ac); }
body.dark .ac { background: color-mix(in srgb, #fff 4%, transparent); }
body.dark .l-masonry .ac.first { background: linear-gradient(140deg, color-mix(in srgb, var(--ac) 45%, var(--deep)), var(--deep) 80%); border-color: color-mix(in srgb, var(--ac) 45%, transparent); }

/* ── per-theme signatures ── */
.theme-lumen .hero-type { border-top: 8px solid var(--ac); }
.theme-lumen .hero-type h1, .theme-lumen .sh { text-transform: uppercase; letter-spacing: -.02em; }
.theme-lumen .sh::before { content: ""; display: inline-block; width: 18px; height: 18px; background: var(--ac); margin-right: 10px; vertical-align: -1px; }
.theme-heritage .hd-mast .nav { justify-content: center; font-variant: small-caps; letter-spacing: .06em; font-size: 1rem; }
.theme-heritage .hd-mast { border-bottom: 3px double var(--ink); }
.theme-heritage .sh { text-align: center; font-style: italic; }
.theme-heritage .sh::after { content: "❦"; display: block; color: var(--ac); font-size: 1rem; margin-top: 6px; font-style: normal; }
.theme-heritage .sec-h { justify-content: center; flex-direction: column; align-items: center; }
.theme-heritage .hero-type .vol { font-style: italic; }
.theme-atlas .sh { display: inline; background: linear-gradient(transparent 60%, color-mix(in srgb, var(--ac) 70%, transparent) 60%); }
.theme-atlas .ac { border: 3px solid var(--ink); border-radius: 0; box-shadow: 6px 6px 0 var(--ink); }
.theme-atlas .ac:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.theme-atlas .btn { border-radius: 0; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.theme-quanta .meta, .theme-quanta .l-table .ty, .theme-quanta .l-table .pg { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.theme-quanta .l-table .no { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.1rem; }
.theme-saffron .hd-mast { border-top: 5px solid; border-image: linear-gradient(90deg, var(--ac), #fff 50%, var(--deep)) 1; }
.theme-saffron .hd-mast .nav { justify-content: center; }
.theme-verdant .hero-full { border-radius: 0 0 48px 48px; }
.theme-verdant .ac { border-top: 0; border-radius: var(--r) var(--r) var(--r) 4px; }
.theme-clinica .hd-bar .srch { background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .8rem; }
.theme-clinica .hd-bar .srch::after { content: " Search articles"; font-family: var(--body); }
.theme-clinica .th { background: color-mix(in srgb, var(--ac) 16%, var(--bg)); color: var(--ac); }
.theme-terra .hero-full { background: linear-gradient(170deg, var(--deep), color-mix(in srgb, var(--ac) 55%, var(--deep))); }
.theme-terra .at { background: var(--soft); border: 0; border-radius: var(--r); padding: 16px; margin-bottom: 10px; }
.theme-aurora .ac, .theme-aurora .side-box, .theme-aurora .box { backdrop-filter: blur(10px); background: color-mix(in srgb, #fff 4%, transparent); }
.theme-meridian .hero-cover { background: linear-gradient(180deg, var(--soft), var(--bg)); }
.theme-meridian .l-toc .ar { padding-left: 14px; border-left: 3px solid transparent; }
.theme-meridian .l-toc .ar:hover { border-left-color: var(--ac); background: var(--soft); }

/* ── breakpoints ── */
@media (min-width: 576px) {
  .dbtn span { display: inline; }
  .board { grid-template-columns: repeat(3, 1fr); }
  .issues { grid-template-columns: repeat(3, 1fr); }
  .gls { grid-template-columns: repeat(3, 1fr); }
  .sdgs { grid-template-columns: repeat(5, 1fr); }
  .g2 { grid-template-columns: 1fr 1fr; }
  .hero-stats .big { grid-template-columns: repeat(3, 1fr); }
  .hero-stats .big div { flex-direction: column; gap: 4px; }
}
@media (min-width: 768px) {
  .hd-bar .usr { display: inline; }
  .hero { padding: 64px 0; }
  .hero-full { padding: 150px 0 72px; }
  .hero-cover .wrap, .hero-full .hf-in { grid-template-columns: 1.35fr 1fr; align-items: center; }
  .hero-type .wrap { grid-template-columns: auto 1fr; align-items: end; gap: 40px; }
  .hero-split .wrap { grid-template-columns: 1.3fr 1fr; align-items: center; }
  .l-cards { grid-template-columns: repeat(2, 1fr); }
  .l-masonry { grid-template-columns: repeat(3, 1fr); }
  .l-masonry .ac.first { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; }
  .nums { grid-template-columns: repeat(4, 1fr); }
  .sig-impact .nums { grid-template-columns: repeat(3, 1fr); }
  .arts3 { grid-template-columns: repeat(3, 1fr); }
  .mathbox { grid-template-columns: 1fr 1.2fr; }
  .bil { grid-template-columns: 1fr 1fr; }
  .two { grid-template-columns: 1fr 1fr; }
  .board { grid-template-columns: repeat(4, 1fr); }
  .issue-hd .wrap { grid-template-columns: 260px 1fr; align-items: center; }
  .art { grid-template-columns: 1fr 320px; }
  .auth { grid-template-columns: 1fr 1fr; }
  .ft-in { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
  .issues { grid-template-columns: repeat(4, 1fr); }
  .hd-split .wrap { flex-direction: row; justify-content: space-between; align-items: flex-end; padding-bottom: 6px; }
  .hd-split .hd-right { align-items: flex-end; }
  .hd-split .bn { font-size: 1.4rem; }
  .hd-mast .nav.center { justify-content: center; }
}
@media (min-width: 992px) {
  .hd-bar .nav, .hd-overlay .nav { order: 0; flex: 0 1 auto; }
  .hd-bar .wrap, .hd-overlay .wrap { flex-wrap: nowrap; padding-bottom: 0; }
  .hd-bar .brand { flex: 0 1 auto; max-width: 360px; }
  .hd-bar .hd-act { margin-left: auto; }
  .l-cards { grid-template-columns: repeat(3, 1fr); }
  body.h-sidebar .site { display: grid; grid-template-columns: 270px 1fr; }
  .hd-side { position: sticky; top: 36px; height: calc(100vh - 36px); overflow-y: auto; }
  .hd-side .side-in { flex-direction: column; align-items: stretch; padding: 26px 22px; gap: 14px; }
  .hd-side .brand { flex: none; flex-direction: column; align-items: flex-start; }
  .hd-side .bn { font-size: 1.2rem; }
  .hd-side .tag, .hd-side .issn { display: block; font-size: .8rem; opacity: .7; margin: 0; }
  .hd-side .nav.stack { flex-direction: column; gap: 2px; overflow: visible; }
  .hd-side .nav.stack a { border-bottom: 0; border-left: 3px solid transparent; padding: 8px 12px; }
  .hd-side .nav.stack a[aria-current], .hd-side .nav.stack a:hover { border-left-color: var(--ac); background: rgba(255,255,255,.06); }
  .hd-side > .side-in > .btn { display: inline-flex; justify-content: center; }
  body.h-sidebar .site-main { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
