/* ==========================================================
   Ψηφιακή Συλλογή Εφημερίδων – Δημόσια Κεντρική Βιβλιοθήκη Ρόδου
   ========================================================== */
:root {
  --paper: #f6f2e9;
  --paper-2: #efe8d9;
  --surface: #ffffff;
  --ink: #1d2529;
  --ink-2: #4a5458;
  --ink-3: #7a8286;
  --line: #e2dccd;
  --line-2: #d4ccb9;
  --brand: #1e4f5c;
  --brand-2: #2c6b78;
  --brand-ink: #ffffff;
  --accent: #a3412b;
  --mark: #f6dd8f;
  --night: #15303a;
  --night-2: #0f242c;
  --stage: #2b2925;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(30, 30, 20, .06), 0 6px 20px -8px rgba(30, 30, 20, .18);
  --shadow-lg: 0 2px 6px rgba(30, 30, 20, .08), 0 20px 50px -18px rgba(30, 30, 20, .35);
  --serif: 'Literata', 'Noto Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --topbar-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code { font-family: inherit; font-size: .95em; background: var(--paper-2); padding: .1em .35em; border-radius: 5px; }
mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 .1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-2) 60%, transparent); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 1000; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-3); font-weight: 400; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.no-scroll { overflow: hidden; }

/* ---------- Κουμπιά ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--paper-2); }
.btn--primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { background: var(--brand-2); color: #fff; }
.btn:active { transform: translateY(1px); }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; gap: 24px; height: var(--topbar-h); }
.brand img { height: 56px; width: auto; }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a {
  padding: 9px 16px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: 15px;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav a.is-active { background: var(--brand); color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; border-radius: 10px; color: var(--ink); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.hero__paper {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(30, 79, 92, .10), transparent 60%),
    radial-gradient(700px 300px at 0% 110%, rgba(163, 65, 43, .07), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 239px, rgba(29, 37, 41, .045) 239px 240px);
}
.hero__in { position: relative; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.hero__title { font-size: clamp(34px, 5.4vw, 64px); font-weight: 700; max-width: 16ch; margin-bottom: 18px; }
.hero__title em { font-style: italic; font-weight: 500; color: var(--brand); }
.hero__lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); max-width: 60ch; margin-bottom: 30px; }

/* ---------- Searchbox ---------- */
.searchbox {
  display: flex; gap: 8px; align-items: center; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px; box-shadow: var(--shadow-lg);
  max-width: 920px;
}
.searchbox label { margin: 0; }
.searchbox__q { flex: 1; display: flex; align-items: center; gap: 10px; padding-left: 16px; min-width: 0; }
.searchbox__q svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; }
.searchbox input, .searchbox select {
  border: 0; background: transparent; font: inherit; color: var(--ink); height: 46px; outline: none; min-width: 0;
}
.searchbox input { flex: 1; font-size: 16px; }
.searchbox__sel { position: relative; border-left: 1px solid var(--line); }
.searchbox select {
  appearance: none; -webkit-appearance: none; padding: 0 34px 0 16px; cursor: pointer; font-weight: 500; color: var(--ink-2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a8286' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.searchbox .btn { flex: none; }
.searchbox--inline { box-shadow: var(--shadow); }
.hint { margin: 12px 4px 0; font-size: 13.5px; color: var(--ink-3); }

.stats { display: flex; flex-wrap: wrap; gap: 12px 44px; margin: 40px 0 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 13px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.stats dd { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section--tint { background: var(--paper-2); border-block: 1px solid var(--line); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section__head h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 0; }
.link-more { font-weight: 600; font-size: 15px; }
.page-head { padding: 44px 0 28px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--paper)); }
.page-head h1 { font-size: clamp(28px, 4vw, 42px); }
.lead { color: var(--ink-2); font-size: 18px; }

/* ---------- Κάρτες εφημερίδων ---------- */
.paper-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.paper-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; color: var(--ink); box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.paper-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); color: var(--ink); }
.paper-card__mast {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 20px 22px;
  background:
    linear-gradient(180deg, #fbf8f1, #f3ecdc);
  border-bottom: 1px solid var(--line); text-align: center;
}
.paper-card__rule { width: 100%; height: 3px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); opacity: .75; }
.paper-card__name { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.1; letter-spacing: .01em; padding: 4px 0; }
.paper-card__years { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.paper-card__stats { display: flex; justify-content: space-between; gap: 10px; padding: 14px 20px; font-size: 14px; color: var(--ink-2); }
.paper-card__stats b { color: var(--ink); font-weight: 600; }

/* ---------- Τεύχη ---------- */
.issue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 28px; }
.issue {
  position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px 16px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.issue:hover { border-color: var(--brand-2); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.issue::after { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); opacity: 0; transition: opacity .15s; }
.issue:hover::after { opacity: 1; }
.issue__paper { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 600; }
.issue__year { font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.1; }
.issue__day { font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1; margin-bottom: 4px; color: var(--brand); }
.issue__date { font-weight: 600; font-size: 14px; }
.issue__meta { font-size: 13px; color: var(--ink-3); }
.issue.is-missing .issue__day { color: var(--ink-3); }
.issue__badge {
  position: absolute; top: 12px; right: 12px; font-size: 10.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--ink-3); background: var(--paper); border: 1px solid var(--line); padding: 1px 7px; border-radius: 999px;
}
.month { font-size: 18px; margin: 8px 0 12px; color: var(--ink-2); display: flex; align-items: center; gap: 12px; }
.month::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- Σελίδα εφημερίδας ---------- */
.paper-head { padding: 28px 0 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.crumbs span { margin: 0 6px; }
.masthead { text-align: center; max-width: 820px; margin: 0 auto 26px; }
.masthead__rule { display: block; height: 5px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
.masthead__name { font-size: clamp(40px, 7vw, 76px); font-weight: 700; margin: 10px 0 6px; letter-spacing: .01em; }
.masthead__meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; margin: 12px 0 0; font-size: 14px; color: var(--ink-2); }
.masthead__meta a { font-weight: 600; }

.years {
  position: relative; display: flex; gap: 4px; overflow-x: auto; padding: 8px 2px 14px; scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.year {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px;
  width: 52px; height: 92px; padding: 6px 0; border-radius: 10px; color: var(--ink-2); scroll-snap-align: center;
}
.year:hover { background: var(--paper); color: var(--ink); }
.year__bar { width: 18px; height: calc(var(--h) * .52); min-height: 4px; background: var(--line-2); border-radius: 4px 4px 2px 2px; transition: background .15s; }
.year:hover .year__bar { background: var(--brand-2); }
.year__label { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.year.is-active { background: var(--brand); color: #fff; }
.year.is-active .year__bar { background: rgba(255, 255, 255, .75); }
.year--other .year__label { font-size: 11.5px; }

/* ---------- Αναζήτηση ---------- */
.results { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; }
.section--results { padding-top: 32px; }
.facets { position: sticky; top: calc(var(--topbar-h) + 16px); display: flex; flex-direction: column; gap: 14px; }
.facet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 8px 8px; }
.facet summary { cursor: pointer; font-weight: 600; padding: 8px 8px; list-style: none; display: flex; justify-content: space-between; }
.facet summary::-webkit-details-marker { display: none; }
.facet summary::after { content: '▾'; color: var(--ink-3); transition: transform .2s; }
.facet:not([open]) summary::after { transform: rotate(-90deg); }
.facet ul { list-style: none; margin: 0; padding: 0; }
.facet a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); font-size: 14.5px; }
.facet a span { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.facet a:hover { background: var(--paper); color: var(--ink); }
.facet a.is-active { background: var(--brand); color: #fff; }
.facet a.is-active span { color: rgba(255, 255, 255, .8); }
.facet a.is-zero { opacity: .5; }
.facet__years { max-height: 360px; overflow-y: auto; }

.results__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.results__bar p { margin: 0; color: var(--ink-2); }
.sort { display: flex; gap: 4px; align-items: center; font-size: 14px; color: var(--ink-3); }
.sort a { padding: 5px 12px; border-radius: 999px; color: var(--ink-2); }
.sort a:hover { background: var(--paper-2); }
.sort a.is-active { background: var(--ink); color: #fff; }

.hits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hit__link {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); position: relative;
  transition: border-color .15s, box-shadow .15s;
}
.hit__link:hover { border-color: var(--brand-2); box-shadow: var(--shadow); color: var(--ink); }
.hit__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.hit__meta .dot { opacity: .6; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); padding: 2px 9px; border-radius: 999px; }
.hit__title { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.35; }
.hit__remarks { color: var(--ink-2); font-size: 15px; }
.hit__by { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; color: var(--ink-3); }
.hit__go { font-size: 13.5px; font-weight: 600; color: var(--brand); opacity: 0; transition: opacity .15s; align-self: flex-end; margin-top: -22px; }
.hit__link:hover .hit__go { opacity: 1; }

.empty { text-align: center; padding: 48px 16px; grid-column: 1 / -1; }
.empty--small { padding: 36px 16px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { padding: 7px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; }
.chip:hover { border-color: var(--brand-2); color: var(--brand); }

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 30px 0 0; }
.pager a, .pager span {
  min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; font-weight: 500; font-size: 15px;
}
.pager a { background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.pager a:hover { border-color: var(--brand-2); color: var(--brand); }
.pager .is-current { background: var(--brand); color: #fff; }
.pager__gap { color: var(--ink-3); }

/* ---------- Σχετικά ---------- */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.about p { color: var(--ink-2); font-size: 17px; }
.howto { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: h; }
.howto li {
  position: relative; padding: 16px 18px 16px 58px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink-2); counter-increment: h;
}
.howto li::before {
  content: counter(h); position: absolute; left: 16px; top: 15px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.howto b { color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: #d6e1e4; margin-top: 0; }
.footer__in { display: grid; grid-template-columns: auto 1fr; gap: 40px; padding-top: 44px; padding-bottom: 36px; align-items: center; }
.footer__logos { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.footer__logo--herodotus img { height: 46px; width: auto; }
.footer__logo--interreg { background: #fff; border-radius: 10px; padding: 8px 12px; }
.footer__logo--interreg img { height: 74px; width: auto; }
.footer__text { font-size: 14px; line-height: 1.65; color: #b8c8cc; max-width: 760px; }
.footer__text p { margin: 0 0 .8em; }
.footer__text .footer__lead { font-family: var(--serif); font-size: 17px; line-height: 1.5; color: #fff; font-weight: 500; }
.footer__text b, .footer__text strong { color: #fff; }
.footer__bottom { background: var(--night-2); color: #8ba2a8; font-size: 13px; padding: 14px 0; }

/* ==========================================================
   Αναγνώστης
   ========================================================== */
body.is-reader .footer { display: block; }
.reader {
  --rbar-h: 58px;
  position: relative; display: flex; flex-direction: column;
  height: calc(100vh - var(--topbar-h)); height: calc(100dvh - var(--topbar-h));
  min-height: 460px; background: var(--stage); color: #eee;
}
.reader.is-max { position: fixed; inset: 0; z-index: 200; height: 100vh; height: 100dvh; }

.rbar {
  height: var(--rbar-h); flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 12px; background: #1d1b18; border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.rbar__left, .rbar__right, .rbar__center { display: flex; align-items: center; gap: 4px; min-width: 0; }
.rbar__left { flex: 1 1 0; }
.rbar__right { flex: 1 1 0; justify-content: flex-end; }
.rbar__title { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; margin-left: 4px; }
.rbar__title strong { font-family: var(--serif); font-size: 17px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rbar__title span { font-size: 12.5px; color: #a9a49b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ibtn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 40px; height: 40px; padding: 0 8px; border-radius: 10px; border: 0; background: transparent;
  color: #e9e6df; cursor: pointer; transition: background .15s, color .15s;
}
.ibtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.ibtn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.ibtn:disabled { opacity: .3; cursor: default; background: none; }
.ibtn--label { padding: 0 12px; font-size: 14px; font-weight: 500; }
.ibtn--label small { font-size: 12px; background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 1px 7px; margin-left: 2px; }
.reader.panel-open .ibtn--label { background: rgba(255, 255, 255, .14); }
.reader.is-double .ico-double { opacity: 1; }

.pageno { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #a9a49b; margin: 0 4px; }
.pageno input {
  width: 64px; height: 34px; text-align: center; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .06); color: #fff; font: 600 14px var(--sans);
}
.pageno b { color: #e9e6df; font-weight: 600; }

.rbody { flex: 1; display: flex; min-height: 0; position: relative; overflow: hidden; }
.stage {
  position: relative; flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center;
  padding: 22px 64px 46px; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 40%, #3a3631 0%, #2b2925 55%, #22201d 100%);
}
.stage__book { position: relative; max-width: 100%; }
.book { margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
.page { background: #fdfbf6; overflow: hidden; user-select: none; -webkit-user-select: none; }
.page__inner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.page__inner img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .35s; }
.page.is-ready .page__inner img { opacity: 1; }
.page.is-ready .page__spin { display: none; }
.page__spin { position: absolute; width: 28px; height: 28px; border: 3px solid #e3ddcf; border-top-color: var(--brand-2); border-radius: 50%; animation: spin .8s linear infinite; }
.page__num {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 600;
  color: #6c665b; background: rgba(253, 251, 246, .85); padding: 1px 8px; border-radius: 999px; pointer-events: none;
}
.page__zoom {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: zoom-in;
  background: rgba(29, 27, 24, .72); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .2s, transform .2s;
}
.page__zoom svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.page:hover .page__zoom { opacity: 1; }
.page__zoom:hover { transform: scale(1.08); background: var(--brand); }
@media (hover: none) { .page__zoom { opacity: .85; } }

.stage__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background .15s; z-index: 5;
}
.stage__nav svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.stage__nav:hover { background: rgba(255, 255, 255, .2); }
.stage__nav:disabled { opacity: 0; pointer-events: none; }
.stage__nav--prev { left: 10px; }
.stage__nav--next { right: 10px; }
.stage__slider {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(420px, 70%);
  accent-color: #d9c79f; opacity: .55; transition: opacity .2s; cursor: pointer;
}
.stage__slider:hover, .stage__slider:focus { opacity: 1; }
.stage__loading {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: var(--stage); color: #cfc9bd; z-index: 10; transition: opacity .4s, visibility .4s;
}
.stage__loading.is-done { opacity: 0; visibility: hidden; }
.stage__error { text-align: center; color: #f0c4b8; }
.spinner { width: 44px; height: 44px; border: 4px solid rgba(255, 255, 255, .15); border-top-color: #d9c79f; border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.stage__missing { max-width: 520px; text-align: center; color: #d8d2c6; padding: 24px; }
.stage__missing svg { width: 64px; height: 64px; fill: none; stroke: #8f887b; stroke-width: 1.4; margin: 0 auto 16px; }
.stage__missing h2 { color: #fff; font-size: 24px; }

/* Πάνελ άρθρων */
.panel {
  width: 0; flex: none; display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
  overflow: hidden; transition: width .3s ease; border-left: 1px solid rgba(0, 0, 0, .2);
}
.reader.panel-open .panel { width: 380px; }
.panel > * { min-width: 380px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 8px 18px; }
.panel__head h2 { font-size: 19px; margin: 0; }
.panel__head .ibtn { color: var(--ink-2); }
.panel__head .ibtn:hover { background: var(--paper-2); color: var(--ink); }
.panel__filter { padding: 0 14px 10px; }
.panel__filter input {
  width: 100%; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); padding: 0 12px; font: inherit; font-size: 14.5px; background: var(--surface);
}
.panel__list { flex: 1; overflow-y: auto; padding: 0 10px 16px; scroll-behavior: smooth; }
.panel__empty { padding: 12px 8px; }
.art-page {
  position: sticky; top: 0; z-index: 1; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); padding: 12px 8px 6px; background: var(--paper);
}
.art-page.is-current { color: var(--accent); }
.art {
  display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; padding: 10px 12px; margin: 0 0 4px;
  background: transparent; border: 1px solid transparent; border-radius: 10px; cursor: pointer; color: var(--ink);
  transition: background .15s, border-color .15s;
}
.art:hover { background: var(--surface); border-color: var(--line); }
.art.is-current { background: var(--surface); border-color: var(--line); }
.art.is-target { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); background: var(--surface); }
.art__title { font-family: var(--serif); font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.art__remarks { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.art__meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12.5px; color: var(--ink-3); }
.panel__issues { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--paper-2); }
.panel__issues a { display: flex; flex-direction: column; font-weight: 600; font-size: 14px; }
.panel__issues a.is-next { text-align: right; margin-left: auto; }
.panel__issues small { font-weight: 400; color: var(--ink-3); font-size: 12px; }

/* Μεγέθυνση */
.zoom { position: fixed; inset: 0; z-index: 300; background: rgba(20, 19, 17, .97); display: flex; flex-direction: column; }
.zoom[hidden] { display: none; }
.zoom__bar { flex: none; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px 0 18px; background: #1d1b18; }
.zoom__label { font-weight: 600; color: #e9e6df; font-size: 15px; white-space: nowrap; }
.zoom__tools { display: flex; align-items: center; gap: 2px; }
.zoom__sep { width: 1px; height: 22px; background: rgba(255, 255, 255, .15); margin: 0 6px; }
.zoom__pct { min-width: 52px; text-align: center; font-size: 13px; color: #cfc9bd; font-variant-numeric: tabular-nums; }
.zoom__view { flex: 1; overflow: auto; cursor: grab; touch-action: pan-x pan-y; outline: none; overscroll-behavior: contain; }
.zoom__view.is-drag { cursor: grabbing; }
.zoom__canvas { margin: 12px auto; background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.zoom__canvas img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.zoom.is-busy .zoom__pct { color: #d9c79f; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .results { grid-template-columns: 1fr; gap: 18px; }
  .facets { position: static; flex-direction: row; flex-wrap: wrap; }
  .facet { flex: 1 1 260px; }
  .facet__years { display: flex; flex-wrap: wrap; gap: 4px; max-height: 180px; }
  .facet__years a { padding: 4px 10px; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  /* Στις μεσαίες οθόνες το πάνελ «επιπλέει» πάνω από τη σκηνή */
  .panel { position: absolute; right: 0; top: 0; bottom: 0; z-index: 20; box-shadow: -10px 0 40px rgba(0, 0, 0, .35); }
}

@media (max-width: 820px) {
  :root { --topbar-h: 64px; }
  .wrap { padding: 0 16px; }
  .brand img { height: 44px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: var(--topbar-h); left: 0; right: 0; flex-direction: column; gap: 2px; padding: 10px 16px 16px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 10px; }
  .hero { padding: 44px 0 40px; }
  .searchbox { flex-wrap: wrap; border-radius: 20px; padding: 8px; }
  .searchbox__q { flex: 1 1 100%; padding: 0 8px; border-bottom: 1px solid var(--line); }
  .searchbox__sel { flex: 1 1 40%; border-left: 0; }
  .searchbox__sel select { width: 100%; }
  .searchbox__sel--year { border-left: 1px solid var(--line); }
  .searchbox .btn { flex: 1 1 100%; }
  .stats { gap: 10px 28px; }
  .stats dd { font-size: 24px; }
  .section { padding: 40px 0; }
  .footer__in { grid-template-columns: 1fr; gap: 26px; padding-top: 34px; }
  .footer__logos { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
  .footer__logo--herodotus img { height: 38px; }
  .footer__logo--interreg img { height: 62px; }
  .hide-sm { display: none !important; }
  .hit__link { padding: 16px; }
  .hit__go { display: none; }
  .issue-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }

  .reader { --rbar-h: auto; min-height: 420px; }
  .rbar { flex-wrap: wrap; padding: 6px 8px; row-gap: 2px; }
  .rbar__left { flex: 1 1 0; min-width: 0; order: 1; }
  .rbar__right { flex: 0 0 auto; order: 2; gap: 0; }
  .rbar__right .ibtn { min-width: 36px; padding: 0 6px; }
  .rbar__center { order: 3; flex: 1 1 100%; justify-content: center; }
  .rbar__title { margin-left: 0; }
  .stage { padding: 12px 8px 40px; }
  .stage__nav { display: none; }
  .reader.panel-open .panel, .panel > * { width: 100%; min-width: 0; }
  .panel { width: 100%; transform: translateX(100%); transition: transform .3s ease; }
  .reader.panel-open .panel { transform: none; }
  .zoom__label { font-size: 13px; }
  .zoom__bar { padding: 0 4px 0 12px; }
  .zoom__tools .ibtn { min-width: 36px; padding: 0 4px; }
  .zoom__sep { margin: 0 2px; }
}

@media (max-width: 480px) {
  .hide-xs { display: none !important; }
  .paper-grid { grid-template-columns: 1fr; }
  .rbar__title strong { font-size: 15px; }
  .zoom__pct { display: none; }
}

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