/* ==========================================================================
   Somali Youth League: campaign site 2027
   Sky-blue ground taken from the Somali flag, deep SYL red for the voice,
   the flag's own blue for whole sections and for toning photographs.
   Fraunces for headlines, Figtree for reading. Loaded after site.css.
   ========================================================================== */
:root {
  --sky: #bfd8f1;          /* hero ground: the flag's blue, lifted */
  --sky-2: #dce9f7;
  --flag: #4189dd;         /* the Somali flag's blue */
  --blue: #1d5cb4;         /* flag blue deepened for white text */
  --navy: #0e2346;
  --red: #a3171d;          /* SYL red, deepened for text on sky (5.4:1) */
  --red-press: #85121a;
  --red-logo: #e3141b;
  --cream: #fcf5e8;
  --paper: #f3f6fa;
  --paper-2: #e6edf6;
  --paper-3: #d3deec;
  --ink: #0e2346;
  --ink-soft: #3f506b;
  --night: #0e2346;
  --font: "Figtree", "Segoe UI", Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --radius: 10px;
  --header-h: 88px;
  --step-head: clamp(2.5rem, 1.2rem + 4vw, 5.25rem);
}

/* ---------- Language switching: one language visible at a time ---------- */
html[lang="en"] [data-l="so"], html[lang="so"] [data-l="en"] { display: none !important; }

body { background: var(--paper); color: var(--ink); font-family: var(--font); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; font-stretch: normal; letter-spacing: -0.02em; line-height: 1.02; font-variation-settings: "opsz" 144; }
.h-head { font-family: var(--serif); font-size: var(--step-head); font-weight: 500; line-height: 0.98; letter-spacing: -0.025em; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline-color: var(--red); }

