/* ==========================================================================
   Punjabiforce — main stylesheet
   Palette: #00a1e0 (blue) · #fe9c08 (orange) · #060f29 (navy) · white/black
   ========================================================================== */

:root {
  --navy: #060f29;
  --navy-soft: #0c1a3d;
  --blue: #00a1e0;
  --blue-light: #7fd4ff;
  --orange: #fe9c08;
  --orange-light: #ffb02e;
  --white: #ffffff;
  --ink: #0a0a0a;
  --muted: #5a6072;
  --mist: #f4f7fb;
  --line: rgba(6, 15, 41, 0.1);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --wrap: 1160px;
  --radius: 18px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;   /* stops width/height attributes squashing images */
}
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 96px 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow .mark { width: 18px; height: 18px; opacity: 1; }

.sec-head { max-width: 640px; margin-bottom: 52px; }
.sec-head .eyebrow { color: var(--blue); margin-bottom: 16px; }
.sec-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.1;
}
.sec-head p {
  margin-top: 14px;
  font-size: 16.5px;
  line-height: 1.65;
  color: #4b5165;
}

/* Accessible focus ring */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  padding: 14px 26px;
  border-radius: 100px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: var(--orange-light); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--white); transform: translateY(-1px); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 15, 41, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; }
.brand span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  padding: 7px 11px;
  cursor: pointer;
}

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--orange);
  margin-top: 5px;
  border-radius: 2px;
}
.nav-links a.nav-cta {
  background: var(--orange);
  color: var(--navy);
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
}
.nav-links a.nav-cta:hover { background: var(--orange-light); }
.nav-links a.nav-cta.active::after { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 32px 22px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; width: 100%; font-size: 16px; }
  .nav-links a.active::after { display: none; }
  .nav-links a.nav-cta { margin-top: 10px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-soft) 55%, var(--blue) 145%);
  color: var(--white);
  padding: 104px 0 84px;
}
.page-hero .watermark {
  position: absolute;
  right: -70px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  opacity: 0.22;
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--blue-light); margin-bottom: 20px; }
.page-hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.06;
}
.page-hero p.lede {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
}
.page-hero p.lede strong { color: var(--orange); font-weight: 600; }

@media (max-width: 700px) {
  .page-hero { padding: 68px 0 56px; }
  .page-hero .watermark { width: 260px; opacity: 0.16; right: -70px; }
  .home-intro { padding: 64px 0 56px; }
  .home-intro .watermark { width: 280px; opacity: 0.14; right: -90px; }
  section { padding: 64px 0; }
  .wrap { padding: 0 20px; }
  .btn { padding: 13px 22px; font-size: 14.5px; }
  .btn-row { gap: 10px; }
  .founder-strip { flex-direction: column; gap: 10px; text-align: center; }
}

/* ---------- Home: intro + banner ---------- */
.home-intro {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-soft) 50%, #08306b 100%);
  color: var(--white);
  padding: 92px 0 76px;
  text-align: center;
}
.home-intro .watermark {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  opacity: 0.18;
  pointer-events: none;
}
.home-intro .wrap { position: relative; z-index: 2; }
.home-intro .eyebrow { color: var(--blue-light); }
.home-intro h1 {
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.04;
  margin: 20px 0;
  font-weight: 700;
}
.home-intro h1 .accent { color: var(--orange); }
.home-intro p.lede {
  font-size: 17.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
  margin: 0 auto 32px;
}
.home-intro .btn-row { justify-content: center; margin-bottom: 40px; }

.founder-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.founder-strip .avatars { display: flex; }
.founder-strip .avatars img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2.5px solid var(--navy);
  object-fit: cover;
  margin-left: -12px;
}
.founder-strip .avatars img:first-child { margin-left: 0; }
.founder-strip p { font-size: 13.5px; color: rgba(255, 255, 255, 0.65); line-height: 1.4; }
.founder-strip p strong { color: var(--white); font-weight: 600; }

/* ---------- Home banner ---------- */
.hero-banner { background: var(--blue); }
.hero-banner img { display: block; width: 100%; max-width: 1200px; height: auto; margin: 0 auto; }

/* ---------- LinkedIn badge on avatars ---------- */
.avatar-wrap { position: relative; flex-shrink: 0; width: max-content; }
.team-card .avatar-wrap { margin: 0 auto 14px; }

.li-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--white);
  display: grid;
  place-items: center;
  transition: background 0.15s, transform 0.15s;
}
.li-badge:hover { background: var(--navy); transform: scale(1.08); }
.li-badge svg { width: 12px; height: 12px; fill: var(--white); }

/* ---------- Pillars ---------- */
.pillars { background: var(--mist); }
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.pillar {
  background: var(--white);
  padding: 30px 26px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.15s;
}
.pillar:hover { background: #fbfdff; }
.pillar .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange);
  font-weight: 600;
}
.pillar h3 { font-size: 17px; font-weight: 600; margin: 14px 0 8px; }
.pillar p { font-size: 14px; color: var(--muted); line-height: 1.5; }

@media (max-width: 900px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillar-grid { grid-template-columns: 1fr; } }

/* ---------- Story ---------- */
.story { background: var(--navy); color: var(--white); }
.story .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.story .eyebrow { color: var(--orange); margin-bottom: 18px; }
.story h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.18;
  margin-bottom: 20px;
}
.story p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  font-size: 15.5px;
  margin-bottom: 14px;
}
.story .frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

@media (max-width: 900px) {
  .story .wrap { grid-template-columns: 1fr; gap: 40px; }
  .story { padding: 72px 0; }
}

