/* ===========================================================
   Xnei — single source of visual truth
   Ported from the static prototype (css/style.css + css/pages.css)
   with the official brand palette and WordPress / bilingual additions.
   "Atkvæðið er þitt"
   =========================================================== */

/* -----------------------------------------------------------
   Design tokens (OFFICIAL brand guide — overrides prototype)
   ----------------------------------------------------------- */
:root {
  --bla: #02529C;        /* Þjóðarblár — primary */
  --bla-ljos: #0A63B0;   /* lighter blue — countdown bar */
  --raudur: #DC1E35;     /* Þjóðarrauður — X accent */
  --hvitt: #FFFFFF;
  --ljosblar: #7FA8D8;   /* secondary light blue (eyebrows on dark) */
  --kremhvitt: #F7F4F0;  /* surface */
  --gratt: #737373;      /* muted body text */
  --svart: #0D0D0D;      /* footer */
  --mynd-bla: #E1ECF7;   /* placeholder boxes */

  --serif: 'Libre Baskerville', Georgia, serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --nav-h: 64px;

  /* Derived helpers (kept here so they update with the brand). */
  --bla-rgb: 2, 82, 156;
  --line: rgba(2, 82, 156, 0.12);
  --line-strong: rgba(2, 82, 156, 0.2);
  --raudur-dark: #b3162a;
}

/* -----------------------------------------------------------
   Reset & base
   ----------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gratt);
  background: var(--hvitt);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* The WordPress admin bar should not hide the fixed nav. */
body.admin-bar .nav { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .nav { top: 46px; }
}

/* -----------------------------------------------------------
   Layout helpers
   ----------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

section { padding: 88px 0; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--raudur);
  display: inline-block;
  margin-bottom: 18px;
}
.eyebrow--blue { color: var(--ljosblar); }
.eyebrow--rule::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 12px;
  opacity: 0.8;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--bla);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h2 { font-size: clamp(32px, 3.5vw, 48px); }
h3 { font-size: 21px; }

.section-title { margin-bottom: 14px; }
.section-intro { max-width: 640px; color: var(--gratt); font-size: 16px; }

.italic { font-style: italic; }
.text-red { color: var(--raudur); }

/* -----------------------------------------------------------
   Logo wordmark
   ----------------------------------------------------------- */
.xnei { font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; }
.xnei .x { color: var(--raudur); }
.xnei .nei { color: var(--bla); }
.xnei--onDark .nei { color: var(--hvitt); }
.xnei--light .nei { color: var(--ljosblar); }

/* -----------------------------------------------------------
   Buttons
   ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled],
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn--primary { background: var(--bla); color: var(--hvitt); }
.btn--primary:hover { background: var(--raudur); }

.btn--red { background: var(--raudur); color: var(--hvitt); }
.btn--red:hover { background: var(--raudur-dark); }

.btn--ghost { background: transparent; color: var(--hvitt); border-color: rgba(255,255,255,0.4); }
.btn--ghost:hover { border-color: var(--hvitt); background: rgba(255,255,255,0.08); }

.btn--ghost-dark { background: transparent; color: var(--bla); border-color: rgba(var(--bla-rgb),0.3); }
.btn--ghost-dark:hover { border-color: var(--bla); background: rgba(var(--bla-rgb),0.05); }

.btn--block { width: 100%; justify-content: center; }

/* -----------------------------------------------------------
   Skip link (visually hidden until focused)
   ----------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--bla);
  color: var(--hvitt);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 0 0 3px 0;
}
.skip-link:focus {
  left: 0;
  outline: 2px solid var(--raudur);
  outline-offset: 2px;
}

/* -----------------------------------------------------------
   Navigation
   ----------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(247,244,240,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--line);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.nav__logo { font-size: 22px; }
.nav__links { display: flex; gap: 30px; align-items: center; }
.nav__links a {
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  color: var(--bla); letter-spacing: 0.02em;
  position: relative; padding: 4px 0; transition: color .2s;
}
.nav__links a:hover { color: var(--raudur); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px;
  background: var(--raudur); transition: width .25s ease;
}
.nav__links a:hover::after { width: 100%; }
.nav__cta { padding: 10px 20px; font-size: 12.5px; }

.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav__burger span { width: 24px; height: 2px; background: var(--bla); transition: .3s; }
/* Burger -> X when the overlay is open (toggled by JS). */
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bla);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px;
  padding: 40px 20px;
  transform: translateX(100%); transition: transform .35s ease;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { font-family: var(--serif); font-weight: 700; font-size: 30px; color: var(--hvitt); }
