/* ═══════════════════════════════════════════════════════════════
   Whiteboard Session — dedicated event page
   IBM Carbon-inspired: light, flat, sharp-cornered, IBM Blue accent.
   Overrides design-system.css's dark tokens locally (scoped to this
   page only — the shared file, and every other page using it, is
   untouched).
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-secondary: #f4f4f4;
  --surface-tertiary: #e8e8e8;

  --border: #e0e0e0;
  --border-secondary: #c6c6c6;

  --text: #161616;
  --text-bright: #161616;
  --text-dim: #525252;
  --text-muted: #8d8d8d;

  --accent-primary: #0f62fe;
  --accent-primary-dark: #0043ce;
  --accent-primary-light: #0353e9;

  --accent-success: #24a148;
  --accent-error: #da1e28;
  --accent-warning: #f1c21b;
  --accent-info: #0f62fe;
  --accent-cyan: #1192e8;
  --accent-purple: #8a3ffc;

  --font-display: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-ui: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius: 0px;
  --radius-lg: 0px;
  --radius-sm: 0px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 32px rgba(0,0,0,.14);
  --shadow-accent: none;
}

/* design-system.css's .btn-primary is tuned for a dark page (gold bg, near-
   black text) — on this light page's blue button, force white text and drop
   the hover-lift; Carbon buttons darken in place, they don't lift. */
.btn-primary { color: #ffffff; }
.btn-primary:hover:not(:disabled) { transform: none; box-shadow: none; background: var(--accent-primary-dark); color: #ffffff; }
.btn-primary:active:not(:disabled) { transform: none; }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ── Nav ─────────────────────────────────────────────────────── */
.wb-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 24px;
  background: #161616;
}

.wb-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 14px;
  color: #ffffff;
}
.wb-logo-img { height: 32px; width: 32px; border-radius: 3px; object-fit: contain; }

.wb-back {
  font-size: 13px;
  color: #c6c6c6;
  text-decoration: none;
  transition: color .12s;
}
.wb-back:hover { color: #ffffff; }

/* ── Layout ──────────────────────────────────────────────────── */
.wb-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 100px;
}

.wb-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
}

/* ── Signature: torn desk-calendar card ─────────────────────── */
.wb-cal {
  position: sticky;
  top: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent-primary);
  padding: 28px 26px 24px;
  overflow: hidden;
}

.wb-cal-rings {
  display: flex;
  justify-content: space-between;
  padding: 0 2px 20px;
  margin-bottom: 20px;
  border-bottom: 1px dashed var(--border-secondary);
}
.wb-cal-rings span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border-secondary);
}

.wb-cal-month {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.wb-cal-day {
  font-family: var(--font-display);
  font-size: 92px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-bright);
  margin: 4px 0 2px;
}

.wb-cal-weekday {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.wb-cal-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 18px;
}

.wb-cal-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 10px;
}
.wb-cal-row svg { flex-shrink: 0; color: var(--accent-primary); }

.wb-cal-local {
  color: var(--text-dim);
  padding-bottom: 20px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.wb-cal-local svg { color: var(--accent-cyan); }

.wb-ics-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  margin-top: 6px;
  background: transparent;
  border: 1px solid var(--text);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.wb-ics-btn:hover { border-color: var(--accent-primary); color: var(--accent-primary); }

/* ── Content ─────────────────────────────────────────────────── */
.wb-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-primary-dark);
  background: #edf5ff;
  border: none;
  padding: 5px 12px;
  margin-bottom: 18px;
}

.wb-content h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-bright);
  margin-bottom: 18px;
}

.wb-lede {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 56ch;
  margin-bottom: 40px;
}

/* ── RSVP panel ──────────────────────────────────────────────── */
.wb-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  max-width: 480px;
}

.wb-panel h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 20px;
}

.wb-fld { margin-bottom: 16px; }
.wb-fld label {
  display: block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
  text-transform: none;
  letter-spacing: normal;
}
.wb-optional { font-weight: 400; color: var(--text-muted); }

.wb-fld input,
.wb-fld textarea {
  width: 100%;
  background: var(--surface-secondary);
  border-radius: 0;
  border: 1px solid var(--border-secondary);
  border-bottom: 2px solid var(--text-muted);
}
.wb-fld input:focus,
.wb-fld textarea:focus { border-bottom-color: var(--accent-primary); box-shadow: none; }
.wb-fld textarea { resize: vertical; min-height: 68px; font-family: var(--font-ui); }

.wb-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.wb-submit { width: 100%; margin-top: 6px; }

/* Locked-in confirmation state — reads as "done", not "disabled". */
.wb-submit.wb-confirmed {
  background: var(--accent-success) !important;
  color: #ffffff !important;
  opacity: 1 !important;
  cursor: default !important;
}
.wb-submit.wb-confirmed::before {
  content: '✓ ';
}

.wb-fld input:disabled,
.wb-fld textarea:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.wb-msg {
  display: none;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 0;
  border-left: 3px solid transparent;
  font-size: 13px;
  line-height: 1.5;
}
.wb-msg.show { display: block; }
.wb-msg.ok  { background: #defbe6; border-left-color: var(--accent-success); color: #0e6027; }
.wb-msg.err { background: #fff1f1; border-left-color: var(--accent-error); color: #a2191f; }

/* ── Footer ──────────────────────────────────────────────────── */
.wb-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.wb-footer a { color: var(--text-dim); text-decoration: none; }
.wb-footer a:hover { color: var(--accent-primary); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 820px) {
  .wb-layout { grid-template-columns: 1fr; gap: 36px; }
  .wb-cal { position: static; max-width: 300px; }
  .wb-panel { max-width: none; padding: 24px; }
}

@media (max-width: 480px) {
  .wb-main { padding: 40px 16px 72px; }
  .wb-cal { padding: 22px 20px 20px; }
  .wb-cal-day { font-size: 72px; }
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
