/* ==========================================================================
   NIMBO — National Independent Movement for Boakai
   Design system: purple (primary), white (surface), brown (accent)
   ========================================================================== */

:root {
  /* Brand */
  --purple-900: #2e0a48;
  --purple-800: #43106a;
  --purple-700: #5a189a;
  --purple-600: #6d28a8;
  --purple-500: #8b3fc4;
  --purple-100: #f3e9fb;
  --purple-050: #faf5ff;

  --brown-700: #4d2f1c;
  --brown-600: #6b4227;
  --brown-500: #8a5a35;
  --brown-100: #f6efe8;

  --ink: #1b1420;
  --ink-soft: #4c4453;
  --ink-muted: #7a7382;
  --line: #e9e4ee;
  --white: #ffffff;
  --surface: #ffffff;
  --surface-alt: #fbfafc;

  --ok: #197a4b;
  --warn: #9a6a00;
  --err: #a32020;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(27, 20, 32, 0.06), 0 1px 3px rgba(27, 20, 32, 0.04);
  --shadow: 0 8px 24px -12px rgba(46, 10, 72, 0.18);
  --shadow-lg: 0 30px 60px -30px rgba(46, 10, 72, 0.35);

  --container: 1180px;
  --nav-h: 76px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--purple-700);
  text-decoration: none;
}
a:hover {
  color: var(--purple-500);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--purple-500);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--purple-900);
}
h1 {
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.9rem);
}
h2 {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem);
}
h3 {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
}
h4 {
  font-size: 1.05rem;
}
p {
  color: var(--ink-soft);
}
.lede {
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem);
  color: var(--ink-soft);
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-600);
}
.text-center {
  text-align: center;
}
.mx-auto {
  margin-inline: auto;
}
.measure {
  max-width: 62ch;
}

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.section {
  padding: clamp(56px, 4vw + 34px, 104px) 0;
}
.section--alt {
  background: var(--surface-alt);
  border-block: 1px solid var(--line);
}
.section--tint {
  background: linear-gradient(180deg, var(--purple-050), var(--white));
}
.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head p {
  margin-top: 12px;
}
.grid {
  display: grid;
  gap: 22px;
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.stack {
  display: grid;
  gap: 16px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.split {
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .split--narrow-first {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--purple-700);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  color: var(--btn-fg);
  background: var(--purple-600);
}
.btn:active {
  transform: translateY(0);
}
.btn[disabled],
.btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}
.btn--brown {
  --btn-bg: var(--brown-600);
}
.btn--brown:hover {
  background: var(--brown-500);
}
.btn--ghost {
  background: transparent;
  color: var(--purple-800);
  border-color: var(--line);
  box-shadow: none;
}
.btn--ghost:hover {
  background: var(--purple-050);
  border-color: var(--purple-100);
  color: var(--purple-800);
}
.btn--onDark {
  background: var(--white);
  color: var(--purple-800);
}
.btn--onDark:hover {
  background: var(--purple-050);
  color: var(--purple-900);
}
.btn--outlineLight {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}
.btn--outlineLight:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}
.btn--sm {
  padding: 8px 16px;
  font-size: 0.86rem;
}
.btn--block {
  width: 100%;
}
.link-arrow {
  font-weight: 700;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.link-arrow svg {
  transition: transform 0.18s ease;
}
.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  height: 100%;
}
.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--purple-100);
}
.card--flush {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card h3 {
  margin-bottom: 8px;
}
.card p {
  font-size: 0.95rem;
}
.card__body {
  padding: 22px;
  display: grid;
  gap: 10px;
  flex: 1;
}
.card__media {
  aspect-ratio: 16 / 10;
  background: var(--purple-100);
  position: relative;
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card--hover:hover .card__media img {
  transform: scale(1.04);
}

/* ---------- homepage newsroom ---------- */
.home-news {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}
.home-news__feature,
.home-news__item {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.home-news__feature:hover,
.home-news__item:hover {
  transform: translateY(-4px);
  border-color: var(--purple-100);
  box-shadow: var(--shadow);
}
.home-news__feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.home-news__feature-media,
.home-news__item-media {
  overflow: hidden;
  background: var(--purple-100);
}
.home-news__feature-media img,
.home-news__item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.home-news__feature:hover img,
.home-news__item:hover img {
  transform: scale(1.04);
}
.home-news__feature-body {
  display: flex;
  padding: clamp(24px, 3vw, 38px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.home-news__feature-body h3 {
  margin: 15px 0 10px;
  font-size: clamp(1.45rem, 1.2rem + 1vw, 2.05rem);
}
.home-news__feature-body p {
  margin-bottom: 22px;
}
.home-news__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--brown-600);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}
.home-news__meta span + span {
  color: var(--ink-muted);
}
.home-news__rail {
  display: grid;
  gap: 16px;
}
.home-news__item {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 18px;
  min-height: 172px;
  padding: 14px;
  border-radius: var(--radius);
}
.home-news__item-media {
  min-height: 142px;
  border-radius: calc(var(--radius) - 6px);
}
.home-news__item h4 {
  margin: 10px 0 12px;
  color: var(--purple-900);
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.2;
}
.home-news__item .link-arrow,
.home-news__feature .link-arrow {
  font-size: 0.88rem;
}
@media (max-width: 820px) {
  .home-news {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .home-news__feature {
    grid-template-columns: 1fr;
  }
  .home-news__feature-media {
    aspect-ratio: 16 / 10;
  }
  .home-news__item {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    min-height: 146px;
    padding: 10px;
  }
  .home-news__item-media {
    min-height: 124px;
  }
  .home-news__item h4 {
    margin-top: 8px;
    font-size: 1.05rem;
  }
}

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--purple-100);
  color: var(--purple-700);
  margin-bottom: 16px;
}
.icon-badge--brown {
  background: var(--brown-100);
  color: var(--brown-600);
}
.icon-badge svg {
  width: 22px;
  height: 22px;
}

/* ---------- chips / tags ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--purple-100);
  color: var(--purple-800);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.chip--brown {
  background: var(--brown-100);
  color: var(--brown-700);
}
.chip--outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.chip--light {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--brown-100);
  color: var(--brown-700);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.note {
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.callout {
  border: 1px dashed var(--brown-500);
  background: var(--brown-100);
  color: var(--brown-700);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.9rem;
}
.callout strong {
  color: var(--brown-700);
}

/* ---------- filter bar ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter {
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.16s ease;
}
.filter:hover {
  border-color: var(--purple-100);
  background: var(--purple-050);
}
.filter[aria-pressed="true"] {
  background: var(--purple-700);
  border-color: var(--purple-700);
  color: var(--white);
}
.search {
  position: relative;
  min-width: 240px;
  flex: 1;
  max-width: 340px;
}
.search input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--white);
}
.search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--ink-muted);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 10px 30px -24px rgba(46, 10, 72, 0.5);
}
.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 1px solid var(--line);
}
.brand__name {
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--purple-900);
  line-height: 1.1;
}
.brand__sub {
  white-space: nowrap;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
}
.nav__links {
  display: none;
  align-items: center;
  gap: 2px;
}
.nav__links a {
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.nav__links a:hover {
  background: var(--purple-050);
  color: var(--purple-800);
}
.nav__links a[aria-current="page"] {
  color: var(--purple-800);
  background: var(--purple-100);
}
.nav__cta {
  display: none;
}
.nav__toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}
.nav__toggle svg {
  width: 22px;
  height: 22px;
  color: var(--purple-800);
}
@media (min-width: 1160px) {
  .nav__links {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
  }
  .nav__links a {
    padding: 9px 8px;
    font-size: 0.84rem;
  }
  .brand {
    flex: 0 0 auto;
  }
  .nav__cta {
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .nav__cta {
    display: inline-flex;
  }
  .nav__toggle {
    display: none;
  }
}
.mobile-menu {
  display: grid;
  gap: 2px;
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.mobile-menu[hidden] {
  display: none;
}
.mobile-menu a {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.mobile-menu a[aria-current="page"] {
  background: var(--purple-100);
  color: var(--purple-800);
}
.mobile-menu .btn {
  margin-top: 10px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 520px at 82% -10%, rgba(139, 63, 196, 0.5), transparent 60%),
    linear-gradient(160deg, var(--purple-900) 0%, var(--purple-800) 48%, #3a1630 100%);
  color: var(--white);
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  z-index: -1;
}
.hero__inner {
  display: grid;
  gap: clamp(32px, 4vw, 60px);
  align-items: center;
  padding: clamp(52px, 6vw, 104px) 0 clamp(60px, 6vw, 100px);
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: 1.08fr 0.92fr;
  }
}
.hero h1,
.hero h2,
.hero h3 {
  color: var(--white);
}
.hero p {
  color: rgba(255, 255, 255, 0.82);
}
.hero__title {
  margin: 18px 0 18px;
}
.hero--slideshow {
  min-height: 560px;
  isolation: isolate;
}
.hero__slides,
.hero__slide {
  min-height: inherit;
}
.hero__slides {
  position: relative;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  pointer-events: auto;
}
.hero__slide > img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 7s ease;
}
.hero__slide.is-active > img {
  transform: scale(1);
}
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--purple-900) 0%, var(--purple-900) 40%, rgba(46, 10, 72, 0.92) 51%, rgba(46, 10, 72, 0.16) 76%, rgba(46, 10, 72, 0) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 560px;
  max-width: 610px;
  padding-top: 64px;
  padding-bottom: 150px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin-inline: max(20px, calc((100vw - var(--container)) / 2));
  padding-inline: 0;
}
.hero__content .lede {
  max-width: 600px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.83);
}
.hero__content .hero__title {
  max-width: 720px;
  margin-top: 18px;
  font-size: clamp(2.35rem, 3.6vw, 3.8rem);
}
.hero__controls {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 28px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero__arrow,
.hero__dot {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}
.hero__arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero__arrow:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}
.hero__dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.hero__dot {
  width: 30px;
  height: 4px;
  padding: 0;
  border-radius: 4px;
  opacity: 0.55;
}
.hero__dot.is-active {
  background: var(--white);
  opacity: 1;
}
.hero__controls::after {
  content: "";
  width: 1px;
  height: 24px;
  margin-left: 0;
  background: rgba(255, 255, 255, 0.3);
}
.hero__actions {
  margin-top: 22px;
}
.hero__meta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
}
.hero__visual {
  position: relative;
}
.hero__map {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}
.hero__map img {
  filter: invert(1) brightness(1.6) contrast(0.9);
  opacity: 0.92;
  margin-inline: auto;
  max-height: 380px;
  width: auto;
}
.hero__photo {
  position: absolute;
  right: -6px;
  bottom: -28px;
  width: min(230px, 46%);
  border-radius: var(--radius);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero__photo img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
@media (max-width: 620px) {
  .hero--slideshow,
  .hero__content {
    min-height: 660px;
  }
  .hero__slide > img {
    top: 0;
    width: 100%;
    height: 44%;
  }
  .hero__content {
    max-width: 100%;
    padding-top: 300px;
    padding-bottom: 120px;
    justify-content: flex-start;
  }
  .hero__shade {
    background: linear-gradient(180deg, rgba(46, 10, 72, 0) 0%, var(--purple-900) 43%, var(--purple-900) 100%);
  }
  .hero__controls {
    bottom: 30px;
    padding-inline: 20px;
  }
  .hero__controls::after {
    display: none;
  }
  .hero__photo {
    display: none;
  }
}

/* page hero (inner pages) */
.page-hero {
  background: linear-gradient(160deg, var(--purple-900), var(--purple-800));
  color: var(--white);
  padding: clamp(44px, 5vw, 78px) 0;
}
.page-hero h1 {
  color: var(--white);
  margin: 14px 0 14px;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 62ch;
}
.page-hero .eyebrow {
  color: #e6c9a8;
}
.breadcrumbs {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}
.breadcrumbs a {
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- stats ---------- */
.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.stat__value {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--purple-800);
  line-height: 1;
}
.stat__label {
  margin-top: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}
.stat__hint {
  font-size: 0.82rem;
  color: var(--ink-muted);
}
.stats-strip {
  margin-top: -46px;
  position: relative;
  z-index: 5;
}

/* ---------- lists ---------- */
.ticks {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
}
.ticks li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.ticks svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--purple-600);
  margin-top: 3px;
}