.mobile-menu a:hover { color: var(--raudur); }
.mobile-menu .mobile-menu__cta {
  font-family: var(--sans);
  font-size: 13.5px;
  margin-top: 8px;
}
.mobile-menu .mobile-menu__cta:hover { color: var(--hvitt); }

/* -----------------------------------------------------------
   Language toggle (IS | EN)
   ----------------------------------------------------------- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.08em;
}
.lang-toggle a {
  color: var(--bla);
  opacity: 0.55;
  padding: 2px 2px;
  transition: opacity .2s, color .2s;
}
.lang-toggle a:hover { opacity: 1; color: var(--raudur); }
.lang-toggle a.is-active { opacity: 1; color: var(--bla); text-decoration: underline; text-underline-offset: 3px; }
.lang-toggle__sep { color: var(--line-strong); }

/* Inside the dark mobile overlay the toggle flips to light. */
.mobile-menu__lang { margin-top: 14px; font-size: 16px; gap: 12px; }
.mobile-menu__lang a { color: rgba(255,255,255,0.6); }
.mobile-menu__lang a:hover { color: var(--hvitt); }
.mobile-menu__lang a.is-active { color: var(--hvitt); }
.mobile-menu__lang .lang-toggle__sep { color: rgba(255,255,255,0.35); }

/* -----------------------------------------------------------
   Footer
   ----------------------------------------------------------- */
.footer { background: var(--svart); color: #b8b4ae; padding: 70px 0 0; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-bottom: 50px;
}
.footer__brand .xnei { font-size: 30px; display: block; margin-bottom: 16px; }
.footer__slogan { font-family: var(--serif); font-style: italic; font-size: 15px; color: #9a958e; max-width: 280px; line-height: 1.6; }
.footer__col h4 {
  font-family: var(--sans); font-weight: 600; font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ljosblar); margin-bottom: 18px;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer__col a { font-size: 15px; color: #cfcbc4; transition: color .2s; }
.footer__col a:hover { color: var(--hvitt); }
.footer__social { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.footer__social a {
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.18); border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: #cfcbc4; transition: .2s;
}
.footer__social a:hover { background: var(--raudur); border-color: var(--raudur); color: var(--hvitt); }
.footer__social svg { width: 16px; height: 16px; fill: currentColor; }
.footer__email { font-size: 15px; color: #cfcbc4; }
.footer__email:hover { color: var(--hvitt); }
.footer__bottom {
  border-top: 0.5px solid rgba(255,255,255,0.08);
  padding: 22px 0; display: flex; justify-content: space-between; gap: 14px;
  font-size: 12.5px; color: #8a857e;
}

/* -----------------------------------------------------------
   Coalition strip
   ----------------------------------------------------------- */
.coalition { background: var(--hvitt); text-align: center; padding: 70px 0; }
.coalition__label {
  font-family: var(--sans); font-weight: 600; font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gratt); margin-bottom: 28px;
}
.coalition__row { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.coalition__item { display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; }
.coalition__box {
  width: 64px; height: 64px; background: var(--mynd-bla); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--bla);
  transition: transform .2s, box-shadow .2s;
}
.coalition__item:hover .coalition__box { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(var(--bla-rgb),0.12); }
.coalition__name { font-size: 10px; color: var(--gratt); letter-spacing: 0.04em; max-width: 90px; }

.coalition__tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--svart); color: var(--hvitt); font-size: 11px; white-space: nowrap;
  padding: 6px 10px; border-radius: 3px; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.coalition__item:hover .coalition__tip { opacity: 1; }

/* -----------------------------------------------------------
   Scroll reveal
   ----------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--bla);
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__texture {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 56px);
  pointer-events: none;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(var(--bla-rgb),0.75); }

.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  width: 100%;
}
.hero__eyebrow { color: var(--ljosblar); }
.hero h1 {
  color: var(--hvitt);
  font-size: clamp(52px, 6vw, 80px);
  line-height: 1.02;
  margin: 6px 0 26px;
}
.hero h1 .nei { color: var(--raudur); }
.hero__slogan {
  font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.8vw, 21px);
  color: #dce6f4; border-left: 2px solid var(--raudur); padding-left: 20px;
  max-width: 460px; margin-bottom: 34px; line-height: 1.5;
}
.hero__buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__right { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero__mark { font-size: clamp(100px, 14vw, 180px); line-height: 1; }
.hero__mark .nei { color: var(--hvitt); }
.hero__caption {
  margin-top: 18px; font-family: var(--sans); font-weight: 600;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ljosblar);
}

/* ===========================================================
   Countdown bar
   =========================================================== */
.countdown { background: var(--bla-ljos); padding: 22px 0; }
.countdown__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.countdown__label {
  font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ljosblar);
}
.countdown__clock { display: flex; align-items: flex-start; gap: 14px; }
.countdown__unit { text-align: center; min-width: 58px; }
.countdown__num { font-family: var(--serif); font-weight: 700; font-size: 32px; color: var(--hvitt); line-height: 1; }
.countdown__unit small {
  display: block; margin-top: 6px; font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ljosblar);
}
.countdown__sep { font-family: var(--serif); font-weight: 700; font-size: 28px; color: var(--raudur); line-height: 1; padding-top: 2px; }
.countdown__date {
  font-family: var(--sans); font-weight: 600; font-size: 13px; color: var(--hvitt); letter-spacing: 0.04em;
}

