/* Fonts load once, from main.css (Crimson Pro 400-800, IBM Plex Sans, IBM Plex Mono, JetBrains Mono). */

:root {
  --norway-red: #ba0c2f;
  --norway-red-hover: #9a0a26;
  --norway-blue: #00205b;
  --norway-blue-dark: #001540;
  --soft-blue: #003d7a;
  --warm-grey: #f5f3f0;
  --paper-ivory: #fffaf3;
  --ink: #16130f;
  --text-body-brand: #3a3a3a;
  --muted-brand: #5a544d;
  --line-brand: rgba(0, 32, 91, 0.11);
  --font-display-brand: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  --font-body-brand: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono-brand: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --shadow-brand: 0 12px 40px rgba(0, 32, 91, 0.14);
}

body {
  background: #fff;
  color: var(--text-body-brand);
  font-family: var(--font-body-brand);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.hero h1,
.section-header h2,
.article-card h3,
.audience-card h3 {
  color: var(--norway-blue);
  font-family: var(--font-display-brand);
  letter-spacing: 0;
}

a {
  color: var(--norway-red);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(186, 12, 47, 0.24);
  outline-offset: 3px;
}

.site-nav {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 32, 91, 0.08);
  box-shadow: 0 2px 14px rgba(0, 32, 91, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-nav.scrolled {
  box-shadow: 0 8px 28px rgba(0, 32, 91, 0.13);
}

.nav-inner {
  max-width: 1400px;
  min-height: 70px;
}

.nav-brand img {
  filter: drop-shadow(0 2px 7px rgba(0, 32, 91, 0.14));
  width: min(10rem, 42vw);
}

.nav-links {
  gap: clamp(0.15rem, 0.8vw, 0.8rem);
}

.nav-links a {
  color: var(--ink);
  font-family: var(--font-body-brand);
  font-weight: 600;
  letter-spacing: 0;
}

.nav-links a::after {
  background: var(--norway-red);
  bottom: -5px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--norway-red);
}

.lang-current {
  border-color: var(--warm-grey);
  color: var(--norway-blue);
  font-family: var(--font-body-brand);
  font-weight: 700;
}

.lang-dropdown {
  border: 1px solid rgba(0, 32, 91, 0.10);
  border-radius: 16px;
  box-shadow: var(--shadow-brand);
}

.stat-strip {
  background: var(--norway-red);
}

.stat-strip .stat-num {
  font-family: var(--font-display-brand);
  font-size: 1.35rem;
}

.hero {
  background:
    radial-gradient(circle at 50% 0%, rgba(186, 12, 47, 0.26), transparent 26rem),
    linear-gradient(148deg, var(--norway-blue-dark), var(--norway-blue) 58%, #180010);
  color: #fff;
}

.hero::before {
  opacity: 0.35;
}

.hero-eyebrow,
.card-type,
.section-header .text-red,
.eyebrow {
  color: var(--norway-red);
  font-family: var(--font-mono-brand);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero .hero-eyebrow,
.hero .lead {
  color: rgba(255, 255, 255, 0.78);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.7rem);
  line-height: 1.04;
}

.hero .lead {
  max-width: 62ch;
}

.btn,
.btn-primary,
.btn-outline,
button,
input[type='submit'] {
  border-radius: 6px;
  font-family: var(--font-body-brand);
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.btn-primary,
input[type='submit'] {
  background: var(--norway-red);
  border-color: var(--norway-red);
  box-shadow: 0 6px 20px rgba(186, 12, 47, 0.28);
  color: #fff;
}

.btn-primary:hover,
input[type='submit']:hover {
  background: var(--norway-red-hover);
  box-shadow: 0 10px 24px rgba(186, 12, 47, 0.36);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: currentColor;
}

.btn-outline:hover {
  background: #fff;
  color: var(--norway-blue);
  transform: translateY(-2px);
}

/* Sections keep the background they were built with; only the off-white ones take the warmer grey.
   (A blanket every-other-section rule here used to turn the navy Press Centre call-out grey.) */
.audience-nav,
.section[style*='off-white'] {
  background: var(--warm-grey) !important;
}

/* The audience cards are separate white cards now: space them, and let them lift on hover. */
.audience-grid {
  background: transparent;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  overflow: visible;
}

.audience-card,
.article-card,
.evidence-card,
.card,
.press-card,
.video-card,
.link-card {
  background: #fff;
  border: 1px solid rgba(0, 32, 91, 0.10);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 32, 91, 0.06);
  overflow: hidden;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.audience-card:hover,
.article-card:hover,
.evidence-card:hover,
.card:hover,
.press-card:hover,
.video-card:hover,
.link-card:hover {
  background: #fff; /* main.css's old near-transparent hover would let the grey show through */
  border-color: rgba(186, 12, 47, 0.25);
  box-shadow: var(--shadow-brand);
  text-decoration: none;
  transform: translateY(-5px);
}

/* Every card that draws the red ::before stripe must contain it; without this the audience cards'
   stripe escaped to the page edge. */
.article-card,
.evidence-card,
.audience-card {
  position: relative;
}

/* main.css writes the audience-card text white for the old navy band; on white cards it vanished. */
.audience-card p {
  color: var(--muted-brand);
}

.article-card::before,
.evidence-card::before,
.audience-card::before {
  background: var(--norway-red);
  content: '';
  inset: 0 auto 0 0;
  position: absolute;
  width: 4px;
}

.card-meta,
.article-meta,
.meta,
time {
  color: var(--muted-brand);
  font-family: var(--font-mono-brand);
  letter-spacing: 0.03em;
}

input,
textarea,
select {
  border: 1px solid rgba(0, 32, 91, 0.16);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--font-body-brand);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(186, 12, 47, 0.48);
  box-shadow: 0 0 0 4px rgba(186, 12, 47, 0.10);
}

.site-footer {
  background:
    radial-gradient(circle at 14% 0%, rgba(186, 12, 47, 0.32), transparent 24rem),
    linear-gradient(135deg, var(--norway-blue-dark), var(--soft-blue));
  color: rgba(255, 255, 255, 0.86);
}

.site-footer h4,
.site-footer p,
.footer-desc {
  color: rgba(255, 255, 255, 0.84);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer a:hover {
  color: #fff;
}

.footer-brand-logo img {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 6px;
  padding: 5px 8px;
}

@media (max-width: 968px) {
  .nav-links a::after {
    bottom: 0;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 12vw, 3.4rem);
  }
}

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