/* Micro Angle — Market Limits decision-intelligence styling.
   Palette: #071A14 ground, #0B261E panels, emerald accents, amber warnings.
   Inter for interface copy; local JetBrains Mono for numerical evidence. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/inter-800.ttf") format("truetype");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-700.woff2") format("woff2");
}

:root {
  --bg: #071a14;
  --bg-deep: #04100c;
  --panel: #0b261e;
  --panel-2: #0f382b;
  --panel-3: #164e3c;
  --slate: #64748b;
  --slate-dim: #123b2f;
  --border: rgba(16, 185, 129, 0.18);
  --border-strong: rgba(52, 211, 153, 0.38);
  --cyan: #34d399;
  --cyan-dim: #065f46;
  --amber: #fbbf24;
  --crimson: #fb7185;
  --green: #34d399;
  --accent: #00e676;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  padding-bottom: 48px;
  background-image:
    radial-gradient(1200px 500px at 15% -10%, rgba(0, 229, 255, 0.05), transparent 60%),
    radial-gradient(900px 400px at 110% 0%, rgba(255, 145, 0, 0.04), transparent 55%);
  background-repeat: no-repeat;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 12px;
  top: 8px;
  z-index: 100;
  background: var(--cyan);
  color: #001014;
  padding: 6px 10px;
  font-family: var(--mono);
}

/* ---------- header ---------- */
.top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 14px;
  border-bottom: 1px solid var(--slate-dim);
}
.brand { display: flex; gap: 14px; align-items: center; }
.brand-mark {
  color: var(--cyan);
  font-size: 26px;
  line-height: 1;
  transform: translateY(-2px);
}
h1 {
  margin: 0;
  font-family: var(--mono);
  font-size: 20px;
  letter-spacing: 0.28em;
  font-weight: 700;
}
.brand-sub {
  margin: 2px 0 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.status-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--slate-dim);
  padding: 6px 10px;
  background: rgba(13, 16, 21, 0.7);
}
.status-strip .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px rgba(53, 211, 154, 0.8);
}
.status-strip.is-error .dot { background: var(--crimson); box-shadow: 0 0 8px rgba(255, 45, 85, 0.8); }
.status-strip.is-error { color: var(--crimson); border-color: rgba(255, 45, 85, 0.4); }

/* ---------- views ---------- */
.views {
  display: flex;
  gap: 6px;
  padding: 12px 24px 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.view-btn {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--slate-dim);
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.view-btn:hover { color: var(--text); border-color: var(--slate); }
.view-btn.is-active {
  color: #041318;
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 700;
}
.view-btn .tag {
  display: inline-block;
  margin-right: 6px;
  color: var(--cyan);
  font-weight: 700;
}
.view-btn.is-active .tag { color: #041318; }
.view-btn--ghost { margin-left: auto; }

/* ---------- controls ---------- */
.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--slate-dim);
  align-items: end;
}
.control { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.control > span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
select, input[type="search"] {
  width: 100%;
  min-height: 34px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--slate);
  padding: 6px 8px;
  font-family: var(--mono);
  font-size: 12px;
  border-radius: 0;
  appearance: none;
}
input[type="search"]::placeholder { color: #5f6b7d; }
select:focus-visible, input:focus-visible, button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}
.reset {
  min-height: 34px;
  background: transparent;
  border: 1px solid var(--slate);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 6px 14px;
}
.reset:hover { color: var(--text); border-color: var(--cyan); }

.result-line {
  margin: 0;
  padding: 10px 24px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--slate-dim);
}
.result-line strong { color: var(--cyan); font-weight: 700; }

/* ---------- slate rows ---------- */
.slate { padding: 14px 24px 24px; display: flex; flex-direction: column; gap: 8px; }

.empty {
  border: 1px dashed var(--slate);
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12.5px;
}

.game {
  border: 1px solid var(--slate-dim);
  background: linear-gradient(180deg, rgba(17, 22, 29, 0.9), rgba(13, 16, 21, 0.9));
}
.game.is-flagged { border-left: 3px solid var(--amber); }
.game-head {
  display: grid;
  grid-template-columns: 78px minmax(210px, 1.4fr) minmax(150px, 1fr) minmax(150px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
}
.game-head:hover { background: rgba(58, 68, 84, 0.16); }

.slot {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.3;
}
.slot .clock { color: var(--text); font-size: 13px; display: block; }
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  padding: 1px 5px;
  border: 1px solid var(--slate);
  color: var(--muted);
  text-transform: uppercase;
}
.badge--neutral { color: var(--cyan); border-color: var(--cyan-dim); }
.badge--tbd { color: var(--amber); border-color: rgba(255, 145, 0, 0.4); }

