/* HN12 members area and shared components.
   Used by every portal page and by events.html. Same tokens as the public pages. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 18px; scroll-behavior: smooth; }
[hidden] { display: none !important; }

:root {
  /* Theme. --black is the ink and --white the paper of the chosen theme (the names are
     from the first, black-on-white design). The members area sets data-theme on <html>;
     colours come from the HN12 pitch deck: near-black, off-white, lilac, electric blue. */
  --ink-rgb: 13,13,13;
  --paper-rgb: 245,245,243;
  --bar-rgb: 13,13,13;
  --bar-ink-rgb: 245,245,243;
  --black: rgb(var(--ink-rgb));
  --white: rgb(var(--paper-rgb));
  --gray: rgba(var(--ink-rgb),0.6);
  --dim: rgba(var(--ink-rgb),0.5);
  --border: rgba(var(--ink-rgb),0.1);
  --border-strong: rgba(var(--ink-rgb),0.3);
  --tint: rgba(var(--ink-rgb),0.035);
  --danger: #a32222;
  --mono: 'DM Mono', monospace;
  --side: 13rem;
  --top: 4rem;
}

:root[data-theme="lilac"] { --ink-rgb: 22,14,52; --paper-rgb: 227,213,243; --bar-rgb: 22,14,52; --bar-ink-rgb: 244,241,246; }
:root[data-theme="black"] { --ink-rgb: 244,241,246; --paper-rgb: 10,12,17; --bar-rgb: 10,12,17; --bar-ink-rgb: 244,241,246; --danger: #ff9a8f; color-scheme: dark; }
:root[data-theme="blue"]  { --ink-rgb: 244,241,246; --paper-rgb: 30,18,200; --bar-rgb: 10,12,17; --bar-ink-rgb: 244,241,246; --danger: #ffb3a8; color-scheme: dark; }

body {
  background: var(--white);
  color: var(--black);
  font-family: 'Inter Tight', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--black); outline-offset: 2px;
}
sup { font-family: var(--mono); font-size: 0.52em; vertical-align: super; }

/* ── SHELL ── */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--top); z-index: 100;
  background: rgb(var(--bar-rgb)); color: rgb(var(--bar-ink-rgb));
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 1.75rem;
  border-bottom: 1px solid rgba(var(--bar-ink-rgb),0.14);
}
.topbar-left { display: flex; align-items: center; gap: 1rem; min-width: 0; }
/* Same lockup as the public top bar (assets/css/site.css): the boxed logo, a line, then SCOUT / PORTAL (TEAM / PORTAL for the team) where the public bar says HACK / NATION / TWELVE.
   The logo's frame is 0.818 of the image height (--box) with 0.164 of it as empty margin on either side;
   frame and words keep the same distance (--side) from the line. The bar is dark in every theme. */
