:root {
  --brand: #0f3d6e;
  --brand-dark: #0a2c52;
  --accent: #d98e2b;
  --accent-light: #f5e8d3;
  --bg: #f7f9fc;
  --card: #ffffff;
  --text: #1f2a37;
  --muted: #64748b;
  --border: #e2e8f0;
  --green: #15803d;
  --red: #b91c1c;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Header */
.topbar { background: var(--brand-dark); color: #cbd5e1; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #e2e8f0; margin-left: 14px; }
.site-header { background: var(--brand); color: #fff; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 44px; height: 44px; border-radius: 8px; background: #fff; color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; }
.brand-name { font-size: 22px; font-weight: 700; line-height: 1.2; }
.brand-tag { font-size: 12px; opacity: .8; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { color: #fff; padding: 8px 14px; border-radius: 6px; font-weight: 500; }
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,.15); text-decoration: none; }
.menu-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff;
  border-radius: 6px; padding: 6px 12px; font-size: 16px; cursor: pointer; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: 56px 0; }
.hero h1 { margin: 0 0 10px; font-size: 38px; }
.hero p { max-width: 640px; opacity: .9; font-size: 17px; }
.searchbar { display: flex; max-width: 620px; margin-top: 22px; }
.searchbar input { flex: 1; padding: 13px 16px; border: none; border-radius: 8px 0 0 8px; font-size: 16px; }
.searchbar button { padding: 13px 26px; border: none; background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 600; border-radius: 0 8px 8px 0; cursor: pointer; }
.searchbar button:hover { background: #c07f24; }
.hero-stats { display: flex; gap: 36px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats .stat b { font-size: 26px; display: block; }
.hero-stats .stat span { font-size: 13px; opacity: .85; }

/* Cards */
.section { padding: 44px 0; }
.section-title { font-size: 26px; margin: 0 0 6px; color: var(--brand-dark); }
.section-sub { color: var(--muted); margin: 0 0 24px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.card h3 { margin-top: 0; color: var(--brand-dark); }
.card .icon { width: 52px; height: 52px; border-radius: 10px; background: var(--accent-light);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 14px; font-weight: 700; }
.btn { display: inline-block; padding: 10px 20px; border-radius: 7px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; font-size: 15px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #c07f24; text-decoration: none; color: #fff; }
.btn-outline { background: #fff; border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; text-decoration: none; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-danger { background: var(--red); color: #fff; }

/* Lists */
.item-list { list-style: none; margin: 0; padding: 0; }
.item-list li { padding: 16px 0; border-bottom: 1px solid var(--border); }
.item-list li:last-child { border-bottom: none; }
.item-title { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.item-meta { font-size: 13px; color: var(--muted); }
.item-excerpt { font-size: 14px; color: var(--text); margin: 6px 0; }
.doi { font-family: monospace; font-size: 12px; background: #eef2f7; padding: 2px 8px; border-radius: 4px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.badge-open { background: #dcfce7; color: var(--green); }
.badge-status { background: #e0e7ff; color: #3730a3; }
.badge-published { background: #dcfce7; color: var(--green); }
.badge-rejected { background: #fee2e2; color: var(--red); }

/* Timeline */
.timeline { display: flex; margin: 22px 0; padding: 0; list-style: none; flex-wrap: wrap; }
.timeline li { flex: 1; min-width: 130px; text-align: center; position: relative; padding-top: 30px; font-size: 13px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px; border-radius: 50%; background: #cbd5e1; border: 3px solid #fff;
  box-shadow: 0 0 0 2px #cbd5e1; }
.timeline li::after { content: ""; position: absolute; top: 16px; left: calc(-50% + 12px); right: calc(50% + 12px);
  height: 2px; background: #cbd5e1; }
.timeline li:first-child::after { display: none; }
.timeline li.done { color: var(--brand-dark); font-weight: 600; }
.timeline li.done::before { background: var(--green); box-shadow: 0 0 0 2px var(--green); }
.timeline li.done::after { background: var(--green); }
.timeline li.current { color: var(--brand-dark); font-weight: 700; }
.timeline li.current::before { background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-control { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 7px; font-size: 15px; font-family: inherit; }
.form-control:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
textarea.form-control { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-narrow { max-width: 520px; }
.alert { padding: 12px 16px; border-radius: 7px; margin: 18px 0; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef3c7; color: #92400e; }

/* Tables */
table.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
table.table th, table.table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
table.table th { background: var(--brand); color: #fff; }
table.table tr:hover td { background: #f8fafc; }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.stat-box b { font-size: 30px; color: var(--brand); display: block; }
.stat-box span { font-size: 13px; color: var(--muted); }

/* Article */
.article-head { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; margin: 26px 0; }
.article-head h1 { margin-top: 0; color: var(--brand-dark); }
.abstract-box { background: #f1f5f9; border-left: 4px solid var(--brand); padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 20px 0; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; font-size: 14px; margin: 14px 0; }
.kv dt { font-weight: 600; color: var(--muted); }
.kv dd { margin: 0; }
.score-row { display: flex; gap: 18px; margin: 16px 0; flex-wrap: wrap; }
.score { text-align: center; }
.score b { display: block; font-size: 28px; color: var(--brand); }
.score span { font-size: 12px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--brand-dark); color: #cbd5e1; margin-top: 40px; }
.site-footer .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-top: 40px; padding-bottom: 30px; }
.site-footer h4 { color: #fff; margin-top: 0; }
.site-footer a { color: #cbd5e1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 14px 0; font-size: 13px; }
.footer-bottom .container { display: block; padding-top: 0; padding-bottom: 0; }

/* Breadcrumb */
.breadcrumb { font-size: 13px; color: var(--muted); margin: 18px 0 0; }
.breadcrumb a { color: var(--brand); }

/* News */
.news-date { font-size: 13px; color: var(--muted); }

/* Publication-type pages: sidebar + content (Atlantis-style browse layout) */
.pub-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; margin-top: 18px; }
.pub-side { position: sticky; top: 24px; border-top: 2px solid var(--brand); background: var(--card); border-radius: 0 0 var(--radius) var(--radius); }
.side-nav details.side-group { border-bottom: 1px solid var(--border); }
.side-nav summary { cursor: pointer; padding: 13px 14px; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-dark); list-style: none; display: flex; align-items: center; gap: 8px; }
.side-nav summary::-webkit-details-marker { display: none; }
.side-nav summary::after { content: "▸"; color: var(--brand); margin-left: auto; font-size: 14px; }
.side-nav details[open] summary::after { content: "▾"; }
.side-nav summary a { color: inherit; text-decoration: none; }
.side-nav summary a:hover { text-decoration: underline; }
.side-nav ul { list-style: none; margin: 0; padding: 2px 14px 14px; }
.side-nav ul a { display: block; padding: 7px 0; font-size: 14px; color: var(--text); border-bottom: 1px dotted var(--border); }
.side-nav ul a:last-child { border-bottom: none; }
.side-nav ul a:hover { color: var(--brand); }
.pub-main h1.section-title { margin-top: 0; }
.prose p { margin: 0 0 14px; line-height: 1.75; }
.prose a { font-weight: 600; }
.subj-anchor { scroll-margin-top: 24px; padding-top: 6px; }

@media (max-width: 820px) {
  .grid3, .grid2 { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .main-nav { display: none; width: 100%; flex-direction: column; margin-top: 10px; }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .site-header .container { flex-wrap: wrap; }
  .kv { grid-template-columns: 1fr; }
  .pub-layout { grid-template-columns: 1fr; gap: 24px; }
  .pub-side { position: static; }
}

/* Series detail & indexing pages */
.cta-box { background: #eef4fd; border: 1px solid #c9d9f5; border-radius: 10px;
  padding: 22px 24px; margin: 24px 0; }
.cta-box h3 { margin: 0 0 8px; color: #1a3a7a; }
.cta-box p:last-child { margin-bottom: 0; }
.contact-line { margin: 18px 0; color: #555; }
.details-list { margin: 0 0 24px; }
.details-list > div { display: grid; grid-template-columns: 180px 1fr; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #e6e6e6; }
.details-list dt { font-weight: 700; color: #1a3a7a; }
.details-list dd { margin: 0; }
.db-list { display: flex; flex-direction: column; gap: 28px; margin: 26px 0; }
.db-block { display: grid; grid-template-columns: 84px 1fr; gap: 20px; align-items: start;
  padding-bottom: 28px; border-bottom: 1px solid #e6e6e6; }
.db-block:last-child { border-bottom: none; padding-bottom: 0; }
.db-badge { width: 84px; height: 84px; border-radius: 12px; background: linear-gradient(135deg, #1a3a7a, #2f5bb5);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; letter-spacing: 0.5px; }
.db-block h2 { margin: 0 0 8px; font-size: 20px; color: #1a3a7a; }
.db-block p { margin: 0 0 10px; line-height: 1.7; }
.db-meta { font-size: 14px; color: #555; }
@media (max-width: 640px) {
  .db-block { grid-template-columns: 1fr; }
  .db-badge { width: 64px; height: 64px; font-size: 16px; }
  .details-list > div { grid-template-columns: 1fr; gap: 4px; }
}

/* Editorial board */
.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 18px 0 8px; }
.board-card { border: 1px solid #e0e6f0; border-radius: 10px; padding: 16px 18px; background: #fafbfe; }
.board-name { font-weight: 700; color: #1a3a7a; margin: 0 0 4px; }
.board-role { font-size: 14px; font-weight: 600; color: #b26a00; margin: 0 0 4px; }
.board-affil { font-size: 14px; color: #555; margin: 0; }
@media (max-width: 820px) { .board-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .board-grid { grid-template-columns: 1fr; } }

/* Policy pages */
.policy-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0; }
.policy-card { display: block; border: 1px solid #e0e6f0; border-radius: 10px; padding: 20px 22px; background: #fafbfe; color: inherit; text-decoration: none; }
.policy-card:hover { border-color: #1a3a7a; }
.policy-card h3 { margin: 0 0 8px; color: #1a3a7a; }
.policy-card p { margin: 0 0 10px; color: #444; font-size: 15px; }
.read-more { font-weight: 700; color: #b26a00; font-size: 14px; }
.side-group.active a { font-weight: 700; color: #1a3a7a; }
@media (max-width: 640px) { .policy-cards { grid-template-columns: 1fr; } }

/* Citation box */
.cite-box { border: 1px solid #e0e6f0; border-radius: 10px; padding: 16px 18px; margin: 18px 0; background: #fafbfe; }
.cite-box p { margin: 6px 0; }
.cite-box #cite-preview { font-size: .92em; line-height: 1.5; color: var(--ink); }
.doi-help { font-size: .82em; margin-left: 10px; white-space: nowrap; }
.cite-box .btn { margin-right: 8px; }

/* Metrics dashboard */
.bar-chart { margin: 18px 0 8px; max-width: 640px; }
.bar-row { display: grid; grid-template-columns: 90px 1fr 40px; gap: 12px; align-items: center; margin-bottom: 10px; }
.bar-label { font-size: 14px; color: #555; }
.bar-track { background: #eef1f6; border-radius: 6px; height: 22px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #1a3a7a, #2f5bb5); border-radius: 6px; min-width: 4px; }
.bar-value { font-weight: 700; color: #1a3a7a; text-align: right; }

/* Author profiles */
.author-head { display: flex; gap: 20px; align-items: flex-start; margin: 6px 0 20px; }
.author-avatar { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg, #1a3a7a, #2f5bb5);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; flex-shrink: 0; }
.orcid-badge { display: inline-block; background: #a6ce39; color: #fff; font-size: 11px; font-weight: 800;
  border-radius: 4px; padding: 1px 5px; vertical-align: middle; text-decoration: none; }
a.orcid-badge:hover { color: #fff; }
.orcid-link { font-size: 15px; font-weight: 600; color: #1a3a7a; }