/* ===========================================================
   Photo strip
   =========================================================== */
.photos { background: var(--kremhvitt); padding: 0; }
.photos__strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
/* When there are more than four photos, switch to a horizontal scroll strip. */
.photos__strip--scroll {
  display: flex; gap: 4px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.photos__strip--scroll .photos__item {
  flex: 0 0 calc(25% - 3px); scroll-snap-align: start;
}
.photos__strip--scroll::-webkit-scrollbar { height: 8px; }
.photos__strip--scroll::-webkit-scrollbar-thumb {
  background: var(--ljosblar); border-radius: 4px;
}
.photos__item {
  aspect-ratio: 3 / 2; background: var(--mynd-bla);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.photos__item img { width: 100%; height: 100%; object-fit: cover; }
.photos__placeholder {
  font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ljosblar);
}

/* ===========================================================
   Arguments grid
   =========================================================== */
.args { background: var(--kremhvitt); }
.args__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.arg-card {
  background: var(--hvitt); padding: 38px 30px 34px; position: relative;
  border-top: 3px solid transparent; transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.arg-card:hover { border-top-color: var(--raudur); transform: translateY(-4px); box-shadow: 0 14px 30px rgba(var(--bla-rgb),0.08); }
.arg-card__num {
  font-family: var(--serif); font-weight: 700; font-size: 56px; color: var(--mynd-bla);
  line-height: 1; margin-bottom: 16px;
}
.arg-card h3 { margin-bottom: 12px; }
.arg-card p { font-size: 15px; line-height: 1.7; }

/* ===========================================================
   Honest question
   =========================================================== */
.honest { background: var(--bla); color: #dce6f4; }
.honest__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.honest h2 { color: var(--hvitt); margin-bottom: 22px; }
.honest h2 .em { font-style: italic; color: var(--raudur); }
.honest__body p { margin-bottom: 16px; font-size: 16px; color: #c4d3e8; }
.honest__body .btn { margin-top: 12px; }

.honest__card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 4px; padding: 34px 32px;
}
.honest__card .label {
  font-family: var(--sans); font-weight: 600; font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ljosblar); display: block; margin-bottom: 12px;
}
.honest__quote { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--hvitt); line-height: 1.45; }
.honest__divider { height: 1px; background: rgba(255,255,255,0.16); margin: 26px 0; }
.honest__card p { font-size: 15px; color: #c4d3e8; }
.honest__right-answer { color: var(--raudur); font-weight: 600; margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 17px; }

/* ===========================================================
   Events list
   =========================================================== */
.events { background: var(--kremhvitt); }
.news-section { background: var(--hvitt); }
.events__list { margin-top: 44px; display: flex; flex-direction: column; }
.event-row {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 26px; align-items: center;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.event-row:last-child { border-bottom: 1px solid var(--line); }
.event-row.past { opacity: 0.45; }
.event__date {
  text-align: center; background: var(--hvitt); border: 1px solid rgba(var(--bla-rgb),0.1);
  border-radius: 4px; padding: 10px 6px;
}
.event__day { font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--bla); line-height: 1; }
.event__mon { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--raudur); margin-top: 4px; }
.event__info h3 { font-size: 19px; margin-bottom: 4px; }
.event__info h3 a { transition: color .2s; }
.event__info h3 a:hover { color: var(--raudur); }
.event__meta { font-size: 14px; color: var(--gratt); }
.event__time { font-family: var(--sans); font-weight: 600; font-size: 13px; color: var(--bla); letter-spacing: 0.04em; }
.events__more { margin-top: 30px; }
.events__empty { margin-top: 40px; font-style: italic; font-family: var(--serif); color: var(--gratt); font-size: 18px; }
.events__link { color: var(--raudur); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; }
.events__link:hover { text-decoration: underline; }

/* ===========================================================
   Join / steps / form card
   =========================================================== */
.join { background: var(--kremhvitt); }
.join__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 40px; align-items: start; }
.join__center { display: flex; justify-content: center; margin-top: 40px; }
.join__center .form-card--cta { width: 100%; max-width: 440px; }
.steps { display: flex; flex-direction: column; gap: 22px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__num { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--raudur); min-width: 34px; }
.step__text h3 { font-size: 18px; margin-bottom: 2px; }
.step__text p { font-size: 14px; }