.topbar { --mark: 2.6rem; --box: calc(var(--mark) * 0.818); --side: 1rem; }
.topbar-left { gap: calc(var(--side) - var(--mark) * 0.164); }
.brand { display: block; line-height: 0; }
.brand-mark { display: block; height: var(--mark); width: auto; }
.menu-btn + .brand .brand-mark { margin-left: calc(var(--mark) * -0.164); }
.brand-words {
  display: flex; flex-direction: column; justify-content: center; gap: 0.32rem; height: var(--box); box-sizing: border-box;
  padding: 0 0 0 var(--side); border-left: 1px solid rgba(var(--bar-ink-rgb),0.18);
  font-family: 'Inter Tight', sans-serif; font-weight: 400; font-size: 0.56rem; line-height: 1; letter-spacing: 0.16em;
  text-transform: uppercase; white-space: nowrap; color: rgba(var(--bar-ink-rgb),0.6);
}
.topbar-right { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.topbar-user { display: flex; align-items: center; gap: 0.6rem; min-width: 0; text-decoration: none; color: rgb(var(--bar-ink-rgb)); }
.topbar-user .avatar { border-color: rgba(var(--bar-ink-rgb),0.4); color: rgb(var(--bar-ink-rgb)); background: transparent; }
.topbar-name { font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 11rem; }
.topbar-btn {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase;
  background: transparent; color: rgb(var(--bar-ink-rgb)); border: 1px solid rgba(var(--bar-ink-rgb),0.35);
  padding: 0.5rem 0.9rem; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.topbar > div > .topbar-btn { box-sizing: border-box; height: var(--box); padding: 0 0.9rem; display: inline-flex; align-items: center; line-height: 1; }
.topbar > div > .menu-btn { display: none; }
.topbar-btn:hover { border-color: rgb(var(--bar-ink-rgb)); }
.menu-btn { display: none; }

.sidenav {
  position: fixed; top: var(--top); bottom: 0; left: 0; width: var(--side); z-index: 90;
  border-right: 1px solid var(--border); background: var(--white);
  padding: 1.75rem 0 1.5rem; overflow-y: auto;
  display: flex; flex-direction: column;
}
.sidenav-label {
  font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gray); padding: 0 1.75rem; margin: 1.25rem 0 0.5rem;
}
.sidenav-label:first-child { margin-top: 0; }
.sidenav a {
  display: block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: rgba(var(--ink-rgb),0.62);
  padding: 0.55rem 1.75rem; border-left: 2px solid transparent;
}
.sidenav a:hover { color: var(--black); }
.sidenav a[aria-current="page"] { color: var(--black); border-left-color: var(--black); background: var(--tint); }
.sidenav-foot { margin-top: auto; padding: 1.5rem 1.75rem 0; }
.sidenav-foot a { padding: 0.3rem 0; border: 0; font-size: 0.55rem; }

.portal-main {
  margin-left: var(--side);
  padding: calc(var(--top) + 2.75rem) 3rem 5rem;
  max-width: calc(var(--side) + 68rem);
  min-height: 100vh;
}
.portal-main--public { margin: 0 auto; max-width: 68rem; padding-top: 9rem; }

/* placeholder sign-in bar */
.placeholder-bar {
  margin-top: 4rem; border: 1px dashed var(--border-strong); padding: 0.9rem 1.1rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem;
}
.placeholder-bar strong {
  font-family: var(--mono); font-weight: 400; font-size: 0.55rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.placeholder-bar span { font-size: 0.72rem; color: var(--dim); flex: 1 1 12rem; }
.placeholder-bar select { width: auto; min-width: 12rem; padding: 0.4rem 0.6rem; font-size: 0.72rem; }

/* ── TYPE ── */
.eyebrow {
  font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 0.5rem;
}
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding-bottom: 1.75rem; margin-bottom: 2.25rem; border-bottom: 1px solid var(--border);
}
.page-title { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; overflow-wrap: anywhere; }
.page-lede { font-size: 0.85rem; color: var(--dim); max-width: 38rem; margin-top: 0.6rem; }
.page-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.section { margin-bottom: 3rem; }
/* section headings in the text face (the small spaced-out mono labels were dropped on 24 Oct 2026) */
.section-label {
  font-size: 0.95rem; font-weight: 400; letter-spacing: -0.005em;
  color: var(--black); margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem;
}
.section-label .spacer { flex: 1; }
.muted { color: var(--dim); }
.small { font-size: 0.76rem; }
.mono { font-family: var(--mono); letter-spacing: 0.04em; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.2;
  padding: 0.75rem 1.3rem; min-height: 2.4rem;
  background: var(--black); color: var(--white); border: 1px solid var(--black);
  cursor: pointer; text-decoration: none; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: transparent; color: var(--black); }
.btn--ghost { background: transparent; color: var(--black); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--black); }
.btn--small { padding: 0.45rem 0.8rem; min-height: 1.9rem; font-size: 0.54rem; }
.btn:disabled { opacity: 0.45; cursor: default; pointer-events: none; }
.btn[aria-pressed="true"] { background: var(--black); color: var(--white); border-color: var(--black); }
.link-btn { background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

.seg { display: inline-flex; border: 1px solid var(--border-strong); }
.seg button {
  font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.16em; text-transform: uppercase;
  background: transparent; border: 0; padding: 0.5rem 0.85rem; cursor: pointer; color: rgba(var(--ink-rgb),0.6);
}
.seg button + button { border-left: 1px solid var(--border-strong); }
.seg button[aria-pressed="true"] { background: var(--black); color: var(--white); }

.tabs { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; overflow-x: auto; }
.tabs button {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
  background: none; border: 0; border-bottom: 2px solid transparent; padding: 0.7rem 0; margin-bottom: -1px;
  cursor: pointer; color: rgba(var(--ink-rgb),0.55);
}
.tabs button[aria-selected="true"] { color: var(--black); border-bottom-color: var(--black); }
.tabs .count { opacity: 0.6; margin-left: 0.3rem; }

/* ── CARDS, GRID, STATS ── */
.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }
.card { border: 1px solid var(--border); padding: 1.3rem 1.4rem 1.4rem; min-width: 0; background: var(--white); }
.card--tint { background: var(--tint); border-color: rgba(var(--ink-rgb),0.16); }
.card--link { text-decoration: none; display: block; transition: border-color 0.2s; }
.card--link:hover { border-color: var(--border-strong); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.9rem; }
.card-label { font-family: var(--mono); font-size: 0.54rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray); }
.card-title { font-size: 1.05rem; font-weight: 300; letter-spacing: -0.01em; line-height: 1.25; }
.card-text { font-size: 0.8rem; color: var(--dim); }
.card-foot { margin-top: 1rem; font-size: 0.76rem; display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.stat-value { font-size: 2rem; font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 0.8rem; color: var(--dim); letter-spacing: 0; margin-left: 0.25rem; }
.stat-note { font-size: 0.74rem; color: var(--dim); margin-top: 0.3rem; }

/* ── AVATAR, BADGE, CHIP ── */
.avatar {
  width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--border-strong); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.06em; color: rgba(var(--ink-rgb),0.7); background: var(--white);
}
.avatar--lg { width: 3.6rem; height: 3.6rem; font-size: 0.75rem; }
.avatar--sm { width: 1.6rem; height: 1.6rem; font-size: 0.46rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-stack { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.person { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.person-name { font-size: 0.84rem; line-height: 1.3; overflow-wrap: anywhere; }
.person-sub { font-size: 0.7rem; color: var(--dim); line-height: 1.3; }

.badge {
  display: inline-block; font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.4;
  padding: 0.22rem 0.5rem; border: 1px solid var(--border-strong); color: rgba(var(--ink-rgb),0.8); white-space: nowrap;
}
.badge--solid { background: var(--black); border-color: var(--black); color: var(--white); }
.badge--muted { border-color: var(--border); color: rgba(var(--ink-rgb),0.5); }
.badge--dashed { border-style: dashed; }
.badge--danger { border-color: var(--danger); color: var(--danger); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
th {
  font-family: var(--mono); font-weight: 400; font-size: 0.52rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray);
  text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--tint);
}
td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.right, th.right { text-align: right; }
tr.is-me td { background: rgba(var(--ink-rgb),0.05); }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--tint); }
.rank { font-family: var(--mono); font-size: 0.7rem; color: var(--gray); width: 2.5rem; }

