/* ===========================================================
   CHS ROBOTICS — robot / tech themed styles
   =========================================================== */

/* CHS school colors: black · white · gold · teal */
:root {
  --bg:        #0a0c0c;   /* near-black */
  --bg-2:      #101414;
  --panel:     #121717;
  --panel-2:   #18201f;
  --ink:       #f4f8f7;   /* white */
  --muted:     #9bb0ad;   /* muted teal-grey */
  --line:      #25302e;

  /* TEAL — primary accent (legacy var name --cyan kept to avoid churn) */
  --cyan:      #1fd1be;
  --cyan-dim:  #14a594;

  /* GOLD — secondary accent (legacy var name --amber kept) */
  --amber:     #f4c430;
  --gold-dim:  #c79a16;

  /* keep these mapped onto brand colors so old references stay on-palette */
  --magenta:   #f4c430;   /* -> gold */
  --green:     #1fd1be;   /* -> teal */
  --navy:      #0f1413;   /* -> deep black-teal */

  --glow-cyan: 0 0 12px rgba(31, 209, 190, .55);
  --glow-gold: 0 0 12px rgba(244, 196, 48, .50);
  --radius:    14px;
  --font-disp: 'Orbitron', system-ui, sans-serif;
  --font-body: 'Rajdhani', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(31, 209, 190, .16), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(244, 196, 48, .10), transparent 55%);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ---------- Animated backdrops ---------- */
.circuit-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .35;
  background-image:
    linear-gradient(rgba(31, 209, 190, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 209, 190, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 35%, #000 30%, transparent 80%);
  animation: drift 24s linear infinite;
}
@keyframes drift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 44px 88px, 88px 44px; }
}
.scanline {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom, transparent 0, transparent 3px, rgba(0, 0, 0, .18) 4px);
  mix-blend-mode: multiply;
  opacity: .4;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem clamp(1rem, 4vw, 3rem);
  background: rgba(10, 12, 12, .78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .75rem; }
