:root {
  --ink: #1a1d22;
  --muted: #5b6270;
  --line: #e2e5ea;
  --bg: #fbfbfc;
  --card: #ffffff;
  --accent: #1f6f5c;
  --accent-light: #e8f4f1;
  --warn: #92400e;
  --warn-bg: #fff4e5;
  --warn-border: #f0b854;
  --bundled: #9aa1ad;
  --bundled-bg: #f4f5f7;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-header {
  background: var(--accent);
  color: #fff;
  padding: 48px 0 40px;
}

.page-header .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.85;
  margin: 0 0 10px;
}

.page-header h1 {
  margin: 0 0 16px;
  font-size: 2rem;
  line-height: 1.2;
  /* max-width: 700px; */
}

.page-header .pitch {
  /* max-width: 680px; */
  font-size: 1.05rem;
  opacity: 0.95;
  margin: 0;
}

main {
  padding: 36px 0 24px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
}

.stat-card .stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2px;
}

.table-section h2 {
  font-size: 1.3rem;
  margin: 0 0 6px;
}

.section-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 16px;
  max-width: 720px;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  margin-bottom: 40px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 640px;
}

thead th {
  text-align: left;
  padding: 12px 14px;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

thead th:hover {
  background: #dcece7;
}

thead th.num {
  text-align: right;
}

thead th.sorted-asc::after {
  content: " \25B2";
  font-size: 0.7em;
}

thead th.sorted-desc::after {
  content: " \25BC";
  font-size: 0.7em;
}

tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.product-cell .brand {
  font-weight: 600;
}

.product-cell .name {
  color: var(--muted);
  font-size: 0.88rem;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-isolatable {
  background: var(--accent-light);
  color: var(--accent);
}

.badge-bundled {
  background: #fde8e8;
  color: #a12c2c;
}

.source-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bundled-bg);
  color: var(--muted);
  text-transform: capitalize;
}

tr.row-bundled {
  background: var(--bundled-bg);
  color: var(--bundled);
}

tr.row-bundled .brand,
tr.row-bundled .name {
  color: var(--bundled);
}

tr.row-bundled td.num.unavailable {
  font-style: italic;
}

.retailer-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88rem;
}

.retailer-link:hover {
  text-decoration: underline;
}

.ala-warning {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 8px 0 32px;
  font-size: 0.95rem;
  max-width: 980px;
}

.ala-warning strong {
  display: inline;
}

.page-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 0.85rem;
}

.page-footer a {
  color: var(--accent);
}

.page-footer p {
  margin: 0 0 8px;
}

code {
  background: var(--bundled-bg);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.85em;
}