.rows { border: 1px solid var(--border); }
.row { display: flex; align-items: center; gap: 1rem; padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.row:last-child { border-bottom: 0; }
.row-main { flex: 1 1 9rem; min-width: 0; }
.row-title { font-size: 0.88rem; line-height: 1.35; overflow-wrap: anywhere; }
.row-sub { font-size: 0.72rem; color: var(--dim); }
.row-side { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }

/* ── FORMS ── */
.form { display: grid; gap: 1.1rem; }
.form--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form--cols .field--wide, .form--cols .form-actions, .form--cols .alert { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; border: 0; }
.field > label, .field > legend, .field-label {
  font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(var(--ink-rgb),0.7);
}
.field .opt { color: var(--gray); letter-spacing: 0.08em; text-transform: none; }
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input[type="date"],
input[type="time"], input[type="search"], input[type="password"], select, textarea {
  width: 100%; background: transparent; border: 1px solid var(--border-strong); border-radius: 0;
  padding: 0.65rem 0.75rem; font-size: 0.84rem; font-weight: 300; line-height: 1.4; min-height: 2.5rem;
  -webkit-appearance: none; appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--black) 50%), linear-gradient(135deg, var(--black) 50%, transparent 50%);
  background-position: calc(100% - 1rem) 50%, calc(100% - 0.72rem) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem;
}
textarea { min-height: 6rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: rgba(var(--ink-rgb),0.35); }
input.err, select.err, textarea.err, .field.err .options { border-color: var(--danger); }
.field-msg { font-size: 0.7rem; color: var(--danger); }
.field-hint { font-size: 0.7rem; color: var(--dim); }
.options { display: flex; flex-wrap: wrap; gap: 0.45rem; border: 1px solid transparent; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option span {
  display: block; border: 1px solid var(--border-strong); padding: 0.5rem 0.8rem; font-size: 0.78rem; line-height: 1.3; cursor: pointer;
}
.option input:checked + span { background: var(--black); color: var(--white); border-color: var(--black); }
.option input:focus-visible + span { outline: 2px solid var(--black); outline-offset: 2px; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.8rem; cursor: pointer; }
.check input { width: 1.05rem; height: 1.05rem; margin-top: 0.15rem; accent-color: var(--black); flex-shrink: 0; }
.form-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.alert { border: 1px solid var(--border-strong); padding: 0.75rem 0.9rem; font-size: 0.78rem; }
.alert--error { border-color: var(--danger); color: var(--danger); }
.alert--ok { background: var(--black); color: var(--white); border-color: var(--black); }
.toolbar { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.25rem; }
.toolbar .grow { flex: 1 1 12rem; }
.toolbar select { width: auto; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ── STATES ── */
.state { border: 1px dashed var(--border-strong); padding: 2.25rem 1.5rem; text-align: center; }
.state-title { font-size: 0.95rem; margin-bottom: 0.3rem; }
.state-text { font-size: 0.78rem; color: var(--dim); max-width: 26rem; margin: 0 auto 1rem; }
.state :last-child { margin-bottom: 0; }
.skeleton { display: grid; gap: 0.7rem; }
.skeleton span { display: block; height: 2.6rem; background: linear-gradient(90deg, rgba(var(--ink-rgb),0.05), rgba(var(--ink-rgb),0.1), rgba(var(--ink-rgb),0.05)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton span:nth-child(2) { width: 85%; } .skeleton span:nth-child(3) { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton span { animation: none; } html { scroll-behavior: auto; } }

/* ── PROGRESS, FUND BAR ── */
.progress { height: 0.5rem; background: rgba(var(--ink-rgb),0.08); border-radius: 4px; overflow: hidden; display: flex; gap: 2px; }
.progress i { display: block; height: 100%; background: var(--black); border-radius: 4px; }
.progress i.light { background: rgba(var(--ink-rgb),0.32); }
.progress--lg { height: 1.1rem; }
.steps-dots { display: flex; gap: 3px; }
.steps-dots i { flex: 1; height: 0.4rem; background: rgba(var(--ink-rgb),0.1); border-radius: 2px; }
.steps-dots i.on { background: var(--black); }
.fund-figures { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.fund-legend { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 0.7rem; font-size: 0.72rem; color: var(--dim); }
.fund-legend i { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 2px; margin-right: 0.4rem; vertical-align: -1px; background: var(--black); }
.fund-legend i.light { background: rgba(var(--ink-rgb),0.32); }
.fund-legend i.rest { background: rgba(var(--ink-rgb),0.08); }

/* ── CHART ── */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--mono); font-size: 10px; fill: var(--gray); }
.chart-tip {
  position: absolute; pointer-events: none; background: var(--black); color: var(--white);
  font-size: 0.68rem; padding: 0.35rem 0.55rem; white-space: nowrap; transform: translate(-50%, -130%); z-index: 2;
}
.chart-tip b { font-family: var(--mono); font-weight: 400; }

/* ── CALENDAR ── */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.cal-title { font-size: 1.05rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.cal-dow { font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray); padding: 0.45rem 0.5rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--tint); }
.cal-cell { min-height: 5.6rem; padding: 0.35rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); min-width: 0; }
.cal-cell.out { background: var(--tint); }
.cal-cell.today .cal-day { background: var(--black); color: var(--white); }
.cal-day { font-family: var(--mono); font-size: 0.58rem; display: inline-block; padding: 0.05rem 0.3rem; margin-bottom: 0.25rem; color: var(--gray); }
.cal-item {
  display: block; width: 100%; text-align: left; background: none; border: 0; border-left: 2px solid var(--black); cursor: pointer;
  font-size: 0.62rem; line-height: 1.3; padding: 0.15rem 0.35rem; margin-bottom: 0.2rem; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-item:hover { background: var(--tint); }
.cal-item.alt { border-left-color: rgba(var(--ink-rgb),0.3); }
.cal-item.past { opacity: 0.5; }
.cal-more { font-size: 0.58rem; color: var(--gray); padding-left: 0.35rem; }
.date-block { font-family: var(--mono); text-align: center; border: 1px solid var(--border-strong); padding: 0.35rem 0.5rem; min-width: 3.3rem; line-height: 1.2; flex-shrink: 0; }
.date-block b { display: block; font-weight: 400; font-size: 1rem; }
.date-block span { font-size: 0.5rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray); }

/* ── DRAWER, TOAST ── */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(var(--ink-rgb),0.4); z-index: 200; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(30rem, 100vw); z-index: 210; background: var(--white);
  border-left: 1px solid var(--border-strong); display: flex; flex-direction: column;
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border); }
.drawer-title { font-size: 1rem; }
.drawer-body { padding: 1.4rem; overflow-y: auto; flex: 1; }
.dl { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.6rem 1rem; font-size: 0.82rem; }
.dl dt { font-family: var(--mono); font-size: 0.54rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray); padding-top: 0.2rem; }
.dl dd { overflow-wrap: anywhere; }
.toast-host { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 300; display: grid; gap: 0.5rem; width: min(26rem, calc(100vw - 2rem)); }
.toast { background: var(--black); color: var(--white); padding: 0.75rem 1rem; font-size: 0.78rem; }
.toast--error { background: var(--danger); }

