/* Ideathon 2026 — site styles.
 *
 * Light only. Every foreground/background pair in the palette is checked
 * against WCAG AA, and no text is set below 12px.
 */

:root {
  color-scheme: light;

  /* Nehru Group / NCERC brand: navy #202080, cyan #00a0e0, gold #c0a060.
     Only the navy passes AA as text, so cyan and gold are used as fills and
     decoration and never carry small type.

     Light only: color-scheme above keeps native controls light even when the
     viewer's system is set to dark. */
  --bg: #fbfbf9;
  --surface: #ffffff;
  --surface-2: #f1f2f6;
  --ink: #14141b;
  --ink-dim: #4b4b58;
  --ink-faint: #66667a;
  --line: #e3e4ec;
  --line-strong: #cdcfdc;
  --accent: #202080;
  --on-accent: #ffffff;
  --accent-text: #1d1d78;
  --accent-wash: #ececf8;
  --brand-cyan: #00a0e0;
  --brand-gold: #c0a060;
  --on-brand: #12121a;
  --ok: #0f7b3e;
  --danger: #b3261e;
  --danger-wash: #fdecea;
  --shadow: 0 1px 2px rgba(22, 21, 26, .05), 0 8px 24px -12px rgba(22, 21, 26, .16);

  --radius: 10px;
  --radius-sm: 7px;
  --maxw: 1120px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}


* { box-sizing: border-box; }