.matchup { min-width: 0; }
.team {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team .side { color: var(--muted); width: 18px; flex: none; font-size: 10.5px; letter-spacing: 0.06em; }
.team .name { overflow: hidden; text-overflow: ellipsis; }
.team .score { margin-left: 6px; color: var(--cyan); font-weight: 700; }
.team.away { color: #dbe4ee; }
.team.home { color: #b9c6d6; }
.venue {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}
.venue .elev { color: var(--slate); }

.market { font-family: var(--mono); font-size: 11.5px; color: var(--muted); line-height: 1.45; min-width: 0; }
.market .line { color: var(--text); }
.market .none { color: #6b7789; }

.flags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.flag-chip {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border: 1px solid rgba(255, 145, 0, 0.5);
  color: var(--amber);
  background: rgba(255, 145, 0, 0.08);
  white-space: nowrap;
}
.flag-chip[data-model="altitude"] { border-color: rgba(0, 229, 255, 0.45); color: var(--cyan); background: rgba(0, 229, 255, 0.07); }
.flag-chip[data-model="schedule"] { border-color: rgba(255, 45, 85, 0.5); color: #ff6b86; background: rgba(255, 45, 85, 0.08); }
.flag-chip[data-model="sandwich"] { border-color: rgba(167, 139, 250, 0.5); color: #b9a4ff; background: rgba(167, 139, 250, 0.08); }
.flag-chip[data-model="sightline"] { border-color: rgba(53, 211, 154, 0.5); color: var(--green); background: rgba(53, 211, 154, 0.08); }
.count-chip {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  border: 1px solid var(--slate-dim);
  padding: 2px 6px;
}
.count-chip.has { color: var(--amber); border-color: rgba(255, 145, 0, 0.4); }

/* model state dots */
.dots { display: flex; gap: 3px; }
.dotm {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--slate-dim);
  border: 1px solid #2b333f;
}
.dotm[data-state="TRIGGERED"] { background: var(--amber); border-color: var(--amber); }
.dotm[data-state="CLEAR"] { background: transparent; border-color: var(--slate); }
.dotm[data-state="INSUFFICIENT_DATA"] { background: var(--crimson); border-color: var(--crimson); }
.dotm[data-state="NOT_APPLICABLE"] { background: #1a2029; border-color: #1f2630; }

/* ---------- expanded detail ---------- */
.game-body {
  border-top: 1px solid var(--slate-dim);
  padding: 12px 14px 16px;
  display: grid;
  gap: 10px;
}
/* matchup context card */
.matchup-card {
  border: 1px solid var(--slate);
  background: rgba(13, 16, 21, 0.92);
}
.matchup-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-bottom: 1px solid var(--slate-dim);
}
.ctx-eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}
.ctx-title { font-family: var(--mono); font-size: 13px; color: var(--text); }
.ctx-head-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ctx-rest-edge {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--amber);
  border: 1px solid rgba(255, 145, 0, 0.4);
  padding: 2px 6px;
}
.form-toggle-group { display: inline-flex; border: 1px solid var(--slate-dim); }
.form-toggle {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  padding: 4px 7px;
  cursor: pointer;
}
.form-toggle.is-active { background: var(--cyan); color: #041318; font-weight: 700; }
.team-compare { display: grid; grid-template-columns: 1fr 1fr; }
.ctx-team { padding: 10px 12px; min-width: 0; }
.ctx-team + .ctx-team { border-left: 1px solid var(--slate-dim); }
.ctx-team-head { display: flex; gap: 7px; align-items: baseline; font-family: var(--mono); }
.ctx-side { color: var(--muted); font-size: 9.5px; letter-spacing: 0.08em; }
.ctx-team-head strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rest-line { margin-top: 5px; font-family: var(--mono); font-size: 11px; color: var(--text); }
.form-block { margin-top: 7px; border-top: 1px dotted var(--slate-dim); padding-top: 6px; }
.form-block-head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.form-view { margin-top: 3px; font-family: var(--mono); font-size: 11px; color: #c3cedb; line-height: 1.4; }
.form-note, .ctx-prev { margin-top: 3px; font-family: var(--mono); font-size: 9.5px; color: #6f7c8f; }
.trip-line { margin-top: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); line-height: 1.4; }
.matchup-card[data-form-range="5"] .form-view--10 { display: none; }
.matchup-card[data-form-range="10"] .form-view--5 { display: none; }
.context-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.2fr;
  border-top: 1px solid var(--slate-dim);
}
.ctx-block { padding: 9px 12px; min-width: 0; }
.ctx-block + .ctx-block { border-left: 1px solid var(--slate-dim); }
.ctx-label { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ctx-models { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 5px; }
.ctx-model { font-family: var(--mono); font-size: 9px; color: var(--muted); border: 1px solid var(--slate-dim); padding: 1px 4px; white-space: nowrap; }
.ctx-model b { color: var(--cyan); }
.ctx-model[data-state="TRIGGERED"] { color: var(--amber); border-color: rgba(255, 145, 0, 0.45); }
.ctx-model[data-state="INSUFFICIENT_DATA"] { color: var(--crimson); }
.ctx-block > div { font-family: var(--mono); font-size: 10.5px; color: #c3cedb; line-height: 1.4; }
.ctx-block > div + div { margin-top: 3px; }
.ctx-travel b { color: var(--muted); }
.ctx-muted { color: #6f7c8f; }
.ctx-qual { margin-top: 4px; font-size: 9.5px; color: #6f7c8f; }
.ctx-market .none { color: #6b7789; }
.ctx-warnings { display: flex; flex-wrap: wrap; gap: 5px; padding: 7px 12px; border-top: 1px solid var(--slate-dim); }
.ctx-warnings span { font-family: var(--mono); font-size: 9.5px; color: var(--amber); border: 1px solid rgba(255, 145, 0, 0.35); padding: 2px 6px; }
.ctx-details { border-top: 1px solid var(--slate-dim); }
.ctx-details summary { cursor: pointer; padding: 7px 12px; font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.04em; }
.ctx-details summary:hover { color: var(--text); }
.ctx-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; padding: 0 12px 12px; }
.ctx-details h4 { margin: 0 0 4px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }
.ctx-details p { margin: 0 0 5px; font-size: 11.5px; color: #aeb9c8; }
.ctx-details span { display: inline-block; margin: 0 8px 4px 0; font-family: var(--mono); font-size: 10px; color: var(--muted); }

.model-card {
  border: 1px solid var(--slate-dim);
  background: rgba(9, 11, 14, 0.6);
  padding: 10px 12px;
}
.model-card[data-state="TRIGGERED"] { border-left: 3px solid var(--amber); }
.model-card[data-state="INSUFFICIENT_DATA"] { border-left: 3px solid var(--crimson); }
.model-head {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}
.model-title { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; }
.model-title .id { color: var(--cyan); font-weight: 700; margin-right: 6px; }
.state {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border: 1px solid var(--slate);
  color: var(--muted);
}
.state[data-state="TRIGGERED"] { color: #04131a; background: var(--amber); border-color: var(--amber); font-weight: 700; }
.state[data-state="CLEAR"] { color: var(--muted); }
.state[data-state="INSUFFICIENT_DATA"] { color: var(--crimson); border-color: rgba(255, 45, 85, 0.5); }
.state[data-state="NOT_APPLICABLE"] { color: #6b7789; }
.model-headline {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--text);
}
.explain {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: #c3cedb;
  white-space: pre-wrap;
}
.flags-line {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--amber);
  letter-spacing: 0.04em;
}
.cond-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-family: var(--mono); font-size: 11px; }
.cond-table th, .cond-table td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--slate-dim); vertical-align: top; }
.cond-table th { color: var(--muted); font-weight: 400; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em; }
.cond-met { color: var(--green); }
.cond-unmet { color: #8d99ab; }
.cond-unknown { color: var(--crimson); }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px 14px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
}
.metric-grid div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dotted var(--slate-dim); padding-bottom: 2px; }
.metric-grid span:first-child { color: var(--muted); }
.metric-grid span:last-child { color: var(--text); text-align: right; }
.prov {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: #6f7c8f;
  line-height: 1.55;
  word-break: break-word;
}
.missing { margin-top: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--crimson); }
.borderline { color: var(--amber); }

/* ---------- method view ---------- */
.method {
  padding: 18px 24px 32px;
  max-width: 1100px;
}
.method h2 {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin: 22px 0 8px;
}
.method p, .method li { color: #c3cedb; font-size: 13.5px; }
.method code { font-family: var(--mono); font-size: 12px; color: var(--cyan); }
.method .sources { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.method table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 11.5px; margin-top: 8px; }
.method th, .method td { border-bottom: 1px solid var(--slate-dim); padding: 6px; text-align: left; }
.method th { color: var(--muted); font-weight: 400; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- footer ---------- */
.foot {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  background: rgba(9, 11, 14, 0.96);
  border-top: 1px solid var(--slate-dim);
  font-size: 11px;
  color: var(--muted);
  backdrop-filter: blur(6px);
}
.foot-meta { font-family: var(--mono); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .game-head {
    grid-template-columns: 64px 1fr auto;
    grid-template-areas:
      "time matchup count"
      "venue venue flags";
    row-gap: 6px;
  }
  .slot { grid-area: time; }
  .matchup { grid-area: matchup; }
  .venue { grid-area: venue; }
  .market { display: none; }
  .context-strip { grid-template-columns: 1fr; }
  .ctx-block + .ctx-block { border-left: 0; border-top: 1px solid var(--slate-dim); }
  .ctx-details-grid { grid-template-columns: 1fr; }
  .flags { grid-area: flags; justify-content: flex-start; }
  .game-head .dots { display: none; }
  .game-head > .count-chip { grid-area: count; }
  .controls { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 16px; }
  .views, .top, .slate, .result-line, .method { padding-left: 16px; padding-right: 16px; }
  .foot { padding: 8px 16px; }
  .foot > div:first-child { display: none; }
  h1 { font-size: 17px; letter-spacing: 0.2em; }
}
@media (max-width: 560px) {
  .controls { grid-template-columns: 1fr; }
  .view-btn--ghost { margin-left: 0; }
  .metric-grid { grid-template-columns: 1fr; }
  .team-compare { grid-template-columns: 1fr; }
  .ctx-team + .ctx-team { border-left: 0; border-top: 1px solid var(--slate-dim); }
  .game-head { grid-template-columns: 56px 1fr auto; }
}

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

/* ---------- Market Limits emerald interface layer ---------- */
html { background: var(--bg); scroll-behavior: smooth; }
body {
  min-height: 100vh;
  padding-bottom: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 12% -12%, rgba(16, 185, 129, 0.10), transparent 62%),
    radial-gradient(900px 460px at 108% 2%, rgba(0, 230, 118, 0.055), transparent 58%);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}
::selection { background: var(--accent); color: var(--bg-deep); }
a { color: inherit; }

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0;
  background: rgba(7, 26, 20, 0.90);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.top-inner {
  width: 100%;
  max-width: 1280px;
  min-height: 80px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--bg-deep);
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--green));
  border: 1px solid rgba(167, 243, 208, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: none;
}
h1 {
  margin: 0;
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #fff;
}
.brand-sub {
  margin: 3px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand:hover h1 { color: var(--cyan); transition: color 0.15s; }
.status-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(4, 16, 12, 0.62);
  font-family: var(--mono);
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.3;
}
.status-strip .dot { width: 7px; height: 7px; background: var(--accent); box-shadow: 0 0 10px rgba(0, 230, 118, 0.8); }
.status-strip.is-error { color: var(--crimson); border-color: rgba(251, 113, 133, 0.42); }
.status-strip.is-error .dot { background: var(--crimson); box-shadow: 0 0 10px rgba(251, 113, 133, 0.7); }

.views {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  padding: 16px 0 0;
  gap: 8px;
  border-bottom: 0;
}
.view-btn {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(11, 38, 30, 0.46);
  color: #cbd5e1;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.15s;
}
.view-btn:hover { color: #fff; border-color: var(--border-strong); background: rgba(15, 56, 43, 0.75); }
.view-btn.is-active {
  color: var(--bg-deep);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 230, 118, 0.18), 0 5px 18px rgba(0, 230, 118, 0.12);
}
.view-btn .tag { margin-right: 5px; color: var(--cyan); font-family: var(--mono); font-size: 10px; }
.view-btn.is-active .tag { color: var(--bg-deep); }
.view-btn--ghost { border-color: transparent; background: transparent; color: var(--muted); }
.view-btn--ghost:hover { color: var(--cyan); background: rgba(15, 56, 43, 0.55); }

.controls {
  width: min(1280px, calc(100% - 64px));
  margin: 18px auto 0;
  padding: 16px;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(11, 38, 30, 0.88), rgba(7, 26, 20, 0.90));
  box-shadow: var(--shadow);
}
.control > span {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #94a3b8;
}
select, input[type="search"] {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(4, 16, 12, 0.72);
  color: var(--text);
  font-family: var(--sans);
  font-size: 12.5px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
select:hover, input[type="search"]:hover { border-color: rgba(52, 211, 153, 0.55); }
select:focus-visible, input:focus-visible, button:focus-visible {
  outline: 3px solid rgba(52, 211, 153, 0.5);
  outline-offset: 2px;
  border-color: var(--cyan);
}
.reset {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.08);
  color: #a7f3d0;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.reset:hover { background: var(--accent); color: var(--bg-deep); border-color: var(--accent); }

.result-line {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  padding: 14px 2px 2px;
  border-bottom: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}
.result-line strong { color: var(--cyan); }

.slate {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  padding: 0 0 28px;
  gap: 12px;
}
.empty {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: rgba(11, 38, 30, 0.42);
  padding: 32px 24px;
  color: var(--muted);
}
.game {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(11, 38, 30, 0.94) 0%, rgba(7, 26, 20, 0.94) 100%);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.12);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.game:hover { border-color: var(--border-strong); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22); }
.game.is-flagged { border-left: 1px solid var(--border); box-shadow: inset 3px 0 0 var(--accent), 0 8px 26px rgba(0, 0, 0, 0.12); }
.game-head { padding: 14px 18px; gap: 14px; }
.game-head:hover { background: rgba(16, 185, 129, 0.055); }
.slot .clock { color: #f8fafc; font-size: 13px; }
.badge { border-radius: 999px; border-color: var(--border-strong); padding: 2px 7px; color: #cbd5e1; font-size: 9px; }
.badge--neutral { color: var(--cyan); border-color: var(--border-strong); }
.badge--tbd { color: var(--amber); border-color: rgba(251, 191, 36, 0.38); }
.team.away { color: #f8fafc; }
.team.home { color: #dbeafe; }
.team .score { color: var(--accent); }
.venue { color: var(--muted); }
.venue .elev { color: #94a3b8; }
.market .line { color: #f1f5f9; }
.flag-chip, .flag-chip[data-model] {
  border-radius: 999px;
  border-color: rgba(52, 211, 153, 0.42);
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.10);
  padding: 3px 8px;
  font-size: 9px;
}
.flag-chip[data-model="schedule"] { border-color: rgba(251, 191, 36, 0.42); color: #fcd34d; background: rgba(251, 191, 36, 0.08); }
.flag-chip[data-model="sandwich"] { border-color: rgba(196, 181, 253, 0.42); color: #ddd6fe; background: rgba(139, 92, 246, 0.08); }
.count-chip { border-radius: 999px; border-color: var(--border); padding: 2px 8px; }
.count-chip.has { color: var(--accent); border-color: var(--border-strong); }
.dotm { width: 8px; height: 8px; border-color: var(--border-strong); }
.dotm[data-state="TRIGGERED"] { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 7px rgba(0, 230, 118, 0.38); }
.dotm[data-state="CLEAR"] { background: transparent; border-color: var(--slate); }
.dotm[data-state="INSUFFICIENT_DATA"] { background: var(--crimson); border-color: var(--crimson); }
.dotm[data-state="NOT_APPLICABLE"] { background: #0f2a21; border-color: #1e4a3c; }

.game-body { padding: 16px 18px 18px; background: rgba(4, 16, 12, 0.42); }
.matchup-card { border-radius: var(--radius-md); border-color: var(--border); background: rgba(7, 26, 20, 0.86); overflow: hidden; }
.matchup-card-head { padding: 14px 16px; }
.ctx-eyebrow { color: var(--cyan); font-size: 9px; }
.ctx-title { color: #f8fafc; font-size: 13px; }
.ctx-rest-edge { border-radius: 999px; border-color: rgba(251, 191, 36, 0.34); color: var(--amber); }
.form-toggle-group { border-radius: 999px; overflow: hidden; border-color: var(--border); }
.form-toggle { font-family: var(--sans); font-size: 10px; }
.form-toggle.is-active { background: var(--accent); color: var(--bg-deep); }
.ctx-team { padding: 13px 15px; }
.ctx-team-head strong { color: #f8fafc; }
.rest-line { color: #e2e8f0; }
.form-block { border-top-color: var(--border); }
.trip-line { color: var(--muted); }
.context-strip { border-top-color: var(--border); }
.ctx-block { padding: 11px 15px; }
.ctx-block + .ctx-block { border-left-color: var(--border); }
.ctx-label { color: var(--muted); }
.ctx-model { border-radius: 999px; border-color: var(--border); }
.ctx-model[data-state="TRIGGERED"] { border-color: rgba(0, 230, 118, 0.45); color: var(--accent); }
.ctx-model[data-state="INSUFFICIENT_DATA"] { color: var(--crimson); }
.ctx-block > div { color: #cbd5e1; }
.ctx-warnings { border-top-color: var(--border); }
.ctx-warnings span { border-radius: 999px; }
.ctx-details { border-top-color: var(--border); }
.ctx-details h4 { color: var(--cyan); }
.ctx-details p { color: #cbd5e1; }
.model-card { border-radius: var(--radius-md); border-color: var(--border); background: rgba(11, 38, 30, 0.56); padding: 14px 16px; }
.model-card[data-state="TRIGGERED"] { border-left: 3px solid var(--accent); }
.model-card[data-state="INSUFFICIENT_DATA"] { border-left: 3px solid var(--crimson); }
.model-title { color: #f8fafc; }
.model-title .id { color: var(--cyan); }
.state { border-radius: 999px; border-color: var(--border-strong); }
.state[data-state="TRIGGERED"] { color: var(--bg-deep); background: var(--accent); border-color: var(--accent); }
.state[data-state="INSUFFICIENT_DATA"] { color: var(--crimson); border-color: rgba(251, 113, 133, 0.42); }
.model-headline { color: #f8fafc; }
.explain { color: #cbd5e1; }
.flags-line { color: var(--accent); }
.cond-table th { color: var(--muted); }
.cond-met { color: var(--accent); }
.cond-unmet { color: #94a3b8; }
.cond-unknown { color: var(--crimson); }
.metric-grid div { border-bottom-color: var(--border); }
.missing { color: var(--crimson); }
.borderline { color: var(--amber); }

.method {
  width: min(1100px, calc(100% - 64px));
  max-width: none;
  margin: 18px auto 0;
  padding: 28px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(11, 38, 30, 0.78), rgba(7, 26, 20, 0.92));
  box-shadow: var(--shadow);
}
.method h2 { margin: 26px 0 9px; color: var(--cyan); font-family: var(--sans); font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.method h2:first-child { margin-top: 0; }
.method p, .method li { color: #cbd5e1; }
.method code { color: var(--cyan); }
.method th { color: var(--muted); }
.method th, .method td { border-bottom-color: var(--border); }

.foot {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  margin-top: 34px;
  padding: 24px 32px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  backdrop-filter: none;
}
.foot > div:first-child { max-width: 820px; }
.foot strong { color: #e2e8f0; }
.foot-meta { color: #94a3b8; max-width: 100%; min-width: 0; }

.skip { border-radius: var(--radius-sm); background: var(--accent); color: var(--bg-deep); font-family: var(--sans); font-weight: 700; }

@media (max-width: 900px) {
  .top { padding-left: 0; padding-right: 0; }
  .top-inner { min-height: 72px; padding: 0 16px; }
  .views, .controls, .slate, .result-line, .method { width: calc(100% - 32px); }
  .controls { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; }
  .game-head { padding: 14px; }
  .game-body { padding: 14px; }
  .foot { padding: 20px 16px; }
  .method { padding: 22px 20px; }
}
@media (max-width: 560px) {
  .top-inner { align-items: flex-start; gap: 10px; padding: 14px 16px; }
  .status-strip { width: 100%; justify-content: center; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
  h1 { font-size: 16px; letter-spacing: 0.13em; }
  .brand-sub { font-size: 9px; }
  .views { padding-top: 12px; flex-wrap: wrap; overflow-x: visible; }
  .view-btn { font-size: 11.5px; padding: 8px 11px; }
  .view-btn--ghost { margin-left: 0; }
  .foot-meta { width: 100%; }
  .controls { grid-template-columns: 1fr; padding: 13px; }
  .game { border-radius: 13px; }
  .game-head { gap: 8px 10px; }
  .game-body { padding: 12px; }
  .ctx-team { padding: 12px; }
  .ctx-block { padding: 10px 12px; }
  .model-card { padding: 12px; }
  .method { padding: 18px 15px; }
  .foot { flex-direction: column; align-items: flex-start; gap: 8px; }
}



/* ---------- site header integration ---------- */
.top { position: static; backdrop-filter: none; -webkit-backdrop-filter: none; }
.top-inner { min-height: 64px; }
.skip { z-index: 80; }

/* =====================================================================
   Angle system: icon + colour per angle, lit "live" state, (i) explainers
   ===================================================================== */

/* ---------- logo: the angle, with a basketball in the top-left ---------- */
.brand-mark { position: relative; overflow: hidden; }
.brand-glyph { width: 100%; height: 100%; display: block; }
.brand-ball-g { transform-box: fill-box; transform-origin: center; transition: transform 0.5s ease; }
.brand:hover .brand-ball-g { transform: rotate(60deg); }
.brand-sub { text-transform: uppercase; }

/* ---------- angle tabs ---------- */
.views { align-items: center; padding-bottom: 2px; }
.view-tab {
  --c: var(--accent);
  display: inline-flex;
  align-items: center;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(11, 38, 30, 0.55);
  transition: border-color 0.15s, background 0.15s;
}
.view-tab:hover { border-color: var(--c); }
.view-tab .view-btn {
  border: 0;
  background: transparent;
  border-radius: 999px 0 0 999px;
  padding-right: 6px;
}
.view-tab .view-btn:hover { background: transparent; color: #fff; }
.view-tab.is-active { background: var(--c); border-color: var(--c); }
.view-tab.is-active .view-btn,
.view-tab.is-active .view-btn.is-active { background: transparent; color: var(--bg-deep); font-weight: 700; }
.view-tab .ang-ico { color: var(--c); margin-right: 7px; font-size: 12px; }
.view-tab.is-active .ang-ico { color: var(--bg-deep); }

.info-btn {
  flex: none;
  width: 19px; height: 19px;
  margin: 0 8px 0 2px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: transparent;
  color: var(--muted);
  font: italic 700 11px/1 Georgia, "Times New Roman", serif;
  cursor: pointer;
  display: grid; place-items: center;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.info-btn:hover, .info-btn:focus-visible { color: var(--c); border-color: var(--c); background: rgba(255, 255, 255, 0.06); }
.view-tab.is-active .info-btn { color: var(--bg-deep); border-color: rgba(4, 16, 12, 0.55); }
.view-tab.is-active .info-btn:hover { background: rgba(4, 16, 12, 0.14); border-color: var(--bg-deep); color: var(--bg-deep); }
.view-tab--feed .view-btn { padding-right: 6px; }

/* ---------- shared icon chip ---------- */
.ang-badge {
  --c: #34d399;
  width: 26px; height: 26px; flex: none;
  display: inline-grid; place-items: center;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--c);
  background: rgba(255, 255, 255, 0.07);
  background: color-mix(in srgb, var(--c) 16%, transparent);
  border: 1px solid var(--c);
}
.ang-badge--lg { width: 46px; height: 46px; border-radius: 13px; font-size: 20px; }

/* ---------- game row: five icons that light up when live ---------- */
.flags { flex-wrap: nowrap; align-items: center; gap: 10px; }
.ang-strip { display: inline-flex; gap: 5px; }
.ang {
  --c: #34d399;
  width: 25px; height: 25px;
  display: inline-grid; place-items: center;
  border-radius: 8px;
  font-size: 11.5px;
  color: #3d5c51;
  background: rgba(15, 56, 43, 0.28);
  border: 1px solid rgba(16, 185, 129, 0.10);
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}
.ang.is-live {
  color: var(--c);
  background: rgba(255, 255, 255, 0.10);
  background: color-mix(in srgb, var(--c) 20%, transparent);
  border-color: var(--c);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 12px color-mix(in srgb, var(--c) 60%, transparent);
}
.count-chip { color: #4f6f64; border-color: rgba(16, 185, 129, 0.12); min-width: 38px; text-align: center; }
.count-chip.has { color: #fff; font-weight: 700; }
.game.is-flagged { box-shadow: inset 3px 0 0 var(--live, var(--accent)), 0 8px 26px rgba(0, 0, 0, 0.12); }

/* market column: quiet unless there is a real verified price */
.market .line { font-size: 13px; font-weight: 600; display: block; }
.market .sub { display: block; font-size: 10.5px; color: var(--muted); }
.slate.no-market .game-head { grid-template-columns: 78px minmax(210px, 1.4fr) minmax(150px, 1fr) auto; }

/* ---------- drop-down: live angles ---------- */
.live-angle { display: flex; gap: 8px; align-items: flex-start; }
.live-angle + .live-angle { margin-top: 7px; }
.live-ico {
  --c: inherit;
  width: 20px; height: 20px; flex: none;
  display: inline-grid; place-items: center;
  border-radius: 6px; font-size: 10.5px;
  color: var(--c);
  background: rgba(255, 255, 255, 0.08);
  background: color-mix(in srgb, var(--c) 18%, transparent);
  border: 1px solid var(--c);
}
.live-angle b { color: var(--c); }

/* ---------- (i) explainer modal ---------- */
body.modal-open { overflow: hidden; }
.amodal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.amodal[hidden] { display: none; }
.amodal-backdrop { position: absolute; inset: 0; background: rgba(2, 10, 7, 0.74); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.amodal-card {
  position: relative;
  width: min(780px, 100%);
  max-height: min(88vh, 860px);
  display: flex; flex-direction: column;
  background: #0b261e;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.amodal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; }
.amodal-head h2 { margin: 0; font-family: var(--sans); font-size: 17px; letter-spacing: 0.02em; font-weight: 800; color: #fff; }
.amodal-close {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: transparent;
  color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer;
}
.amodal-close:hover, .amodal-close:focus-visible { color: #fff; border-color: var(--accent); }

.guide-tabs { display: flex; gap: 6px; padding: 0 20px 12px; overflow-x: auto; border-bottom: 1px solid var(--border); scrollbar-width: thin; }
.guide-tab {
  --c: var(--accent);
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: transparent;
  color: var(--muted); font-family: var(--mono); font-size: 11.5px; cursor: pointer;
}
.guide-tab i { color: var(--c); font-size: 12px; }
.guide-tab:hover { color: #fff; border-color: var(--c); }
.guide-tab.is-active { background: var(--c); border-color: var(--c); color: var(--bg-deep); font-weight: 700; }
.guide-tab.is-active i { color: var(--bg-deep); }

.amodal-body { padding: 18px 22px 24px; overflow-y: auto; color: #cbd5e1; font-size: 14px; line-height: 1.6; outline: none; }
.amodal-body h3 {
  margin: 22px 0 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan);
}
.amodal-body h3:first-child { margin-top: 0; }
.amodal-body p { margin: 0 0 8px; }
.guide-lede { font-size: 14.5px; color: #e2e8f0; }
.guide-small { font-size: 12.5px; color: var(--muted); }
.guide-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.guide-list li::marker { color: var(--cyan); }
.guide-list--check { list-style: none; padding-left: 0; }
.guide-list--check li { position: relative; padding-left: 24px; }
.guide-list--check li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 11px;
  position: absolute; left: 0; top: 4px; color: var(--cyan);
}
.guide-title { --c: var(--accent); display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.guide-title .ang-badge { --c: inherit; }
.guide-name { margin: 0 !important; font-family: var(--sans) !important; font-size: 18px !important; letter-spacing: 0 !important; text-transform: none !important; color: #fff !important; }
.guide-tag { margin: 3px 0 0 !important; color: var(--c); font-size: 13.5px; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.guide-pill { font-family: var(--mono); font-size: 10.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--muted); }
.guide-pill--warn { color: var(--amber); border-color: rgba(251, 191, 36, 0.45); }
.guide-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; }
.guide-legend-row {
  --c: var(--accent);
  display: flex; gap: 11px; align-items: center; text-align: left;
  padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(4, 16, 12, 0.35);
  color: #e2e8f0; font: inherit; cursor: pointer;
}
.guide-legend-row:hover, .guide-legend-row:focus-visible { border-color: var(--c); }
.guide-legend-row .ang-badge { --c: inherit; }
.guide-legend-row b { display: block; font-size: 13.5px; }
.guide-legend-row small { display: block; font-size: 11.5px; line-height: 1.4; color: var(--muted); }

/* ---------- responsive adjustments for the new row ---------- */
@media (max-width: 900px) {
  .game-head, .slate.no-market .game-head {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-areas: "time matchup matchup" "venue venue flags";
  }
  .flags { grid-area: flags; justify-content: flex-end; }
  .venue { min-width: 0; white-space: nowrap; }
}
@media (max-width: 560px) {
  .game-head, .slate.no-market .game-head { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .ang { width: 23px; height: 23px; font-size: 10.5px; }
  .ang-strip { gap: 4px; }
  .amodal { padding: 10px; align-items: end; }
  .amodal-card { max-height: 92vh; border-radius: 16px; }
  .amodal-body { padding: 16px 16px 22px; }
  .guide-tabs, .amodal-head { padding-left: 16px; padding-right: 16px; }
}
.guide-note { margin-top: 10px !important; }

/* the slate/method panels set their own display, which would otherwise beat the hidden attribute */
.slate[hidden], .method[hidden] { display: none; }


/* ---------- page title block (matches Spread Recall / Home Edge / Upset Index) ---------- */
.page-title { position: static; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; }
.page-title-inner { width: 100%; max-width: 1280px; margin: 0 auto; padding: 20px 32px 0; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.page-title-text { min-width: 0; }
.page-title h1 { margin: 0; font-family: var(--sans); font-size: 30px; line-height: 37.5px; font-weight: 800; letter-spacing: -0.025em; color: #fff; text-transform: none; }
.page-title-sub { margin: 4px 0 0; max-width: 672px; font-family: var(--sans); font-size: 14px; line-height: 20px; color: #94a3b8; }
@media (min-width: 640px) { .page-title h1 { font-size: 36px; line-height: 40px; } }
@media (max-width: 640px) { .page-title-inner { padding: 20px 16px 0; } }
.page-title .hero-grad { background: linear-gradient(to right, #34d399, #a7f3d0); -webkit-background-clip: text; background-clip: text; color: transparent; }
