/* ============================================================
   whimpers.lol — shared surface for every page that is not the
   landing page, dashboard or artist profile.
   Colour, type, spacing and control shape only; layout untouched.
   ============================================================ */

:root {
  --theme-ink: #060608;
  --theme-surface: #0b0b0e;
  --theme-surface-2: #101014;
  --theme-line: rgba(255, 255, 255, 0.07);
  --theme-line-2: rgba(255, 255, 255, 0.13);
  --theme-txt: #f3f3f6;
  --theme-muted: rgba(243, 243, 246, 0.55);
  --theme-faint: rgba(243, 243, 246, 0.35);
  --theme-display: "Space Grotesk", Inter, ui-sans-serif, sans-serif;
  --theme-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.admin-page,
body.staff-page,
body.legal-page,
body.leaderboard-page {
  background: var(--theme-ink);
  color: var(--theme-txt);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* headings */
body.admin-page h1, body.staff-page h1,
body.legal-page h1, .leaderboard-page h1 {
  font-family: var(--theme-display);
  letter-spacing: -0.04em;
  font-weight: 600;
}
body.admin-page h2, body.staff-page h2,
body.legal-page h2, .leaderboard-page h2 {
  letter-spacing: -0.02em;
  font-weight: 500;
}
body.admin-page p, body.staff-page p, body.legal-page p { color: var(--theme-muted); }

/* links keep the monochrome identity */
body.admin-page a, body.staff-page a, body.legal-page a, body.leaderboard-page a { color: inherit; }
body.admin-page a:hover, body.staff-page a:hover, body.legal-page a:hover { color: #fff; }

/* surfaces */
body.admin-page .admin-card,
body.admin-page .panel,
body.staff-page .admin-card,
body.staff-page .panel {
  background: var(--theme-surface);
  border: 1px solid var(--theme-line);
  border-radius: 12px;
  box-shadow: none;
}
body.admin-page .admin-card:hover, body.staff-page .admin-card:hover { border-color: var(--theme-line-2); }
body.admin-page .admin-card h2, body.staff-page .admin-card h2 {
  font-size: 13px; font-weight: 500; letter-spacing: 0; color: #fff;
  padding-bottom: 10px; border-bottom: 1px solid var(--theme-line);
}

/* controls */
body.admin-page .btn, body.staff-page .btn, body.legal-page .btn,
body.admin-page button.btn, body.staff-page button.btn {
  border-radius: 8px;
  border: 1px solid var(--theme-line-2);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 12px;
  transition: background 0.18s, border-color 0.18s;
}
body.admin-page .btn:hover, body.staff-page .btn:hover { background: rgba(255, 255, 255, 0.08); }
body.admin-page .btn-primary, body.staff-page .btn-primary {
  background: #fff; border-color: #fff; color: #08080a;
}
body.admin-page .btn-primary:hover, body.staff-page .btn-primary:hover { background: #ececf0; }
body.admin-page .btn-danger, body.staff-page .btn-danger {
  background: rgba(255, 120, 120, 0.1); border-color: rgba(255, 130, 130, 0.3); color: #ffb4b4;
}
body.admin-page input:not([type="checkbox"]):not([type="radio"]),
body.admin-page select, body.admin-page textarea,
body.staff-page input:not([type="checkbox"]):not([type="radio"]),
body.staff-page select, body.staff-page textarea {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--theme-line);
  border-radius: 9px;
  color: #f4f4f6;
}
body.admin-page input:focus, body.admin-page select:focus, body.admin-page textarea:focus,
body.staff-page input:focus, body.staff-page select:focus, body.staff-page textarea:focus {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
  outline: none;
}
body.admin-page :focus-visible, body.staff-page :focus-visible,
body.legal-page :focus-visible { outline: 2px solid rgba(255, 255, 255, 0.55); outline-offset: 2px; }

/* tabs and section navigation */
body.admin-page .admin-section-nav button,
body.staff-page .admin-section-nav button {
  border-radius: 8px;
  color: var(--theme-muted);
  font-size: 12px;
}
body.admin-page .admin-section-nav button:hover,
body.staff-page .admin-section-nav button:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
body.admin-page .admin-section-nav button.on,
body.staff-page .admin-section-nav button.on {
  color: #fff; background: rgba(255, 255, 255, 0.075);
}

/* tables (leaderboard + admin lists) */
body.leaderboard-page .leaderboard-table,
.leaderboard-table {
  border-color: var(--theme-line);
  border-radius: 12px;
  background: var(--theme-surface);
}
.leaderboard-table th {
  font-size: 9.5px; letter-spacing: 0.14em; color: var(--theme-faint);
  text-transform: uppercase; font-weight: 600;
}
.leaderboard-table td { border-color: var(--theme-line); }
.leaderboard-table td a:hover strong { color: #fff; }
.leaderboard-page h1 { font-size: clamp(28px, 4vw, 38px); }
.leaderboard-kicker { color: var(--theme-faint); }
.leaderboard-periods { border-color: var(--theme-line); background: var(--theme-surface); }
.leaderboard-periods button { color: var(--theme-muted); }
.leaderboard-periods button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* legal documents */
body.legal-page .legal-document {
  background: var(--theme-surface);
  border: 1px solid var(--theme-line);
  border-radius: 12px;
  padding: 26px;
}
body.legal-page .legal-document h2 { margin-top: 28px; }
body.legal-page .legal-document h2:first-child { margin-top: 0; }
body.legal-page code { background: #08080a; border-color: var(--theme-line); }

/* exit interstitial */
.out-button { border-radius: 9px; }
.safety-event { border-color: var(--theme-line); }

/* ============================================================
   Secondary public pages (careers, profile editor) opt in with
   <body class="site-themed"> so they share the same surface
   without inheriting the admin/legal page chrome.
   ============================================================ */
body.site-themed {
  background: var(--theme-ink);
  color: var(--theme-txt);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.site-themed .page-head h1 {
  font-family: var(--theme-display);
  font-weight: 600;
  letter-spacing: -0.045em;
  font-size: clamp(30px, 4.4vw, 42px);
  margin-bottom: 8px;
}
body.site-themed .page-head p { color: var(--theme-muted); font-size: 13.5px; }
body.site-themed .page-head { align-items: flex-end; padding-bottom: 22px; }

body.site-themed .panel {
  background: var(--theme-surface);
  border: 1px solid var(--theme-line);
  border-radius: 12px;
  box-shadow: none;
}
body.site-themed .panel-head { border-bottom: 1px solid var(--theme-line); padding-bottom: 12px; margin-bottom: 16px; }
body.site-themed .panel-head h2 {
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 13px; font-weight: 500; letter-spacing: 0; color: #fff;
}
body.site-themed .panel-head .step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--theme-line);
  border-radius: 6px;
  color: var(--theme-muted);
  font-size: 10px;
  width: 20px; height: 20px;
}
body.site-themed .field label,
body.site-themed .field > span,
body.site-themed .hint { color: var(--theme-faint); }
body.site-themed .hint { font-size: 11.5px; }
body.site-themed input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]),
body.site-themed select,
body.site-themed textarea {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--theme-line);
  border-radius: 9px;
  color: #f4f4f6;
  font-size: 12.5px;
}
body.site-themed input:focus, body.site-themed select:focus, body.site-themed textarea:focus {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
  outline: none;
}
body.site-themed .btn {
  border-radius: 8px;
  border: 1px solid var(--theme-line-2);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 12px;
}
body.site-themed .btn:hover { background: rgba(255, 255, 255, 0.085); }
body.site-themed .btn-primary { background: #fff; border-color: #fff; color: #08080a; }
body.site-themed .btn-primary:hover { background: #ececf0; }
body.site-themed .file-btn {
  border-radius: 8px; border: 1px dashed var(--theme-line-2);
  background: rgba(255, 255, 255, 0.03); color: #fff; font-size: 12px;
}
body.site-themed .swatch { border-radius: 8px; border-color: var(--theme-line-2); }

/* careers rows */
body.site-themed .careers-list { display: grid; gap: 10px; }
body.site-themed .job {
  background: var(--theme-surface);
  border: 1px solid var(--theme-line);
  border-radius: 12px;
  padding: 20px 22px;
  transition: border-color 0.18s var(--theme-ease), background 0.18s var(--theme-ease);
}
body.site-themed .job:hover { background: var(--theme-surface-2); border-color: var(--theme-line-2); }
body.site-themed .job h3 { font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; }
body.site-themed .job span { color: var(--theme-faint); font-size: 12px; }
body.site-themed .job .btn { background: rgba(255, 255, 255, 0.05); }
body.site-themed .empty {
  border: 1px dashed var(--theme-line-2);
  border-radius: 12px;
  background: transparent;
  color: var(--theme-muted);
  font-size: 12.5px;
  padding: 26px;
}
body.site-themed .nav { border-bottom: 1px solid var(--theme-line); }
body.site-themed .footer { border-top: 1px solid var(--theme-line); color: var(--theme-faint); }
body.site-themed :focus-visible { outline: 2px solid rgba(255, 255, 255, 0.55); outline-offset: 2px; }

/* native file pickers read as our buttons, not the OS default */
body.site-themed input[type="file"] { color: var(--theme-faint); font-size: 11.5px; }
body.site-themed input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--theme-line-2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
}
body.site-themed input[type="file"]::file-selector-button:hover { background: rgba(255, 255, 255, 0.1); }
body.site-themed .panel-head .step { line-height: 1; }