/* ── MILESTONES ── */
.milestones { list-style: none; border: 1px solid var(--border); }
.milestone { padding: 1rem 1.1rem; border-bottom: 1px solid var(--border); }
.milestone:last-child { border-bottom: 0; }
.milestone-top { display: flex; align-items: flex-start; gap: 0.8rem; }
.milestone-num { font-family: var(--mono); font-size: 0.6rem; color: var(--gray); padding-top: 0.25rem; width: 1.4rem; flex-shrink: 0; }
.milestone-body { flex: 1; min-width: 0; }
.milestone.done .milestone-title { text-decoration: line-through; text-decoration-color: rgba(var(--ink-rgb),0.35); }
.evidence { display: grid; gap: 0.4rem; margin-top: 0.7rem; }
.evidence-item { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.76rem; background: var(--tint); padding: 0.5rem 0.65rem; }
.evidence-item { flex-wrap: wrap; }
.evidence-item .grow { flex: 1 1 9rem; min-width: 0; overflow-wrap: anywhere; }
.evidence-item img { max-width: 100%; max-height: 9rem; display: block; margin-top: 0.3rem; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .menu-btn, .topbar > div > .menu-btn { display: inline-flex; margin-right: var(--side); }
  .topbar { --mark: 2.1rem; --side: 0.75rem; }
  .brand-words { font-size: 0.48rem; }
  .menu-btn + .brand .brand-mark { margin-left: 0; }
  .sidenav { transform: translateX(-100%); transition: transform 0.25s; width: min(18rem, 86vw); box-shadow: none; }
  .sidenav.open { transform: none; box-shadow: 0 0 0 100vmax rgba(var(--ink-rgb),0.35); }
  .portal-main { margin-left: 0; padding: calc(var(--top) + 1.75rem) 1.25rem 4rem; }
  .portal-main--public { padding-top: 7rem; }
  .topbar-name { display: none; }
  .topbar { padding: 0 1rem; }
}
@media (max-width: 680px) {
  .grid--2, .grid--3, .grid--4, .form--cols { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .page-head { padding-bottom: 1.25rem; margin-bottom: 1.75rem; }
  .cal-cell { min-height: 3.4rem; padding: 0.2rem; }
  .cal-item { font-size: 0; height: 0.45rem; padding: 0; border-left-width: 0; background: var(--black); margin-bottom: 2px; }
  .cal-item.alt { background: rgba(var(--ink-rgb),0.35); }
  .cal-more { display: none; }
  .cal-dow { padding: 0.35rem 0.2rem; font-size: 0.44rem; letter-spacing: 0.08em; text-align: center; }
  .dl { grid-template-columns: 1fr; gap: 0.15rem; }
  .dl dd { margin-bottom: 0.6rem; }
  .card { padding: 1.1rem; }
  .table-wrap table { min-width: 34rem; }
}

/* a card that is a button (directory) */
button.card { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; width: 100%; font-weight: 300; }

/* ── PUBLIC PROFILES (scouts.html) ── */
.people-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.8rem; }
a.profile { text-decoration: none; color: inherit; transition: border-color 0.2s; }
a.profile:hover { border-color: var(--border-strong); }
.profile-detail { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: 2.5rem; align-items: start; max-width: 52rem; }
.profile { border: 1px solid var(--border); display: flex; flex-direction: column; min-width: 0; }
.profile-photo { aspect-ratio: 4 / 5; background: rgba(var(--ink-rgb),0.06); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: grayscale(1); transition: filter 0.3s; }
.profile:hover .profile-photo img, .profile:focus-within .profile-photo img { filter: none; }
.profile-photo span { font-family: var(--mono); font-size: 1.3rem; letter-spacing: 0.08em; color: rgba(var(--ink-rgb),0.35); }
.profile-body { padding: 0.7rem 0.8rem 0.85rem; display: flex; flex-direction: column; flex: 1; }
.profile-name { font-size: 0.84rem; font-weight: 400; letter-spacing: 0; line-height: 1.3; overflow-wrap: anywhere; }
.profile-degree { font-size: 0.7rem; line-height: 1.4; color: var(--dim); margin-top: 0.15rem; }
.profile-bio { font-size: 0.86rem; line-height: 1.65; color: rgba(var(--ink-rgb),0.8); max-width: 34rem; }
.profile-links { display: flex; gap: 1.25rem; margin-top: 1.4rem; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.16em; text-transform: uppercase; }
.profile-links:empty { display: none; }
@media (max-width: 1000px) { .people-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .profile-detail { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .profile-detail .profile { max-width: 13rem; }
}
/* Mentors page: wide cards with a locked 1:1 square portrait on the left and text beside it */
.people-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 1rem; }
.profile--row { flex-direction: row; align-items: flex-start; gap: 1.35rem; padding: 1.25rem 1.35rem; }
.profile--row .profile-photo { aspect-ratio: 1 / 1; width: 7.5rem; height: 7.5rem; min-height: 7.5rem; flex: 0 0 7.5rem; border: 1px solid var(--border); }
.profile--row .profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.profile--row .profile-photo span { font-size: 1.1rem; }
.profile--row .profile-body { padding: 0; min-height: 7.5rem; justify-content: center; min-width: 0; }
.profile--row .profile-name { font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 400; }
.profile--row .profile-degree { font-size: 0.74rem; line-height: 1.45; margin-top: 0.25rem; }
.profile--row .profile-bio-inline { font-size: 0.78rem; line-height: 1.55; margin-top: 0.55rem; color: rgba(var(--ink-rgb), 0.78); }
@media (max-width: 1000px) { .people-grid--wide { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .profile--row { padding: 1rem; gap: 1rem; }
  .profile--row .profile-photo { width: 5.5rem; height: 5.5rem; min-height: 5.5rem; flex: 0 0 5.5rem; }
  .profile--row .profile-body { min-height: 5.5rem; }
}
@media (prefers-reduced-motion: reduce) { .profile-photo img { transition: none; } }

/* ── DELETE WITH CONFIRM ── */
.btn--danger { color: var(--danger); border-color: var(--danger); }
.btn--danger:hover { border-color: var(--danger); color: var(--danger); }
.btn--danger-solid { background: var(--danger); border-color: var(--danger); color: var(--white); }
.btn--danger-solid:hover { background: transparent; color: var(--danger); }
.confirm { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.confirm-text { font-size: 0.82rem; margin-bottom: 0.8rem; }

/* ── QUICK ENTRANCE: items fade in from left to right (HN12Portal.reveal) ── */
.reveal-in { animation: revealIn 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: var(--reveal-delay, 0ms); }
@keyframes revealIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal-in { animation: none; } }

/* ── DASHBOARD: hero and tiles ── */
/* photo | eyebrow, name, meta line, bio | actions; on small screens the photo sits beside eyebrow and name, everything else spans below */
.dash-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem 1.6rem; margin-bottom: 1.75rem; }
.dash-id { min-width: 0; }
.dash-role { margin-bottom: 0.45rem; }
.dash-hello { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 300; letter-spacing: -0.035em; line-height: 1.05; overflow-wrap: anywhere; }
/* each separator sits in the gap left of its item; the clip hides the one that starts a wrapped line */
.dash-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1.5rem; list-style: none; margin-top: 0.75rem; font-size: 0.8rem; line-height: 1.35; color: var(--dim); clip-path: inset(-0.5rem); }
.dash-meta li { position: relative; min-width: 0; overflow-wrap: anywhere; }
.dash-meta li::before { content: ''; position: absolute; left: -0.75rem; top: 50%; width: 1px; height: 0.85em; transform: translateY(-50%); background: var(--border-strong); }
.dash-meta-university { color: var(--black); }
.dash-meta a { color: inherit; text-underline-offset: 0.2em; transition: color 0.2s; }
.dash-meta a:hover { color: var(--black); }
.dash-bio {
  max-width: 40rem; margin-top: 0.55rem; font-size: 0.8rem; line-height: 1.5; color: var(--dim);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.dash-actions { justify-self: end; }
.avatar--xl { width: 5.5rem; height: 5.5rem; font-size: 1rem; letter-spacing: 0.08em; }
.dash-avatar { position: relative; display: grid; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.dash-avatar:active { transform: scale(0.97); }
.dash-avatar:focus-visible { outline: 1px solid var(--black); outline-offset: 4px; }
.dash-avatar--empty .avatar { border-style: dashed; }
.dash-avatar-veil {
  position: absolute; inset: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(var(--ink-rgb),0.55); color: var(--white);
  font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0; transition: opacity 160ms ease;
}
@media (hover: hover) and (pointer: fine) { .dash-avatar:hover .dash-avatar-veil { opacity: 1; } }
.dash-avatar:focus-visible .dash-avatar-veil { opacity: 1; }
.dash-avatar-badge {
  position: absolute; right: 0.05rem; bottom: 0.05rem; width: 1.45rem; height: 1.45rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--black); color: var(--white); border: 2px solid var(--white);
  font-family: var(--mono); font-size: 0.8rem; line-height: 1;
}
@media (max-width: 640px) {
  .dash-hero { grid-template-columns: auto minmax(0, 1fr); gap: 0 1rem; }
  .dash-id { display: contents; }
  .dash-hero > :first-child { grid-row: 1 / span 2; }
  .dash-role { grid-column: 2; align-self: end; }
  .dash-hello { grid-column: 2; align-self: start; font-size: 1.75rem; }
  .dash-meta, .dash-bio, .dash-actions { grid-column: 1 / -1; }
  .dash-meta { margin-top: 1rem; }
  .dash-actions { justify-self: start; margin-top: 1rem; }
  .avatar--xl { width: 4.4rem; height: 4.4rem; font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) { .dash-avatar, .dash-avatar-veil, .dash-meta a { transition: none; } .dash-avatar:active { transform: none; } }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-width: 0; min-height: 9.5rem;
  border: 1px solid var(--border); background: var(--white); color: var(--black); text-decoration: none; cursor: pointer;
  padding: 1.15rem 1.3rem 1.2rem; font-weight: 300; line-height: 1.3;
  transition: border-color 0.2s, transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tile:hover { border-color: var(--black); transform: translateY(-3px); }
.tile:hover .tile-go { background: var(--black); color: var(--white); border-color: var(--black); }
.tile > span { display: block; }
.tile-top { display: flex !important; align-items: center; justify-content: space-between; gap: 0.75rem; width: 100%; }
.tile-label { font-family: var(--mono); font-size: 0.54rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray); }
.tile-go {
  font-family: var(--mono); font-size: 0.7rem; line-height: 1; width: 1.5rem; height: 1.5rem; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-strong); border-radius: 50%;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tile-visual { flex: 1; width: 100%; display: flex !important; align-items: center; margin: 0.85rem 0 0.8rem; }
.tile .ring { width: 4.6rem; height: 4.6rem; }
.tile .bars { height: 2.6rem; gap: 4px; }
.tile .bars i { max-width: 0.7rem; }
.tile-value { font-size: 1.7rem; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; margin-top: auto; overflow-wrap: anywhere; }
.tile-value--text { font-size: 1.12rem; letter-spacing: -0.015em; line-height: 1.25; }
.tile-value small { font-size: 0.78rem; color: var(--dim); letter-spacing: 0; margin-left: 0.35rem; }
.tile-note { font-size: 0.76rem; color: var(--dim); margin-top: 0.3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.tile--dark { background: var(--black); color: var(--white); border-color: var(--black); }
.tile--dark .tile-label, .tile--dark .tile-note, .tile--dark .tile-value small { color: rgba(var(--paper-rgb),0.6); }
.tile--dark .tile-go { border-color: rgba(var(--paper-rgb),0.4); }
.tile--dark:hover .tile-go { background: var(--white); color: var(--black); border-color: var(--white); }
.tile--dark .ring-track { stroke: rgba(var(--paper-rgb),0.2); } .tile--dark .ring-on { stroke: var(--white); } .tile--dark .ring-center { fill: var(--white); }
.tile--dark .dots i { border-color: rgba(var(--paper-rgb),0.55); }
.tile--dark .ring-sub { fill: rgba(var(--paper-rgb),0.6); }

.ring { width: 5.6rem; height: 5.6rem; display: block; flex-shrink: 0; }
.ring circle { fill: none; stroke-width: 9; }
.ring-track { stroke: rgba(var(--ink-rgb),0.09); }
.ring-on { stroke: var(--black); animation: ringIn 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.ring-light { stroke: rgba(var(--ink-rgb),0.3); animation: ringIn 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.ring-center { font-family: var(--mono); font-size: 21px; fill: var(--black); }
.ring-sub { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--gray); }
@keyframes ringIn { from { stroke-dasharray: 0 100; } }
.bars { display: flex !important; align-items: flex-end; gap: 5px; height: 5.6rem; width: 100%; }
.bars i { flex: 1; max-width: 1.5rem; background: var(--black); transform-origin: bottom; animation: barIn 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.bars i:nth-child(2) { animation-delay: 0.06s; } .bars i:nth-child(3) { animation-delay: 0.12s; } .bars i:nth-child(4) { animation-delay: 0.18s; } .bars i:nth-child(n+5) { animation-delay: 0.24s; }
.bars--podium i { background: rgba(var(--ink-rgb),0.3); } .bars--podium i:nth-child(2) { background: var(--black); }
@keyframes barIn { from { transform: scaleY(0); } }
.dots { display: flex !important; flex-wrap: wrap; gap: 6px; align-content: center; }
.dots i { width: 0.9rem; height: 0.9rem; border-radius: 50%; border: 1px solid var(--border-strong); }
.dots i.on { background: var(--black); border-color: var(--black); }
.tile-date { display: flex !important; align-items: baseline; gap: 0.6rem; }
.tile-date b { font-weight: 300; font-size: 4.6rem; letter-spacing: -0.05em; line-height: 0.9; }
.tile-date span { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray); }
.dash-tiles { margin-bottom: 2.5rem; }
.dash-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; align-items: start; }
.dash-panel { min-width: 0; }
.dash-panel .section-label { margin-bottom: 0.75rem; }
.dash-more { font-family: var(--mono); font-size: 0.54rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray); text-decoration: none; white-space: nowrap; transition: color 0.2s; }
.dash-more:hover { color: var(--black); }
a.row--link { color: inherit; text-decoration: none; row-gap: 0.5rem; transition: background-color 0.2s; }
a.row--link:hover { background: var(--tint); }
.row--link .row-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row--link .row-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.state--compact { padding: 1.5rem 1.25rem; }
.state--compact .state-text { margin-bottom: 0.9rem; }
.drawer-foot { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--border); display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .dash-split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: minmax(0, 1fr); } .tile { min-height: 0; } .dash-tiles { margin-bottom: 2rem; } }
@media (prefers-reduced-motion: reduce) { .ring-on, .ring-light, .bars i { animation: none; } .tile, .tile:hover { transition: none; transform: none; } .dash-more, a.row--link { transition: none; } }

