/* DU Piran · Jubilejni bilten — premium spletni časopis (zlato / nebo / mornarsko) */
:root {
  --gold: #c9a227;
  --gold-soft: #d8bc4e;
  --gold-deep: #a8841c;
  --navy: #0a2744;
  --navy-mid: #143a66;
  --sky: #7eb6d9;
  --sky-soft: #d4e8f4;
  --sky-pale: #eef6fb;
  --paper: #f7fafc;
  --paper-warm: #fcfdfe;
  --ink: #152033;
  --ink-soft: #4a5c72;
  --line: rgba(10, 39, 68, 0.12);
  --line-gold: rgba(201, 162, 39, 0.45);
  --max: 1080px;
  --max-narrow: 720px;
  --max-prose: 68ch;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-brand: "Fraunces", Georgia, serif;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Literata", Georgia, serif;
  --font-ui: "Manrope", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.75rem;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 8% -4%, rgba(126, 182, 217, 0.22), transparent 55%),
    linear-gradient(180deg, var(--sky-soft) 0%, var(--sky-pale) 14%, var(--paper) 36%, var(--paper-warm) 100%);
  background-attachment: fixed;
  font-family: var(--font-body);
  font-size: 1.085rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

body.is-gated {
  overflow: hidden;
  height: 100vh;
}

/* ——— Vstopni zaslon (tedy.si) ——— */
.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(255, 255, 255, 0.45), transparent 55%),
    linear-gradient(165deg, #8ebfdc 0%, #c5dff0 40%, #eef5fa 100%);
}

.gate[hidden] {
  display: none;
}

.gate__card {
  width: min(100%, 28rem);
  text-align: center;
  padding: 2.25rem 1.75rem 2rem;
  background: rgba(255, 255, 255, 0.92);
  border-left: 2.5px solid var(--gold);
  border-right: 2.5px solid var(--gold);
  box-shadow:
    0 0 0 1px rgba(168, 132, 28, 0.22),
    0 24px 60px rgba(10, 39, 68, 0.18);
}

.gate__brand {
  margin: 0 0 0.65rem;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.gate__brand span {
  color: var(--gold-deep);
}

.gate__title {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  line-height: 1.15;
  color: var(--navy);
}

.gate__text {
  margin: 0 auto 0.85rem;
  max-width: 28ch;
  font-family: var(--font-ui);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.gate__sponsor {
  margin: 0 0 1.75rem;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  display: inline-block;
  padding-bottom: 0.1rem;
}

.gate__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.gate__enter {
  min-width: 16rem;
  padding: 1.275rem 2rem;
  font-size: 1.32rem;
  font-weight: 700;
  text-align: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--gold);
  margin-inline: auto;
}

.gate__tedy {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-mid);
  border-bottom: 1px solid transparent;
}

.gate__tedy:hover {
  color: var(--gold-deep);
  border-bottom-color: var(--line-gold);
}

body.is-gated .site-bar,
body.is-gated main,
body.is-gated .site-foot {
  visibility: hidden;
  pointer-events: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-mid);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--gold-deep);
  border-bottom: 1px solid var(--line-gold);
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - 2.5rem, var(--max-narrow));
}

.wrap--chapter {
  width: min(100% - 2.5rem, var(--max));
}

.kicker {
  margin: 0 0 0.55rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 48ch;
  font-family: var(--font-ui);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ——— Chrome ——— */
.site-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.4rem;
  background: transparent;
  color: var(--navy);
  font-family: var(--font-ui);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s;
}

