/* Booster (yotta-mono plan 328), on News' and Recruiting's sheet (tokens synced by `make sync-tokens`);
   its own rules sit at the bottom. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --sc-green:#7cbd3c; --sc-yellow:#f2c840; --sc-orange:#e07235; --sc-red:#d13644; --sc-magenta:#86347c;
  --bg:#fbf6e4; --bg2:#efead9; --bg3:#e3decd;
  /* On-ramp surfaces (= --bg2 / --bg3) for light/dark shade parity. */
  --surface:#efead9; --surface2:#e3decd;
  --border:rgba(35,26,21,0.12); --border-strong:rgba(35,26,21,0.25);
  --text:#231a15; --text2:#5f574f; --text3:#8f887d;
  --accent:#d13644;
  /* Light chrome (top bar, sidebar, footer): matches the body bg (neutral 100). */
  --hbg:#fbf6e4; --htxt:#231a15; --chrome-rgb:35,26,21;
  --sidebar-w:52px; --sidebar-w-open:200px;
  --nav-item:#231a15;
}
[data-theme="dark"] {
  --bg:#231a15; --bg2:#2f2621; --bg3:#3b322c;
  --surface:#2f2621; --surface2:#3b322c;
  --border:rgba(251,246,228,0.10); --border-strong:rgba(251,246,228,0.22);
  --text:#fbf6e4; --text2:#cbc5b6; --text3:#837c71;
  --accent:#f2c840;
  --hbg:#231a15; --htxt:#fbf6e4; --chrome-rgb:251,246,228;
  --nav-item:rgba(var(--chrome-rgb),0.5);
}
html, body { height:100%; font-family:'IBM Plex Mono',monospace; background:var(--bg); color:var(--text); }
#root { height:100%; display:flex; flex-direction:column; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
a { color: inherit; text-decoration: none; }

/* The current Agents reference uses IBM Plex Sans throughout. Inline legacy
   Mono declarations remain for source compatibility but this rule keeps every
   admin roster typographically identical in both themes. */
html, body, *, *::before, *::after { font-family:'IBM Plex Sans',sans-serif !important; }
pre, pre *, kbd, samp { font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace !important; }

* { scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:3px; }


.sidebar { transition: width 0.22s cubic-bezier(.4,0,.2,1); overflow:hidden; }
.nav-label { transition: opacity 0.15s, width 0.22s; white-space:nowrap; overflow:hidden; }

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.blink { animation: blink 1s step-end infinite; }
@keyframes fadeUp { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
.modal-enter { animation:fadeUp .18s ease; }
@keyframes datatable-spin { from{transform:rotate(0)} to{transform:rotate(360deg)} }

/* ── Content pane (right of the sidebars) ─────────────────────────── */
.content-pane {
  flex: 1 1 auto; min-width: 0;
  overflow-y: auto;
  scroll-behavior: smooth;
  background: var(--bg);
}
.content-pane-inner { padding: 0 0 80px; max-width: 920px; }
.content-pane-inner.wide { max-width: none; padding: 0; }

/* ── Agents-style admin roster surface ───────────────────────────── */

/* ── Action button — square, flat, theme-inverting. Used for both
       Download CSV and Print. Sits at the top of the content pane.
       Light mode: dark bg, cream text. Dark mode: cream bg, dark text. */
.action-button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; font-size: 11px; letter-spacing: 0.06em;
  font-family: 'IBM Plex Mono', monospace; font-weight: 500;
  text-transform: uppercase;
  background: var(--text); color: var(--bg);
  border: 0; border-radius: 0;
  margin-bottom: 28px;
  text-decoration: none;
}
.action-button:hover { background: var(--text2); }
.action-button svg { stroke: currentColor; }

