/* MJEST design system
   Minimal, professional journal look: white surfaces, navy masthead, one blue for actions,
   a restrained gold accent for "Submit". Loaded after Bootstrap 5.3. */

:root {
    --navy: #0b2545;
    --navy-2: #13315c;
    --navy-3: #1d3f6e;
    --blue: #1f5ea8;
    --blue-hover: #184c8a;
    --blue-soft: #eaf1fa;
    --title-green: #1b5e3b;
    --gold: #c8962e;
    --gold-hover: #b0811f;
    --ink: #17202c;
    --ink-2: #344054;
    --muted: #5d6b7c;
    --line: #e3e8ef;
    --line-strong: #cfd8e3;
    --surface: #f6f8fa;
    --white: #ffffff;
    --success: #1e7b4f;
    --success-soft: #e6f4ec;
    --warning: #9a6200;
    --warning-soft: #fdf3e1;
    --danger: #b42318;
    --danger-soft: #fdecea;
    --info: #1f5ea8;
    --info-soft: #eaf1fa;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow: 0 4px 16px rgba(16, 24, 40, .06);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

    --bs-body-font-family: var(--font);
    --bs-body-color: var(--ink);
    --bs-link-color: var(--blue);
    --bs-link-color-rgb: 31, 94, 168;
    --bs-link-hover-color: var(--blue-hover);
    --bs-border-color: var(--line);
    --bs-primary: var(--blue);
    --bs-primary-rgb: 31, 94, 168;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 650; letter-spacing: -.01em; }
