:root {
  /* Measured at runtime by syncStickyOffsets() in main.js; these are fallbacks. */
  --site-header-height: 68px;
  --subnav-height: 0px;

  --z-header: 100;
  --z-subnav: 80;

  --navy: #0d1b3e;
  --navy-light: #16295c;
  --orange: #f5871f;
  --green: #2e7d46;
  --blue: #1f6fb2;
  --purple: #6a4c93;
  --amber: #e0791f;
  --teal: #14877b;
  --red: #d1495b;
  --brown: #8a5a2e;

  --ink: #1a1a2e;
  --muted: #5a5f73;
  --bg: #fafafa;
  --card-bg: #ffffff;
  --border: #e6e8f0;

  --radius: 14px;
  --shadow: 0 4px 16px rgba(13, 27, 62, 0.08);
  --shadow-hover: 0 14px 32px rgba(13, 27, 62, 0.16);
}

* { box-sizing: border-box; }

/* --- Accessibility & Focus --- */
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 50%, transparent);
  outline-offset: 3px;
  transition: outline-offset 0.1s ease;
}

/* --- Tactile Active States --- */
.btn:active, .group-card:active, .member-card:active, .offering-card:active, .why-card:active, .mission-card:active, .theme-card:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 8px rgba(13, 27, 62, 0.1);
}

/* --- Global Form Inputs --- */
input[type="text"], input[type="url"], input[type="email"], select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus, input[type="url"]:focus, input[type="email"]:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 20%, transparent);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  font-weight: 700;
  margin: 0 0 0.5em;
}

.brand-mark {
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  font-weight: 700;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cms-page-content {
  min-height: 55vh;
  padding: 4rem 0;
}

.cms-page-content .cms-plugin {
  margin-bottom: 1.5rem;
}

.legal-page {
  min-height: 55vh;
  padding: 4rem 0 5rem;
}

.legal-header {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.legal-kicker {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.legal-header h1 {
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.legal-content {
  max-width: 760px;
}

.legal-content section {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}

.legal-content h2 {
  color: var(--navy);
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content ul {
  padding-left: 1.25rem;
}

.legal-content a {
  color: var(--blue);
  font-weight: 600;
}

a { color: inherit; }

/* ---------- Header ---------- */

.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  min-height: var(--site-header-height);
  padding: 0.85rem 1.5rem;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  line-height: 1;
}

.brand-logo { height: 34px; width: auto; display: block; margin: 0; padding: 0; border: 0; border-radius: 6px; flex-shrink: 0; vertical-align: middle; }
.brand-logo-footer { height: 26px; }

.brand-mark {
  display: inline-block;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0;
}

.brand-mark.small {
  font-size: 1rem;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  line-height: 1;
}

.brand-accent { color: var(--orange); }

.brand-word {
  color: #cfd6ea;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem 0.85rem;
  flex-wrap: wrap;
}

.nav-greeting {
  color: #cfd6ea;
  font-size: 0.9rem;
}

.nav-link {
  color: #cfd6ea;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.nav-link:hover { color: #fff; }

/* ---------- Nav toggle (hamburger, <=1300px) ---------- */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1300px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: var(--navy);
    padding: 0.5rem 1.5rem 1rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  }

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

  .nav-links .nav-link,
  .nav-links .nav-greeting-link {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links .btn,
  .nav-links form { margin: 0.6rem 0 0; align-self: flex-start; }

  .site-header nav { position: relative; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-lg { padding: 0.85rem 1.9rem; font-size: 1.02rem; }

.btn-solid {
  background: linear-gradient(135deg, var(--orange), #ff9d3d);
  color: #fff;
  box-shadow: 0 6px 18px rgba(245, 135, 31, 0.35);
}

.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(245, 135, 31, 0.45); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}

.btn-outline-dark:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(245, 135, 31, 0.35), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(31, 111, 178, 0.35), transparent 40%),
    linear-gradient(160deg, var(--navy), var(--navy-light) 60%, #1c2f66);
  background-size: 130% 130%;
  color: #fff;
  padding: 5rem 0 4.5rem;
  animation: heroGradient 16s ease-in-out infinite alternate;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  text-align: left;
}

.hero-inner { animation: fadeInUp 0.7s ease both; }

@keyframes heroGradient {
  from { background-position: 0% 0%; }
  to { background-position: 100% 100%; }
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
  animation: floatBlob 9s ease-in-out infinite;
  pointer-events: none;
}

.blob-orange {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--orange), transparent 70%);
  top: -80px;
  left: -80px;
}

.blob-blue {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--blue), transparent 70%);
  bottom: -140px;
  right: -100px;
  animation-delay: 2s;
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.08); }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.15;
  color: #fff;
  max-width: 740px;
}