.form-card { background: var(--hvitt); padding: 36px 34px; border-radius: 4px; box-shadow: 0 10px 30px rgba(var(--bla-rgb),0.06); }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: var(--sans); font-weight: 600; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--bla); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-family: var(--sans); font-size: 15px;
  border: 1px solid var(--line-strong); border-radius: 3px; background: var(--kremhvitt); color: var(--svart);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--bla); box-shadow: 0 0 0 3px rgba(var(--bla-rgb),0.12);
}
.field input::placeholder, .field textarea::placeholder { color: #a9a4a0; }
.field--required label::after { content: " *"; color: var(--raudur); }

.form-success { font-family: var(--serif); font-size: 20px; color: var(--bla); line-height: 1.5; text-align: center; padding: 30px 0; }
.form-success .text-red { font-style: italic; }

/* ===========================================================
   Volunteer form (taktu-thatt)
   =========================================================== */
.vol-form__title { font-size: 22px; margin-bottom: 8px; }
.vol-form__lead { font-size: 14.5px; color: var(--gratt); margin-bottom: 24px; line-height: 1.6; }

.vol-form .field:last-of-type { margin-bottom: 22px; }

/* Three preference selects — responsive grid. */
.pref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.pref-row { display: flex; flex-direction: column; margin: 0; }
.pref-row label {
  display: block; font-family: var(--sans); font-weight: 600; font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--bla); margin-bottom: 7px;
}
.pref-row select {
  width: 100%; padding: 11px 12px; font-family: var(--sans); font-size: 14px;
  border: 1px solid var(--line-strong); border-radius: 3px; background: var(--kremhvitt); color: var(--svart);
  transition: border-color .2s, box-shadow .2s;
}
.pref-row select:focus { outline: none; border-color: var(--bla); box-shadow: 0 0 0 3px rgba(var(--bla-rgb),0.12); }
/* JS flags a duplicate preference choice. */
.pref-row.has-error select { border-color: var(--raudur); }
.pref-row__hint { font-size: 12px; color: var(--raudur); margin-top: 6px; min-height: 0; }

/* Consent checkbox + label inline. */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--gratt);
}
.consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin-top: 3px;
  accent-color: var(--bla);
  cursor: pointer;
}
.consent label { cursor: pointer; }
.consent a { color: var(--bla); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--raudur); }

/* Volunteer opt-in extra fields — revealed only when the box is ticked. */
.vol-extra[hidden] { display: none; }
.vol-extra {
  margin: 4px 0 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(var(--bla-rgb), 0.14);
}

/* Honeypot — visually hidden, never shown to humans. */
.xnei-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Cloudflare Turnstile container. */
.turnstile { margin: 4px 0 20px; min-height: 65px; }
.turnstile .cf-turnstile { display: inline-block; }

/* ===========================================================
   Form status banners
   =========================================================== */