/* ---------- Buttons: square, flat ---------- */
.btn { --bg: var(--red); --fg: #fff; --bg-hover: var(--red-press); font-family: var(--font); font-weight: 600; letter-spacing: 0.01em; border-radius: 0; text-transform: none; }
.btn--line { --bg: transparent; --fg: var(--red); --bg-hover: rgba(163, 23, 29, 0.08); box-shadow: inset 0 0 0 2px var(--red); }
.btn--cream { --bg: var(--cream); --fg: var(--red); --bg-hover: #fff; box-shadow: inset 0 0 0 2px var(--red); }
.btn--white { --bg: #fff; --fg: var(--blue); --bg-hover: var(--sky-2); }
.arrow-ne { display: inline-block; width: 0.9em; height: 0.9em; background: currentColor; flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 16 16 4M7 4h9v9' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 16 16 4M7 4h9v9' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--dur) var(--ease-out); }
.btn:hover .arrow-ne, a:hover > .arrow-ne { transform: translate(2px, -2px); }
.link-arrow { color: var(--red); }

/* ---------- Header ---------- */
.site-header { gap: 20px; height: var(--header-h); background: var(--paper); color: var(--red); }
.site-header.is-over { background: transparent; color: var(--red); }
.site-header.is-over.is-solid { background: var(--sky); color: var(--red); }
.brand { gap: 12px; color: var(--red); }
.brand img { width: 46px; height: 46px; }
.brand__name { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.01em; line-height: 0.9; }
.brand__name small { display: block; margin-top: 4px; font-family: var(--font); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.01em; opacity: 1; }
.nav { flex: 1; justify-content: center; }
.nav__links { gap: clamp(16px, 2.2vw, 40px); }
.nav__links a { font-size: 1.0625rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.nav__links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 2px; }
.nav__links a[aria-current="page"]::after { transform: scaleX(0); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.header__actions .btn { min-height: 52px; padding: 0 22px; font-size: 1rem; }
.header__donate { gap: 14px; }
.nav__toggle { display: none; color: inherit; }

.lang { display: inline-flex; padding: 3px; background: rgba(163, 23, 29, 0.1); }
.lang button {
  min-width: 44px; min-height: 40px; padding: 0 10px; border: 0; background: transparent; color: var(--red);
  font: 700 0.9375rem/1 var(--font); letter-spacing: 0.04em;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.lang button:hover { background: rgba(163, 23, 29, 0.12); }
.lang button:active { transform: scale(0.95); }
.lang button[aria-pressed="true"] { background: var(--red); color: #fff; }

@media (max-width: 1360px) { .header__join { display: none; } }
@media (max-width: 1120px) {
  .nav { display: none; }
  .nav__toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-weight: 700; }
  .site-header { justify-content: space-between; }
}
@media (max-width: 560px) {
  .brand__name small { display: none; }
  .header__donate { padding: 0 14px !important; }
  .header__donate .arrow-ne { display: none; }
  .site-header .lang { display: none; }
}

.menu { background: var(--sky); color: var(--red); }
.menu__close { color: var(--red); }
.menu__links a { font-family: var(--serif); font-weight: 500; }
.menu__links a[aria-current="page"] { color: var(--navy); }
.menu__foot { display: grid; gap: 16px; }
.lang--menu button { min-height: 48px; padding: 0 18px; font-size: 1rem; }

/* ---------- Hero: the screenshot, for SYL ---------- */
.hero2 {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--sky); color: var(--red);
  min-height: max(760px, 100svh);
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  padding-top: var(--header-h);
}
.hero2__body { align-self: center; padding: clamp(24px, 4vw, 64px) var(--gutter) clamp(48px, 6vw, 96px) var(--m); position: relative; z-index: 2; }
.hero2__welcome { margin-top: -12px; display: flex; align-items: center; gap: 12px; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem); font-weight: 600; line-height: 1.2; }
.hero2__welcome img { width: 40px; height: 40px; }
.hero2__title {
  margin-top: 18px;
  font-family: var(--serif); font-weight: 500; letter-spacing: -0.035em;
  font-size: clamp(3.5rem, 1rem + 6.4vw, 8.5rem); line-height: 0.9;
}
.hero2__title span { display: block; }
.hero2__title span:nth-child(2) { padding-left: 0.08em; }
.hero2__text { margin-top: clamp(28px, 3vw, 44px); max-width: 40ch; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.5; font-weight: 500; color: var(--red); }
.hero2__role { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; background: var(--red); color: #fff; padding: 9px 16px 10px; font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; text-transform: uppercase; }
.hero2__stars { margin-top: clamp(28px, 3.4vw, 48px); display: flex; gap: clamp(18px, 2.4vw, 36px); }
.hero2__stars svg { width: clamp(44px, 4.4vw, 68px); height: auto; fill: var(--cream); stroke: var(--red); stroke-width: 2.4; stroke-linejoin: round; }

.hero2__stage { position: relative; min-height: 0; }
.hero2__flag {
  position: absolute; z-index: 0; right: calc(var(--m) * -1 - 6%); top: 6%;
  width: min(62vw, 760px); aspect-ratio: 3 / 2.1;
  transform-origin: 100% 50%;
  animation: hero-flag 9s var(--ease-in-out) infinite alternate;
}
.hero2__flag svg { width: 100%; height: 100%; overflow: visible; }
@keyframes hero-flag { from { transform: rotate(-1.5deg) skewY(-1deg); } to { transform: rotate(1deg) skewY(1.2deg); } }
.hero2__arch {
  position: absolute; z-index: 1; bottom: 0; left: 50%; transform: translateX(-30%);
  width: min(74%, 480px); height: min(84%, 800px);
  border-radius: 999px 999px 0 0; overflow: hidden;
  background: var(--flag);
  outline: 10px solid var(--cream); outline-offset: -10px;
}
.hero2__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.badge {
  position: absolute; z-index: 3; right: var(--m); top: 12%;
  width: clamp(124px, 12vw, 184px); aspect-ratio: 1;
}
.badge svg { width: 100%; height: 100%; animation: badge-turn 28s linear infinite; }
.badge__star { position: absolute; inset: 0; display: grid; place-items: center; }
.badge__star svg { width: 42%; height: auto; animation: none; fill: var(--flag); stroke: var(--red); stroke-width: 2; }
@keyframes badge-turn { to { transform: rotate(360deg); } }
.donate-bar {
  position: absolute; z-index: 4; right: var(--m); bottom: clamp(24px, 4vw, 72px);
  display: flex; align-items: center; gap: 16px;
  min-width: min(440px, calc(100% - var(--m) * 2)); padding: 10px 22px 10px 10px;
  background: var(--cream); color: var(--red); text-decoration: none;
  box-shadow: inset 0 0 0 2px var(--red);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem); font-weight: 600; letter-spacing: 0.01em; text-transform: uppercase;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur) var(--ease-out);
}
.donate-bar img { width: 58px; height: 58px; object-fit: cover; object-position: 50% 12%; border-radius: 50%; flex: none; }
.donate-bar span:nth-of-type(1) { flex: 1; }
.donate-bar small { display: block; font-size: 0.8125rem; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--ink-soft); margin-top: 2px; }
.donate-bar .arrow-ne { width: 1.1em; height: 1.1em; }
.donate-bar:hover { background: #fff; transform: translateY(-3px); }
.donate-bar:active { transform: translateY(0) scale(0.99); }

@media (max-width: 1000px) {
  .hero2 { grid-template-columns: 1fr; min-height: 0; }
  .hero2__body { padding-bottom: 32px; }
  .hero2__stage { height: min(118vw, 680px); }
  .hero2__flag { width: 96vw; right: -14vw; top: 2%; }
  .hero2__arch { width: min(74%, 440px); height: 90%; transform: translateX(-56%); }
  .badge { top: 4%; width: 120px; }
  .donate-bar { left: var(--m); right: var(--m); min-width: 0; bottom: 20px; }
}
@media (max-width: 480px) {
  .hero2__title { font-size: clamp(3.1rem, 15.5vw, 4.25rem); }
  .hero2__stars svg { width: 38px; }
}

.hero2__body > * { animation: hero-in 800ms var(--ease-out) both; }
.hero2__body > *:nth-child(2) { animation-delay: 70ms; }
.hero2__body > *:nth-child(3) { animation-delay: 140ms; }
.hero2__body > *:nth-child(4) { animation-delay: 210ms; }
.hero2__body > *:nth-child(5) { animation-delay: 280ms; }
.hero2__arch { animation: arch-in 1100ms var(--ease-out) 120ms both; }
.donate-bar { animation: hero-in 800ms var(--ease-out) 420ms both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes arch-in { from { opacity: 0; transform: translateX(-30%) translateY(40px); } to { opacity: 1; transform: translateX(-30%); } }
@media (max-width: 1000px) { @keyframes arch-in { from { opacity: 0; transform: translateX(-56%) translateY(40px); } to { opacity: 1; transform: translateX(-56%); } } }

/* ---------- Photographs toned in the flag's blue (as the Wix template tones its own) ---------- */
.tone { background: var(--flag); overflow: hidden; border-radius: var(--radius); }
.tone img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; filter: contrast(1.08) brightness(1.06); transition: transform 1100ms var(--ease-out); }
.photo { overflow: hidden; border-radius: var(--radius); background: var(--paper-3); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1100ms var(--ease-out); }
a:hover > .photo img, a:hover > .tone img { transform: scale(1.04); }

/* ---------- Meet the candidate ---------- */
.meet { padding-block: clamp(96px, 11vw, 180px) clamp(72px, 8vw, 128px); }
.meet__label { font-family: var(--serif); font-size: clamp(1.5rem, 1rem + 1vw, 2rem); color: var(--red); }
.meet__label b { font-weight: 600; }
.meet__statement { margin-top: 28px; max-width: 30ch; font-size: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); line-height: 1.28; color: var(--red); font-weight: 500; letter-spacing: -0.01em; }
.meet__row { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: end; }
.meet__row .btn { justify-self: start; align-self: start; }
.meet__photo { aspect-ratio: 4 / 3; }
.meet__facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.meet__facts span { background: var(--sky-2); color: var(--red); padding: 8px 14px; font-weight: 600; font-size: 1rem; }
@media (max-width: 860px) { .meet__row { grid-template-columns: 1fr; } }