/* timeline */
.timeline {
  display: grid;
  gap: 0;
  list-style: none;
  padding: 0;
}
.timeline li {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.timeline li:first-child {
  border-top: 0;
}
.timeline time {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brown-600);
}
@media (max-width: 640px) {
  .timeline li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* org chart */
.org {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}
.org__node {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 14px 20px;
  box-shadow: var(--shadow-sm);
  min-width: 220px;
}
.org__node strong {
  display: block;
  color: var(--purple-800);
}
.org__node span {
  font-size: 0.84rem;
  color: var(--ink-muted);
}
.org__line {
  width: 2px;
  height: 22px;
  background: var(--purple-100);
}
.org__row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  width: 100%;
}

/* profile card */
.profile__photo {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--purple-100), var(--brown-100));
  display: grid;
  place-items: center;
  color: var(--purple-700);
  font-family: var(--font-display);
  font-size: 1.6rem;
  overflow: hidden;
  margin-bottom: 16px;
}
.profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* county map */
.map-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  padding: clamp(16px, 2vw, 28px);
}
.map-panel img {
  margin-inline: auto;
}

/* forms */
.form {
  display: grid;
  gap: 18px;
}
.field {
  display: grid;
  gap: 7px;
}
.field > label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple-500);
  box-shadow: 0 0 0 4px var(--purple-100);
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field .error {
  font-size: 0.8rem;
  color: var(--err);
  font-weight: 600;
  min-height: 0;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--err);
}
.field-row {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  background: var(--white);
  transition: all 0.16s ease;
}
.check input {
  accent-color: var(--purple-700);
}
.check:has(input:checked) {
  background: var(--purple-100);
  border-color: var(--purple-500);
  color: var(--purple-800);
}
.alert {
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid;
}
.alert--ok {
  background: #eef8f2;
  border-color: #bfe3cf;
  color: var(--ok);
}
.alert--err {
  background: #fdf0f0;
  border-color: #f0cccc;
  color: var(--err);
}
.alert[hidden] {
  display: none;
}