/* ---------- Founders ---------- */
.founders-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.founder-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  gap: 20px;
}
.founder-card img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.founder-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.founder-card .role {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.founder-card p { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.6; }

@media (max-width: 760px) { .founders-grid { grid-template-columns: 1fr; } }

/* ---------- Team cards ---------- */
.team { background: var(--mist); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  border: 1px solid var(--line);
}
.team-card img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
}
.team-card h3 { font-size: 15.5px; font-weight: 600; }
.team-card .title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange);
  font-weight: 600;
  margin-top: 4px;
}
.team-card .meta { font-size: 12.5px; color: #7a8094; margin-top: 6px; line-height: 1.4; }

@media (max-width: 860px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------- Teaser cards (home) ---------- */
.teaser-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.teaser-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  transition: transform 0.15s, border-color 0.15s;
}
.teaser-card:hover { transform: translateY(-2px); border-color: var(--blue); }
.teaser-card h3 { font-size: 16.5px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.teaser-card p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

@media (max-width: 800px) { .teaser-row { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.stat { background: var(--mist); padding: 26px 22px; }
.stat .num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--blue);
}
.stat .label { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Event gallery ---------- */
.event-media {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
  margin-top: 32px;
}
.event-media img {
  border-radius: 16px;
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
}
/* Graphics (as opposed to photos) must not be cropped */
.event-media img.graphic {
  object-fit: contain;
  background: var(--mist);
}

@media (max-width: 800px) {
  .event-media { grid-template-columns: 1fr; }
  .event-media img { max-height: 320px; }
}

/* ---------- Event list ---------- */
.event-list { display: flex; flex-direction: column; gap: 0; }
.event-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.event-item:first-child { border-top: 1px solid var(--line); }
.event-item .when {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 3px;
}
.event-item h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.event-item p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.event-item .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(254, 156, 8, 0.4);
  border-radius: 100px;
  padding: 3px 10px;
  margin-top: 10px;
}

@media (max-width: 640px) {
  .event-item { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Volunteer roles ---------- */
.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.role-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.role-card .focus {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.role-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.role-card > p { font-size: 14.5px; color: var(--muted); line-height: 1.65; }
.role-card ul { margin: 14px 0 0 18px; }
.role-card li { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 6px; }

@media (max-width: 760px) { .role-grid { grid-template-columns: 1fr; } }

/* ---------- Sponsors ---------- */
.sponsors .wrap { text-align: center; }
.sponsors .eyebrow { color: var(--blue); margin-bottom: 30px; }
.sponsor-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
}
.sponsor-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: #232842;
  opacity: 0.55;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--mist);
  resize: vertical;
  color: var(--ink);
  width: 100%;
}
.contact-form button { align-self: flex-start; margin-top: 4px; }

/* Brand panel with the full logo */
.logo-panel {
  background: var(--blue);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
  margin-bottom: 26px;
}
.logo-panel img { width: 190px; margin: 0 auto 16px; }
.contact-side .logo-panel p {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}
.contact-side .logo-panel span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
}

.form-status {
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: rgba(0, 161, 224, 0.1); color: #04618a; }
.form-status.error { background: rgba(254, 156, 8, 0.14); color: #8a5a00; }

.contact-side h2 { font-size: 18px; font-weight: 600; margin-bottom: 18px; }
.contact-side p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: #303650;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.contact-link:hover { color: var(--blue); }
.contact-link .lbl { font-weight: 600; }
.contact-link svg { width: 17px; height: 17px; fill: var(--blue); flex-shrink: 0; }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .logo-panel { padding: 28px; }
  .logo-panel img { width: 150px; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue), #0071b3 55%, var(--navy));
  color: var(--white);
  text-align: center;
  padding: 88px 0;
}
.cta-band h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 600; margin-bottom: 16px; }
.cta-band p { color: rgba(255, 255, 255, 0.82); margin-bottom: 34px; font-size: 16.5px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
  padding: 56px 0 30px;
}
.foot-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 30px; height: 30px; }
.foot-brand span {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 600;
  font-size: 17px;
}
.foot-links { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h2 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}
.foot-col a { display: block; font-size: 14px; color: rgba(255, 255, 255, 0.75); margin-bottom: 10px; }
.foot-col a:hover { color: var(--white); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Members area: forms, dashboard, admin
   Appended block. Uses the existing tokens only, nothing above is changed.
   ========================================================================== */

/* ---------- Form extras ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

.contact-form small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.req { color: var(--orange); }

.check-group { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.check-group legend {
  font-size: 13px; font-weight: 600; color: var(--navy); padding: 0 8px;
}
/* Beat the flex-column rule on .contact-form label */
.contact-form .check,
.check {
  display: flex; flex-direction: row; align-items: flex-start; gap: 10px;
  font-size: 14.5px; font-weight: 400; color: var(--ink);
  padding: 7px 0; cursor: pointer; line-height: 1.5;
}
.contact-form .check input,
.check input { width: auto; margin-top: 3px; flex-shrink: 0; }
.check a { color: var(--blue); text-decoration: underline; }

/* Label text and its asterisk must stay on one line */
.contact-form label .lbl { display: block; }

.narrow-col { max-width: 520px; }
.muted-note { font-size: 14px; color: var(--muted); line-height: 1.7; margin-top: 20px; }

.btn-quiet {
  background: transparent; border: 1.5px solid var(--line); color: var(--navy);
}
.btn-quiet:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Prose (policies) ---------- */
.prose { max-width: 720px; }
.prose h2 {
  font-size: 20px; font-weight: 600; margin: 34px 0 12px; color: var(--navy);
}
.prose p { font-size: 15.5px; line-height: 1.75; color: #3c4255; margin-bottom: 14px; }
.prose a { color: var(--blue); text-decoration: underline; }
.prose .updated {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 28px;
}

/* ---------- Pair cards ---------- */
.pair-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; margin-bottom: 18px; background: var(--white);
}
.pair-head { display: flex; align-items: center; gap: 16px; }
.pair-head img, .avatar-fallback {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.avatar-fallback {
  display: grid; place-items: center; background: var(--blue); color: var(--white);
  font-family: var(--font-display); font-weight: 600; font-size: 22px;
}
.pair-head h3 { font-size: 19px; font-weight: 600; }
.pair-head .role {
  font-family: var(--font-mono); font-size: 12px; color: var(--blue);
  font-weight: 600; margin-top: 3px;
}
.pair-head .meta { font-size: 13px; color: var(--muted); margin-top: 3px; }
.pair-bio { font-size: 14.5px; color: var(--muted); line-height: 1.65; margin-top: 16px; }
.pair-line { font-size: 14px; color: #3c4255; margin-top: 10px; }
.pair-actions { margin-top: 20px; }
.pair-actions .btn { padding: 11px 20px; font-size: 14px; }

.empty-card {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 34px; text-align: center; background: var(--mist);
}
.empty-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.empty-card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ---------- Pills and chips ---------- */
.pill {
  display: inline-block; font-family: var(--font-mono); font-size: 11px;
  font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 100px;
  background: var(--mist); color: var(--muted); border: 1px solid var(--line);
  margin-left: auto;
}
.pill-active { background: rgba(0,161,224,0.12); color: #04618a; border-color: transparent; }
.pill-proposed { background: rgba(254,156,8,0.16); color: #8a5a00; border-color: transparent; }
.pill-completed { background: rgba(6,15,41,0.07); color: var(--navy); border-color: transparent; }

.chip {
  display: inline-block; font-size: 11.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 100px; margin-right: 3px;
  background: rgba(0,161,224,0.1); color: #04618a;
}

/* ---------- Admin ---------- */
.admin-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); margin-bottom: 30px;
}
.admin-tab {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--muted); padding: 12px 18px; cursor: pointer; margin-bottom: -1px;
}
.admin-tab:hover { color: var(--navy); }
.admin-tab.active { color: var(--navy); border-bottom-color: var(--orange); }

.admin-panel { display: none; }
.admin-panel.active { display: block; }

.admin-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.admin-bar h2 { font-size: 22px; font-weight: 600; }
.admin-bar select {
  font-family: var(--font-body); font-size: 14px; padding: 9px 12px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--mist);
}

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 680px; }
.data-table th {
  text-align: left; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  padding: 13px 16px; background: var(--mist); border-bottom: 1px solid var(--line);
  font-weight: 600; white-space: nowrap;
}
.data-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  color: #3c4255; vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table a { color: var(--blue); }
.data-table .wrap-cell { min-width: 220px; white-space: normal; }
.data-table .empty-row {
  text-align: center; padding: 40px; color: var(--muted);
}

.btn-mini {
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
  padding: 7px 14px; border-radius: 100px; border: none; cursor: pointer;
  background: var(--orange); color: var(--navy); white-space: nowrap;
}
.btn-mini:hover { background: var(--orange-light); }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6,15,41,0.55); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 24px; overflow-y: auto;
}
.modal[hidden] { display: none; }
.modal-card {
  background: var(--white); border-radius: var(--radius);
  padding: 34px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
}
.modal-card h2 { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.modal-card .muted-note { margin: 0 0 22px; }
.modal-card .contact-form button[type="submit"] { align-self: auto; }
.modal-card .btn-row { margin-top: 6px; }

@media (max-width: 560px) {
  .modal { padding: 12px; }
  .modal-card { padding: 24px; }
}

/* ---------- Admin: approve/reject and role toggles ---------- */
.row-actions { white-space: nowrap; }
.btn-mini:disabled { opacity: 0.5; cursor: wait; }
.btn-mini-quiet {
  background: transparent; color: var(--navy); border: 1.5px solid var(--line);
}
.btn-mini-quiet:hover { background: var(--mist); }

.toggle-cell { white-space: nowrap; }
.toggle {
  display: inline-flex; align-items: center; gap: 6px;
  margin-right: 14px; font-size: 13px; cursor: pointer; color: #3c4255;
}
.toggle input { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; }
.toggle input:disabled { cursor: not-allowed; opacity: 0.55; }

.pill-new { background: rgba(254,156,8,0.16); color: #8a5a00; border-color: transparent; }
.pill-approved { background: rgba(0,161,224,0.12); color: #04618a; border-color: transparent; }
.pill-rejected { background: rgba(6,15,41,0.06); color: var(--muted); border-color: transparent; }
.pill-converted { background: rgba(6,15,41,0.07); color: var(--navy); border-color: transparent; }

/* ---------- Contact: direct-message buttons ---------- */
.message-col h2 { font-size: 22px; font-weight: 600; margin-bottom: 10px; color: var(--navy); }
.muted-lede { font-size: 15px; color: var(--muted); line-height: 1.65; margin-bottom: 26px; }
.message-col .btn { margin-top: 4px; }

.msg-btn {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 26px; border-radius: 16px; margin-bottom: 16px;
  color: var(--white); transition: transform 0.15s, filter 0.15s;
}
.msg-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.msg-btn svg { width: 26px; height: 26px; fill: var(--white); flex-shrink: 0; }
.msg-text { display: flex; flex-direction: column; flex: 1; }
.msg-text strong { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; }
.msg-text small { font-size: 13px; opacity: 0.8; margin-top: 2px; }
.msg-arrow { font-size: 20px; }
.msg-linkedin { background: var(--blue); }
.msg-facebook { background: var(--navy); }
.message-col .muted-note a { color: var(--blue); font-weight: 600; }

/* ---------- Volunteer: apply card ---------- */
.apply-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
}
.apply-card h3 { font-size: 19px; font-weight: 600; color: var(--navy); margin-bottom: 14px; }
.ask-list { list-style: none; margin: 0 0 20px; padding: 0; }
.ask-list li {
  position: relative; padding: 9px 0 9px 26px; font-size: 14.5px;
  color: #3c4255; border-bottom: 1px solid var(--line);
}
.ask-list li:last-child { border-bottom: none; }
.ask-list li::before {
  content: ''; position: absolute; left: 4px; top: 16px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
}
.ask-list strong { color: var(--navy); }

/* The hidden attribute must always win over component display rules */
[hidden] { display: none !important; }

/* ---------- Events (database) ---------- */
.event-body { display: flex; gap: 20px; align-items: flex-start; }
.event-meta { font-family: var(--font-mono); font-size: 12px; color: var(--blue); font-weight: 600; margin-bottom: 6px; }
.event-actions { margin-top: 14px; }
.event-actions .btn { padding: 10px 18px; font-size: 14px; }
@media (max-width: 640px) {
  .event-body { flex-direction: column; }
}

/* Thumbnail: fixed 16:9 frame, whole image always visible (square or 16:9) */
.event-thumb {
  display: block; width: 192px; aspect-ratio: 16 / 9; flex-shrink: 0;
  padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--navy-soft); cursor: zoom-in;
}
.event-thumb img { width: 100%; height: 100%; object-fit: contain; }
.event-thumb:hover { border-color: var(--blue); }

/* Past events: 2-column cards */
.event-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.event-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--white); display: flex; flex-direction: column;
}
.event-card .event-thumb { width: 100%; border: none; border-radius: 0; }
.event-card-body { padding: 22px; }
.event-card-body .when {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--blue); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px;
}
.event-card-body h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.event-card-body p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(6,15,41,0.88);
  display: grid; place-items: center; padding: 24px; cursor: zoom-out;
}
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 12px; }
.lightbox-close {
  position: absolute; top: 18px; right: 22px; background: none; border: none;
  color: var(--white); font-size: 36px; line-height: 1; cursor: pointer;
}

@media (max-width: 760px) {
  .event-grid { grid-template-columns: 1fr; }
  .event-body .event-thumb { width: 100%; }
}

/* ---------- Junk folder note ---------- */
.contact-side .junk-note, .junk-note {
  background: #fff6e5; border-left: 4px solid var(--orange);
  padding: 12px 16px; border-radius: 0 10px 10px 0;
  font-size: 14px; line-height: 1.6; color: #3c4255; margin-top: 16px;
}

/* ---------- Footer credit ---------- */
.foot-credit a { color: var(--orange); text-decoration: underline; }
.foot-credit a:hover { color: var(--white); }

