:root {
  color-scheme: dark;
  --bg: #0b0f12;
  --surface: #141a1f;
  --surface-strong: #1a2229;
  --line: #2a343c;
  --line-soft: #202a31;
  --text: #f4f7f8;
  --muted: #9eabb4;
  --green: #43c486;
  --green-soft: #102a20;
  --blue: #62a8ff;
  --amber: #eab75d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
}

h1,
h2,
h3,
p,
dl,
dd,
ul {
  margin: 0;
}

.hidden {
  display: none !important;
}

main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 16px;
  display: grid;
  gap: 22px;
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.td-intro h1 {
  font-size: 28px;
  line-height: 1.15;
}

.td-lede {
  margin-top: 10px;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.5;
}

.td-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  padding: 14px;
  line-height: 1.5;
}

.td-status.is-empty {
  border-style: dashed;
  color: var(--text);
}

.td-status.is-error {
  border-color: #703d3a;
  color: #ffc0bb;
}

.td-board-heading h2 {
  font-size: 22px;
}

.td-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 12px 0 14px;
}

.td-meta div {
  border-left: 2px solid var(--line);
  padding-left: 10px;
}

.td-meta dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.td-meta dd {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 700;
}

.td-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.td-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.td-kickoff {
  color: var(--muted);
  font-size: 12px;
}

.td-player {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.td-player h3 {
  font-size: 18px;
  overflow-wrap: anywhere;
}

.td-position {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.td-matchup {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.td-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.td-figure-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.td-figure-value {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  font-weight: 850;
}

.td-figure-sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.td-asof {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.td-method {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 16px;
  line-height: 1.5;
}

.td-method h2 {
  font-size: 18px;
}

.td-method p,
.td-method ul {
  margin-top: 8px;
  color: var(--muted);
}

.td-method ul {
  padding-left: 18px;
}

.td-disclaimer {
  font-size: 13px;
}

.td-jump {
  justify-self: start;
  color: var(--green);
  font-size: 14px;
  font-weight: 750;
}

.td-scope {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.td-record {
  display: grid;
  gap: 14px;
}

.td-population {
  margin-top: 18px;
  font-size: 16px;
}

.td-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.td-stat {
  min-width: 0;
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.td-stat-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.td-stat-value {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 18px;
  font-weight: 800;
}

.td-stat-note {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.td-subheading {
  margin-top: 20px;
  font-size: 16px;
}

.td-weeks {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.td-week {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.td-week-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.td-week-title {
  font-weight: 800;
}

.td-week-status {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
}

.td-week-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.td-week-stats strong,
.td-week-stats span {
  display: block;
}

.td-week-stats span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.td-week-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.td-history {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.td-history summary {
  cursor: pointer;
  padding: 14px;
  font-weight: 800;
}

.td-pick-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 14px 6px;
  list-style: none;
}

.td-pick {
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}

.td-pick-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.td-pick-name {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.td-pick-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.td-result {
  flex: 0 0 auto;
  border: 2px solid var(--line);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 850;
}

.td-result-hit {
  border-color: #2f7454;
  background: var(--green-soft);
  color: #a7e8c8;
}

.td-result-miss {
  border-style: dashed;
  border-color: #743f3b;
  color: #ffc0bb;
}

.td-result-void {
  border-color: #7c6437;
  color: #f5d69b;
}

.td-result-pending {
  border-style: dotted;
  color: var(--muted);
}

.td-more {
  margin: 0 14px 14px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.td-definitions {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (min-width: 720px) {
  main {
    padding: 24px;
  }

  .td-intro h1 {
    font-size: 36px;
  }

  .td-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .td-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .td-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .td-weeks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