.form-status-section { padding: 36px 0 0; }
.form-status {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  padding: 16px 22px;
  border-radius: 4px;
  border-left: 4px solid;
  margin-bottom: 8px;
}
.form-status--ok {
  background: var(--mynd-bla);
  color: var(--bla);
  border-left-color: var(--bla);
}
.form-status--err {
  background: #fdecee;
  color: var(--raudur-dark);
  border-left-color: var(--raudur);
}

/* ===========================================================
   Subpage hero
   =========================================================== */
.page-hero {
  background: var(--bla); color: var(--hvitt);
  padding: calc(var(--nav-h) + 80px) 0 80px;
}
.page-hero h1 { color: var(--hvitt); font-size: clamp(40px, 5vw, 64px); margin-bottom: 16px; }
.page-hero p { color: #c4d3e8; font-size: 18px; max-width: 600px; }

.prose { max-width: 720px; }
.prose p { margin-bottom: 18px; font-size: 16px; line-height: 1.75; }
.prose h2 { margin: 12px 0 18px; }

/* ===========================================================
   Movements & quotes (um-okkur)
   =========================================================== */
.movements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.movement {
  background: var(--kremhvitt); padding: 28px 26px; border-radius: 4px;
  border-top: 3px solid transparent; transition: border-color .25s, transform .25s;
}
.movement:hover { border-top-color: var(--raudur); transform: translateY(-3px); }
.movement__badge {
  width: 52px; height: 52px; background: var(--mynd-bla); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--bla); margin-bottom: 16px;
}
.movement h3 { font-size: 18px; margin-bottom: 8px; }
.movement p { font-size: 14px; }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.quote {
  background: var(--bla); color: var(--hvitt); padding: 30px 28px; border-radius: 4px;
  font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.5;
  border-left: 3px solid var(--raudur);
}

/* ===========================================================
   Accordion (rök page)
   =========================================================== */
.accordion { max-width: 820px; margin-top: 40px; }
.acc-item { border-bottom: 1px solid rgba(var(--bla-rgb),0.14); }
.acc-head {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--bla);
}
.acc-head:hover { color: var(--raudur); }
.acc-head .plus { font-family: var(--sans); font-weight: 400; font-size: 28px; color: var(--raudur); transition: transform .25s; flex: 0 0 auto; }
.acc-item.open .acc-head .plus { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-body__inner { padding: 0 0 26px; }
.acc-body__inner p { margin-bottom: 14px; font-size: 16px; line-height: 1.75; }
.acc-body__inner .source { font-size: 13px; color: var(--gratt); font-style: italic; }
.source { font-size: 13px; color: var(--gratt); font-style: italic; }

/* ===========================================================
   Contact (samband)
   =========================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; margin-top: 10px; align-items: start; }
.contact-info h2 { margin-bottom: 18px; }
.contact-info .big-email {
  font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 3vw, 34px);
  color: var(--bla); display: inline-block; margin: 8px 0 28px;
  word-break: break-word;
}
.contact-info .big-email:hover { color: var(--raudur); }
.contact-social { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-social a {
  width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px;
  color: var(--bla); transition: .2s;
}
.contact-social a:hover { background: var(--raudur); border-color: var(--raudur); color: var(--hvitt); }
.contact-social svg { width: 18px; height: 18px; fill: currentColor; }

.map-embed { margin-top: 44px; border-radius: 4px; overflow: hidden; }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ===========================================================
   News index (home.php) — responsive card grid
   =========================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 44px;
}
.news-card {
  background: var(--hvitt);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-top: 3px solid transparent;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.news-card:hover {
  border-top-color: var(--raudur);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(var(--bla-rgb),0.08);
}
.news-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--mynd-bla);
  overflow: hidden;
}
.news-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.news-card__date {
  font-family: var(--sans); font-weight: 600; font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--raudur);
  margin-bottom: 12px;
}
.news-card__title {
  font-family: var(--serif); font-weight: 700; font-size: 21px;
  color: var(--bla); line-height: 1.2; margin-bottom: 12px;
}
.news-card__title a { transition: color .2s; }
.news-card__title a:hover { color: var(--raudur); }
.news-card__excerpt { font-size: 15px; line-height: 1.7; color: var(--gratt); margin-bottom: 18px; }
.news-card .read-more { margin-top: auto; }

.read-more {
  font-family: var(--sans); font-weight: 600; font-size: 13px;
  letter-spacing: 0.04em; color: var(--raudur);
  display: inline-flex; align-items: center; gap: 6px;
}
.read-more:hover { text-decoration: underline; }

/* ===========================================================
   Single article (single.php)
   =========================================================== */
.article { max-width: 720px; margin: 0 auto; }
.article__header { margin-bottom: 34px; }
.article__header h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  margin-bottom: 16px;
}
.article__meta {
  font-family: var(--sans); font-weight: 600; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gratt);
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
}
.article__meta .article__date { color: var(--raudur); }
.article__thumb {
  margin: 0 0 36px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--mynd-bla);
}
.article__thumb img { width: 100%; height: auto; display: block; }