/* donation amounts */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 10px;
}
.amount {
  padding: 16px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--purple-800);
  cursor: pointer;
  transition: all 0.16s ease;
}
.amount:hover {
  border-color: var(--purple-500);
}
.amount[aria-pressed="true"] {
  background: var(--purple-700);
  color: var(--white);
  border-color: var(--purple-700);
}
.segmented {
  display: inline-flex;
  padding: 4px;
  background: var(--purple-050);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  gap: 4px;
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.segmented button[aria-pressed="true"] {
  background: var(--white);
  color: var(--purple-800);
  box-shadow: var(--shadow-sm);
}

/* membership card */
.member-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--white);
  background:
    radial-gradient(400px 200px at 90% 0%, rgba(139, 63, 196, 0.65), transparent 70%),
    linear-gradient(150deg, var(--purple-900), #3b1a2f);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 18px;
}
.member-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.member-card__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
}
.member-card dt {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}
.member-card dd {
  margin: 0 0 12px;
  font-weight: 700;
}
.qr {
  width: 92px;
  height: 92px;
  border-radius: 12px;
  background: var(--white);
  padding: 8px;
  display: grid;
  place-items: center;
}
.qr svg {
  width: 100%;
  height: 100%;
  color: var(--purple-900);
}

/* modal / panel */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(27, 20, 32, 0.55);
  backdrop-filter: blur(3px);
  animation: fade 0.18s ease;
}
.modal[hidden] {
  display: none;
}
.modal__box {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: min(620px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  animation: pop 0.2s ease;
}
.modal__close {
  border: 1px solid var(--line);
  background: var(--white);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  cursor: pointer;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

/* skeleton loading */
.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(90deg, #efecf3 25%, #f7f5fa 37%, #efecf3 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s infinite linear;
  height: 100%;
  min-height: 120px;
}
@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}

/* CTA band */
.band {
  background:
    radial-gradient(700px 320px at 15% 0%, rgba(139, 63, 196, 0.55), transparent 65%),
    linear-gradient(140deg, var(--purple-900), var(--brown-700));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 52px);
  box-shadow: var(--shadow-lg);
}
.band h2,
.band h3 {
  color: var(--white);
}
.band p {
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--purple-900);
  color: rgba(255, 255, 255, 0.74);
  padding: 60px 0 26px;
  margin-top: 0;
}
.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}
.site-footer a:hover {
  color: var(--white);
}
.footer-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.footer-brand {
  max-width: 320px;
}
.footer-brand .brand__name,
.footer-brand .brand__sub {
  color: var(--white);
}
.footer-links {
  display: grid;
  gap: 9px;
  list-style: none;
  padding: 0;
}
.socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
}
.socials svg {
  width: 17px;
  height: 17px;
}
.footer-bottom {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  font-size: 0.84rem;
}

