:root {
  --bg: #11161c;
  --card: #1a212b;
  --ink: #e8edf3;
  --muted: #93a0b0;
  --line: #2c3644;
  --gold: #e0c07a;
  --gold2: #f3ddaa;
  --accent: #7ec8bc;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.45;
  padding: 24px 20px 72px;
}
.wrap { max-width: 980px; margin: 0 auto; }
.wordmark {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: lowercase;
  margin-bottom: 10px;
}
h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
h2 {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
  font-weight: 700;
}
.lede { color: var(--muted); margin-bottom: 22px; max-width: 42rem; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
select, input {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line);
  background: #121820;
  color: var(--ink);
  border-radius: 12px;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
}
select:focus, input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.hint { color: var(--muted); font-size: 13px; margin-top: 10px; }

.banner {
  background: #163226;
  border: 1px solid #2f7a55;
  color: #7dcea0;
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 650;
  margin: 0 0 18px;
}
.hide { display: none; }

.pick {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 8px;
  margin: 22px 0 28px;
}
.pick-head {
  margin: 0;
  padding: 0 4px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sched-choice { flex-shrink: 0; text-align: right; }
.sched-choice .note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 7px;
  max-width: 26rem;
}
.toggle {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.toggle label {
  margin: 0;
  padding: 7px 12px;
  background: #121820;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}
.toggle label + input + label { border-left: 1px solid var(--line); }
.toggle input:checked + label { background: var(--accent); color: #0d1218; }
.toggle input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: -2px; }
.pick-head h2 { margin-bottom: 4px; }
.pick-head p { color: var(--muted); font-size: 14px; }
.answers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.ans {
  padding: 12px 16px 16px;
  border-left: 1px solid var(--line);
}
.ans:first-child { border-left: none; padding-left: 4px; }
.ans .who {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent);
}
.ans .num {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--gold2);
  margin: 6px 0 4px;
}
.ans .num small { font-size: 0.55em; font-weight: 600; color: var(--gold); }
.ans .why { font-size: 12px; color: var(--muted); white-space: nowrap; }

.tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.proj col.y { width: 34%; }
.proj col.g { width: 32%; }
.proj col.a { width: 34%; }
.sched col.y { width: 32%; }
.sched col.a { width: 34%; }
.sched col.b { width: 34%; }
th {
  text-align: left;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 6px 8px 8px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.03); }
tbody tr.split td { border-top: 2px solid var(--gold); }
.right { text-align: right; }

.assume {
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px 16px;
}
.assume h2 { letter-spacing: 0.08em; margin: 0 0 10px; }
.assume p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 10px;
}
.assume p:last-child { margin-bottom: 0; }
.assume a { color: var(--gold2); text-underline-offset: 2px; }

footer {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin-top: 18px;
}
footer strong { color: #c5d4cc; }
.legal {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}
.legal strong { color: #b7c2ce; font-weight: 650; }

@media (max-width: 800px) {
  .sched-choice { text-align: left; }
  .answers { grid-template-columns: 1fr; }
  .ans { border-left: none; border-top: 1px solid var(--line); padding: 14px 4px; }
  .ans:first-child { border-top: none; }
  .ans .why { white-space: normal; }
  .tables { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .inputs { grid-template-columns: 1fr; }
  body { padding: 18px 16px 64px; }
}