/* ── GREETING after sign-in: "Hello, Name" written by hand, then the dashboard ── */
.greet {
  position: fixed; inset: 0; z-index: 500; background: #0d0d0d; color: #f5f5f3;
  display: flex; align-items: center; justify-content: center; transition: opacity 0.45s ease;
}
.greet.out { opacity: 0; pointer-events: none; }
.greet-line {
  font-family: 'Sacramento', cursive; font-size: clamp(2.4rem, 8vw, 5.4rem); line-height: 1.3; white-space: nowrap; padding: 0.2em 0.45em;
  /* the ink flows in from the left behind a soft edge */
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 33.3%, transparent 41%, transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 33.3%, transparent 41%, transparent 100%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  animation: greetWrite 1.15s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes greetWrite { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .greet-line { animation: none; -webkit-mask-image: none; mask-image: none; } .greet { transition: none; } }

/* ── DASHBOARD: next session (the main card), fund bar, sparkline ── */
.next {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.5rem 2.25rem; align-items: center;
  background: var(--black); color: var(--white); padding: 1.9rem 2.1rem; margin-bottom: 1.1rem;
}
.next-date { text-align: center; border-right: 1px solid rgba(var(--paper-rgb),0.2); padding-right: 2.25rem; }
.next-date b { display: block; font-weight: 300; font-size: 4.8rem; letter-spacing: -0.05em; line-height: 0.9; }
.next-date span { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(var(--paper-rgb),0.65); margin-top: 0.6rem; }
.next-label { font-family: var(--mono); font-size: 0.54rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(var(--paper-rgb),0.6); }
.next-title { font-size: clamp(1.35rem, 2.6vw, 2rem); font-weight: 300; letter-spacing: -0.025em; line-height: 1.15; margin: 0.45rem 0 0.9rem; overflow-wrap: anywhere; }
.next .avatar { border-color: rgba(var(--paper-rgb),0.4); color: var(--white); background: transparent; }
.next .person-sub { color: rgba(var(--paper-rgb),0.6); }
.next-rsvp { display: flex; flex-direction: column; gap: 0.5rem; min-width: 9.5rem; }
.next-rsvp .btn { background: transparent; color: var(--white); border-color: rgba(var(--paper-rgb),0.4); width: 100%; min-height: 2.7rem; }
.next-rsvp .btn:hover { border-color: var(--white); }
.next-rsvp .btn[aria-pressed="true"] { background: var(--white); color: var(--black); border-color: var(--white); }
.next-meta { font-size: 0.72rem; color: rgba(var(--paper-rgb),0.6); display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.2rem; }
.next-meta a { color: inherit; }
.next--empty { display: block; }
.note-row {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; border: 1px solid var(--border-strong); padding: 0.8rem 1.1rem; margin-bottom: 1.1rem;
  text-decoration: none; font-size: 0.86rem; transition: border-color 0.2s;
}
.note-row:hover { border-color: var(--black); }
.note-row .steps-dots { flex: 0 0 7rem; }
.note-row .grow { flex: 1 1 10rem; }
.fund-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.6rem 1.75rem; align-items: center; width: 100%; text-align: left;
  border: 1px solid var(--border); background: var(--white); color: var(--black); padding: 1.15rem 1.3rem; margin-bottom: 1.1rem; cursor: pointer; font-weight: 300;
  transition: border-color 0.2s;
}
.fund-row:hover { border-color: var(--black); }
.fund-row:hover .tile-go { background: var(--black); color: var(--white); border-color: var(--black); }
.fund-row > span { display: block; min-width: 0; }
.fund-row > span:first-child > span { display: block; }
.fund-row .tile-go { display: inline-flex; }
.fund-row-figure { font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1.1; margin-top: 0.3rem; white-space: nowrap; }
.fund-row-figure small { font-size: 0.76rem; color: var(--dim); letter-spacing: 0; margin-left: 0.35rem; }
.fund-row-bar { display: flex !important; align-items: center; gap: 0.9rem; }
.fund-row-bar .progress { flex: 1; height: 1.25rem; border-radius: 0; }
.fund-row-bar .progress i { border-radius: 0; transform-origin: left; animation: fundIn 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.fund-row-bar b { font-family: var(--mono); font-weight: 400; font-size: 0.8rem; }
@keyframes fundIn { from { transform: scaleX(0); } }
.spark { display: block; width: 100%; height: 5.6rem; overflow: visible; }
.spark-line { fill: none; stroke: var(--black); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 100; animation: sparkIn 1.1s cubic-bezier(0.3, 0, 0.2, 1) both; }
.spark-area { fill: rgba(var(--ink-rgb),0.06); stroke: none; }
.spark-end { fill: var(--black); stroke: var(--white); stroke-width: 2; }
@keyframes sparkIn { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@media (max-width: 760px) {
  .next { grid-template-columns: auto minmax(0, 1fr); padding: 1.4rem 1.25rem; gap: 1.25rem; }
  .next-date { padding-right: 1.25rem; } .next-date b { font-size: 3.2rem; }
  .next-rsvp { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; } .next-rsvp .btn { flex: 1; width: auto; } .next-meta { flex: 1 1 100%; }
  .fund-row { grid-template-columns: minmax(0, 1fr) auto; } .fund-row-bar { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) { .spark-line, .fund-row-bar .progress i { animation: none; } }

/* ── THEME PICKER (first sign-in, and "Theme" in the side bar) ── */
.theme-back { position: fixed; inset: 0; z-index: 400; background: rgba(10,12,17,0.55); display: flex; align-items: center; justify-content: center; padding: 1.25rem; animation: themeIn 0.3s ease both; }
.theme-box { background: var(--white); color: var(--black); border: 1px solid var(--border-strong); width: min(46rem, 100%); max-height: 100%; overflow-y: auto; padding: 2rem 2rem 1.75rem; transition: background 0.3s, color 0.3s; }
.theme-title { font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.15; margin: 0.4rem 0 0.4rem; }
.theme-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; margin: 1.5rem 0 1.6rem; }
.theme-opt { display: block; text-align: left; cursor: pointer; background: none; border: 1px solid var(--border-strong); padding: 0.45rem 0.45rem 0.7rem; color: inherit; font-weight: 300; transition: border-color 0.2s, transform 0.2s; }
.theme-opt:hover { transform: translateY(-2px); }
.theme-opt[aria-pressed="true"] { border-color: var(--black); box-shadow: 0 0 0 1px var(--black); }
.theme-swatch { display: block; aspect-ratio: 4 / 3; background: rgb(var(--s-paper)); border: 1px solid rgba(var(--s-ink),0.18); position: relative; overflow: hidden; }
.theme-swatch::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 16%; background: rgb(var(--s-bar)); }
.theme-swatch i { position: absolute; left: 12%; background: rgb(var(--s-ink)); }
.theme-swatch i:nth-child(1) { top: 32%; width: 76%; height: 26%; }
.theme-swatch i:nth-child(2) { top: 68%; width: 34%; height: 5%; opacity: 0.55; }
.theme-swatch i:nth-child(3) { top: 80%; width: 52%; height: 5%; opacity: 0.3; }
.theme-name { display: block; font-size: 0.86rem; margin-top: 0.6rem; padding: 0 0.2rem; }
.theme-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
@keyframes themeIn { from { opacity: 0; } }
@media (max-width: 560px) { .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .theme-box { padding: 1.4rem 1.2rem; } }
@media (prefers-reduced-motion: reduce) { .theme-back { animation: none; } .theme-opt, .theme-box { transition: none; } }

/* Events page with no events: a large "Coming soon." on a thin ground line, and the mascot Thirteen
   running along it and hopping over the letters (path built in events.js). No box. */
.soon { --soon-size: clamp(2.2rem, 7vw, 4.6rem); position: relative; overflow: hidden; padding: calc(var(--soon-size) * 2) 0 calc(var(--soon-size) * 0.9); margin: 0 0 2rem; }
.soon-text { position: relative; z-index: 1; margin: 0; text-align: center; font-size: var(--soon-size); font-weight: 300; letter-spacing: -0.035em; line-height: 1; }
/* teleport gates: an upright oval ring with a soft glow inside; hidden until Thirteen uses one */
.soon-gate { position: absolute; left: -9rem; top: 0; width: calc(var(--soon-size) * 0.5); height: calc(var(--soon-size) * 1.1); box-sizing: border-box;
  border-radius: 50%; border: 3px solid var(--black); background: radial-gradient(closest-side, rgba(var(--ink-rgb), 0.18), rgba(var(--ink-rgb), 0) 80%);
  opacity: 0; transform: scale(0.2, 0); transform-origin: 50% 100%; }
.soon-gate::after { content: ''; position: absolute; inset: 18%; border-radius: 50%; border: 1px solid var(--black); opacity: 0.5; animation: soonGate 0.8s ease-in-out infinite; }
@keyframes soonGate { 50% { transform: scale(0.65); opacity: 0.15; } }
.soon-walker { position: absolute; left: 0; top: 0; z-index: 2; width: calc(var(--soon-size) * 0.62); transform: translate(-200%, 0); will-change: transform; }
.soon-body { position: relative; display: block; animation: soonRun 0.22s steps(2) infinite; }
.soon-mascot { position: relative; display: block; width: 100%; height: auto; image-rendering: pixelated; }
/* the blocks of the art, used when Thirteen comes apart or builds itself */
.soon-pixels { position: absolute; inset: 0; }
.soon-px { position: absolute; width: calc(100% / 14 + 0.5px); height: calc(100% / 16 + 0.5px); transform: scale(0); }
@keyframes soonRun { from { transform: translateY(0); } to { transform: translateY(-5%); } }
@media (prefers-reduced-motion: reduce) { .soon-body, .soon-gate::after { animation: none; } .soon-px { display: none; } }

/* Team page: the mentor card type without a photo; the LinkedIn links sit on one line at the foot */
.team-card .profile-body { justify-content: flex-start; padding: 1.25rem 1.4rem; }
.team-card .profile-degree + .profile-degree { margin-top: 0.2rem; }
.team-link { margin-top: auto; padding-top: 1.4rem; font-size: 0.76rem; color: inherit; }

/* ── INTERACTIVE PHOTO CROP, ZOOM & LIVE PREVIEW (Admin Drawer) ── */
.crop-studio {
  border: 1px solid var(--border-strong);
  background: var(--tint);
  padding: 1rem;
  display: grid;
  gap: 1rem;
}
.crop-workspace {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.1rem;
  align-items: center;
}
.crop-viewport {
  position: relative;
  width: 9.5rem;
  background: rgba(var(--ink-rgb), 0.08);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.crop-viewport--mentor { aspect-ratio: 1 / 1; }
.crop-viewport--scout { aspect-ratio: 4 / 5; }
.crop-viewport--avatar { aspect-ratio: 1 / 1; width: 8rem; border-radius: 50%; }
.crop-viewport--avatar .crop-grid { border-radius: 50%; }
.crop-viewport--avatar.is-empty { cursor: pointer; border-style: dashed; background: transparent; }
.avatar-edit-initials {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 1.15rem; letter-spacing: 0.08em; color: rgba(var(--ink-rgb),0.4);
}
.avatar-edit-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; align-items: center; }
.avatar-edit .crop-controls .field-hint { margin-top: 0.1rem; }
@media (max-width: 420px) { .avatar-edit-body { grid-template-columns: minmax(0, 1fr); justify-items: start; } }
.crop-viewport.is-dragging { cursor: grabbing; }
.crop-viewport img,
.crop-live-photo img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 50% 50%;
  max-width: none;
  max-height: none;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}