.brand-bot { color: var(--cyan); filter: drop-shadow(var(--glow-cyan)); display: flex; }
.eye { animation: eyepulse 2.4s ease-in-out infinite; }
@keyframes eyepulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.antenna-blink { animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 0%,70% { opacity: 1; } 71%,100% { opacity: .2; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-disp);
  font-weight: 900;
  letter-spacing: .08em;
  font-size: 1.15rem;
}
.brand-sub { font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.site-nav { display: flex; gap: 1.4rem; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .82rem;
  transition: color .2s, text-shadow .2s;
}
.site-nav a:hover { color: var(--cyan); text-shadow: var(--glow-cyan); }
.site-nav a.nav-members {
  color: var(--amber);
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
  padding: .3rem .7rem;
}
.site-nav a.nav-members:hover { color: var(--amber); background: rgba(244,196,48,.12); text-shadow: var(--glow-gold); }
/* Glowing "Sponsor Us" call-to-action in the header nav (magenta — matches the Nibble tier
   so it doesn't clash with the gold ✨). */
.site-nav a.nav-sponsor {
  color: #2b0a1c;
  background: #ff5ca6;            /* same magenta as the Nibble tier */
  border-radius: 8px;
  padding: .35rem .8rem;
  box-shadow: 0 0 12px rgba(255, 92, 166, .6);
  animation: sponsorPulse 2.6s ease-in-out infinite;
}
.site-nav a.nav-sponsor:hover {
  color: #2b0a1c;
  text-shadow: none;
  box-shadow: 0 0 22px rgba(255, 92, 166, .95);
}
@keyframes sponsorPulse {
  0%, 100% { box-shadow: 0 0 9px rgba(255, 92, 166, .55); }
  50%      { box-shadow: 0 0 20px rgba(255, 92, 166, .95); }
}
/* "Join the team" call-to-action button in the header nav */
.site-nav .nav-join {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .82rem;
  cursor: pointer;
  color: #04121a;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dim));
  border: none;
  border-radius: 8px;
  padding: .35rem .8rem;
  box-shadow: var(--glow-cyan);
  transition: box-shadow .2s, transform .15s;
}
.site-nav .nav-join:hover { box-shadow: 0 0 22px rgba(31, 209, 190, .8); }
.site-nav .nav-join:active { transform: translateY(1px); }

/* ---------- Join modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(4, 7, 7, .72);
  backdrop-filter: blur(4px);
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem clamp(1.2rem, 4vw, 1.8rem);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
}
.modal h2 {
  font-family: var(--font-disp);
  font-weight: 900;
  font-size: 1.4rem;
  margin: 0 0 .35rem;
  color: var(--cyan);
}
.modal-sub { color: var(--muted); font-size: .92rem; margin: 0 0 1.2rem; }
.modal-close {
  position: absolute;
  top: .6rem; right: .8rem;
  background: none; border: none;
  color: var(--muted);
  font-size: 1.6rem; line-height: 1;
  cursor: pointer;
  transition: color .2s;
}
.modal-close:hover { color: var(--ink); }
.modal .field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .9rem; }
.modal .field > span {
  font-size: .74rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.modal .field input {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .6rem .7rem;
  transition: border-color .2s, box-shadow .2s;
}
.modal .field input:focus {
  outline: none;
  border-color: var(--cyan-dim);
  box-shadow: 0 0 0 2px rgba(31, 209, 190, .18);
}
.form-msg { font-size: .9rem; margin: 0 0 .6rem; min-height: 1.1em; }
.form-msg.error { color: #ff7a7a; }
.form-msg.ok { color: var(--cyan); }
.modal-actions { display: flex; gap: .7rem; justify-content: flex-end; margin-top: .3rem; }
.modal-actions .btn { padding: .65rem 1.2rem; cursor: pointer; }
.modal-actions .btn:disabled { opacity: .55; cursor: default; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 9vw, 7rem) clamp(1rem, 5vw, 3rem) clamp(2rem, 5vw, 4rem);
  max-width: 1100px;
  margin: 0 auto;
}
.kicker {
  font-family: var(--font-disp);
  letter-spacing: .22em;
  font-size: .72rem;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1rem;
  text-transform: uppercase;
}
.kicker .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: eyepulse 1.6s ease-in-out infinite;
}
.hero h1 {
  font-family: var(--font-disp);
  font-weight: 900;
  font-size: clamp(2.1rem, 6.5vw, 4.4rem);
  line-height: 1.04;
  margin: 0 0 1.1rem;
  letter-spacing: .01em;
}
.glitch {
  position: relative;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  overflow: hidden;
  opacity: .8;
}
.glitch::before { color: var(--amber); animation: glitch 3.2s infinite; clip-path: inset(0 0 55% 0); }
.glitch::after  { color: #ffffff;      animation: glitch 2.6s infinite reverse; clip-path: inset(55% 0 0 0); opacity: .55; }
@keyframes glitch {
  0%, 92%, 100% { transform: translate(0, 0); }
  93% { transform: translate(-2px, 1px); }
  95% { transform: translate(2px, -1px); }
  97% { transform: translate(-1px, -1px); }
}
.lede {
  max-width: 640px;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--muted);
  margin: 0 0 2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.btn {
  font-family: var(--font-disp);
  font-weight: 700;
  letter-spacing: .06em;
  font-size: .82rem;
  text-transform: uppercase;
  text-decoration: none;
  padding: .85rem 1.6rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
  display: inline-block;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dim));
  color: #04121a;
  box-shadow: var(--glow-cyan);
}
.btn-primary:hover { box-shadow: 0 0 22px rgba(31, 209, 190,.8); }
.btn-ghost {
  color: var(--cyan);
  border-color: var(--cyan-dim);
  background: rgba(31, 209, 190, .06);
}
.btn-ghost:hover { background: rgba(31, 209, 190, .14); }

/* ---------- Section scaffolding ---------- */
.grid-section, .about-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 5vw, 3rem);
}
.section-title {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 2rem);
  text-align: center;
  letter-spacing: .06em;
  margin: 0 0 .4rem;
}
.bracket { color: var(--cyan); }
.section-note {
  text-align: center;
  color: var(--muted);
  margin: 0 0 2.2rem;
  font-size: .98rem;
}

