/* ==========================================================================
   Somali Youth League, v3: floating pill header, pill buttons with icons,
   the candidate in front of the Somali flag, the flag-blue footer, and the
   one-page membership form. Loaded after syl.css.
   ========================================================================== */
:root {
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --sky-hero: #b6d1ea;
  --pill-shadow: 0 1px 2px rgba(14, 35, 70, 0.06), 0 10px 28px -14px rgba(14, 35, 70, 0.35);
}

/* Icons */
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 420ms var(--spring); }
.btn:hover .ico { transform: translateX(2px); }
.ico--beat { fill: currentColor; stroke: none; }
.btn:hover .ico--beat, .donate-round:hover .ico--beat { animation: beat 900ms var(--smooth) infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.22); } 40% { transform: scale(0.96); } 60% { transform: scale(1.1); } }

/* Buttons: pills that lift */
.btn {
  border-radius: 999px; min-height: 52px; padding: 0 24px; gap: 0.55em;
  transition: transform 420ms var(--spring), background-color 240ms var(--smooth), box-shadow 320ms var(--smooth), color 240ms var(--smooth);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(163, 23, 29, 0.6); }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 120ms; }
.btn--white { --bg: #fff; --fg: var(--red); --bg-hover: #fff; }
.btn--white:hover { box-shadow: 0 12px 24px -12px rgba(14, 35, 70, 0.4); }
.btn--line:hover { box-shadow: inset 0 0 0 2px var(--red), 0 12px 24px -14px rgba(163, 23, 29, 0.5); }
.btn--lg { min-height: 60px; padding: 0 30px; }

/* Header: floating pills */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: auto;
  display: flex; align-items: center; gap: 10px; padding: 14px var(--m);
  background: transparent !important; color: var(--ink); pointer-events: none;
  transition: transform 420ms var(--smooth);
}
.site-header > * { pointer-events: auto; }
.site-header.is-over, .site-header.is-over.is-solid { background: transparent; color: var(--ink); }
.hdr-pill { background: #fff; border-radius: 999px; box-shadow: var(--pill-shadow); }
.brand.hdr-pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 20px 5px 5px; color: var(--red); text-decoration: none; transition: transform 420ms var(--spring); }
.brand.hdr-pill:hover { transform: translateY(-1px); }
.brand.hdr-pill img { width: 40px; height: 40px; }
.brand.hdr-pill .brand__name { font-size: 1.375rem; }
.brand.hdr-pill .brand__name small { font-size: 0.75rem; margin-top: 3px; }
.nav.hdr-pill { position: relative; flex: 0 0 auto; margin-left: auto; padding: 5px; display: block; }
.nav__links { position: relative; z-index: 1; display: flex; gap: 2px; }
.nav__links a {
  display: block; padding: 11px 20px; border-radius: 999px;
  font-size: 1rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--navy); text-decoration: none !important;
  transition: color 300ms var(--smooth);
}
.nav__links a::after { display: none; }
.nav__links a.is-ink { color: #fff; }
.nav__ink {
  position: absolute; z-index: 0; top: 5px; left: 0; height: calc(100% - 10px); width: 0; border-radius: 999px;
  background: var(--red); opacity: 0;
  transition: transform 520ms var(--spring), width 520ms var(--spring), opacity 240ms var(--smooth);
}
.header__actions { display: flex; align-items: center; gap: 8px; }
.header__actions .btn { min-height: 52px; padding: 0 22px; box-shadow: var(--pill-shadow); }
.header__actions .btn--white { color: var(--red); }
.lang.hdr-pill { display: inline-flex; align-items: center; gap: 2px; padding: 5px; }
.lang.hdr-pill .ico { margin: 0 4px 0 9px; color: var(--red); }
.lang.hdr-pill button { min-height: 42px; min-width: 46px; border-radius: 999px; transition: background-color 260ms var(--smooth), color 260ms var(--smooth), transform 380ms var(--spring); }
.lang.hdr-pill button:hover { background: var(--sky-2); }
.lang.hdr-pill button[aria-pressed="true"] { background: var(--red); color: #fff; }
.nav__toggle.hdr-pill { display: none; width: 52px; height: 52px; border: 0; padding: 0; place-items: center; color: var(--red); transition: transform 380ms var(--spring); }
.nav__toggle.hdr-pill .ico { width: 24px; height: 24px; }
.nav__toggle.hdr-pill:active { transform: scale(0.94); }
@media (max-width: 1240px) { .header__join { display: none; } }
@media (max-width: 1060px) {
  .nav.hdr-pill { display: none; }
  .nav__toggle.hdr-pill { display: grid; }
  .header__actions { margin-left: auto; }
}
@media (max-width: 600px) {
  .site-header { padding: 10px var(--m); gap: 6px; }
  .site-header .lang.hdr-pill { display: none; }
  .brand.hdr-pill { padding-right: 14px; }
  .brand.hdr-pill .brand__name small { display: none; }
  .header__donate { padding: 0 18px !important; }
}
.menu { background: var(--sky-hero); padding-top: 14px; }
.menu__top { align-items: center; }
.menu__close.hdr-pill { width: 52px; height: 52px; border: 0; display: grid; place-items: center; color: var(--red); }
.menu__close .ico { width: 24px; height: 24px; }
.menu__links a { color: var(--red); }
.menu__links a[aria-current="page"] { font-style: italic; }
.lang--menu.hdr-pill { justify-self: start; }

/* Hero: the candidate in front of the flag */
.hero3 { position: relative; isolation: isolate; overflow: hidden; background: var(--sky-hero); min-height: max(720px, 100svh); }
.hero3 picture { display: contents; }
.hero3__flag {
  position: absolute; z-index: 0; top: -2%; right: -70px; height: 96%; aspect-ratio: 300 / 760;
  filter: blur(1.4px) saturate(0.96); transform-origin: 5% 0;
  animation: hang-sway 8s var(--ease-in-out) infinite alternate;
}
.hero3__flag svg { width: 100%; height: 100%; display: block; }
.hero3__folds { animation: ripple 6.5s var(--ease-in-out) infinite alternate; }
@keyframes hang-sway { from { transform: rotate(-0.8deg); } to { transform: rotate(0.9deg); } }
@keyframes ripple { from { transform: translateX(-40px); } to { transform: translateX(70px); } }
.hero3__person {
  position: absolute; z-index: 1; bottom: 0; right: clamp(24px, 5vw, 110px);
  height: min(90%, 980px); width: auto; max-width: 54%; object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 24px 40px rgba(14, 35, 70, 0.2));
  animation: person-in 1200ms var(--smooth) 100ms both;
}
@keyframes person-in { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
.hero3__body {
  position: relative; z-index: 2; min-height: inherit; max-width: min(58%, 900px);
  display: grid; grid-template-rows: auto auto 1fr; align-content: start;
  padding: calc(var(--header-h) + clamp(48px, 10vh, 120px)) var(--m) clamp(28px, 4vw, 48px);
}
.hero3__body > * { animation: hero-in 900ms var(--smooth) both; }
.hero3__body > *:nth-child(2) { animation-delay: 120ms; }
.hero3__body > *:nth-child(3) { animation-delay: 240ms; }
.hero3__title { font-family: var(--serif); font-weight: 500; color: var(--red); font-size: clamp(3.25rem, 1rem + 6.2vw, 8.5rem); line-height: 0.94; letter-spacing: -0.035em; }
.hero3__title > span > span { display: block; }
.hero3__title em { font-style: italic; font-weight: 700; letter-spacing: -0.04em; }
.hero3__row { margin-top: clamp(28px, 4.5vw, 64px); display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); flex-wrap: wrap; }
.hero3__lead { font-size: clamp(1.125rem, 1rem + 0.55vw, 1.5rem); line-height: 1.3; font-weight: 500; color: var(--red); }
.donate-round {
  position: relative; flex: none; width: clamp(116px, 9vw, 140px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center;
  background: var(--red); color: #fff; text-decoration: none; text-transform: uppercase;
  font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.04em; line-height: 1.1;
  transition: transform 520ms var(--spring), background-color 260ms var(--smooth);
}
.donate-round .ico { width: 22px; height: 22px; }
.donate-round::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--red); opacity: 0; animation: halo 2.8s var(--smooth) infinite; }
@keyframes halo { 0% { transform: scale(0.88); opacity: 0.6; } 70%, 100% { transform: scale(1.18); opacity: 0; } }
.donate-round:hover { transform: scale(1.06) rotate(-5deg); background: var(--red-press); }
.donate-round:active { transform: scale(0.97); }
.hero3__tags { align-self: end; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.hero3__tags li { background: #fff; color: var(--red); border-radius: 999px; padding: 7px 18px; font-style: italic; font-weight: 600; font-size: 1.0625rem; box-shadow: var(--pill-shadow); }
.hero3 .donate-bar { z-index: 3; border-radius: 999px; padding: 8px 22px 8px 8px; min-width: 0; text-transform: none; font-size: 1.125rem; }
.hero3 .donate-bar img { width: 52px; height: 52px; }
.hero3 .donate-bar .ico { width: 22px; height: 22px; transition: transform 420ms var(--spring); }
.hero3 .donate-bar:hover .ico { transform: translate(3px, -3px); }
@media (max-width: 960px) {
  .hero3 { min-height: 0; display: flex; flex-direction: column; }
  .hero3__body { order: 1; }
  .hero3__person { order: 2; }
  .hero3 .donate-bar { order: 3; }
  .hero3__body { max-width: none; min-height: 0; padding-top: calc(var(--header-h) + 40px); grid-template-rows: auto; }
  .hero3__title { font-size: clamp(3rem, 13.5vw, 5.5rem); }
  .hero3__tags { margin-top: 28px; }
  .hero3__person { position: relative; right: auto; align-self: flex-end; height: auto; width: min(92%, 560px); max-width: none; margin-top: -20px; margin-right: 4%; }
  .hero3__flag { top: auto; bottom: 0; height: 52%; right: -90px; }
  .hero3 .donate-bar { position: relative; left: auto; right: auto; bottom: auto; margin: -76px var(--m) 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero3__flag, .hero3__folds, .hero3__person, .hero3__body > *, .donate-round::after { animation: none; }
}

/* ---------- Footer, compact: navy with a flag-blue edge ---------- */
.site-footer {
  position: relative; overflow: visible; display: block; min-height: 0;
  background: var(--navy); color: #fff;
  padding: clamp(32px, 4vw, 48px) var(--m) 18px;
  border-top: 6px solid var(--flag);
}
.site-footer :focus-visible { outline-color: #fff; }
.ft__top { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.ft__brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.375rem; font-weight: 600; line-height: 1; }
.ft__brand small { display: block; margin-top: 5px; font-family: var(--font); font-size: 0.8125rem; font-weight: 600; color: #c9d7ea; }
.ft__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ft__tags li { padding: 5px 13px; border-radius: 999px; background: rgba(65, 137, 221, 0.18); color: #d6e6fa; font-size: 0.875rem; font-weight: 600; font-style: italic; letter-spacing: 0.01em; }
.ft__actions { display: flex; gap: 8px; margin-left: auto; }
.ft__actions .btn { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.ft__actions .btn--white { color: var(--red); }
.ft__mid { margin-top: 28px; padding-block: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; background: linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.12)) 0 0 / 100% 1px no-repeat, linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.12)) 0 100% / 100% 1px no-repeat; /* taste-skill-ignore: section dividers */ }
.ft__links { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.ft__links a { padding: 8px 14px; border-radius: 999px; color: #fff; text-decoration: none; font-size: 0.9375rem; font-weight: 500; transition: background-color 240ms var(--smooth); }
.ft__links a:hover { background: rgba(255, 255, 255, 0.1); }
.ft__news { position: relative; display: flex; align-items: center; width: min(100%, 380px); background: #fff; border-radius: 999px; padding: 4px; }
.ft__news .input { border: 0; background: transparent; min-height: 42px; padding: 0 14px; font-size: 0.9375rem; border-radius: 999px; }
.ft__news .btn { min-height: 42px; width: 42px; padding: 0; flex: none; }
.ft__news .ico { width: 18px; height: 18px; }
.ft__news .form-status { position: absolute; left: 14px; top: calc(100% + 6px); font-size: 0.8125rem; color: #fff; white-space: nowrap; }
.ft__news .form-status.is-error, .ft__news .form-status.is-ok { color: #fff; }
.ft__bottom { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.ft__contact { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.875rem; color: #c9d7ea; }
.ft__contact li { display: inline-flex; align-items: center; gap: 7px; }
.ft__contact a { color: #c9d7ea; text-decoration: none; }
.ft__contact a:hover { color: #fff; }
.ft__contact .ico { width: 16px; height: 16px; color: var(--flag); }
.ft__social { display: flex; gap: 6px; }
.ft__social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, 0.1); transition: transform 380ms var(--spring), background-color 220ms var(--smooth), color 220ms var(--smooth); }
.ft__social .ico { fill: currentColor; stroke: none; width: 16px; height: 16px; }
.ft__social a:hover { background: var(--flag); transform: translateY(-2px); }
.ft__bar { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; font-size: 0.8125rem; color: #9fb2cc; }
.ft__bar a { color: #c9d7ea; }
.site-footer .footer__credits { margin-top: 2px; font-size: 0.75rem; color: #8ea3bf; }
.site-footer .footer__credits summary { color: #c9d7ea; min-height: 32px; font-weight: 600; }
.site-footer .footer__credits a { color: #8ea3bf; }
@media (max-width: 760px) {
  .ft__actions { margin-left: 0; width: 100%; }
  .ft__actions .btn { flex: 1; }
  .ft__news { width: 100%; }
}

/* Membership form on one page */
.form-section { padding: clamp(24px, 3vw, 36px); background: #fff; border-radius: 24px; display: grid; gap: 24px; border: 0; margin: 0 0 12px; min-width: 0; }
.form-section__head { display: flex; align-items: center; gap: 14px; }
.form-section__head svg { width: 44px; height: 44px; flex: none; padding: 10px; border-radius: 50%; background: var(--sky-2); color: var(--red); }
.form-section__head h2 { font-size: clamp(1.5rem, 1rem + 1vw, 2.125rem); color: var(--red); }
.form-section .step__intro { margin-top: -14px; }
.form-submit { padding: clamp(24px, 3vw, 36px); background: var(--sky-2); border-radius: 24px; display: grid; gap: 18px; }
.input, .select, .textarea { border-radius: 14px; transition: border-color 220ms var(--smooth), box-shadow 220ms var(--smooth); }
.input:focus, .select:focus, .textarea:focus { box-shadow: 0 0 0 4px rgba(65, 137, 221, 0.2); }
.choice span { border-radius: 999px; transition: background-color 220ms var(--smooth), border-color 220ms var(--smooth), color 220ms var(--smooth), transform 380ms var(--spring); }
.input-group .select { border-radius: 14px 0 0 14px; }
.input-group .input { border-radius: 0 14px 14px 0; }
.input-group .prefix { border-radius: 14px 0 0 14px; }
.member-card { border-radius: 20px; }
.give__chips span { border-radius: 999px; }
.bp-card, .post, .voices__card, .principle, .page-hero__card, .convo__form, .convo__cards > *, .way { border-radius: 24px; }
.tone, .photo, .places__grid figure { border-radius: 20px; }

/* Language spans inside chips stay plain text */
.choice > span span, .give__chips > label > span span {
  display: inline; min-height: 0; padding: 0; margin: 0; gap: 0; border: 0; box-shadow: none;
  background: none; color: inherit; font: inherit; transform: none; border-radius: 0;
}
.choice > span span::before { content: none; display: none; }

/* ---------- Header: campaign layout. Stacked wordmark left, lined links and a red Donate right ---------- */
:root { --header-h: 96px; }
.site-header {
  inset: 0 0 auto 0; height: var(--header-h); padding: 0 var(--m); gap: clamp(16px, 2.4vw, 36px);
  display: flex; align-items: center;
  background: var(--sky-hero) !important; border-radius: 0; box-shadow: none; color: var(--red); pointer-events: auto;
  transition: background-color 320ms var(--smooth), box-shadow 320ms var(--smooth), transform 420ms var(--smooth);
}
.site-header.is-over:not(.is-solid) { background: transparent !important; }
.site-header.is-solid { box-shadow: 0 10px 28px -22px rgba(14, 35, 70, 0.6); }
.site-header.is-hidden { transform: translateY(-100%); }

.wordmark { display: inline-flex; align-items: center; gap: 12px; color: var(--red); text-decoration: none; flex: none; }
.wordmark img { width: 52px; height: 52px; }
.wordmark__text { display: grid; justify-items: start; line-height: 1; }
.wordmark__big { font-family: var(--font); font-weight: 800; font-size: 2.25rem; letter-spacing: 0.03em; line-height: 0.86; }
.wordmark__mid { margin-top: 5px; padding-bottom: 4px; border-bottom: 1.5px solid currentColor; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.wordmark__small { margin-top: 4px; justify-self: end; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.wordmark__small em { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.15em; letter-spacing: 0; text-transform: none; }

.nav--lined { display: block; flex: 0 0 auto; margin-left: auto; padding: 0; background: none; box-shadow: none; }
.nav--lined .nav__links { display: flex; gap: clamp(16px, 2vw, 30px); }
.nav--lined .nav__links a {
  position: relative; display: block; padding: 8px 0 7px; border-radius: 0;
  font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy);
  transition: color 240ms var(--smooth);
}
.nav--lined .nav__links a::after {
  content: ""; display: block !important; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--flag); transform: none !important; transform-origin: left;
  transition: background-color 240ms var(--smooth), height 240ms var(--smooth);
}
.nav--lined .nav__links a:hover, .nav--lined .nav__links a[aria-current="page"] { color: var(--red); }
.nav--lined .nav__links a:hover::after, .nav--lined .nav__links a[aria-current="page"]::after { background: var(--red); height: 3px; }

.header__actions { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 24px); margin-left: 0; }
.lang--text { display: inline-flex; gap: 2px; padding: 0; background: transparent !important; box-shadow: none; }
.lang--text button {
  min-width: 36px; min-height: 40px; padding: 0 4px; border: 0; border-radius: 0; background: transparent;
  font: 800 0.8125rem/1 var(--font); letter-spacing: 0.12em; color: var(--navy);
  box-shadow: inset 0 -2px 0 transparent; transition: color 220ms var(--smooth), box-shadow 220ms var(--smooth);
}
.lang--text button:hover { background: transparent; color: var(--red); }
.lang--text button[aria-pressed="true"] { background: transparent; color: var(--red); box-shadow: inset 0 -2px 0 var(--red); }

.header__donate {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  background: var(--red); color: #fff; border-radius: 3px; text-decoration: none;
  font-size: 0.9375rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background-color 220ms var(--smooth), transform 360ms var(--spring);
}
.header__donate:hover { background: var(--red-press); transform: translateY(-1px); }
.header__donate:active { transform: scale(0.97); }

.nav__toggle--plain { display: none; width: 48px; height: 48px; padding: 0; border: 0; background: none; color: var(--red); place-items: center; }
.nav__toggle--plain .ico { width: 28px; height: 28px; }
@media (max-width: 1100px) {
  .nav--lined { display: none; }
  .nav__toggle--plain { display: grid; }
  .header__actions { margin-left: auto; }
}
@media (max-width: 600px) {
  :root { --header-h: 76px; }
  .wordmark img { width: 42px; height: 42px; }
  .wordmark__big { font-size: 1.75rem; }
  .wordmark__mid { font-size: 0.625rem; }
  .wordmark__small { display: none; }
  .site-header .lang--text { display: none; }
  .header__donate { min-height: 44px; padding: 0 16px !important; font-size: 0.875rem; }
}
