/*
Theme Name: Analegeo
Theme URI: https://analegeo.ro
Author: Idealab SRL
Author URI: https://idealab.ro
Description: Lightweight theme for the Annals of the University of Craiova – Series Geography. Current issue on the homepage, issue archive, authors index, keyword dictionary and Google Scholar metadata. No page builder, qTranslate-XT compatible.
Version: 0.3.1
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: analegeo
*/

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face { font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("assets/fonts/literata-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("assets/fonts/literata-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("assets/fonts/literata-latin-wght-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("assets/fonts/literata-latin-ext-wght-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
	--navy: #173A5E;      /* water – primary */
	--navy-dark: #0F2944;
	--navy-deep: #0D2036; /* footer */
	--navy-tint: #E3EAF3;
	--green: #2E6B4E;     /* vegetation – accent */
	--green-tint: #E2EFE6;
	--green-line: #B5D3C0;
	--sand: #F6F5F1;      /* earth – page ground */
	--paper: #FFFFFF;
	--ink: #1D2124;
	--ink-2: #2C3337;
	--muted: #5F686B;
	--line: #DAD8D2;
	--line-soft: #EEECE7;
	--serif: "Literata", Georgia, "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
	--radius: 8px;
	--wrap: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--sand); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 920px; padding-top: 40px; padding-bottom: 64px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy); color: #E4EAF2; font-size: 13px; }
.topbar-inner { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.topbar .coords { opacity: .7; margin-left: 10px; font-family: var(--mono); font-size: 12px; }
.topbar-right { display: flex; gap: 16px; align-items: center; }
.langs { display: flex; gap: 4px; }
.lang { color: #E4EAF2; text-decoration: none; padding: 2px 8px; border-radius: 4px; }
.lang.is-active { color: #fff; font-weight: 600; border: 1px solid #7D93AF; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.brand-title { font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.15; }
.brand-sub { font-size: 13px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.primary-nav { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu a { display: block; padding: 10px 12px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; border-bottom: 2px solid transparent; }
.primary-nav .menu a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { color: var(--navy); border-bottom-color: var(--navy); }
.primary-nav .sub-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 0; top: 100%; min-width: 260px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(13,32,54,.08); display: none; z-index: 20; }
.primary-nav .menu > li:hover > .sub-menu, .primary-nav .menu > li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { border: 0; font-size: 14px; padding: 8px 16px; }
.header-search input { font: inherit; font-size: 14px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); width: 200px; background: var(--sand); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero .contours { position: absolute; right: 0; top: 0; width: 60%; height: 100%; pointer-events: none; }
.hero .contours path { fill: none; stroke: var(--green); stroke-opacity: .16; stroke-width: 1; }
.hero-inner { position: relative; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.hero-sm .hero-inner { padding-top: 32px; padding-bottom: 32px; gap: 32px; }
.hero-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.hero-title { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; }
.hero-vol { font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-top: -8px; }
.lead { font-size: 17px; color: #4A5357; max-width: 640px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: #4A5357; }
.hero-facts b { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 6px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--navy); cursor: pointer; font-family: var(--sans); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-small { padding: 7px 14px; font-size: 14px; background: var(--paper); color: var(--ink); border-color: var(--line); }

/* ---------- Covers ---------- */
.cover { display: block; text-decoration: none; flex: 0 0 auto; }
.cover-lg { width: 240px; }
.cover-md { width: 180px; }
.cover-sm { width: 72px; }
.issue-cover { position: relative; display: block; aspect-ratio: 210 / 297; background: var(--cover, var(--navy)); color: #fff; overflow: hidden; box-shadow: 0 10px 26px rgba(13,32,54,.18); }
.issue-cover .cover-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.issue-cover .cover-lines path { fill: none; stroke: #fff; stroke-opacity: .22; stroke-width: 1.2; }
.cover-top, .cover-bottom { position: absolute; left: 8%; right: 8%; display: flex; flex-direction: column; }
.cover-top { top: 6%; gap: 4px; }
.cover-bottom { bottom: 6%; }
.cover-uni { font-size: .5em; letter-spacing: .14em; text-transform: uppercase; opacity: .85; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 4px; }
.cover-title { font-family: var(--serif); font-weight: 700; font-size: 1.15em; line-height: 1.08; }
.cover-series { font-size: .55em; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.cover-year { font-family: var(--serif); font-weight: 700; font-size: 2.6em; line-height: .95; letter-spacing: -.01em; }
.cover-year.is-long { font-size: 1.55em; }
.cover-vol { font-weight: 600; font-size: .7em; letter-spacing: .06em; text-transform: uppercase; margin-top: 6px; opacity: .9; }
.cover-lg .issue-cover { font-size: 22px; }
.cover-md .issue-cover { font-size: 16px; }
.cover-sm .issue-cover { font-size: 7px; }
.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
.cover-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; font-size: 14px; }
.cover-card .issue-cover { font-size: 13px; }

/* ---------- Layout ---------- */
.layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 40px; padding-bottom: 64px; }
.content-col { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.side-col { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 8px; }
.section-head h2 { font-size: 28px; }
.band { background: var(--paper); border-top: 1px solid var(--line); padding: 44px 0; }
.band .section-head { border-bottom: 0; }

/* ---------- Table of contents ---------- */
.toc-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: flex; gap: 20px; margin-bottom: 12px; }
.toc-num { flex: 0 0 32px; font-family: var(--serif); font-size: 24px; font-weight: 600; color: #6B7579; }
.toc-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.toc-meta-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.toc-title { font-size: 20px; line-height: 1.3; font-weight: 600; }
.toc-title a { color: var(--ink); text-decoration: none; }
.toc-title a:hover { color: var(--navy); }
.toc-authors { font-size: 14px; }
.toc-authors a { text-decoration: none; }
.toc-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; font-weight: 500; }
.toc-links a { text-decoration: none; }
.toc-links .doi { font-family: var(--mono); font-size: 13px; color: var(--muted); font-weight: 400; }

/* ---------- Chips & cards ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 4px; text-decoration: none; }
.chip-green { color: var(--green); background: var(--green-tint); border: 1px solid var(--green-line); }
.chip-pill { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 400; padding: 7px 14px; }
.chip-pill:hover { border-color: var(--navy); color: var(--navy); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card-label { display: block; margin: 0 0 12px; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.card-green { background: var(--green); color: #fff; display: flex; flex-direction: column; gap: 10px; }
.card-green h3 { font-size: 22px; }
.card-green p { color: #D9EADF; font-size: 14px; margin: 0; }
.card-green a { color: #fff; font-size: 14px; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); font-size: 15px; }
.link-list a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.index-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.index-list li { border: 1px solid var(--line); border-radius: 6px; padding: 10px; text-align: center; font-size: 13px; font-weight: 600; color: #4A5357; }

/* ---------- Article ---------- */
.article-wrap { padding-top: 28px; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { text-decoration: none; }
.article .layout { padding-top: 16px; }
.article-title { font-size: clamp(30px, 4vw, 42px); line-height: 1.12; }
.article-authors { font-size: 18px; font-weight: 600; }
.article-authors a { text-decoration: none; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts > div { background: var(--paper); padding: 12px 16px; }
.facts dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.dates { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; font-size: 14px; color: #4A5357; }
.licence { padding: 4px 10px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 600; }
.abstract h2, .keywords h2 { font-size: 24px; margin-bottom: 10px; }
.abstract p { font-family: var(--serif); font-size: 19px; line-height: 1.7; color: var(--ink-2); max-width: 70ch; }
.cite p { font-size: 15px; }
.issue-mini { display: flex; gap: 16px; align-items: flex-start; }
.issue-mini > div { display: flex; flex-direction: column; gap: 6px; }
.mini-toc { list-style: none; margin: 0; padding: 0; }
.mini-toc a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); font-size: 14px; line-height: 1.45; }

/* ---------- Pages ---------- */
.page-title { font-size: clamp(32px, 4vw, 44px); margin: 8px 0 16px; }
.prose { font-size: 17px; }
.prose h2 { font-size: 26px; margin: 1.4em 0 .5em; }
.prose h3 { font-size: 20px; margin: 1.2em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: 14px; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--line-soft); }
.page-layout .content-col { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 36px; display: block; }

/* ---------- Editorial board ---------- */
.board-title { font-size: 24px; margin: 32px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.board-title:first-of-type { margin-top: 8px; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.board-card { display: flex; gap: 16px; align-items: flex-start; background: var(--sand); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; }
.board-photo { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 50%; object-fit: cover; background: var(--navy-tint); }
.board-initials { display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--navy); }
.board-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.board-role { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.board-name { font-family: var(--serif); font-size: 17px; line-height: 1.3; }
.board-aff { font-size: 14px; color: #4A5357; line-height: 1.45; }
.board-link { font-size: 13px; font-weight: 600; text-decoration: none; margin-top: 4px; }

/* ---------- Archive, authors, dictionary ---------- */
.year-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 24px; }
.year-jump a { padding: 7px 11px; border: 1px solid var(--line); background: var(--paper); border-radius: 6px; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--ink); }
.issue-list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.issue-row { border-bottom: 1px solid var(--line); }
.issue-row:last-child { border-bottom: 0; }
.issue-row summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 18px 24px; cursor: pointer; list-style: none; }
.issue-row summary::-webkit-details-marker { display: none; }
.issue-row summary::before { content: "+"; width: 28px; color: var(--navy); font-weight: 700; }
.issue-row[open] summary::before { content: "−"; }
.issue-year { font-family: var(--serif); font-size: 26px; font-weight: 700; }
.issue-vol { color: var(--navy); font-weight: 600; }
.issue-link { margin-left: auto; font-size: 14px; font-weight: 600; text-decoration: none; }
.issue-toc { padding: 0 24px 16px 68px; }
.issue-toc .toc-item { border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; padding: 14px 0; margin: 0; }
.az-group { margin-top: 24px; }
.az-letter { color: var(--navy); font-size: 30px; border-bottom: 2px solid var(--ink); padding-bottom: 6px; }
.az-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); column-gap: 24px; }
.az-list a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); }
.subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin: 24px 0; }
.subject-card { display: flex; flex-direction: column; gap: 12px; }
.subject-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.subject-head h2 { font-size: 21px; }
.subject-head a { color: var(--ink); text-decoration: none; }
.az-card h2 { font-size: 24px; margin-bottom: 12px; }
.az-details { border-top: 1px solid var(--line-soft); padding: 10px 0; }
.az-details summary { cursor: pointer; }
.az-details .chips { padding-top: 10px; }

/* ---------- Footer (light, airy) ---------- */
.site-footer { background: var(--paper); color: #4A5357; font-size: 14px; border-top: 1px solid var(--line); margin-top: 24px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--navy); text-decoration: underline; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; padding-top: 64px; padding-bottom: 56px; }
.footer-brand { flex: 1 1 300px; max-width: 360px; display: flex; gap: 18px; align-items: flex-start; }
.footer-brand img { width: 52px; flex: 0 0 52px; }
.footer-brand > div { display: flex; flex-direction: column; gap: 4px; line-height: 1.6; }
.footer-title { color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.25; }
.footer-sub { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); font-weight: 600; margin-bottom: 8px; }
.footer-cols { flex: 2 1 560px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols b { color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid var(--line-soft); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 24px; font-size: 13px; color: var(--muted); }
.footer-bottom .lang { color: var(--muted); border: 0; }
.footer-bottom .lang.is-active { color: var(--navy); font-weight: 600; border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
	.menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.primary-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
	.primary-nav.is-open { display: flex; }
	.primary-nav .menu { flex-direction: column; }
	.primary-nav .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding-left: 12px; }
	.header-search input { width: 100%; }
	.topbar .coords { display: none; }
	.hero-inner { gap: 28px; }
	.cover-lg { width: 160px; }
	.cover-lg .issue-cover { font-size: 15px; }
	.toc-item { padding: 18px; gap: 12px; }
	.issue-toc { padding-left: 24px; }
	.page-layout .content-col { padding: 22px; }
	.footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-inner { padding-top: 44px; gap: 36px; }
}

@media print {
	.topbar, .site-header, .site-footer, .side-col, .actions, .hero .contours { display: none; }
	body { background: #fff; }
}

/* ---------- Index pages: archive, authors, keywords (wireframe) ---------- */
[hidden] { display: none !important; }
.small { font-size: 13px; }
.index-page { padding-top: 32px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }
.index-head { display: flex; flex-wrap: wrap; gap: 20px 32px; justify-content: space-between; align-items: flex-end; }
.index-head > div { flex: 1 1 520px; display: flex; flex-direction: column; gap: 10px; }
.index-head .page-title, .index-band .page-title { font-size: 46px; line-height: 1.1; }
.index-band { background: var(--paper); border-bottom: 1px solid var(--line); }
.index-band .wrap { padding-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.index-tabs { display: flex; flex-wrap: wrap; gap: 4px; font-size: 15px; font-weight: 600; margin-top: 4px; }
.index-tabs a { padding: 12px 16px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; }
.index-tabs a[aria-current], .index-tabs a:hover { color: var(--navy); border-bottom-color: var(--navy); }
.search-field { flex: 0 1 340px; display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 12px; color: var(--muted); }
.search-field:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-tint); }
.search-field input { border: 0; outline: none; font: inherit; font-size: 16px; padding: 12px 0; flex: 1 1 auto; min-width: 0; background: transparent; color: var(--ink); }
.archive-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.archive-tools .year-jump { margin: 0; flex: 1 1 520px; }
.archive-tools .search-field { flex: 0 1 320px; }

/* Archive rows */
.issue-row summary { align-items: center; gap: 12px 24px; padding: 20px 24px; }
.issue-row summary::before, .issue-row[open] summary::before { content: none; display: none; }
.issue-toggle { flex: 0 0 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--navy); font-size: 20px; font-weight: 600; }
.issue-toggle::before { content: "+"; }
.issue-row[open] .issue-toggle::before { content: "−"; }
.issue-row summary:hover .issue-toggle { border-color: var(--navy); }
.issue-title { flex: 1 1 260px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.issue-year { font-size: 28px; line-height: 1; }
.issue-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; font-weight: 600; }
.issue-links a { text-decoration: none; }
.issue-toc { padding: 0 24px 24px 92px; }
.issue-toc .toc-title { font-size: 18px; }
.archive-note { background: var(--paper); border: 1px dashed #9AA3A6; border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.archive-note b { font-size: 20px; }
.toc-issue { font-size: 12px; font-weight: 600; color: var(--navy); background: var(--navy-tint); border-radius: 4px; padding: 4px 9px; }

/* Authors index */
.letter-jump { display: flex; flex-wrap: wrap; gap: 6px; }
.letter-jump a, .letter-tab { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 6px; text-decoration: none; font: inherit; font-weight: 600; font-size: 15px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); cursor: pointer; }
.letter-jump a:hover, .letter-tab:hover { border-color: var(--navy); color: var(--navy); }
.letter-tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.authors-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.authors-list { flex: 999 1 520px; min-width: 0; padding: 24px; }
.authors-list .search-field { max-width: none; margin-bottom: 8px; }
.authors-list .az-group:first-of-type { margin-top: 8px; }
.authors-list .az-letter { border-bottom: 0; padding-bottom: 0; margin-bottom: 4px; }
.az-list a { font-size: 15px; }
.az-list a.is-selected { color: var(--navy); }
.az-list a.is-selected b { color: var(--navy); }
.az-list a:hover { color: var(--navy); }
.author-panel { flex: 1 1 340px; position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; background: var(--paper); border: 1px solid var(--navy); border-radius: var(--radius); padding: 24px; }
.author-panel-empty { display: flex; gap: 16px; align-items: center; }
.author-panel-empty .board-initials { background: var(--sand); color: var(--muted); }
.author-panel-empty p { margin: 0; font-size: 14px; }
.author-panel-body { display: flex; flex-direction: column; gap: 16px; }
.author-panel-head { display: flex; gap: 16px; align-items: center; }
.author-panel-head > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.author-panel-name { font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.author-panel-also { font-size: 14px; }
.author-panel-count { margin: 0; font-size: 14px; }
.author-panel-papers { display: flex; flex-direction: column; }
.author-paper { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); }
.author-paper:hover .author-paper-title { color: var(--navy); }
.author-paper-issue { font-size: 12px; color: var(--muted); }
.author-paper-title { font-family: var(--serif); font-size: 17px; line-height: 1.35; font-weight: 600; }
.author-paper-co { font-size: 13px; color: var(--muted); }
.author-panel-link { align-self: flex-start; }
.author-panel.is-loading .author-panel-papers { opacity: .4; }

/* Keyword dictionary */
.subject-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); margin: 0; }
.subject-card { padding: 22px; gap: 12px; }
.subject-head .muted { white-space: nowrap; }
.subject-alt { font-size: 13px; color: var(--muted); font-style: italic; margin-top: -6px; }
.subject-card .chip-pill { background: var(--sand); border-color: #E2E0DA; font-size: 13px; padding: 6px 11px; }
.subject-more { font-size: 14px; font-weight: 600; text-decoration: none; margin-top: auto; }
.az-card { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.az-card-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.az-card-head h2 { margin: 0; }
.letter-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.letter-tab { width: 36px; height: 36px; font-size: 14px; }
.kw-panel { display: none; }
.kw-panel.is-active, .is-filtering .kw-panel { display: block; }
.kw-panel-letter { display: none; font-family: var(--serif); font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.is-filtering .kw-panel-letter { display: block; }
.is-filtering .kw-panel { padding-top: 8px; }

@media (max-width: 860px) {
	.index-head .page-title, .index-band .page-title { font-size: 34px; }
	.issue-toc { padding: 0 16px 16px; }
	.issue-row summary { padding: 16px; }
	.author-panel { position: static; max-height: none; }
	.subject-grid { grid-template-columns: 1fr; }
}

/* Search suggestions */
.header-search { position: relative; }
.suggest { position: absolute; left: 0; top: calc(100% + 6px); width: min(460px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 40px rgba(13,32,54,.14); z-index: 50; padding: 6px 0; text-align: left; }
.suggest-head { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 16px 4px; }
.suggest-item, .suggest-more { display: flex; flex-direction: column; gap: 2px; padding: 8px 16px; text-decoration: none; color: var(--ink); font-size: 14px; line-height: 1.35; }
.suggest-a .suggest-label { font-family: var(--serif); font-weight: 600; }
.suggest-meta { font-size: 12px; color: var(--muted); }
.suggest-p, .suggest-s, .suggest-k { flex-direction: row; justify-content: space-between; gap: 12px; }
.suggest-item:hover, .suggest-item.is-active, .suggest-more:hover, .suggest-more.is-active { background: var(--navy-tint); color: var(--navy); }
.suggest-more { border-top: 1px solid var(--line-soft); margin-top: 6px; padding-top: 10px; font-weight: 600; color: var(--navy); font-size: 13px; }

/* Accessibility (PageSpeed) */
.site-footer a[rel="license"] { text-decoration: underline; text-underline-offset: 2px; }
.issue-links a { display: inline-block; padding: 8px 4px; }
h2.issue-year { margin: 0; font-size: 28px; line-height: 1; }

/* Section pages: sub-pages as cards */
.section-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 28px; }
.section-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--sand); border: 1px solid var(--line-soft); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.section-card b { font-family: var(--serif); font-size: 19px; line-height: 1.3; color: var(--navy); }
.section-card span { font-size: 14px; line-height: 1.5; color: #4A5357; }
.section-card:hover { border-color: var(--navy); }
