:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #17211c;
  --muted: #606963;
  --line: #d6d9d5;
  --green: #15553e;
  --green-soft: #e8f1ed;
  --amber: #8a5a00;
  --amber-soft: #fff4d8;
  --blue: #285c75;
  --blue-soft: #eaf3f8;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); font-size: 14px; line-height: 1.5; }
a { color: var(--green); text-underline-offset: 3px; }
button { font: inherit; }
.cite { margin-left: 4px; font-size: 10px; font-weight: 700; white-space: nowrap; }

.topbar {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.topbar a { color: var(--ink); font-weight: 700; text-decoration: none; }
.topbar span { margin-left: auto; color: var(--muted); font-size: 12px; }
.topbar button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; background: white; cursor: pointer; font-size: 12px; }
.topbar button:hover { border-color: var(--green); }

main { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
section { margin: 64px 0; }

.intro { margin-top: 70px; }
.label { margin: 0 0 8px; color: var(--green); font-size: 12px; font-weight: 700; text-transform: uppercase; }
h1 { max-width: 780px; margin: 0; font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.04em; line-height: 1.05; }
.summary { max-width: 780px; margin: 18px 0 26px; color: var(--muted); font-size: 18px; }
.summary strong { color: var(--ink); }

.quick-picks { display: grid; max-width: 980px; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--surface); }
.quick-picks p { margin: 0; padding: 18px; border-right: 1px solid var(--line); }
.quick-picks p:last-child { border-right: 0; }
.quick-picks strong, .quick-picks span { display: block; }
.quick-picks strong { margin-bottom: 3px; color: var(--green); font-size: 11px; text-transform: uppercase; }
.quick-picks span { font-weight: 650; }

.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
h2 { margin: 0; font-size: 25px; letter-spacing: -0.02em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.section-heading a { font-size: 12px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; min-width: 1080px; border-collapse: collapse; table-layout: fixed; }
th, td { padding: 15px 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th:last-child, td:last-child { border-right: 0; }
tbody tr:last-child td { border-bottom: 0; }
th { color: var(--muted); background: #f0f2ef; font-size: 11px; font-weight: 700; text-transform: uppercase; }
th:nth-child(1) { width: 16%; }
th:nth-child(2) { width: 14%; }
th:nth-child(3) { width: 14%; }
th:nth-child(4) { width: 13%; }
th:nth-child(5) { width: 24%; }
th:nth-child(6) { width: 19%; }
td { font-size: 12px; }
td > a { color: var(--ink); }
td strong { font-size: 13px; }
td small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.recommended td:first-child { box-shadow: inset 4px 0 var(--green); }

.timing { display: inline-block; margin-bottom: 5px; padding: 2px 6px; border-radius: 3px; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.timing-before { color: var(--green); background: var(--green-soft); }
.timing-after { color: var(--amber); background: var(--amber-soft); }
.timing-both { color: var(--blue); background: var(--blue-soft); }

.science { padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.science-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.science-grid article { padding: 10px 24px 4px; border-right: 1px solid var(--line); }
.science-grid article:first-child { padding-left: 0; }
.science-grid article:last-child { padding-right: 0; border-right: 0; }
.science-grid strong { color: var(--green); }
.science-grid p { margin: 6px 0 0; color: var(--muted); }
.science-grid b { color: var(--ink); }

.tempdrop { padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.tempdrop-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 18px 0 20px; border: 1px solid var(--line); }
.tempdrop-stats p { margin: 0; padding: 16px; border-right: 1px solid var(--line); }
.tempdrop-stats p:last-child { border-right: 0; }
.tempdrop-stats strong, .tempdrop-stats span { display: block; }
.tempdrop-stats strong { font-size: 25px; }
.tempdrop-stats span { color: var(--muted); font-size: 11px; }
.tempdrop ul { margin: 0; padding-left: 20px; columns: 2; column-gap: 50px; }
.tempdrop li { margin-bottom: 7px; break-inside: avoid; }

.recommendation { padding: 28px; color: white; background: var(--green); }
.recommendation h2 { margin-bottom: 14px; }
.recommendation p { margin: 7px 0; color: rgba(255, 255, 255, 0.82); }
.recommendation strong { color: white; }

.sources ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; padding-left: 22px; }
.sources li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.note { color: var(--muted); font-size: 12px; }

footer { padding: 24px max(24px, calc((100vw - 1240px) / 2)); border-top: 1px solid var(--line); color: var(--muted); background: var(--surface); font-size: 11px; }

@media (max-width: 760px) {
  .topbar { min-height: 52px; padding: 0 16px; }
  .topbar span { display: none; }
  .topbar button { margin-left: auto; }
  main { width: calc(100% - 32px); }
  section { margin: 46px 0; }
  .intro { margin-top: 48px; }
  h1 { font-size: 38px; }
  .summary { font-size: 16px; }
  .quick-picks { grid-template-columns: 1fr; }
  .quick-picks p { border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-picks p:last-child { border-bottom: 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .table-wrap { overflow: visible; border: 0; background: transparent; }
  table, tbody { display: block; min-width: 0; }
  thead { display: none; }
  tr { display: block; margin-bottom: 12px; border: 1px solid var(--line); background: var(--surface); }
  td { display: grid; grid-template-columns: 98px 1fr; gap: 12px; padding: 11px 12px; border-right: 0; font-size: 12px; }
  td::before { color: var(--muted); content: attr(data-label); font-size: 9px; font-weight: 700; text-transform: uppercase; }
  td:first-child { padding-top: 14px; }
  td:last-child { border-bottom: 0; padding-bottom: 14px; }
  .recommended td:first-child { box-shadow: inset 3px 0 var(--green); }
  .science, .tempdrop { padding: 20px; }
  .science-grid { grid-template-columns: 1fr; }
  .science-grid article, .science-grid article:first-child, .science-grid article:last-child { padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .science-grid article:last-child { border-bottom: 0; }
  .tempdrop-stats { grid-template-columns: repeat(2, 1fr); }
  .tempdrop-stats p:nth-child(2) { border-right: 0; }
  .tempdrop-stats p:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .tempdrop ul { columns: 1; }
  .sources ol { grid-template-columns: 1fr; }
}

@media print {
  @page { margin: 12mm; }
  body { background: white; font-size: 10px; }
  .topbar button { display: none; }
  main { width: 100%; }
  section { margin: 25px 0; }
  .intro { margin-top: 25px; }
  h1 { font-size: 32px; }
  .summary { font-size: 14px; }
  table { min-width: 0; }
  th, td { padding: 7px; font-size: 8px; }
  td strong { font-size: 9px; }
  td small { font-size: 7px; }
  .comparison-row { break-inside: avoid; }
}
