/* ==========================================================================
   Gothia Defence Forum — designsystem v1.0
   Archivo + JetBrains Mono · radie 0 · inga skuggor · ett enda blått
   ========================================================================== */

:root {
  /* Kärnfärger */
  --navy: #001E4D;
  --gothia: #003D96;
  --gothia-hover: #002A6B;
  --signal: #3061C5;
  --red: #E23744;

  /* Neutraler */
  --ink: #10151F;
  --graphite: #5A6472;
  --frost: #A8C2ED;
  --mist: #C6D6F2;
  --silver: #D4D4D4;
  --bone: #F4F5F7;
  --paper: #FFFFFF;

  /* Typsnitt */
  --sans: Archivo, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Mått */
  --gutter: 64px;
  --maxw: 1440px;
}

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

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--signal); text-decoration: none; }
a:hover { color: var(--gothia-hover); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gothia); color: #fff; padding: 12px 20px;
  font-weight: 600; font-size: 15px;
}
.skip:focus { left: 0; color: #fff; }

.duotone-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.section--paper { background: var(--paper); border-top: 1px solid var(--silver); }
.section--bone { background: var(--bone); }

/* ---------- Typografi ---------- */

.lockup {
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 0;
}

.h1 {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.032em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.032em;
  text-transform: uppercase;
  margin: 0;
}

.h3 {
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: pretty;
}

.lead {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.45;
  color: var(--graphite);
  margin: 0;
  max-width: 46ch;
  text-wrap: pretty;
}
.lead--onfield { color: var(--mist); }

.body { font-size: 16px; line-height: 1.6; margin: 0; max-width: 68ch; }

.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--graphite);
}
.label--onfield { color: var(--frost); }
.label--ink { color: var(--ink); }

.meta {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
  font-variant-numeric: tabular-nums;
}
.meta--onfield { color: var(--mist); }

.rule { border: 0; border-top: 1px solid var(--silver); margin: 0; }

/* ---------- Header ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--silver);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header__inner {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.1;
}
.brand:hover { color: var(--gothia); }

.nav { display: flex; align-items: center; gap: 36px; }

.nav__link {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav__link:hover { color: var(--gothia); border-bottom-color: var(--silver); }
.nav__link[aria-current="page"] { color: var(--gothia); border-bottom-color: var(--gothia); }

.langs { display: flex; align-items: stretch; height: 34px; outline: 1px solid var(--silver); outline-offset: -1px; }
.langs__item {
  padding: 0 12px;
  display: flex; align-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
  color: var(--graphite);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.langs__item[aria-current="true"] { background: var(--gothia); color: #fff; }
a.langs__item:hover { background: var(--bone); color: var(--gothia); }
a.langs__item[aria-current="true"]:hover { background: var(--gothia-hover); color: #fff; }

.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer; padding: 0;
}

.mobile-nav { display: none; }

/* ---------- Knappar ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 28px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, outline-color .18s ease;
  text-align: center;
}
.btn--primary { background: var(--gothia); color: #fff; }
.btn--primary:hover { background: var(--gothia-hover); color: #fff; }

.btn--onfield { background: var(--paper); color: var(--gothia); }
.btn--onfield:hover { background: var(--mist); color: var(--gothia-hover); }

.btn--ghost { background: transparent; color: var(--gothia); outline: 2px solid var(--gothia); outline-offset: -2px; }
.btn--ghost:hover { background: var(--gothia); color: #fff; }

.btn--ghost-onfield { background: transparent; color: #fff; outline: 2px solid rgba(255,255,255,0.6); outline-offset: -2px; }
.btn--ghost-onfield:hover { background: rgba(255,255,255,0.14); color: #fff; outline-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.arrow-link:hover { color: var(--gothia-hover); text-decoration-thickness: 2px; }
.arrow-link svg { flex-shrink: 0; transition: transform .18s ease; }
.arrow-link:hover svg { transform: translateX(3px); }
.arrow-link--onfield { color: #fff; }
.arrow-link--onfield:hover { color: var(--mist); }
.arrow-link--onfield svg { stroke: currentColor; }

/* ---------- Chips ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 11px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: calc(11px - 0.16em);   /* tar bort det avslutande letter-spacet */
  outline: 1px solid transparent;       /* ram som snappar till pixelrutnätet */
  outline-offset: -1px;
}
.chip--solid { background: var(--gothia); color: #fff; }
.chip--navy { background: var(--navy); color: #fff; }
.chip--outline { outline-color: var(--gothia); color: var(--gothia); }
.chip--outline-onfield { outline-color: rgba(255,255,255,0.6); color: #fff; }
.chip--onfield { background: var(--paper); color: var(--gothia); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }

.dot { width: 6px; height: 6px; background: var(--red); flex-shrink: 0; }
.dot--lg { width: 8px; height: 8px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img, .hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: url(#gdf-duotone);
}
/* Filmen spelar som standard; stillbilden träder in när rörelse är avstängd. */
.hero__still { display: none; }
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,30,77,0.88) 0%, rgba(0,30,77,0.68) 52%, rgba(0,30,77,0.42) 100%),
    linear-gradient(0deg, rgba(0,30,77,0.82) 0%, rgba(0,30,77,0) 42%);
}
.hero__cut {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gothia);
  clip-path: polygon(0 100%, 0 34%, 100% 100%);
}
.hero__cut--navy { background: var(--navy); clip-path: polygon(0 100%, 0 30%, 100% 100%); }