/* The hidden attribute must beat any display rule set on a class. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  /* nothing on the page renders below 12px */
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4 {
  line-height: 1.15;
  margin: 0 0 .45em;
  font-weight: 700;
  letter-spacing: -.021em;
}
h1 { font-size: clamp(2.35rem, 6.2vw, 4rem); }
h2 { font-size: clamp(1.65rem, 4.1vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
strong { font-weight: 650; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.wrap-reading { max-width: 840px; }
.wrap-narrow { max-width: 720px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;   /* also the positioning context for the mobile menu panel */
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 750;
  font-size: 1.2rem;
  letter-spacing: -.03em;
  color: var(--ink);
  text-decoration: none;
}
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
}
.site-nav { margin-left: auto; display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.site-nav a {
  color: var(--ink-dim);
  font-size: .95rem;
  font-weight: 500;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
/* Buttons in the nav keep their own colours — this rule used to lose to
   .site-nav a, which rendered the Register label grey on orange. */
.site-nav a.btn { color: inherit; }
.site-nav a.btn-primary { color: var(--on-accent); }
.site-nav a.btn:hover { background: var(--accent); }
.site-nav a.btn-ghost:hover { background: var(--surface-2); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 19px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background .14s ease, border-color .14s ease, transform .08s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { min-height: 40px; padding: 9px 16px; font-size: .9rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:disabled:active { transform: none; }

/* ---------- hero ---------- */

.hero {
  padding: clamp(40px, 6vw, 68px) 0 clamp(30px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
}
.hero-tight { padding-bottom: clamp(24px, 3vw, 34px); }

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-wash);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.lede {
  font-size: clamp(1.08rem, 2.2vw, 1.3rem);
  color: var(--ink-dim);
  max-width: 56ch;
  margin-bottom: 24px;
}
.lede-sm { font-size: .96rem; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  margin-top: 38px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.facts-tight { margin-top: 0; margin-bottom: 26px; }
.fact { background: var(--surface); padding: 15px 17px; }
.fact dt {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 5px;
}
.fact dd { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }

/* ---------- sections ---------- */

section.band { padding: clamp(38px, 5.5vw, 62px) 0; border-bottom: 1px solid var(--line); }
.band-last { border-bottom: none; }
.section-head { max-width: 62ch; margin-bottom: 28px; }
.section-head h2 { max-width: 26ch; }
.section-head p { color: var(--ink-dim); margin-bottom: 0; }
.kicker {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 9px;
}

/* ---------- timeline ---------- */

.timeline { display: grid; gap: 8px; }
.phase {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 14px 17px;
}
.phase[data-ai="yes"] { border-left-color: var(--accent); }
.phase[data-ai="no"] { border-left-color: var(--danger); }
.phase .clock { font-family: var(--mono); font-size: .89rem; font-weight: 600; color: var(--ink); }
.phase .dur { display: block; font-size: .75rem; color: var(--ink-faint); margin-top: 3px; font-weight: 400; }
.phase h3 { margin: 0 0 3px; font-size: 1.12rem; }
.phase p { margin: 0; color: var(--ink-dim); font-size: .92rem; }
.phase .owner { margin-top: 6px; font-size: .78rem; color: var(--ink-faint); font-family: var(--mono); }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-dim);
  vertical-align: middle;
  margin-left: 8px;
  white-space: nowrap;
}
.tag.ai { border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent-text); background: var(--accent-wash); }
.tag.noai { border-color: color-mix(in srgb, var(--danger) 40%, transparent); color: var(--danger); background: var(--danger-wash); }

/* ---------- callouts ---------- */

.callout {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
  margin-top: 24px;
}
.callout h3 { margin-top: 0; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout.warn { border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-wash); }

.planner { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin: 12px 0 14px; }
.planner label { font-size: .85rem; color: var(--ink-dim); display: block; margin-bottom: 5px; }
.planner input { width: 120px; }
.planner-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.planner-out div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
}
.planner-out span {
  display: block;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 3px;
}
.planner-out strong { font-size: 1.45rem; letter-spacing: -.02em; }

/* ---------- cards ---------- */

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  /* exactly two columns, so four cards make a 2x2 block rather than 3 + 1 */
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
/* Three cards: 3-up on desktop, single column below — 2 + 1 always leaves an
   orphan, and these three are a set. */
.grid-3 { grid-template-columns: 1fr; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 19px;
}
.card h3 { margin-top: 0; }
.card p { color: var(--ink-dim); font-size: .93rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .role-no {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 8px;
}

ul.ticks { list-style: none; padding: 0; margin: 0 0 1rem; }
ul.ticks li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--ink-dim);
  font-size: .93rem;
}
ul.ticks li::before {
  content: "";
  position: absolute;
  left: 5px; top: .58em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
ul.ticks.no li::before { background: var(--danger); }
ul.ticks.yes li::before { background: var(--ok); }
ul.ticks strong { color: var(--ink); }

/* ---------- forms ---------- */

.form-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3.5vw, 28px);
  box-shadow: var(--shadow);
}
fieldset { border: none; padding: 0; margin: 0 0 22px; }
legend { float: left; width: 100%; padding: 0; font-weight: 700; font-size: 1.18rem; margin-bottom: 3px; }
legend + * { clear: both; }
.legend-note { color: var(--ink-dim); font-size: .88rem; margin: 0 0 16px; }

.field { margin-bottom: 16px; }
.field label, .field .label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.field .hint { font-size: .82rem; color: var(--ink-faint); font-weight: 400; margin-top: 5px; display: block; }
.hint-top { margin: -2px 0 10px; }
.req { color: var(--accent-text); }

input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], input[type="password"], select, textarea {
  width: 100%;
  min-height: 44px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-size: .95rem;
  transition: border-color .14s ease, box-shadow .14s ease;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); opacity: 1; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b6875' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
}
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }

.error-text { display: none; color: var(--danger); font-size: .82rem; margin-top: 5px; }
.error-text.show { display: block; }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  margin-bottom: 8px;
  cursor: pointer;
}
.check:hover { border-color: var(--line-strong); }
.check input { margin: 3px 0 0; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.check span { font-size: .9rem; color: var(--ink-dim); }
.check span b { color: var(--ink); font-weight: 600; }

/* member blocks */

.member-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: 13px;
  margin-bottom: 10px;
}
.member-block:last-child { margin-bottom: 0; }
.member-block-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.member-block-title { font-size: .84rem; font-weight: 600; color: var(--ink-dim); }
.member-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 9px; }
.member-block .error-text { margin-top: 7px; }