/* ---------- A plan for all Somalis: text card, picture, text card, picture ---------- */
.blueprint { padding-block: clamp(72px, 8vw, 128px); }
.blueprint__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: end; margin-bottom: 48px; }
.blueprint__head p { font-size: 1.1875rem; max-width: 40ch; color: var(--ink); }
.blueprint__row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.bp-card { display: grid; grid-template-rows: auto 1fr auto; gap: 18px; background: #fff; border-radius: var(--radius); padding: 22px 20px 24px; color: var(--red); text-decoration: none; min-height: 340px; transition: background-color var(--dur-fast) var(--ease-out); }
.bp-card h3 { font-size: clamp(1.5rem, 1rem + 0.9vw, 2rem); line-height: 1.02; }
.bp-card .arrow { font-size: 1.5rem; transition: transform var(--dur) var(--ease-out); }
.bp-card p { font-size: 1rem; line-height: 1.45; color: var(--ink); }
.bp-card:hover { background: var(--sky-2); }
.bp-card:hover .arrow { transform: translateX(6px); }
.bp-photo { min-height: 340px; }
@media (max-width: 1100px) { .blueprint__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bp-photo, .bp-card { min-height: 280px; } }
@media (max-width: 860px) { .blueprint__head { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .blueprint__row { grid-template-columns: 1fr; } .bp-photo { min-height: 220px; } }

/* ---------- Voices of the League: slider on blue ---------- */
.voices { background: var(--blue); color: #fff; padding-block: clamp(80px, 9vw, 140px) clamp(40px, 4vw, 56px); }
.voices__title { color: #fff; margin-bottom: 48px; }
.voices__stage { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.voices__card { background: var(--cream); color: var(--red); border-radius: var(--radius); padding: clamp(24px, 3vw, 44px); display: grid; grid-template-rows: 1fr auto; min-height: 420px; }
.voice { display: none; }
.voice.is-on { display: block; animation: panel-in 420ms var(--ease-out); }
.voice blockquote { margin: 0; font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); line-height: 1.22; font-weight: 500; letter-spacing: -0.01em; max-width: 24ch; }
.voice cite { display: block; margin-top: 24px; font-style: normal; font-weight: 700; font-size: 1rem; color: var(--ink-soft); }
.voices__nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; }
.voices__nav button { min-width: 56px; min-height: 48px; border: 0; background: transparent; color: var(--red); font-size: 2rem; line-height: 1; transition: transform var(--dur-fast) var(--ease-out); }
.voices__nav button:hover { transform: translateX(var(--nudge, 4px)); }
.voices__nav button:first-child { --nudge: -4px; }
.voices__nav button:active { transform: scale(0.92); }
.voices__count { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.voices__photo { min-height: 420px; }
.voices__photo img { position: absolute; inset: 0; opacity: 0; transition: opacity 600ms var(--ease-out); }
.voices__photo { position: relative; }
.voices__photo img.is-on { opacity: 1; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .voices__stage { grid-template-columns: 1fr; } .voices__photo { min-height: 260px; order: -1; } .voices__card { min-height: 0; } }

/* ---------- News cards ---------- */
.trail { padding-block: clamp(80px, 9vw, 140px); }
.trail__title { text-align: center; margin-bottom: 56px; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.post { display: grid; grid-template-rows: auto 1fr; background: #fff; border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; }
.post__img { aspect-ratio: 4 / 3; overflow: hidden; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1100ms var(--ease-out); }
.post:hover .post__img img { transform: scale(1.05); }
.post__body { padding: 22px 22px 28px; display: grid; gap: 10px; align-content: start; }
.post__meta { font-size: 0.9375rem; font-weight: 600; color: var(--red); }
.post h3 { font-size: clamp(1.375rem, 1rem + 0.6vw, 1.75rem); line-height: 1.1; color: var(--red); }
.post p { font-size: 1rem; line-height: 1.5; }
.trail__more { display: flex; justify-content: center; margin-top: 40px; }
@media (max-width: 900px) { .cards3 { grid-template-columns: 1fr; } }

/* ---------- Join the movement: toned city with a pill heading ---------- */
.movement { position: relative; isolation: isolate; min-height: clamp(380px, 52vw, 640px); display: grid; place-items: center; padding: 64px var(--m); background: var(--flag); overflow: hidden; }
.movement > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; mix-blend-mode: luminosity; filter: contrast(1.05) brightness(1.08); }
.movement__pill {
  display: inline-flex; align-items: center; gap: 0.4em; background: var(--cream); color: var(--red); text-decoration: none;
  padding: 0.16em 0.7em 0.24em; border-radius: 999px;
  font-family: var(--serif); font-size: clamp(2.25rem, 1rem + 4.6vw, 5.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.movement__pill .arrow-ne { width: 0.55em; height: 0.55em; }
.movement__pill:hover { transform: scale(1.02); background: #fff; }
.movement__pill:active { transform: scale(0.99); }
.movement__note { margin-top: 18px; color: #fff; font-weight: 600; font-size: 1.125rem; text-align: center; max-width: 44ch; }

/* ---------- Footer: a card ---------- */
.site-footer { background: var(--paper); color: var(--ink); min-height: 0; display: block; padding: 12px var(--m) var(--m); }
.footer__card { background: #fff; border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); display: grid; gap: 48px; }
.footer__top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: inline-flex; align-items: center; gap: 14px; color: var(--red); text-decoration: none; font-family: var(--serif); font-size: clamp(1.5rem, 1rem + 1vw, 2.125rem); font-weight: 600; line-height: 1; }
.footer__brand small { display: block; margin-top: 6px; font-family: var(--font); font-size: 0.9375rem; font-weight: 600; }
.footer__address { font-style: normal; text-align: right; color: var(--red); line-height: 1.7; font-size: 1.0625rem; max-width: 46ch; }
.footer__address a { color: inherit; }
.footer__news { display: grid; gap: 10px; max-width: 720px; }
.footer__news-label { font-family: var(--serif); font-size: clamp(1.5rem, 1rem + 1vw, 2.25rem); color: var(--red); line-height: 1.1; }
.footer__news-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.footer__news-row .input { border-color: var(--paper-3); border-right: 0; }
.footer__news .form-status { font-size: 1rem; }
.footer__bottom { display: grid; grid-template-columns: auto auto auto 1fr; gap: 24px clamp(24px, 5vw, 88px); align-items: end; }
.footer__cta { display: flex; flex-wrap: wrap; gap: 8px; }
.footer__links { display: grid; gap: 4px; }
.footer__links a { color: var(--red); text-decoration: none; font-size: 1.0625rem; }
.footer__links a:hover { text-decoration: underline; }
.footer__legal { text-align: right; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.6; }
.footer__legal a { color: var(--red); }
.footer__credits { color: var(--ink-soft); font-size: 0.875rem; line-height: 1.55; }
.footer__credits summary { cursor: pointer; color: var(--red); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.footer__credits a { color: var(--ink-soft); }
@media (max-width: 900px) {
  .footer__bottom { grid-template-columns: 1fr 1fr; }
  .footer__cta, .footer__legal { grid-column: 1 / -1; }
  .footer__legal, .footer__address { text-align: left; }
}
@media (max-width: 520px) { .footer__news-row { grid-template-columns: 1fr; gap: 6px; } .footer__news-row .input { border-right: 2px solid var(--paper-3); } }

/* ---------- Inner page hero: a white card over a photograph ---------- */
.page-hero { position: relative; isolation: isolate; min-height: max(600px, 88svh); padding: calc(var(--header-h) + 16px) var(--m) var(--m); display: grid; align-items: stretch; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.page-hero__card { align-self: center; width: min(640px, 100%); min-height: min(520px, 70svh); background: #fff; border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); display: grid; grid-template-rows: auto 1fr auto; gap: 24px; }
.page-hero__card h1 { font-size: clamp(2.75rem, 1rem + 4.6vw, 5.5rem); color: var(--red); line-height: 0.98; letter-spacing: -0.03em; }
.page-hero__card p { grid-row: 3; font-size: 1.125rem; line-height: 1.5; color: var(--red); max-width: 44ch; font-weight: 500; }
@media (max-width: 700px) { .page-hero { min-height: 0; padding-top: calc(var(--header-h) + 40vw); } .page-hero__card { min-height: 0; } }

/* Alternating picture and words */
.alt { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 72px); align-items: center; padding-block: clamp(40px, 5vw, 72px); }
.alt__img { aspect-ratio: 4 / 3.2; }
.alt__text h2 { font-size: clamp(2.25rem, 1rem + 3vw, 4.25rem); color: var(--red); line-height: 1; }
.alt__text p { margin-top: 20px; max-width: 52ch; font-size: 1.125rem; }
.alt__text p + p { margin-top: 14px; }
.alt--flip .alt__img { order: 2; }
.alt__text .star-list { margin-top: 20px; }
@media (max-width: 860px) { .alt { grid-template-columns: 1fr; } .alt--flip .alt__img { order: 0; } }

.star-list { display: grid; gap: 10px; }
.star-list li { position: relative; padding-left: 28px; font-weight: 600; line-height: 1.4; }
.star-list li::before { content: ""; position: absolute; left: 0; top: 0.18em; width: 17px; height: 17px; background: var(--flag); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }

/* Principles: tilted cards on blue */
.principles { background: var(--blue); color: #fff; padding-block: clamp(80px, 9vw, 150px) clamp(56px, 6vw, 96px); text-align: center; }
.principles h2 { font-size: clamp(2.75rem, 1rem + 4.4vw, 5.5rem); }
.principles > p { margin: 24px auto 0; max-width: 46ch; font-size: 1.125rem; }
.principles__cards { margin-top: 64px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; text-align: left; }
.principle { background: #fff; color: var(--red); border-radius: var(--radius); padding: 24px 22px 26px; min-height: 300px; display: grid; grid-template-rows: auto 1fr auto auto; gap: 10px; transition: transform var(--dur) var(--ease-out); }
.principle:nth-child(1) { transform: rotate(-1.6deg); }
.principle:nth-child(2) { transform: rotate(0.8deg); }
.principle:nth-child(3) { transform: rotate(-0.6deg); }
.principle:nth-child(4) { transform: rotate(1.8deg); }
.principle:hover { transform: rotate(0) translateY(-6px); }
.principle svg { width: 48px; height: 48px; fill: var(--flag); stroke: var(--red); stroke-width: 1.6; }
.principle h3 { grid-row: 3; font-family: var(--font); font-size: clamp(1.5rem, 1rem + 1vw, 2rem); font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.principle p { grid-row: 4; color: var(--ink); font-size: 1rem; line-height: 1.45; }
@media (max-width: 1000px) { .principles__cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .principles__cards { grid-template-columns: 1fr; } .principle { min-height: 0; } }

/* Somalia we serve: landmarks mosaic */
.places { padding-block: clamp(80px, 9vw, 140px); }
.places__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: end; margin-bottom: 40px; }
.places__head h2 { color: var(--red); }
.places__head p { font-size: 1.125rem; max-width: 42ch; }
.places__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 20vw, 300px); gap: 6px; }
.places__grid figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); }
.places__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1100ms var(--ease-out); }
.places__grid figure:hover img { transform: scale(1.04); }
.places__grid figcaption { position: absolute; left: 10px; bottom: 10px; background: var(--cream); color: var(--red); padding: 6px 12px; font-weight: 600; font-size: 0.9375rem; line-height: 1.25; max-width: calc(100% - 20px); }
.places__grid .w2 { grid-column: span 2; } .places__grid .h2 { grid-row: span 2; }
@media (max-width: 860px) { .places__head { grid-template-columns: 1fr; } .places__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; } }

/* Issues page rows */
.issue { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 96px); align-items: center; padding-block: clamp(40px, 5vw, 80px); scroll-margin-top: calc(var(--header-h) + 16px); }
.issue__img { aspect-ratio: 4 / 4.4; }
.issue h2 { font-size: clamp(2.5rem, 1rem + 3.4vw, 4.5rem); color: var(--red); line-height: 1; }
.issue__text > p { margin-top: 20px; max-width: 52ch; font-size: 1.125rem; }
.issue .star-list { margin-top: 24px; }
.issue:nth-of-type(even) .issue__img { order: 2; }
@media (max-width: 860px) { .issue { grid-template-columns: 1fr; } .issue:nth-of-type(even) .issue__img { order: 0; } .issue__img { aspect-ratio: 4 / 3; } }

/* News page */
.news-page__head { padding: calc(var(--header-h) + clamp(40px, 6vw, 96px)) var(--m) 40px; }
.news-page__head h1 { font-size: clamp(3rem, 1rem + 6vw, 7rem); color: var(--red); }
.article2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); padding-block: clamp(48px, 6vw, 96px); scroll-margin-top: calc(var(--header-h) + 16px); }
.article2__img { aspect-ratio: 4 / 3; align-self: start; }
.article2 h2 { font-size: clamp(2rem, 1rem + 2.2vw, 3.25rem); color: var(--red); line-height: 1.02; max-width: 20ch; }
.article2 .post__meta { margin-bottom: 10px; }
.article2 .prose { margin-top: 20px; max-width: 62ch; font-size: 1.125rem; }
@media (max-width: 860px) { .article2 { grid-template-columns: 1fr; } }

/* Contact page */
.convo { background: var(--blue); color: #fff; padding: calc(var(--header-h) + clamp(40px, 5vw, 80px)) var(--m) var(--m); }
.convo__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); align-items: start; padding-bottom: clamp(56px, 6vw, 96px); }
.convo h1 { font-size: clamp(3rem, 1rem + 5vw, 6.25rem); line-height: 0.98; }
.convo__top > div > p { margin-top: 24px; font-size: 1.125rem; max-width: 44ch; }
.convo__form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(20px, 2.6vw, 36px); display: grid; gap: 18px; }
.convo__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.convo__cards > * { background: #fff; color: var(--red); border-radius: var(--radius); padding: 24px 22px; min-height: 220px; display: grid; grid-template-rows: auto 1fr; gap: 12px; text-decoration: none; }
.convo__cards h2 { font-family: var(--font); font-size: 1rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0; }
.convo__cards p, .convo__cards a { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.875rem); line-height: 1.2; color: var(--red); overflow-wrap: anywhere; }
@media (max-width: 900px) { .convo__top, .convo__cards { grid-template-columns: 1fr; } .convo__cards > * { min-height: 0; } }

/* Donate page */
.give { padding: calc(var(--header-h) + clamp(32px, 4vw, 64px)) var(--m) clamp(64px, 7vw, 120px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px clamp(24px, 3vw, 48px); align-items: start; }
.give__photo { position: relative; aspect-ratio: 4 / 5; position: sticky; top: calc(var(--header-h) + 16px); }
.give__photo figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; background: var(--cream); color: var(--red); padding: 12px 16px; font-weight: 600; line-height: 1.3; border-radius: 6px; }
.give__photo figcaption b { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.give__body h1 { font-size: clamp(2.75rem, 1rem + 4vw, 5rem); color: var(--red); }
.give__body > p { margin-top: 18px; font-size: 1.125rem; max-width: 50ch; }
.give__group { margin-top: 28px; border: 0; padding: 0; }
.give__group legend { font-weight: 700; font-size: 1rem; margin-bottom: 10px; padding: 0; }
.give__chips { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 6px; }
.give__chips label { position: relative; }
.give__chips input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.give__chips span { display: grid; place-items: center; min-height: 56px; padding: 0 10px; background: #fff; color: var(--red); box-shadow: inset 0 0 0 2px var(--paper-3); font-weight: 700; font-size: 1.125rem; font-variant-numeric: tabular-nums; transition: background-color var(--dur-fast), box-shadow var(--dur-fast), color var(--dur-fast), transform var(--dur-fast); }
.give__chips input:hover + span { box-shadow: inset 0 0 0 2px var(--red); }
.give__chips input:active + span { transform: scale(0.97); }
.give__chips input:checked + span { background: var(--red); color: #fff; box-shadow: none; }
.give__chips input:focus-visible + span { outline: 3px solid var(--flag); outline-offset: 2px; }
.give__other { margin-top: 10px; display: none; max-width: 260px; }
.give__other.is-on { display: grid; }
.give__go { margin-top: 28px; width: 100%; }
.give__ways { margin-top: 28px; display: grid; gap: 6px; }
.give__ways[hidden] { display: none; }
.way { background: #fff; border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 6px; }
.way h3 { font-family: var(--font); font-size: 1.125rem; font-weight: 700; letter-spacing: 0; color: var(--red); }
.way p { font-size: 1rem; }
.way code { font-family: var(--font); font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--sky-2); padding: 2px 8px; }
.give__note { margin-top: 24px; font-size: 0.9375rem; color: var(--ink-soft); max-width: 56ch; }
@media (max-width: 900px) { .give { grid-template-columns: 1fr; } .give__photo { position: relative; top: 0; aspect-ratio: 4 / 3.4; } }

/* Join page head */
.join-head { background: var(--sky); color: var(--red); padding: calc(var(--header-h) + clamp(32px, 4vw, 64px)) var(--m) clamp(40px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: end; }
.join-head h1 { font-size: clamp(3rem, 1rem + 5.6vw, 7rem); line-height: 0.95; letter-spacing: -0.035em; }
.join-head p { font-size: 1.1875rem; font-weight: 500; max-width: 40ch; }
@media (max-width: 860px) { .join-head { grid-template-columns: 1fr; } }
.steps li::after { background: var(--red); }
.choice input:checked + span { background: var(--red); border-color: var(--red); }
.choice input:checked + span::before { background: #fff; border-color: #fff; }
.member-card { background: var(--red-logo); }
.member-card::after { background: var(--flag); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--flag); }

/* Shared section rhythm and entrances */
.sec-title { color: var(--red); }
.on-paper-2 { background: var(--paper-2); }

@media (prefers-reduced-motion: reduce) {
  .hero2__flag, .badge svg, .hero2__body > *, .hero2__arch, .donate-bar { animation: none; }
  .principle { transform: none !important; }
}