/* ---------- Box grid ---------- */
.box-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 1.4rem;
}
@media (max-width: 760px) { .box-grid { grid-template-columns: 1fr; } }

.panel {
  position: relative;
  background:
    linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.2rem;
  overflow: hidden;
}
/* corner bolts */
.panel::before, .panel::after {
  content: "";
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan-dim);
  box-shadow: 0 0 8px rgba(31, 209, 190,.6);
}
.panel::before { top: 12px; left: 12px; }
.panel::after  { top: 12px; right: 12px; }
/* glowing top edge */
.panel > .panel-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: .7;
}
.panel-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-top: .4rem;
}
.panel-head h3 {
  font-family: var(--font-disp);
  font-weight: 700;
  letter-spacing: .04em;
  margin: 0;
  font-size: 1.15rem;
}
.panel-sub { color: var(--muted); font-size: .9rem; margin: .35rem 0 1.1rem; }
.badge {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .05em;
  padding: .32rem .6rem;
  border-radius: 7px;
  white-space: nowrap;
}
.badge-live { background: rgba(31,209,190,.12); color: var(--cyan); border: 1px solid rgba(31,209,190,.4); }
.badge-warn { background: rgba(244,196,48,.12); color: var(--amber); border: 1px solid rgba(244,196,48,.4); }

/* ---------- Day list ---------- */
.day-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.day-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .7rem .85rem;
  border-radius: 10px;
  background: rgba(31, 209, 190, .22);
  border: 1px solid var(--line);
}
.day-row .led {
  width: 11px; height: 11px; border-radius: 50%;
  flex: 0 0 auto;
  background: var(--amber);
  box-shadow: var(--glow-gold);
}
.day-row.off .led { background: #41506b; box-shadow: none; }
.day-row.off { opacity: .55; }
.day-name { font-weight: 700; letter-spacing: .05em; min-width: 6.5rem; }
.day-time {
  margin-left: auto;
  font-family: var(--font-disp);
  font-size: .82rem;
  color: var(--cyan);
}
.day-row.off .day-time { color: var(--muted); }

/* ---------- Tournament body ---------- */
.tourney-name {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 1.3rem;
  margin: .2rem 0 .2rem;
  color: var(--ink);
  line-height: 1.15;
}
.tourney-meta { display: grid; gap: .5rem; margin: 1rem 0 1.1rem; }
.meta-row { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .98rem; }
.meta-row .ic { color: var(--cyan); }
.meta-row strong { color: var(--ink); font-weight: 600; }
.countdown {
  display: flex;
  gap: .55rem;
  margin-top: .4rem;
}
.cd-cell {
  flex: 1;
  text-align: center;
  background: rgba(31, 209, 190,.07);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: .55rem .25rem;
}
.cd-num {
  font-family: var(--font-disp);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--cyan);
  display: block;
  line-height: 1;
  text-shadow: var(--glow-cyan);
}
.cd-label { font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.tourney-empty { color: var(--muted); padding: 1.2rem 0; text-align: center; }
.tourney-empty .big { font-size: 2rem; display: block; margin-bottom: .4rem; }

/* ---------- Panel foot ---------- */
.panel-foot {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.3rem;
  padding-top: .9rem;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: .82rem;
}
.ic { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }
.about-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform .2s, border-color .2s;
}
.about-card:hover { transform: translateY(-4px); border-color: var(--cyan-dim); }
.about-ic { font-size: 2rem; margin-bottom: .6rem; }
.about-card h3 { font-family: var(--font-disp); font-weight: 700; margin: 0 0 .5rem; letter-spacing: .03em; }
.about-card p { color: var(--muted); margin: 0; font-size: .96rem; }
.join-line { text-align: center; color: var(--ink); font-size: 1.05rem; font-weight: 500; }

/* ---------- Sponsors (understated strip) ---------- */
.sponsors-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 5vw, 3rem) 2rem;
  text-align: center;
}
.sponsors-title {
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}
.sponsor-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
}
.sponsor a {
  display: inline-block;
  padding: .55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-disp);
  font-weight: 700;
  letter-spacing: .04em;
  font-size: .9rem;
  transition: color .2s, border-color .2s, background .2s;
}
.sponsor a:hover {
  color: var(--amber);
  border-color: var(--gold-dim);
  background: rgba(244, 196, 48, .08);
}
.sponsors-note {
  color: var(--muted);
  font-size: .82rem;
  margin: 1.1rem 0 0;
  opacity: .85;
}