.serif { font-family: var(--font-serif); }
.text-muted { color: var(--muted) !important; }
.small-caps { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------------------------------------------------------------- buttons */
.btn { border-radius: var(--radius-sm); font-weight: 550; font-size: 14px; padding: .5rem 1rem; }
.btn-lg { font-size: 16px; padding: .7rem 1.35rem; }
.btn-sm { font-size: 13px; padding: .3rem .7rem; }
.btn-primary { --bs-btn-bg: var(--blue); --bs-btn-border-color: var(--blue); --bs-btn-hover-bg: var(--blue-hover); --bs-btn-hover-border-color: var(--blue-hover); --bs-btn-active-bg: var(--blue-hover); --bs-btn-disabled-bg: var(--blue); }
.btn-dark { --bs-btn-bg: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-hover-bg: var(--navy-2); --bs-btn-hover-border-color: var(--navy-2); }
.btn-accent { background: var(--gold); border: 1px solid var(--gold); color: #fff; }
.btn-accent:hover, .btn-accent:focus { background: var(--gold-hover); border-color: var(--gold-hover); color: #fff; }
.btn-outline-primary { --bs-btn-color: var(--blue); --bs-btn-border-color: var(--line-strong); --bs-btn-hover-bg: var(--blue-soft); --bs-btn-hover-color: var(--blue); --bs-btn-hover-border-color: var(--blue); --bs-btn-active-bg: var(--blue-soft); --bs-btn-active-color: var(--blue); }
.btn-outline-secondary { --bs-btn-color: var(--ink-2); --bs-btn-border-color: var(--line-strong); --bs-btn-hover-bg: var(--surface); --bs-btn-hover-color: var(--ink); --bs-btn-hover-border-color: var(--line-strong); }
.btn-ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.btn:hover { text-decoration: none; }

/* ---------------------------------------------------------------- forms */
.form-control, .form-select { border-color: var(--line-strong); border-radius: var(--radius-sm); font-size: 14px; padding: .5rem .75rem; }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 94, 168, .15); }
.form-label { font-weight: 550; font-size: 13.5px; color: var(--ink-2); margin-bottom: .3rem; }
.form-text { color: var(--muted); font-size: 12.5px; }
.form-check-input:checked { background-color: var(--blue); border-color: var(--blue); }
.required::after { content: " *"; color: var(--danger); }

/* ---------------------------------------------------------------- status badges */
.status { display: inline-flex; align-items: center; gap: .35rem; font-size: 12px; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-neutral { background: var(--surface); color: var(--ink-2); border-color: var(--line); }
.status-info { background: var(--info-soft); color: var(--info); }
.status-success { background: var(--success-soft); color: var(--success); }
.status-warning { background: var(--warning-soft); color: var(--warning); }
.status-danger { background: var(--danger-soft); color: var(--danger); }
.chip { display: inline-block; font-size: 12px; padding: .15rem .55rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }

/* ---------------------------------------------------------------- site header */
.topbar { background: var(--navy); color: rgba(255,255,255,.78); font-size: 12.5px; }
.topbar a { color: rgba(255,255,255,.88); }
.topbar a:hover { color: #fff; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 1rem; }
.topbar-links { display: flex; gap: 1.1rem; align-items: center; }

.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .navbar { padding: .55rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand-name { font-weight: 750; font-size: 18px; letter-spacing: .02em; line-height: 1; }
.brand-sub { display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-top: 2px; }
.site-header .nav-link { color: var(--ink-2); font-size: 14px; font-weight: 500; padding: .45rem .6rem !important; border-radius: var(--radius-sm); white-space: nowrap; }
.header-actions .btn { white-space: nowrap; }
@media (max-width: 1399.98px) { .brand-sub { display: none !important; } }
.site-header .nav-link:hover { color: var(--ink); background: var(--surface); text-decoration: none; }
.site-header .nav-link.active { color: var(--blue); }
.header-actions { display: flex; gap: .5rem; align-items: center; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: var(--radius-sm); color: var(--ink-2); border: 1px solid transparent; }
.icon-btn:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.navbar-toggler { border-color: var(--line-strong); }
.navbar-toggler:focus { box-shadow: none; }

.flash-wrap { margin-top: 1rem; }
.flash { border: 1px solid #c9dcf2; background: var(--blue-soft); color: var(--navy); border-radius: var(--radius); padding: .75rem 1rem; font-size: 14px; }

/* ---------------------------------------------------------------- landing (home) */
.hero { padding: 88px 0 40px; text-align: center; }
.hero-eyebrow { display: inline-flex; gap: .5rem; align-items: center; font-size: 13px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; background: var(--white); }
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.hero-title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(34px, 6vw, 62px); line-height: 1.08; letter-spacing: -.02em; margin: 22px auto 18px; max-width: 900px; color: var(--ink); }
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 680px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

.issue-showcase { margin: 56px auto 0; max-width: 1040px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 14px; box-shadow: var(--shadow); text-align: left; }
.issue-showcase-inner { background: var(--white); border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 28px; }
.issue-cover { aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; box-shadow: var(--shadow-sm); }
.issue-cover img { width: 100%; height: 100%; object-fit: cover; }
.issue-cover.has-image { padding: 0; }
.issue-cover-title { font-family: var(--font-serif); font-size: 22px; font-weight: 600; line-height: 1.15; }
.issue-cover-meta { font-size: 12px; opacity: .8; }
.issue-showcase h2 { font-size: 22px; margin-bottom: .25rem; }
.mini-toc { list-style: none; padding: 0; margin: 16px 0 0; }
.mini-toc li { padding: 12px 0; border-top: 1px solid var(--line); }
.mini-toc a { color: var(--ink); font-weight: 600; }
.mini-toc a:hover { color: var(--blue); }
.mini-toc .meta { font-size: 13px; color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.fact { padding: 18px 20px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font-size: 20px; color: var(--title-green); font-weight: 700; }
.fact span { font-size: 13px; color: var(--muted); }

.section { padding: 72px 0; }
.section-muted { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-serif); font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; margin: 4px 0 6px; }
.section-head p { color: var(--muted); margin: 0; max-width: 640px; }
.kicker { font-size: 12.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--white); }
.feature i { font-size: 20px; color: var(--blue); }
.feature h3 { font-size: 16px; margin: 12px 0 6px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }

.discipline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.discipline-tile { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--white); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.discipline-tile:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); }
.discipline-tile .ico { flex: none; width: 36px; height: 36px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: 17px; }
.discipline-tile h3 { font-size: 15px; margin: 0 0 4px; }
.discipline-tile p { font-size: 13.5px; color: var(--muted); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.steps li { list-style: none; padding: 20px 18px; border-right: 1px solid var(--line); counter-increment: step; }
.steps li:last-child { border-right: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); font-size: 12px; font-weight: 700; color: var(--blue); }
.steps h3 { font-size: 15px; margin: 6px 0 4px; }
.steps p { font-size: 13px; color: var(--muted); margin: 0; }

.cta-band { background: var(--navy); color: #fff; border-radius: 16px; padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-family: var(--font-serif); font-weight: 600; margin: 0 0 6px; }
.cta-band p { color: rgba(255,255,255,.75); margin: 0; }

.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; }
.news-list time { flex: none; width: 92px; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- journal masthead (IEEE-style) */
.crumbs { font-size: 13px; color: var(--muted); padding: 16px 0 0; }
.crumbs a { color: var(--blue); }
.masthead { padding: 14px 0 0; }
.masthead-grid { display: grid; grid-template-columns: 1fr 150px; gap: 24px; align-items: stretch; }
.masthead-title { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: 16px 22px; }
.masthead-title h1 { color: var(--title-green); font-size: clamp(22px, 3vw, 30px); font-weight: 650; margin: 0; }
.masthead-title p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.masthead .facts { margin-top: 14px; border-radius: var(--radius-sm); }
.masthead .fact { text-align: center; padding: 12px; }
.masthead .fact strong { font-size: 18px; }
.masthead-cover { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px; background: var(--white); }
.masthead-cover .issue-cover { height: 100%; aspect-ratio: auto; min-height: 180px; padding: 12px; }
.masthead-cover .issue-cover-title { font-size: 16px; }

.journal-tabs { display: flex; border-bottom: 2px solid var(--line); margin-top: 22px; overflow-x: auto; scrollbar-width: none; }
.journal-tabs a { padding: 12px 20px; color: var(--ink-2); font-weight: 550; font-size: 14.5px; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.journal-tabs a:hover { color: var(--blue); text-decoration: none; background: var(--surface); }
.journal-tabs a.active { color: var(--navy); border-bottom-color: var(--navy); font-weight: 650; }

.journal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding: 28px 0 64px; }
.side-actions { display: grid; gap: 4px; margin-bottom: 20px; }
.side-actions .btn { justify-content: flex-start; display: flex; gap: .5rem; align-items: center; }
.side-link { display: flex; gap: .65rem; align-items: center; padding: 9px 4px; color: var(--blue); font-size: 14.5px; border-bottom: 1px solid var(--line); }
.side-link i { width: 18px; color: var(--navy); }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; background: var(--white); }
.side-card h3 { font-size: 16px; margin: 0 0 10px; }
.side-card p { font-size: 14px; margin: 0 0 4px; color: var(--ink-2); }

.year-pills { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 22px; }
.year-pills a { padding: 6px 12px; border-radius: var(--radius-sm); color: var(--ink-2); font-size: 14px; }
.year-pills a.active { background: var(--navy); color: #fff; }
.year-pills a:hover { text-decoration: none; background: var(--surface); }
.year-pills a.active:hover { background: var(--navy); }
.issue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.issue-card { color: var(--ink); }
.issue-card:hover { text-decoration: none; color: var(--blue); }
.issue-card .issue-cover { margin-bottom: 8px; }
.issue-card strong { display: block; font-size: 14px; }
.issue-card span { font-size: 13px; color: var(--muted); }

.toc-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.toc-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.toc-item h3 { font-size: 17px; font-weight: 600; margin: 0 0 4px; line-height: 1.4; }
.toc-item h3 a { color: var(--blue); }
.toc-authors { font-size: 14px; color: var(--ink-2); }
.toc-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.toc-actions { display: flex; gap: 14px; margin-top: 8px; font-size: 13.5px; align-items: center; }
.toc-actions a, .toc-actions button { color: var(--blue); background: none; border: 0; padding: 0; font-weight: 550; }
.toc-abstract { display: none; margin-top: 10px; font-size: 14px; color: var(--ink-2); background: var(--surface); border-left: 3px solid var(--blue); padding: 12px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.toc-item.open .toc-abstract { display: block; }

/* ---------------------------------------------------------------- article page */
.article-head h1 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.2; margin: 10px 0 14px; }
.article-authors { font-size: 15.5px; color: var(--ink); }
.article-authors sup { color: var(--blue); }
.article-affils { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.article-section { margin-top: 28px; }
.article-section h2 { font-size: 18px; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 12px; }
.article-section p { font-size: 15.5px; line-height: 1.75; }
.cite-box { font-size: 13.5px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }

/* ---------------------------------------------------------------- generic content pages */
.page-head { padding: 40px 0 26px; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-head h1 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(28px, 4vw, 40px); margin: 6px 0 6px; }
.page-head p { color: var(--muted); margin: 0; max-width: 720px; }
.prose { font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }
.prose h2 { font-size: 20px; margin-top: 1.8rem; }
.prose h3 { font-size: 17px; margin-top: 1.4rem; }
.content-card, .panel, .info-panel, .content-panel, .search-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 22px; margin-bottom: 20px; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--white); }
.empty-state i { font-size: 28px; color: var(--line-strong); display: block; margin-bottom: 8px; }

.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.person { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; background: var(--white); }
.person .avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 700; overflow: hidden; }
.person .avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 15.5px; margin: 0; }
.person .role { font-size: 12.5px; font-weight: 600; color: var(--title-green); text-transform: uppercase; letter-spacing: .04em; }
.person p { font-size: 13.5px; color: var(--muted); margin: 2px 0 0; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 52px 0 24px; font-size: 14px; margin-top: 0; }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 13px; }
.landing-hidden-credit { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- auth */
.auth-wrap { min-height: calc(100vh - 220px); display: grid; place-items: center; padding: 48px 16px; background: var(--surface); }
.auth-card { width: 100%; max-width: 440px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 32px; box-shadow: var(--shadow); }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-family: var(--font-serif); font-weight: 600; font-size: 28px; margin: 0 0 6px; }
.auth-card .lead-text { color: var(--muted); margin-bottom: 22px; font-size: 14.5px; }
.auth-foot { text-align: center; font-size: 14px; color: var(--muted); margin-top: 18px; }