.article__content { font-size: 17px; line-height: 1.8; color: #3a3a3a; }
.article__content > * + * { margin-top: 22px; }
.article__content p { font-size: 17px; line-height: 1.8; }
.article__content h2 { font-size: clamp(26px, 3vw, 34px); margin: 40px 0 4px; }
.article__content h3 { font-size: 22px; margin: 32px 0 2px; }
.article__content h4 { font-family: var(--serif); font-weight: 700; color: var(--bla); font-size: 18px; margin: 26px 0 2px; }
.article__content a { color: var(--bla); text-decoration: underline; text-underline-offset: 2px; }
.article__content a:hover { color: var(--raudur); }
.article__content ul, .article__content ol { padding-left: 24px; }
.article__content li { margin-bottom: 8px; }
.article__content li::marker { color: var(--raudur); }
.article__content img { border-radius: 4px; }
.article__content figure { margin: 28px 0; }
.article__content figcaption {
  font-size: 13px; color: var(--gratt); font-style: italic;
  margin-top: 8px; text-align: center;
}
.article__content blockquote {
  border-left: 3px solid var(--raudur);
  padding: 4px 0 4px 24px;
  margin: 28px 0;
  font-family: var(--serif); font-style: italic; font-size: 21px;
  color: var(--bla); line-height: 1.5;
}
.article__content blockquote cite {
  display: block; font-style: normal; font-family: var(--sans);
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gratt); margin-top: 12px;
}
.article__content pre {
  background: var(--kremhvitt);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}
.article__content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--kremhvitt);
  padding: 2px 6px;
  border-radius: 3px;
}
.article__content pre code { background: none; padding: 0; }
.article__content hr {
  border: 0; height: 1px; background: var(--line); margin: 40px 0;
}
.article__content table {
  width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0;
}
.article__content th, .article__content td {
  border: 1px solid var(--line); padding: 10px 14px; text-align: left;
}
.article__content th { background: var(--kremhvitt); color: var(--bla); font-family: var(--sans); }

/* ===========================================================
   Single event (single-vidburdur.php)
   =========================================================== */
.event-single h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 0; }

/* Back link in the hero */
.event-single__back {
  font-family: var(--sans); font-weight: 600; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ljosblar);
  display: inline-block; margin-bottom: 22px;
  transition: color .2s;
}
.event-single__back:hover { color: var(--hvitt); }

/* Dimmed 'event has passed' note */
.event-single__past-flag {
  margin-top: 16px;
  font-family: var(--sans); font-weight: 600; font-size: 13px;
  letter-spacing: 0.04em;
  color: #c4d3e8;
  opacity: 0.85;
}

/* Two-column wrapper: meta sidebar + main content */
.event-single__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
  padding: 56px 0;
}
.event-single__main { min-width: 0; }

/* Meta block (sidebar) */
.event-single__meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--kremhvitt);
  border-left: 3px solid var(--raudur);
  border-radius: 4px;
  padding: 26px 28px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.event-single__meta-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 16px;
}
.event-single__meta-label {
  font-family: var(--sans); font-weight: 600; font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--bla);
  min-width: 110px;
}
.event-single__meta-value { color: var(--svart); line-height: 1.5; }
.event-single__meta-value time { font-variant-numeric: tabular-nums; }
.event-single__meta-item--cta { margin-top: 6px; }
.event-single__meta-item--cta .btn { width: 100%; }
.event-single__meta a { color: var(--bla); text-decoration: underline; text-underline-offset: 2px; }
.event-single__meta a.btn { text-decoration: none; }
.event-single__meta a:hover { color: var(--raudur); }

