:root {
  --forest:    #1B4332;
  --teal:      #0D6B5E;
  --teal-lt:   #14897A;
  --sage:      #84A98C;
  --sage-lt:   #D8EDDF;
  --amber:     #C57B3A;
  --amber-lt:  #F5E6D3;
  --gold:      #C9A227;
  --gold-lt:   #FBF1D6;
  --cream:     #FAFAF7;
  --warm-wt:   #FFFFFF;
  --sand:      #F2EDE4;
  --text:      #2C2C2C;
  --text-md:   #4A4A4A;
  --text-lt:   #717171;
  --border:    #DDD8D0;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --success:   #2D6A4F;
  --error:     #9B2226;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--teal); }

/* Header & Navigation */
.site-header { position: sticky; top: 0; z-index: 200; box-shadow: 0 2px 12px rgba(0,0,0,0.15); }

.site-nav {
  background: var(--forest);
  border-bottom: 3px solid var(--gold);
}

.nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}

.nav-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.nav-logo { order: 1; margin-right: auto; padding: 4px 0 8px; }

.nav-logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
  max-width: 280px;
}

.nav-logo-name,
.nav-logo-text {
  color: #fff;
  font-size: 17px;
  font-weight: bold;
  letter-spacing: 0.2px;
}

.nav-logo-tag {
  display: block;
  margin-top: 2px;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.35;
  white-space: normal;
}

.nav-logo-sub {
  color: var(--sage);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: Arial, sans-serif;
  white-space: nowrap;
}

.nav-links {
  order: 3;
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  flex-wrap: wrap;
  margin-top: 2px;
  padding: 6px 0 8px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .2s, color .2s;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.nav-links a.active-link {
  color: var(--forest);
  background: var(--gold);
  font-weight: bold;
}

.nav-actions {
  order: 2;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
  padding-bottom: 6px;
}

.mobile-menu-btn { order: 2; }

.btn-wallet {
  background: var(--gold);
  color: var(--forest);
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  transition: background .2s, transform .15s;
}

.btn-wallet:hover {
  background: #d4ad2a;
  transform: translateY(-1px);
}

.btn-outline-nav {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 8px 16px;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn .menu-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

.mobile-menu-btn.open .menu-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open .menu-bar:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open .menu-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.flash-wrap { padding-bottom: 0 !important; padding-top: 16px !important; }

/* Hero / Banner */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.hero-banner {
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-slider {
  position: relative;
  color: #fff;
  overflow: hidden;
  height: 560px;
}

.hero-slides {
  position: relative;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  display: flex;
  align-items: center;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 32px 72px;
  width: 100%;
  text-align: left;
}

.hero-overlay-teal {
  background: linear-gradient(105deg, rgba(13,107,94,0.94) 0%, rgba(27,67,50,0.78) 50%, rgba(20,137,122,0.55) 100%);
}

.hero-overlay-amber {
  background: linear-gradient(105deg, rgba(27,67,50,0.94) 0%, rgba(197,123,58,0.55) 55%, rgba(13,107,94,0.5) 100%);
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-prev { left: 16px; }
.hero-next { right: 16px; }
.hero-nav:hover { background: rgba(0,0,0,0.45); }

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--gold);
  border-color: var(--gold);
}

.section-cta-wrap {
  text-align: center;
  margin: -8px 0 36px;
}

.blog-grid-home {
  margin-bottom: 20px;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1100px) {
  .blog-grid-home { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .blog-grid-home { grid-template-columns: 1fr; }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(27,67,50,0.94) 0%, rgba(27,67,50,0.82) 45%, rgba(13,107,94,0.55) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 32px;
  width: 100%;
}

.hero-content {
  text-align: left;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-feature-img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255,255,255,0.25);
  object-fit: cover;
  aspect-ratio: 4/3;
}
.hero-tag {
  display: inline-block; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 16px; border-radius: 20px; font-family: Arial, sans-serif;
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px;
}
.hero h1, .hero-slide h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.25; margin-bottom: 14px; }
.hero h1 em, .hero-slide h1 em { color: var(--gold); font-style: italic; }
.hero p, .hero-slide p {
  max-width: 640px; margin: 0 0 28px; font-size: 16px; line-height: 1.7;
  color: rgba(255,255,255,0.9); font-family: Arial, sans-serif;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.btn-primary {
  background: var(--gold); color: var(--forest); border: none;
  padding: 13px 28px; border-radius: 6px; font-family: Arial, sans-serif;
  font-size: 14px; font-weight: bold; cursor: pointer; text-decoration: none; display: inline-block;
}
.btn-outline {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5);
  padding: 13px 28px; border-radius: 6px; font-family: Arial, sans-serif;
  font-size: 14px; cursor: pointer; text-decoration: none; display: inline-block;
}
.hero-credit {
  max-width: 520px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius); padding: 18px 24px; font-family: Arial, sans-serif;
}
.hero-credit-eq { font-size: 20px; font-weight: bold; color: var(--gold); }
.hero-credit-sub { font-size: 12px; color: rgba(255,255,255,0.75); margin-top: 6px; }