/* Håller rubriken läsbar oavsett vilken bild som läggs in i eventheron. */
.hero__scrim--soft {
  background: linear-gradient(90deg, rgba(0,30,77,0.66) 0%, rgba(0,30,77,0.38) 58%, rgba(0,30,77,0.05) 100%);
}

.hero__inner { padding-top: 96px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 40px; }
.hero__inner--event { min-height: 420px; justify-content: flex-end; gap: 24px; }

.hero__title { font-size: clamp(48px, 7.4vw, 108px); }
.hero__title--event {
  font-size: clamp(32px, 3.9vw, 54px);
  line-height: 0.95;
  letter-spacing: -0.032em;
  text-transform: uppercase;
  font-weight: 800;
  max-width: 20ch;
  margin: 0;
  text-wrap: balance;
}

.hero__tagline {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
}

.hero__strip {
  border-top: 1px solid rgba(255,255,255,0.28);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.hero__flag { display: flex; align-items: center; gap: 12px; }

/* Mosaikfragmentet — endast där ingen bild ligger */
.fragment { position: absolute; top: 0; right: 0; z-index: -1; pointer-events: none; }

/* ---------- Evenemangskort ---------- */

.event-card {
  display: flex;
  align-items: stretch;
  background: var(--paper);
  outline: 1px solid var(--silver);
  outline-offset: -1px;
  color: var(--ink);
  transition: outline-color .18s ease, transform .18s ease;
}
.event-card:hover {
  outline: 2px solid var(--gothia);
  outline-offset: -2px;
  color: var(--ink);
}
.event-card:hover .event-card__go { color: var(--gothia-hover); }
.event-card:hover .event-card__go svg { transform: translateX(3px); }

.event-card__date {
  width: 148px;
  flex-shrink: 0;
  background: var(--gothia);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.event-card__date--navy { background: var(--navy); }
.event-card__day {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.event-card__month {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.event-card__body {
  flex-grow: 1;
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  min-width: 0;
}
.event-card__title {
  font-size: clamp(20px, 1.9vw, 27px);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.2;
  margin: 0;
  text-wrap: pretty;
}
.event-card__desc { font-size: 15px; line-height: 1.55; color: var(--graphite); margin: 0; max-width: 62ch; }
.event-card__by { font-size: 14px; line-height: 1.5; color: var(--graphite); margin: 0; }

.event-card__go {
  width: 210px;
  flex-shrink: 0;
  border-left: 1px solid var(--silver);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gothia);
  font-size: 15px;
  font-weight: 600;
  transition: color .18s ease;
}
.event-card__go svg { transition: transform .18s ease; }

/* ---------- Nedräknare ----------
   Dold tills skriptet har räknat. Saknas data-start visas den aldrig. */

.countdown { display: none; }
.countdown.is-live { display: block; }

.countdown--band { background: var(--navy); color: #fff; }
.countdown--band .countdown__inner { padding-top: 26px; padding-bottom: 26px; }

.countdown__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

/* Symmetrisk padding i varje enhet — annars hamnar innehållet snett.
   Containern kompenserar första enhetens vänsterpadding. */
.countdown__units { display: flex; gap: 0; margin-left: -18px; }

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 84px;
  padding: 0 18px;
  border-left: 1px solid rgba(255,255,255,0.25);
}
.countdown__unit:first-child { border-left: 0; }

.countdown__num {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__lab {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  margin-right: -0.16em;
  text-transform: uppercase;
  color: var(--frost);
}

.countdown__now {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Kompakt variant i evenemangskorten */
.countdown--card { margin-top: 2px; }
.countdown--card .countdown__inner { justify-content: flex-start; gap: 14px; }
.countdown--card .countdown__unit {
  min-width: 0;
  padding: 0 12px;
  border-left: 1px solid var(--silver);
}
.countdown--card .countdown__units { margin-left: -12px; }
.countdown--card .countdown__num { font-size: 19px; color: var(--gothia); }
.countdown--card .countdown__lab { color: var(--graphite); font-size: 8px; }
.countdown--card .countdown__now { font-size: 15px; color: var(--gothia); }

/* Genomförda evenemang i kalendariet: dämpade, men läsbara. */
.event-card--past .event-card__date { background: var(--graphite); }
.event-card--past .event-card__title { color: var(--graphite); }

/* Gruppetiketter i evenemangslistan */
.group-label { padding-bottom: 12px; border-bottom: 1px solid var(--silver); }
.group-label + .event-card { margin-top: -4px; }
.event-card + .group-label { margin-top: 20px; }

/* ---------- Faktaremsa ---------- */

.facts {
  background: var(--paper);
  border-bottom: 1px solid var(--silver);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.facts__item {
  padding: 26px 32px;
  border-right: 1px solid var(--silver);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.facts__item:last-child { border-right: 0; }
.facts__value { font-size: 17px; font-weight: 600; }
.facts__value--mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Numrerad lista ---------- */

.numbered { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.numbered__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--silver);
}
.numbered__item:last-child { border-bottom: 1px solid var(--silver); }
.numbered__num { font-family: var(--mono); font-size: 13px; color: var(--gothia); }
.numbered__text { font-size: 17px; line-height: 1.55; }

/* ---------- Program ---------- */

.program { display: flex; flex-direction: column; }
.program__row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--silver);
}
.program__row:last-child { border-bottom: 0; }
.program__row--mark { background: var(--bone); padding-left: 18px; padding-right: 18px; }
.program__time {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--gothia);
  font-variant-numeric: tabular-nums;
}
.program__what { font-size: 16px; font-weight: 600; }
.program__who { font-size: 13px; color: var(--graphite); }

/* ---------- Personkort ---------- */

.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.person {
  background: var(--paper);
  outline: 1px solid var(--silver);
  outline-offset: -1px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.person__avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--frost);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.person__avatar img { width: 100%; height: 100%; object-fit: cover; filter: url(#gdf-duotone); }
.person--bone { background: var(--bone); }
.person__name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.person__role { font-size: 13px; line-height: 1.45; color: var(--graphite); margin: 0; }
.person__text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

/* ---------- Kort ---------- */

.card {
  background: var(--paper);
  outline: 1px solid var(--silver);
  outline-offset: -1px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card--bone { background: var(--bone); }
.card__title { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; margin: 0; }
.card__text { font-size: 14px; line-height: 1.55; color: var(--graphite); margin: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.split { display: grid; grid-template-columns: 420px 1fr; gap: 72px; align-items: start; }

/* ---------- Fält & citat ---------- */

.field { background: var(--gothia); color: #fff; }
.field--navy { background: var(--navy); }

.quote { font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; line-height: 1.3; letter-spacing: -0.018em; margin: 0; max-width: 30ch; text-wrap: pretty; }
.quote__by { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.quote__dash { width: 28px; height: 2px; background: #fff; }

.pillar {
  display: grid;
  grid-template-columns: 460px 1fr;
  align-items: stretch;
}
.pillar__side {
  background: var(--gothia);
  color: #fff;
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}
.pillar__main { background: var(--paper); padding: 64px; }
.pillar__mark { width: 44px; height: 3px; background: #fff; margin-top: 6px; }

/* ---------- Bildband ---------- */

.band { position: relative; overflow: hidden; background: var(--navy); height: 420px; }
.band img { width: 100%; height: 100%; object-fit: cover; filter: url(#gdf-duotone); }
.band__cut { position: absolute; inset: 0; background: var(--gothia); clip-path: polygon(0 100%, 0 68%, 100% 100%); }
.band__caption {
  position: absolute; left: 0; right: 0; bottom: 26px;
  color: #fff;
}

/* ---------- Dokumentlista ---------- */

.docs { display: flex; flex-direction: column; }
.docs__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--silver);
  min-height: 62px;
  color: var(--ink);
  transition: color .18s ease;
}
.docs__row:last-child { border-bottom: 1px solid var(--silver); }
.docs__row:hover { color: var(--gothia); }
.docs__row:hover svg { transform: translateX(3px); }
.docs__name { font-size: 16px; font-weight: 600; }
.docs__meta { display: flex; align-items: center; gap: 18px; }
.docs__row svg { transition: transform .18s ease; }

/* ---------- CTA-band ---------- */

.cta {
  background: var(--gothia);
  color: #fff;
  padding: 72px 0;
}
.cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 48px; flex-wrap: wrap; }
.cta__title { font-size: clamp(21px, 2vw, 26px); font-weight: 700; letter-spacing: -0.018em; line-height: 1.25; margin: 0; max-width: 40ch; text-wrap: pretty; }
.cta__text { font-size: 16px; line-height: 1.55; color: var(--mist); margin: 8px 0 0; }

/* ---------- Sidfot ---------- */

.site-footer { background: var(--navy); color: #fff; }
.site-footer__top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding: 64px 0 56px;
  flex-wrap: wrap;
}
.site-footer__cols { display: flex; gap: 80px; flex-wrap: wrap; }
.site-footer__col { display: flex; flex-direction: column; gap: 16px; }
.site-footer__lockup { font-size: 24px; font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; text-transform: uppercase; margin: 0; }
.site-footer__blurb { font-size: 13px; line-height: 1.55; color: var(--mist); margin: 0; max-width: 34ch; }
.site-footer__name { font-size: 14px; font-weight: 600; }
.site-footer__mail { font-family: var(--mono); font-size: 12px; color: var(--mist); }
a.site-footer__mail:hover, .site-footer__col a:hover { color: #fff; }
.site-footer__link { font-size: 14px; font-weight: 600; color: #fff; display: inline-flex; align-items: center; gap: 10px; min-height: 32px; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 22px 0 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer__small { font-size: 12px; color: var(--mist); }

/* ---------- Notis ---------- */

.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--paper);
  outline: 1px solid var(--silver);
  outline-offset: -1px;
  padding: 18px 22px;
}
.note__icon { width: 16px; height: 16px; background: var(--gothia); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.note__text { font-size: 13px; line-height: 1.55; color: var(--graphite); margin: 0; }

/* ---------- Brödsmula tillbaka ---------- */

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 20px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--signal);
}
.back:hover { color: var(--gothia-hover); }
.back svg { transition: transform .18s ease; }
.back:hover svg { transform: translateX(-3px); }

/* ---------- Stack-hjälpare ---------- */

.stack { display: flex; flex-direction: column; }
.stack-8 { gap: 8px; } .stack-12 { gap: 12px; } .stack-16 { gap: 16px; }
.stack-20 { gap: 20px; } .stack-24 { gap: 24px; } .stack-32 { gap: 32px; } .stack-40 { gap: 40px; }
.head { display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--silver); padding-bottom: 14px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ==========================================================================
   Responsivt
   ========================================================================== */

@media (max-width: 1180px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar { grid-template-columns: 1fr; }
  .pillar__side { padding: 48px 40px; }
  .pillar__main { padding: 48px 40px; }
  .event-card__go { width: 170px; }
}

@media (max-width: 900px) {
  :root { --gutter: 32px; }

  .nav, .langs { display: none; }
  .burger { display: flex; }

  /* Menyn är ett eget lager under headern, inte en del av sidflödet —
     annars öppnas den längst upp i dokumentet och syns inte när man
     har scrollat ner. Höjden på headern sätts av skriptet. */
  .mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-h, 84px);
    left: 0;
    right: 0;
    z-index: 39;
    background: var(--paper);
    border-bottom: 1px solid var(--silver);
    max-height: calc(100dvh - var(--header-h, 84px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 28px;   /* luft under språkväljaren */
  }
  .mobile-nav.is-open { display: block; }

  .mobile-nav__overlay {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    top: var(--header-h, 84px);
    z-index: 38;
    background: rgba(16, 21, 31, 0.45);
  }
  .mobile-nav__overlay.is-open { display: block; }
  .mobile-nav__list { display: flex; flex-direction: column; padding: 8px 0 20px; }
  .mobile-nav__link {
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    padding: 16px 0;
    border-bottom: 1px solid var(--silver);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .mobile-nav__link[aria-current="page"] { color: var(--gothia); }
  .mobile-nav__langs { display: flex; align-items: stretch; height: 40px; outline: 1px solid var(--silver); outline-offset: -1px; width: fit-content; margin-top: 20px; }

  .section { padding: 56px 0; }
  .section--tight { padding: 40px 0; }

  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__item { border-bottom: 1px solid var(--silver); }
  .facts__item:nth-child(2n) { border-right: 0; }
  .facts__item:nth-last-child(-n+2) { border-bottom: 0; }

  .grid-2 { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }

  .event-card { flex-wrap: wrap; }
  .event-card__date { width: 100%; flex-direction: row; gap: 12px; padding: 12px 0; align-items: baseline; justify-content: center; }
  .event-card__day { font-size: 30px; }
  .event-card__body { padding: 22px 24px; width: 100%; }
  .event-card__go {
    width: 100%;
    border-left: 0;
    border-top: 1px solid var(--silver);
    padding: 16px 24px;
    justify-content: flex-start;
  }

  .hero__inner { padding-top: 64px; padding-bottom: 40px; gap: 28px; }
  .hero__inner--event { min-height: 340px; padding-top: 80px; }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(0,30,77,0.55) 0%, rgba(0,30,77,0.86) 62%);
  }
  .btn-row .btn { flex-grow: 1; }

  .band { height: 280px; }
  .countdown__inner { gap: 16px; }
  .countdown--band .countdown__units { margin-left: 0; }
  .countdown__unit { min-width: 68px; padding: 0 12px; }
  .countdown__units { margin-left: -12px; }
  .countdown__num { font-size: 26px; }
  .countdown--card .countdown__unit { padding: 0 9px; }
  .countdown--card .countdown__units { margin-left: -9px; }
  .countdown--card .countdown__num { font-size: 17px; }
  .site-footer__link, .docs__row { min-height: 44px; }
  .site-footer__cols { gap: 40px; flex-direction: column; }
  .program__row { grid-template-columns: 78px 1fr; gap: 16px; }
  .numbered__item { grid-template-columns: 40px 1fr; gap: 14px; }
  .cta { padding: 48px 0; }
}

@media (max-width: 520px) {
  :root { --gutter: 20px; }
  .facts { grid-template-columns: 1fr; }
  .facts__item { border-right: 0; }
  .facts__item:last-child { border-bottom: 0; }
  .person { flex-direction: column; align-items: flex-start; gap: 16px; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__video { display: none; }
  .hero__still { display: block; }
}

@media print {
  .site-header, .mobile-nav, .cta, .back { display: none; }
  body { background: #fff; }
}

/* ---------- Fokus ----------
   Ligger sist i filen med flit: ramarna ovan ritas med outline, och
   fokusringen måste kunna vinna över dem när någon tabbar sig fram.     */

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
}
