/* ==========================================================================
   JETOL — Journal of Educational Technology and Online Learning
   ========================================================================== */

:root {
  --navy-900: #0b2239;
  --navy-800: #0f2f4d;
  --navy-700: #123a5c;
  --blue-600: #1d5f93;
  --blue-500: #2a73ad;
  --blue-100: #e6f0f8;
  --blue-50:  #f2f7fb;
  --teal-500: #14a0a8;
  --green-500: #1f9d55;
  --green-50: #e9f7ef;

  --bg: #f3f5f8;
  --surface: #ffffff;
  --border: #dde4ec;
  --border-strong: #c9d4df;
  --text: #1b2733;
  --text-soft: #3b4a5a;
  --muted: #637384;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(15, 47, 77, .06);
  --shadow: 0 1px 3px rgba(15, 47, 77, .06), 0 6px 20px rgba(15, 47, 77, .06);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Source Sans 3", "Myriad Pro", "Segoe UI", system-ui, sans-serif;

  --container: 1280px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy-800); }
:focus-visible { outline: 3px solid rgba(42, 115, 173, .45); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; }
.icon.ext { width: .85em; height: .85em; opacity: .7; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  padding: 10px 16px; background: var(--navy-800); color: #fff; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 12px; color: #fff; }

.muted { color: var(--muted); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .62em 1.1em; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: 600 .92rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-secondary { background: var(--blue-50); color: var(--navy-700); border-color: var(--border); }
.btn-secondary:hover { background: var(--blue-100); color: var(--navy-800); }
.btn-ghost { background: transparent; color: var(--navy-700); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--blue-50); color: var(--navy-800); }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: var(--blue-100); color: var(--navy-900); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn-block { display: flex; width: 100%; }

/* ---------- Top bar ---------- */

.topbar { background: var(--navy-900); color: #c6d4e2; font-size: .8rem; }
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 36px; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-item strong { color: #fff; font-weight: 600; }
.topbar-link { margin-left: auto; color: #c6d4e2; text-decoration: none; }
.topbar-link:hover { color: #fff; }

/* ---------- Masthead ---------- */

.masthead { background: var(--surface); border-bottom: 1px solid var(--border); position: relative; z-index: 50; }
.masthead-inner { display: flex; align-items: center; gap: 32px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: block; flex: none; }
.brand img { display: block; height: 64px; width: auto; }

.journal-meta {
  display: flex; gap: 28px; margin: 0 0 0 auto; padding-left: 28px; border-left: 1px solid var(--border);
  font-size: .82rem;
}
.journal-meta dt { color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.journal-meta dd { margin: 2px 0 0; color: var(--text); font-weight: 500; }

.badge-open {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
  background: var(--green-50); color: var(--green-500); font-weight: 600; font-size: .78rem;
}
.badge-open .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(31, 157, 85, .18); }


.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: #fff; color: var(--navy-800); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }

/* ---------- Primary navigation ---------- */

.primary-nav { background: var(--navy-800); }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; }
.menu > li { position: relative; }
.menu-link {
  display: flex; align-items: center; gap: 6px; height: 50px; padding: 0 18px;
  color: #e3ebf3; font: 500 .93rem/1 var(--font-sans); text-decoration: none;
  background: none; border: 0; cursor: pointer; border-bottom: 3px solid transparent; border-top: 3px solid transparent;
}
.menu-link:hover, .has-sub:hover > .menu-link, .has-sub.is-open > .menu-link { color: #fff; background: rgba(255, 255, 255, .06); }
.menu > li.is-active > .menu-link { color: #fff; border-bottom-color: var(--teal-500); }
.menu .chev { width: 16px; height: 16px; transition: transform .2s; }
.has-sub.is-open .chev { transform: rotate(180deg); }

.menu > li.nav-cta { margin-left: auto; display: flex; align-items: center; }
.nav-cta .menu-link {
  height: auto; padding: 9px 14px; border: 0; border-radius: var(--radius-sm);
  background: var(--teal-500); color: #fff; font-weight: 600;
}
.nav-cta .menu-link:hover { background: #0f8a91; }
.menu-issn { display: flex; align-items: center; padding-left: 14px; }
.menu-issn span {
  color: #a9bdd0; font-size: .8rem; font-weight: 500; padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius-sm); white-space: nowrap;
}

.sub-menu {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 300px;
  background: #fff; border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 14px 34px rgba(11, 34, 57, .16);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.has-sub:hover > .sub-menu, .has-sub.is-open > .sub-menu, .has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a {
  display: block; padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; font-size: .92rem; line-height: 1.35;
}
.sub-menu a:hover { background: var(--blue-50); color: var(--blue-600); }
.sub-menu a[aria-current="page"] { background: var(--blue-100); color: var(--navy-800); font-weight: 600; }

.nav-overlay { position: fixed; inset: 0; background: rgba(11, 34, 57, .5); z-index: 90; }

/* ---------- Hero (home) ---------- */

.hero {
  color: #fff;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(20, 160, 168, .35), transparent 60%),
    radial-gradient(700px 380px at 10% 120%, rgba(42, 115, 173, .45), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
}
.hero-inner { display: flex; align-items: center; gap: 44px; padding-top: 44px; padding-bottom: 44px; }
.hero-cover {
  width: 170px; flex: none; border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .12);
}
.eyebrow { margin: 0 0 8px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #8fd6da; }
.hero h1 {
  margin: 0 0 22px; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.85rem, 1.2rem + 2.1vw, 2.8rem); line-height: 1.12; letter-spacing: 0; max-width: 30ch;
}
.facts { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li {
  display: flex; flex-direction: column; padding: 8px 14px; border-radius: 8px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
}
.facts span { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #a9c2d8; }
.facts strong { font-size: .95rem; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Page band ---------- */

.page-band {
  background: linear-gradient(180deg, var(--surface), var(--blue-50));
  border-bottom: 1px solid var(--border);
  padding: 26px 0 28px;
}
.page-band h1 {
  margin: 6px 0 0; font-family: var(--font-display); font-weight: 600; color: var(--navy-800);
  font-size: clamp(1.65rem, 1.25rem + 1.3vw, 2.25rem); line-height: 1.2; letter-spacing: 0;
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue-600); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--text-soft); }

/* ---------- Layout ---------- */

.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start;
  padding-top: 28px; padding-bottom: 56px;
}

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-title {
  margin: 0; padding: 14px 18px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy-700); border-bottom: 1px solid var(--border);
}

/* Article (center) */
.article { padding: 32px 36px 36px; }
.article-title {
  margin: 0 0 16px; font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; color: var(--navy-800);
}

.prose { color: var(--text-soft); font-size: 1.01rem; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 1em; }
.prose strong { color: var(--text); }
.prose h3, .prose h4, .prose h5 {
  color: var(--navy-800); font-family: var(--font-display); font-weight: 600; line-height: 1.3; margin: 1.8em 0 .7em;
}
.prose h3 { font-size: 1.5rem; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.prose h4 { font-size: 1.3rem; }
.prose h5 { font-family: var(--font-sans); font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.prose h5 strong { color: inherit; }
.prose p:not(:first-child):has(> strong:only-child) { margin-top: 1.6em; color: var(--navy-800); }
.prose ul { margin: 0 0 1.2em; padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: .6em; }
.prose ul li::before {
  content: ""; position: absolute; left: 6px; top: .62em; width: 7px; height: 7px; border-radius: 2px;
  background: var(--teal-500); transform: rotate(45deg);
}
.prose a { word-break: break-word; }

.index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 1.6em; }
.prose .index-grid li { margin: 0; padding: 0; }
.prose .index-grid li::before { content: none; }
.index-grid a {
  display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100%;
  padding: 18px 14px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); text-decoration: none; text-align: center;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.index-grid a:hover { border-color: var(--blue-500); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--blue-600); }
.index-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 64px; }
.index-logo img { max-width: 120px; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.index-name { font-size: .88rem; font-weight: 500; line-height: 1.35; }

/* Announcements */
.announcement {
  padding: 22px 24px; margin-bottom: 18px; border: 1px solid var(--border); border-left: 4px solid var(--teal-500);
  border-radius: var(--radius); background: var(--blue-50);
}
.prose .announcement h3 { margin: 4px 0 6px; padding: 0; border: 0; font-size: 1.35rem; }
.prose .announcement-tag { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-500); }
.prose .announcement-theme { margin: 0 0 12px; font-style: italic; color: var(--navy-700); }
.prose .announcement-dates { display: grid; gap: 8px; margin: 14px 0 16px; }
.prose .announcement-dates li {
  display: flex; gap: 14px; align-items: baseline; margin: 0; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.prose .announcement-dates li::before { content: none; }
.announcement-dates span { flex: none; min-width: 120px; font-weight: 700; color: var(--navy-800); }
.prose .announcement-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.prose .announcement-actions a { text-decoration: none; }
.prose .announcement-actions .btn-primary { color: #fff; }

.embed-twitter { margin-top: 1.5em; max-width: 640px; }

/* Latest issue (home) — Springer benzeri liste */
.home-tabs { padding-top: 10px; }
.tabs { display: flex; gap: 4px; margin: 0 0 22px; border-bottom: 1px solid var(--border); }
.tabs [role="tab"] {
  margin-bottom: -1px; padding: 12px 6px; margin-right: 18px; border: 0; border-bottom: 3px solid transparent; background: none;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--muted); cursor: pointer;
}
.tabs [role="tab"]:hover { color: var(--navy-700); }
.tabs [role="tab"][aria-selected="true"] { color: var(--navy-800); border-bottom-color: var(--teal-500); }
.cited-source { margin: 14px 0 0; font-size: .84rem; color: var(--muted); }
.latest { margin-top: 20px; padding: 28px 36px 26px; }
.latest-issue { display: flex; gap: 22px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.latest-issue .issue-cover { width: 96px; }
.latest-label { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--text-soft); }
.latest-issue-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 6px; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1.2; color: var(--navy-800); }
.latest-issue-name span + a { padding-left: 12px; border-left: 1px solid var(--border-strong); }
.latest-issue-name a { color: var(--navy-800); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.latest-issue-name a:hover { color: var(--blue-600); }
.latest .issue-special { margin: 0 0 6px; }
.btn-outline { margin-top: 10px; background: transparent; color: var(--navy-700); border: 2px solid var(--navy-700); border-radius: 999px; }
.btn-outline:hover { background: var(--navy-700); color: #fff; }
.latest-heading { margin: 26px 0 4px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--navy-800); }
.latest-articles { margin: 0; padding: 0; list-style: none; }
.latest-articles li { padding: 18px 0; border-bottom: 1px solid var(--border); }
.latest-title {
  font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; line-height: 1.35;
  color: var(--navy-800); text-decoration: underline; text-decoration-color: rgba(18, 58, 92, .25); text-underline-offset: 3px;
}
.latest-title:hover { color: var(--blue-600); text-decoration-color: currentColor; }
.latest-authors { margin: 8px 0 4px; font-size: .92rem; color: var(--text-soft); }
.latest-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; font-size: .85rem; color: var(--muted); }
.latest-meta > * + * { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--border-strong); }
.latest-type { font-weight: 700; color: var(--text); }
.latest-more { display: inline-block; margin-top: 16px; font-weight: 600; text-decoration: none; }
.latest-more:hover { text-decoration: underline; }

/* Sidebar (right) */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.cover-card { padding: 16px; text-align: center; }
.cover-card .journal-cover { margin: 0 auto; width: 170px; border-radius: 4px; box-shadow: 0 8px 22px rgba(11, 34, 57, .18); }

/* Dergi kapağı: yazısız taban görsel + son sayı bilgisi (konum ve renk özgün kapaktaki yazıyla aynı) */
.journal-cover { position: relative; container-type: inline-size; overflow: hidden; }
.journal-cover img { display: block; width: 100%; height: auto; }
.journal-cover-issue {
  position: absolute; left: 0; right: 1%; top: 54.8%; text-align: center;
  font-family: var(--font-display); font-weight: 600; font-size: 4.7cqw; line-height: 1.17;
  color: #eef1f5; letter-spacing: -.005em; pointer-events: none;
}
.journal-cover-special { display: block; margin-top: .45em; font-size: .78em; line-height: 1.2; color: #bfe6ea; }
.actions-card { padding: 14px; display: grid; gap: 10px; }
.info-card dl { margin: 0; padding: 6px 18px 12px; }
.info-card dl > div { padding: 9px 0; border-bottom: 1px dashed var(--border); }
.info-card dl > div:last-child { border-bottom: 0; }
.info-card dt { font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.info-card dd { margin: 2px 0 0; font-size: .92rem; font-weight: 500; }
.license-card { padding: 16px 18px; text-align: center; }
.license-card img { display: block; margin: 0 auto 10px; width: 103px; }
.license-card p { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.5; }

/* ---------- Journal boards ---------- */

.board-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.board-toc a {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--blue-50);
  font-size: .82rem; font-weight: 500; color: var(--navy-700); text-decoration: none;
}
.board-toc a:hover { border-color: var(--blue-500); color: var(--blue-600); }

.people { display: grid; gap: 14px; }
.people-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.person {
  display: flex; gap: 16px; align-items: flex-start; padding: 16px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.person:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.avatar {
  width: 72px; height: 72px; flex: none; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--blue-50); box-shadow: 0 0 0 1px var(--border);
}
.avatar-initials {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-500)); color: #fff;
  font-weight: 700; font-size: 1.35rem; letter-spacing: .02em;
}
.person-body { min-width: 0; }
.prose .person-name { margin: 2px 0 4px; font-weight: 700; color: var(--text); font-size: 1.02rem; }
.prose .person-aff { margin: 0 0 3px; font-size: .88rem; line-height: 1.45; color: var(--text-soft); }
.orcid {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .82rem;
  color: var(--text-soft); text-decoration: none;
}
.orcid:hover { color: #3a7d0a; }
.orcid-logo {
  display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%;
  background: #a6ce39; color: #fff; font-size: .6rem; font-weight: 700; letter-spacing: -.02em;
}

.table-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.table-tools p { margin: 0; font-size: .9rem; }
.table-search { position: relative; flex: 1 1 260px; max-width: 360px; }
.table-search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.table-search input {
  width: 100%; padding: 10px 12px 10px 38px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: .92rem; color: var(--text); background: #fff;
}
.table-search input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(42, 115, 173, .18); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th {
  position: sticky; top: 0; text-align: left; padding: 12px 16px; background: var(--navy-800); color: #fff;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.data-table td { padding: 11px 16px; border-top: 1px solid var(--border); vertical-align: top; }
.data-table td:first-child { font-weight: 600; color: var(--text); white-space: nowrap; }
.data-table tbody tr:nth-child(even) { background: var(--blue-50); }
.data-table tbody tr:hover { background: var(--blue-100); }
.table-empty { padding: 16px; margin: 0; color: var(--muted); text-align: center; }

/* ---------- Statistics ---------- */

.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 8px; }
.stat-tile {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--blue-50);
}
.stat-label { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.stat-value { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; line-height: 1; color: var(--navy-800); }
.stat-value small { margin-left: 6px; font-family: var(--font-sans); font-size: .9rem; font-weight: 500; color: var(--muted); }

.chart { margin: 0 0 18px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 18px; margin: 0 0 14px; padding: 0; list-style: none; font-size: .88rem; color: var(--text-soft); }
.prose .chart-legend li { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; }
.prose .chart-legend li::before { content: none; }
.swatch { width: 12px; height: 12px; border-radius: 3px; }
.swatch-accepted, .bar-accepted { background: #1d5f93; }
.swatch-rejected, .bar-rejected { background: #cf6a2c; }

.bar-chart {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 16px;
  height: 240px; padding-top: 22px; border-bottom: 1px solid var(--border-strong);
}
.bar-group { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.bars { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 100%; }
.bar {
  position: relative; width: min(38px, 42%); height: var(--h); min-height: 2px;
  border-radius: 4px 4px 0 0; cursor: default;
}
.bar > span {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: 4px;
  font-size: .8rem; font-weight: 600; color: var(--text-soft); white-space: nowrap;
}
.bar::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 26px); left: 50%; z-index: 2;
  transform: translate(-50%, 4px); padding: 6px 10px; border-radius: var(--radius-sm);
  background: var(--navy-900); color: #fff; font-size: .78rem; font-weight: 500; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s;
}
.bar:hover::after { opacity: 1; transform: translate(-50%, 0); }
.bar:hover { filter: brightness(1.1); }
.bar-year { position: absolute; top: 100%; left: 0; right: 0; padding-top: 8px; text-align: center; font-size: .85rem; font-weight: 600; color: var(--text-soft); }
.chart { padding-bottom: 30px; }

.stats-table td, .stats-table th { text-align: right; }
.stats-table td:first-child, .stats-table th:first-child { text-align: left; }
.data-table.stats-table td:first-child { white-space: normal; }
.timing-table .timing-group td { padding-top: 14px; background: var(--surface); font-weight: 700; color: var(--navy-800); }
.data-table.timing-table tbody tr.timing-sub td:first-child { padding-left: 32px; font-weight: 500; color: var(--text-soft); }

.year-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.year-tabs button {
  padding: 7px 16px; border: 1px solid var(--border-strong); border-radius: 999px; background: #fff;
  font: 600 .88rem/1 var(--font-sans); color: var(--navy-700); cursor: pointer;
}
.year-tabs button:hover { border-color: var(--blue-500); color: var(--blue-600); }
.year-tabs button[aria-selected="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.prose .stats-source { margin-top: 16px; font-size: .85rem; color: var(--muted); }

/* ---------- Archive ---------- */

.archive-year + .archive-year { margin-top: 8px; }
.prose .archive-year h3 { margin-top: 1.2em; }
.prose .archive-year:first-child h3 { margin-top: 0; }
.issue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.prose .issue-grid li { margin: 0; padding: 0; }
.prose .issue-grid li::before { content: none; }
.issue-card {
  display: flex; gap: 14px; align-items: center; height: 100%; padding: 12px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.issue-card:hover { border-color: var(--blue-500); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.issue-card .issue-cover { width: 64px; flex: none; }
.issue-cover { display: block; flex: none; border-radius: 4px; box-shadow: 0 4px 12px rgba(11, 34, 57, .16); }
.issue-card-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.issue-card-body strong { font-size: .98rem; color: var(--navy-800); }
.issue-special { font-size: .84rem; font-weight: 600; color: var(--teal-500); }
.issue-meta { font-size: .82rem; color: var(--muted); }

.issue-head { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 8px; }
.issue-head .issue-cover { width: 130px; flex: none; }
.issue-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; flex: 1; }
.issue-facts dt, .article-facts dt { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.issue-facts dd, .article-facts dd { margin: 2px 0 0; font-weight: 500; color: var(--text); }

.prose .special-note { margin: 18px 0 0; padding: 12px 16px; border-left: 3px solid var(--teal-500); border-radius: var(--radius-sm); background: var(--blue-50); font-size: .92rem; }
.prose .article-list { margin: 0 0 1.4em; padding: 0; list-style: none; }
.prose .article-list > li { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--border); }
.prose .article-list > li::before { content: none; }
.prose .article-list > li:first-child { padding-top: 4px; }
.article-link { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; line-height: 1.35; color: var(--navy-800); text-decoration: none; }
.article-link:hover { color: var(--blue-600); text-decoration: underline; }
.prose .article-authors { margin: 6px 0 4px; font-size: .92rem; color: var(--text-soft); }
.prose .article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0; font-size: .84rem; color: var(--muted); }
.pdf-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; }
.pdf-link:hover { text-decoration: underline; }

.prose .article-type { margin: 0 0 14px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-500); }
.prose .author-list { display: grid; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.prose .author-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0; padding: 0; }
.prose .author-list li::before { content: none; }
.author-list strong { font-size: 1.02rem; }
.author-inst { font-size: .9rem; color: var(--muted); }
.author-list .orcid { margin-top: 0; }
.article-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.prose .article-actions a { text-decoration: none; }
.prose .article-actions .btn-primary { color: #fff; }
.article-facts {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px 24px;
  margin: 0 0 8px; padding: 16px 18px; border-radius: var(--radius); background: var(--blue-50); border: 1px solid var(--border);
}
.prose .abstract { text-align: justify; hyphens: auto; }
.prose .keyword-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.4em; padding: 0; list-style: none; }
.prose .keyword-list li {
  margin: 0; padding: 5px 12px; border-radius: 999px; background: var(--blue-50); border: 1px solid var(--border);
  font-size: .86rem; color: var(--navy-700);
}
.prose .keyword-list li::before { content: none; }
.references { margin: 1.4em 0; border: 1px solid var(--border); border-radius: var(--radius); }
.references summary { padding: 12px 16px; font-weight: 600; color: var(--navy-800); cursor: pointer; }
.references ol { margin: 0; padding: 4px 20px 16px 40px; font-size: .88rem; }
.references ol li { margin-bottom: 6px; word-break: break-word; }
.prose .article-license { font-size: .85rem; color: var(--muted); }

.archive-search { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.archive-search-field { position: relative; flex: 1 1 280px; }
.archive-search-field .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.archive-search input, .archive-search select {
  height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: .95rem; color: var(--text); background: #fff;
}
.archive-search input { width: 100%; padding: 0 12px 0 40px; }
.archive-search select { padding: 0 10px; cursor: pointer; }
.archive-search input:focus, .archive-search select:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(42, 115, 173, .18); }
.archive-search .btn { height: 44px; }
.prose .search-hint { margin: 0 0 8px; color: var(--muted); }
.prose .search-snippet { margin: 4px 0 6px; font-size: .9rem; line-height: 1.55; color: var(--text-soft); }
.search-results mark { padding: 0 2px; border-radius: 3px; background: #fde9a8; color: inherit; }
.prose .article-meta a { font-weight: 500; }

@media (max-width: 600px) {
  .issue-head { flex-direction: column; }
  .issue-head .issue-cover { width: 110px; }
}

/* ---------- Contact ---------- */

.contact-list { margin: 0 0 1.5em; }
.contact-list > div { padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-list > div:first-child { padding-top: 0; }
.contact-list dt { margin-bottom: 4px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 0; line-height: 1.6; }
.contact-list strong { color: var(--text); }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-900); color: #b3c4d4; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr .8fr; gap: 36px; padding-top: 48px; padding-bottom: 40px; }
.footer-name { margin: 0 0 10px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: #fff; line-height: 1.3; }
.footer-about p { margin: 0 0 10px; line-height: 1.6; }
.footer-issn { color: #8fd6da; font-weight: 600; }
.footer-heading { margin: 0 0 12px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; line-height: 1.35; }
.site-footer a { color: #b3c4d4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1240px) {
  .journal-meta > div:nth-child(2) { display: none; }
}

@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0, 1fr) 270px; }
  .journal-meta { display: none; }
  .menu-link { padding: 0 14px; }
}

@media (max-width: 980px) {
  :root { --gutter: 20px; }
  .nav-toggle { display: inline-flex; }
  .brand img { height: 52px; }
  .masthead-inner { padding-top: 12px; padding-bottom: 12px; }

  /* Off-canvas menu */
  .primary-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); z-index: 100;
    overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
    padding-top: 64px; box-shadow: -10px 0 30px rgba(0, 0, 0, .25);
  }
  .nav-open .primary-nav { transform: none; visibility: visible; }
  .nav-open .nav-toggle { position: fixed; top: 12px; right: var(--gutter); z-index: 110; background: var(--navy-700); color: #fff; border-color: transparent; }
  .nav-open .nav-toggle .icon-open { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
  body.nav-open { overflow: hidden; }
  .nav-open .masthead { z-index: 100; }

  .primary-nav .container { padding: 0; }
  .menu { flex-direction: column; }
  .menu-link { width: 100%; height: auto; padding: 14px 22px; border: 0; justify-content: space-between; font-size: 1rem; }
  .menu > li.is-active > .menu-link { box-shadow: inset 3px 0 0 var(--teal-500); }
  .menu > li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .sub-menu {
    position: static; min-width: 0; padding: 0 0 10px; background: transparent; border: 0; box-shadow: none; border-radius: 0;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .has-sub:hover > .sub-menu { display: none; }
  .has-sub.is-open > .sub-menu { display: block; }
  .sub-menu a { color: #c6d4e2; padding: 10px 22px 10px 36px; border-radius: 0; }
  .sub-menu a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
  .sub-menu a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: #fff; }
  .menu > li.nav-cta { margin: 18px 22px 0; border: 0; }
  .nav-cta .menu-link { justify-content: center; padding: 13px; }
  .menu-issn { padding: 16px 22px; border: 0 !important; }

  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cover-card { display: none; }
  .hero-inner { gap: 28px; }
}

@media (max-width: 760px) {
  .topbar-oa { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 15.5px; }
  .topbar-inner { gap: 14px; }
  .topbar-link { font-size: .78rem; }
  .brand img { height: 44px; }
  .hero-inner { flex-direction: column; align-items: flex-start; padding-top: 30px; padding-bottom: 32px; }
  .hero-cover { width: 120px; }
  .facts li { padding: 6px 10px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .layout { padding-top: 18px; gap: 16px; }
  .article { padding: 22px 18px 24px; }
  .sidebar { grid-template-columns: minmax(0, 1fr); }
  .latest { padding: 22px 18px; }
  .tabs [role="tab"] { font-size: 1.1rem; margin-right: 10px; }
  .latest-meta { gap: 4px 14px; }
  .latest-meta > * + * { margin-left: 0; padding-left: 0; border-left: 0; }
  .latest-issue { align-items: flex-start; }
  .latest-issue .issue-cover { width: 72px; }
  .latest-issue-name { font-size: 1.3rem; }
  .person { padding: 14px; gap: 12px; }
  .avatar { width: 58px; height: 58px; }
  .avatar-initials { font-size: 1.1rem; }
  .data-table td:first-child { white-space: normal; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 36px; }
}

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

@media print {
  .topbar, .primary-nav, .nav-toggle, .sidebar, .site-footer, .hero-actions, .table-tools { display: none !important; }
  body { background: #fff; }
  .layout { display: block; padding: 0; }
  .card { border: 0; box-shadow: none; }
  .article { padding: 0; }
}