/* Mission ribbon */
.mission-ribbon { display: flex; background: #fff; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.mission-item {
  flex: 1; min-width: 180px; padding: 20px 16px; display: flex; gap: 12px;
  align-items: center; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.mission-item:last-child { border-right: none; }
.mission-icon { font-size: 26px; }
.mission-text { display: flex; flex-direction: column; font-family: Arial, sans-serif; }
.mission-text strong { font-size: 13px; color: var(--forest); }
.mission-text span { font-size: 11px; color: var(--text-lt); margin-top: 2px; }

/* Sections */
.section-label {
  font-family: Arial, sans-serif; font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--teal); font-weight: bold; margin-bottom: 6px;
}
.section-title { font-size: clamp(22px, 4vw, 26px); color: var(--forest); margin-bottom: 24px; }
.content-wrap { max-width: 1136px; margin: 0 auto; padding: 40px 32px; }
h3.block-title { color: var(--forest); font-size: 18px; margin: 30px 0 14px; }

.movement-band {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.movement-band .content-wrap { padding-bottom: 48px; }

.movement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.movement-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 24px 26px 8px;
  box-shadow: var(--shadow);
}

.movement-card-hi {
  border-top-color: var(--gold);
  font-family: "Noto Sans Devanagari", "Nirmala UI", Arial, sans-serif;
}

.movement-kicker {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--forest);
  margin-bottom: 14px;
}

.movement-card-hi .movement-kicker {
  font-family: "Noto Sans Devanagari", "Nirmala UI", Arial, sans-serif;
  font-size: 20px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
}

.movement-sub {
  font-size: 15px;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 14px;
}

.movement-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.movement-card li {
  position: relative;
  padding: 0 0 16px 22px;
  font-family: Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-md);
}

.movement-card-hi li {
  font-family: "Noto Sans Devanagari", "Nirmala UI", Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.85;
}

.movement-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.movement-card-hi li::before { background: var(--gold); }

.page-dynamic-content .prose-block:first-child { margin-top: 0; }
.page-dynamic-content img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-bottom: 36px; }
.card-grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card-grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.svc-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow);
}
.svc-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px;
}
.svc-card h4 { font-size: 16px; color: var(--forest); margin-bottom: 8px; }
.svc-card p { font-family: Arial, sans-serif; font-size: 12.5px; color: var(--text-lt); line-height: 1.6; margin-bottom: 10px; }
.svc-card ul { font-family: Arial, sans-serif; font-size: 12px; color: var(--text-md); line-height: 1.9; list-style: none; }
.svc-card ul li::before { content: "› "; color: var(--teal); font-weight: bold; }

.svc-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.svc-card-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sage);
}

.svc-card-cta {
  display: inline-block;
  margin-top: 12px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: var(--teal);
}

.mission-item-link {
  text-decoration: none;
  color: inherit;
  transition: background .2s;
}

.mission-item-link:hover {
  background: var(--sage-lt);
}