/* ── Markdown renderer output ────────────────────────────────────── */
.markdown-content { line-height: 1.65; color: var(--text); font-family: 'IBM Plex Sans', system-ui, sans-serif; }
.markdown-content h1 { font-size: 28px; margin: 24px 0 12px; font-weight: 600; }
.markdown-content h2 { font-size: 22px; margin: 28px 0 10px; font-weight: 600; }
.markdown-content h3 { font-size: 18px; margin: 20px 0 8px; font-weight: 600; }
.markdown-content p, .markdown-content li { font-size: 15px; margin: 8px 0; }
.markdown-content ul, .markdown-content ol { padding-left: 24px; }
.markdown-content pre {
  background: var(--surface); padding: 12px;
  border: 1px solid var(--border); border-radius: 4px;
  overflow-x: auto; font-family: 'IBM Plex Mono', monospace; font-size: 13px;
}
.markdown-content code {
  background: var(--surface); padding: 1px 5px;
  font-family: 'IBM Plex Mono', monospace; font-size: 13px;
  border-radius: 3px;
}
.markdown-content pre code { background: none; padding: 0; }
.markdown-content table { border-collapse: collapse; margin: 16px 0; width: 100%; font-size: 14px; }
.markdown-content th, .markdown-content td { padding: 8px 10px; border: 1px solid var(--border); text-align: left; }
.markdown-content th { background: var(--surface2); font-weight: 600; }
.markdown-content blockquote { border-left: 3px solid var(--accent); padding-left: 12px; color: var(--text2); margin: 12px 0; }
.markdown-content .resume-download {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; font-size: 11px; letter-spacing: 0.06em;
  font-family: 'IBM Plex Mono', monospace; font-weight: 500;
  text-transform: uppercase;
  background: var(--text); color: var(--bg);
  border: 0; border-radius: 0;
  text-decoration: none;
  margin: 6px 0 16px;
}
.markdown-content .resume-download:hover { background: var(--text2); }
.markdown-content .resume-download::after { content: '↓'; margin-left: 2px; }

/* ── CSV preview table ───────────────────────────────────────────── */
.csv-preview { border-collapse: collapse; width: 100%; font-size: 13px; font-family: 'IBM Plex Mono', monospace; }
.csv-preview th, .csv-preview td { padding: 6px 10px; border: 1px solid var(--border); text-align: left; white-space: nowrap; }
.csv-preview th { background: var(--surface2); font-weight: 600; position: sticky; top: 0; }

/* CSV page header — first section rendered to match markdown h1 +
   italic confidentiality line + Last Updated + divider. Styling
   intentionally mirrors .markdown-content rules so a CSV page and a
   markdown page render the header block identically. */
.csv-page-header {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 28px;
}
.csv-page-header h1 {
  font-size: 28px; margin: 24px 0 12px; font-weight: 600;
  line-height: 1.25;
}
.csv-page-header .csv-confidential {
  margin: 8px 0;
  font-size: 15px;
  color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
}
.csv-page-header .csv-meta {
  margin: 8px 0;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 15px;
  color: var(--text);
}
.csv-page-header hr {
  border: 0; border-top: 1px solid var(--border);
  margin: 24px 0 12px;
}

/* Markdown hr to match — marked emits a bare <hr>. */
.markdown-content hr {
  border: 0; border-top: 1px solid var(--border);
  margin: 24px 0 12px;
}

/* CSV multi-section rendering — one blank-line-delimited section
   becomes a (caption + table) or (heading + paragraphs) block. */
.csv-block { margin-bottom: 28px; }
.csv-block:last-child { margin-bottom: 0; }
.csv-block h3 {
  margin: 0 0 8px;
  font-size: 16px; font-weight: 600;
  color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
}
.csv-block p {
  margin: 0 0 6px;
  font-size: 14px; color: var(--text2);
  line-height: 1.55;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
}
.csv-block table.csv-preview { margin-top: 12px; }

/* ── Print: show only the active .print-target ──────────────────── */
@media print {
  header, .sidebar, .pitchdeck-toc, .action-button { display: none !important; }
  .content-pane { overflow: visible !important; }
  .content-pane-inner { padding: 0 !important; max-width: none !important; }
  .markdown-content h2, .markdown-content h3, .markdown-content table { page-break-inside: avoid; }
  .pitchdeck-content section.slide { page-break-after: always; }
}

/* Focus (owner, 2026-10-08: no blue focus outline). A text field shows its
   caret, so it draws no ring at all. A click or tap draws none either.
   Keyboard focus keeps a thin neutral ring, because without one Tab moves
   through the page invisibly. */
input:focus, textarea:focus, select:focus, [contenteditable]:focus { outline: none; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--text2); outline-offset: 2px; }
input:focus-visible, textarea:focus-visible, select:focus-visible, [contenteditable]:focus-visible { outline: none; }

/* ── Booster ───────────────────────────────────── */
/* The sign-in page is the portals' card (email-sign-in.css, synced); its one
   action is a link, not a button, so it drops the underline. */
