/* ==========================================================================
   OASIS Journals public site: the frame (checklist W1)
   Header and menu (inc/header.php, inc/nav.php), newsletter strip and footer (inc/footer.php). The same tokens as the
   portals (authors/assets/css/oasis-author.css): navy, crimson, Plus Jakarta Sans (loaded by design-system.css).
   Every class here starts op- so it can't collide with the page-content styles still in theme/custom/design-system.
   ========================================================================== */

:root {
    --op-navy: #09004e;
    --op-navy-deep: #05002e;
    --op-crimson: #f6004b;
    --op-crimson-dark: #d90042;
    --op-glow: #ff5c8a;
    --op-ink: #1f1d3a;
    --op-slate: #6b6880;
    --op-line: #e4e3ee;
    --op-haze: #c9c5f0;
    --op-canvas: #f4f4f9;
    --op-font: 'Plus Jakarta Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --op-wrap: 1240px;
    --op-head: 72px;
}

/* theme.css sets overflow-x: hidden on html and body, which makes body a scroll box of its own and stops the header
   sticking; clip keeps the sideways scroll off without that */
html:has(> body.op), body.op { overflow-x: clip; }

/* In-page jumps (#op-jp-archive, #volume-2, the skip link…) stop below the sticky header instead of under it */
body.op [id] { scroll-margin-top: calc(var(--op-head) + 16px); }

/* Read by screen readers only (the site runs Bootstrap 4, which calls this sr-only) */
body.op .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.op-wrap { width: 100%; max-width: var(--op-wrap); margin: 0 auto; padding: 0 24px; box-sizing: border-box; }

body.op .op-skip {
    position: absolute; left: 12px; top: -60px; z-index: 2000; padding: 10px 16px; border-radius: 8px;
    background: var(--op-navy); color: #fff; font: 700 14px var(--op-font); text-decoration: none;
}
body.op .op-skip:focus { top: 12px; }
body.op a:focus-visible, body.op button:focus-visible, body.op input:focus-visible { outline: 3px solid var(--op-glow); outline-offset: 2px; }

/* ---------- Registration strip (above the header; the client wants the RC number on every page) ---------- */

.op-top { background: var(--op-navy-deep); color: var(--op-haze); font-family: var(--op-font); }
.op-top-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 36px; }
body.op .op-top p { display: flex; align-items: center; gap: 18px; margin: 0; font-size: 13px; line-height: 1.3; color: var(--op-haze); }
body.op .op-top-reg { gap: 8px !important; }
body.op .op-top-reg strong { color: #fff; font-weight: 800; letter-spacing: .02em; }
.op-top-reg .fa-building-columns, .op-top-contact i { color: var(--op-glow); font-size: 12px; }
.op-top-sep { width: 1px; height: 12px; background: rgba(255, 255, 255, .28); }
body.op .op-top a { display: inline-flex; align-items: center; gap: 7px; color: var(--op-haze); text-decoration: none; white-space: nowrap; }
body.op .op-top a:hover { color: #fff; }
@media (max-width: 1180px) { .op-top-wide { display: none !important; } }
@media (max-width: 767px) { .op-top-contact { display: none !important; } .op-top-row { justify-content: center; } }

/* ---------- Header and menu ---------- */

.op-header {
    position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid var(--op-line);
    /* no backdrop-filter or transform here: either would trap the phone menu panel (position: fixed) inside the header */
}
.op-bar { display: flex; align-items: center; gap: 24px; min-height: var(--op-head); }
.op-brand { display: inline-flex; flex: none; }
.op-brand img { display: block; height: 46px; width: auto; }

.op-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex: 1; }
.op-nav-list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.op-nav-list > li { position: relative; }
body.op .op-nav-link {
    display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 0; border-radius: 9px;
    background: none; color: var(--op-ink); font: 600 15px/1 var(--op-font); text-decoration: none; cursor: pointer; white-space: nowrap;
}
body.op .op-nav-link:hover { background: var(--op-canvas); color: var(--op-navy); }
body.op .op-nav-link.is-current { color: var(--op-navy); box-shadow: inset 0 -2px 0 var(--op-crimson); border-radius: 9px 9px 0 0; }
.op-group-btn::after {
    content: ""; width: 7px; height: 7px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); transition: transform .15s; opacity: .6;
}
.op-group-btn[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 3px; }