/* Stepper */
.stepper { display: flex; gap: 0; margin-bottom: 36px; flex-wrap: wrap; }
.step {
  flex: 1; min-width: 140px; position: relative; padding: 24px 18px;
  background: #fff; border: 1px solid var(--border);
}
.step-num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: Arial, sans-serif; font-size: 13px; font-weight: bold; margin-bottom: 12px;
}
.step h5 { font-size: 14px; color: var(--forest); margin-bottom: 6px; }
.step p { font-family: Arial, sans-serif; font-size: 11.5px; color: var(--text-lt); line-height: 1.6; }

/* Forms */
.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow); max-width: 640px; margin: 0 auto;
}
.form-card h3 { color: var(--forest); font-size: 20px; margin-bottom: 6px; }
.form-card .sub { font-family: Arial, sans-serif; font-size: 12.5px; color: var(--text-lt); margin-bottom: 24px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-family: Arial, sans-serif; font-size: 12px; font-weight: bold; color: var(--text-md); margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px;
  font-family: Arial, sans-serif; font-size: 13px; background: var(--cream);
}
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chip-group { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: Arial, sans-serif; font-size: 12px; padding: 7px 14px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--cream); color: var(--text-md); cursor: pointer;
  user-select: none; transition: all .15s;
}
.chip.sel, .chip.selected { background: var(--sage-lt); border-color: var(--sage); color: var(--forest); font-weight: bold; }
.chip input { display: none; }
.btn-submit {
  width: 100%; background: var(--teal); color: #fff; border: none;
  padding: 14px; border-radius: 6px; font-family: Arial, sans-serif;
  font-size: 14px; font-weight: bold; cursor: pointer; margin-top: 6px;
}
.btn-submit:hover { background: var(--teal-lt); }

/* Wallet */
.wallet-hero {
  background: linear-gradient(135deg, var(--forest), var(--teal)); border-radius: var(--radius-lg);
  padding: 28px 32px; color: #fff; display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 20px;
}
.wallet-hero .name { font-size: 20px; margin-bottom: 4px; }
.wallet-hero .level { font-family: Arial, sans-serif; font-size: 12px; color: var(--gold); letter-spacing: 1px; text-transform: uppercase; }
.wallet-credits { text-align: right; }
.wallet-credits .num { font-size: 38px; font-weight: bold; color: var(--gold); }
.wallet-credits .lbl { font-family: Arial, sans-serif; font-size: 11px; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 1px; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.stat-box .num { font-size: 24px; font-weight: bold; color: var(--forest); }
.stat-box .lbl { font-family: Arial, sans-serif; font-size: 11px; color: var(--text-lt); margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }

.activity-row {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 10px; font-family: Arial, sans-serif; flex-wrap: wrap; gap: 10px;
}
.activity-row .left { display: flex; align-items: center; gap: 14px; }
.activity-row .ic {
  width: 38px; height: 38px; border-radius: 50%; background: var(--sage-lt);
  display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}
.activity-row .title { font-size: 13px; color: var(--text); font-weight: bold; }
.activity-row .meta { font-size: 11px; color: var(--text-lt); }
.activity-row .credit { font-size: 14px; font-weight: bold; color: var(--teal); }
.activity-row .credit.spent { color: var(--amber); }

/* Tables */
.tb-table {
  width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); font-family: Arial, sans-serif; font-size: 12.5px; margin-bottom: 30px;
}
.tb-table th {
  background: var(--forest); color: #fff; text-align: left; padding: 10px 16px;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
}
.tb-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); color: var(--text-md); }
.tb-table tr:last-child td { border-bottom: none; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: bold; }
.badge.l1 { background: #EAF4F1; color: var(--teal); }
.badge.l2 { background: var(--sage-lt); color: var(--forest); }
.badge.l3 { background: var(--amber-lt); color: var(--amber); }
.badge.l4 { background: var(--gold-lt); color: #8a6d00; }
.badge.l5 { background: var(--forest); color: var(--gold); }

/* Match cards */
.match-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow); display: flex; gap: 18px;
  align-items: flex-start; margin-bottom: 18px; flex-wrap: wrap;
}
.avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sage), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff; flex-shrink: 0; font-family: Arial, sans-serif; font-weight: bold;
}
.avatar.amber { background: linear-gradient(135deg, var(--amber), var(--gold)); }
.match-card h4 { color: var(--forest); font-size: 15px; margin-bottom: 4px; }
.match-card p { font-family: Arial, sans-serif; font-size: 12px; color: var(--text-lt); line-height: 1.6; margin-bottom: 8px; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-family: Arial, sans-serif; font-size: 10.5px; background: var(--sage-lt); color: var(--forest); padding: 3px 10px; border-radius: 10px; }
.btn-small {
  font-family: Arial, sans-serif; font-size: 12px; font-weight: bold;
  background: var(--teal); color: #fff; border: none; padding: 9px 18px;
  border-radius: 6px; cursor: pointer; white-space: nowrap;
}
.btn-small.amber { background: var(--amber); }

