/*
 * NeuroX New Jersey public site.
 *
 * Ported from Athena's approved prototype (2026-10-20, artifact version 6).
 * Layout: a bright front door. Hero with the fidgets (fidgets.css), then the Ideathon (priority) in an indigo band, the
 * conference in a teal band, comfort badges, a magenta updates band, footer.
 *
 * Colour and type come only from the tokens in neurox.css, so every BRAINS
 * A11Y axis that rewrites a token reaches this page. Nothing here redefines a
 * token the axes own (--bg, --surface, --ink, --ink-muted, --line, the font
 * names), because this file is unlayered and would beat the axes.
 *
 * The bands keep fixed colours in both themes; each pair was measured (see
 * neurox.css).
 */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: var(--a11y-line-height, 1.6);
}
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; border-radius: 6px; }

/* With a reading font chosen, the labels follow the body face too. */
[data-reading-font="hyperlegible"] { --font-mono: var(--font-body); }

.inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(calc(-100% - 24px));
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 20;
}
.skip:focus { transform: none; }
main:focus { outline: none; }

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-head .inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px 20px;
  padding-block: 14px;
}
.brand { flex: none; border-radius: 6px; }
.brand img { height: 46px; width: auto; display: block; }
.logo-light { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="bone"]) .logo-dark { display: none !important; }
  :root:not([data-theme="bone"]) .logo-light { display: block !important; }
}
:root[data-theme="midnight"] .logo-dark { display: none !important; }
:root[data-theme="midnight"] .logo-light { display: block !important; }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.nav ul a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.97rem;
}
.nav ul a:hover { background: var(--tint-teal); color: var(--teal-text); }

/* The BRAINS A11Y trigger, styled as the prototype's "Display & reading" pill. */
.a11y-slot { flex: 0 1 auto; min-width: 0; }
.a11y-slot .a11y-trigger {
  --a11y-trigger-radius: 999px;
  --a11y-trigger-bg: var(--tint-ind);
  --a11y-trigger-fg: var(--ink);
  --a11y-trigger-border: transparent;
  --a11y-trigger-bg-hover: var(--tint-teal);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}
.a11y-slot .a11y-trigger:hover { color: var(--teal-text); }
.site-head .a11y-popover {
  top: calc(100% - 4px);
  left: auto;
  right: max(16px, env(safe-area-inset-right, 0px));
  width: min(22rem, calc(100vw - 32px));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.signin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.97rem;
  white-space: nowrap;
}
.signin:hover { background: var(--ink); color: var(--bg); }
.signin svg { width: 16px; height: 16px; }

.menu { display: none; }
.menu summary {
  list-style: none;
  cursor: pointer;
  padding: 9px 16px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-weight: 700;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--bg); }
.menu ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.menu ul a {
  display: block;
  padding: 10px 4px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 900px) {
  .site-head .inner { flex-wrap: wrap; }
  .nav, .signin { display: none; }
  .a11y-slot { margin-left: auto; }
  .menu { display: block; }
  .menu[open] { flex-basis: 100%; order: 3; }
  .menu[open] summary { width: max-content; margin-left: auto; }
  .brand img { height: 40px; }
}
@media (max-width: 380px) {
  .brand img { height: 34px; }
  .site-head .inner { gap: 10px; }
  .a11y-slot .a11y-trigger { white-space: normal; text-align: start; max-width: 100%; }
}
[data-text-size="xl"] .a11y-slot .a11y-trigger,
[data-text-size="xxl"] .a11y-slot .a11y-trigger { white-space: normal; text-align: start; max-width: 100%; }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btns.spaced { margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.02rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease;
  max-width: 100%;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--magenta-text); color: var(--primary-ink); }
.btn-ghost { border-color: currentColor; }
.btn-white { background: #fff; color: #303c48; }
.btn-ink { background: #303c48; color: #fff; }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero { background: var(--surface); overflow: hidden; }
.hero .inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  padding-block: 64px 72px;
}
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; min-width: 0; }
.hero .eyebrow { color: var(--teal-text); }
.hero h1 {
  /* Capped by the viewport as well, so "differently." still fits a 320px
   * screen at 200% text. A word that still cannot fit breaks rather than
   * pushing the page sideways. */
  font-size: min(clamp(2.7rem, 6.4vw, 5.4rem), 13.5vw);
  overflow-wrap: anywhere;
  hyphens: auto;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.alike { position: relative; color: var(--ink-muted); font-weight: 700; white-space: nowrap; }
.alike svg { position: absolute; left: -4%; top: 42%; width: 108%; height: 0.42em; overflow: visible; }
.alike path {
  fill: none;
  stroke: var(--magenta);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 240;
  stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .alike path { animation: strike 0.7s 0.35s cubic-bezier(0.6, 0, 0.3, 1) both; }
}
[data-motion="reduced"] .alike path { animation: none; }
@keyframes strike {
  from { stroke-dashoffset: 240; }
  to { stroke-dashoffset: 0; }
}
.diff {
  background: linear-gradient(95deg, var(--g1) 0%, var(--g2) 55%, var(--g3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--g2);
  -webkit-text-fill-color: transparent;
}
@media (forced-colors: active) {
  .diff { -webkit-text-fill-color: currentColor; background: none; }
}
.lead { font-size: 1.2rem; max-width: 36em; color: var(--ink); }
.next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  max-width: 36em;
}
.next .tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--teal);
  color: #303c48;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 500;
}
.next b { font-family: var(--font-display); font-weight: 700; }
.next .m { color: var(--ink-muted); font-size: 0.95rem; }