.site-bar.is-solid {
  background: rgba(10, 39, 68, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(201, 162, 39, 0.25);
  color: #f4f8fa;
}

.site-bar a {
  color: inherit;
  border-bottom: none;
}

.site-bar a:hover,
.site-bar a:focus-visible {
  color: var(--gold-soft);
  border-bottom: none;
}

.site-bar__brand {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.575rem;
  letter-spacing: -0.01em;
}

.site-bar__brand span {
  color: var(--gold-deep);
  font-weight: 600;
}

.site-bar.is-solid .site-bar__brand span {
  color: var(--gold-soft);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: flex-end;
}

.site-nav a {
  opacity: 0.9;
  font-weight: 700;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  opacity: 1;
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(10, 39, 68, 0.35);
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.site-bar.is-solid .nav-toggle {
  border-color: rgba(244, 248, 250, 0.35);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--navy);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(180deg, #9ec8e4 0%, #c5dff0 35%, #e8f3fa 70%, #f5f9fc 100%);
}

.hero__media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 5.5rem 1.25rem 2rem;
}

.hero__media img {
  width: min(100%, 520px);
  height: auto;
  max-height: min(82svh, 900px);
  object-fit: contain;
  border: 3px solid var(--gold);
  box-shadow:
    0 0 0 1px rgba(168, 132, 28, 0.4),
    0 18px 50px rgba(10, 39, 68, 0.22),
    0 0 80px rgba(201, 162, 39, 0.15);
  opacity: 0;
  transform: scale(1.03) translateY(0.5rem);
  animation: heroCoverIn 1.2s var(--ease) 0.15s forwards;
}

@keyframes heroCoverIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 39, 68, 0.35) 0%, transparent 28%, transparent 55%, rgba(245, 249, 252, 0.92) 88%, var(--paper) 100%),
    radial-gradient(700px 400px at 15% 20%, rgba(201, 162, 39, 0.12), transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 6.5rem 0 4rem;
  text-align: center;
  opacity: 0;
  transform: translateY(1rem);
  animation: heroIn 1s var(--ease) 0.35s forwards;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__jubilee {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 12vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--gold);
  text-shadow:
    0 1px 0 rgba(168, 132, 28, 0.5),
    0 8px 28px rgba(201, 162, 39, 0.35);
}

.hero__jubilee span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.32em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-shadow: none;
}

.hero__brand {
  margin: 0 0 0.65rem;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(1.85rem, 5.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.hero__brand em {
  font-style: normal;
}

.hero__dates {
  margin: 0 0 1rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.hero__dates::before,
.hero__dates::after {
  content: "✦";
  margin: 0 0.65rem;
  font-size: 0.7em;
  opacity: 0.75;
}

.hero__line {
  margin: 0 auto 0.85rem;
  max-width: 28ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: 1.3;
  color: var(--navy-mid);
}

.hero__sub {
  margin: 0 auto 1.75rem;
  max-width: 42ch;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-bottom: none;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  text-decoration: none;
  border-bottom: none;
}

.btn--primary {
  background: var(--navy);
  color: #f4f8fa;
  border: 1px solid var(--gold);
}

.btn--primary:hover {
  background: var(--navy-mid);
  color: #fff;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--navy);
  border: 1px solid rgba(10, 39, 68, 0.25);
}

.btn--ghost:hover {
  background: #fff;
  border-color: var(--gold);
}

.hero__scroll {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  z-index: 2;
  margin: 0;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--navy-mid);
  opacity: 0.7;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
  }

  .hero__media {
    position: relative;
    place-items: end center;
    padding: 5rem 2rem 3rem 3rem;
  }

  .hero__media img {
    width: min(100%, 560px);
  }

  .hero__veil {
    background:
      linear-gradient(90deg, transparent 42%, rgba(245, 249, 252, 0.55) 62%, var(--paper) 88%),
      linear-gradient(180deg, rgba(10, 39, 68, 0.2) 0%, transparent 30%, transparent 100%);
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 6rem 3rem 4rem 1rem;
    width: auto;
    margin: 0;
  }

  .hero__line,
  .hero__sub {
    margin-left: 0;
    margin-right: 0;
  }

  .hero__ctas {
    justify-content: flex-start;
  }

  .hero__scroll {
    left: auto;
    right: 2rem;
    text-align: right;
  }
}

/* ——— Kazalo ——— */
.toc-section {
  padding: 3rem 0 1.5rem;
  scroll-margin-top: 4.5rem;
}

.toc-section__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.toc {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  border-top: 2px solid var(--navy);
}

.toc li {
  border-bottom: 1px solid var(--line);
}

.toc a {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.85rem;
  align-items: baseline;
  padding: 0.95rem 0.15rem;
  color: var(--ink);
  border-bottom: none;
  transition: color 0.2s, background 0.2s;
}

.toc a:hover {
  color: var(--navy-mid);
  background: rgba(126, 182, 217, 0.08);
  border-bottom: none;
}

.toc__num {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
}

.toc__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.35;
}

/* ——— Časopisni list: zlato L / sredina / D ——— */
.wrap--paper {
  width: min(100% - 1.5rem, 980px);
  margin-inline: auto;
}

.paper {
  position: relative;
  background: #fff;
  border-left: 2.5px solid var(--gold);
  border-right: 2.5px solid var(--gold);
  box-shadow:
    0 0 0 1px rgba(168, 132, 28, 0.2),
    0 18px 48px rgba(10, 39, 68, 0.08);
  padding: 1.75rem 1.35rem 2.25rem;
}