.name-num {
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 600;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 5px;
  width: 22px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 4px;
}
.form-status { font-size: .88rem; color: var(--ink-dim); }
.form-status.error { color: var(--danger); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.warn-text { color: var(--accent-text); }

.fine-print { color: var(--ink-faint); font-size: .85rem; margin-top: 16px; }

.btn-row { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 16px; }
label.btn { position: relative; overflow: hidden; }
label.btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

/* success panel */

.success {
  border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent);
  background: color-mix(in srgb, var(--ok) 7%, var(--surface));
  border-radius: var(--radius);
  padding: 24px;
}
.success h2 { margin-top: 0; }
.success .code {
  font-family: var(--mono);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--ink);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: inline-block;
  margin: 4px 0 16px;
}

/* ---------- tables ---------- */

.table-scroll {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .9rem; }
th, td { text-align: left; padding: 11px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 600;
  white-space: nowrap;
}
tbody td { color: var(--ink-dim); }
tbody tr:last-child td { border-bottom: none; }
td .role-name { font-weight: 650; color: var(--ink); }

.table-title { font-size: 1.2rem; margin: 28px 0 11px; }
.table-hint {
  display: none;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 7px 0 0;
}
.table-scroll.is-scrollable + .table-hint { display: block; }

/* Below 900px tables become labelled cards rather than scrolling sideways. */
@media (max-width: 900px) {
  .stack-table { min-width: 0; }
  .stack-table thead { display: none; }
  .stack-table tr {
    display: block;
    border-bottom: 1px solid var(--line);
    padding: 5px 0;
  }
  .stack-table tr:last-child { border-bottom: none; }
  .stack-table td {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 10px;
    border-bottom: none;
    padding: 6px 15px;
  }
  .stack-table td::before {
    content: attr(data-label);
    font-family: var(--mono);
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-faint);
    align-self: center;
  }
  .stack-table td:empty { display: none; }
}

/* ---------- rule book ---------- */

.rule-section { border-top: 1px solid var(--line); padding-top: 22px; margin-bottom: 28px; }
.rule-section:first-child { border-top: none; padding-top: 0; }
.rule-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rule-head h2 { margin: 0; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.rule-no {
  font-family: var(--mono);
  font-size: .95rem;
  font-weight: 700;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 6px;
  width: 30px; min-width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
}
.rule-list { list-style: none; margin: 0; padding: 0; }
.rule-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.rule-list li:last-child { border-bottom: none; }
.rule-ref { font-family: var(--mono); font-size: .82rem; color: var(--accent-text); padding-top: 2px; }
.rule-text { color: var(--ink-dim); }
.rule-text strong { color: var(--ink); }

.toc { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 26px; }
.toc a {
  font-size: .85rem;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-dim);
  text-decoration: none;
  background: var(--surface);
}
.toc a:hover { color: var(--ink); border-color: var(--accent); }

/* ---------- admin ---------- */

.nav-tag {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-wash);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 999px;
  padding: 3px 10px;
}
.login-card { max-width: 440px; margin: 0 auto; }
/* the page h1 scale is built for a hero, not for a 440px card */
.login-card h1 { font-size: clamp(1.9rem, 5vw, 2.4rem); }
.login-card .form-shell { margin-top: 20px; }

/* ---------- misc ---------- */

code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}

