/* ============================================================================
   RRGI · the IOSP 2026 event site's shared look (2026-10-05; Jonathan: light, minimal, the
   IOSP website's style). Every page a participant uses outside the graph and the paper view
   loads this first: the join page, the dashboard and the three workshop pages. Each page adds
   only its own layout (dashboard.css, workshop.css, join.css; nodepanel.css scoped to its card).

   The palette and type follow www.iosp.science: a light grey page, white cards, near-black
   text, one accent (royal blue), square corners, Geist for text and Geist Mono for labels.
   ========================================================================== */

:root {
  --bg: #f6f7f9;            /* the page */
  --surface: #ffffff;       /* cards, the top bar */
  --surface-2: #f1f3f6;     /* fields' insides, code, quiet fills */
  --text: #14161d;
  --text-2: #4b5162;        /* secondary text */
  --text-3: #686e7c;        /* labels, times, notes */
  --rule: rgba(20, 22, 29, 0.10);
  --rule-2: rgba(20, 22, 29, 0.22);
  --accent: #1d2d8e;        /* the IOSP royal: links, the main button, focus */
  --accent-2: #131f66;
  --accent-soft: #e9ecf7;
  --ok: #0f7a62;
  --bad: #b42335;
  --warn: #9a5200;
  --edited: #5e47b8;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --wrap: 1040px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
/* `hidden` always wins over a class's own display */
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
code, .mono { font-family: var(--mono); }
p { margin: 0 0 12px; }

h1 { font-weight: 600; font-size: clamp(32px, 5vw, 48px); line-height: 1.05; letter-spacing: -0.03em; margin: 10px 0 0; }
h2 { font-weight: 600; font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 16px; }
h3 { font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 8px; }
.kicker { font: 500 11px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.lede { color: var(--text-2); font-size: 17px; max-width: 62ch; margin: 14px 0 0; }

/* ---- the top bar -------------------------------------------------------- */
.top { background: var(--surface); border-top: 2px solid var(--accent); border-bottom: 1px solid var(--rule); }
.top-in { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 500 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand svg { width: 18px; height: 18px; flex: none; }
.who { display: flex; align-items: center; gap: 14px; min-width: 0; font-size: 14px; color: var(--text-2); }
.who-handle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.checked { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; color: var(--ok); white-space: nowrap; }
.checked::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.not-checked { color: var(--warn); font-weight: 500; white-space: nowrap; }

/* ---- the page ----------------------------------------------------------- */
.page { max-width: var(--wrap); margin: 0 auto; padding: 0 32px 48px; }
.head { padding: 64px 0 32px; }
.back { display: inline-block; font-size: 14px; margin-bottom: 18px; }
.block { padding: 0 0 72px; }

/* ---- controls ------------------------------------------------------------ */
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none;
  min-height: 44px; padding: 10px 18px; border: 1px solid var(--accent); border-radius: 0;
  background: var(--accent); color: #fff; font: 500 15px/1.2 var(--font);
}
button:hover, .button:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; text-decoration: none; }
button:disabled { opacity: 0.45; cursor: default; }
button:disabled:hover { background: var(--accent); border-color: var(--accent); }
button.quiet, .button.quiet { background: var(--surface); border-color: var(--rule-2); color: var(--text); }
button.quiet:hover, .button.quiet:hover { border-color: var(--text-2); background: var(--surface); color: var(--text); }
button.quiet:disabled:hover { border-color: var(--rule-2); }
button.small, .button.small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
button.linkish { background: none; border: none; color: var(--accent); padding: 0 2px; min-height: 44px; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
button.linkish:hover { background: none; color: var(--accent-2); }

input[type="text"], input[type="search"], input:not([type]), select, textarea {
  width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--rule-2); border-radius: 0; color: var(--text);
  font: 400 16px/1.4 var(--font); outline: none;
}
input::placeholder { color: var(--text-3); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.row { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.row > input { flex: 1 1 14rem; }
.stack { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }

/* ---- cards and text ------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--rule); padding: 28px; margin: 0 0 24px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.note { color: var(--text-2); font-size: 15px; }
.msg { font-size: 15px; color: var(--text-2); margin-top: 10px; overflow-wrap: anywhere; }
.msg:empty { display: none; }
.msg.bad { color: var(--bad); }
.msg.good { color: var(--ok); }
.status-line { margin: 0 0 14px; overflow-wrap: anywhere; }
.status-line b { font-weight: 600; }
.status-line .good, .good { color: var(--ok); }
.status-line .warn, .warn { color: var(--warn); }
.empty { color: var(--text-3); font-size: 15px; }
.nowrap { white-space: nowrap; }
.tag { display: inline-block; font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 6px; border: 1px solid currentColor; margin-right: 6px; vertical-align: 1px; }
.tag.accepted, .tag.confirmed { color: var(--ok); }
.tag.rejected { color: var(--bad); }
.tag.edited { color: var(--edited); }
.tag.unconfirmed, .tag.stale { color: var(--warn); }

/* ---- the session strip: sign in, or check in, above a page's content --------- */
.gate { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--accent); padding: 22px 24px; margin: 0 0 40px; }
.gate h2 { font-size: 18px; margin: 0 0 6px; }
.gate p { color: var(--text-2); margin: 0 0 14px; max-width: 64ch; }
.gate .row { max-width: 560px; }
.gate .note { margin: 10px 0 0; font-size: 14px; }

/* ---- the footer ---------------------------------------------------------- */
.foot { border-top: 1px solid var(--rule); }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 20px 32px 32px; font-size: 13px; color: var(--text-3); }

@media (max-width: 560px) {
  .top-in, .page, .foot-in { padding-left: 16px; padding-right: 16px; }
  .head { padding: 36px 0 24px; }
  .block { padding-bottom: 56px; }
  .card { padding: 20px 18px; }
  .gate { padding: 18px 16px; }
  .who-handle { display: none; }
}