.paper--toc {
  padding: 2rem 1.5rem 2.25rem;
}

.chapter {
  padding: 1.25rem 0;
  scroll-margin-top: 4.5rem;
}

.chapter__head {
  margin: 0 0 1.35rem;
  padding-bottom: 0.95rem;
  border-bottom: 1.5px solid var(--gold);
  text-align: center;
}

.chapter__index {
  margin: 0 0 0.45rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.chapter__index span {
  opacity: 0.75;
  margin-right: 0.35rem;
}

.chapter__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.5vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}

.paper__body {
  clear: both;
}

/* Dvostolpec + zlata sredinska črta — odstavki tečejo v oba stolpca */
.paper-cols {
  column-count: 2;
  column-gap: 2rem;
  column-rule: 1.5px solid var(--gold);
  column-fill: balance;
}

.paper-cols + .paper-cols {
  margin-top: 0.85rem;
}

/* Galerije: CSS columns + auto height = 1 stolpec — zato grid */
.paper-cols--gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-count: unset;
  column-fill: unset;
  column-gap: unset;
  column-rule: none;
  gap: 1.25rem 2rem;
  position: relative;
}

.paper-cols--gallery::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1.5px;
  background: var(--gold);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}

.paper-full {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-gold);
}

/* Slike v člankih: širina ENEGA stolpca (nižja resolucija) */
.paper-cols .story--media {
  display: block;
  width: 100%;
  margin: 0.85rem 0 1.1rem;
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  column-span: none;
}

.paper-cols .figure--story img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 22rem;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
  background: #eef4f8;
  border: 1px solid rgba(10, 39, 68, 0.08);
}

.paper-cols--gallery .story--media {
  margin: 0;
  width: 100%;
}

.story__lead {
  margin: 0 0 1.15rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.35;
  color: var(--navy-mid);
  font-style: italic;
}

/* Zadnja stran / celostranske še polna širina */
.paper-media {
  margin: 1.15rem 0 1.35rem;
  clear: both;
}

.story--media {
  display: block;
  width: 100%;
  margin: 0;
  break-inside: avoid;
}

.story__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--navy);
  text-align: center;
}

.figure--story {
  margin: 0 0 0.85rem;
}

.figure--story a {
  display: block;
  border-bottom: none;
}

.figure--story a:hover {
  border-bottom: none;
  opacity: 0.96;
}

.figure--story img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: #eef4f8;
  border: 1px solid rgba(10, 39, 68, 0.08);
}

.figure--story figcaption {
  margin-top: 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 600;
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
}

.story__text {
  margin: 0 0 0.85em;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  font-size: 0.98rem;
  line-height: 1.65;
  /* dovolimo prelom odstavka med stolpcema — zapolni belino */
  break-inside: auto;
}

.story__text:last-child {
  margin-bottom: 0;
}

/* Logotipi donatorjev — brez obrezovanja */
.figure--logo img {
  aspect-ratio: auto;
  object-fit: contain;
  max-height: 9.5rem;
  width: 100%;
  background: #fff;
  padding: 0.35rem;
}

/* Zadnja stran biltena — celotna stran, brez crop */
.figure--page {
  margin: 0 auto;
  max-width: 28rem;
}

.figure--page a {
  display: block;
  border-bottom: none;
}

.figure--page img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(10, 39, 68, 0.1);
  box-shadow: 0 12px 36px rgba(10, 39, 68, 0.12);
}

.figure--page figcaption {
  margin-top: 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
}

.gallery-note {
  margin: 1.25rem 0 0;
  max-width: 48ch;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ——— Viri (pred donatorji) ——— */
.viri-list {
  margin: 0;
  padding: 0;
  list-style: none;
  column-count: 2;
  column-gap: 2rem;
  column-rule: 1.5px solid var(--gold);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink);
}

.viri-item {
  break-inside: avoid;
  margin: 0 0 0.85rem;
  padding-left: 0.85rem;
  position: relative;
  text-align: left;
  hyphens: auto;
}

.viri-item::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold-deep);
  font-weight: 700;
}

@media (max-width: 820px) {
  .viri-list {
    column-count: 1;
    column-rule: none;
  }
}

/* ——— Tabela predsednikov ——— */
.table-wrap {
  margin: 0;
  overflow-x: auto;
  border-top: 2px solid var(--navy);
  border-bottom: 1px solid var(--line);
}

.presidents-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 0.92rem;
}

.presidents-table th,
.presidents-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.presidents-table th {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: rgba(126, 182, 217, 0.1);
}

