* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--color-ink);
  background: var(--color-green-50);
  overflow-x: hidden;
}
.hidden { display: none !important; }

.demo-banner {
  position: sticky; top: 0; z-index: 40;
  display: flex; flex-wrap: wrap; gap: 8px 12px;
  align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: #0E3A29; color: #fff; font-size: 12px; line-height: 1.35;
}
.demo-banner > span { flex: 1 1 180px; min-width: 0; }
.demo-banner a { color: #C8EBD9; font-weight: 700; text-decoration: none; white-space: nowrap; }
.demo-banner .pill {
  background: var(--color-amber); color: var(--color-ink);
  padding: 7px 12px; border-radius: 999px; font-size: 12px;
}
.demo-banner-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.parity-note {
  margin: 0; padding: 8px 14px; font-size: 11px; line-height: 1.4;
  color: var(--color-slate); background: #fff; border-bottom: 1px solid var(--color-border);
}

.shell {
  max-width: 1200px; margin: 0 auto;
  padding: 20px 20px 40px;
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px;
}
.side {
  position: sticky; top: 56px; align-self: start;
  background: #fff; border: 1px solid var(--color-border); border-radius: 20px;
  padding: 18px 12px; display: flex; flex-direction: column; gap: 4px;
}
.side-brand {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  padding: 4px 12px 14px; color: var(--color-forest);
}
.side .nav, .bottom .nav {
  border: none; background: transparent; text-align: left;
  padding: 12px 14px; border-radius: 12px;
  font: inherit; font-weight: 600; color: var(--color-slate); cursor: pointer;
}
.side .nav.on, .bottom .nav.on {
  background: var(--color-green-tint); color: var(--color-emerald);
}
.side-note {
  font-size: 11px; color: var(--color-slate);
  padding: 12px 12px 4px; line-height: 1.4; margin: 8px 0 0;
}
.side-partner {
  margin-top: 12px; padding: 12px;
  border-top: 1px solid var(--color-border);
  display: flex; flex-direction: column; gap: 6px;
}
.side-partner-label {
  margin: 0 0 2px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-slate);
}
.side-partner a {
  font-size: 12px; font-weight: 700; color: var(--color-emerald); text-decoration: none;
}
.partner-strip {
  margin-top: 20px; padding: 16px;
  border-radius: 18px; border: 1px solid var(--color-border);
  background: linear-gradient(180deg, #E9F6EF, #fff);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
}
.partner-strip .eyebrow {
  margin: 0 0 2px; font-size: 11px; font-weight: 700;
  color: var(--color-emerald); letter-spacing: 0.04em; text-transform: uppercase;
}
.partner-strip h3 { margin: 0 0 4px; font-size: 15px; }
.partner-strip p { margin: 0; font-size: 13px; color: var(--color-slate); line-height: 1.4; }
.partner-strip-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.partner-strip-actions .cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 14px; border-radius: 999px; background: var(--color-emerald);
  color: #fff; font-weight: 700; font-size: 13px; text-decoration: none;
}
.partner-strip-actions .ghost-link {
  font-size: 13px; font-weight: 700; color: var(--color-emerald); text-decoration: none;
}

.main {
  background: #fff; border: 1px solid var(--color-border); border-radius: 24px;
  padding: 24px; min-height: 60vh; min-width: 0;
}
.view { display: none; }
.view.active { display: block; }
.view h1 { font-size: clamp(20px, 4vw, 26px); line-height: 1.25; margin: 0 0 12px; word-break: break-word; }

