:root {
  --brand: #1d4e89;
  --ink: #1b2430;
  --muted: #5c6878;
  --line: #dde3ea;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --danger: #b42318;
  --success: #067647;
  --warning: #b54708;
  --radius: 8px;
  --serif: "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.25; color: var(--ink); }
h1 { font-size: 2rem; margin: .2em 0 .6em; }
h2 { font-size: 1.4rem; margin: 1.6em 0 .6em; }
h3 { font-size: 1.1rem; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 24px 0; }

/* Header */
.topbar { background: var(--brand); color: #fff; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 12px; flex-wrap: wrap; }
.lang-switch { display: flex; gap: 4px; }
.lang-switch a { color: #fff; text-decoration: none; padding: 2px 8px; border-radius: 4px; opacity: .8; font-weight: 600; }
.lang-switch a[aria-current] { background: rgba(255,255,255,.2); opacity: 1; }
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-logo { height: 64px; width: auto; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; line-height: 1.2; }
.brand-sub { color: var(--muted); font-size: .9rem; }
.header-search { display: flex; gap: 0; flex: 0 1 340px; }
.header-search input { flex: 1; min-width: 0; padding: 8px 12px; border: 1px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); font: inherit; }
.header-search button { padding: 8px 14px; border: 1px solid var(--brand); background: var(--brand); color: #fff; border-radius: 0 var(--radius) var(--radius) 0; font: inherit; cursor: pointer; }

.main-nav { background: var(--bg-soft); border-top: 1px solid var(--line); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.main-nav a { display: block; padding: 12px 14px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; border-bottom: 3px solid transparent; }
.main-nav a:hover { color: var(--brand); }
.main-nav a[aria-current] { color: var(--brand); border-bottom-color: var(--brand); }
.nav-toggle-label { display: none; }

/* Layout */
.main { padding-top: 28px; padding-bottom: 48px; min-height: 50vh; }
.layout-2col { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
.col-main { min-width: 0; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }

/* Alerts & buttons */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; border: 1px solid; }
.alert-success { background: #ecfdf3; border-color: #abefc6; color: var(--success); }
.alert-error { background: #fef3f2; border-color: #fecdca; color: var(--danger); }
.alert-warning { background: #fffaeb; border-color: #fedf89; color: var(--warning); }
.btn { display: inline-block; padding: 9px 18px; background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: var(--radius); text-decoration: none; font-weight: 600; font-size: .95rem; cursor: pointer; }
.btn:hover { filter: brightness(1.1); }
.btn-outline { background: transparent; color: var(--brand); }
.btn-sm { padding: 4px 12px; font-size: .85rem; }
.btn-block { display: block; text-align: center; }

/* Home */
.hero { padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.hero h1 { margin-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.issue-card, .issue-header { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 8px; }
.issue-card h3 { margin-top: 0; font-size: 1.2rem; }
.issue-cover { width: 150px; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,.12); flex-shrink: 0; }
.issue-header h1 { margin-top: 0; }

/* Article lists */
.article-list { display: flex; flex-direction: column; }
.article-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.article-item-title { margin: 0 0 6px; font-size: 1.12rem; }
.article-item-title a { color: var(--ink); text-decoration: none; }
.article-item-title a:hover { color: var(--brand); text-decoration: underline; }
.article-item-authors { color: var(--muted); font-size: .95rem; }
.article-item-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .85rem; color: var(--muted); margin-top: 4px; }
.article-item-actions { margin-top: 10px; display: flex; gap: 8px; }
.issue-section-title { border-bottom: 2px solid var(--brand); padding-bottom: 6px; font-size: 1.15rem; }

/* Article page */
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; font-weight: 700; color: var(--brand); }
.article-title { font-size: 1.85rem; }
.authors { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 6px; }
.author-name { font-weight: 600; }
.author-aff { display: block; color: var(--muted); font-size: .9rem; }
.orcid { display: inline-block; background: #a6ce39; color: #fff; font-size: .68rem; font-weight: 700; border-radius: 50%; width: 18px; height: 18px; line-height: 18px; text-align: center; text-decoration: none; vertical-align: 1px; margin-left: 4px; }
.author-mail { text-decoration: none; margin-left: 4px; }
.article-meta { font-size: .92rem; color: var(--muted); display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article-meta > div { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.label { font-weight: 600; color: var(--ink); }
.article-actions { margin: 18px 0; display: flex; gap: 10px; flex-wrap: wrap; }
.paywall { padding: 12px 16px; background: var(--bg-soft); border-radius: var(--radius); color: var(--muted); }
.article-section h2 { font-size: 1.2rem; }
.keywords { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.keywords li { background: var(--bg-soft); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; font-size: .88rem; }
.references { padding-left: 1.4em; font-size: .92rem; }
.references li { margin-bottom: 6px; overflow-wrap: anywhere; }
.citation { font-size: .9rem; overflow-wrap: anywhere; }
.prose { overflow-wrap: break-word; }
.prose p { margin: 0 0 1em; }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 10px; }

/* Sidebar */
.col-side { display: flex; flex-direction: column; gap: 20px; }
.side-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fff; }
.side-box h3 { margin: 0 0 10px; font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.side-cta { background: var(--bg-soft); }
.side-link { display: block; text-align: center; margin-top: 10px; font-size: .92rem; }
.side-nav { list-style: none; padding: 0; margin: 0; }
.side-nav li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.side-nav li:last-child { border-bottom: 0; }
.side-nav a { text-decoration: none; }
.side-cover { border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,.12); width: 100%; }
.info-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: .92rem; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* Archive */
.issue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.issue-tile { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.issue-tile img, .issue-tile-placeholder { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.issue-tile-placeholder { display: flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; font-family: var(--serif); font-size: 2rem; }
.issue-tile-title { font-weight: 600; font-size: .95rem; }
.issue-tile:hover .issue-tile-title { color: var(--brand); }
.issue-tile-meta { font-size: .85rem; color: var(--muted); }

/* Board */
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.board-card { display: flex; gap: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.board-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.board-photo-empty { display: flex; align-items: center; justify-content: center; background: var(--bg-soft); color: var(--brand); font-family: var(--serif); font-size: 2rem; }
.board-position { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); font-weight: 700; }
.board-name { font-weight: 700; font-size: 1.05rem; }
.board-aff { color: var(--muted); font-size: .9rem; }
.board-links { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .85rem; margin-top: 4px; overflow-wrap: anywhere; }

/* Search */
.search-form { display: flex; gap: 8px; margin-bottom: 16px; }
.search-form input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; }
.pagination { display: flex; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.pagination a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; }
.pagination a[aria-current] { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Error */
.error-page { text-align: center; padding: 40px 0; }
.error-code { font-family: var(--serif); font-size: 4rem; color: var(--brand); font-weight: 700; }

/* Footer */
.site-footer { background: #10233d; color: #c7d2e0; font-size: .92rem; padding-top: 32px; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0 0 6px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-bottom: 24px; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; padding-bottom: 18px; font-size: .85rem; }

@media (max-width: 900px) {
  .layout-2col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 640px) {
  h1, .article-title { font-size: 1.5rem; }
  .brand-name { font-size: 1.15rem; }
  .brand-logo { height: 48px; }
  .header-search { flex-basis: 100%; }
  .nav-toggle-label { display: block; padding: 12px 0; font-weight: 600; cursor: pointer; }
  .nav-toggle-label::before { content: "☰ "; }
  .main-nav ul { display: none; flex-direction: column; padding-bottom: 8px; }
  .nav-toggle:checked + .main-nav ul { display: flex; }
  .main-nav a { padding: 8px 0; border-bottom: 0; }
  .issue-card, .issue-header { flex-direction: column; }
  .issue-cover { width: 120px; }
  .board-grid { grid-template-columns: 1fr; }
}