/* Impact */
.impact-hero { text-align: center; padding: 50px 32px; background: linear-gradient(135deg, var(--forest), var(--teal)); color: #fff; }
.impact-hero h1 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 10px; }
.impact-hero p { font-family: Arial, sans-serif; font-size: 14px; color: rgba(255,255,255,0.85); }
.impact-stats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px; margin: -30px auto 36px; padding: 0 32px; max-width: 1136px;
}
.impact-stat { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 24px; text-align: center; }
.impact-stat .num { font-size: 30px; font-weight: bold; color: var(--teal); }
.impact-stat .lbl { font-family: Arial, sans-serif; font-size: 12px; color: var(--text-lt); margin-top: 6px; }

.bar-chart {
  display: flex; align-items: flex-end; gap: 14px; height: 200px;
  padding: 20px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 30px; overflow-x: auto;
}
.bar-col { flex: 1; min-width: 80px; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.bar {
  width: 100%; background: linear-gradient(180deg, var(--sage), var(--teal));
  border-radius: 6px 6px 0 0; position: relative; display: flex;
  align-items: flex-start; justify-content: center; min-height: 20px;
}
.bar span { font-family: Arial, sans-serif; font-size: 10px; color: #fff; font-weight: bold; padding-top: 6px; }
.bar-lbl { font-family: Arial, sans-serif; font-size: 10px; color: var(--text-lt); text-align: center; margin-top: 6px; }

/* Flash messages */
.flash {
  padding: 14px 20px; border-radius: var(--radius); margin-bottom: 20px;
  font-family: Arial, sans-serif; font-size: 14px; max-width: 1136px; margin-left: auto; margin-right: auto;
}
.flash.success { background: var(--sage-lt); color: var(--forest); border: 1px solid var(--sage); }
.flash.error { background: #FDE8E8; color: var(--error); border: 1px solid #F5C2C7; }

/* Footer */
.site-footer-wrap {
  background: var(--forest);
  color: rgba(255,255,255,0.75);
  margin-top: 40px;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.site-footer-inner {
  max-width: 1136px;
  margin: 0 auto;
  padding: 40px 32px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-col strong { color: #fff; font-size: 15px; display: block; margin-bottom: 10px; }
.footer-col h5 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.footer-col p { line-height: 1.6; margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.75); text-decoration: none; display: block; margin-bottom: 6px; }
.footer-col a:hover { color: #fff; }
.footer-email a { color: var(--gold); }
.footer-org { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 12px; }

.site-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 16px 32px;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

/* Nav dropdowns */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle,
.nav-dropdown.active-link .nav-dropdown-toggle {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  z-index: 300;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text-md) !important;
  font-size: 13px;
  border-radius: 0;
}

.nav-dropdown-menu a:hover {
  background: var(--sage-lt);
  color: var(--forest) !important;
}

/* Section sub-navigation */
.section-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 16px 32px;
  background: var(--sand);
  border-bottom: 1px solid var(--border);
}

.section-subnav a {
  font-family: Arial, sans-serif;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--text-md);
  background: #fff;
  border: 1px solid var(--border);
}

.section-subnav a:hover,
.section-subnav a.active {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

/* Static content pages */
.prose-block {
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-md);
  margin-bottom: 32px;
}

.prose-block h2 { font-family: Georgia, serif; color: var(--forest); font-size: 22px; margin: 28px 0 12px; }
.prose-block h3 { font-family: Georgia, serif; color: var(--forest); font-size: 18px; margin: 24px 0 10px; }
.prose-block p { margin-bottom: 14px; }
.prose-block ul, .prose-block ol { margin: 0 0 16px 20px; }
.prose-block li { margin-bottom: 6px; }

.prose-list { list-style: none; margin-left: 0 !important; }
.prose-list li { padding-left: 18px; position: relative; margin-bottom: 10px; }
.prose-list li::before { content: "›"; position: absolute; left: 0; color: var(--teal); font-weight: bold; }

.resource-list { list-style: none; margin-left: 0 !important; }
.resource-list li { padding: 12px 0; border-bottom: 1px solid var(--border); }

.link-cards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }

.link-card {
  display: block;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: box-shadow .2s, border-color .2s;
}

.link-card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.link-card strong { display: block; color: var(--forest); margin-bottom: 4px; font-size: 14px; }
.link-card span { font-size: 13px; color: var(--text-lt); line-height: 1.5; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 14px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th { background: var(--sand); color: var(--forest); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.data-table tr:last-child td { border-bottom: none; }

.table-scroll { overflow-x: auto; margin-bottom: 24px; }

/* Legacy footer class (unused) */
.site-footer {
  background: var(--forest); color: rgba(255,255,255,0.7);
  padding: 32px; text-align: center; font-family: Arial, sans-serif; font-size: 12px; margin-top: 40px;
}
.site-footer strong { color: #fff; }

/* Page header (non-home pages) */
.page-header {
  background: linear-gradient(135deg, var(--forest), var(--teal));
  padding: 40px 32px; color: #fff; text-align: center;
}
.page-header h1 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 8px; }
.page-header p { font-family: Arial, sans-serif; font-size: 14px; color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto; }

/* Service vertical & blog pages */
.vertical-hero {
  background: linear-gradient(135deg, var(--forest), var(--teal));
  color: #fff;
  padding: 40px 32px 48px;
}

.vertical-hero-sm { padding: 32px 32px 40px; }

.vertical-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.breadcrumb {
  display: inline-block;
  color: rgba(255,255,255,0.8);
  font-family: Arial, sans-serif;
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 20px;
}

.breadcrumb:hover { color: #fff; }

.vertical-hero-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.vertical-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.vertical-hero h1 {
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.2;
  margin-bottom: 6px;
}

.vertical-tagline {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

.vertical-desc {
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
  max-width: 720px;
}

.vertical-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vertical-services .tag {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.section-intro {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: var(--text-lt);
  margin: -12px 0 28px;
  max-width: 640px;
}

.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-whitepaper {
  border-color: var(--forest);
  border-width: 2px;
}

.blog-card-image-link {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
}

.blog-card-image-wrap {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--sage-lt) 0%, var(--sand) 100%);
  overflow: hidden;
  position: relative;
}

.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.blog-card:hover .blog-card-image {
  transform: scale(1.04);
}

.blog-card-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-type-badge {
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.badge-blog {
  background: var(--sage-lt);
  color: var(--forest);
}

.badge-whitepaper {
  background: var(--forest);
  color: var(--gold);
}

.hero-badge {
  margin-bottom: 10px;
}

.blog-read-time {
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: var(--text-lt);
}

.blog-card-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: var(--text-lt);
  margin-bottom: 8px;
}

.blog-card-meta-sub {
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}

.blog-card-title {
  font-size: 17px;
  color: var(--forest);
  margin-bottom: 10px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title a:hover { color: var(--teal); }

.blog-card-excerpt {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: var(--text-md);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.65em;
}

.blog-read-more {
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: var(--teal);
  text-decoration: none;
}

.blog-read-more:hover { text-decoration: underline; }

.blog-card-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
  min-height: 36px;
  border-top: 1px solid var(--border);
}

.blog-doc-spacer {
  display: none;
}

.blog-doc-link {
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: var(--amber);
  text-decoration: none;
}

.blog-doc-link:hover { text-decoration: underline; }

.blog-featured-image-wrap {
  max-width: 960px;
  margin: -20px auto 0;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

.blog-featured-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

.whitepaper-download-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--gold-lt);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
}

.whitepaper-download-bar strong {
  display: block;
  color: var(--forest);
  font-size: 15px;
  margin-bottom: 4px;
}

.whitepaper-download-bar p {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: var(--text-md);
  margin: 0;
}

.blog-post-meta {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-post-body {
  max-width: 760px;
  margin: 0 auto;
}

.blog-post-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-md);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.blog-post-content {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-md);
}

.blog-post-content p { margin-bottom: 16px; }

.blog-post-whitepaper .blog-post-content h2 {
  font-size: 20px;
  color: var(--forest);
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sage-lt);
}

.blog-post-whitepaper .blog-post-content ul {
  font-family: Arial, sans-serif;
  margin: 0 0 16px 20px;
  line-height: 1.8;
  color: var(--text-md);
}

.blog-post-whitepaper .blog-post-lead {
  font-size: 17px;
  font-style: italic;
}

.blog-post-footer {
  max-width: 760px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-family: Arial, sans-serif;
  color: var(--text-lt);
}

/* Responsive */
@media (max-width: 1100px) {
  .nav-links a { font-size: 12px; padding: 8px 9px; }
  .nav-logo-text { font-size: 15px; }
  .btn-wallet { padding: 8px 14px; font-size: 12px; }
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-card-image-wrap {
    height: 180px;
  }

  .blog-card-excerpt {
    min-height: auto;
    -webkit-line-clamp: 4;
  }

  .blog-card-title {
    min-height: auto;
  }
}

@media (max-width: 960px) {
  .nav-inner {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--forest);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 12px 16px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    gap: 4px;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 12px 16px;
    border-radius: 8px;
  }

  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { width: 100%; text-align: left; padding: 12px 16px; }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    background: rgba(0,0,0,0.15);
    margin: 0 8px 8px;
    border-radius: 8px;
    display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { color: rgba(255,255,255,0.85) !important; }
  .nav-dropdown-menu a:hover { background: rgba(255,255,255,0.1); color: #fff !important; }

  .site-footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px 16px 16px; }
  .site-nav { position: relative; }

  .mobile-menu-btn { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    text-align: center;
  }

  .hero-slide-inner {
    padding: 48px 24px 72px;
    text-align: center;
  }

  .hero-slide-inner .hero-btns { justify-content: center; }
  .hero-slide-inner .hero-credit { margin: 0 auto; }
  .hero-nav { width: 36px; height: 36px; font-size: 22px; }
  .hero-prev { left: 8px; }
  .hero-next { right: 8px; }
  .hero-slider, .hero-slides { height: 560px; min-height: 0; }

  .hero-content { text-align: center; }

  .hero p { margin-left: auto; margin-right: auto; }

  .hero-btns { justify-content: center; }

  .hero-credit { margin: 0 auto; }

  .hero-visual { order: -1; }

  .hero-feature-img { max-width: 360px; }

  .hero-banner { min-height: auto; }
}

@media (max-width: 768px) {
  .nav-inner { padding: 8px 16px 0; min-height: 0; }
  .nav-logo-tag { font-size: 10px; }
  .nav-logo-name { font-size: 15px; }
  .movement-grid { grid-template-columns: 1fr; }
  .form-row.two { grid-template-columns: 1fr; }
  .content-wrap { padding: 24px 16px; }
  .hero-inner { padding: 32px 16px; }
  .hero-feature-img { max-width: 100%; }
  .hero-slider, .hero-slides { height: 580px; }
  .site-footer-inner { grid-template-columns: 1fr; }
  .section-subnav { padding: 12px 16px; }
  .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