/* ---------- Sponsorship tiers ---------- */
.tiers-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 5vw, 3rem) 1.5rem;
  text-align: center;
}

/* Comparison matrix: benefit categories down the side, each tier is a boxed column.
   Fixed layout keeps every column the same width so the check marks line up. */
.tier-table-wrap {
  margin: 2.2rem auto 0;
  max-width: 760px;
  overflow-x: hidden;
  padding: 1.4rem .2rem .4rem;  /* room for the top-tier glow */
}
.tier-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 10px 0;       /* the horizontal gap turns each tier into its own box */
}

/* Benefit categories — the left-hand label column */
.tt-corner { width: 40%; }
.tier-table thead th:nth-child(n+2) { width: 20%; }
.tt-corner {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  vertical-align: middle;
  padding: 1rem .4rem;
}
.tier-table th[scope="row"] {
  font-weight: 600;
  font-size: .98rem;
  color: var(--ink);
  text-align: left;
  vertical-align: middle;
  padding: .95rem .4rem;
  border-bottom: 1px solid var(--line);
  transition: color .15s;
}
.tier-table tbody tr:last-child th[scope="row"] { border-bottom: none; }

/* Tier columns rendered as opaque vertical boxes (solid fill, side borders, rounded ends) */
.tier-table thead th.tt-tier,
.tier-table tbody td {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}
.tier-table thead th.tt-tier {
  padding: 1.15rem .5rem;
  border-top: 1px solid var(--line);
  border-bottom: 2px solid var(--line);
  border-radius: 14px 14px 0 0;
}
.tier-table tbody td {
  padding: .95rem .5rem;
  border-bottom: 1px solid var(--line);
}
.tier-table tbody tr:last-child td { border-radius: 0 0 14px 14px; }