/* ---------- Join: thank-you panel ---------- */
.thanks-panel {
  max-width: 560px; margin: 0 auto; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px 36px; background: var(--white); outline: none;
}
.thanks-tick {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  display: grid; place-items: center; font-size: 30px; font-weight: 700;
}
.thanks-panel h2 { font-size: 26px; font-weight: 600; color: var(--navy); margin-bottom: 14px; }
.thanks-panel p { font-size: 15.5px; color: #3c4255; line-height: 1.7; margin-bottom: 16px; }
.thanks-panel .junk-note { text-align: left; margin: 20px 0; }
.thanks-panel p a { color: var(--blue); text-decoration: underline; }
.thanks-panel .btn { margin-top: 8px; }
@media (max-width: 560px) { .thanks-panel { padding: 32px 22px; } }

/* ---------- Nav dropdown (Community) ---------- */
.nav-drop { position: relative; }
.nav-drop-btn {
  background: none; border: none; cursor: pointer; font-family: inherit;
  color: rgba(255, 255, 255, 0.72); font-size: 14.5px; font-weight: 500; padding: 0;
}
.nav-drop-btn:hover, .nav-drop-btn.active, .nav-drop.open .nav-drop-btn { color: var(--white); }
.nav-drop-menu {
  display: none; position: absolute; top: 100%; left: -16px; min-width: 170px;
  padding: 18px 0 8px; z-index: 60;
}
.nav-drop-menu::before {
  content: ''; position: absolute; inset: 10px 0 0 0; z-index: -1;
  background: var(--navy); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu,
.nav-drop.open .nav-drop-menu { display: block; }
.nav-links .nav-drop-menu a { display: block; padding: 10px 18px; }
.nav-links .nav-drop-menu a.active { color: var(--orange); }
.nav-links .nav-drop-menu a.active::after { display: none; }

@media (max-width: 900px) {
  .nav-drop { width: 100%; }
  .nav-drop-btn {
    display: block; width: 100%; text-align: left; padding: 13px 0 4px;
    font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45); cursor: default;
  }
  .nav-drop-btn span { display: none; }
  .nav-drop-menu { display: block; position: static; padding: 0 0 0 14px; min-width: 0; }
  .nav-drop-menu::before { display: none; }
  .nav-links .nav-drop-menu a { padding: 11px 0; }
}

/* ---------- Gallery: Medium stories ---------- */
.gal-actions { justify-content: center; margin-bottom: 36px; }
.gal-more { margin: 40px 0 0; }
.gal-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 28px;
  max-width: 1160px; margin: 0 auto;
}
.gal-grid > .muted-note { width: 100%; text-align: center; }
.gal-card {
  width: 360px; max-width: 100%; background: var(--white);
  border: 1px solid rgba(6,15,41,0.1); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
}
.gal-thumb {
  display: block; width: 100%; aspect-ratio: 210 / 297; padding: 0; border: none;
  background: #f1f4f9; cursor: zoom-in;
}
.gal-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gal-body { padding: 18px 20px 22px; }
.gal-date { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.gal-body h3 { font-size: 18px; line-height: 1.3; margin-bottom: 10px; }
.gal-link { color: var(--blue); font-weight: 600; font-size: 14.5px; }
.gal-link:hover { text-decoration: underline; }
@media (max-width: 820px) { .gal-card { width: 340px; } }
@media (max-width: 560px) {
  .gal-card { width: 100%; }
  .gal-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Events: booking ---------- */
.event-item .tag-ok   { color: #04618a; border-color: rgba(0, 161, 224, 0.45); }
.event-item .tag-few  { color: var(--navy); background: rgba(254, 156, 8, 0.18); border-color: transparent; }
.event-item .tag-full { color: var(--white); background: var(--navy); border-color: var(--navy); }
.booked-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 14.5px; color: #04618a;
  background: rgba(0, 161, 224, 0.1); border-radius: 100px; padding: 9px 16px;
}
.booking-note { font-size: 14px; color: var(--muted); font-style: italic; }
.event-actions .btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.booking-email { font-size: 13.5px; color: var(--muted); margin: -6px 0 2px; }
.booking-done { text-align: center; }
.booking-done .btn-row { justify-content: center; }
.booking-done .thanks-tick { margin: 0 auto 14px; }
@media (max-width: 560px) {
  .event-actions .btn, .booked-badge { width: 100%; justify-content: center; }
}

/* Sign-in: which code to use */
.code-tip {
  font-size: 13.5px; line-height: 1.6; color: var(--navy);
  background: rgba(254, 156, 8, 0.12); border-left: 3px solid var(--orange);
  border-radius: 8px; padding: 10px 14px; margin: 4px 0 0;
}

/* ---------- Admin: step 3 (members, attendees, activity, mobile) ---------- */
.admin-who { margin-top: 14px; font-size: 14px; color: var(--blue-light); }
.admin-bar-note { margin: 0; }
.admin-search, #attendee-event {
  font-family: var(--font-body); font-size: 14.5px; padding: 10px 14px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--mist);
  min-width: 260px; max-width: 100%; color: var(--ink);
}
.muted { color: var(--muted); font-size: 13px; }
.li-link { word-break: break-all; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.data-table td .chip { margin: 2px 3px 2px 0; }

.pill-level-admin    { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pill-level-helpdesk { background: rgba(254,156,8,0.18); color: #8a5a00; border-color: transparent; }
.pill-bk-attended    { background: rgba(0,161,224,0.14); color: #04618a; border-color: transparent; }
.pill-bk-no_show     { background: rgba(6,15,41,0.08); color: var(--navy); border-color: transparent; }
.pill-bk-cancelled   { background: transparent; color: var(--muted); }

/* Attendees: built for the reception desk, big tap targets */
.att-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; }
.att-stat {
  background: var(--mist); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 4px;
}
.att-stat span { font-size: 12px; color: var(--muted); }
.att-stat strong { font-size: 22px; color: var(--navy); font-weight: 700; }
.att-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.att-tools .admin-search { flex: 1 1 240px; }
.att-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.att-filter {
  font-family: var(--font-body); font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 8px 14px; border-radius: 100px; border: 1px solid var(--line);
  background: var(--white); color: var(--navy);
}
.att-filter.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.att-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.att-list > .muted-note { margin: 0; padding: 28px; text-align: center; }
.att-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--white);
}
.att-row:last-child { border-bottom: none; }
.att-row.is-here { background: rgba(0,161,224,0.06); }
.att-row.is-cancelled { opacity: 0.6; }
.att-check { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.att-check input { width: 26px; height: 26px; accent-color: var(--blue); cursor: pointer; }
.att-who { display: flex; flex-direction: column; min-width: 0; }
.att-who strong { font-size: 16px; color: var(--navy); }
.att-who span { font-size: 13px; color: var(--muted); }
.att-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.att-meta .pill { margin-left: 0; }
.att-li {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px;
  background: #0a66c2; color: #fff !important; font-weight: 700; font-size: 13px; text-decoration: none;
}
.att-actions { margin-top: 16px; }

/* Phones: tables become cards, attendee rows stack */
@media (max-width: 760px) {
  .admin-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-tab { padding: 10px 12px; white-space: nowrap; }
  .admin-search, #attendee-event { min-width: 0; width: 100%; }
  .admin-bar > * { width: 100%; }
  .admin-bar h2 { width: auto; }

  .table-scroll { border: none; overflow: visible; }
  .data-table.cards { min-width: 0; }
  .data-table.cards thead { display: none; }
  .data-table.cards tr {
    display: block; border: 1px solid var(--line); border-radius: 14px;
    padding: 10px 14px; margin-bottom: 12px; background: var(--white);
  }
  .data-table.cards td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 7px 0; border-bottom: 1px solid var(--line); text-align: right;
  }
  .data-table.cards td:last-child { border-bottom: none; }
  .data-table.cards td[data-label]::before {
    content: attr(data-label); font-family: var(--font-mono); font-size: 10.5px;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
    text-align: left; flex-shrink: 0;
  }
  .data-table.cards td.row-actions { justify-content: flex-end; flex-wrap: wrap; }
  .data-table.cards .empty-row { display: block; text-align: center; }

  .att-stats { grid-template-columns: repeat(3, 1fr); }
  .att-stat strong { font-size: 18px; }
  .att-row { grid-template-columns: auto 1fr; }
  .att-meta { grid-column: 1 / -1; justify-content: flex-start; padding-left: 58px; }
  .role-grid { grid-template-columns: 1fr; }
  .att-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Dashboard: details, bookings, history ---------- */
.role-tag {
  display: inline-block; font-size: 13px; font-weight: 600; margin: 4px 6px 0 0;
  padding: 5px 12px; border-radius: 100px; background: rgba(255,255,255,0.12); color: var(--white);
}
.dash-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: start; }
.dash-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  padding: 24px 26px;
}
.dash-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.dash-card-head h2 { font-size: 19px; font-weight: 600; color: var(--navy); }
.dash-card-head a.btn-mini { text-decoration: none; }
.dash-dl { display: grid; grid-template-columns: 96px 1fr; gap: 10px 14px; font-size: 14.5px; }
.dash-dl dt { color: var(--muted); font-size: 13px; padding-top: 1px; }
.dash-dl dd { color: var(--ink); word-break: break-word; }
.dash-dl a { color: var(--blue); }
.dash-empty { margin: 0; }
.dash-empty a { color: var(--blue); text-decoration: underline; }
.dash-event { padding: 14px 0; border-top: 1px solid var(--line); }
.dash-event:first-child { border-top: none; padding-top: 0; }
.dash-event h3 { font-size: 16.5px; font-weight: 600; color: var(--navy); margin: 4px 0 2px; }
.dash-event-when {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--blue); text-transform: uppercase;
}
.dash-event-actions { margin-top: 10px; gap: 8px; }
.dash-section { margin-top: 56px; }
.dash-past { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.dash-past-item {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; border-top: 1px solid var(--line); background: var(--white);
}
.dash-past-item:first-child { border-top: none; }
.dash-past-item strong { color: var(--navy); font-size: 15px; }
@media (max-width: 820px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-card { padding: 20px; }
  .dash-dl { grid-template-columns: 84px 1fr; }
  .dash-event-actions .btn-mini { flex: 1; text-align: center; }
}

/* ---------- Delete account ---------- */
.dash-account-sec { padding-top: 0; }
.dash-account {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 32px;
}
.dash-account h2 { font-size: 18px; font-weight: 600; color: var(--navy); }
.dash-account .muted-note { margin-top: 6px; }
.btn-danger { color: #b42318; border-color: rgba(180, 35, 24, 0.35); }
.btn-danger:hover { color: #fff; background: #b42318; border-color: #b42318; }
.btn-danger-solid { background: #b42318; color: #fff; }
.btn-danger-solid:hover { background: #912018; }
.member-delete { margin-left: auto; }
@media (max-width: 560px) {
  .dash-account .btn, .member-delete { width: 100%; justify-content: center; margin-left: 0; }
}

/* Guests and import */
.chip-guest { background: rgba(254,156,8,0.16); color: #8a5a00; }
#import-preview p { font-size: 14px; margin: 0 0 6px; }
.import-sample {
  font-size: 13.5px; background: var(--mist); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 14px; display: grid; gap: 4px;
}

/* ---------- People tab and person details ---------- */
.pf-id {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.03em;
  color: var(--navy); background: var(--mist); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 6px; white-space: nowrap;
}
.pf-id-hero { font-size: 13px; color: var(--white); background: rgba(255,255,255,0.12); border-color: transparent; padding: 5px 10px; }
.people-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip-count { opacity: 0.7; font-weight: 500; margin-left: 2px; }
.people-select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; max-width: 100%; }
.th-sort { background: none; border: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.th-sort.is-sorted { color: var(--blue); }
.people-pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 14px; font-size: 14px; color: var(--muted); }
.att-name { color: var(--navy); text-decoration: none; }
.att-name:hover strong { color: var(--blue); text-decoration: underline; }
.back-link { color: var(--blue-light); text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.person-tags { display: flex; flex-wrap: wrap; gap: 4px 0; align-items: center; }
.person-tags .pf-id-hero { margin: 4px 6px 0 0; }
.person-stats { grid-template-columns: repeat(4, 1fr); }
.person-desc { flex-basis: 100%; white-space: pre-line; }
.person-merge { margin-top: 16px; max-width: 420px; }
.dash-section .dash-card-head { margin-bottom: 12px; }
@media (max-width: 560px) {
  .person-stats { grid-template-columns: repeat(2, 1fr); }
  .people-select { width: 100%; }
}
.roles-form { margin-top: 14px; }
.roles-form .role-grid { margin-bottom: 6px; }
.roles-history { margin-top: 14px; }
.people-table .stack { display: inline-block; }
@media (max-width: 820px) { .people-table .stack { text-align: right; } }

/* People: summary cards */
.people-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.people-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--mist);
  font: inherit; cursor: pointer; transition: border-color .15s, background .15s;
}
.people-card span { font-size: 13px; color: var(--muted); }
.people-card strong { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.people-card:hover { border-color: var(--blue); }
.people-card.active { background: var(--navy); border-color: var(--navy); }
.people-card.active span { color: var(--blue-light); }
.people-card.active strong { color: var(--white); }
@media (max-width: 560px) {
  .people-cards { grid-template-columns: 1fr 1fr; }
  .people-card strong { font-size: 22px; }
}

/* Dashboard: Team page profile */
.team-photo-row { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.team-photo-row img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; }
.team-photo-row label { flex: 1; }

/* Log a call */
.call-picked { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip-x { border: 0; background: none; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 0 0 4px; color: inherit; }
.call-results { display: grid; gap: 4px; margin: 6px 0 10px; }
.call-hit { text-align: left; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
            background: none; cursor: pointer; font: inherit; color: inherit; }
.call-hit:hover { border-color: currentColor; }
.call-new summary { cursor: pointer; margin: 6px 0; }
.call-item p { margin: 6px 0 0; }

/* Admin > Reports */
.report-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.report-sub-h { font-size: 15px; margin: 18px 0 8px; }
.report-section { margin-top: 28px; }
.report-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 180px; padding-top: 8px; }
.report-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.report-bar-fill { width: 100%; max-width: 34px; min-height: 2px; background: var(--blue); border-radius: 6px 6px 0 0; }
.report-bar-n { font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.report-bar-l { font-size: 11px; color: var(--muted); margin-top: 6px; }
.report-rows { display: grid; gap: 12px; }
.report-row { display: grid; grid-template-columns: minmax(160px, 1fr) 2fr; gap: 16px; align-items: center; }
.report-track { height: 10px; background: var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 4px; }
.report-fill { height: 100%; background: var(--orange); }
@media (max-width: 640px) {
  .report-row { grid-template-columns: 1fr; gap: 6px; }
  .report-bar-l { font-size: 10px; }
}
.report-timeline { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.report-month { border: 1px solid var(--line); border-radius: 10px; padding: 8px; min-height: 64px; display: flex; flex-direction: column; gap: 4px; }
.report-month.has { border-color: var(--blue); background: rgba(0, 161, 224, 0.06); }
.report-month-l { font-size: 12px; font-weight: 600; color: var(--muted); }
.report-pill { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.2; }
.report-pill small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }

/* Join button stays visible in the header on phones and tablets */
.nav-join-mobile { display: none; }
@media (max-width: 900px) {
  .nav-join-mobile {
    display: inline-block;
    margin-left: auto;
    margin-right: 10px;
    background: var(--orange);
    color: var(--navy);
    font-weight: 600;
    font-size: 14px;
    padding: 9px 18px;
    border-radius: 100px;
    line-height: 1.2;
  }
  .nav-join-mobile:hover { background: var(--orange-light); }
  .nav-links a.nav-cta { display: none; }
}
@media (max-width: 380px) {
  .brand span { font-size: 17px; }
  .nav-join-mobile { padding: 8px 14px; margin-right: 8px; }
}

/* Bigger tap targets on touch screens (admin pages) */
@media (max-width: 900px) {
  .admin-panel a.att-name, .admin-panel .data-table a { display: inline-block; padding: 8px 0; }
  main .btn-mini { min-height: 44px; min-width: 44px; }
  main a.att-name, main .data-table a { display: inline-block; padding: 8px 0; }
  main .stack a, main .org-contact a { display: inline-block; padding: 8px 0; }
  .admin-tabs { flex-wrap: wrap; row-gap: 4px; }
  .back-link { display: inline-block; padding: 12px 0; }
}

/* Reports dashboard */
.dash-cards .people-card .report-sub { font-size: 12.5px; }
.trend { font-size: 10px; }
.trend-up { color: #1a9c5b; }
.trend-down { color: #d1453b; }
.trend-flat { color: var(--muted); }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; align-items: start; }
.dash-panel { border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; background: #fff; min-width: 0; }
.dash-panel h2 { font-size: 17px; margin: 0 0 12px; }
.dash-wide { grid-column: 1 / -1; }
.dash-note { font-size: 13px; color: var(--muted); margin: -4px 0 14px; }
.dash-stat-row { display: flex; gap: 28px; margin-bottom: 10px; }
.dash-stat-row strong { display: block; font-size: 24px; color: var(--navy); line-height: 1.1; }
.dash-stat-row span { font-size: 12.5px; color: var(--muted); }
.dash-chart { width: 100%; height: auto; display: block; overflow: visible; }
.dash-chart .axis { stroke: var(--line); stroke-width: 1; }
.dash-chart .bar-reg { fill: rgba(0, 161, 224, 0.28); }
.dash-chart .bar-att { fill: var(--orange); }
.dash-chart .att-group:hover .bar-att { fill: #e08800; }
.dash-chart .bar-n { font-size: 10px; fill: var(--navy); text-anchor: middle; font-weight: 600; }
.dash-chart .bar-l { font-size: 10px; fill: var(--muted); text-anchor: middle; }
.dash-chart .line { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; }
.dash-chart .area { fill: rgba(0, 161, 224, 0.1); }
.dash-chart .dot { fill: #fff; stroke: var(--blue); stroke-width: 2; }
.dash-legend { font-size: 12.5px; color: var(--navy); margin-top: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.dash-legend .key { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-left: 6px; }
.dash-legend .key:first-child { margin-left: 0; }
.dash-legend .key-reg { background: rgba(0, 161, 224, 0.28); }
.dash-legend .key-att { background: var(--orange); }
.funnel { display: grid; gap: 10px; max-width: 560px; }
.funnel-row { display: grid; grid-template-columns: 80px 1fr 32px; align-items: center; gap: 12px; font-size: 14px; }
.funnel-row strong { text-align: right; }
.funnel-track { background: #eef1f6; border-radius: 6px; height: 14px; }
.funnel-fill { height: 100%; border-radius: 6px; }
.funnel-0 { background: rgba(0, 161, 224, 0.35); }
.funnel-1 { background: var(--blue); }
.funnel-2 { background: var(--orange); }
.dash-details { margin-top: 16px; }
.dash-details summary { cursor: pointer; color: var(--blue); font-size: 14px; font-weight: 600; padding: 10px 0; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-stat { background: #f4f7fb; border-radius: 10px; padding: 12px 14px; }
.mini-stat strong { display: block; font-size: 22px; color: var(--navy); }
.mini-stat span { font-size: 12.5px; color: var(--muted); }
.dash-empty { margin-top: 0; }
@media (max-width: 900px) {
  .report-grid { grid-template-columns: 1fr; }
  .dash-panel { padding: 16px; }
}
.dash-chart .bar-li { fill: #0a66c2; }
.dash-legend .key-li { background: #0a66c2; }
.dash-stat-wrap { flex-wrap: wrap; row-gap: 12px; }
.dash-stat-wrap span .trend { margin-right: 2px; }
.li-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.li-upload label.btn-mini { cursor: pointer; display: inline-flex; align-items: center; }
.li-total { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--navy); }
.li-total input { width: 110px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.li-status { flex-basis: 100%; margin: 0; }
.li-status:empty { display: none; }

/* Public switches on Reports panels, and the Our growth page */
.dash-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pub-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 100px; padding: 4px 10px; cursor: pointer; white-space: nowrap; min-height: 32px; }
.pub-switch.on { color: #0b7a44; border-color: #9fd9b8; background: #ecf8f1; }
.pub-switch input { accent-color: #1a9c5b; margin: 0; }
.pub-switch input:disabled { cursor: not-allowed; }
.pub-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 13.5px; color: var(--navy);
  background: #f4f7fb; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
.pub-bar > span:first-child { flex: 1 1 260px; }
.pub-link { color: var(--blue); font-weight: 600; white-space: nowrap; }
.pub-note { margin: 8px 0 0; font-size: 12.5px; }

.growth-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.growth-stat { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: #fff; }
.growth-stat strong { display: block; font-family: var(--font-display); font-size: 34px; color: var(--navy); line-height: 1.1; }
.growth-stat span { font-size: 13.5px; color: var(--muted); }
.growth-single { grid-template-columns: 1fr; }
.growth-mentor-note { margin-top: 12px; }
.growth-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.growth-cta p { flex-basis: 100%; font-family: var(--font-display); font-size: 20px; color: var(--navy); margin: 0; }
.dash-legend a { color: var(--blue); }
@media (max-width: 600px) {
  .growth-stat { padding: 14px 16px; }
  .growth-stat strong { font-size: 26px; }
}
.pub-head { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

/* Event registration without signing in */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.register-signin { margin-top: 14px; font-size: 13px; }
.register-signin a { color: var(--blue); text-decoration: underline; }
/* Phones: the booking/register dialog becomes a full-height sheet, buttons full width */
@media (max-width: 560px) {
  .modal { padding: 0; place-items: end stretch; }
  .modal-card { border-radius: 18px 18px 0 0; max-height: 100dvh; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
  .modal-card .btn-row { flex-direction: column; align-items: stretch; }
  .modal-card .btn-row .btn { width: 100%; justify-content: center; text-align: center; }
  .modal-card input { font-size: 16px; } /* stops iPhone zooming into fields */
}

/* ---------- Phones: compact admin lists (People, Partners, Requests, Calls, Pairings) ---------- */
@media (max-width: 760px) {
  /* Count cards: one slim strip of four */
  #people-cards { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  #people-cards .people-card { padding: 8px 8px; border-radius: 10px; gap: 2px; }
  #people-cards .people-card span { font-size: 11px; line-height: 1.2; }
  #people-cards .people-card strong { font-size: 18px; }
  .dash-cards { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .dash-cards .people-card { padding: 10px; }
  .dash-cards .people-card strong { font-size: 20px; }
  .dash-cards .report-sub { font-size: 11px; }
  .att-stats { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .att-stat { padding: 8px 6px; }
  .att-stat span { font-size: 10.5px; }
  .att-stat strong { font-size: 17px; }

  /* Filters: search full width, the two dropdowns side by side */
  .att-tools { gap: 8px; }
  .att-tools .admin-search { flex: 1 1 100%; }
  .att-tools .people-select { flex: 1 1 calc(50% - 4px); width: auto; min-width: 0; }

  /* Card rows: tighter, labels inline and small, no lines between cells */
  .data-table.cards tr { padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; }
  .data-table.cards td { border-bottom: none; padding: 2px 0; font-size: 13.5px; justify-content: flex-start; text-align: left; }
  .data-table.cards td[data-label]::before { min-width: 84px; font-size: 9.5px; }
  .data-table.cards td:first-child { font-size: 15px; padding-bottom: 4px; }
  .data-table.cards td:first-child::before { display: none; }
  .data-table.cards td.row-actions { justify-content: flex-start; padding-top: 6px; }

  /* People: one compact row per person. Name and type on top, the rest on small lines. */
  .data-table.cards.people-table tr { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; row-gap: 2px; align-items: center; }
  .data-table.cards.people-table td { grid-column: 1 / -1; display: block; padding: 0; text-align: left; }
  .data-table.cards.people-table td::before { display: none !important; }
  .data-table.cards.people-table td[data-label="Name"] { grid-column: 1; grid-row: 1; font-size: 15px; line-height: 1.35; }
  .data-table.cards.people-table td[data-label="Name"] .muted { font-size: 12.5px; }
  .data-table.cards.people-table td[data-label="Type"] { grid-column: 2; grid-row: 1; align-self: start; }
  .data-table.cards.people-table td[data-label="Company"] { grid-column: 1; grid-row: 2; font-size: 12.5px; color: var(--muted); }
  .data-table.cards.people-table td[data-label="Company"] .stack br { display: none; }
  .data-table.cards.people-table td[data-label="Company"] .stack .muted::before { content: " · "; }
  .data-table.cards.people-table td[data-label="PF ID"] { grid-column: 1; grid-row: 3; }
  .data-table.cards.people-table td[data-label="PF ID"] .pf-id { font-size: 11px; padding: 1px 6px; }
  .data-table.cards.people-table td[data-label="Attended"] { grid-column: 2; grid-row: 3; font-size: 12px; color: var(--muted); text-align: right; }
  .data-table.cards.people-table td[data-label="Attended"]::after { content: " events"; }
  .data-table.cards.people-table td[data-label="Roles"],
  .data-table.cards.people-table td[data-label="City"],
  .data-table.cards.people-table td[data-label="Last event"] { display: none; }
  .data-table.cards.people-table td[data-label="Name"] .att-name { padding: 0; }
  .data-table.cards td .stack { text-align: left; }
  .data-table.cards.people-table td .stack { display: block; }

  /* Attendees: Gmail tools stack neatly */
  .att-share-group { width: 100%; }
}

/* Attendees: booking link and email tools */
.att-share { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 4px 0 16px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #f4f7fb; }
.att-share-group { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.att-share .muted { font-size: 12.5px; }
.att-new-only { font-size: 13px; margin: 0; }
.att-share-status { flex-basis: 100%; margin: 0; font-size: 13px; word-break: break-all; }
.att-share-status:empty { display: none; }
@media (max-width: 760px) {
  .att-share .btn-mini { min-height: 40px; }
}
/* Admin, person, organisation and dashboard pages: short header on phones so the work starts on screen one */
@media (max-width: 760px) {
  .page-hero-compact { padding-top: 28px; padding-bottom: 28px; }
  .page-hero-compact h1 { font-size: 30px; }
  .page-hero-compact .lede { display: none; }
  .page-hero-compact .watermark { opacity: .25; }
  .page-hero-compact + section, .page-hero-compact ~ section:first-of-type { padding-top: 24px; }
}
@media (max-width: 760px) {
  .att-filters { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .att-filter { padding: 8px 4px; font-size: 12.5px; text-align: center; }
  .att-stat strong { white-space: nowrap; font-size: 15px; }
  .att-row { padding: 10px 12px; gap: 10px; }
  .att-meta { padding-left: 54px; gap: 6px; }
}

/* ---------- Events page header: photo, intro and the next event ---------- */
.events-hero { padding: 88px 0 72px; min-height: min(520px, 70vh); display: flex; align-items: center; }
.events-hero > .wrap { width: 100%; }
.events-hero-photo {
  position: absolute; inset: 0; z-index: 0;
  background: url("../media/eventimages/events-hero.jpg") center 22% / cover no-repeat;
}
.events-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(6,15,41,.94) 0%, rgba(6,15,41,.78) 45%, rgba(6,15,41,.45) 100%);
}
/* Closing band on the Events page: community photo behind a blue wash */
.events-cta { position: relative; overflow: hidden;
  background: linear-gradient(120deg, rgba(0,113,179,.88), rgba(6,15,41,.9)), url("../media/eventimages/events-community.jpg") center 40% / cover no-repeat; }
.events-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.events-hero h1 { max-width: 14ch; }
.next-event {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 18px;
  padding: 24px; backdrop-filter: blur(6px); color: var(--white);
}
.next-event .muted-note { color: rgba(255,255,255,.7); margin: 0; }
.next-event-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin: 0 0 14px; }
.next-event-top { display: flex; gap: 16px; align-items: flex-start; }
.next-event-date { flex: 0 0 64px; text-align: center; background: var(--white); color: var(--navy); border-radius: 12px; padding: 8px 0; line-height: 1.1; }
.next-event-date strong { display: block; font-family: var(--font-display); font-size: 26px; }
.next-event-date span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.next-event-title { font-size: 20px; font-weight: 600; color: var(--white); margin: 0 0 6px; line-height: 1.25; }
.next-event-where { font-size: 14px; color: rgba(255,255,255,.78); margin: 0; line-height: 1.5; }
.next-event-where a { color: var(--blue-light); text-decoration: underline; }
.next-event-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 20px; }
.next-event-actions .btn-quiet { color: var(--white); border-color: rgba(255,255,255,.35); }
.next-event-actions .booked-badge { color: var(--white); }
.next-event-more { color: rgba(255,255,255,.8); font-size: 14px; text-decoration: underline; }
.events-upcoming-sec { padding-top: 72px; }
@media (max-width: 860px) {
  .events-hero::after { background: linear-gradient(180deg, rgba(6,15,41,.72) 0%, rgba(6,15,41,.9) 55%, rgba(6,15,41,.96) 100%); }
  .events-hero { padding: 48px 0 40px; }
  .events-hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .events-hero .lede { font-size: 16px; }
  .next-event { padding: 20px; }
  .next-event-actions .btn { flex: 1 1 auto; justify-content: center; text-align: center; }
  .events-upcoming-sec { padding-top: 48px; }
}
.next-event .tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 100px;
  background: rgba(255,255,255,.12); color: var(--white); border: 1px solid rgba(255,255,255,.25); margin: 0; }
.next-event .tag-few, .next-event .tag-full { background: var(--orange); color: var(--navy); border-color: var(--orange); }

/* Events header: the two community photos fade into each other every 7 seconds */
.events-hero-photo-2 { background-image: url("../media/eventimages/events-community.jpg"); background-position: center 16%; opacity: 0;
  animation: pf-hero-fade 14s ease-in-out infinite; }
@keyframes pf-hero-fade { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .events-hero-photo-2 { animation: none; } }

/* Events header without the next-event card */
.events-hero-single { grid-template-columns: 1fr; }
.events-hero-single h1 { max-width: 16ch; }
.events-hero-single .lede { max-width: 46ch; }
.events-hero-single .btn-row { margin-top: 28px; }
#events-upcoming, #events-past { scroll-margin-top: 110px; }

/* ---------- Justified paragraphs across the site ----------
   Hyphenation keeps the gaps between words even on narrow phones.
   Blocks that are deliberately centred keep their centring. */
p { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.home-intro p, .team-card p, .logo-panel p, .cta-band p, .empty-card p, .thanks-panel p,
.booking-done p, .sponsors p, .gal-grid > .muted-note, .att-list > .muted-note,
.data-table p, .growth-cta p { text-align: inherit; }
@media (max-width: 760px) { .founder-strip p { text-align: inherit; } }

/* ---------- About page ---------- */
.about-sec { padding: 80px 0; }
.about-tint { background: var(--mist); }
.about-narrow { max-width: 820px; }
.about-narrow .sec-head { margin-bottom: 28px; }
.about-text p { font-size: 17px; line-height: 1.75; color: var(--ink); margin: 0 0 18px; }
.about-mission { margin: 34px 0 0; padding: 26px 30px; border-left: 4px solid var(--orange); background: var(--mist); border-radius: 0 14px 14px 0; }
.about-mission p { font-family: var(--font-display); font-size: 21px; line-height: 1.5; color: var(--navy); margin: 0; }
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.about-grid-3 { grid-template-columns: repeat(3, 1fr); }
.about-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.about-card-tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); font-weight: 600; }
.about-card h3 { font-size: 19px; font-weight: 600; color: var(--navy); margin: 10px 0 10px; }
.about-card p { font-size: 15px; line-height: 1.65; color: var(--muted); margin: 0; }
.about-card ul { margin: 0; padding-left: 18px; }
.about-card li { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin-bottom: 8px; text-align: justify; hyphens: auto; }
.about-card li strong { color: var(--navy); }
.about-card a, .about-faq a { color: var(--blue); text-decoration: underline; }
.about-steps { margin: 10px 0 0; padding-left: 22px; }
.about-steps li { font-size: 16px; line-height: 1.65; color: var(--ink); margin-bottom: 12px; text-align: justify; hyphens: auto; }
.about-steps li strong { color: var(--navy); }
.about-faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.about-faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--navy); font-size: 16px; list-style: none; position: relative; padding-right: 48px; }
.about-faq summary::-webkit-details-marker { display: none; }
.about-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--orange); }
.about-faq details[open] summary::after { content: "\2212"; }
.about-faq details p { padding: 0 20px 18px; margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.about-sdg { margin-top: 30px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; }
.about-sdg h3 { font-size: 16px; font-weight: 600; color: var(--navy); margin: 0 0 14px; }
.sdg-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sdg { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--navy); background: var(--mist); border-radius: 100px; padding: 6px 14px 6px 6px; }
.sdg b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 12px; }
.about-partner-cta { margin-top: 28px; }
@media (max-width: 900px) {
  .about-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .about-sec { padding: 52px 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-text p { font-size: 16px; }
  .about-mission { padding: 20px; }
  .about-mission p { font-size: 18px; }
  .about-partner-cta .btn { width: 100%; justify-content: center; text-align: center; }
}

/* Menu groups: My account opens to the right edge */
.nav-drop-right .nav-drop-menu { left: auto; right: -16px; }
.nav-drop-btn { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1100px) { .nav-links { gap: 24px; } }

/* Photo crop dialog (one standard for every profile photo) */
.photo-crop { z-index: 200; }
.photo-crop-card { max-width: 380px; text-align: center; }
.photo-crop-card .muted-note { text-align: center; margin-bottom: 16px; }
.pc-stage { position: relative; width: 280px; height: 280px; margin: 0 auto 14px; border-radius: 14px; overflow: hidden; touch-action: none; }
.pc-stage canvas { display: block; cursor: grab; }
.pc-stage canvas:active { cursor: grabbing; }
.pc-ring { position: absolute; inset: 0; pointer-events: none; border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(6,15,41,.45); outline: 2px solid rgba(255,255,255,.9); outline-offset: -2px; }
.pc-zoom { display: flex; align-items: center; gap: 10px; justify-content: center; font-size: 14px; margin-bottom: 10px; }
.pc-zoom input { width: 180px; accent-color: var(--orange); }
.pc-nudge { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.pc-nudge .btn-mini { min-width: 40px; min-height: 36px; }
.photo-crop-card .btn-row { justify-content: center; }
#team-photo-preview, #person-photo-preview { border-radius: 50%; object-fit: cover; }
.profile-note { margin: -4px 0 12px; font-size: 13px; }
.radio-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.area-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; }
@media (max-width: 480px) { .area-grid { grid-template-columns: 1fr; } }

/* ---------- Mentors page ---------- */
.mentors-sec { padding: 64px 0 80px; }
.mentors-note { background: #fff6e5; border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; padding: 14px 18px; margin-bottom: 22px; font-size: 15px; color: var(--navy); }
.mentors-note a { color: var(--blue); text-decoration: underline; }
.mentor-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.mentor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.mentor-card { border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px 22px; background: var(--white);
  display: flex; flex-direction: column; align-items: center; text-align: center; }
.mentor-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; background: var(--mist); }
.mentor-initials { display: grid; place-items: center; font-family: var(--font-display); font-size: 36px; color: var(--blue); }
.mentor-card h3 { font-size: 19px; font-weight: 600; color: var(--navy); margin: 0 0 6px; }
.mentor-card .mentor-headline { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 0 0 12px; text-align: center; }
.mentor-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 12px; }
.mentor-foot { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 16px; }
.mentor-status { font-size: 12px; padding: 3px 10px; border-radius: 100px; background: var(--mist); color: var(--muted); }
.mentor-status.ok { background: #ecf8f1; color: #0b7a44; }
.mentor-li { margin-top: auto; width: 100%; justify-content: center; }
.mentors-empty { grid-column: 1 / -1; text-align: center; padding: 32px 0; }
@media (max-width: 600px) {
  .mentors-sec { padding: 40px 0 56px; }
  .mentor-grid { grid-template-columns: 1fr; }
}
.mentor-tags .tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 100px;
  background: rgba(0,161,224,.1); color: #04618a; border: 1px solid rgba(0,161,224,.3); margin: 0; }
/* Mentors: 5 cards per row on desktop, fewer on smaller screens */
.mentor-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.mentor-card { padding: 22px 16px 18px; }
.mentor-photo { width: 104px; height: 104px; }
.mentor-card h3 { font-size: 17px; }
.mentor-li { font-size: 14px; padding-left: 10px; padding-right: 10px; }
@media (max-width: 1150px) { .mentor-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .mentor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .mentor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .mentor-photo { width: 84px; height: 84px; } .mentor-card .mentor-headline { font-size: 13px; } }
@media (max-width: 380px)  { .mentor-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .mentor-li { font-size: 13.5px; min-height: 40px; padding: 8px 10px; }
  .mentor-li .long { display: none; }
  .mentor-li { text-transform: none; }
  .mentor-status { font-size: 11.5px; }
}
.mentor-li .short { display: none; }
@media (max-width: 680px) { .mentor-li .short { display: inline; } .mentor-li .long { display: none; } }

/* Home: Next event strip and four Explore cards */
.next-strip { padding: 0 0 72px; }
.next-strip-inner { display: flex; align-items: center; gap: 22px; background: var(--navy); color: var(--white);
  border-radius: 20px; padding: 24px 28px; }
.next-strip-date { flex: 0 0 74px; text-align: center; background: var(--white); color: var(--navy); border-radius: 14px; padding: 10px 0; line-height: 1.1; }
.next-strip-date strong { display: block; font-family: var(--font-display); font-size: 30px; }
.next-strip-date span { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.next-strip-text { flex: 1; min-width: 0; }
.next-strip-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin: 0 0 4px; }
.next-strip-text h2 { font-size: 22px; font-weight: 600; color: var(--white); margin: 0 0 4px; }
.next-strip-text p:not(.next-strip-label) { color: rgba(255,255,255,.75); margin: 0; font-size: 15px; text-align: left; }
.next-strip-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.next-strip-more { color: rgba(255,255,255,.8); text-decoration: underline; font-size: 14px; }
.teaser-row { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .teaser-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .next-strip { padding-bottom: 48px; }
  .next-strip-inner { flex-wrap: wrap; padding: 20px; gap: 16px; }
  .next-strip-actions { width: 100%; }
  .next-strip-actions .btn { flex: 1; justify-content: center; text-align: center; }
}
@media (max-width: 560px) { .teaser-row { grid-template-columns: 1fr; } }
.teaser-card p, .next-strip p { text-align: left; }
.next-strip { padding: 64px 0 0; }
.next-strip + section { padding-top: 72px; }
.founder-card .role { text-align: left; }
@media (max-width: 760px) { .next-strip { padding-top: 40px; } .next-strip + section { padding-top: 48px; } }

/* Nudge: a short call to action inside long pages */
.nudge { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap;
  margin-top: 28px; padding: 18px 22px; border-radius: 16px; background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--orange); }
.about-sec:not(.about-tint) .nudge { background: var(--mist); }
.nudge p { margin: 0; font-size: 16px; color: var(--navy); text-align: left; }
.nudge-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .nudge { padding: 16px; }
  .nudge-actions { width: 100%; }
  .nudge-actions .btn { flex: 1 1 auto; justify-content: center; text-align: center; }
}

/* Team nudge, Mentors header buttons, event Share row */
.team-nudge-sec { padding: 0 0 72px; }
.team-nudge-sec .nudge { background: var(--mist); margin-top: 0; }
.share-row { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: 4px; }
.share-label { font-size: 13px; color: var(--muted); margin-right: 2px; }
.share-btn { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 100px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--navy); font: inherit; font-size: 13.5px; font-weight: 600;
  text-decoration: none; cursor: pointer; }
.share-btn:hover { border-color: var(--blue); color: var(--blue); }
.share-btn[aria-label="Share on LinkedIn"] { color: #0a66c2; font-weight: 700; }
.share-wa { color: #128c4b; }
@media (max-width: 640px) { .share-row { width: 100%; margin: 6px 0 0; } }
.page-hero .btn-row { margin-top: 26px; }

/* Like this page */
.like-sec { padding: 0 0 56px; }
.like-bar { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.like-q { margin: 0; font-size: 15px; color: var(--muted); text-align: center; }
.like-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; min-height: 44px; border-radius: 100px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--navy); font: inherit; font-weight: 600; cursor: pointer;
  transition: transform .12s, border-color .15s; }
.like-btn:hover { border-color: #e0245e; }
.like-btn:active { transform: scale(.96); }
.like-heart { color: #e0245e; font-size: 20px; line-height: 1; }
.like-btn.on { border-color: #f4b6c8; background: #fff2f6; }
.like-count { font-size: 13px; color: var(--muted); font-weight: 600; padding-left: 8px; border-left: 1px solid var(--line); }
.thanks-actions { justify-content: center; margin-top: 18px; }

/* Mentor quotes (card and Reports) */
.mentor-why-quote { margin: 0 0 12px; font-size: 13.5px; font-style: italic; color: var(--navy); line-height: 1.5; text-align: center; }
.mentor-why { margin-top: 4px; }
.quote-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 14px; }
.quote-list blockquote { margin: 0; padding: 14px 16px; background: var(--mist); border-radius: 12px; border-left: 3px solid var(--orange); }
.quote-list p { margin: 0 0 8px; font-style: italic; color: var(--navy); text-align: left; }
.quote-list cite { font-style: normal; font-size: 13px; color: var(--muted); }

/* ---------- Instagram message button (Contact) ---------- */
.msg-instagram { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }

/* ---------- Get the app ---------- */
.foot-app {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.22); color: var(--white);
  border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer;
}
.foot-app:hover { background: rgba(255,255,255,0.16); }
.foot-app img { border-radius: 4px; }
.foot-app[hidden], .app-banner[hidden] { display: none; }
.app-banner {
  display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 16px 20px;
  border: 1px solid rgba(6,15,41,0.12); border-radius: 14px; background: #fff7ef;
}
.app-banner img { border-radius: 10px; flex-shrink: 0; }
.app-banner div { flex: 1; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.app-banner span { font-size: 14px; opacity: 0.8; }
.app-tip {
  position: fixed; inset: 0; z-index: 1000; background: rgba(6,15,41,0.55);
  display: flex; align-items: flex-end; justify-content: center; padding: 16px;
}
.app-tip[hidden] { display: none; }
.app-tip-card {
  background: #fff; color: var(--navy); border-radius: 18px; padding: 24px; max-width: 380px; width: 100%;
  text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.3); margin-bottom: max(8px, env(safe-area-inset-bottom));
}
.app-tip-card img { border-radius: 12px; display: block; margin: 0 auto; }
.app-tip-card h2 { font-size: 20px; margin: 10px 0 12px; }
.app-tip-card ol { text-align: left; margin: 0 0 18px; padding-left: 20px; line-height: 1.6; }
.app-tip-card ol li { text-align: left; }
@media (min-width: 700px) { .app-tip { align-items: center; } }
@media (max-width: 560px) {
  .app-banner { flex-wrap: wrap; }
  .app-banner .btn { width: 100%; }
}

/* ---------- Messenger bubble ---------- */
.chat-bubble {
  position: fixed; z-index: 900; right: max(18px, env(safe-area-inset-right)); bottom: calc(96px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 8px; height: 56px; min-width: 56px; padding: 0 16px;
  border-radius: 999px; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #00b2ff, #006aff 55%, #a033ff);
  box-shadow: 0 8px 24px rgba(0,60,180,0.35); transition: transform .15s ease;
}
.chat-bubble:hover { transform: translateY(-2px); color: #fff; }
.chat-bubble svg { width: 26px; height: 26px; fill: #fff; flex-shrink: 0; }
.chat-bubble-label { font-weight: 600; font-size: 15px; white-space: nowrap; }
@media (max-width: 700px) {
  .chat-bubble { padding: 0; justify-content: center; width: 56px; height: 56px; right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); }
  .chat-bubble-label { display: none; }
}
@media print { .chat-bubble { display: none; } }

/* ---------- Footer tap targets on phones ---------- */
@media (max-width: 700px) {
  .foot-links { gap: 28px 40px; }
  .foot-col a { padding: 0; margin-bottom: 0; font-size: 15px; min-height: 44px; display: flex; align-items: center; }
  .foot-app { min-height: 44px; margin-top: 8px; }
  .site-footer { padding-bottom: 160px; }
}
.msg-btn svg.ig-icon { fill: none; stroke: var(--white); stroke-width: 2; }
.msg-btn svg.ig-icon .ig-dot { fill: var(--white); stroke: none; }
@media (min-width: 701px) { .site-footer { padding-bottom: 150px; } }

/* ---------- Photo headers: community photos behind the page title ---------- */
.photo-hero { position: relative; overflow: hidden; isolation: isolate; }
.photo-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--hero-img) var(--hero-pos, center) / cover no-repeat;
}
.photo-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(6,15,41,.94) 0%, rgba(6,15,41,.8) 45%, rgba(6,15,41,.5) 100%);
}
.home-intro.photo-hero::after { background: linear-gradient(180deg, rgba(6,15,41,.82), rgba(6,15,41,.72) 50%, rgba(6,15,41,.9)); }
.photo-hero > .wrap { position: relative; z-index: 2; }
@media (max-width: 860px) {
  .photo-hero::after { background: linear-gradient(180deg, rgba(6,15,41,.6) 0%, rgba(6,15,41,.78) 55%, rgba(6,15,41,.9) 100%); }
}
.pill-nofb { background: #fff1e0; color: #8a4b00; }

/* ---------- Blended photo header: photo sits on the right and melts into the brand gradient ---------- */
.photo-hero.photo-blend {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-soft) 55%, var(--blue) 145%);
}
.photo-hero.photo-blend::before {
  left: 30%;
  filter: saturate(.85) contrast(1.05);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 25%, #000 55%, #000 85%, rgba(0,0,0,.6) 100%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 25%, #000 55%, #000 85%, rgba(0,0,0,.6) 100%);
}
.photo-hero.photo-blend::after {
  background:
    linear-gradient(90deg, rgba(6,15,41,.92) 0%, rgba(6,15,41,.55) 40%, rgba(6,15,41,.15) 75%, rgba(6,15,41,.35) 100%),
    linear-gradient(180deg, rgba(0,113,179,.28), rgba(6,15,41,.35));
}
@media (max-width: 860px) {
  .photo-hero.photo-blend::before {
    left: 0;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
  }
  .photo-hero.photo-blend::after {
    background: linear-gradient(180deg, rgba(6,15,41,.45) 0%, rgba(6,15,41,.75) 50%, rgba(6,15,41,.92) 100%),
                linear-gradient(180deg, rgba(0,113,179,.25), transparent);
  }
}

/* ---------- Whole-photo header: the full group photo sits on the right and fades into the banner colour ---------- */
.photo-hero.photo-fit { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-soft) 55%, var(--blue) 145%); }
.photo-hero.photo-fit::before {
  left: auto; right: 0; top: 0; bottom: 0; height: 100%; width: auto;
  aspect-ratio: var(--hero-ratio, 4/3);
  background-size: cover; background-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}
.photo-hero.photo-fit::after {
  background: linear-gradient(90deg, rgba(6,15,41,.85) 0%, rgba(6,15,41,.45) 45%, rgba(6,15,41,.2) 100%),
              linear-gradient(180deg, rgba(0,113,179,.22), rgba(6,15,41,.3));
}
@media (max-width: 860px) {
  .photo-hero.photo-fit::before {
    left: 0; width: 100%; aspect-ratio: auto; background-position: var(--hero-pos, center);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
  }
  .photo-hero.photo-fit::after {
    background: linear-gradient(180deg, rgba(6,15,41,.45) 0%, rgba(6,15,41,.75) 55%, rgba(6,15,41,.92) 100%);
  }
}

/* ==========================================================================
   Join page 2.0: split screen on desktop, compact header and big tap targets on phones
   ========================================================================== */
section.join2 {
  padding: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: calc(100vh - 74px); background: var(--mist);
}
.join2-panel {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 60%, #0b2f5c 100%);
  color: var(--white); position: relative; overflow: hidden;
}
.join2-panel::after {
  content: ""; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px;
  background: url("../media/pf-badge.png") center / contain no-repeat; opacity: .08; pointer-events: none;
}
.join2-panel-inner {
  position: sticky; top: 74px; padding: 88px 56px 64px max(32px, calc((100vw - var(--wrap)) / 2 + 32px));
  max-width: calc(560px + max(32px, calc((100vw - var(--wrap)) / 2 + 32px)));
}
.join2-panel .eyebrow { color: var(--blue-light); margin-bottom: 22px; }
.join2-panel h1 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; margin-bottom: 18px; }
.join2-panel h1 em { font-style: italic; color: var(--orange); }
.join2-lede { color: rgba(255,255,255,.8); font-size: 16px; line-height: 1.65; margin-bottom: 30px; text-align: left; }
.join2-reasons { list-style: none; display: grid; gap: 16px; margin-bottom: 34px; }
.join2-reasons li { display: flex; align-items: center; gap: 14px; font-size: 15px; color: rgba(255,255,255,.92); }
.join2-ico {
  flex: 0 0 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(127, 212, 255, .12); border: 1px solid rgba(127, 212, 255, .25);
}
.join2-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--blue-light); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.join2-note { font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,.7); text-align: left; border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; }
.join2-note strong { color: var(--white); }
.join2-sign { margin-top: 28px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); }

.join2-main { padding: 72px max(32px, calc((100vw - var(--wrap)) / 2 + 32px)) 72px 64px; }
#join-area, #join-thanks { max-width: 600px; }
.join2-steps { list-style: none; display: flex; align-items: center; gap: 12px; margin-bottom: 30px; font-size: 14px; color: var(--muted); }
.join2-steps li { display: flex; align-items: center; gap: 10px; }
.join2-steps li + li::before { content: ""; width: 48px; height: 1px; background: var(--line); margin-right: 2px; }
.join2-steps li span {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--line); background: var(--white); color: var(--muted);
}
.join2-steps li.is-current { color: var(--navy); font-weight: 600; }
.join2-steps li.is-current span { border-color: var(--blue); color: var(--blue); background: rgba(0,161,224,.08); }
.join2-steps li.is-done span { border-color: var(--blue); background: var(--blue); color: var(--white); }

.join2-title { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; margin-bottom: 6px; outline: none; }
.join2-sub { color: var(--muted); font-size: 15px; margin-bottom: 22px; text-align: left; }
.join2-sub a { color: var(--blue); font-weight: 600; }
.join2-step { display: flex; flex-direction: column; gap: 16px; }
.join2-step[hidden] { display: none; }

/* Role cards */
.role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form .role-card, .role-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 18px 18px 16px; border-radius: 14px; background: var(--white); border: 1.5px solid var(--line);
  cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; min-height: 132px;
}
.contact-form .role-card-wide, .role-card-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 0; gap: 14px; }
.join2-reasons .short { display: none; }
.role-card input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.role-card:hover { border-color: rgba(0,161,224,.5); }
.role-card:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(0,161,224,.35); }
.role-card:has(input:checked) { border-color: var(--blue); background: #f0faff; box-shadow: 0 6px 18px rgba(0,161,224,.12); }
.role-ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(0,161,224,.1);
}
.role-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.role-text { display: flex; flex-direction: column; gap: 4px; padding-right: 22px; }
.role-text strong { font-family: var(--font-display); font-size: 16px; color: var(--navy); }
.role-text small { font-size: 13.5px; font-weight: 400; color: var(--muted); line-height: 1.45; }
.role-tick {
  position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--white);
}
.role-card:has(input:checked) .role-tick { background: var(--blue); border-color: var(--blue); }
.role-card:has(input:checked) .role-tick::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px;
  border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Details */