.site-footer {
  padding: 30px 0;
  color: var(--ink-faint);
  font-size: .86rem;
  border-top: 1px solid var(--line);
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; z-index: 100; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- narrow screens ---------- */

@media (max-width: 640px) {
  .row { grid-template-columns: 1fr; }
  .phase { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 560px) {
  .member-grid { grid-template-columns: 1fr; }
  .rule-list li { grid-template-columns: 36px 1fr; gap: 9px; }
}

@media (max-width: 420px) {
  .btn-row .btn { width: 100%; }
  .facts { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- print ---------- */

@media print {
  :root {
    --bg: #fff; --surface: #fff; --surface-2: #fff;
    --ink: #000; --ink-dim: #222; --ink-faint: #444;
    --line: #ccc; --line-strong: #999;
    --accent: #000; --on-accent: #fff; --accent-text: #000; --accent-wash: #fff;
    --shadow: none;
  }
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .toc, .hero-actions, .btn { display: none !important; }
  .rule-section, .card, .phase { break-inside: avoid; }
  a { color: #000; }
}


/* ---------- brand ---------- */

/* NCERC gold hairline under the sticky header. */
.site-header { border-bottom: none; box-shadow: inset 0 -1px 0 var(--line), 0 2px 0 var(--brand-gold); }

.brand { gap: 10px; }
.brand .mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  flex-shrink: 0;
}
.brand .dot { background: var(--brand-cyan); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  margin-top: 2px;
}

.host-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.host-line img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  padding: 3px;
}
.host-line span { font-size: .92rem; color: var(--ink-dim); max-width: 32ch; line-height: 1.35; }

.footer-brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-brand img {
  height: 40px;
  width: auto;
  background: #fff;
  border-radius: 5px;
  padding: 3px;
}

/* AI-allowed markers pick up the cyan; the accent stays navy for actions. */
.phase[data-ai="yes"] { border-left-color: var(--brand-cyan); }
.tag.ai {
  border-color: color-mix(in srgb, var(--brand-cyan) 50%, transparent);
  color: var(--ink);
  background: color-mix(in srgb, var(--brand-cyan) 18%, var(--surface));
}

@media (max-width: 420px) {
  .brand { font-size: 1.02rem; gap: 9px; }
  .brand .mark { width: 34px; height: 34px; }
  .brand-text small { display: none; }
  .host-line img { width: 44px; height: 44px; }
}


/* ---------- mobile menu ---------- */

.nav-toggle {
  display: none;            /* shown below the breakpoint */
  margin-left: auto;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle:hover { background: var(--surface-2); }
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.nav-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 17px;
  height: 12px;
}
.nav-bars span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .18s ease, opacity .15s ease;
}
/* three bars fold into a cross when open */
.nav-toggle[aria-expanded="true"] .nav-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

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

  .site-header .wrap { flex-wrap: nowrap; gap: 10px; min-height: 66px; }
  .brand { font-size: 1.1rem; }
  .brand .mark { width: 38px; height: 38px; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 8px 16px 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: 12px 12px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }
  .site-nav a + a { border-top: 1px solid var(--line); }
  .site-nav a.btn {
    margin-top: 8px;
    justify-content: center;
    border-top: none;
  }
}

/* ---------- hero additions ---------- */

.tagline {
  font-size: clamp(1.2rem, 2.9vw, 1.55rem);
  font-weight: 650;
  color: var(--accent-text);
  letter-spacing: -.01em;
  margin: -4px 0 12px;
}

.perks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
}
.perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px 8px 12px;
}
.perk-icon { font-size: 1.15rem; line-height: 1; }
.perk-body { display: flex; flex-direction: column; line-height: 1.25; }
.perk-body strong { font-size: .92rem; font-weight: 650; }
.perk-body small { font-size: .78rem; color: var(--ink-faint); }

@media (max-width: 480px) {
  .perks { flex-direction: column; }
  .perks li { border-radius: var(--radius-sm); }
}

/* per-member branch picker, under the name/phone row */
.member-branch { margin-top: 9px; }

/* role and branch pickers sit side by side under the name/phone row */
.member-picks { margin-top: 9px; grid-template-columns: 1fr 1fr; }
.member-picks select { margin-top: 0; }
@media (max-width: 560px) {
  .member-picks { grid-template-columns: 1fr; }
}

.role-flag {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 1px 7px;
  vertical-align: middle;
}
.role-flag.is-required {
  color: var(--accent-text);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: var(--accent-wash);
}

.role-group-title {
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink-dim);
  margin: 24px 0 10px;
}
.role-group-title:first-of-type { margin-top: 0; }

@media (min-width: 900px) {
  /* five role cards split 3 + 2 by requirement, never 4 + 1 */
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* members 1-3 hold a fixed role, shown rather than chosen */
.member-role-fixed {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.role-fixed-label {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.member-role-fixed strong { font-weight: 650; }
