/* ==========================================================================
   Logitrac Customer Support Prize Pot — stylesheet
   Plain, browser-native CSS. No build step, no Tailwind, no framework.
   ========================================================================== */

:root{
  --navy: #0b1f3b;
  --navy-2: #12294d;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-bg: #eaf1ff;
  --green: #15803d;
  --green-bg: #e6f5ea;
  --gold: #b8860b;
  --gold-bg: #fbf3df;
  --ink: #1e2635;
  --muted: #5b6b85;
  --line: #e2e7ee;
  --paper: #ffffff;
  --bg: #f7f9fc;
}
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height:1.55;
}
img{ max-width:100%; display:block; }
h1,h2,h3{ color:var(--navy); margin:0; font-weight:700; }
p{ margin:0; }
.wrap{ max-width: 980px; margin:0 auto; padding: 0 1.5rem; }

/* ---- header ---- */
header.hero{
  position:relative; overflow:hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #0e2c56 100%);
  color:#eaf1ff; padding: 3.2rem 0 2.6rem; border-bottom: 4px solid var(--gold);
}
header.hero .hero-bg-art{
  position:absolute; top:-12%; right:-6%; width:420px; max-width:55%; height:auto;
  opacity:.55; mix-blend-mode:screen; pointer-events:none; user-select:none; z-index:0;
}
header.hero .hero-inner{ position:relative; z-index:1; }
header.hero .hero-top{
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  flex-wrap:wrap; margin-bottom:1.3rem;
}
header.hero .hero-logo{ height:28px; width:auto; display:block; }
header.hero .eyebrow{
  display:inline-block; font-size:.72rem; letter-spacing:.12em; text-transform:uppercase;
  background: rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.25);
  padding:.3rem .7rem; border-radius:999px; color:#cfe0ff;
}
header.hero h1{ color:#fff; font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing:-.01em; }
header.hero .subtitle{ color:#b9cdf2; font-size:1.05rem; margin-top:.5rem; font-weight:500; }
header.hero .intro{ color:#dbe6fb; font-size:.95rem; margin-top:1.3rem; max-width:70ch; }
header.hero .program-pills{ display:flex; flex-wrap:wrap; gap:.6rem; margin-top:1.4rem; }
header.hero .pill{
  background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.2); color:#fff;
  padding:.45rem .85rem; border-radius:8px; font-size:.82rem; font-weight:600; display:flex; gap:.5rem; align-items:center;
}
header.hero .pill .dot{ width:8px; height:8px; border-radius:50%; flex-shrink:0; }

/* ---- nav ---- */
nav.toc{
  position: sticky; top:0; z-index: 30; background:#fff; border-bottom:1px solid var(--line);
  box-shadow: 0 1px 3px rgba(15,30,60,.06);
}
nav.toc .toc-inner{ display:flex; align-items:center; gap:1.1rem; padding-top:.6rem; padding-bottom:.6rem; }
nav.toc .toc-logo{ height:20px; width:auto; flex-shrink:0; }
nav.toc .toc-links{ display:flex; gap:.3rem; overflow-x:auto; }
nav.toc a{
  white-space:nowrap; text-decoration:none; color:var(--muted); font-size:.82rem; font-weight:600;
  padding:.45rem .8rem; border-radius:7px;
}
nav.toc a:hover{ background:var(--blue-bg); color:var(--blue-dark); }

/* ---- sections ---- */
main{ padding: 2.6rem 0 1rem; }
section.block{ margin-bottom: 2.6rem; }
section.block .section-head{ display:flex; align-items:baseline; gap:.8rem; margin-bottom:1.2rem; flex-wrap:wrap; }
section.block .kicker{
  font-size:.72rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--blue);
  background:var(--blue-bg); padding:.25rem .6rem; border-radius:6px;
}
section.block h2{ font-size: 1.5rem; }
section.block > .lede{ color:var(--muted); font-size:.98rem; max-width:76ch; margin-bottom:1.3rem; }

.card{
  background:var(--paper); border:1px solid var(--line); border-radius:12px;
  box-shadow: 0 1px 2px rgba(15,30,60,.05); padding:1.4rem 1.5rem; margin-bottom:1.1rem;
}
.card h3{ font-size:1.02rem; margin-bottom:.6rem; }

/* ---- tables ---- */
table.plan-table{ width:100%; border-collapse:collapse; font-size:.9rem; }
table.plan-table th, table.plan-table td{ text-align:left; padding:.65rem .7rem; border-bottom:1px solid var(--line); }
table.plan-table th{ color:var(--navy); font-size:.74rem; text-transform:uppercase; letter-spacing:.05em; background:var(--bg); }
table.plan-table tbody tr:last-child td{ border-bottom:none; }
table.plan-table td.num{ font-weight:700; color:var(--navy); white-space:nowrap; }
.bar-cell{ display:flex; align-items:center; gap:.6rem; }
.bar-track{ flex:1; height:8px; border-radius:999px; background:var(--line); overflow:hidden; min-width:60px; }
.bar-fill{ height:100%; border-radius:999px; background: var(--blue); }

/* ---- tier badges ---- */
.tier-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:.7rem; }
.tier{ border-radius:10px; padding:.9rem .8rem; text-align:center; border:1px solid var(--line); background:#fff; }
.tier .range{ font-size:.78rem; color:var(--muted); font-weight:600; }
.tier .pct{ font-size:1.4rem; font-weight:800; margin:.25rem 0; }
.tier .label{ font-size:.76rem; color:var(--muted); }
.tier.t-none{ background:#fbfbfb; }
.tier.t-none .pct{ color:#94a3b8; }
.tier.t-half .pct, .tier.t-3q .pct{ color:var(--blue-dark); }
.tier.t-full .pct{ color:var(--green); }
.tier.t-top{ background:var(--gold-bg); border-color:#e9d38c; }
.tier.t-top .pct{ color:var(--gold); }

.kpi-figure{ margin-top:1.1rem; }
.kpi-figure img{ border-radius:10px; border:1px solid var(--line); box-shadow:0 2px 10px rgba(15,30,60,.08); }
.kpi-figure figcaption{ font-size:.8rem; color:var(--muted); margin-top:.6rem; text-align:center; }

.note{
  display:flex; gap:.7rem; align-items:flex-start; border-radius:10px; padding:.9rem 1rem; font-size:.87rem;
}
.note.note-gold{ background:var(--gold-bg); border:1px solid #e9d38c; color:#6b4f04; }
.note.note-blue{ background:var(--blue-bg); border:1px solid #c9dcff; color:#123a8a; }
.note.note-green{ background:var(--green-bg); border:1px solid #b9e6c4; color:#0e5c2c; }
.note .ico{ font-size:1.1rem; line-height:1; }

/* ---- process flow ---- */
.flow{ display:flex; align-items:stretch; gap:.5rem; flex-wrap:wrap; }
.flow .step{
  flex:1; min-width:130px; background:#fff; border:1px solid var(--line); border-radius:10px;
  padding:.9rem .8rem; text-align:center; position:relative;
}
.flow .step .num{
  width:26px; height:26px; border-radius:50%; background:var(--navy); color:#fff; font-weight:800; font-size:.8rem;
  display:flex; align-items:center; justify-content:center; margin:0 auto .5rem;
}
.flow .step .t{ font-size:.83rem; font-weight:700; color:var(--navy); }
.flow .arrow{ display:flex; align-items:center; justify-content:center; color:#b7c3d6; font-size:1.2rem; }

.formula-box{
  background:var(--navy); color:#eaf1ff; border-radius:10px; padding:1rem 1.2rem; font-size:1rem;
  font-weight:600; text-align:center; margin: 1rem 0; letter-spacing:.01em;
}
.formula-box span{ color:#8fc4ff; }

.example-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:.7rem; }
.example-cell{ background:#fff; border:1px solid var(--line); border-radius:10px; padding:.8rem; text-align:center; }
.example-cell .k{ font-size:.72rem; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); font-weight:700; }
.example-cell .v{ font-size:1.15rem; font-weight:800; color:var(--navy); margin-top:.3rem; }
.example-cell.is-result .v{ color:var(--green); }

/* ---- approved project pool ---- */
.pool-lede{ color:var(--muted); font-size:.92rem; }
.pool-subhead{ font-size:.86rem; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); margin:1.3rem 0 .2rem; }

.pool-source-grid{ display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-top:.9rem; }
.pool-source{ background:var(--bg); border:1px solid var(--line); border-radius:10px; padding:1rem 1.1rem; }
.pool-source h4{ font-size:.92rem; color:var(--navy); margin-bottom:.35rem; font-weight:700; }
.pool-source p{ font-size:.85rem; color:var(--muted); }

.rule-list{ display:grid; grid-template-columns:1fr 1fr; gap:.7rem 1.2rem; }
.rule-item{ display:flex; gap:.6rem; align-items:flex-start; font-size:.88rem; color:var(--ink); }
.rule-item .mark{ flex-shrink:0; width:8px; height:8px; border-radius:50%; background:var(--blue); margin-top:.5rem; }

.pool-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(250px,1fr)); gap:1rem; }
.project-card{ background:#fff; border:1px solid var(--line); border-radius:10px; padding:1rem 1.1rem; display:flex; flex-direction:column; gap:.55rem; }
.project-card-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:.6rem; }
.project-card-head h4{ font-size:.92rem; color:var(--navy); font-weight:700; line-height:1.3; }
.project-problem{ font-size:.82rem; color:var(--muted); }
.project-meta{ display:flex; flex-wrap:wrap; gap:.4rem; }
.cat-badge{
  display:inline-block; font-size:.66rem; font-weight:700; letter-spacing:.02em; text-transform:uppercase;
  padding:.2rem .55rem; border-radius:999px; background:var(--blue-bg); color:var(--blue-dark);
}
.complexity-badge{ display:inline-block; font-size:.66rem; font-weight:700; padding:.2rem .55rem; border-radius:999px; border:1px solid var(--line); background:#fff; color:var(--muted); }
.complexity-small{ color:var(--green); border-color:#b9e6c4; background:var(--green-bg); }
.complexity-medium{ color:var(--gold); border-color:#e9d38c; background:var(--gold-bg); }
.complexity-large{ color:#fff; border-color:var(--navy); background:var(--navy); }

.cat-badge.track-ml{ background:var(--blue-bg); color:var(--blue-dark); }
.cat-badge.track-ops{ background:var(--gold-bg); color:var(--gold); }
.cat-badge.track-dev{ background:var(--green-bg); color:var(--green); }

.tbd{ color:var(--muted) !important; font-style:italic; font-weight:700 !important; }

.status-badge{
  display:inline-flex; align-items:center; gap:.3rem; font-size:.66rem; font-weight:800; letter-spacing:.03em;
  text-transform:uppercase; padding:.25rem .6rem; border-radius:999px; white-space:nowrap; flex-shrink:0;
}
.status-available{ background:var(--green-bg); color:var(--green); border:1px solid #b9e6c4; }
.status-review{ background:var(--gold-bg); color:var(--gold); border:1px solid #e9d38c; }
.status-reserved{ background:var(--blue-bg); color:var(--blue-dark); border:1px solid #c9dcff; }
.status-selected{ background:var(--navy); color:#fff; border:1px solid var(--navy); }
.status-pending{ background:var(--bg); color:var(--muted); border:1px solid var(--line); }

.project-foot{ display:flex; flex-direction:column; gap:.4rem; border-top:1px dashed var(--line); padding-top:.55rem; }
.project-kv{ font-size:.8rem; }
.project-kv .k{ display:block; font-size:.66rem; text-transform:uppercase; letter-spacing:.03em; color:var(--muted); font-weight:700; margin-bottom:.1rem; }
.project-kv .v{ color:var(--ink); }

.project-card-pending{ border-style:dashed; background:var(--bg); justify-content:center; min-height:100%; }
.project-card-pending .project-problem{ font-style:italic; }

.pool-note{ margin-top:.3rem; }
.pool-choice-note{ font-size:.85rem; color:var(--muted); margin-top:.9rem; }

/* ---- annual team incentive budget ---- */
.budget-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; margin-bottom:1.1rem; align-items:stretch; }
.budget-grid > .card{ margin-bottom:0; }
.budget-list{ display:flex; flex-direction:column; gap:0; margin-top:.7rem; padding:0; }
.budget-list li{ display:flex; justify-content:space-between; align-items:baseline; gap:.6rem; font-size:.85rem; padding:.4rem 0; border-bottom:1px dashed var(--line); }
.budget-list li:last-child{ border-bottom:none; }
.budget-list .k{ color:var(--muted); }
.budget-list .v{ font-weight:700; color:var(--navy); white-space:nowrap; }
.budget-note-inline{ font-size:.78rem; color:var(--muted); margin-top:.7rem; }
.total-banner{
  display:flex; justify-content:space-between; align-items:center; gap:.6rem; flex-wrap:wrap;
  background:var(--navy); color:#fff; border-radius:10px; padding:1rem 1.3rem; margin-top:1rem;
}
.total-banner .total-label{ font-size:.88rem; font-weight:600; color:#cfe0ff; }
.total-banner .total-amount{ font-size:1.9rem; font-weight:800; color:#fff; }

/* ---- gates / timeline ---- */
.gates{ display:flex; flex-wrap:wrap; gap:.5rem; }
.gate-chip{
  display:flex; align-items:center; gap:.5rem; background:#fff; border:1px solid var(--line); border-radius:999px;
  padding:.45rem .9rem .45rem .5rem; font-size:.82rem; font-weight:600; color:var(--navy);
}
.gate-chip .g-num{ width:22px; height:22px; border-radius:50%; background:var(--blue); color:#fff; font-size:.72rem; display:flex; align-items:center; justify-content:center; font-weight:800; }
.gate-chip:nth-child(6) .g-num{ background: var(--gold); }

.sched{ display:flex; border-radius:10px; overflow:hidden; border:1px solid var(--line); margin-top:1rem; }
.sched .seg{ padding:.8rem .5rem; text-align:center; font-size:.76rem; color:#fff; font-weight:700; }
.sched .seg .w{ display:block; font-size:.68rem; font-weight:600; opacity:.85; margin-bottom:.15rem; }
.sched .seg.s1{ background:#8bb4f0; flex:2; }
.sched .seg.s2{ background:#5f95e8; flex:3; }
.sched .seg.s3{ background:#2563eb; flex:8; }
.sched .seg.s4{ background:#1d4ed8; flex:2; }
.sched .seg.s5{ background:var(--navy); flex:1; }

.weight-list{ display:flex; flex-direction:column; gap:.55rem; margin-top:.9rem; }
.weight-item{ display:flex; align-items:center; gap:.8rem; font-size:.88rem; }
.weight-item .w-label{ flex: 0 0 240px; color:var(--navy); font-weight:600; }
.weight-item .bar-track{ height:10px; }
.weight-item .w-pct{ width:44px; text-align:right; font-weight:800; color:var(--navy); }

.award-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:.7rem; }
.award-grid-3{ grid-template-columns:repeat(3,1fr); }
.award{ background:#fff; border:1px solid var(--line); border-radius:10px; padding:1rem .8rem; text-align:center; }
.award .medal{ font-size:1.6rem; }
.award .name{ font-size:.85rem; font-weight:700; color:var(--navy); margin-top:.35rem; }
.award .amount{ font-size:1.05rem; font-weight:800; color:var(--navy); margin-top:.2rem; }
.award.gold{ background:var(--gold-bg); border-color:#e9d38c; }
.award.silver{ background:#f1f5f9; border-color:#dbe3ec; }
.award.silver .amount{ color:#475569; }
.award.bronze{ background:#fdf1e7; border-color:#f0cba8; }
.award.bronze .amount{ color:#9a5b2e; }

/* ---- safeguards ---- */
.safe-list{ display:grid; grid-template-columns: 1fr 1fr; gap:.7rem 1.2rem; }
.safe-item{ display:flex; gap:.6rem; align-items:flex-start; font-size:.88rem; }
.safe-item .check{
  flex-shrink:0; width:22px; height:22px; border-radius:50%; background:var(--green-bg); color:var(--green);
  display:flex; align-items:center; justify-content:center; font-size:.75rem; font-weight:800; margin-top:.1rem;
}

/* ---- expandable detail ---- */
details.more{ background:#fff; border:1px solid var(--line); border-radius:10px; margin-top:.9rem; }
details.more summary{
  cursor:pointer; list-style:none; padding:.75rem 1rem; font-weight:700; color:var(--blue-dark); font-size:.86rem;
  display:flex; align-items:center; justify-content:space-between;
}
details.more summary::-webkit-details-marker{ display:none; }
details.more summary::after{ content:"+ show detail"; font-size:.76rem; color:var(--muted); font-weight:600; }
details.more[open] summary::after{ content:"– hide detail"; }
details.more .more-body{ padding:0 1rem 1rem; font-size:.86rem; color:var(--ink); border-top:1px solid var(--line); padding-top:.8rem; }

/* ---- footer ---- */
footer.page-footer{
  background:var(--navy); color:#b9cdf2; text-align:center; padding:1.6rem 1rem; margin-top:2rem;
  font-size:.85rem; letter-spacing:.02em; border-top:4px solid var(--gold);
}
footer.page-footer strong{ color:#fff; }

/* ==========================================================================
   Customer Support prize pot — demo additions
   ========================================================================== */
section.block{ scroll-margin-top:64px; }
.demo-banner{ margin-bottom:2.2rem; }

/* undecided placeholder values, e.g. $[DAILY_POT]; inherits color so it works on dark and light */
.ph{ font-style:italic; font-weight:700; white-space:nowrap; }
.total-banner .ph{ color:#fff; }
.sched .seg{ min-width:0; }
.sched .ph{ white-space:normal; overflow-wrap:anywhere; }

/* ---- buttons ---- */
.btn{
  font:inherit; font-size:.82rem; font-weight:700; cursor:pointer; padding:.5rem .9rem; border-radius:8px;
  border:1px solid var(--line); background:#fff; color:var(--navy);
}
.btn:hover{ border-color:var(--blue); color:var(--blue-dark); }
.btn:focus-visible{ outline:3px solid #9cc0ff; outline-offset:2px; }
.btn-primary{ background:var(--blue); border-color:var(--blue); color:#fff; }
.btn-primary:hover{ background:var(--blue-dark); border-color:var(--blue-dark); color:#fff; }
.btn:disabled{ opacity:.45; cursor:not-allowed; }
.btn em{ font-weight:500; opacity:.85; }
.demo-reset{ margin-top:1.2rem; text-align:right; }

/* ---- KPI accents (match the hero pills) ---- */
.kpi-card{ border-top:4px solid #5f95e8; }
.kpi-card.kpi-2{ border-top-color:#facc15; }
.kpi-card.kpi-3{ border-top-color:#4ade80; }

/* ---- participants ---- */
.toggle-row{ display:flex; align-items:center; gap:.6rem; font-size:.88rem; font-weight:600; color:var(--navy); margin-bottom:1rem; cursor:pointer; }
.toggle-row input{ width:18px; height:18px; accent-color:var(--blue); }
.person-card.is-selected{ border-color:var(--blue); box-shadow:0 0 0 2px var(--blue-bg); }
.person-card .btn{ align-self:flex-start; }
.person-card.is-out{ background:var(--bg); border-style:dashed; }
.person-card.is-out .budget-note-inline{ margin-top:0; }
.roster-card{ margin:0 0 1.1rem; }
.roster-card legend{ font-weight:700; color:var(--navy); padding:0 .3rem; }
.roster-panel{ display:grid; grid-template-columns:repeat(auto-fit, minmax(260px,1fr)); gap:.5rem 1rem; }
.roster-item{ display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; font-size:.88rem; cursor:pointer; }
.roster-item input{ width:18px; height:18px; accent-color:var(--blue); }
.roster-item .roster-name{ font-weight:700; color:var(--navy); }
.roster-item .cell-note{ flex-basis:100%; padding-left:1.6rem; }
.ms-dots{ display:flex; gap:.35rem; }
.ms-dot{ width:24px; height:24px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.72rem; font-weight:800; }
.ms-approved{ background:var(--green); color:#fff; }
.ms-submitted{ background:var(--gold-bg); color:var(--gold); border:1px solid #e9d38c; }
.ms-not_started{ background:var(--bg); color:var(--muted); border:1px dashed #c3cddb; }
.table-scroll{ overflow-x:auto; position:relative; }

/* ---- today's challenge cards ---- */
.challenge-card{ border-left:4px solid #5f95e8; }
.challenge-card.kpi-2{ border-left-color:#facc15; }
.challenge-card.kpi-3{ border-left-color:#4ade80; }
.challenge-card h3{ margin:0; }
.challenge-card.is-locked{ background:var(--bg); border-style:dashed; border-left-style:solid; }
.challenge-card.is-locked .example-grid{ opacity:.5; }
.challenge-meta{ display:flex; flex-wrap:wrap; gap:.3rem 1.2rem; font-size:.8rem; color:var(--muted); margin:.45rem 0 .9rem; }
.challenge-actions{ display:flex; flex-wrap:wrap; gap:.5rem; margin-top:.9rem; align-items:center; }
.earned-note{ font-size:.85rem; font-weight:800; color:var(--green); }
.earned-note.muted{ color:var(--muted); font-weight:600; }
.example-grid.example-grid-3{ grid-template-columns:repeat(3,1fr); }
.example-cell .v small{ display:block; font-size:.72rem; font-weight:600; color:var(--muted); margin-top:.15rem; }
.example-cell .v .v-muted{ font-size:.8rem; color:var(--muted); font-weight:600; font-style:italic; }

/* ---- prize games: selector ---- */
.game-picker{ display:grid; grid-template-columns:repeat(3,1fr); gap:.8rem; margin-bottom:1.1rem; }
.game-option{
  font:inherit; text-align:left; cursor:pointer; display:flex; flex-direction:column; gap:.3rem;
  background:#fff; border:1px solid var(--line); border-radius:12px; padding:.7rem .8rem .9rem; color:var(--ink);
  box-shadow:0 1px 2px rgba(15,30,60,.05); min-width:0;
}
.game-option img{ width:100%; height:120px; object-fit:contain; background:#fff; border-radius:8px; margin-bottom:.3rem; }
.game-option .game-name{ font-size:.95rem; font-weight:800; color:var(--navy); }
.game-option .game-desc{ font-size:.8rem; color:var(--muted); }
.game-option:hover{ border-color:var(--blue); }
.game-option:focus-visible{ outline:3px solid #9cc0ff; outline-offset:2px; }
.game-option.is-selected{ border-color:var(--blue); box-shadow:0 0 0 2px var(--blue-bg); }
.game-option:disabled{ cursor:not-allowed; opacity:.55; }
.game-option.is-locked img{ filter:grayscale(1); opacity:.5; }
.game-option .game-lock{ font-size:.74rem; font-weight:700; color:var(--gold); background:var(--gold-bg); border:1px solid #e9d38c; border-radius:6px; padding:.2rem .45rem; }
.game-option .game-lock[hidden]{ display:none; }
.progress-line{ font-size:.82rem; font-weight:700; color:var(--blue-dark); }
.game-panel .progress-line{ margin:-.4rem 0 .7rem; }
.day-bar{ display:flex; flex-wrap:wrap; align-items:center; gap:.4rem .8rem; margin-bottom:1rem; }
.day-bar strong{ color:var(--navy); }
.award-history .day-tag{ color:var(--muted); font-size:.72rem; margin-left:auto; padding-right:.6rem; align-self:center; }

/* ---- prize games: board and panel ---- */
.game-card{ display:grid; grid-template-columns:minmax(220px,340px) 1fr; gap:1.6rem; align-items:start; }
.game-stage{ min-width:0; }
.stage-empty{
  display:flex; align-items:center; justify-content:center; aspect-ratio:1; border:1px dashed #c3cddb;
  border-radius:12px; background:var(--bg); color:var(--muted); font-size:.88rem; font-weight:600; text-align:center; padding:1rem;
}
.wheel-wrap, .board-wrap{ position:relative; width:100%; max-width:320px; margin:0 auto; padding-top:8px; }
.board-wrap-plinko{ max-width:340px; }
.board-svg{ width:100%; height:auto; display:block; filter:drop-shadow(0 4px 12px rgba(15,30,60,.18)); }
#wheel-rotor{ transform-box:view-box; transform-origin:100px 100px; }
.board-label{ fill:#fff; font-size:9px; font-weight:700; pointer-events:none; }
.board-label-sm{ font-size:6.5px; }
.board-svg .zone.is-hit{ stroke:#facc15; stroke-width:3; }
.wheel-pointer{
  position:absolute; top:0; left:50%; transform:translateX(-50%); width:0; height:0; z-index:2;
  border-left:12px solid transparent; border-right:12px solid transparent; border-top:22px solid var(--gold);
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.3));
}
.board-label-pl{ font-size:8px; }
.plinko-ghost{ fill:none; stroke:var(--blue); stroke-width:1.6; stroke-dasharray:3 2; }
.plinko-chip{ fill:#facc15; stroke:var(--navy); stroke-width:1.4; }
.game-panel{ min-width:0; }
.game-panel h3{ margin-bottom:.8rem; }
.drop-picker{ display:flex; flex-wrap:wrap; align-items:center; gap:.35rem; margin-top:1rem; }
.drop-picker[hidden]{ display:none; }
.drop-label{ font-size:.78rem; font-weight:700; color:var(--muted); margin-right:.3rem; }
.drop-btn{ min-width:2.2rem; padding:.4rem .5rem; }
.btn-spin{ width:100%; margin-top:1rem; padding:.8rem 1rem; font-size:1rem; }
.wheel-hint{ font-size:.82rem; color:var(--muted); margin-top:.6rem; }
.wheel-hint.is-blocked{ color:#b91c1c; font-weight:700; }
.fair-note{ font-size:.8rem; color:var(--navy); background:var(--blue-bg); border-radius:8px; padding:.5rem .7rem; margin-top:.7rem; }

/* ---- prize games: result ---- */
.game-result{ margin-top:.9rem; }
.result-card{ border:1px solid #e9d38c; background:var(--gold-bg); border-radius:10px; padding:.9rem 1rem; }
.result-card .result-prize{ font-size:1.4rem; font-weight:800; color:var(--navy); }
.result-card .result-payroll{ font-size:.8rem; color:var(--ink); margin-top:.3rem; }
.result-card .result-demo{ font-size:.74rem; font-weight:700; color:#6b4f04; text-transform:uppercase; letter-spacing:.04em; margin-top:.2rem; }
.result-card .budget-list{ margin-top:.5rem; }
.result-card .btn{ margin-top:.7rem; }

/* ---- daily pot ---- */
.budget-list{ list-style:none; margin:.9rem 0 0; }
.budget-note-inline.ok{ color:var(--green); font-weight:700; }
.budget-note-inline.bad{ color:#b91c1c; font-weight:700; }
.pot-split{ display:grid; grid-template-columns:1fr 1fr; gap:1.4rem; margin-top:1.3rem; }
.pot-split h3{ display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; }
.tier-swatch{ display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:.45rem; vertical-align:middle; }
.award-history{ list-style:none; margin:0; padding:0; max-height:260px; overflow-y:auto; }
.award-history li{ display:flex; justify-content:space-between; gap:.6rem; font-size:.84rem; padding:.4rem 0; border-bottom:1px dashed var(--line); }
.award-history li:last-child{ border-bottom:none; }
.award-history li.empty{ color:var(--muted); font-style:italic; }

/* ---- payroll & taxes ---- */
.cell-note{ display:block; font-size:.72rem; font-weight:500; color:var(--muted); }
.empty-row{ color:var(--muted); font-style:italic; }
.rate-label{ display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; font-size:.82rem; color:var(--muted); margin-bottom:1rem; }
.how-grid{ display:grid; grid-template-columns:1fr 1fr; gap:1.6rem; }
.how-grid > div{ min-width:0; }
.how-grid h3{ margin:1.1rem 0 .5rem; }
.how-grid > div > h3:first-child{ margin-top:0; }
.how-p{ font-size:.86rem; margin-top:.6rem; }
.how-note{ font-size:.8rem; color:var(--muted); }
.how-table{ margin-top:.5rem; }
.how-table tr.how-total td{ font-weight:800; color:var(--navy); border-top:2px solid var(--line); }
.flow-gates{ display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; margin-top:.8rem; }
.flow-gates .gate-chip{ padding:.4rem .8rem; }
.flow-arrow{ color:#b7c3d6; font-weight:700; }
.why-box{ margin-top:1rem; }
.why-box > div{ min-width:0; flex:1; }

/* ---- my prizes & taxes ---- */
.player-pick select{
  font:inherit; font-size:.9rem; padding:.45rem .55rem; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--ink); min-width:220px;
}
.player-pick .field{ max-width:420px; }
.me-table tr.group-row td{ background:var(--blue-bg); color:var(--blue-dark); font-weight:700; font-size:.8rem; }
.me-table tfoot td{ border-top:2px solid var(--line); font-weight:800; color:var(--navy); }
.paystub{ max-width:520px; font-variant-numeric:tabular-nums; }
.stub-head{ display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; font-size:.88rem; color:var(--navy); padding-bottom:.6rem; border-bottom:2px solid var(--navy); }
.stub-section{ font-size:.7rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin-top:.8rem; }
.stub-line{ display:flex; justify-content:space-between; gap:1rem; font-size:.88rem; padding:.3rem 0; border-bottom:1px dashed var(--line); }
.stub-line.stub-net{ border-bottom:none; border-top:2px solid var(--navy); margin-top:.4rem; padding-top:.5rem; font-weight:800; color:var(--navy); }

/* ---- management goals (draft) ---- */
.draft-banner{
  display:flex; align-items:center; gap:.7rem; flex-wrap:wrap; margin-bottom:2.2rem; padding:1rem 1.2rem;
  background:#fef2f2; border:2px solid #b91c1c; border-radius:10px; color:#7f1d1d; font-size:.98rem;
}
.tab .tab-badge{ margin-left:.35rem; vertical-align:middle; font-size:.6rem; padding:.15rem .45rem; }
.mgmt-table td.fill-in{ min-width:140px; border:1px dashed #c3cddb; background:#fff; }
.mgmt-table td .status-badge{ margin-right:.35rem; }
.pilot-list li{ align-items:flex-start; }
.pilot-list .k{ flex:0 0 130px; }
.pilot-list .v{ white-space:normal; flex:1; min-width:0; }
.draft-footer{ text-align:center; font-size:.82rem; font-style:italic; color:var(--muted); border-top:1px dashed var(--line); padding-top:1rem; margin-top:1rem; }

.model-line{ margin-bottom:.9rem; }

/* ---- why this project ---- */
section.block > .lede.why-lead{ font-size:1.12rem; font-weight:600; color:var(--navy); }
.why-evidence{ grid-template-columns:1fr; margin-top:.8rem; }
.why-takeaway{ font-size:.95rem; }
.why-flow{ margin-top:0; }
.why-flow .gate-chip{ padding:.55rem .95rem; }
.why-flow .gate-chip.is-key{ background:var(--navy); border-color:var(--navy); color:#fff; }
.why-flow .loop-chip{ border-style:dashed; color:var(--blue-dark); background:var(--blue-bg); border-color:#9cc0ff; }
.pool-source.why-now{ background:var(--blue-bg); border-color:#c9dcff; }
.why-next{ font-size:.9rem; margin-top:1.1rem; }
.why-next a{ color:var(--blue-dark); font-weight:700; }
.director-link{ margin:0 0 1.4rem; }
.private-banner{ font-size:1.02rem; border-width:3px; }
.qa-list details.more:first-child{ margin-top:0; }

/* ---- metrics model ---- */
.model-intro{ color:var(--navy); font-size:1.02rem; max-width:76ch; margin-bottom:1.6rem; }
.model-kpis, .model-notes{ grid-template-columns:1fr; margin-top:.7rem; }
.theme-head{ font-size:.9rem; color:var(--navy); margin:1rem 0 .3rem; }
.mm-calc .note{ margin-bottom:.4rem; }
.mm-inputs{ margin:.4rem 0 .6rem; max-width:520px; }
.mm-inputs select{ font:inherit; font-size:.9rem; padding:.45rem .55rem; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--ink); }
#mm-weeks td.num, #mm-weeks th{ text-align:center; }

/* ---- page tabs ---- */
.tabs{ display:flex; gap:.4rem; border-bottom:2px solid var(--line); margin-bottom:1.6rem; flex-wrap:wrap; }
.tab{
  font:inherit; font-size:.92rem; font-weight:700; color:var(--muted); background:none; cursor:pointer;
  border:none; border-bottom:3px solid transparent; margin-bottom:-2px; padding:.7rem 1rem;
}
.tab:hover{ color:var(--blue-dark); }
.tab[aria-selected="true"]{ color:var(--navy); border-bottom-color:var(--blue); }
.tab:focus-visible{ outline:3px solid #9cc0ff; outline-offset:2px; border-radius:6px 6px 0 0; }
.tab-panel[hidden]{ display:none; }
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ---- targets, goals, kickoff ---- */
.goal-card h3{ display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; }
.goal-table td small{ color:var(--muted); font-weight:500; }
.goal-table tr.goal-now td{ color:var(--muted); font-style:italic; }
.goal-table tr.is-current td{ background:var(--blue-bg); }
.target-val{ display:block; }
.kickoff-card{ border-left:4px solid var(--gold); background:var(--gold-bg); }
.kickoff-card h3{ margin:0; }

/* ---- budget planner ---- */
.planner-grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); gap:1.6rem; align-items:start; }
.planner-inputs{ display:grid; grid-template-columns:1fr 1fr; gap:.9rem 1rem; }
.field{ display:flex; flex-direction:column; gap:.25rem; min-width:0; }
.field-label{ font-size:.8rem; font-weight:700; color:var(--navy); }
.field-note{ font-size:.72rem; color:var(--muted); }
.field-input{ display:flex; align-items:center; gap:.35rem; }
.field-input .unit{ font-size:.85rem; font-weight:700; color:var(--muted); }
.field-input input, .mix-table input{
  font:inherit; font-size:.9rem; width:100%; min-width:0; padding:.45rem .55rem; border:1px solid var(--line);
  border-radius:8px; background:#fff; color:var(--ink);
}
.field-input input:focus, .mix-table input:focus{ outline:3px solid #9cc0ff; outline-offset:1px; border-color:var(--blue); }
input[aria-invalid="true"]{ border-color:#b91c1c !important; background:#fef2f2 !important; }
.planner-outputs .total-banner{ margin-top:0; }
.budget-list .k small{ display:block; font-size:.72rem; color:var(--muted); }
.mix-table input.mix-name{ min-width:90px; }
.mix-table input.mix-count{ width:70px; }
.mix-table .field-input input{ width:80px; }
.mix-table tfoot td{ border-top:2px solid var(--line); font-weight:700; color:var(--navy); }
.btn-icon{ padding:.3rem .6rem; font-size:1rem; line-height:1; }
.mix-actions{ margin-top:.8rem; }
.mix-checks{ display:flex; flex-direction:column; gap:.6rem; margin-top:1rem; }
.mix-check .note{ margin:0; }
.mix-check .status-badge{ white-space:normal; text-transform:none; letter-spacing:0; font-size:.78rem; }
.status-over{ background:#fef2f2; color:#b91c1c; border:1px solid #fecaca; }
.note.note-red{ background:#fef2f2; border:1px solid #fecaca; color:#991b1b; }

@media (max-width: 860px){
  .planner-grid{ grid-template-columns:1fr; }
  .how-grid{ grid-template-columns:1fr; }
  .game-card{ grid-template-columns:1fr; }
  .pot-split{ grid-template-columns:1fr; }
}
@media (max-width: 520px){
  .example-grid.example-grid-3{ grid-template-columns:1fr; }
  .weight-item .w-label{ flex-basis:110px; }
  .game-picker{ grid-template-columns:1fr; }
  .planner-inputs{ grid-template-columns:1fr; }
  .game-option{ flex-direction:row; flex-wrap:wrap; align-items:center; }
  .game-option img{ width:72px; height:72px; margin:0 .6rem 0 0; }
  .game-option .game-name{ flex:1; }
  .game-option .game-desc{ flex-basis:100%; }
}

/* ---- responsive ---- */
@media (max-width: 860px){
  .tier-grid{ grid-template-columns:repeat(2,1fr); }
  .example-grid{ grid-template-columns:repeat(2,1fr); }
  .award-grid{ grid-template-columns:repeat(2,1fr); }
  .award-grid-3{ grid-template-columns:repeat(3,1fr); }
  .safe-list{ grid-template-columns:1fr; }
  .flow{ flex-direction:column; }
  .flow .arrow{ transform:rotate(90deg); }
  .weight-item .w-label{ flex-basis:150px; }
  .pool-source-grid{ grid-template-columns:1fr; }
  .rule-list{ grid-template-columns:1fr; }
  .budget-grid{ grid-template-columns:1fr; }
}
@media (max-width: 520px){
  header.hero{ padding:2.2rem 0 1.8rem; }
  header.hero .hero-logo{ height:22px; }
  .tier-grid{ grid-template-columns:1fr 1fr; }
  .sched{ flex-direction:column; }
  .sched .seg{ flex:none !important; }
  .award-grid-3{ grid-template-columns:1fr; }
  .total-banner{ flex-direction:column; align-items:flex-start; }
}
@media print{
  nav.toc{ display:none; }
  details.more{ break-inside:avoid; }
  section.block{ break-inside:avoid; }
}

/* ---- hosted mode (Laravel): anonymized twin of a people detail ---- */
[data-people-anon][hidden]{ display:none !important; }