/* Featured image */
.event-single__thumb {
  margin: 0 0 32px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--mynd-bla);
}
.event-single__thumb img { width: 100%; height: auto; display: block; }

/* Editor content */
.event-single__content { font-size: 17px; line-height: 1.8; color: #3a3a3a; }
.event-single__content > * + * { margin-top: 20px; }

/* Dimmed presentation for past events */
.event-single.past .event-single__hero { opacity: 0.92; }
.event-single.past .event-single__thumb img { filter: grayscale(0.35); }

/* ===========================================================
   Pagination
   =========================================================== */
.pager {
  margin-top: 56px;
}

/* the_posts_pagination() output (archive/home/index/search): numbered links.
   Links always carry .page-numbers, so the button styling is scoped to it to
   avoid affecting the single-post prev/next nav (.pager__prev / .pager__next). */
.pager .page-numbers {
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  min-width: 42px; height: 42px;
  padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--bla);
  transition: background .2s, color .2s, border-color .2s;
}
.pager a.page-numbers:hover { background: var(--bla); color: var(--hvitt); border-color: var(--bla); }
.pager .page-numbers.current {
  background: var(--bla); color: var(--hvitt); border-color: var(--bla);
}
.pager .page-numbers.dots { border-color: transparent; }

/* Single-post previous/next navigation (single.php: nav.article__nav.pager) */
.pager__inner {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 28px;
}
.pager__prev,
.pager__next { flex: 1 1 0; min-width: 0; }
.pager__next { text-align: right; }
.pager__prev a,
.pager__next a {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--bla);
  background: var(--hvitt);
  transition: border-color .2s, background .2s, transform .2s;
}
.pager__next a { align-items: flex-end; }
.pager__prev a:hover,
.pager__next a:hover {
  border-color: var(--line-strong);
  background: var(--kremhvitt);
  transform: translateY(-2px);
}
.pager__dir {
  font-family: var(--sans); font-weight: 600; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gratt);
}
.pager__title {
  font-family: var(--serif); font-weight: 700; font-size: 18px;
  line-height: 1.3;
  color: var(--bla);
}
.pager__prev a:hover .pager__title,
.pager__next a:hover .pager__title { color: var(--raudur); }

/* WordPress core the_posts_pagination() markup uses .page-numbers in .nav-links. */
.nav-links {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; flex-wrap: wrap; margin-top: 56px;
}
.nav-links .page-numbers {
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  min-width: 42px; height: 42px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 3px;
  color: var(--bla); transition: background .2s, color .2s, border-color .2s;
}
.nav-links a.page-numbers:hover { background: var(--bla); color: var(--hvitt); border-color: var(--bla); }
.nav-links .page-numbers.current { background: var(--bla); color: var(--hvitt); border-color: var(--bla); }
.nav-links .page-numbers.dots { border-color: transparent; }

/* ===========================================================
   404 / search / generic page
   =========================================================== */
.search-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin-top: 8px;
}
.search-form input[type="search"] {
  flex: 1;
  padding: 12px 14px; font-family: var(--sans); font-size: 15px;
  border: 1px solid var(--line-strong); border-radius: 3px; background: var(--kremhvitt); color: var(--svart);
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--bla); box-shadow: 0 0 0 3px rgba(var(--bla-rgb),0.12); }

/* ===========================================================
   WordPress alignment & block helpers (inside .article__content
   and generic .prose content)
   =========================================================== */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 6px 28px 18px 0; }
.alignright { float: right; margin: 6px 0 18px 28px; }
.alignnone { margin: 0; }