.op-sub {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; margin: 0; padding: 8px; list-style: none;
    background: #fff; border: 1px solid var(--op-line); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(9, 0, 78, .35);
}
.op-group-btn[aria-expanded="true"] + .op-sub { display: block; }
@media (hover: hover) and (min-width: 1081px) {
    .op-group:hover .op-sub { display: block; }
    .op-group:hover .op-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
}
body.op .op-sub a {
    display: block; padding: 9px 12px; border-radius: 9px; color: var(--op-ink); font: 500 14.5px/1.35 var(--op-font); text-decoration: none;
}
body.op .op-sub a:hover { background: var(--op-canvas); color: var(--op-navy); }
body.op .op-sub a[aria-current="page"] { color: var(--op-crimson); font-weight: 700; }

.op-actions { display: flex; align-items: center; gap: 10px; flex: none; }
body.op .op-btn {
    display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border-radius: 11px;
    font: 700 14.5px/1 var(--op-font); text-decoration: none; white-space: nowrap; cursor: pointer;
}
body.op .op-btn-submit { background: var(--op-crimson); color: #fff; border: 0; box-shadow: 0 10px 22px -12px rgba(246, 0, 75, .9); }
body.op .op-btn-submit:hover { background: var(--op-crimson-dark); color: #fff; }
body.op .op-btn-submit:disabled { opacity: .6; cursor: progress; }
body.op .op-btn-quiet { background: #fff; color: var(--op-navy); border: 1px solid var(--op-line); }
body.op .op-btn-quiet:hover { border-color: var(--op-navy); color: var(--op-navy); }

body.op .op-menu-btn {
    display: none; margin-left: auto; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 11px;
    border: 1px solid var(--op-line); background: #fff; color: var(--op-navy); font: 700 14.5px var(--op-font); cursor: pointer;
}
.op-menu-icon, .op-menu-icon::before, .op-menu-icon::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; position: relative; }
.op-menu-icon::before, .op-menu-icon::after { content: ""; position: absolute; left: 0; }
.op-menu-icon::before { top: -6px; } .op-menu-icon::after { top: 6px; }
.op-menu-btn[aria-expanded="true"] .op-menu-icon { background: transparent; }
.op-menu-btn[aria-expanded="true"] .op-menu-icon::before { top: 0; transform: rotate(45deg); }
.op-menu-btn[aria-expanded="true"] .op-menu-icon::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
    body.op .op-menu-btn { display: inline-flex; }
    .op-nav {
        display: none; position: fixed; left: 0; right: 0; top: var(--op-panel-top, var(--op-head)); bottom: 0; z-index: 999;
        flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 16px 24px 32px;
        background: #fff; overflow-y: auto; border-top: 1px solid var(--op-line);
    }
    .op-nav.is-open { display: flex; }
    html:has(> body.op-menu-open) { overflow: hidden; }
    .op-actions { order: -1; display: grid; grid-template-columns: 1fr 1fr; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--op-line); }
    .op-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    body.op .op-nav-link { width: 100%; height: 52px; padding: 0 4px; justify-content: space-between; font-size: 16.5px; border-bottom: 1px solid var(--op-line); border-radius: 0; }
    body.op .op-nav-link:hover { background: none; }
    body.op .op-nav-link.is-current { box-shadow: none; color: var(--op-crimson); }
    .op-sub { position: static; min-width: 0; padding: 4px 0 10px; border: 0; border-radius: 0; box-shadow: none; }
    body.op .op-sub a { padding: 11px 12px; font-size: 15.5px; }
}
@media (max-width: 420px) { .op-actions { grid-template-columns: 1fr; } }

/* ---------- Newsletter strip ---------- */