.presidents-table td:first-child {
  width: 3.5rem;
  font-weight: 700;
  color: var(--navy-mid);
}

/* ——— Kolofon / noga ——— */
.closing {
  padding: 1.25rem 0 3rem;
}

.closing h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  color: var(--navy);
}

.closing .lede,
.closing p {
  color: var(--ink-soft);
  max-width: 48ch;
  text-align: justify;
}

.site-foot {
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.site-foot a {
  color: inherit;
}

.site-foot a:hover {
  color: var(--gold-deep);
}

/* ——— Nazaj na kazalo (floating) ——— */
.back-toc {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 1.35rem;
  min-height: 3.25rem;
  border-radius: 2px;
  background: var(--navy);
  color: #f4f8fa;
  border: 1.5px solid var(--gold);
  box-shadow:
    0 10px 28px rgba(10, 39, 68, 0.28),
    0 0 0 1px rgba(201, 162, 39, 0.15);
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.65rem);
  transition:
    opacity 0.28s var(--ease),
    visibility 0.28s var(--ease),
    transform 0.28s var(--ease),
    background 0.2s,
    color 0.2s;
}

.back-toc.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.back-toc:hover,
.back-toc:focus-visible {
  background: var(--navy-mid);
  color: #fff;
  text-decoration: none;
  outline: none;
}

.back-toc:focus-visible {
  box-shadow:
    0 10px 28px rgba(10, 39, 68, 0.28),
    0 0 0 3px rgba(201, 162, 39, 0.55);
}

.back-toc__arrow {
  font-size: 1.25rem;
  line-height: 1;
  color: var(--gold-soft);
}

body.is-gated .back-toc {
  display: none;
}

@media (max-width: 520px) {
  .back-toc {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.9rem, env(safe-area-inset-bottom));
    padding: 0.95rem 1.15rem;
    font-size: 0.98rem;
    max-width: calc(100vw - 1.5rem);
  }
}

/* ——— Reveal / lightbox ——— */
.reveal {
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 2rem 1rem 3rem;
  background: rgba(8, 22, 38, 0.92);
}

.lightbox.is-open {
  display: grid;
}

.lightbox__stage {
  margin: 0;
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  text-align: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(88vh - 4.5rem);
  width: auto;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

.lightbox__cap {
  margin-top: 3em;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1.45;
  color: #e8eef4;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: 0;
  background: transparent;
  color: #f4f8fa;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: 0.35rem 0.55rem;
}

.lightbox__close {
  top: 0.85rem;
  right: 1rem;
  font-size: 2.4rem;
}

.lightbox__nav--prev {
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--next {
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
}

/* ——— Responsive ——— */
@media (max-width: 820px) {
  .paper-cols {
    column-count: 1;
    column-rule: none;
  }

  .paper-cols--gallery {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .paper-cols--gallery::before {
    display: none;
  }

  .paper {
    padding: 1.35rem 1rem 1.75rem;
  }

  .wrap--paper {
    width: min(100% - 1rem, 980px);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: rgba(10, 39, 68, 0.97);
    color: #f4f8fa;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(244, 248, 250, 0.12);
  }

  .chapter__title {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
  }

  .story__text {
    text-align: left;
    hyphens: manual;
  }

  .lightbox__nav {
    display: none;
  }
}

/* Mobilni hero: naslovnica PNG že ima naslove — brez HTML overlayja čez sliko */
@media (max-width: 959px) {
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
  }

  .hero__media {
    position: relative;
    inset: auto;
    flex: 1 1 auto;
    padding: 5rem 1.15rem 0.35rem;
  }

  .hero__media img {
    width: min(100%, 380px);
    max-height: min(68svh, 760px);
  }

  .hero__veil {
    background: linear-gradient(
      180deg,
      rgba(10, 39, 68, 0.22) 0%,
      transparent 18%,
      transparent 100%
    );
  }

  .hero__jubilee,
  .hero__brand,
  .hero__dates,
  .hero__line,
  .hero__sub {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .hero__content {
    width: min(100% - 2rem, var(--max));
    margin: 0 auto;
    padding: 0.85rem 0 3.4rem;
    margin-top: auto;
  }

  .hero__ctas {
    gap: 0.65rem 0.75rem;
  }

  .btn--ghost {
    background: rgba(255, 255, 255, 0.92);
  }
}

@media (max-width: 600px) {
  .hero__media {
    padding-top: 4.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero__media img {
    width: min(100%, 340px);
    max-height: min(64svh, 680px);
  }

  .hero__content {
    padding-bottom: 3.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__media img,
  .hero__content,
  .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