.article__content .alignwide,
.prose .alignwide {
  width: auto;
  max-width: min(1080px, 92vw);
  margin-left: calc(50% - min(540px, 46vw));
  margin-right: calc(50% - min(540px, 46vw));
}
.article__content .alignfull,
.prose .alignfull {
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.wp-caption { max-width: 100%; }
.wp-caption-text {
  font-size: 13px; color: var(--gratt); font-style: italic; text-align: center; margin-top: 8px;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.sticky .news-card,
.sticky.news-card { border-top-color: var(--bla); }

/* ===========================================================
   Accessibility — focus-visible outlines (brand blue)
   ===========================================================
   */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.acc-head:focus-visible,
.nav__burger:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--bla);
  outline-offset: 2px;
  border-radius: 2px;
}
/* On the dark hero / honest / footer surfaces use a light ring. */
.hero a:focus-visible,
.hero .btn:focus-visible,
.honest a:focus-visible,
.honest .btn:focus-visible,
.page-hero a:focus-visible,
.footer a:focus-visible,
.mobile-menu a:focus-visible,
.countdown a:focus-visible {
  outline-color: var(--hvitt);
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1024px) {
  section { padding: 70px 0; }
  .news-grid,
  .movements,
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .args__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 880px) {
  .args__grid { grid-template-columns: 1fr; }
  .pref-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .lang-toggle:not(.mobile-menu__lang) { display: none; }
  .nav__burger { display: flex; }

  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }

  section { padding: 56px 0; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__right { display: none; }
  .honest__grid, .join__grid { grid-template-columns: 1fr; gap: 36px; }
  .photos__strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .photos__item { flex: 0 0 80%; scroll-snap-align: start; }
  .countdown__inner { justify-content: center; }
  .event-row { grid-template-columns: 72px 1fr; }
  .event__time { grid-column: 2; }

  .movements, .quotes { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }

  .news-grid { grid-template-columns: 1fr; }

  .article__content .alignwide,
  .prose .alignwide,
  .article__content .alignfull,
  .prose .alignfull {
    margin-left: 0; margin-right: 0; max-width: 100%; width: 100%;
  }
  .article__content .alignleft,
  .article__content .alignright {
    float: none; margin: 0 0 18px; display: block;
  }

  .event-single__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }
  .event-single__meta { position: static; top: auto; }
  .event-single__meta-label { min-width: 0; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .form-card { padding: 28px 22px; }
  .countdown__unit { min-width: 48px; }
  .countdown__num { font-size: 26px; }
}

/* ===========================================================
   Reduced motion
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===========================================================
   Gap-fill — template classes wired up during integration
   =========================================================== */

/* News card placeholder (posts with no featured image) */
.news-card__placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: var(--mynd-bla); color: var(--bla);
  font-family: var(--sans); font-weight: 600; font-size: 12px;
  letter-spacing: 0.15em; text-transform: uppercase;
}

/* Empty-state messages (news / search "no results") */
.news-empty, .search-empty {
  margin: 50px 0; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: 18px;
  color: var(--gratt);
}

/* Page-hero supporting line */
.page-hero__desc { color: #c4d3e8; font-size: 18px; max-width: 600px; }

/* Footer transparency / legal line */
.footer__legal {
  margin-top: 10px; font-size: 12px; line-height: 1.5;
  color: rgba(255,255,255,0.45);
}

/* Home "join" CTA card (front page) */
.form-card--cta {
  text-align: center; display: flex; flex-direction: column;
  gap: 14px; align-items: center; justify-content: center;
}
.form-card__title { font-family: var(--serif); font-weight: 700; font-size: 24px; color: var(--bla); line-height: 1.2; }
.form-card__text { font-size: 15px; color: var(--gratt); max-width: 360px; }

/* Single-article extras */
.article__title {
  font-family: var(--serif); font-weight: 700; color: var(--bla);
  font-size: clamp(30px, 4vw, 46px); line-height: 1.12;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.article__back {
  display: inline-block; margin-bottom: 16px;
  font-family: var(--sans); font-weight: 600; font-size: 12.5px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--raudur);
}
.article__back:hover { text-decoration: underline; }
.article__cats a { color: var(--raudur); font-weight: 600; }
.article__meta-sep { color: var(--gratt); margin: 0 8px; }
.article__pagelinks { margin-top: 30px; font-size: 14px; }
.article__pagelinks-label {
  font-weight: 600; color: var(--bla); margin-right: 8px;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px;
}
.article__pagelinks .page-link, .article__content .page-link {
  display: inline-block; min-width: 30px; padding: 4px 9px; margin: 0 3px;
  border: 1px solid rgba(var(--bla-rgb),0.2); border-radius: 3px;
  font-weight: 600; color: var(--bla);
}
.article__pagelinks .page-link:hover { background: var(--bla); color: var(--hvitt); }

/* Volunteer form: duplicate-preference warning (injected by xnei.js) */
.pref-warning { color: var(--raudur); font-weight: 600; font-size: 14px; margin: -6px 0 14px; }
.pref-warning[hidden] { display: none; }