.op-news { margin-top: 64px; background: var(--op-canvas); border-top: 3px solid var(--op-crimson); }
.op-news-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 20px 48px; align-items: center; padding-top: 36px; padding-bottom: 36px; }
body.op .op-news h2 { margin: 0 0 6px; color: var(--op-navy); font: 800 22px/1.25 var(--op-font); letter-spacing: -.01em; }
body.op .op-news p { margin: 0; color: var(--op-slate); font: 500 15px/1.5 var(--op-font); }
.op-news-form { display: flex; flex-wrap: wrap; gap: 10px; }
body.op .op-news-form input {
    flex: 1 1 220px; height: 46px; padding: 0 14px; border: 1px solid var(--op-line); border-radius: 11px; background: #fff;
    color: var(--op-ink); font: 500 15px var(--op-font);
}
body.op .op-news-form input:focus { outline: none; border-color: var(--op-navy); box-shadow: 0 0 0 4px rgba(9, 0, 78, .1); }
body.op .op-news-form .op-btn { height: 46px; }
body.op .op-news-msg { flex-basis: 100%; margin: 0; color: #b80039; font: 600 14px var(--op-font); }
body.op .op-news-msg.is-ok { color: #1c6b36; }

/* ---------- Footer: the publisher's colophon ---------- */

.op-footer {
    color: var(--op-haze); font-family: var(--op-font);
    background: radial-gradient(70% 60% at 100% 0%, rgba(246, 0, 75, .16), transparent 70%), linear-gradient(170deg, #0c0263, var(--op-navy-deep));
}
.op-footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; padding-top: 56px; padding-bottom: 40px; }
.op-footer-about img { display: block; height: 46px; width: auto; margin-bottom: 16px; }
body.op .op-footer-about p { max-width: 42ch; margin: 0; color: var(--op-haze); font-size: 14.5px; line-height: 1.65; }
body.op .op-footer h2 { margin: 6px 0 14px; color: #fff; font: 800 15px var(--op-font); }
.op-footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
body.op .op-footer-col li { color: var(--op-haze); font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
body.op .op-footer a { color: var(--op-haze); text-decoration: none; }
body.op .op-footer a:hover { color: #fff; text-decoration: underline; }
.op-social { display: flex; gap: 8px; margin: 16px 0 0; }
body.op .op-social a {
    display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .18); color: #fff;
}
body.op .op-social a:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }
.op-footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
body.op .op-footer-base p { margin: 0; color: var(--op-haze); font-size: 13.5px; }

@media (max-width: 960px) {
    .op-footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .op-footer-about { grid-column: 1 / -1; }
    .op-news-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) { .op-footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Home page (index.php, checklist Public W2) ---------- */

:root { --op-serif: Georgia, 'Times New Roman', Times, serif; }
body.op.op-page-home, body.op.op-page-white { background: #fff; }

.op-home-hero {
    color: #fff; font-family: var(--op-font);
    background: radial-gradient(60% 80% at 100% 0%, rgba(246, 0, 75, .18), transparent 70%), linear-gradient(165deg, #0c0263, var(--op-navy-deep));
}
.op-home-hero-row { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px 64px; align-items: end; padding-top: 72px; padding-bottom: 72px; }
body.op .op-home-hero h1 { max-width: 20ch; margin: 0 0 18px; color: #fff; font: 800 clamp(32px, 4.6vw, 52px)/1.08 var(--op-font); letter-spacing: -.025em; }
body.op .op-home-lead { max-width: 54ch; margin: 0 0 28px; color: var(--op-haze); font: 500 18px/1.6 var(--op-font); }
.op-home-search { display: flex; gap: 8px; max-width: 600px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .6); }
body.op .op-home-search input { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border: 0; background: transparent; color: var(--op-ink); font: 500 16px var(--op-font); }
body.op .op-home-search input:focus { outline: none; }
.op-home-search:focus-within { box-shadow: 0 0 0 4px rgba(255, 92, 138, .45), 0 20px 40px -24px rgba(0, 0, 0, .6); }
body.op .op-home-search .op-btn { height: 46px; }
body.op .op-home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 24px 0 0; }
body.op .op-home-link-light { color: #fff; font: 700 15px var(--op-font); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .4); }
body.op .op-home-link-light:hover { color: #fff; text-decoration-color: #fff; }

.op-home-counts { margin: 0; border-left: 1px solid rgba(255, 255, 255, .18); padding-left: 32px; display: grid; gap: 22px; }
.op-home-counts div { display: flex; flex-direction: column; }
.op-home-counts dd { order: -1; }
body.op .op-home-counts dd { margin: 0; color: #fff; font: 400 46px/1 var(--op-serif); }
body.op .op-home-counts dt { margin-top: 6px; color: var(--op-haze); font: 600 14px var(--op-font); }

.op-home-section { padding-top: 72px; font-family: var(--op-font); }
.op-home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
body.op .op-home-section h2, body.op .op-home-steps h2 { margin: 0; color: var(--op-navy); font: 800 28px/1.2 var(--op-font); letter-spacing: -.015em; }
body.op .op-home-head a { color: var(--op-crimson-dark); font: 700 15px var(--op-font); text-decoration: none; white-space: nowrap; }
body.op .op-home-head a:hover { text-decoration: underline; }

/* The newest articles, set like a journal's table of contents */
.op-home-toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; margin: 0; padding: 0; list-style: none; }
.op-home-toc li { padding: 24px 0 26px; border-top: 1px solid var(--op-line); }
body.op .op-home-toc h3 { margin: 0 0 10px; font: 400 21px/1.35 var(--op-serif); }
body.op .op-home-toc h3 a { color: var(--op-navy); text-decoration: none; }
body.op .op-home-toc h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
body.op .op-home-authors { margin: 0 0 8px; color: var(--op-ink); font: 500 14.5px/1.5 var(--op-font); }
body.op .op-home-meta { margin: 0; color: var(--op-slate); font: 500 13.5px/1.5 var(--op-font); }
body.op .op-home-meta a { color: var(--op-slate); text-decoration: none; }
body.op .op-home-meta a:first-child { color: var(--op-navy); font-weight: 600; }
body.op .op-home-meta a:hover { color: var(--op-navy); text-decoration: underline; }
body.op .op-home-doi { margin: 4px 0 0; font: 500 13.5px/1.5 var(--op-font); overflow-wrap: anywhere; }
body.op .op-home-doi a { color: var(--op-slate); text-decoration: none; }
body.op .op-home-doi a:hover { color: var(--op-navy); text-decoration: underline; }

/* Journal covers */
.op-home-shelf { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 24px; margin: 20px 0 0; padding: 0; list-style: none; }
body.op .op-home-shelf a { display: block; color: var(--op-navy); text-decoration: none; }
.op-home-shelf img, .op-home-nocover {
    display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; margin-bottom: 12px;
    box-shadow: 0 14px 28px -18px rgba(9, 0, 78, .55); background: var(--op-canvas);
}
.op-home-nocover { display: flex; align-items: flex-end; padding: 14px; box-sizing: border-box; background: linear-gradient(165deg, #0c0263, var(--op-navy-deep)); color: #fff; font: 400 15px/1.3 var(--op-serif); }
body.op .op-home-shelf strong { display: block; font: 700 14.5px/1.35 var(--op-font); }
body.op .op-home-shelf a:hover strong { text-decoration: underline; }
body.op .op-home-shelf li > span { display: block; margin-top: 4px; color: var(--op-slate); font: 500 13px/1.4 var(--op-font); }

/* From submission to publication: a real sequence, so numbered */
.op-home-steps { margin-top: 72px; padding: 64px 0; background: var(--op-canvas); font-family: var(--op-font); }
body.op .op-home-steps-intro { max-width: 64ch; margin: 10px 0 0; color: var(--op-slate); font: 500 16px/1.6 var(--op-font); }
.op-home-steps ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin: 36px 0 8px; padding: 0; list-style: none; counter-reset: op-step; }
.op-home-steps li { counter-increment: op-step; position: relative; padding-top: 58px; }
.op-home-steps li::before {
    content: counter(op-step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center; background: #fff; border: 2px solid var(--op-crimson); color: var(--op-crimson-dark); font: 400 20px/1 var(--op-serif);
}
.op-home-steps li:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 52px; right: -14px; height: 2px; background: var(--op-haze); }
body.op .op-home-steps li strong { display: block; margin-bottom: 6px; color: var(--op-navy); font: 800 16px var(--op-font); }
body.op .op-home-steps li span { display: block; color: var(--op-ink); font: 500 14.5px/1.55 var(--op-font); }
body.op .op-home-steps .op-home-actions a:not(.op-btn) { color: var(--op-navy); font: 700 15px var(--op-font); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--op-haze); }
body.op .op-home-steps .op-home-actions a:not(.op-btn):hover { text-decoration-color: var(--op-navy); }

/* About and the three things the policies commit to */
.op-home-about-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 64px; align-items: start; }
body.op .op-home-about p { max-width: 62ch; margin: 14px 0 0; color: var(--op-ink); font: 500 16.5px/1.7 var(--op-font); }
body.op .op-home-about p a { color: var(--op-crimson-dark); font-weight: 700; }
.op-home-trust { display: grid; gap: 12px; margin: 6px 0 0; padding: 0; list-style: none; }
body.op .op-home-trust a { display: block; padding: 14px 18px; border-left: 3px solid var(--op-crimson); border-radius: 0 10px 10px 0; background: var(--op-canvas); text-decoration: none; }
body.op .op-home-trust a:hover { background: #ebeaf5; }
body.op .op-home-trust strong { display: block; color: var(--op-navy); font: 800 15.5px var(--op-font); }
body.op .op-home-trust span { display: block; margin-top: 2px; color: var(--op-slate); font: 500 14px/1.45 var(--op-font); }

@media (max-width: 1080px) {
    .op-home-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .op-home-steps ol { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .op-home-steps li { padding: 0 0 22px 60px; min-height: 42px; }
    .op-home-steps li:not(:last-child)::after { top: 46px; bottom: 4px; left: 20px; right: auto; width: 2px; height: auto; }
}
@media (max-width: 860px) {
    .op-home-hero-row { grid-template-columns: minmax(0, 1fr); padding-top: 48px; padding-bottom: 48px; }
    .op-home-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 0; padding-left: 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .18); gap: 12px; }
    body.op .op-home-counts dd { font-size: 34px; }
    .op-home-toc { grid-template-columns: minmax(0, 1fr); }
    .op-home-about-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .op-wrap { padding-left: 18px; padding-right: 18px; } /* sides only: bands built on .op-wrap keep their own top and bottom padding */
    .op-home-search { flex-direction: column; }
    body.op .op-home-search .op-btn { width: 100%; }
    body.op .op-home-lead { font-size: 16.5px; }
    .op-home-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
    body.op .op-home-toc h3 { font-size: 19px; }
    body.op .op-home-counts dt { font-size: 12.5px; }
    .op-home-section { padding-top: 56px; }
    body.op .op-home-section h2, body.op .op-home-steps h2 { font-size: 24px; }
}

/* ---------- Journals directory (journals.php, checklist Public W3) ---------- */

.op-dir-hero { color: #fff; font-family: var(--op-font); background: linear-gradient(165deg, #0c0263, var(--op-navy-deep)); }
.op-dir-hero .op-wrap { padding-top: 48px; padding-bottom: 44px; }
body.op .op-dir-hero h1 { margin: 0 0 10px; color: #fff; font: 800 clamp(32px, 4vw, 44px)/1.1 var(--op-font); letter-spacing: -.02em; }
body.op .op-dir-hero p { max-width: 60ch; margin: 0 0 24px; color: var(--op-haze); font: 500 17px/1.55 var(--op-font); }
.op-dir-search { display: flex; gap: 8px; max-width: 560px; padding: 6px; border-radius: 14px; background: #fff; }
.op-dir-search:focus-within { box-shadow: 0 0 0 4px rgba(255, 92, 138, .45); }
body.op .op-dir-search input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--op-ink); font: 500 16px var(--op-font); }
body.op .op-dir-search input:focus { outline: none; }
body.op .op-dir-search .op-btn { height: 44px; }

.op-dir { padding-top: 28px; font-family: var(--op-font); }
.op-dir-chips {
    display: flex; flex-wrap: wrap; gap: 8px; position: sticky; top: var(--op-head); z-index: 5;
    margin: 0 -24px; padding: 12px 24px; background: #fff;
}
body.op .op-dir-chips a {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--op-line); border-radius: 999px;
    background: #fff; color: var(--op-ink); font: 600 14px var(--op-font); text-decoration: none; white-space: nowrap;
}
body.op .op-dir-chips a span { color: var(--op-slate); font-weight: 700; }
body.op .op-dir-chips a:hover { border-color: var(--op-navy); color: var(--op-navy); }
body.op .op-dir-chips a[aria-current="true"] { background: var(--op-navy); border-color: var(--op-navy); color: #fff; }
body.op .op-dir-chips a[aria-current="true"] span { color: var(--op-haze); }
body.op .op-dir-count { margin: 6px 0 0; color: var(--op-slate); font: 500 14px var(--op-font); }

.op-dir-group { margin-top: 36px; }
.op-dir-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--op-navy); }
body.op .op-dir-head h2 { margin: 0; color: var(--op-navy); font: 800 22px/1.25 var(--op-font); }
body.op .op-dir-head span { color: var(--op-slate); font: 600 14px var(--op-font); white-space: nowrap; }
.op-dir-list { margin: 0; padding: 0; list-style: none; }
.op-dir-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--op-line); }
.op-dir-cover img, .op-dir-cover span { display: block; width: 72px; height: 96px; border-radius: 6px; object-fit: cover; box-shadow: 0 10px 20px -14px rgba(9, 0, 78, .6); }
.op-dir-cover span { display: flex; align-items: flex-end; padding: 8px; box-sizing: border-box; background: linear-gradient(165deg, #0c0263, var(--op-navy-deep)); color: #fff; font: 700 11px/1.2 var(--op-font); overflow-wrap: anywhere; }
body.op .op-dir-body h3 { margin: 0 0 6px; font: 400 21px/1.3 var(--op-serif); }
body.op .op-dir-body h3 a { color: var(--op-navy); text-decoration: none; }
body.op .op-dir-body h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
body.op .op-dir-facts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; color: var(--op-ink); font: 600 14px/1.5 var(--op-font); }
body.op .op-dir-new span:first-child { color: #1c6b36; }
body.op .op-dir-summary {
    max-width: 78ch; margin: 8px 0 0; color: var(--op-slate); font: 500 14.5px/1.6 var(--op-font);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
body.op .op-dir-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 10px 0 0; font: 700 14px var(--op-font); }
body.op .op-dir-links a { color: var(--op-navy); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--op-haze); }
body.op .op-dir-links a:hover { text-decoration-color: var(--op-navy); }
body.op .op-dir-links a:last-child { color: var(--op-crimson-dark); text-decoration-color: rgba(246, 0, 75, .35); }
.op-dir [hidden] { display: none !important; }
.op-dir-empty { margin-top: 32px; padding: 28px; border-radius: 14px; background: var(--op-canvas); }
body.op .op-dir-empty p { margin: 0 0 14px; color: var(--op-ink); font: 500 16px/1.55 var(--op-font); }
body.op .op-dir-empty p:last-child { margin: 0; }
body.op .op-dir-more { margin: 16px 0 0; }
body.op .op-dir-more .op-btn { height: 40px; font-size: 14px; }

@media (max-width: 640px) {
    .op-dir-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px; padding: 10px 18px; scrollbar-width: thin; }
    .op-dir-item { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
    .op-dir-cover img, .op-dir-cover span { width: 56px; height: 75px; }
    body.op .op-dir-body h3 { font-size: 18.5px; }
    .op-dir-search { flex-direction: column; }
    body.op .op-dir-search .op-btn { width: 100%; }
}

/* ---------- Journal page (journal.php, checklist Public W4) ---------- */

.op-jp-mast { color: #fff; font-family: var(--op-font); background: radial-gradient(60% 80% at 100% 0%, rgba(246, 0, 75, .16), transparent 70%), linear-gradient(165deg, #0c0263, var(--op-navy-deep)); }
.op-jp-mast-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 52px; padding-bottom: 52px; }
.op-jp-cover img, .op-jp-cover span {
    display: block; width: 180px; height: 240px; border-radius: 8px; object-fit: cover; box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .7);
}
.op-jp-cover span { display: flex; align-items: flex-end; padding: 16px; box-sizing: border-box; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font: 800 18px var(--op-font); }
body.op .op-jp-mast h1 { max-width: 26ch; margin: 0 0 14px; color: #fff; font: 400 clamp(28px, 3.6vw, 42px)/1.15 var(--op-serif); }
body.op .op-jp-facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 10px; color: var(--op-haze); font: 600 15px/1.5 var(--op-font); }
body.op .op-jp-facts a { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .4); }
body.op .op-jp-status { margin: 0; color: #fff; font: 500 16px/1.55 var(--op-font); }
body.op .op-jp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 22px 0 0; }

.op-jp-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px 64px; padding-top: 56px; font-family: var(--op-font); }
body.op .op-jp-intro h2 { margin: 0 0 14px; color: var(--op-navy); font: 800 24px/1.25 var(--op-font); }
body.op .op-jp-scope-text, body.op .op-jp-scope-none { max-width: 70ch; color: var(--op-ink); font: 400 17.5px/1.75 var(--op-serif); }
body.op .op-jp-scope-text p, body.op .op-jp-scope-text li { margin: 0 0 14px; color: var(--op-ink); font: inherit; }
body.op .op-jp-scope-text ul, body.op .op-jp-scope-text ol { margin: 0 0 14px; padding-left: 22px; }
body.op .op-jp-scope-none { color: var(--op-slate); font-family: var(--op-font); font-size: 16px; }
.op-jp-glance ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
body.op .op-jp-glance a { display: block; padding: 12px 16px; border-left: 3px solid var(--op-crimson); border-radius: 0 10px 10px 0; background: var(--op-canvas); text-decoration: none; }
body.op .op-jp-glance a:hover { background: #ebeaf5; }
body.op .op-jp-glance strong { display: block; color: var(--op-navy); font: 800 15px var(--op-font); }
body.op .op-jp-glance span { display: block; margin-top: 2px; color: var(--op-slate); font: 500 14px/1.45 var(--op-font); }

body.op .op-jp-archive .op-home-head span { color: var(--op-slate); font: 600 14px var(--op-font); }
.op-jp-volume { border-top: 1px solid var(--op-line); }
.op-jp-volume:last-of-type { border-bottom: 1px solid var(--op-line); }
.op-jp-volume summary {
    display: flex; align-items: baseline; gap: 16px; padding: 18px 4px; cursor: pointer; list-style: none;
}
.op-jp-volume summary::-webkit-details-marker { display: none; }
.op-jp-volume summary::before {
    content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--op-navy); border-bottom: 2px solid var(--op-navy);
    transform: rotate(-45deg); transition: transform .15s; align-self: center;
}
.op-jp-volume[open] summary::before { transform: rotate(45deg); }
body.op .op-jp-vol-name { color: var(--op-navy); font: 400 21px/1.3 var(--op-serif); }
body.op .op-jp-vol-count { margin-left: auto; color: var(--op-slate); font: 600 14px var(--op-font); white-space: nowrap; }
.op-jp-volume ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 0; padding: 0 0 20px 28px; list-style: none; }
.op-jp-volume li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 10px; background: var(--op-canvas); font-family: var(--op-font); }
body.op .op-jp-volume li a { color: var(--op-navy); font: 700 15.5px var(--op-font); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--op-haze); }
body.op .op-jp-volume li a:hover { text-decoration-color: var(--op-navy); }
body.op .op-jp-volume li > span { color: var(--op-slate); font: 500 13.5px var(--op-font); }
body.op .op-jp-volume li .op-jp-issue-empty { color: var(--op-ink); font: 600 15px var(--op-font); }
body.op .op-jp-vol-empty { margin: 0 0 18px 28px; color: var(--op-slate); font: 500 14.5px var(--op-font); }

