/* Tax-year books presale page (/tax-books). Shell tokens only; light and dark come from shell-tokens.css. */
.tbp-page {
  --tbp-gap: var(--fg-space-12);
}

/* The mock reads as one 1040px column; the shared public container is wider. */
body.tm-page.shell-v3-landing.tm-inner .tbp-page .tm-inner-container {
  width: min(1040px, calc(100% - 2 * var(--lp-gutter)));
}

.tbp-hero {
  padding-block: var(--fg-space-12) var(--fg-space-10);
}

.tbp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--tbp-gap);
  align-items: start;
}

.tbp-copy {
  padding-top: var(--fg-space-8);
  max-width: 34rem;
}

.tbp-kicker {
  margin: 0 0 var(--fg-space-4);
  font-size: var(--fg-text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.tbp-lead {
  margin: var(--fg-space-5) 0 0;
  font-size: var(--fg-text-section);
  line-height: 1.6;
  color: var(--fg-muted);
}

.tbp-terms {
  margin: var(--fg-space-5) 0 0;
  max-width: 26rem;
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-ink);
}

.tbp-action {
  margin-top: var(--fg-space-6);
}

.tbp-reserve[disabled] {
  cursor: progress;
  opacity: 0.75;
}

.tbp-reserve-note,
.tbp-reserve-error {
  margin: var(--fg-space-3) 0 0;
  font-size: var(--fg-text-sm);
  color: var(--fg-muted);
}

.tbp-reserve-error {
  color: var(--fg-status-mismatch-ink);
}

.tbp-reserved {
  margin: 0;
  max-width: 28rem;
  padding: var(--fg-space-4) var(--fg-space-5);
  border: 1px solid var(--fg-status-matched-icon);
  border-radius: var(--fg-radius-control);
  background: var(--fg-status-matched-bg);
  color: var(--fg-status-matched-ink);
  font-size: 15px;
  line-height: 1.6;
}

.tbp-reserved a {
  color: inherit;
}

/* Sample sheet */
.tbp-sheet {
  margin: 0;
  min-width: 0;
}

.tbp-sheet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--fg-space-2) var(--fg-space-4);
  margin-bottom: var(--fg-space-4);
}

.tbp-sheet-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-ink);
}

.tbp-sheet-meta {
  font-size: var(--fg-text-sm);
  color: var(--fg-muted);
}

.tbp-grid-scroll {
  overflow-x: auto;
}

.tbp-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fg-text-sm);
  font-variant-numeric: tabular-nums;
  color: var(--fg-ink);
  background: var(--fg-surface);
}

.tbp-grid :is(th, td) {
  padding: var(--fg-space-3) var(--fg-space-4);
  border: 1px solid var(--fg-line);
  line-height: 1.4;
  white-space: nowrap;
}

.tbp-grid th {
  font-weight: 400;
  text-align: left;
}

.tbp-grid td,
.tbp-grid .tbp-grid-header th + th {
  text-align: right;
}

.tbp-grid .tbp-grid-letters th,
.tbp-grid .tbp-grid-letters th + th {
  padding-block: var(--fg-space-2);
  text-align: center;
  font-size: var(--fg-text-meta);
  color: var(--fg-muted);
  background: var(--fg-surface-alt);
}

.tbp-grid-header th {
  font-weight: 600;
  background: var(--fg-surface-alt);
}

.tbp-grid tfoot :is(th, td) {
  font-weight: 700;
}

.tbp-grid tfoot th {
  font-weight: 600;
  background: var(--fg-surface-alt);
}

.tbp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fg-space-2) var(--fg-space-5);
  margin: var(--fg-space-4) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fg-text-sm);
  color: var(--fg-muted);
}

.tbp-tabs .is-current {
  font-weight: 600;
  color: var(--fg-ink);
}

.tbp-sheet-note {
  margin: var(--fg-space-4) 0 0;
  font-size: var(--fg-text-sm);
  color: var(--fg-muted);
}

/* What is inside */
.tbp-features {
  padding-block: var(--fg-space-4) var(--fg-space-12);
}

.tbp-features-lead {
  margin: var(--fg-space-4) 0 0;
  font-size: 15px;
  color: var(--fg-muted);
}

.tbp-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--fg-space-6) var(--fg-space-10);
  margin-top: var(--fg-space-6);
}

.tbp-feature h3 {
  margin: 0;
  font-size: var(--fg-text-section) !important;
  line-height: 1.3 !important;
}

.tbp-feature p {
  margin: var(--fg-space-2) 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-muted);
}

.tbp-disclaimer {
  margin: var(--fg-space-8) 0 0;
  max-width: 52rem;
  font-size: var(--fg-text-body);
  line-height: 1.6;
  color: var(--fg-muted);
}

@media (max-width: 900px) {
  .tbp-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--fg-space-10);
  }

  .tbp-copy {
    padding-top: 0;
    max-width: none;
  }

  .tbp-feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .tbp-hero {
    padding-top: var(--fg-space-8);
  }

  .tbp-reserve {
    width: 100%;
  }

  .tbp-grid :is(th, td) {
    padding-inline: var(--fg-space-2);
  }

  .tbp-grid :is(th[scope="row"], .tbp-grid-header th:first-child) {
    white-space: normal;
  }
}