/* admin */
.admin {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}
@media (min-width: 1000px) {
  .admin {
    grid-template-columns: 264px 1fr;
  }
}
.admin__side {
  background: var(--purple-900);
  color: rgba(255, 255, 255, 0.78);
  padding: 24px 18px;
}
.admin__side .brand__name,
.admin__side .brand__sub {
  color: var(--white);
}
.admin__nav {
  display: grid;
  gap: 4px;
  margin-top: 26px;
}
.admin__nav button {
  text-align: left;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}
.admin__nav button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}
.admin__nav button[aria-current="true"] {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}
.admin__main {
  padding: clamp(20px, 3vw, 38px);
  background: var(--surface-alt);
}
.admin-panel[hidden] {
  display: none;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th,
td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--surface-alt);
}
tbody tr:last-child td {
  border-bottom: 0;
}
.bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 52px;
  gap: 12px;
  align-items: center;
  font-size: 0.88rem;
}
.bar {
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--purple-100);
  overflow: hidden;
}
.bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple-700), var(--purple-500));
  transition: width 0.8s ease;
}
.bar--brown > span {
  background: linear-gradient(90deg, var(--brown-600), var(--brown-500));
}
.spark {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 170px;
}
.spark__col {
  flex: 1;
  display: grid;
  gap: 8px;
  justify-items: center;
  align-content: end;
  font-size: 0.72rem;
  color: var(--ink-muted);
}
.spark__col i {
  display: block;
  width: 100%;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--purple-500), var(--purple-700));
  transition: height 0.8s ease;
}

/* reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--white);
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Admin dashboard (prototype) ---------- */
.admin-body {
  background: var(--surface-2, #f6f4f9);
}
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--purple-900, #35124f);
  color: #fff;
  padding: 14px 0;
  box-shadow: var(--shadow);
}
.admin-topbar a,
.admin-topbar strong {
  color: #fff;
}
.admin-shell {
  display: grid;
  gap: 26px;
  padding: 28px 0 70px;
  align-items: start;
}
@media (min-width: 900px) {
  .admin-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .admin-nav {
    position: sticky;
    top: 90px;
  }
}
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (min-width: 900px) {
  .admin-nav {
    flex-direction: column;
    flex-wrap: nowrap;
  }
}
.admin-nav__item {
  appearance: none;
  border: 1px solid var(--border, #e6e0ee);
  background: #fff;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.admin-nav__item:hover {
  background: #f1ecf8;
}
.admin-nav__item.is-active {
  background: var(--purple-700, #5b1f86);
  border-color: transparent;
  color: #fff;
}
.admin-main {
  min-width: 0;
}
.admin-panel {
  display: none;
}
.admin-panel.is-active {
  display: block;
}
.cbars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.cbar {
  display: grid;
  min-height: 24px;
  line-height: 1.3;
  grid-template-columns: minmax(90px, 34%) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}
.cbar__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cbar__track {
  display: block;
  height: 10px;
  border-radius: 99px;
  background: #ece5f5;
  overflow: hidden;
}
.cbar__fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--purple-700, #5b1f86), var(--brown-500, #8a5a3b));
}
.cbar__value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.detail-list {
  margin: 12px 0 0;
  display: grid;
  gap: 4px;
}
.detail-list dt {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-ink, #6b6478);
}
.detail-list dd {
  margin: 0 0 12px;
  font-weight: 600;
}

@media (min-width: 1160px) and (max-width: 1339px) {
  .site-header .brand__sub {
    display: none;
  }
}