.esi-page a.esi-submit { text-decoration:none; }
.bs-subline { margin:0 0 24px; font-size:12px; }
.bs-muted { color:var(--text2); font-size:12px; }
.bs-form { display:flex; flex-direction:column; gap:16px; max-width:820px; }
.bs-row { display:grid; grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)); gap:16px; }
.bs-field { display:flex; flex-direction:column; }
.bs-field input, .bs-field select, .bs-field textarea, .bs-filter-row select {
  font-size:13px; color:var(--text); background:var(--bg); border:1px solid var(--border-strong);
  border-radius:6px; padding:8px 10px; outline:none;
}
.bs-field textarea { font-family:'IBM Plex Mono', ui-monospace, monospace !important; line-height:1.5; resize:vertical; }
.bs-field input:disabled, .bs-field select:disabled, .bs-field textarea:disabled { opacity:.7; }
.bs-field.has-problem input, .bs-field.has-problem select { border-color:var(--sc-orange); }
.bs-hint { margin-top:5px; font-size:11px; color:var(--text3); }
.bs-problem { margin-top:5px; font-size:12px; color:var(--sc-orange); }
/* Identity's cards on a record's page. */
.id-canvas .panel-user { display:flex; flex-direction:column; gap:16px; }
.bs-form { display:flex; flex-direction:column; gap:16px; max-width:none; }
.bs-subline { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin:0; font-size:13px; }
/* A list's long first words get the room. */
.line-table.articles-table th:first-child { width:45%; }
/* An article's fields read as Identity's dialogs' (portal.css .modal .field). */
.bs-form .field > span { font-size:12px; font-weight:600; letter-spacing:normal; text-transform:none; color:var(--text2); }
.bs-form .field > .hint { margin-top:-2px; font-size:12px; font-weight:400; letter-spacing:normal; color:var(--text3); }

/* The page before its scripts run (index.html): the shell's own classes,
   unpopulated, with the stripe moving at StripeBar's speed. */