.text-gradient {
  background: linear-gradient(90deg, var(--orange), #ffce7a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-pillars-line {
  font-size: 1.05rem;
  color: #d7deef;
  margin: 1.2rem 0 2rem;
}

.hero-pillars-line .dot { margin: 0 0.5rem; color: var(--orange); }

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Hero network graphic ---------- */

.hero-graphic {
  display: flex;
  justify-content: center;
  animation: fadeInUp 0.9s ease both;
  animation-delay: 0.15s;
}

.network-svg { width: 100%; max-width: 380px; height: auto; }

.network-lines line {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 6 6;
  animation: dashFlow 6s linear infinite;
}

@keyframes dashFlow {
  to { stroke-dashoffset: -120; }
}

.node {
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 2;
}

.node-core { fill: var(--orange); animation: pulseNode 2.6s ease-in-out infinite; }
.node-a { fill: var(--green); }
.node-b { fill: var(--blue); }
.node-c { fill: var(--purple); }
.node-d { fill: var(--teal); }
.node-e { fill: var(--red); }
.node-f { fill: #ffce7a; }

.network-nodes .node:not(.node-core) { animation: floatNode 4s ease-in-out infinite; }
.network-nodes .node-b { animation-delay: 0.5s; }
.network-nodes .node-c { animation-delay: 1s; }
.network-nodes .node-d { animation-delay: 1.5s; }
.network-nodes .node-e { animation-delay: 2s; }
.network-nodes .node-f { animation-delay: 2.5s; }

@keyframes pulseNode {
  0%, 100% { r: 22; opacity: 1; }
  50% { r: 26; opacity: 0.85; }
}

@keyframes floatNode {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- Wave divider ---------- */

.wave-divider {
  position: relative;
  line-height: 0;
  margin-top: -2px;
}

.wave-divider svg { width: 100%; height: 50px; display: block; }
.wave-divider path { fill: var(--bg); }

/* ---------- Section labels ---------- */

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-label.light { color: #9fb0d9; }

section > .container > h2 {
  text-align: center;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

/* ---------- Scroll reveal ---------- */

/* Scoped to .js so content is never hidden when JS fails to run. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Who we serve ---------- */

.who-we-serve { padding: 3rem 0 1rem; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.chip {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.chip-dark {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ---------- Stats band ---------- */

.stats-band {
  background: linear-gradient(135deg, var(--navy), #1c2f66 70%, var(--purple));
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-card { display: flex; flex-direction: column; gap: 0.3rem; }

.stat-number {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  background: linear-gradient(90deg, var(--orange), #ffce7a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  color: #cfd6ea;
  font-size: 0.9rem;
  font-weight: 600;
}

.stats-footnote {
  margin: 2rem 0 0;
  color: #9fb0d9;
  font-size: 0.85rem;
}

/* ---------- How it works ---------- */

.how-it-works { padding: 3rem 0 4rem; }

.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.step {
  flex: 1 1 220px;
  max-width: 260px;
  text-align: center;
}

.step h3 { font-size: 1.05rem; color: var(--navy); }
.step p { color: var(--muted); font-size: 0.9rem; }

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.step-1 { background: linear-gradient(135deg, var(--green), #4fb571); }
.step-2 { background: linear-gradient(135deg, var(--blue), #4a9fe0); }
.step-3 { background: linear-gradient(135deg, var(--orange), #ff9d3d); }

.step-arrow {
  align-self: center;
  font-size: 1.6rem;
  color: var(--border);
  margin-top: 0.5rem;
}

@media (max-width: 780px) {
  .step-arrow { display: none; }
}

/* ---------- Sub-nav (scroll-spy) ---------- */

.subnav {
  position: sticky;
  top: calc(var(--site-header-height) + 0.65rem);
  z-index: var(--z-subnav);
  width: min(1120px, calc(100% - 3rem));
  margin: 0.9rem auto 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(13, 27, 62, 0.09);
}

.subnav-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.subnav-label {
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.subnav-links {
  display: flex;
  justify-content: flex-end;
  gap: 0.3rem;
  overflow-x: auto;
  padding: 0.15rem;
  scrollbar-width: none;
}

.subnav-links::-webkit-scrollbar { display: none; }

.subnav a {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  white-space: nowrap;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1;
  padding: 0.58rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.subnav a span {
  color: color-mix(in srgb, var(--muted) 70%, transparent);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.subnav a:hover { color: var(--navy); background: var(--bg); }

.subnav a.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.subnav a.active span { color: #ffce7a; }

@media (max-width: 800px) {
  .subnav-inner { gap: 0.9rem; }
  .subnav-links { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .subnav {
    width: calc(100% - 2rem);
    margin-top: 0.65rem;
  }

  .subnav-inner { gap: 0.65rem; padding-right: 0.4rem; padding-left: 0.7rem; }
  .subnav-label { font-size: 0.63rem; }
  .subnav a { padding: 0.56rem 0.64rem; }
}

/* ---------- Pillar detail page ---------- */

.pillar-hero {
  background: linear-gradient(150deg, var(--accent), var(--navy) 75%);
  color: #fff;
  padding: 3rem 0 3.5rem;
  text-align: center;
}

.pillar-hero-inner { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }

.pillar-hero .back-link {
  align-self: flex-start;
  color: #e4e9f7;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.pillar-hero .back-link:hover { text-decoration: underline; }

.pillar-hero-icon { font-size: 2.6rem; }

.pillar-hero h1 { color: #fff; margin-bottom: 0.3rem; }

.pillar-hero-tagline { color: #f0f2fb; max-width: 480px; }

.pillar-body { padding: 3rem 0 4rem; }

.pillar-summary {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 1.02rem;
}

.pillar-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  margin-bottom: 3rem;
}

.pillar-item-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
}

.flow-heading { text-align: center; font-size: 1.3rem; margin-bottom: 2rem; }

.flow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.flow-step { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }

.flow-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.flow-label { font-weight: 600; font-size: 0.9rem; }

.flow-arrow { color: var(--border); font-size: 1.4rem; }

.live-data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.live-data-col {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.live-data-col h3 { font-size: 1rem; color: var(--navy); }

.live-list { list-style: none; margin: 0; padding: 0; }

.live-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.live-list li:last-child { border-bottom: none; }

.live-list li strong { min-width: 0; overflow-wrap: anywhere; }

.live-list li span { color: var(--muted); font-size: 0.82rem; min-width: 0; overflow-wrap: anywhere; }

.live-empty { color: var(--muted); font-size: 0.9rem; }

.pillar-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Pillar journey stage headings ---------- */

/* Keep anchor targets clear of the sticky header and sub-nav. */
section[id],
h2[id],
h3[id] {
  scroll-margin-top: calc(var(--site-header-height) + var(--subnav-height) + 1rem);
}

.journey-stage-heading { text-align: center; font-size: 1.6rem; margin-bottom: 0.3rem; }
.journey-stage-sub { text-align: center; color: var(--muted); margin-bottom: 2rem; }

/* ---------- Ecosystem map (radial hub diagram) ---------- */

.ecosystem-map {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(31, 111, 178, 0.06), transparent 60%);
}

.map-sub { color: var(--muted); margin-bottom: 1rem; }

.hub-wrap {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1 / 1;
  margin: 2.5rem auto 1.5rem;
}

.hub-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hub-lines line {
  stroke: var(--border);
  stroke-width: 0.4;
  stroke-dasharray: 1.6 1.6;
  animation: dashFlow 8s linear infinite;
}

.hub-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #f2f4fa 70%);
  border: 2px solid var(--border);
  box-shadow: 0 10px 30px rgba(13, 27, 62, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.5rem;
  text-align: center;
}

.hub-center-mark {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--navy);
}

.hub-center-mark .brand-accent { color: var(--orange); }

.hub-center-label {
  font-size: clamp(0.55rem, 1.4vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hub-center-sub {
  font-size: clamp(0.45rem, 1.1vw, 0.62rem);
  color: var(--muted);
  max-width: 90%;
  line-height: 1.2;
}

.hub-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: 19%;
  min-width: 64px;
  padding: 0.5rem 0.35rem;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: clamp(0.6rem, 1.4vw, 0.72rem);
  text-align: center;
  line-height: 1.15;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hub-node::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 18px;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: hubPing 3.4s ease-out infinite;
  pointer-events: none;
}

.hub-node:nth-child(2)::after { animation-delay: 0.3s; }
.hub-node:nth-child(3)::after { animation-delay: 0.6s; }
.hub-node:nth-child(4)::after { animation-delay: 0.9s; }
.hub-node:nth-child(5)::after { animation-delay: 1.2s; }
.hub-node:nth-child(6)::after { animation-delay: 1.5s; }
.hub-node:nth-child(7)::after { animation-delay: 1.8s; }

.hub-node:hover {
  transform: translate(-50%, -50%) translateY(-4px) scale(1.06);
  box-shadow: 0 14px 28px color-mix(in srgb, var(--accent) 30%, transparent);
  z-index: 2;
}

.hub-node-icon { font-size: clamp(1rem, 2.4vw, 1.3rem); }

/* Seven evenly-spaced points around the hub, starting at 12 o'clock. */
.hub-node:nth-of-type(1) { top: 8%; left: 50%; }
.hub-node:nth-of-type(2) { top: 23.8%; left: 82.8%; }
.hub-node:nth-of-type(3) { top: 59.4%; left: 91%; }
.hub-node:nth-of-type(4) { top: 87.8%; left: 68.2%; }
.hub-node:nth-of-type(5) { top: 87.8%; left: 31.8%; }
.hub-node:nth-of-type(6) { top: 59.4%; left: 9%; }
.hub-node:nth-of-type(7) { top: 23.8%; left: 17.2%; }

@keyframes hubPing {
  0% { transform: scale(0.92); opacity: 0.55; }
  80% { transform: scale(1.35); opacity: 0; }
  100% { opacity: 0; }
}

.map-footnote { margin-top: 1rem; color: var(--muted); font-size: 0.88rem; }

@media (max-width: 560px) {
  .hub-wrap { max-width: 420px; }
  .hub-node { min-width: 52px; padding: 0.4rem 0.25rem; }
}

/* ---------- Why section ---------- */

.why-band { padding: 1rem 0 3.5rem; text-align: center; }

.why-lead {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.why-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.why-icon { font-size: 1.8rem; display: block; margin-bottom: 0.6rem; }

.why-card h3 { font-size: 1.02rem; color: var(--navy); }

.why-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- Mission band ---------- */

.mission-band { padding: 1rem 0 3.5rem; text-align: center; }

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.mission-card {
  background: linear-gradient(160deg, #fff, #f5f7fc);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mission-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.mission-icon { font-size: 1.7rem; display: block; margin-bottom: 0.5rem; }

.mission-card strong { display: block; color: var(--navy); font-size: 0.95rem; margin-bottom: 0.25rem; }

.mission-card span { color: var(--muted); font-size: 0.82rem; }

/* ---------- Reach band ---------- */

.reach-band { padding: 1rem 0 3.5rem; text-align: center; }

.reach-cta-line { margin-top: 0.5rem; }

.reach-cta-line a { color: var(--blue); font-weight: 700; text-decoration: none; }

.reach-cta-line a:hover { text-decoration: underline; }

.reach-cta-line-secondary { color: var(--muted); font-size: 0.88rem; margin-top: 0.75rem; }
.reach-cta-line-secondary a { color: var(--orange); }

/* ---------- FAQ ---------- */

.faq { padding: 1rem 0 4rem; }

.faq-list {
  max-width: 720px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--blue);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.92rem; }

/* ---------- Ecosystem band ---------- */

.ecosystem-band {
  background: linear-gradient(120deg, #e9f7ee, #eef6fb);
  padding: 3rem 0;
  margin: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.ecosystem-sub { color: var(--muted); max-width: 560px; margin: 0 auto 1.5rem; }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.pill {
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--green);
  box-shadow: var(--shadow);
}

/* ---------- Pillars grid ---------- */

.pillars { padding: 2rem 0 4rem; }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.pillar-card {
  position: relative;
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 5px solid var(--accent, var(--navy));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fadeInUp 0.6s ease both;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px color-mix(in srgb, var(--accent) 25%, transparent);
}

.pillar-grid .pillar-card:nth-child(1) { animation-delay: 0.05s; }
.pillar-grid .pillar-card:nth-child(2) { animation-delay: 0.1s; }
.pillar-grid .pillar-card:nth-child(3) { animation-delay: 0.15s; }
.pillar-grid .pillar-card:nth-child(4) { animation-delay: 0.2s; }
.pillar-grid .pillar-card:nth-child(5) { animation-delay: 0.25s; }
.pillar-grid .pillar-card:nth-child(6) { animation-delay: 0.3s; }
.pillar-grid .pillar-card:nth-child(7) { animation-delay: 0.35s; }

.pillar-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  background: color-mix(in srgb, var(--accent) 18%, white);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, white);
  transition: transform 0.2s ease;
}

.pillar-card:hover .pillar-icon-badge { transform: scale(1.08) rotate(-4deg); }

.pillar-card h3 { color: var(--navy); font-size: 1.1rem; }

.pillar-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.pillar-card li { margin-bottom: 0.3rem; }

.pillar-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: color-mix(in srgb, var(--accent) 15%, white);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.pillar-card-cta {
  display: block;
  margin-top: 0.9rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pillar-card:hover .pillar-card-cta { opacity: 1; transform: translateY(0); }

.pillars-link, .ecosystem-link {
  text-align: center;
  margin: -1rem 0 0;
}

.pillars-link a, .ecosystem-link a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
}

.pillars-link a:hover, .ecosystem-link a:hover { text-decoration: underline; }

.ecosystem-link { margin-top: 1.5rem; }

/* ---------- Outcomes ---------- */

.outcomes { padding: 1rem 0 3rem; }

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.outcome {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent, var(--navy));
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  font-weight: 600;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.outcome:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px color-mix(in srgb, var(--accent) 22%, transparent);
}

.outcome-1 { --accent: var(--green); }
.outcome-2 { --accent: var(--blue); }
.outcome-3 { --accent: var(--amber); }
.outcome-4 { --accent: var(--purple); }
.outcome-5 { --accent: var(--red); }

.outcome-icon { font-size: 1.8rem; }

/* ---------- Enablers ---------- */

.enablers {
  background: var(--navy);
  padding: 3.5rem 0;
  margin: 3rem 0;
}

.enabler-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.enabler {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.enabler:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.12); }

.enabler-icon { font-size: 1.6rem; }

.enabler-1 { border-top: 3px solid var(--green); }
.enabler-2 { border-top: 3px solid var(--blue); }
.enabler-3 { border-top: 3px solid var(--purple); }
.enabler-4 { border-top: 3px solid var(--amber); }
.enabler-5 { border-top: 3px solid var(--teal); }
.enabler-6 { border-top: 3px solid var(--red); }

/* ---------- Technology foundation ---------- */

.tech-foundation { padding: 3rem 0 1rem; }

.tech-foundation .chip { background: #eef2fb; }

/* ---------- Values ---------- */

.values { padding: 1rem 0 4rem; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem;
  margin-top: 2rem;
}

.value {
  background: linear-gradient(135deg, #fff, #f5f7fc);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-weight: 600;
  font-size: 0.92rem;
}

/* ---------- Final CTA ---------- */

.final-cta {
  background: linear-gradient(135deg, var(--orange), #ff6a3d);
  color: #fff;
  text-align: center;
  padding: 3.5rem 0;
}

.final-cta h2 { color: #fff; margin-bottom: 1.5rem; }

.final-cta .btn-solid {
  background: #fff;
  color: var(--orange);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.final-cta .btn-solid:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #cfd6ea;
  margin-top: 2rem;
}

.footer-banner {
  text-align: center;
  padding: 2.5rem 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-tagline { color: #fff; font-weight: 700; font-size: 1.1rem; margin: 0 0 0.4rem; }

.footer-subtagline { margin: 0; color: var(--orange); font-weight: 600; }

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem 2rem;
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  gap: 1rem;
}

.footer-legal a {
  color: #cfd6ea;
  text-decoration: none;
}

.footer-legal a:hover {
  color: #fff;
}

/* ---------- Auth pages / forms ---------- */

.auth-card {
  max-width: 420px;
  margin: 3rem auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  text-align: center;
  color: var(--navy);
  font-size: 1.5rem;
}

.auth-card form p { margin: 0 0 1rem; }

.auth-card label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.3rem; }

.auth-card input,
.auth-card select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}

.auth-card input:focus,
.auth-card select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 111, 178, 0.15);
}

.auth-card .helptext, .auth-card ul.errorlist {
  font-size: 0.78rem;
  color: var(--muted);
  padding-left: 1rem;
}

.auth-card ul.errorlist { color: var(--red); list-style: none; padding-left: 0; }

.auth-card button[type="submit"] {
  width: 100%;
  margin-top: 0.5rem;
}

.auth-card input[type="file"] {
  border: 1px dashed var(--border);
  background: #fafbff;
  padding: 0.5rem;
  font-size: 0.85rem;
}

/* ---------- Profile / avatars / role badges ---------- */

.profile-card { max-width: 520px; }

.portal-card { max-width: 600px; }

.portal-branding {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.portal-branding img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 5px rgba(13, 27, 62, 0.16);
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.profile-card-header h1 { text-align: left; margin-bottom: 0.2rem; }

.profile-card-sub { color: var(--muted); font-size: 0.85rem; margin: 0; }

.portal-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: -0.25rem 0 1.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.portal-google-mark {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
  font-weight: 800;
}

.portal-status {
  margin-left: auto;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.portal-status-not_submitted { background: #f1f3f5; color: #596275; }
.portal-status-pending { background: #fff1d9; color: #9a5700; }
.portal-status-verified { background: #dff5e7; color: #1e7040; }

.portal-intro { margin-bottom: 1.25rem; }
.portal-intro h2 { margin-bottom: 0.25rem; color: var(--navy); font-size: 1.05rem; }
.portal-intro p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.profile-card-footer { text-align: center; margin-top: 1.25rem; }

.profile-card-footer a { color: var(--blue); font-weight: 600; text-decoration: none; font-size: 0.9rem; }

.profile-card-footer a:hover { text-decoration: underline; }

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.profile-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
}

.profile-avatar-lg {
  width: 96px;
  height: 96px;
  font-size: 2.2rem;
  border-color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

.nav-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 0.35rem;
}

.nav-greeting-link { display: inline-flex; align-items: center; }

.role-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.role-student { background: color-mix(in srgb, var(--blue) 16%, white); color: var(--blue); }
.role-professional { background: color-mix(in srgb, var(--green) 16%, white); color: var(--green); }
.role-entrepreneur { background: color-mix(in srgb, var(--orange) 16%, white); color: var(--orange); }
.role-mentor { background: color-mix(in srgb, var(--purple) 16%, white); color: var(--purple); }
.role-org_rep { background: color-mix(in srgb, var(--teal) 16%, white); color: var(--teal); }

/* Group membership roles (distinct from the user-profile roles above). */
.role-member { background: color-mix(in srgb, var(--muted) 14%, white); color: var(--muted); }
.role-coordinator { background: color-mix(in srgb, var(--orange) 16%, white); color: var(--orange); }

/* Self-reported journey phase (distinct from both role systems above). */
.phase-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.phase-entry { background: color-mix(in srgb, var(--blue) 16%, white); color: var(--blue); }
.phase-active { background: color-mix(in srgb, var(--green) 16%, white); color: var(--green); }
.phase-transitioning { background: color-mix(in srgb, var(--amber) 16%, white); color: var(--amber); }
.phase-exited { background: color-mix(in srgb, var(--muted) 14%, white); color: var(--muted); }

/* ---------- Community directory ---------- */

.directory { padding: 3rem 0 4rem; }

.role-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.role-filter {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.role-filter:hover { border-color: var(--blue); color: var(--blue); }

.role-filter.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.member-card strong { color: var(--navy); font-size: 1rem; margin-top: 0.4rem; }

.member-headline { color: var(--muted); font-size: 0.82rem; }

.member-org { color: var(--muted); font-size: 0.78rem; }

.member-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 1.6rem;
}

/* ---------- Community groups ---------- */

.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
}

.group-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.group-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.group-card strong { color: var(--navy); font-size: 1.05rem; margin-top: 0.3rem; }
.group-location { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.group-meta { color: var(--muted); font-size: 0.78rem; }
.group-meta em { color: var(--blue); font-style: normal; }

.group-scope-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.group-scope-town { background: color-mix(in srgb, var(--blue) 16%, white); color: var(--blue); }
.group-scope-state { background: color-mix(in srgb, var(--purple) 16%, white); color: var(--purple); }
.group-scope-national { background: color-mix(in srgb, var(--navy) 14%, white); color: var(--navy); }
.group-scope-cross_border { background: color-mix(in srgb, var(--orange) 16%, white); color: var(--orange); }

.group-breadcrumb {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.group-breadcrumb a { color: var(--blue); text-decoration: none; font-weight: 600; }
.group-breadcrumb a:hover { text-decoration: underline; }

.group-join-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  margin: 1.5rem 0 2.5rem;
}

.group-join-row form { display: inline; }

.group-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.group-link-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}

.group-link-badge:hover { transform: translateY(-2px); }

.group-links-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0 0 1.5rem;
}

/* ---------- Journey tracking (goals, phase, check-ins) ---------- */

.journey-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.journey-goal-form,
.journey-checkin-form,
.coordinator-edit-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.journey-goal-form .estimator-field,
.journey-checkin-form .estimator-field,
.coordinator-edit-form .estimator-field {
  flex: 1 1 200px;
}

.journey-goal-form input,
.journey-checkin-form input,
.coordinator-edit-form input,
.journey-goal-form select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
}

.checkin-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.checkin-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.checkin-date { color: var(--muted); font-weight: 700; font-size: 0.78rem; white-space: nowrap; }

.checkin-list a { color: var(--blue); text-decoration: none; font-weight: 600; }
.checkin-list a:hover { text-decoration: underline; }

.journey-coordinator-panel { margin: 0 0 2rem; }

/* ---------- Offerings hub ---------- */

.pillars-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff;
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.eyebrow-dark {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pillars-hero h1 { color: #fff; }

.pillars-hero-sub { color: #cfd6ea; }

.offerings { padding: 3rem 0 4rem; }

.offering-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.offering-card {
  position: relative;
  display: block;
  height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  border-top: 5px solid var(--accent);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.offering-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px color-mix(in srgb, var(--accent) 28%, transparent);
}

.offering-face {
  position: relative;
  height: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 0.4rem;
}

.offering-face h3 { color: var(--navy); font-size: 1.05rem; }
.offering-face p { color: var(--muted); font-size: 0.85rem; margin: 0; }

.offering-icon { font-size: 2.2rem; }

.offering-status {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.status-live { background: color-mix(in srgb, var(--green) 18%, white); color: var(--green); }
.status-roadmap { background: color-mix(in srgb, var(--accent, var(--muted)) 15%, white); color: var(--accent, var(--muted)); }

.offering-panel {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--accent), var(--navy));
  color: #fff;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.offering-card:hover .offering-panel { transform: translateY(0); }

.offering-panel ul { margin: 0; padding-left: 1.1rem; font-size: 0.85rem; }
.offering-panel li { margin-bottom: 0.3rem; }

.offering-cta { font-weight: 700; font-size: 0.85rem; }

/* ---------- Pillar detail page ---------- */

.pillar-hero {
  background: linear-gradient(150deg, var(--accent), var(--navy) 75%);
  color: #fff;
  padding: 3rem 0 3.5rem;
  text-align: center;
}

.pillar-hero-inner { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }

.back-link {
  align-self: flex-start;
  color: #e4e9f7;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.back-link:hover { text-decoration: underline; }

.pillar-hero-icon { font-size: 2.6rem; }

.pillar-hero h1 { color: #fff; margin-bottom: 0.3rem; }

.pillar-hero-tagline { color: #f0f2fb; max-width: 480px; }

.pillar-body { padding: 3rem 0 4rem; }

.pillar-summary {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 1.02rem;
}

.pillar-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  margin-bottom: 3rem;
}

.pillar-item-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
}

.flow-heading { text-align: center; font-size: 1.3rem; margin-bottom: 2rem; }

.flow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.flow-step { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }

.flow-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.flow-label { font-weight: 600; font-size: 0.9rem; }

/* ---------- Upcoming event banner (homepage) ---------- */

.nav-link-hot { position: relative; }

.nav-link-hot::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: hubPing 2.2s ease-out infinite;
}

.upcoming-event {
  background: linear-gradient(120deg, #b3231a, var(--orange) 70%);
  color: #fff;
  padding: 2.5rem 0;
}

.upcoming-event-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.upcoming-event-heading { max-width: 640px; }

.upcoming-event-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.upcoming-event-heading h2 { color: #fff; margin-bottom: 0.6rem; }

.upcoming-event-heading p { margin: 0; color: #fff2ea; }

.upcoming-event-calendar-btn {
  flex-shrink: 0;
  border-color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

/* ---------- Event roster (homepage + Navatarotsav hub) ---------- */

.event-roster-section { padding: 3rem 0 4rem; }

.event-roster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.event-roster-card {
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.event-roster-live {
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.event-roster-live:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24); }

.event-roster-light .event-roster-live { color: var(--ink); }

.event-roster-tag {
  align-self: flex-start;
  background: color-mix(in srgb, var(--green) 15%, white);
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.event-roster-card strong { font-size: 1rem; color: var(--navy); }

.event-roster-prize { font-weight: 700; color: var(--orange); }

.event-roster-link { font-weight: 700; color: var(--blue); font-size: 0.88rem; margin-top: 0.3rem; }

.event-roster-placeholder {
  border: 2px dashed rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.85);
  justify-content: center;
  text-align: center;
}

.event-roster-placeholder strong { color: #fff; }

.event-roster-section .event-roster-placeholder {
  border-color: var(--border);
  color: var(--muted);
}

.event-roster-section .event-roster-placeholder strong { color: var(--navy); }

.event-schedule-section { padding: 1rem 0 4rem; }

.schedule-programme-link { color: var(--orange); font-weight: 700; text-decoration: none; }
.schedule-programme-link:hover { text-decoration: underline; }

.schedule-chairmen { color: var(--muted); font-size: 0.8rem; min-width: 260px; }

/* ---------- Navatarotsav / event detail page ---------- */

.event-feature { padding: 3rem 0 4rem; }

.event-feature-head { text-align: center; margin-bottom: 2.5rem; }

.event-feature-head h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }

.event-subtitle { color: var(--muted); font-weight: 500; }

.event-status-badge {
  display: inline-block;
  background: color-mix(in srgb, var(--orange) 15%, white);
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.event-tagline {
  font-style: italic;
  color: var(--orange);
  font-weight: 700;
  font-size: 1.1rem;
}

.event-summary {
  max-width: 700px;
  margin: 0.75rem auto 0;
  color: var(--muted);
}

.event-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto 2rem;
}

.event-meta-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.event-meta-label {
  display: block;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.event-meta-value { font-weight: 700; color: var(--navy); }

.event-meta-prize { border-top: 3px solid var(--orange); }
.event-meta-prize .event-meta-value { color: var(--orange); }

.event-register-row {
  text-align: center;
  margin-bottom: 3rem;
}

.event-register-row-bottom { margin-top: 3rem; margin-bottom: 0; }

.event-register-hint {
  display: block;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.event-partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.event-partner {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: center;
}

.event-partner span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.event-partner strong { color: var(--navy); font-size: 0.92rem; }

.event-section-heading { text-align: center; font-size: 1.25rem; margin: 2.5rem 0 0.5rem; }

.event-section-sub { text-align: center; color: var(--muted); font-size: 0.88rem; max-width: 560px; margin: 0 auto 1.5rem; }

.event-flow-line { text-align: center; color: var(--muted); font-size: 0.88rem; margin: 0.5rem 0 2.5rem; }

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 3rem;
}

.theme-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.theme-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.theme-icon { font-size: 1.6rem; }

.theme-card strong { color: var(--navy); font-size: 0.92rem; }
.theme-card span { color: var(--muted); font-size: 0.8rem; }

.schedule-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 560px;
}

.schedule-table th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.schedule-table td {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

.schedule-table tr:nth-child(even) td { background: #fafbff; }

.schedule-table td:first-child { font-weight: 700; color: var(--navy); white-space: nowrap; }
.schedule-table td:nth-child(2) { font-weight: 600; }
.schedule-table td:nth-child(3) { color: var(--muted); }

.event-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 1rem;
}

.event-list { margin: 0; padding-left: 1.2rem; color: var(--muted); font-size: 0.92rem; }
.event-list li { margin-bottom: 0.4rem; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem;
  margin: 1.5rem 0;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: center;
}

.contact-card strong { color: var(--navy); font-size: 0.88rem; }
.contact-card span { color: var(--muted); font-size: 0.76rem; }

.contact-phone {
  display: inline-block;
  margin-top: 0.2rem;
  font-weight: 700;
  color: var(--blue) !important;
  text-decoration: none;
}

.contact-phone:hover { text-decoration: underline; }

.chairman-entry a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.chairman-entry a:hover { text-decoration: underline; }

/* ---------- Navatarotsav festive branding ---------- */

.yuva-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 3.5rem 0 3rem;
  background:
    radial-gradient(circle at 12% 15%, rgba(211, 47, 47, 0.35), transparent 45%),
    radial-gradient(circle at 88% 10%, rgba(123, 31, 162, 0.35), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(21, 101, 192, 0.3), transparent 50%),
    linear-gradient(135deg, var(--navy), #2b1a4a 60%, #1a1a3e);
  color: #fff;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.03) 10px, rgba(255, 255, 255, 0.03) 20px);
  opacity: 0.5;
  pointer-events: none;
}

.back-to-home {
  text-align: left;
  margin-bottom: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #a8d5ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap 0.3s ease;
}

.back-link:hover {
  gap: 1rem;
  color: #ffce7a;
}

.yuva-hero-content {
  position: relative;
  z-index: 1;
}

.yuva-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffce7a;
  margin-bottom: 0.75rem;
}

.yuva-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
}

.yuva-word { display: inline-block; }

.yuva-word-1 {
  background: linear-gradient(90deg, #ff7a59, #ffce54, #7ee787, #5ac8fa, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.yuva-word-2 { color: var(--orange); text-shadow: 0 0 24px rgba(245, 135, 31, 0.5); }
.yuva-word-3 { color: #5ac8fa; text-shadow: 0 0 24px rgba(90, 200, 250, 0.5); }

.yuva-tagline {
  font-size: 1.3rem;
  color: #ffce7a;
  font-weight: 600;
  margin-bottom: 1rem;
}

.yuva-hero-sub {
  max-width: 620px;
  margin: 0 auto 1.75rem;
  color: #e4e6f7;
}

.hero-sponsors {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.sponsor-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.sponsor-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.sponsor-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  padding: 2px;
}

.sponsor-logo-queens {
  border-radius: 5px;
  object-fit: contain;
}

/* ========================================
   FEATURED EVENT SECTION
   ======================================== */

.featured-event-section {
  padding: 4rem 1.5rem;
  background: #f8f9fc;
}

.section-heading {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--purple), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.featured-event-card {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 2px solid rgba(106, 76, 147, 0.2);
  transition: all 0.3s ease;
}

.featured-event-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border-color: var(--purple);
}

.featured-event-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--orange), #fdc830);
  color: white;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1.5rem 1.5rem 0;
  border-radius: 8px;
}

.featured-event-header {
  padding: 1.5rem 1.5rem 0;
}

.featured-event-title {
  font-size: 2.5rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, var(--purple), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.featured-event-subtitle {
  font-size: 1.3rem;
  color: var(--purple);
  font-weight: 600;
  margin: 0.5rem 0;
}

.featured-event-tagline {
  font-size: 1.1rem;
  color: var(--orange);
  font-style: italic;
  font-weight: 500;
  margin: 0.75rem 0 0;
}

.featured-event-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 1.5rem;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.detail-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.detail-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.detail-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.detail-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
}

.featured-event-action {
  padding: 2rem 1.5rem;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--orange));
  color: white;
  box-shadow: 0 8px 20px rgba(106, 76, 147, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(106, 76, 147, 0.4);
}

.btn-large {
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
}

.brand-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.brand-badge-rotary { background: rgba(23, 69, 143, 0.55); border-color: #f7a81b; }
.brand-badge-c2c { background: rgba(245, 135, 31, 0.25); border-color: var(--orange); }
.brand-badge-hospital { background: rgba(20, 135, 123, 0.35); border-color: var(--teal); }
.brand-badge-sitam { background: rgba(106, 76, 147, 0.4); border-color: var(--purple); }

.event-feature .brand-strip { margin-bottom: 2rem; }

/* Full-bleed banner strip: spans the entire page width, edge to edge,
   independent of `.container`'s max-width. Built from the real, individual
   logo files extracted from the official promotional poster — each image
   is untouched pixel data, only its display HEIGHT is set here (width
   left to `auto`) so proportions are never distorted. */
.yuva-banner-strip {
  width: 100%;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 2.25rem;
}

.yuva-banner-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 3.5rem;
  max-width: 1500px;
  margin: 0 auto;
  padding: 1.75rem 2rem 1.25rem;
}

.yuva-logo { height: 66px; width: auto; display: block; }
.yuva-logo-yuva { height: 50px; }
.yuva-logo-hospital { height: 58px; }

/* Second row: the emblem/tagline marks, visually separated from the
   primary Rotary/Hospital/Navatarotsav/YUVA row by a thin rule and
   generous gaps so seven logos never read as crowded together. */
.yuva-banner-row-secondary {
  padding: 1.25rem 2rem 1.75rem;
  border-top: 1px solid var(--border);
  gap: 2rem 4rem;
}

.yuva-banner-row-secondary .yuva-logo { height: 56px; }

.yuva-banner-row-sm { padding: 1rem 1.25rem; gap: 1rem 1.75rem; }
.yuva-banner-row-sm .yuva-logo { height: 42px; }

.brand-badge-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 1rem 0.3rem 0.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  background: rgba(106, 76, 147, 0.4);
  border: 1px solid var(--purple);
  color: #fff;
}

.brand-badge-logo img { height: 26px; width: auto; border-radius: 4px; display: block; }

.event-partner-name {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.event-partner-name img { height: 28px; width: auto; }

/* Bigger, dedicated showcase for the venue/community partners — separate
   from the compact attribution grid above, with generous spacing so two
   logos never feel cramped together. */
.venue-partner-showcase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 3rem;
  margin: 0 0 3rem;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.venue-partner-item { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }

.venue-partner-label {
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.venue-partner-logo { height: 72px; width: auto; display: block; }
.venue-partner-logo-sitam { height: 110px; }

/* Smaller, framed variant used on individual event pages (inside .container). */
.yuva-banner-frame {
  max-width: 720px;
  margin: 0 auto 1.75rem;
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1.25rem 0.5rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.yuva-banner-frame-sm { max-width: 560px; }

/* ---------- Schedule table: category color-coding & details column ---------- */

.category-row td:first-child { border-left: 4px solid var(--accent, var(--orange)); }

.schedule-programme-icon { margin-right: 0.35rem; }

.schedule-programme-name { font-weight: 600; }

.category-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent, var(--orange));
  background: color-mix(in srgb, var(--accent, var(--orange)) 14%, white);
  white-space: nowrap;
}

.category-badge-lg {
  background: color-mix(in srgb, var(--accent, var(--orange)) 15%, white);
  color: var(--accent, var(--orange));
}

.maps-link { color: var(--blue); font-weight: 600; text-decoration: none; }
.maps-link:hover { text-decoration: underline; }

/* ---------- Schedule event detail page: rules & regulations ---------- */

.event-feature-head-left { text-align: left; max-width: 760px; }

.event-meta-grid-wide { max-width: 760px; margin: 0 0 1.5rem; }

.event-info-strip {
  max-width: 760px;
  margin: 0 0 2.5rem;
  background: color-mix(in srgb, var(--accent, var(--orange)) 10%, white);
  border-left: 4px solid var(--accent, var(--orange));
  border-radius: 10px;
  padding: 0.9rem 1.25rem;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.5;
}

.event-section-heading-left { text-align: left; margin-top: 0; }
.event-section-sub-left { text-align: left; margin-left: 0; }

/* Two-column layout: rules read as the main column, contacts sit in a
   sidebar — uses the page's full width instead of cramming everything
   into one narrow, centered strip. */
.event-detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: 3rem;
  align-items: start;
}

@media (max-width: 800px) {
  .event-detail-columns { grid-template-columns: 1fr; gap: 2.5rem; }
}

.event-detail-sidebar { position: sticky; top: calc(var(--site-header-height) + 1.5rem); }

.rules-sections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.rules-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent, var(--orange));
  border-radius: var(--radius);
  padding: 1.6rem 1.85rem;
}

.rules-heading {
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  color: var(--navy);
}

.rules-section .event-list { font-size: 0.95rem; line-height: 1.7; }
.rules-section .event-list li { margin-bottom: 0.7rem; }
.rules-section .event-list li:last-child { margin-bottom: 0; }

.contact-list-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-card-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contact-card-row strong { flex: 1; min-width: 140px; }

/* ---------- Explore experience: shared section headings ---------- */

.section-heading-lg {
  text-align: center;
  font-size: 1.4rem;
  margin: 3rem 0 0.4rem;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 560px;
  margin: 0 auto 1.75rem;
}

/* ---------- Key ideas ---------- */

.key-idea-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.key-idea-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
}

.key-idea-card strong { display: block; color: var(--navy); font-size: 0.95rem; margin-bottom: 0.35rem; }
.key-idea-card p { margin: 0; color: var(--muted); font-size: 0.85rem; }

/* ---------- Free knowledge (resources) ---------- */

.resource-tier-heading { font-size: 0.95rem; margin: 1.75rem 0 0.75rem; color: var(--navy); }

/* Explicit 4 -> 3 -> 2 -> 1 column counts, not pure auto-fit — keeps rows
   even and compact instead of stretching cards to fill leftover width. */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 1000px) { .resource-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .resource-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .resource-grid { grid-template-columns: 1fr; } }

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.resource-card-top { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.resource-badge {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.resource-badge-free { background: color-mix(in srgb, var(--green) 14%, white); color: var(--green); border-color: transparent; }
.resource-badge-paid { background: color-mix(in srgb, var(--amber) 14%, white); color: var(--amber); border-color: transparent; }

.resource-card strong { color: var(--navy); font-size: 0.92rem; }
.resource-provider { color: var(--muted); font-size: 0.74rem; font-weight: 600; }
.resource-card p { margin: 0; color: var(--muted); font-size: 0.8rem; flex-grow: 1; }
.resource-why { font-style: italic; font-size: 0.76rem !important; }
.resource-link { font-size: 0.74rem; font-weight: 700; color: var(--accent, var(--blue)); }

/* ---------- Reality check ---------- */

.reality-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.reality-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reality-know { border-top: 4px solid var(--green); }
.reality-dontknow { border-top: 4px solid var(--amber); }
.reality-test { border-top: 4px solid var(--blue); }

.reality-label { font-weight: 700; font-size: 0.85rem; color: var(--navy); }
.reality-card p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.reality-source { font-size: 0.76rem; }
.reality-source a { color: var(--blue); text-decoration: none; }
.reality-source a:hover { text-decoration: underline; }

/* ---------- Math modules ---------- */

.math-module-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.math-module-head h3 { margin: 0 0 0.5rem; color: var(--navy); font-size: 1.05rem; }
.math-desc { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.75rem; }

.math-formula {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.math-calc-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem;
  align-items: end;
  margin-bottom: 1rem;
}

.math-calc-field { display: flex; flex-direction: column; gap: 0.3rem; }
.math-calc-field label { font-size: 0.78rem; font-weight: 600; color: var(--navy); }

.math-calc-field input {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
}

.math-calc-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.85rem; }

.math-calc-result {
  background: color-mix(in srgb, var(--accent) 10%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, white);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--navy);
}

.math-calc-result strong { font-size: 1.3rem; }

.math-evidence-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
}

.math-evidence-panel summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 0.85rem; }

.math-evidence-panel dl { margin: 0.9rem 0 0; }
.math-evidence-panel dt { font-weight: 700; font-size: 0.78rem; color: var(--navy); margin-top: 0.6rem; }
.math-evidence-panel dd { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.82rem; }
.math-evidence-panel dd ul { margin: 0; padding-left: 1.1rem; }
.math-evidence-panel dd a { color: var(--blue); text-decoration: none; }
.math-evidence-panel dd a:hover { text-decoration: underline; }

/* ---------- Sources & methodology ---------- */

.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.source-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.source-status { font-size: 0.72rem; font-weight: 700; }
.source-card strong { color: var(--navy); font-size: 0.9rem; }
.source-card span { color: var(--muted); font-size: 0.78rem; }
.source-meta { font-style: italic; }
.source-card a { color: var(--blue); text-decoration: none; font-size: 0.82rem; font-weight: 600; }
.source-card a:hover { text-decoration: underline; }

/* ---------- Misc ---------- */

.messages { padding-top: 1rem; }

.message {
  background: #eef6fb;
  border: 1px solid var(--blue);
  color: var(--navy);
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

main > .container:first-child { padding-top: 0; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-graphic { order: -1; max-width: 280px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .hero { padding: 3.5rem 0 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .blob,
  .hero-inner,
  .hero-graphic,
  .network-lines line,
  .node-core,
  .network-nodes .node:not(.node-core) {
    animation: none;
  }
}

/* ---------- Community directory: locked (anonymous) view ---------- */
.directory-locked { position: relative; margin-top: 1.5rem; }
.member-grid-locked {
  filter: blur(7px) saturate(0.7);
  pointer-events: none;
  user-select: none;
  opacity: 0.85;
}
.directory-gate {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.directory-gate-card {
  max-width: 480px;
  padding: 2.25rem 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(17, 33, 82, 0.18);
  text-align: center;
}
.directory-gate-card h2 { margin: 0.25rem 0 0.75rem; color: var(--navy); font-size: 1.6rem; }
.directory-gate-card p { color: var(--muted); margin: 0 0 1.25rem; }
.directory-gate-actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Mind maps ---------- */

.mindmap-tree { margin: 1.5rem 0; }

.mindmap-root {
  max-width: 480px;
  margin: 0 auto 1.5rem;
  text-align: center;
  background: var(--card-bg);
  border: 2px solid var(--accent, var(--navy));
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.mindmap-root strong { display: block; color: var(--navy); margin-bottom: 0.3rem; }
.mindmap-root p { margin: 0; color: var(--muted); font-size: 0.85rem; }

.mindmap-branches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.mindmap-branch {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent, var(--navy));
  border-radius: var(--radius);
  padding: 1rem;
}

.mindmap-branch strong { color: var(--navy); font-size: 0.92rem; }
.mindmap-branch p { color: var(--muted); font-size: 0.8rem; margin: 0.3rem 0 0.6rem; }
.mindmap-branch ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.78rem; }
.mindmap-branch li { margin-bottom: 0.2rem; }

.mindmap-note { text-align: center; color: var(--muted); font-size: 0.78rem; font-style: italic; margin-top: 1rem; }

.mindmap-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.mindmap-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  width: 130px;
  padding: 0.75rem 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent, var(--navy));
  border-radius: 10px;
}

.mindmap-flow-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent, var(--navy));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.mindmap-flow-step strong { font-size: 0.82rem; color: var(--navy); }
.mindmap-flow-step p { margin: 0; font-size: 0.72rem; color: var(--muted); }
.mindmap-flow-arrow { align-self: center; color: var(--muted); font-size: 1.1rem; }

/* ---------- AI angle callout (horizontal layer, not a 9th pillar) ---------- */

.ai-angle-callout {
  max-width: 760px;
  margin: 1.75rem auto;
  background: color-mix(in srgb, var(--accent, var(--purple)) 8%, white);
  border-left: 4px solid var(--accent, var(--purple));
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.ai-angle-label { display: block; font-weight: 700; font-size: 0.8rem; color: var(--navy); margin-bottom: 0.3rem; }
.ai-angle-callout p { margin: 0; color: var(--muted); font-size: 0.86rem; }

/* ---------- Interactive tools (Experience stage) ---------- */

.tool-widget {
  max-width: 720px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}

.tool-instruction, .tool-prompt { color: var(--muted); font-size: 0.86rem; }
.tool-prompt { font-style: italic; color: var(--navy); font-size: 0.95rem; }
.tool-note { color: var(--muted); font-size: 0.8rem; margin-top: 1rem; }
.tool-disclaimer { color: var(--muted); font-size: 0.72rem; font-style: italic; margin-top: 0.6rem; }
.tool-subheading { font-size: 1rem; color: var(--navy); margin: 0 0 0.5rem; }
.tool-subheading-spaced { margin-top: 2rem; }

.tool-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.9rem; align-items: end; }
.tool-form-stacked { grid-template-columns: 1fr; }

.tool-field { display: flex; flex-direction: column; gap: 0.3rem; }
.tool-field label { font-size: 0.78rem; font-weight: 600; color: var(--navy); }

.tool-field input, .tool-field textarea, .tool-form select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  font-family: inherit;
  font-size: 0.85rem;
}

.tool-field input:focus, .tool-field textarea:focus, .tool-form select:focus { outline: 2px solid var(--accent, var(--blue)); }

.tool-result {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: var(--bg);
  border-radius: 10px;
  font-size: 0.86rem;
}

.tool-progress { color: var(--muted); font-size: 0.78rem; margin-top: 0.75rem; }

/* Track tabs (Career Tracks Explorer, Readiness Checklist) */
.track-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }

.track-tab {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
}

.track-tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.track-panel { margin: 0; padding-left: 1.2rem; color: var(--muted); font-size: 0.88rem; }
.track-panel li { margin-bottom: 0.3rem; }

.checklist { list-style: none; padding: 0; }
.checklist li { margin-bottom: 0.5rem; }
.checklist label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }

/* Break This Problem Down */
.breakdown-list { display: flex; flex-direction: column; gap: 0.6rem; }

.breakdown-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
}

.breakdown-item summary { font-weight: 700; color: var(--navy); cursor: pointer; font-size: 0.88rem; }
.breakdown-item p { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.82rem; }

/* Supply Chain Explorer */
.supply-chain-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }

.supply-chain-stage {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
}

.supply-chain-stage.is-active { background: var(--orange); border-color: var(--orange); color: #fff; }

.supply-chain-detail { background: var(--bg); border-radius: 10px; padding: 1rem; }
.supply-chain-detail dt { font-weight: 700; color: var(--navy); font-size: 0.8rem; margin-top: 0.5rem; }
.supply-chain-detail dt:first-child { margin-top: 0; }
.supply-chain-detail dd { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.82rem; }

/* Decision-Making Toolkit */
.decision-tool { margin-top: 1.25rem; }
.decision-tool-title { display: block; color: var(--navy); font-size: 0.9rem; margin-bottom: 0.5rem; }
.tool-flow-line { color: var(--muted); font-size: 0.78rem; margin: 0 0 0.5rem; }

.eisenhower-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; }

.eisenhower-cell { display: flex; flex-direction: column; gap: 0.3rem; }
.eisenhower-cell span { font-size: 0.75rem; font-weight: 700; color: var(--navy); }
.eisenhower-cell textarea { border: 1px solid var(--border); border-radius: 8px; padding: 0.5rem; font-family: inherit; font-size: 0.82rem; }

.tool-save-status { display: block; margin-top: 0.5rem; color: var(--green); font-size: 0.8rem; font-weight: 600; }

/* Output vs Outcome Sorter */
.sorter-list { display: flex; flex-direction: column; gap: 0.9rem; }
.sorter-item { border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem; }
.sorter-item p { margin: 0 0 0.5rem; font-size: 0.88rem; }
.sorter-buttons { display: flex; gap: 0.5rem; }
.sorter-feedback { margin-top: 0.5rem !important; font-size: 0.8rem !important; font-weight: 600; color: var(--navy); }

/* First Contribution */
.tool-steps { margin: 0; padding-left: 1.3rem; color: var(--muted); font-size: 0.88rem; }
.tool-steps li { margin-bottom: 0.6rem; }
.tool-steps code { background: var(--bg); padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.82rem; }

/* ---------- Execute panel ---------- */

.execute-panel {
  max-width: 720px;
  margin: 0 auto 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent, var(--orange));
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}

.execute-heading { margin: 0 0 1rem; font-size: 1.05rem; color: var(--navy); }

.execute-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.execute-form button { grid-column: 1 / -1; justify-self: start; }

.execute-summary-body dl { margin: 0; }
.execute-summary-body dt { font-weight: 700; color: var(--navy); font-size: 0.8rem; margin-top: 0.6rem; }
.execute-summary-body dt:first-child { margin-top: 0; }
.execute-summary-body dd { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.85rem; }
.execute-summary .execute-edit { margin-top: 1rem; }

.execute-saved-note { color: var(--muted); font-size: 0.72rem; font-style: italic; margin: 1rem 0 0; }
.execute-next-step { margin: 0.75rem 0 0; font-size: 0.85rem; }
.execute-next-step a { color: var(--accent, var(--blue)); font-weight: 700; text-decoration: none; }
.execute-next-step a:hover { text-decoration: underline; }

/* ---------- C2C AI Agent: site-wide rule-based guidance widget ---------- */

.c2c-agent { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 1000; }

.c2c-agent-launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--navy);
  border: 1px solid rgba(13, 27, 62, 0.08);
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(13, 27, 62, 0.18);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.c2c-agent-launcher:hover { transform: translateY(-1px); box-shadow: 0 16px 34px rgba(13, 27, 62, 0.22); }
.c2c-agent-launcher .brand-accent { color: var(--orange); }
.c2c-agent-launcher-label { display: inline; white-space: nowrap; }

.c2c-agent-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(440px, calc(100vw - 2rem));
  max-height: 560px;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(13, 27, 62, 0.3);
  overflow: hidden;
}

/* Author styles win over the UA [hidden] default, so this must be explicit. */
.c2c-agent-panel[hidden] { display: none; }

.c2c-agent-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: var(--navy);
  color: #fff;
}

.c2c-agent-header strong { display: block; font-size: 0.95rem; }
.c2c-agent-tagline { display: block; font-size: 0.72rem; color: #cfd6ee; margin-top: 0.2rem; }

.c2c-agent-close {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  place-items: center;
  margin: -0.45rem -0.55rem 0 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.c2c-agent-close:hover, .c2c-agent-close:focus-visible { background: #fff; color: var(--navy); outline: 2px solid var(--orange); outline-offset: 2px; }

.c2c-agent-body { padding: 1rem 1.1rem; overflow-y: auto; flex: 1; }
.c2c-agent-ask { display: flex; gap: 0.45rem; padding: 0.7rem 1.1rem 1rem; border-top: 1px solid #e6eaf3; }
.c2c-agent-ask input { min-width: 0; flex: 1; border: 1px solid #cfd6e4; border-radius: 4px; padding: 0.55rem 0.65rem; font: inherit; font-size: 0.8rem; }
.c2c-agent-ask button { border: 0; border-radius: 4px; padding: 0.55rem 0.75rem; background: var(--orange); color: #fff; font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.c2c-agent-ask button:disabled, .c2c-agent-ask input:disabled { opacity: 0.6; cursor: wait; }
.c2c-agent-menu-search { width: 100%; margin: 0 0 0.75rem; border: 1px solid #cfd6e4; border-radius: 6px; padding: 0.65rem 0.75rem; color: var(--navy); font: inherit; font-size: 0.84rem; }
.c2c-agent-menu-search:focus { border-color: var(--blue); outline: 2px solid rgba(31, 111, 178, 0.2); outline-offset: 1px; }

.c2c-agent-loading, .c2c-agent-empty { color: var(--muted); font-size: 0.85rem; }
.c2c-agent-prompt { font-size: 0.85rem; font-weight: 600; color: var(--navy); margin: 0 0 0.75rem; }

.c2c-agent-menu { display: flex; flex-direction: column; gap: 0.5rem; }

.c2c-agent-menu-item {
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.c2c-agent-menu-item:hover { border-color: var(--orange); color: var(--orange); }

.c2c-agent-back {
  display: inline-block;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-bottom: 0.75rem;
}

.c2c-agent-back:hover { color: var(--navy); }

.c2c-agent-answer strong { display: block; color: var(--navy); font-size: 0.88rem; margin-bottom: 0.5rem; }
.c2c-agent-answer p { color: var(--muted); font-size: 0.84rem; margin: 0 0 0.75rem; }

.c2c-agent-link {
  display: block;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  margin-top: 0.4rem;
}

.c2c-agent-link:hover { text-decoration: underline; }

.c2c-agent-suggestions {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.c2c-agent-suggestions span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.c2c-agent-suggestion {
  text-align: left;
  background: none;
  border: none;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.15rem 0;
}

.c2c-agent-suggestion:hover { text-decoration: underline; }

@media (max-width: 420px) {
  .c2c-agent { right: 1rem; bottom: 1rem; }
  .c2c-agent-panel { width: calc(100vw - 2rem); }
  .c2c-agent-launcher { padding: 0.6rem 1rem; font-size: 0.9rem; }
}

/* ---------- Consulting cross-sell CTA (Execute stage, every pillar) ---------- */

.eee-highlight { color: var(--orange); font-weight: 800; }

.consulting-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto 2rem;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  color: #fff;
}

.consulting-cta-copy { flex: 1 1 320px; min-width: 0; }

.consulting-cta-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffce7a;
  margin-bottom: 0.4rem;
}

.consulting-cta-copy p { margin: 0; color: #e4e6f7; font-size: 0.9rem; }

.consulting-contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  flex: 0 1 340px;
  /* min-width:auto would floor this at the email address's width. */
  min-width: 0;
  max-width: 100%;
}

.consulting-contact-logo { height: 56px; width: auto; flex-shrink: 0; border-radius: 8px; }

.consulting-contact-details { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.consulting-contact-details strong { color: #fff; font-size: 0.92rem; }
.consulting-contact-title { color: #cfd6ea; font-size: 0.74rem; }

.consulting-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  margin-top: 0.4rem;
}

.consulting-contact-links a {
  color: #ffce7a;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.consulting-contact-links a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .consulting-contact-card { flex-direction: column; align-items: flex-start; }
}

.consulting-full-page-link {
  display: inline-block;
  margin-top: 0.6rem;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- /connect/ — dedicated "Get in Touch" page ---------- */

.connect-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .connect-layout { grid-template-columns: 1fr; }
}

.connect-contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  position: sticky;
  top: calc(var(--site-header-height) + 1.5rem);
}

/* Must follow the rule above to win the cascade: sticky only makes sense
   while the card is a side column, not once it stacks. */
@media (max-width: 720px) {
  .connect-contact-card { position: static; }
}

.connect-contact-logo { height: 90px; width: auto; border-radius: 12px; margin-bottom: 0.5rem; }
.connect-contact-name { font-size: 1.1rem; }
.connect-contact-title { color: #cfd6ea; font-size: 0.8rem; margin-bottom: 0.75rem; }

.connect-contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}

.connect-contact-links a {
  color: #ffce7a;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.connect-contact-links a:hover { background: rgba(255, 255, 255, 0.16); }

.connect-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ---------- Empty States ---------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card-bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 0.5rem; }
.empty-state p { color: var(--muted); font-size: 0.95rem; max-width: 400px; margin: 0 auto 1.5rem; }

.live-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 2.5rem 1rem;
  background: var(--card-bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.connect-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
}

.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.form-card form { display: flex; flex-direction: column; gap: 1rem; }

/* ---------- Mobile Sticky Action Bar ---------- */
.mobile-sticky-action-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-sticky-action-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    z-index: 50;
    box-shadow: 0 -4px 16px rgba(13, 27, 62, 0.08);
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }
  
  .mobile-sticky-action-bar .btn {
    flex: 1;
    text-align: center;
  }
  
  body:has(.mobile-sticky-action-bar) {
    padding-bottom: 80px;
  }
}

/* ---------- Skeleton Loaders & HTMX States ---------- */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.skeleton {
  background: #f6f7f8;
  background: linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
  border-radius: 4px;
  color: transparent !important;
}

.skeleton * {
  visibility: hidden;
}

/* HTMX Transition States */
.htmx-indicator {
  opacity: 0;
  transition: opacity 200ms ease-in;
}
.htmx-request .htmx-indicator {
  opacity: 1;
}
.htmx-request.htmx-indicator {
  opacity: 1;
}

/* Blur underlying content while loading */
.htmx-request .member-grid,
.htmx-request .group-grid {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 200ms;
}

/* ---------- Circular Progress Rings (Phase 4.3) ---------- */
.phase-progress-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.25rem 0;
}
.progress-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  position: relative;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--navy);
  background: conic-gradient(var(--orange) var(--progress, 0%), #e6e8f0 var(--progress, 0%));
}
.progress-ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--card-bg);
}
.progress-ring-text {
  position: relative;
  z-index: 1;
}
.phase-display {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}

.phase-1 { --progress: 25%; }
.phase-2 { --progress: 50%; }
.phase-3 { --progress: 75%; }
.phase-4 { --progress: 100%; }


.connect-form-heading { margin: 0 0 0.25rem; font-size: 1.1rem; }

.connect-form select, .connect-form input, .connect-form textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  width: 100%;
}

.connect-form select:focus, .connect-form input:focus, .connect-form textarea:focus {
  outline: 2px solid var(--orange);
}

/* ---------- Winner Board ---------- */
.winner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 3rem;
}

.winner-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.winner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.winner-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.4rem;
  border: 2px solid var(--border);
}

.winner-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: #fafbff;
}

.winner-rank-badge {
  background: var(--orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.winner-name { color: var(--navy); font-size: 0.95rem; }
.winner-category, .winner-school { color: var(--muted); font-size: 0.78rem; }

.winner-board-group { margin-bottom: 3rem; }
.winner-board-group-title { display: flex; align-items: center; gap: 0.6rem; }

.winner-board-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  margin: 1rem 0;
}

.winner-board-cta:hover { box-shadow: var(--shadow-hover); }