.greeting { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.greeting img { flex-shrink: 0; }
.greeting h1 { margin: 0; font-size: clamp(18px, 4vw, 22px); }
.greeting p { margin: 4px 0 0; color: var(--color-slate); font-size: 14px; }

.continue {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #E9F6EF, #FDEFD6);
  border: 1px solid var(--color-border);
  border-radius: 18px; padding: 16px 18px; margin-bottom: 16px;
}
.continue > div { min-width: 0; flex: 1; }
.continue .eyebrow {
  margin: 0; font-size: 11px; font-weight: 700;
  color: var(--color-emerald); text-transform: uppercase;
}
.continue h2 { margin: 4px 0; font-size: 16px; line-height: 1.3; }
.continue p { margin: 0; color: var(--color-slate); font-size: 13px; }

.cta, .ghost, .back, .linkish {
  font: inherit; cursor: pointer; border-radius: 999px; font-weight: 700;
}
.cta {
  border: none; background: var(--color-emerald); color: #fff;
  padding: 10px 16px; white-space: nowrap; flex-shrink: 0;
}
.cta.wide { width: 100%; padding: 14px; margin-top: 12px; white-space: normal; }
.ghost {
  border: 1px solid var(--color-border); background: #fff;
  color: var(--color-ink); padding: 10px 16px; width: 100%; margin-top: 8px;
}
.back, .linkish {
  border: none; background: none; color: var(--color-emerald);
  padding: 0; margin-bottom: 8px;
}

.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 8px; margin: 18px 0 10px;
}
.section-head h3 { margin: 0; font-size: 16px; }
.muted { color: var(--color-slate); font-size: 14px; line-height: 1.45; }
.subh { margin: 20px 0 10px; font-size: 15px; }

