/* REGAFRIK — editorial identity, built around the existing navy / violet / gold charter. */
:root {
  --ra-ink: #14213c;
  --ra-navy: #0d1b3e;
  --ra-violet: #4a2c8f;
  --ra-gold: #c9a84c;
  --ra-paper: #f6f3eb;
  --ra-rule: #ded8ca;
  --ra-muted: #667085;
}

html { scroll-behavior: smooth; }
body { background: var(--ra-paper); color: var(--ra-ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #a37c21 !important;
  outline-offset: 3px;
}

/* The welcome video and its playback/fallback logic remain untouched. */
#hero { min-height: min(760px, 84svh); }
.hero-content { max-width: 1000px; }
.hero-title { letter-spacing: -.035em; }
.hero-subtitle { max-width: 58ch; margin-inline: auto; }
.hero-badges { margin-top: 1.2rem; }
.tease { margin-top: -2.8rem; }

.ra-editorial {
  --ra-section-width: 1160px;
  position: relative;
  isolation: isolate;
  padding: clamp(3.5rem, 7vw, 6.5rem) 1.25rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 95% 3%, rgba(201,168,76,.11), transparent 34rem),
    var(--ra-paper);
}
.ra-editorial::before {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: min(16vw, 190px);
  content: "";
  background: repeating-linear-gradient(90deg, transparent 0 23px, rgba(13,27,62,.025) 24px 25px);
  pointer-events: none;
}
.ra-ed-inner { width: min(100%, var(--ra-section-width)); margin: 0 auto; }
.ra-ed-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.15rem;
}
.ra-ed-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 .75rem;
  color: var(--ra-violet);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ra-ed-eyebrow::before { width: 26px; height: 2px; content: ""; background: var(--ra-gold); }
.ra-ed-heading h2, .ra-impact-copy h2, .ra-dossier h3 {
  color: var(--ra-navy);
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  letter-spacing: -.025em;
}
.ra-ed-heading h2 { max-width: 18ch; margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.04; }
.ra-ed-heading > p { max-width: 37ch; margin: 0 0 .15rem; color: var(--ra-muted); font-size: .94rem; line-height: 1.7; }
.ra-ed-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--ra-violet);
  font-size: .85rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.ra-ed-link:hover { color: var(--ra-navy); }