/* Opaque per-tier column fills + striking name/check colors (Bit=teal, Nibble=pink, Byte=gold) */
.tier-table thead th:nth-child(2), .tier-table tbody td:nth-child(2) { background: #122120; }
.tier-table thead th:nth-child(3), .tier-table tbody td:nth-child(3) { background: #1f1424; }
.tier-table thead th:nth-child(4), .tier-table tbody td:nth-child(4) { background: #241d0d; }

.tt-tier .tt-name {
  display: block;
  font-family: var(--font-disp);
  font-weight: 900;
  font-size: 1.7rem;
  letter-spacing: .05em;
}
.tier-table thead th:nth-child(2) .tt-name { color: #2bf0da; text-shadow: 0 0 14px rgba(43, 240, 218, .5); }
.tier-table thead th:nth-child(3) .tt-name { color: #ff5ca6; text-shadow: 0 0 14px rgba(255, 92, 166, .5); }
.tier-table thead th:nth-child(4) .tt-name { color: #ffce3a; text-shadow: 0 0 14px rgba(255, 206, 58, .55); }

/* Price range under each tier name */
.tt-price {
  display: block;
  margin-top: .3rem;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .03em;
  color: var(--ink);
}

/* Top-tier (Byte) box gets a gold outline + glow */
.tier-table thead th.tt-top { border-color: var(--gold-dim); box-shadow: 0 -3px 26px rgba(244, 196, 48, .22); }
.tier-table td.tt-topcol { border-color: var(--gold-dim); }

/* Row hover accents */
.tier-table tbody tr:hover th[scope="row"] { color: var(--cyan); }

/* Check = included, dash = not included */
.tier-table td .chk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem; height: 1.7rem;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
}
.tier-table td:nth-child(2) .chk {
  color: #2bf0da; background: rgba(43, 240, 218, .18);
  border: 1px solid rgba(43, 240, 218, .55); box-shadow: 0 0 12px rgba(43, 240, 218, .3);
}
.tier-table td:nth-child(3) .chk {
  color: #ff5ca6; background: rgba(255, 92, 166, .18);
  border: 1px solid rgba(255, 92, 166, .55); box-shadow: 0 0 12px rgba(255, 92, 166, .3);
}
.tier-table td:nth-child(4) .chk {
  color: #ffce3a; background: rgba(255, 206, 58, .18);
  border: 1px solid rgba(255, 206, 58, .55); box-shadow: 0 0 12px rgba(255, 206, 58, .3);
}
.tier-table td .dash { color: var(--muted); opacity: .4; font-size: 1.1rem; }

/* Mobile: tighten spacing and type so all four columns fit without scrolling */
@media (max-width: 620px) {
  .tier-table { border-spacing: 6px 0; }
  .tt-corner { width: 38%; font-size: .6rem; padding: .7rem .25rem; }
  .tier-table th[scope="row"] { font-size: .8rem; padding: .65rem .25rem; }
  .tier-table thead th.tt-tier { padding: .75rem .25rem; }
  .tier-table tbody td { padding: .65rem .2rem; }
  .tt-tier .tt-name { font-size: 1.1rem; }
  .tier-table td .chk { width: 1.45rem; height: 1.45rem; font-size: .85rem; }
}

/* "Feature in progress" notice below the tiers */
.tiers-warning {
  display: flex;
  align-items: center;
  gap: .85rem;
  max-width: 660px;
  margin: 1.9rem auto 0;
  padding: .9rem 1.2rem;
  text-align: left;
  background: rgba(244, 196, 48, .08);
  border: 1px solid var(--gold-dim);
  border-radius: 12px;
}
.tiers-warning-ic { font-size: 1.55rem; flex: 0 0 auto; line-height: 1; }
.tiers-warning p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.tiers-warning strong { color: var(--amber); }
.tiers-back { margin: 1.4rem 0 0; }

/* ---------- Get Involved (local-mentor application) ---------- */
.involve-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 5vw, 3rem) 2rem;
  text-align: center;
}
.involve-section .section-note { text-align: center; }
.involve-card {
  margin: 1.9rem auto 0;
  text-align: left;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2rem);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.involve-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
@media (max-width: 560px) { .involve-grid { grid-template-columns: 1fr; } }
.involve-form .field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.involve-form .field > span {
  font-size: .74rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.involve-form input,
.involve-form select,
.involve-form textarea {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .6rem .7rem;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.involve-form textarea { resize: vertical; min-height: 110px; }
.involve-form input:focus,
.involve-form select:focus,
.involve-form textarea:focus {
  outline: none;
  border-color: var(--cyan-dim);
  box-shadow: 0 0 0 2px rgba(31, 209, 190, .18);
}
.involve-actions { display: flex; justify-content: flex-end; margin-top: .3rem; }
.involve-actions .btn { padding: .65rem 1.3rem; cursor: pointer; }
.involve-actions .btn:disabled { opacity: .55; cursor: default; }

/* 18+ confirmation checkbox row on the mentor-signup form */
.involve-check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: .2rem 0 1rem;
  color: var(--ink);
  font-size: .95rem;
  cursor: pointer;
}
.involve-check input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .1rem;
  flex: 0 0 auto;
  accent-color: var(--cyan);
  cursor: pointer;
}

/* "Create a mentor account" call-to-action on the Get Involved page */
.mentor-cta {
  max-width: 640px;
  margin: 1.6rem auto 0;
  padding: 1.1rem 1.3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--cyan-dim);
  border-radius: var(--radius);
}
.mentor-cta p { margin: 0 0 .9rem; color: var(--muted); font-size: .95rem; }
.mentor-cta .btn { padding: .65rem 1.3rem; }

/* Inline text link (public site) */
.link-inline { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; transition: color .2s; }
.link-inline:visited { color: var(--cyan); }            /* stay cyan after being clicked (no dim purple) */
.link-inline:hover { color: var(--ink); }
.link-inline:active { color: #7ffaea; }                 /* bright cyan while clicking */
/* Keep the current-sponsor link visible through every state too */
.sponsor a:visited { color: var(--muted); }
.sponsor a:active { color: var(--amber); }

/* Visually-hidden caption for screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
}
.footer-sub { font-size: .8rem; opacity: .8; margin-top: .3rem; }

/* ---------- Motion-safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto; }
}