@media (max-width: 900px) {
  .hero .inner { grid-template-columns: minmax(0, 1fr); padding-block: 40px 48px; gap: 32px; }
}

/* ── The two events ─────────────────────────────────────────────────────── */

.pair { padding-block: 56px; }
.pair .inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; }
.ev {
  position: relative;
  border-radius: 22px;
  padding: 30px;
  display: grid;
  gap: 14px;
  align-content: start;
  overflow: hidden;
  min-width: 0;
}
.ev h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.ev p { max-width: 32em; }
.ev a.more { font-weight: 700; text-underline-offset: 4px; display: inline-flex; gap: 8px; align-items: center; max-width: 100%; }
.ev-ide { background: var(--band-ind); color: #fff; }
.ev-ide .eyebrow { color: #7ff0e6; }
.ev-con { background: var(--teal); color: #303c48; }
.ev-con .eyebrow { color: #303c48; }
.ev .pri {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #fff;
  color: #303090;
  border-radius: 999px;
  padding: 4px 10px;
}
.ev .arc { position: absolute; right: -60px; bottom: -60px; width: 180px; height: 180px; opacity: 0.8; pointer-events: none; z-index: 0; }
.ev > :not(.arc):not(.pri) { position: relative; z-index: 1; }
.ev-ide :focus-visible { outline-color: #fff; }
@media (max-width: 820px) {
  .pair .inner { grid-template-columns: minmax(0, 1fr); }
  .ev .pri { position: static; width: max-content; }
}

/* ── Ideathon band ──────────────────────────────────────────────────────── */

.band-ind { background: var(--band-ind); color: #fff; }
.band-ind :focus-visible { outline-color: #fff; }
.ide-top {
  padding-block: 72px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.ide-top .eyebrow { color: #7ff0e6; }
.ide-top h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-top: 14px; }
.ide-top p { font-size: 1.15rem; max-width: 34em; margin-top: 18px; }
.facts {
  margin: 0;
  display: grid;
  gap: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.facts div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 16px; padding: 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.facts div:last-child { border-bottom: 0; }
.facts dt {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #7ff0e6;
  padding-top: 3px;
}
.facts dd { margin: 0; min-width: 0; }
.facts .soon {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  background: #ff8fd0;
  color: #3a0624;
  border-radius: 999px;
  padding: 1px 9px;
  vertical-align: 2px;
}
@media (max-width: 860px) {
  .ide-top { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 56px 40px; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

.day { padding-block: 8px 72px; }
.day h3 { font-size: 1.5rem; }
.day > p { margin-top: 8px; color: #dadaf7; }
.route {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  counter-reset: s;
  position: relative;
}
.route::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 23px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #14bfb3, #8c8cff, #ff4fb8);
}
.route li {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 0 6px;
  counter-increment: s;
  min-width: 0;
}
.route li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: #303090;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  position: relative;
  border: 4px solid var(--band-ind);
}
.route li:nth-child(5)::before { background: #14bfb3; color: #303c48; }
.route li span { font-weight: 700; line-height: 1.3; font-size: 0.98rem; overflow-wrap: break-word; min-width: 0; }
.route li small { display: block; font-weight: 400; color: #dadaf7; font-size: 0.85rem; }
@media (max-width: 860px) {
  .route { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .route::before {
    left: 23px;
    right: auto;
    top: 10px;
    bottom: 10px;
    width: 6px;
    height: auto;
    background: linear-gradient(180deg, #14bfb3, #8c8cff, #ff4fb8);
  }
  .route li { grid-template-columns: 52px minmax(0, 1fr); justify-items: start; text-align: left; align-items: center; padding: 0; }
}

/* ── Criteria ───────────────────────────────────────────────────────────── */

.sec { padding-block: 80px; }
.sec-head { display: grid; gap: 12px; max-width: 44em; margin-bottom: 36px; }
.sec-head .eyebrow { color: var(--magenta-text); }
.sec-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.sec-head p { font-size: 1.12rem; color: var(--ink-muted); }
.crit { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.crit li { border-radius: 18px; padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.crit li:nth-child(3n + 1) { background: var(--tint-teal); }
.crit li:nth-child(3n + 2) { background: var(--tint-ind); }
.crit li:nth-child(3n) { background: var(--tint-mag); }
.crit li.floor-note { background: linear-gradient(135deg, var(--tint-teal), var(--tint-ind), var(--tint-mag)); }
.crit h3 { font-size: 1.25rem; }
.crit svg { width: 46px; height: 46px; }
@media (max-width: 900px) { .crit { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .crit { grid-template-columns: minmax(0, 1fr); } }

.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }
.way { border-top: 6px solid var(--teal); padding-top: 18px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.way:nth-child(2) { border-color: var(--indigo); }
.way:nth-child(3) { border-color: var(--magenta); }
.way h3 { font-size: 1.3rem; }
.way p { color: var(--ink-muted); }
@media (max-width: 820px) { .ways { grid-template-columns: minmax(0, 1fr); } }

/* ── Doors ──────────────────────────────────────────────────────────────── */

.doors { background: var(--surface); }
.door-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.door {
  position: relative;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  display: grid;
  gap: 12px;
  align-content: start;
  transition: border-color 0.15s ease, transform 0.15s ease;
  min-width: 0;
}
.door:hover { border-color: var(--teal-text); transform: translateY(-3px); }
.door:has(a:focus-visible) { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.door a:focus-visible { outline: none; }
.door .who { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.door p { color: var(--ink-muted); font-size: 0.98rem; }
.door a { font-weight: 700; color: var(--teal-text); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.door a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.door .dot { width: 40px; height: 40px; border-radius: 50%; }
.dot-teal { background: #14bfb3; }
.dot-indigo { background: #303090; }
.dot-magenta { background: #e40c90; }
.dot-all { background: linear-gradient(135deg, #14bfb3, #303090, #e40c90); }
@media (max-width: 980px) { .door-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .door-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── Conference band ────────────────────────────────────────────────────── */

.band-teal { background: var(--teal); color: #303c48; }
.band-teal :focus-visible { outline-color: #303090; }
.con {
  padding-block: 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: start;
}
.con h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-top: 14px; }
.con .theme { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-top: 18px; }
.con p.body { font-size: 1.12rem; max-width: 34em; margin-top: 12px; }
.con .btns { margin-top: 28px; }
.con .facts { background: rgba(255, 255, 255, 0.45); border-color: rgba(48, 60, 72, 0.25); }
.con .facts div { border-color: rgba(48, 60, 72, 0.2); }
.con .facts dt { color: #303c48; }
.con .note { margin-top: 14px; font-size: 0.95rem; }
@media (max-width: 860px) { .con { grid-template-columns: minmax(0, 1fr); padding-block: 56px; } }

/* ── Comfort badges ─────────────────────────────────────────────────────── */

.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.badge {
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  display: grid;
  gap: 10px;
  align-content: start;
  background: var(--bg);
  min-width: 0;
}
.badge svg { width: 44px; height: 44px; }
.badge b { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; }
.badge p { color: var(--ink-muted); font-size: 0.97rem; }
.comfort-foot { margin-top: 28px; font-size: 1.05rem; }
.comfort-foot a, .floor-note a { color: var(--teal-text); font-weight: 700; text-underline-offset: 4px; }
@media (max-width: 900px) { .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .badges { grid-template-columns: minmax(0, 1fr); } }

/* ── Updates band ───────────────────────────────────────────────────────── */

.band-mag { background: var(--band-mag); color: #fff; position: relative; overflow: hidden; }
.band-mag :focus-visible { outline-color: #fff; }
.upd {
  padding-block: 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.upd h2 { font-size: clamp(2rem, 4vw, 3rem); }
.upd p { margin-top: 12px; font-size: 1.12rem; max-width: 34em; }
.upd-arcs { position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; opacity: 0.35; pointer-events: none; }

/* ── Plain pages (404) ──────────────────────────────────────────────────── */

.plain { padding-block: 80px; display: grid; gap: 20px; max-width: 44em; }
.plain h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.plain p { font-size: 1.12rem; color: var(--ink-muted); }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.foot { background: #202932; color: #e8edf2; }
.foot :focus-visible { outline-color: #b4b4ff; }
.foot .inner { padding-block: 56px 32px; display: grid; gap: 40px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand img { height: 52px; width: auto; }
.foot-brand p { color: #c3ccd5; }
.foot h2 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7ff0e6;
  font-weight: 500;
  margin-bottom: 12px;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot ul a { text-decoration: none; }
.foot ul a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-base {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  border-top: 1px solid #3a4652;
  padding-top: 20px;
  font-size: 0.92rem;
  color: #c3ccd5;
}
.foot-base s { text-decoration-color: #ff4fb8; text-decoration-thickness: 2px; }
@media (max-width: 860px) {
  .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
  .foot-top { grid-template-columns: minmax(0, 1fr); }
}

/* ── Reduced motion, asked for either way ───────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .btn, .door { transition: none; }
  .btn:hover, .door:hover { transform: none; }
}
[data-motion="reduced"] .btn,
[data-motion="reduced"] .door { transition: none; }
[data-motion="reduced"] .btn:hover,
[data-motion="reduced"] .door:hover { transform: none; }

/* ── Large text (160% and 200%) ─────────────────────────────────────────────
 * Width media queries do not see the text-size axis, so the multi-column
 * layouts collapse here as well. At 200% every grid is one column, which is
 * what keeps a 320px screen free of sideways scrolling. */
[data-text-size="xl"] .route,
[data-text-size="xxl"] .route { grid-template-columns: minmax(0, 1fr); gap: 14px; }
[data-text-size="xl"] .route::before,
[data-text-size="xxl"] .route::before {
  left: 23px;
  right: auto;
  top: 10px;
  bottom: 10px;
  width: 6px;
  height: auto;
  background: linear-gradient(180deg, #14bfb3, #8c8cff, #ff4fb8);
}
[data-text-size="xl"] .route li,
[data-text-size="xxl"] .route li { grid-template-columns: 52px minmax(0, 1fr); justify-items: start; text-align: left; align-items: center; padding: 0; }
[data-text-size="xl"] .crit,
[data-text-size="xl"] .door-grid,
[data-text-size="xl"] .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
[data-text-size="xxl"] .hero .inner,
[data-text-size="xxl"] .pair .inner,
[data-text-size="xxl"] .ide-top,
[data-text-size="xxl"] .con,
[data-text-size="xxl"] .crit,
[data-text-size="xxl"] .ways,
[data-text-size="xxl"] .door-grid,
[data-text-size="xxl"] .badges { grid-template-columns: minmax(0, 1fr); }
[data-text-size="xxl"] .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
[data-text-size="xxl"] .foot-top { grid-template-columns: minmax(0, 1fr); }
[data-text-size="xxl"] .foot-brand { grid-column: auto; }
[data-text-size="xxl"] .ev .pri { position: static; width: max-content; max-width: 100%; }
[data-text-size="xxl"] .ps-fx { justify-self: center; max-width: 420px; }
[data-text-size="xxl"] .ps-fx-bg { top: -28px; left: -24px; right: -24px; }
@media (max-width: 900px) {
  [data-text-size="xl"] .crit,
  [data-text-size="xl"] .door-grid,
  [data-text-size="xl"] .badges { grid-template-columns: minmax(0, 1fr); }
}

/* Single-column card grids size their one track to the container, not to
 * their widest word, so large text wraps instead of pushing the card wider. */
.ev, .crit li, .way, .door, .badge, .sec-head, .foot-brand, .plain { grid-template-columns: minmax(0, 1fr); }

/* At 160% and 200% text a single long word ("Neurodiversity") can be wider
 * than a phone. It is hyphenated, or broken as a last resort, rather than
 * pushing the page sideways (SC 1.4.10 Reflow). */
[data-text-size="xl"] :is(h1, h2, h3, p, b, dd, dt, li, a, .who, .eyebrow),
[data-text-size="xxl"] :is(h1, h2, h3, p, b, dd, dt, li, a, .who, .eyebrow) {
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* On a phone the corner arcs would sit behind the Ideathon card's text, so
 * they shrink and the card leaves room for them below the link. */
@media (max-width: 820px) {
  .ev-ide { padding-bottom: 96px; }
  .ev .arc { width: 130px; height: 130px; right: -36px; bottom: -36px; }
}
[data-decoration="hidden"] .ev-ide { padding-bottom: 30px; }

/* ── Past sponsors & participants ───────────────────────────────────────── */
.sponsors { padding-block: 60px; background: var(--surface); }
.sponsors .inner { display: grid; gap: 30px; }
.sponsors h2 { text-align: center; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.spon-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 880px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.spon-grid li {
  flex: 0 0 160px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
}
.spon-grid img {
  max-height: 46px;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
@media (max-width: 540px) {
  .spon-grid li { flex: 0 0 44%; }
}
