/* ============================================
   MAY 8 — NORWAY'S LIBERATION DAY
   Editorial Overrides
   Base: article-shared.css
   Prefix: lib-
   Accent: Deep navy #1B3A5C
   ============================================ */

:root {
  --art-accent: #1B3A5C;
  --art-accent-dark: #142C47;
  --art-accent-glow: rgba(27, 58, 92, 0.4);
  --art-accent-subtle: rgba(27, 58, 92, 0.06);
  --art-link: #2d6a3f;
  --art-link-hover: #1B3A5C;
  --art-link-underline: #1B3A5C;
  --art-ornament: #1B3A5C;
  --art-subtitle-color: #8FAFC9;
  --art-hero-accent-line: #8FAFC9;
}


/* ── Hero overrides ── */
.art-hero__media img {
  object-position: center 20%;
  animation: libHeroKB 30s ease-out forwards;
}

@keyframes libHeroKB {
  0%   { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.art-hero__overlay {
  background:
    linear-gradient(180deg,
      rgba(10, 18, 30, 0.2) 0%,
      rgba(10, 18, 30, 0) 20%,
      rgba(10, 18, 30, 0.35) 55%,
      rgba(10, 18, 30, 0.88) 80%,
      rgba(10, 18, 30, 1) 100%
    );
}

.art-hero__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 70%, rgba(27, 58, 92, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.art-hero__category {
  background: rgba(27, 58, 92, 0.85);
  color: #fff;
}

/* ── Tighten intro → first section gap ── */
.art-intro + .art-section {
  padding-top: var(--space-md);
}


/* ============================================
   LIB-TIMELINE — Key dates vertical timeline
   Chronological markers for pivotal moments
   ============================================ */
.lib-timeline {
  max-width: 680px;
  margin: var(--space-xl) auto;
  padding: 0;
  list-style: none;
  position: relative;
}

.lib-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--art-accent) 0%, rgba(27, 58, 92, 0.15) 100%);
}

.lib-timeline__item {
  position: relative;
  padding-left: calc(var(--space-xl) + 8px);
  padding-bottom: var(--space-lg);
}

.lib-timeline__item::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--art-accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--art-accent);
}

.lib-timeline__date {
  display: block;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: var(--text-sm, 0.875rem);
  font-weight: 700;
  color: var(--art-accent);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-xs);
}

.lib-timeline__text {
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-lg, 1.125rem);
  line-height: 1.9;
  color: var(--color-text-secondary, #4a4a4a);
}


/* ============================================
   LIB-SYMBOLS — Resistance symbols grid
   Small image + text pairs for symbolic objects
   ============================================ */
.lib-symbols {
  max-width: 740px;
  margin: var(--space-xl) auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.lib-symbol {
  text-align: center;
}

.lib-symbol__img-wrap {
  overflow: hidden;
  border-radius: var(--radius-xl, 12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  margin-bottom: var(--space-md);
}

.lib-symbol__img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.lib-symbol__caption {
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-sm, 0.875rem);
  line-height: 1.7;
  color: var(--color-text-secondary, #4a4a4a);
}

.lib-symbol__caption strong {
  color: var(--art-accent);
}

.lib-symbol figcaption {
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-xs, 0.75rem);
  color: var(--color-text-muted, #888);
  font-style: italic;
  margin-top: var(--space-xs);
}


/* ============================================
   LIB-FACT — Historical fact callout
   Solemn accent box for key historical details
   ============================================ */
.lib-fact {
  max-width: 680px;
  margin: var(--space-xl) auto;
  padding: var(--space-lg) var(--space-xl) var(--space-lg) calc(var(--space-xl) + 4px);
  background: linear-gradient(135deg, rgba(27, 58, 92, 0.06) 0%, rgba(27, 58, 92, 0.02) 100%);
  border-left: 4px solid var(--art-accent);
  border-radius: 0 var(--radius-lg, 8px) var(--radius-lg, 8px) 0;
}

.lib-fact__text {
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-lg, 1.125rem);
  line-height: 1.9;
  color: var(--color-text-secondary, #4a4a4a);
}

.lib-fact__text strong {
  color: var(--art-accent);
  font-weight: 600;
}


/* ============================================
   LIB-SPLIT — Side-by-side image + text
   ============================================ */
.lib-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  max-width: 900px;
  margin: var(--space-xl) auto;
}

.lib-split--reverse {
  direction: rtl;
}

.lib-split--reverse > * {
  direction: ltr;
}

.lib-split__figure {
  margin: 0;
}

.lib-split__img-wrap {
  overflow: hidden;
  border-radius: var(--radius-xl, 12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.lib-split__img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.lib-split figcaption {
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-xs, 0.75rem);
  color: var(--color-text-muted, #888);
  font-style: italic;
  margin-top: var(--space-xs);
  text-align: center;
}

.lib-split__text {
  font-family: 'Glacial Indifference', var(--font-body), sans-serif;
  font-size: var(--text-lg, 1.125rem);
  line-height: 1.9;
  color: var(--color-text-secondary, #4a4a4a);
}


/* ── Responsive — Tablet (768px) ── */
@media (max-width: 768px) {
  .art-hero__media img {
    object-position: center 25%;
  }

  .lib-symbols {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .lib-split {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .lib-split--reverse {
    direction: ltr;
  }

  .lib-timeline::before {
    left: 6px;
  }

  .lib-timeline__item {
    padding-left: calc(var(--space-lg) + 8px);
  }

  .lib-timeline__item::before {
    left: 1px;
    width: 10px;
    height: 10px;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .art-hero__media img {
    animation: none;
    transform: none;
  }
}