.op-jp-first { margin-top: 56px; font-family: var(--op-font); }
.op-jp-first > div { padding: 32px; border-radius: 16px; background: var(--op-canvas); border-left: 4px solid #1c6b36; }
body.op .op-jp-first h2 { margin: 0 0 10px; color: var(--op-navy); font: 800 24px var(--op-font); }
body.op .op-jp-first p { max-width: 64ch; margin: 0; color: var(--op-ink); font: 500 16.5px/1.65 var(--op-font); }
body.op .op-jp-first .op-home-actions a:not(.op-btn) { color: var(--op-navy); font-weight: 700; }

@media (max-width: 860px) {
    .op-jp-mast-row { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 36px; padding-bottom: 40px; }
    .op-jp-cover img, .op-jp-cover span { width: 120px; height: 160px; }
    .op-jp-intro { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }
}
@media (max-width: 560px) {
    .op-jp-volume ul { padding-left: 0; grid-template-columns: minmax(0, 1fr); }
    body.op .op-jp-vol-name { font-size: 19px; }
    .op-jp-first > div { padding: 24px 20px; }
}

/* ---------- Kept for the pages until their own turn ---------- */

/* The journal and article pages' sidebar used a sticky-sidebar plugin; plain CSS does the same */
@media (min-width: 992px) { body.op #sidebar { position: sticky; top: calc(var(--op-head) + 20px); } }

@media (prefers-reduced-motion: reduce) { body.op *, body.op *::before, body.op *::after { transition: none !important; scroll-behavior: auto !important; } }