.ra-impact {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr);
  min-height: 400px;
  overflow: hidden;
  background: var(--ra-navy);
  box-shadow: 0 22px 54px -35px rgba(13,27,62,.65);
}
.ra-impact-visual {
  position: relative;
  min-height: 360px;
  background:
    linear-gradient(145deg, rgba(13,27,62,.06), rgba(13,27,62,.82)),
    var(--ra-impact-image, linear-gradient(135deg,#1d3154,#493d75 58%,#b28b43));
  background-size: cover;
  background-position: center;
}
.ra-impact-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .48;
  background: repeating-linear-gradient(135deg, transparent 0 20px, rgba(255,255,255,.09) 21px 22px);
  mix-blend-mode: soft-light;
}
.ra-impact-stamp {
  position: absolute;
  z-index: 1;
  top: 1.4rem;
  left: 1.4rem;
  padding: .48rem .75rem;
  border: 1px solid rgba(255,255,255,.52);
  color: #fff;
  background: rgba(13,27,62,.45);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ra-impact-visual-title {
  position: absolute;
  z-index: 1;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(1.5rem, 5vw, 3.6rem);
  left: clamp(1.25rem, 4vw, 3rem);
  max-width: 20ch;
  margin: 0;
  color: white;
  font: 700 clamp(1.8rem, 4vw, 3.25rem)/1.1 'Playfair Display', Georgia, serif;
  text-wrap: balance;
}
.ra-impact-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: rgba(255,255,255,.76);
  background: linear-gradient(155deg,#0d1b3e,#18284c 75%,#292044);
}
.ra-impact-copy .ra-ed-eyebrow { color: #e2c66f; }
.ra-impact-copy h2 { margin: 0 0 1rem; color: #fff; font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.12; }
.ra-impact-copy > p { margin: 0 0 1.15rem; font-size: .9rem; line-height: 1.7; }
.ra-impact-reference { padding: .75rem 0; border-top: 1px solid rgba(255,255,255,.17); border-bottom: 1px solid rgba(255,255,255,.17); }
.ra-impact-reference small { display: block; margin-bottom: .35rem; color: #e2c66f; font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ra-impact-reference span { color: rgba(255,255,255,.87); font-size: .78rem; line-height: 1.5; }
.ra-impact-source-links { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-top: .55rem; }
.ra-impact-source-links a { color: #e4ca7c; font-size: .75rem; text-underline-offset: 3px; }
.ra-impact-action {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: .7rem;
  margin-top: 1.35rem;
  color: #f0d98e;
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
}
.ra-impact-action:hover { color: #fff; }

.ra-research-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr);
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(4rem, 8vw, 7rem);
}
.ra-doc-feed { border-top: 1px solid var(--ra-rule); }
.ra-doc-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: start;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--ra-rule);
}
.ra-doc-index { padding-top: .12rem; color: #a18a51; font: 700 1.05rem 'Playfair Display', Georgia, serif; }
.ra-doc-meta { display: flex; flex-wrap: wrap; gap: .4rem .7rem; align-items: center; margin-bottom: .4rem; color: var(--ra-muted); font-size: .7rem; }
.ra-doc-meta strong { color: var(--ra-violet); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.ra-doc-row h3 { max-width: 50ch; margin: 0 0 .38rem; color: var(--ra-navy); font: 700 1rem/1.45 'Lato', sans-serif; }
.ra-doc-reference { color: #697386; font-size: .76rem; line-height: 1.5; }
.ra-doc-open {
  align-self: center;
  min-width: 44px;
  padding: .55rem .7rem;
  border: 1px solid var(--ra-rule);
  color: var(--ra-violet);
  font-size: .76rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.ra-doc-open:hover { border-color: var(--ra-violet); color: var(--ra-navy); }
.ra-doc-when { display: block; margin-top: .45rem; color: #848b97; font-size: .68rem; }
.ra-doc-empty { padding: 1.5rem; border: 1px dashed #c8c0af; color: var(--ra-muted); font-size: .88rem; line-height: 1.65; }

.ra-search-aside {
  align-self: start;
  padding: 1.7rem;
  color: #fff;
  background: var(--ra-violet);
  box-shadow: 11px 12px 0 rgba(201,168,76,.26);
}
.ra-search-aside .ra-ed-eyebrow { color: #f1d98f; }
.ra-search-aside h3 { margin: 0 0 .5rem; color: #fff; font: 700 1.45rem/1.15 'Playfair Display', Georgia, serif; }
.ra-search-aside > p { margin: 0 0 1.1rem; color: rgba(255,255,255,.75); font-size: .82rem; line-height: 1.55; }
.ra-search-suggestion { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem 0; border-top: 1px solid rgba(255,255,255,.2); color: white; font-size: .83rem; line-height: 1.4; text-decoration: none; }
.ra-search-suggestion span:last-child { color: #f1d98f; font-size: 1rem; }
.ra-search-suggestion:hover { color: #f1d98f; }
.ra-search-note { display: block; margin-top: .85rem; color: rgba(255,255,255,.59); font-size: .67rem; line-height: 1.5; }

.ra-dossier-section {
  padding: clamp(3.5rem, 7vw, 6rem) 1.25rem;
  background: #eae5d9;
}
.ra-dossier-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.ra-dossier {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 225px;
  padding: clamp(1.2rem, 2.5vw, 2rem);
  overflow: hidden;
  color: var(--ra-ink);
  background: #f8f6f0;
  border-top: 3px solid var(--ra-gold);
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease;
}
.ra-dossier:nth-child(3n + 2) { background: #e2dced; border-color: var(--ra-violet); }
.ra-dossier:nth-child(3n) { color: #fff; background: var(--ra-navy); border-color: var(--ra-gold); }
.ra-dossier:nth-child(4n + 1) { grid-column: span 5; }
.ra-dossier:nth-child(4n + 2) { grid-column: span 7; }
.ra-dossier:nth-child(4n + 3) { grid-column: span 7; }
.ra-dossier:nth-child(4n) { grid-column: span 5; }
.ra-dossier:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -22px rgba(13,27,62,.55); }
.ra-dossier-kicker { color: var(--ra-violet); font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ra-dossier:nth-child(3n) .ra-dossier-kicker { color: #e5cd83; }
.ra-dossier h3 { max-width: 21ch; margin: .7rem 0 .55rem; font-size: clamp(1.25rem, 2.2vw, 1.8rem); line-height: 1.15; }
.ra-dossier:nth-child(3n) h3 { color: white; }
.ra-dossier p { max-width: 47ch; margin: 0; color: var(--ra-muted); font-size: .82rem; line-height: 1.6; }
.ra-dossier:nth-child(3n) p { color: rgba(255,255,255,.72); }
.ra-dossier-foot { display: flex; justify-content: space-between; gap: .75rem; align-items: center; margin-top: 1.7rem; padding-top: .75rem; border-top: 1px solid rgba(13,27,62,.13); color: var(--ra-violet); font-size: .72rem; font-weight: 800; }
.ra-dossier:nth-child(3n) .ra-dossier-foot { border-color: rgba(255,255,255,.2); color: #e5cd83; }
.ra-dossier-foot small { color: var(--ra-muted); font-size: .68rem; font-weight: 600; }
.ra-dossier:nth-child(3n) .ra-dossier-foot small { color: rgba(255,255,255,.58); }

@media (max-width: 760px) {
  #hero { min-height: 690px; padding-bottom: 118px; }
  .tease { margin-top: -1.2rem; }
  .ra-ed-heading { align-items: start; flex-direction: column; }
  .ra-ed-heading > p { max-width: 52ch; }
  .ra-impact, .ra-research-grid { grid-template-columns: 1fr; }
  .ra-impact-visual { min-height: 320px; }
  .ra-search-aside { max-width: none; }
  .ra-dossier:nth-child(n) { grid-column: 1 / -1; }
  .ra-doc-row { grid-template-columns: 32px 1fr; gap: .7rem; }
  .ra-doc-open { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ra-dossier, .ra-ed-link, .ra-impact-action { transition: none; }
}