.featured-wrap { display: grid; gap: 10px; }
.featured {
  background: var(--color-forest); color: #fff;
  border-radius: 18px; padding: 16px 18px; cursor: pointer;
}
.featured .tag {
  display: inline-block; background: var(--color-amber); color: var(--color-ink);
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px;
}
.featured h3 { margin: 0 0 4px; font-size: 15px; }
.featured p { margin: 0; font-size: 12px; opacity: 0.8; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.cat-tile {
  border: none; text-align: left; padding: 12px;
  border-radius: 16px; min-height: 84px; min-width: 0;
  cursor: pointer; font: inherit; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.cat-tile .icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; color: #fff; flex-shrink: 0;
}
.cat-tile .icon-badge.fam-career { background: var(--fam-career-accent); }
.cat-tile .icon-badge.fam-university { background: var(--fam-university-accent); }
.cat-tile .icon-badge.fam-grow { background: var(--fam-grow-accent); }
.cat-tile .icon-badge svg { display: block; }
.cat-tile .label {
  font-size: 13px; font-weight: 700; display: block;
  line-height: 1.25; word-break: break-word;
}

.search-wrap input {
  width: 100%; padding: 12px 14px; border-radius: 999px;
  border: 1px solid var(--color-border); font: inherit;
  background: var(--color-green-tint); margin-bottom: 16px;
  font-size: 16px; /* avoid iOS zoom */
}

.family-header {
  font-size: 13px; font-weight: 700; margin: 18px 0 10px;
  color: var(--color-text-700); line-height: 1.35;
}

.opp-list { display: grid; gap: 10px; }
.opp-card, .org-card, .train-card, .skill-chip {
  border: 1px solid var(--color-border); border-radius: 16px;
  padding: 14px; background: #fff; min-width: 0;
}
.opp-card, .org-card, .train-card { cursor: pointer; }
.opp-card h3, .org-card h3, .train-card h3 {
  margin: 0 0 6px; font-size: 15px; line-height: 1.35;
  word-break: break-word;
}
.meta {
  color: var(--color-slate); font-size: 12px; line-height: 1.4;
  word-break: break-word;
}
.type-pill {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; margin-right: 6px;
  background: var(--color-green-tint); color: var(--color-emerald);
}

.org-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.org-family { margin-bottom: 18px; }
.org-family .family-header {
  font-size: 14px; font-weight: 700; margin: 18px 0 10px;
  padding-left: 10px; border-left: 4px solid var(--color-emerald);
}
.org-family.type-university .family-header { border-left-color: #2F6FB0; }
.org-family.type-club .family-header { border-left-color: #12805C; }
.org-family.type-company .family-header { border-left-color: #CE8A22; }
.org-family.type-ngo .family-header { border-left-color: #C45C4A; }
.org-card { border-top: 3px solid var(--color-border); }
.org-card.type-university { border-top-color: #2F6FB0; }
.org-card.type-club { border-top-color: #12805C; }
.org-card.type-company { border-top-color: #CE8A22; }
.org-card.type-ngo { border-top-color: #C45C4A; }
.org-type-pill {
  display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; background: var(--color-green-tint); color: var(--color-emerald); margin-bottom: 6px;
}
/* Capability passport — open-ended tiers + medals (no progress bars) */
.passport-eyebrow {
  margin: 0 0 2px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.75;
}
.passport-empty {
  text-align: center; padding: 22px 16px; border-radius: 20px;
  background: linear-gradient(180deg, #E9F6EF, #fff); border: 1px solid var(--color-border);
}
.passport-empty .tier-seal { margin: 0 auto 8px; }
.passport-empty h3 { margin: 10px 0 4px; font-size: 16px; }
.passport-empty p { margin: 0; color: var(--color-slate); font-size: 13px; line-height: 1.45; }

.passport-tier-card {
  display: flex; gap: 14px; align-items: center;
  background: linear-gradient(145deg, #0E3A29 0%, #12805C 65%, #1a5c40 120%);
  color: #fff; border-radius: 20px; padding: 16px 18px; margin-bottom: 12px;
}
.tier-seal {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff8e6, #F2A93B 45%, #C77F1A 100%);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.25), 0 8px 20px rgba(0,0,0,0.2);
  color: #0E3A29; font-weight: 800; font-size: 11px; letter-spacing: 0.02em;
  text-align: center; line-height: 1.1; padding: 6px;
}
.tier-seal span { transform: rotate(-6deg); display: block; }
.tier-seal.tier-seed { background: radial-gradient(circle at 35% 30%, #E2CDA8, #C4A574); }
.tier-seal.tier-sprout { background: radial-gradient(circle at 35% 30%, #C8EBD9, #5FC195); }
.tier-seal.tier-grow { background: radial-gradient(circle at 35% 30%, #E9F6EF, #12805C); color: #fff; }
.tier-copy h3 { margin: 0 0 4px; font-size: 17px; color: #fff; }
.tier-next { margin: 0; font-size: 12px; line-height: 1.4; opacity: 0.9; }
.tier-next strong { color: #F2A93B; }

.passport-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px;
}
.passport-stat {
  background: #fff; border: 1px solid var(--color-border); border-radius: 16px;
  padding: 12px 8px; text-align: center;
}
.passport-stat strong { display: block; font-size: 18px; font-weight: 800; color: var(--color-ink); margin: 4px 0 2px; }
.passport-stat span:last-child { font-size: 11px; color: var(--color-slate); font-weight: 600; }
.stat-ico {
  display: inline-block; width: 22px; height: 22px; border-radius: 8px;
}
.stat-ico.xp { background: linear-gradient(135deg, #FDEFD6, #F2A93B); }
.stat-ico.badge { background: linear-gradient(135deg, #E9F6EF, #5FC195); }
.stat-ico.tier { background: linear-gradient(135deg, #D9E7F5, #2F6FB0); }

.passport-section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  margin: 4px 0 10px;
}
.passport-section-head h4 { margin: 0; font-size: 15px; }
.passport-section-head span { font-size: 11px; color: var(--color-slate); font-weight: 600; }

.skill-medal-rail {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px;
}
.skill-medal {
  border: 1px solid var(--color-border); background: #fff; border-radius: 18px;
  padding: 12px 10px 10px; text-align: center;
}
.skill-medal.locked { background: #f7faf8; opacity: 0.85; border-style: dashed; }
.medal-face {
  width: 56px; height: 56px; margin: 0 auto 8px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 35% 30%, #fff, #C8EBD9 55%, #12805C);
  color: #0E3A29; box-shadow: inset 0 -3px 0 rgba(0,0,0,0.08);
}
.skill-medal.fam-thinking .medal-face { background: radial-gradient(circle at 35% 30%, #fff, #D9E7F5 55%, #2F6FB0); color: #163a5c; }
.skill-medal.fam-communication .medal-face { background: radial-gradient(circle at 35% 30%, #fff, #FDEFD6 55%, #CE8A22); }
.skill-medal.fam-collaboration .medal-face { background: radial-gradient(circle at 35% 30%, #fff, #C8EBD9 55%, #12805C); }
.skill-medal.fam-execution .medal-face { background: radial-gradient(circle at 35% 30%, #fff, #FBDECB 55%, #C45C4A); color: #5c2418; }
.skill-medal.fam-digital .medal-face { background: radial-gradient(circle at 35% 30%, #fff, #E5E0F2 55%, #5B4B8A); color: #2d2450; }
.skill-medal.locked .medal-face {
  background: radial-gradient(circle at 35% 30%, #f4f4f4, #d8dde0); color: #8a9490;
}
.medal-glyph { font-size: 18px; font-weight: 800; line-height: 1; }
.medal-stars {
  position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 2px;
}
.medal-stars i {
  width: 6px; height: 6px; border-radius: 50%; background: #F2A93B;
  box-shadow: 0 0 0 1px rgba(14,58,41,0.15);
}
.medal-name {
  display: block; font-size: 12px; font-weight: 700; line-height: 1.25;
  color: var(--color-ink); min-height: 2.4em;
}
.medal-rank {
  display: inline-block; margin-top: 2px; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  background: var(--color-green-tint); color: var(--color-emerald);
}
.medal-next {
  display: block; margin-top: 6px; font-size: 10px; color: var(--color-slate); font-weight: 600;
}

.passport-family-chips {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px;
}
.fam-chip {
  font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  background: var(--color-green-50); color: var(--color-text-700); border: 1px solid var(--color-border);
}
.fam-chip.fam-thinking { background: #EAF2FB; color: #2F6FB0; }
.fam-chip.fam-communication { background: #FDEFD6; color: #9a6818; }
.fam-chip.fam-collaboration { background: #E9F6EF; color: #12805C; }
.fam-chip.fam-execution { background: #FBDECB; color: #8a3d2e; }
.fam-chip.fam-digital { background: #EFEAF8; color: #5B4B8A; }
.passport-demo-note { font-size: 12px; margin: 0; }

.opp-hero {
  width: 100%; border-radius: 16px; overflow: hidden;
  background: var(--color-green-tint);
  margin: 8px 0 14px;
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
}
.opp-hero img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.action-bar { margin-top: 16px; }
.skill-family { margin-bottom: 18px; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chip { font-size: 13px; font-weight: 600; padding: 8px 12px; cursor: default; }

.bottom {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: #fff; border-top: 1px solid var(--color-border);
  padding: 4px 2px calc(8px + env(safe-area-inset-bottom, 0));
}
.bottom .nav {
  flex: 1; text-align: center; font-size: 10px;
  padding: 10px 2px 8px; line-height: 1.2; min-width: 0;
}

.gate {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(14,58,41,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.gate-card {
  width: min(420px, 100%);
  background: #fff; border-radius: 24px; padding: 22px; text-align: center;
}
.gate-card h2 { margin: 8px 0; font-size: 20px; }
.gate-card p { color: var(--color-slate); font-size: 14px; line-height: 1.5; }

/* Tablet + phone: mobile shell (side nav off, bottom tabs on) */
@media (max-width: 1024px) {
  .shell {
    grid-template-columns: 1fr;
    padding: 12px 12px calc(88px + env(safe-area-inset-bottom, 0));
    gap: 0;
  }
  .side { display: none; }
  .bottom { display: flex; }
  .main {
    border-radius: 18px;
    padding: 16px;
    min-height: auto;
  }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .org-grid { grid-template-columns: 1fr; }
  .continue {
    flex-direction: column;
    align-items: stretch;
  }
  .continue .cta { width: 100%; text-align: center; }
  .demo-banner { font-size: 11px; padding: 8px 12px; }
  .demo-banner > span .banner-extra { display: none; }
}

@media (max-width: 420px) {
  .cat-tile { min-height: 76px; padding: 10px; }
  .cat-tile .label { font-size: 12px; }
  .greeting { gap: 10px; }
  .greeting img { width: 40px; height: auto; }
}