.bs-frame-stripe { height:3px; flex:none; overflow:hidden; }
.bs-frame-stripe::before {
  content:''; display:block; width:200%; height:100%;
  background:repeating-linear-gradient(90deg, var(--sc-green) 0 10%, var(--sc-yellow) 10% 20%, var(--sc-orange) 20% 30%, var(--sc-red) 30% 40%, var(--sc-magenta) 40% 50%);
  animation:bs-stripe 1.667s linear infinite;
}
.bs-frame-foot { height:41px; }
@keyframes bs-stripe { to { transform:translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .bs-frame-stripe::before { animation:none; } }

/* An article's text: room to write, and the tools beside its name. */
.bs-body-head { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; }
.bs-body-head > span { font-size:12px; font-weight:600; color:var(--text2); }
.bs-form textarea.input { min-height:420px; font-family:'IBM Plex Mono', ui-monospace, monospace !important; font-size:13px; line-height:1.55; resize:vertical; }
.bs-address { display:flex; align-items:center; gap:6px; }
.bs-address-base { color:var(--text2); font-size:13px; white-space:nowrap; }

/* Booster's own (plan 328): the open round's banner, the form in the job
   application's style (a label above each box, a red asterisk for a required
   answer, a count under a long one), the founders' list, the file versions,
   the checklist and the save state. */
/* The round's banner (owner, 2026-11-16: "move the button right aligned and
   the text left aligned"): the words fill the row from the left and wrap in
   their own space, the button keeps to the right on the same row, and drops
   below the words, still at the right, only on a phone-width screen. */
.bs-banner { display:flex; align-items:center; gap:16px; flex-wrap:nowrap;
  margin:0 0 16px; padding:14px 18px; border:1px solid var(--border-strong); border-radius:12px; background:var(--card-lift, var(--bg2)); }
.bs-banner > div { flex:1 1 0; min-width:0; text-align:left; }
.bs-banner > .btn { flex:none; margin-left:auto; }
@media (max-width:560px) { .bs-banner { flex-wrap:wrap; } .bs-banner > div { flex-basis:100%; } }
.bs-banner span { color:var(--text2); }
/* The countdown under the banner (owner, 2026-11-16: "put a countdown in a
   box below the start application box"): the banner's card, its title at the
   left, then days, hours, minutes and seconds, each figure over its word, in
   figures of one width so the seconds don't shift as they tick. */
.bs-countdown { margin:0 0 16px; padding:14px 18px; border:1px solid var(--border-strong); border-radius:12px; background:var(--card-lift, var(--bg2)); text-align:left; }
.bs-countdown-title { display:block; color:var(--text2); margin-bottom:10px; }
.bs-countdown-units { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; }
.bs-countdown-unit { display:flex; flex-direction:column; align-items:center; gap:2px; padding:10px 6px; border:1px solid var(--border); border-radius:10px; background:var(--bg); }
.bs-countdown-unit strong { font-family:'IBM Plex Sans',sans-serif; font-size:28px; font-weight:600; line-height:1.1; font-variant-numeric:tabular-nums; color:var(--text); }
.bs-countdown-unit span { font-size:12px; color:var(--text3); }
@media (max-width:560px) { .bs-countdown-unit strong { font-size:22px; } }
/* An application's open items (owner, 2026-11-16: "have a box that says Open
   items: [X] and it should have a drop down carrot that lets you expand to
   see all the open items"): the banner's card, its head a row with the count
   at the left and the caret at the right, ▾ while closed and ▴ while open, as
   Identity's Rows and Actions draw a dropdown's (portal.css .size-btn .caret).
   The head keeps its colour under the pointer (owner, 2026-11-16: "the open
   items back shouldn't color change"). */
.bs-open-items { margin:0 0 16px; border:1px solid var(--border-strong); border-radius:12px; background:var(--card-lift, var(--bg2)); text-align:left; }
.bs-open-items-head { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; padding:14px 18px; border:0; border-radius:12px;
  background:transparent; color:var(--text); font:inherit; text-align:left; }
button.bs-open-items-head { cursor:pointer; }
button.bs-open-items-head:focus-visible { outline:none; box-shadow:inset 0 0 0 1px var(--border-strong); }
.bs-open-items-head .caret { flex:none; font-size:9px; color:var(--text2); }
.bs-open-items-body { padding:0 18px 14px; }
.bs-open-items .bs-done { margin:0; padding:0 18px 14px; }
/* Dropdowns (owner, 2026-11-16: "make sure the drop down boxes are our
   style, not apple. also, make sure that dropdown boxes are the same color as
   the background. inputs are the main background color, dropdowns are not"):
   the Access Portal's own menu (portal.css .signup-select, .select-menu), the
   button on the card's colour where a text input keeps the page's. */
.bs-select .select-btn { background:transparent; }
.bs-select .select-btn:disabled { cursor:default; opacity:0.6; }
.bs-select.bs-round { flex:none; width:180px; }
.bs-select.bs-status-select { width:200px; }
.bs-select .select-btn { font-family:inherit; text-transform:none; letter-spacing:normal; }
/* Our calendar (owner, 2026-11-16: "calendar needs our styling"): the
   dropdowns' menu (portal.css .filter-menu, .select-option), the month's name
   between ‹ and ›, seven columns of days, today outlined, the chosen day the
   chosen option's green. Month questions get four rows of three months. */
.bs-cal { width:280px; padding:10px; }
.bs-cal-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.bs-cal-head strong { font-size:13px; font-weight:600; color:var(--text); }
.bs-cal-nav { width:28px; height:28px; border:0; border-radius:6px; background:transparent; color:var(--text2); font-size:16px; line-height:1; cursor:pointer; }
.bs-cal-nav:hover { background:var(--lift); color:var(--text); }
.bs-cal-days { display:grid; grid-template-columns:repeat(7, 1fr); gap:2px; }
.bs-cal-months { display:grid; grid-template-columns:repeat(3, 1fr); gap:4px; }
.bs-cal-weekday { padding:4px 0; text-align:center; font-size:11px; color:var(--text3); }
.bs-cal .bs-cal-cell { padding:7px 0; text-align:center; font-variant-numeric:tabular-nums; }
.bs-cal .bs-cal-cell.is-today:not(.on) { box-shadow:inset 0 0 0 1px var(--border-strong); color:var(--text); }
.bs-cal .bs-cal-cell:hover:not(.on) { background:var(--lift); color:var(--text); }
.bs-cal-foot { display:flex; justify-content:flex-end; margin-top:8px; padding-top:8px; border-top:1px solid var(--border); }
.bs-cal-clear { border:0; background:transparent; color:var(--text2); font-size:12px; cursor:pointer; text-decoration:underline; text-underline-offset:2px; }
.bs-cal-clear:hover { color:var(--text); }
/* An application's Status box, at the top (owner, 2026-11-16): the
   countdown's card across the page, Status at the left, its pill at the
   right. */
.bs-status-box { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 16px; padding:14px 18px;
  border:1px solid var(--border-strong); border-radius:12px; background:var(--card-lift, var(--bg2)); }
.bs-status-box strong { font-weight:600; color:var(--text); }
/* The terms box (owner, 2026-11-16): the box to tick, Booster's terms an
   underlined link in its words, as the Access Portal's links are. */
.bs-terms a { color:var(--text); text-decoration:underline; text-underline-offset:2px; }
.bs-terms a:hover { color:var(--sc-green); }
/* Every button on Booster's pages (owner, 2026-11-16: "use the same button
   font we use in the access portal and identity"): IBM Plex Sans in its own
   case, as Identity's cards' (identity.css .id-card .btn) and the Access
   Portal's dialogs' (portal.css .modal .btn), not portal.css's Plex Mono
   capitals. */
.id-workspace .btn { font-family:'IBM Plex Sans',sans-serif; text-transform:none; letter-spacing:normal; font-size:12.5px; font-weight:500; }
.bs-required { color:var(--sc-red); margin-left:3px; }
.bs-count { align-self:flex-end; font-size:11px; color:var(--text3); font-family:'IBM Plex Mono', monospace; }
.bs-form { display:flex; flex-direction:column; gap:18px; }
.bs-form .field, .bs-grid .field { display:flex; flex-direction:column; gap:6px; }
.bs-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:14px 18px; }
/* Two to a row (owner, 2026-11-16: "move amount to the left of deadline for
   active fundraising"): Round and Start date, then Amount and Deadline; one
   column on a phone. */