.crop-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease-out;
  background-image:
    linear-gradient(to right, rgba(245,245,243,0.38) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245,245,243,0.38) 1px, transparent 1px);
  background-size: 33.333% 33.333%;
  box-shadow: inset 0 0 0 1px rgba(13,13,13,0.25);
}
.crop-viewport:hover .crop-grid,
.crop-viewport:focus-visible .crop-grid,
.crop-viewport.is-dragging .crop-grid {
  opacity: 1;
}
.crop-controls {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}
.crop-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}
.crop-range {
  width: 100%;
  accent-color: var(--black);
  cursor: pointer;
  height: 1.5rem;
}
.crop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.crop-live-wrap {
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}
.crop-live-label {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.5rem;
}
.crop-live-photo {
  position: relative;
  overflow: hidden;
  background: rgba(var(--ink-rgb), 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile--row .crop-live-photo {
  width: 6.2rem;
  height: 6.2rem;
  min-height: 6.2rem;
  aspect-ratio: 1 / 1;
  flex: 0 0 6.2rem;
  border: 1px solid var(--border);
}
.profile--scout-preview {
  max-width: 12rem;
}
.profile--scout-preview .crop-live-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
}
.profile--row .crop-live-Name {
  font-size: 1.35rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 400;
}
@media (max-width: 560px) {
  .crop-workspace { grid-template-columns: 1fr; }
  .crop-viewport { width: 8.5rem; }
}
