:root {
  --ink: #1c1b18;
  --ink-soft: #3d3a34;
  --muted: #5f5a52;
  --paper: #f6f3ec;
  --paper-2: #efe9dc;
  --rule: #cfc8ba;
  --rule-strong: #9e9788;
  --accent: #e86a17;
  --accent-ink: #8a3d0a;
  --card: #fffdf8;
  --fail: #8b2e1f;
  --fail-bg: #f6e4df;
  --mid: #6b5420;
  --mid-bg: #f3ead2;
  --pass: #21543a;
  --pass-bg: #dceadf;
  --focus: #1c4b8f;
  --max: 42rem;
  --wide: 68rem;
  --sans: "Source Sans 3", "Source Sans Pro", ui-sans-serif, system-ui, sans-serif;
  --serif: "Source Serif 4", "Source Serif Pro", "Iowan Old Style", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
}

a {
  color: var(--accent-ink);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.4rem 0.7rem;
  z-index: 10;
}

.skip:focus {
  top: 0.75rem;
}

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.masthead-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.9rem 1rem 0.75rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.brand-name {
  font-family: var(--sans);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-tag {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.85rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.article {
  max-width: min(var(--max), 100%);
  min-width: 0;
}

.lede,
.kicker {
  font-family: var(--sans);
}

.kicker {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 0.6rem;
  font-family: var(--sans);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h2 {
  margin: 2.1rem 0 0.6rem;
  font-family: var(--sans);
  font-size: 1.35rem;
  line-height: 1.25;
}

h3 {
  margin: 1.5rem 0 0.4rem;
  font-family: var(--sans);
  font-size: 1.08rem;
}

p {
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--accent);
  padding-left: 0.85rem;
}

.meta-line {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1.4rem;
}

.note,
.callout,
.sources {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 0.9rem 1rem;
  margin: 1.25rem 0;
}

.callout strong,
.note strong {
  font-family: var(--sans);
}

.note {
  background: var(--paper-2);
}

.product-grid,
.score-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1.2rem 0 1.6rem;
}

@media (min-width: 720px) {
  .product-grid,
  .score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 980px) {
  .product-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card,
.scorecard {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 0.95rem 1rem 1rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.card h2,
.card h3,
.scorecard h2,
.scorecard h3 {
  margin-top: 0;
}

.card p:last-child,
.scorecard p:last-child {
  margin-bottom: 0;
}

.scorecard-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.55rem;
}

.scorecard-head h3 {
  margin: 0;
}

.type-pill {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule);
  padding: 0.15rem 0.4rem;
  white-space: nowrap;
}

.grades {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.7rem 0 0.85rem;
  min-width: 0;
}

.grade {
  border: 1px solid var(--rule);
  padding: 0.45rem 0.5rem 0.55rem;
  min-height: 4.6rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.grade dt {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.15rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.grade dd {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
}

.grade small {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink-soft);
}

.grade-F {
  background: var(--fail-bg);
  color: var(--fail);
}

.grade-D,
.grade-C-,
.grade-C,
.grade-C\+ {
  background: var(--mid-bg);
  color: var(--mid);
}

.grade-B-,
.grade-B,
.grade-B\+,
.grade-A-,
.grade-A {
  background: var(--pass-bg);
  color: var(--pass);
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0 1.4rem;
  border: 1px solid var(--rule);
  background: var(--card);
}

table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--rule);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

th {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--paper-2);
}

tr:last-child td {
  border-bottom: 0;
}

.toc {
  font-family: var(--sans);
  font-size: 0.95rem;
}

.toc ol {
  margin: 0.3rem 0 0;
  padding-left: 1.15rem;
}

.related {
  display: grid;
  gap: 0.65rem;
}

.related a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.related a:hover h3 {
  color: var(--accent);
}

.sources h2 {
  margin-top: 0;
}

.sources ol {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.95rem;
}

.sources li {
  margin-bottom: 0.35rem;
}

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
  font-family: var(--sans);
  font-size: 0.9rem;
}

.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.1rem 1rem 1.4rem;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-bottom: 0.45rem;
}

.footer-nav a {
  color: var(--ink-soft);
}

ul,
ol {
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.35rem;
}

.wide-break {
  max-width: min(var(--wide), 100%);
  min-width: 0;
}

.split {
  min-width: 0;
}

@media (min-width: 980px) {
  .split {
    display: grid;
    grid-template-columns: minmax(0, 42rem) minmax(16rem, 1fr);
    gap: 2.5rem;
    align-items: start;
  }

  .rail {
    position: sticky;
    top: 1rem;
  }
}

.rail {
  font-family: var(--sans);
  font-size: 0.92rem;
}

.rail .card {
  margin-bottom: 0.75rem;
}

.verified {
  color: var(--pass);
  font-weight: 700;
}

.reported {
  color: var(--mid);
  font-weight: 700;
}

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .site-nav,
  .skip {
    display: none;
  }

  a {
    color: inherit;
  }

  .scorecard,
  .card,
  .table-wrap {
    break-inside: avoid;
  }
}