/* ---------------------------------------------------------------- dashboard shell */
.dashboard-body { background: var(--surface); }
.dash { display: flex; min-height: 100vh; }
.dash-side { width: 256px; flex: none; background: var(--navy); color: rgba(255,255,255,.75); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.dash-brand { display: flex; align-items: center; gap: .6rem; padding: 18px 20px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.dash-brand:hover { color: #fff; text-decoration: none; }
.dash-brand img { width: 32px; height: 32px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px; }
.dash-brand strong { font-size: 16px; letter-spacing: .03em; }
.dash-brand small { display: block; font-size: 11px; color: rgba(255,255,255,.55); }
.dash-nav { padding: 12px 10px; flex: 1; }
.dash-nav .label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.45); padding: 14px 12px 6px; }
.dash-nav a { display: flex; align-items: center; gap: .7rem; padding: 8px 12px; border-radius: var(--radius-sm); color: rgba(255,255,255,.78); font-size: 14px; }
.dash-nav a:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.dash-nav a.active { background: rgba(255,255,255,.12); color: #fff; font-weight: 600; }
.dash-nav a i { font-size: 15px; width: 18px; }
.dash-nav .count { margin-left: auto; background: var(--gold); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 0 7px; }
.dash-user { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.dash-user strong { color: #fff; display: block; }
.dash-main { flex: 1; min-width: 0; }
.dash-top { background: var(--white); border-bottom: 1px solid var(--line); padding: 14px 28px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 20; }
.dash-top h1 { font-size: 20px; margin: 0; }
.dash-top .crumb { font-size: 12.5px; color: var(--muted); }
.dash-content { padding: 26px 28px 60px; max-width: 1320px; }
.dash-toggle { display: none; }

.panel { padding: 20px 22px; box-shadow: var(--shadow-sm); }
.dash-content [id] { scroll-margin-top: 90px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2, .panel h2 { font-size: 16px; margin: 0; font-weight: 650; }
.panel-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--ink); box-shadow: var(--shadow-sm); }
a.stat:hover { border-color: var(--blue); text-decoration: none; color: var(--ink); }
.stat span { font-size: 13px; color: var(--muted); }
.stat strong { display: block; font-size: 26px; font-weight: 700; margin-top: 2px; }
.stat.attention strong { color: var(--warning); }

.data-table { width: 100%; font-size: 14px; border-collapse: collapse; }
.data-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface); text-align: left; white-space: nowrap; }
.data-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafbfc; }
.data-table .title-cell a { color: var(--ink); font-weight: 600; }
.data-table .title-cell a:hover { color: var(--blue); }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; background: var(--white); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--ink-2); }