.bs-grid.bs-grid-pairs { grid-template-columns:repeat(2, minmax(0, 1fr)); }
@media (max-width:560px) { .bs-grid.bs-grid-pairs { grid-template-columns:1fr; } }
/* A paragraph answer in a group's grid takes the whole row, so it doesn't
   stretch its row's short fields to its height. */
.bs-grid .bs-field-long { grid-column:1 / -1; }
.bs-lead { color:var(--text2); margin:0 0 16px; max-width:70ch; }
.bs-list { display:flex; flex-direction:column; gap:12px; align-items:flex-start; }
.bs-list-item { width:100%; border:1px solid var(--border); border-radius:10px; padding:14px 16px; margin:8px 0; }
.bs-list-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.bs-group { border:1px solid var(--border); border-radius:10px; padding:12px 16px; }
.bs-group summary { list-style:none; display:flex; align-items:center; gap:6px; cursor:pointer; font-weight:500; }
/* The fold's chevron is the Access Portal's app groups' (owner, 2026-11-16:
   "make the carrot smaller in additional information. please look at our
   styles in Identity and Access Portal"; login styles.css .group-head): right
   while closed, turned down while open, in the third text colour, never the
   browser's own triangle. */
.bs-group summary::-webkit-details-marker { display:none; }
.bs-group summary svg { flex:none; color:var(--text3); transition:transform 120ms ease; }
.bs-group[open] summary svg { transform:rotate(90deg); }
.bs-group[open] summary { margin-bottom:12px; }
.bs-file-row { display:flex; gap:10px; align-items:center; }
.bs-versions { list-style:none; display:flex; flex-direction:column; gap:6px; margin-top:6px; }
.bs-versions li { display:flex; gap:12px; align-items:baseline; flex-wrap:wrap; }
.bs-versions a { color:var(--text); text-decoration:underline; text-underline-offset:2px; }
.bs-checklist { margin:8px 0 0 18px; display:grid; gap:4px; color:var(--text); }
.bs-done { color:var(--text); }
.bs-status-line { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.bs-save { margin-left:auto; font-size:12px; color:var(--text3); }
.bs-save.is-error { color:var(--sc-red); }
.bs-foot { display:flex; justify-content:flex-end; gap:10px; margin:8px 0 24px; }
.bs-answers { display:grid; gap:10px; }
.bs-answers dt { font-size:12px; color:var(--text3); }
.bs-answers dd { white-space:pre-wrap; overflow-wrap:anywhere; }
.bs-summary { margin-bottom:8px; }
.bs-application .id-card + .id-card, .bs-application > * + * { margin-top:14px; }