.join2-form input:not([type=checkbox]), .join2-form select, .join2-form textarea { font-size: 16px; background: var(--white); min-height: 48px; }
.join2-form input[type=checkbox] { width: 20px; height: 20px; min-height: 0; margin-top: 2px; accent-color: var(--blue); }
.join2-form textarea { min-height: 0; }
.join2-form [aria-invalid="true"]:not([type=checkbox]) { border-color: #d9822b; box-shadow: 0 0 0 3px rgba(254,156,8,.18); }
.prefix-input { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; background: var(--white); overflow: hidden; }
.prefix-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,161,224,.18); }
.prefix-input .prefix { display: flex; align-items: center; padding: 0 4px 0 14px; color: var(--muted); font-weight: 400; font-size: 15px; white-space: nowrap; background: var(--mist); border-right: 1px solid var(--line); padding-right: 10px; }
.contact-form .prefix-input input { border: 0; border-radius: 0; min-width: 0; box-shadow: none; }
.contact-form .prefix-input input[aria-invalid="true"] { box-shadow: none; }
.prefix-input:has(input[aria-invalid="true"]) { border-color: #d9822b; box-shadow: 0 0 0 3px rgba(254,156,8,.18); }
.field-error { display: none; text-align: left; margin-top: -8px; font-size: 13.5px; color: #8a4b00; font-weight: 500; }
.field-error.show { display: block; }
.join2-mentor { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; }
.join2-mentor h3 { font-size: 17px; color: var(--navy); }
.promise-box {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--orange);
  border-radius: 12px; padding: 18px 20px; font-size: 14.5px; line-height: 1.6; color: var(--ink);
}
.promise-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.promise-intro { color: var(--muted); font-style: italic; margin-bottom: 10px; text-align: left; }
.promise-box ol { padding-left: 20px; display: grid; gap: 8px; }
.promise-box li { text-align: left; }
.promise-foot { margin-top: 10px; font-size: 13.5px; color: var(--muted); font-style: italic; text-align: left; }
.contact-form .promise-check, .contact-form .consent-check { font-size: 15px; }
.join2-more { border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.join2-more summary { cursor: pointer; padding: 14px 16px; font-weight: 600; font-size: 14.5px; color: var(--blue); list-style: none; }
.join2-more summary::-webkit-details-marker { display: none; }
.join2-more summary::before { content: "+ "; }
.join2-more[open] summary::before { content: "\2212 "; }
.join2-more > label { padding: 0 16px 16px; }
.join2-actions { display: flex; gap: 12px; align-items: center; margin-top: 6px; }
.join2-actions .btn[hidden] { display: none; }
.contact-form .join2-actions button { align-self: auto; margin-top: 0; }
.join2-actions [data-next], .join2-actions [data-submit] { flex: 1; justify-content: center; min-height: 52px; font-size: 16px; }
#join-thanks .thanks-panel { margin: 0; }

/* Tablet */
@media (max-width: 980px) {
  section.join2 { grid-template-columns: 1fr; min-height: 0; }
  .join2-panel-inner { position: static; padding: 48px 32px 40px; max-width: none; }
  .join2-panel::after { width: 240px; height: 240px; right: -70px; bottom: -70px; }
  .join2-main { padding: 40px 32px 56px; }
  #join-area, #join-thanks { max-width: 640px; margin: 0 auto; }
  .join2-reasons { grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 0; }
  .join2-reasons li { flex-direction: column; align-items: flex-start; font-size: 14px; }
  .join2-note, .join2-sign { display: none; }
}

/* Phone: compact header so the form starts on screen one; buttons stay in reach */
@media (max-width: 640px) {
  .join2-panel-inner { padding: 18px 16px 16px; }
  .join2-panel .eyebrow { display: none; }
  .join2-panel h1 { font-size: 22px; margin-bottom: 12px; }
  .join2-lede { display: none; }
  .join2-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
  .join2-reasons li { flex-direction: row; align-items: center; gap: 6px; font-size: 12.5px; padding: 5px 10px 5px 6px;
    border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
  .join2-reasons .long { display: none; }
  .join2-reasons .short { display: inline; }
  .join2-ico { flex: 0 0 20px; height: 20px; border: 0; background: none; }
  .join2-ico svg { width: 15px; height: 15px; }
  .join2-main { padding: 22px 16px 0; }
  .join2-steps { margin-bottom: 18px; font-size: 13px; gap: 8px; }
  .join2-steps li + li::before { width: 22px; }
  .join2-title { font-size: 22px; }
  .join2-sub { font-size: 14px; margin-bottom: 12px; }
  .role-cards { gap: 10px; }
  .contact-form .role-card, .role-card { padding: 14px 12px 12px; min-height: 124px; gap: 8px; }
  .contact-form .role-card-wide, .role-card-wide { min-height: 0; padding: 12px; }
  .role-text strong { font-size: 15px; }
  .role-text small { font-size: 12.5px; }
  .role-ico { width: 34px; height: 34px; }
  .role-ico svg { width: 19px; height: 19px; }
  .role-tick { top: 10px; right: 10px; }
  .join2-form .form-row { grid-template-columns: 1fr; gap: 16px; }
  .promise-box { padding: 14px 14px; font-size: 14px; }
  .join2-actions {
    position: sticky; bottom: 0; z-index: 5; margin: 6px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(244,247,251,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--line);
  }
  .join2-actions [data-back] { flex: 0 0 auto; padding-left: 16px; padding-right: 16px; }
  #join-thanks { padding-bottom: 32px; }
}
/* The Join buttons own the bottom of the screen on phones, so the Messenger bubble steps aside there */
@media (max-width: 640px) { body:has(.join2) .chat-bubble { display: none; } }
.join2-form input[type=checkbox][aria-invalid="true"] { outline: 2px solid #d9822b; outline-offset: 2px; }
.mentor-verified { display: inline-flex; align-items: center; gap: 4px; margin: -4px auto 8px; padding: 3px 10px; border-radius: 999px;
  background: rgba(0,161,224,.1); color: #04618a; font-size: 12.5px; font-weight: 600; }