.stage-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.stage-tabs a { padding: 9px 14px; font-size: 14px; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.stage-tabs a:hover { color: var(--ink); text-decoration: none; }
.stage-tabs a.active { color: var(--navy); border-bottom-color: var(--navy); font-weight: 600; }
.stage-tabs .n { font-size: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; margin-left: 4px; color: var(--muted); }

/* manuscript workspace */
.ms-head { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.ms-head h2 { font-family: var(--font-serif); font-weight: 600; font-size: 22px; margin: 6px 0 8px; line-height: 1.3; }
.ms-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--muted); }
.ms-meta strong { color: var(--ink-2); font-weight: 600; }
.ms-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }

.tracker { display: grid; grid-template-columns: repeat(5, 1fr); margin: 16px 0 2px; }
.tracker-step { position: relative; text-align: center; font-size: 12.5px; color: var(--muted); padding-top: 26px; }
.tracker-step::before { content: ""; position: absolute; top: 8px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--white); border: 2px solid var(--line-strong); z-index: 1; }
.tracker-step::after { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--line-strong); }
.tracker-step:first-child::after { display: none; }
.tracker-step.done { color: var(--ink-2); }
.tracker-step.done::before { background: var(--success); border-color: var(--success); }
.tracker-step.done::after, .tracker-step.current::after { background: var(--success); }
.tracker-step.current { color: var(--navy); font-weight: 650; }
.tracker-step.current::before { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }

.action-box { border: 1px solid #c9dcf2; background: var(--blue-soft); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.action-box h3 { font-size: 15.5px; margin: 0 0 4px; color: var(--navy); }
.action-box p { font-size: 14px; color: var(--ink-2); margin: 0 0 12px; }
.action-box.warn { border-color: #f1d9a8; background: var(--warning-soft); }
.action-box.ok { border-color: #bfe3cf; background: var(--success-soft); }

.files { list-style: none; padding: 0; margin: 0; }
.files li { display: flex; align-items: center; gap: .6rem; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.files li:last-child { border-bottom: 0; }
.files i { color: var(--blue); }
.files .sub { margin-left: auto; font-size: 12.5px; color: var(--muted); }

.reviewer-row { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; background: var(--white); }
.reviewer-row .top { display: flex; justify-content: space-between; gap: .75rem; align-items: start; flex-wrap: wrap; }
.reviewer-row .who strong { display: block; font-size: 14.5px; }
.reviewer-row .who span { font-size: 13px; color: var(--muted); }
.reviewer-row .tools { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.review-text { white-space: pre-wrap; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 10px; color: var(--ink-2); }
.review-text.confidential { background: #fffaf0; border-color: #f1e1bd; }
.letter { white-space: pre-wrap; font-size: 14.5px; line-height: 1.7; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--radius-sm); padding: 16px 18px; }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 16px 22px; font-size: 13.5px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline time { display: block; font-size: 12px; color: var(--muted); }

.countdown { display: inline-flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; background: var(--white); min-width: 210px; }
.countdown .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.countdown .value { font-size: 22px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.countdown .due { font-size: 12.5px; color: var(--muted); }
.countdown.late { border-color: #f3c5c0; background: var(--danger-soft); }
.countdown.late .value { color: var(--danger); }
.countdown.soon .value { color: var(--warning); }

.rec-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rec-option { position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 14px 14px 14px 44px; cursor: pointer; background: var(--white); }
.rec-option input { position: absolute; left: 16px; top: 17px; }
.rec-option strong { display: block; font-size: 14.5px; }
.rec-option span { font-size: 13px; color: var(--muted); }
.rec-option:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,94,168,.12); background: #fbfdff; }

.task-list { list-style: none; padding: 0; margin: 0; }
.task-list li { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.task-list li:last-child { border-bottom: 0; }
.task-list .t strong { display: block; font-size: 14.5px; }
.task-list .t span { font-size: 13px; color: var(--muted); }

.notice-list { list-style: none; padding: 0; margin: 0; }
.notice-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.notice-list li:last-child { border-bottom: 0; }
.notice-list time { color: var(--muted); font-size: 12px; display: block; }

details.disclosure { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: 12px; }
details.disclosure > summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: 14.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::after { content: "\F282"; font-family: "bootstrap-icons"; font-size: 13px; color: var(--muted); transition: transform .15s; }
details.disclosure[open] > summary::after { transform: rotate(180deg); }
details.disclosure > .body { padding: 0 16px 16px; }

/* legacy admin views */
.review-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; background: var(--white); }
.eyebrow, .section-kicker { font-size: 12.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.section-title { font-family: var(--font-serif); font-weight: 600; }
.reveal-up, .reveal-section, .scroll-card { opacity: 1 !important; transform: none !important; }
.table { --bs-table-hover-bg: #fafbfc; font-size: 14px; }
.table > :not(caption) > * > * { padding: .7rem .75rem; }
.table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: var(--surface); }
.badge.text-bg-light { border: 1px solid var(--line); }
.alert { border-radius: var(--radius); font-size: 14px; }
.rich-editor { min-height: 160px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1199.98px) {
    .ms-grid { grid-template-columns: 1fr; }
}
@media (max-width: 991.98px) {
    .journal-layout { grid-template-columns: 1fr; }
    .issue-showcase-inner { grid-template-columns: 1fr; }
    .issue-showcase-inner .issue-cover { max-width: 180px; }
    .feature-grid, .discipline-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
    .steps li { border-right: 0; border-bottom: 1px solid var(--line); }
    .steps li:last-child { border-bottom: 0; }
    .site-header .navbar-collapse { padding: 10px 0; }
    .header-actions { margin-top: 8px; }
    .dash-side { position: fixed; left: -270px; z-index: 1050; transition: left .2s; }
    .dash-side.open { left: 0; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
    .dash-toggle { display: inline-grid; }
    .dash-content { padding: 20px 16px 48px; }
    .dash-top { padding: 12px 16px; }
}
@media (max-width: 767.98px) {
    .facts { grid-template-columns: repeat(2, 1fr); }
    .fact:nth-child(2) { border-right: 0; }
    .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .masthead-grid { grid-template-columns: 1fr; }
    .masthead-cover { display: none; }
    .feature-grid, .discipline-grid, .rec-options { grid-template-columns: 1fr; }
    .hero { padding: 56px 0 24px; }
    .section { padding: 52px 0; }
    .cta-band { padding: 28px; }
    .topbar-links .hide-sm { display: none; }
    .tracker-step { font-size: 11px; }
    .news-list li { flex-direction: column; gap: 2px; }
}
@media (max-width: 575.98px) {
    .container { padding-left: 16px; padding-right: 16px; }
    .issue-showcase { padding: 8px; }
    .issue-showcase-inner { padding: 18px; }
    .auth-card { padding: 24px 20px; }
}
@media print {
    .site-header, .topbar, .site-footer, .dash-side, .dash-top, .no-print { display: none !important; }
}
