/* ==========================================================================
   Goods Review Lab — stylesheet
   No external fonts, no CDN, no framework. Everything ships from this file.

   2026-09-26 — rebuilt as an editorial research layout:
     · dark header band with an in-band disclosure line
     · article grid: reading column + sticky rail (contents, related, trust)
     · quick-answer block at the top of guides
     · tables rebuilt as decision surfaces, card-stacked under 720px
   Every legacy class name is preserved so the fourteen existing pages
   keep working without edits.
   ========================================================================== */

:root {
  --ink:        #131a22;
  --ink-soft:   #3d4854;
  --muted:      #66727f;
  --line:       #e2e7ed;
  --line-soft:  #eef2f6;
  --bg:         #ffffff;
  --bg-soft:    #f6f8fa;
  --bg-tint:    #eef4f2;

  --brand:      #0f6e56;
  --brand-dark: #0a5340;
  --brand-tint: #e7f2ee;
  --brand-line: #cfe3da;

  --accent:     #b45309;
  --accent-tint:#fdf3e7;

  --navy:       #0e1621;
  --navy-soft:  #16222f;

  --radius:     10px;
  --radius-lg:  14px;
  --wrap:       1140px;
  --read:       720px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --shadow-sm: 0 1px 2px rgba(19,26,34,.05);
  --shadow-md: 0 4px 16px rgba(19,26,34,.07);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--brand); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--brand); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ==========================================================================
   Masthead — dark band; navigation and the disclosure line share a surface
   ========================================================================== */

.masthead { background: var(--navy); color: #e8eef2; }
.masthead-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 28px;
  height: 70px; display: flex; align-items: center; gap: 6px;
}
.masthead .brand {
  font-weight: 650; font-size: 18px; letter-spacing: -.012em;
  color: #fff; text-decoration: none; margin-right: auto;
  display: flex; align-items: center; gap: 10px;
}
.masthead .brand:hover { color: #fff; }
.masthead .brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #3fbf96; flex: none;
}
.masthead a.navlink {
  color: #b9c6d1; text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 7px;
}
.masthead a.navlink:hover { color: #fff; background: rgba(255,255,255,.07); }
.masthead a.navlink[aria-current="page"] { color: #fff; background: rgba(255,255,255,.1); }

/* the disclosure line: still the first thing on the page, now on the dark band */
.disclosure-bar {
  background: var(--navy-soft);
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: 13.5px; color: #9fb0be;
  padding: 10px 0;
}
.disclosure-bar .wrap { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.disclosure-bar strong { font-weight: 650; color: #d7e2ea; }
.disclosure-bar a { color: #8fd3bb; }

/* legacy nav class: hidden, since the masthead now carries navigation */
.topnav { display: none; }

/* ==========================================================================
   Page shells
   ========================================================================== */

.page { padding: 56px 0 84px; }
.page .read { max-width: none; }

.page h1 {
  font-size: 40px; line-height: 1.14; letter-spacing: -.028em;
  margin: 0 0 14px; font-weight: 680;
}
.page h2 {
  font-size: 25px; line-height: 1.28; margin: 52px 0 14px;
  font-weight: 655; letter-spacing: -.016em;
}
.page h3 { font-size: 18.5px; margin: 34px 0 8px; font-weight: 650; }
.page p  { margin: 0 0 19px; }
.page ul, .page ol { margin: 0 0 19px; padding-left: 24px; }
.page li { margin-bottom: 10px; }
.page .sub {
  color: var(--muted); font-size: 19.5px; line-height: 1.5;
  margin: 0 0 26px; font-weight: 400; max-width: 46ch;
}
.page .lead { font-size: 20px; line-height: 1.6; color: var(--ink-soft); }

.article-body { max-width: var(--read); }
.article-body > p:first-of-type { margin-top: 0; }

code {
  font-family: var(--mono); font-size: .88em;
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  padding: 2px 6px; border-radius: 5px;
}

/* anchor offset so sticky-free deep links do not land under nothing */
[id] { scroll-margin-top: 24px; }

/* ==========================================================================
   Article layout — reading column + sticky rail
   ========================================================================== */

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 60px;
  align-items: start;
}
.rail { position: sticky; top: 26px; }

@media (max-width: 1040px) {
  .article-shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rail { display: none; }
}

.rail-block { margin-bottom: 26px; }
.rail-block h4 {
  margin: 0 0 10px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase; color: var(--muted);
}
.rail-contents {
  list-style: none; margin: 0; padding: 0;
  border-left: 2px solid var(--line);
}
.rail-contents li { margin: 0; }
.rail-contents a {
  display: block; padding: 6px 0 6px 16px; position: relative;
  font-size: 14px; line-height: 1.42; color: var(--ink-soft);
  text-decoration: none;
}
.rail-contents a::before {
  content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px;
  background: transparent;
}
.rail-contents a:hover { color: var(--brand-dark); }
.rail-contents a:hover::before { background: var(--brand); }
.rail-contents li.is-active a { color: var(--brand-dark); font-weight: 600; }
.rail-contents li.is-active a::before { background: var(--brand); }

.rail-card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; font-size: 14px;
}
.rail-card p { margin: 0 0 10px; color: var(--ink-soft); line-height: 1.55; }
.rail-card p:last-child { margin-bottom: 0; }
.rail-card a { font-weight: 600; }

/* ==========================================================================
   Answer block — the answer surface at the top of a guide
   ========================================================================== */

.answer {
  border: 1px solid var(--brand-line);
  border-top: 3px solid var(--brand);
  background: #f5faf8;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 22px 26px 20px;
  margin: 0 0 34px;
  box-shadow: var(--shadow-sm);
}
.answer h2 {
  margin: 0 0 14px; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
}
.answer dl { margin: 0; display: grid; gap: 13px; }
.answer dt {
  font-size: 12.5px; font-weight: 700; color: var(--muted);
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 3px;
}
.answer dd { margin: 0; font-size: 16.5px; line-height: 1.5; }

@media (min-width: 720px) {
  .answer dl { grid-template-columns: 1fr 1fr; gap: 16px 30px; }
  .answer dl .wide { grid-column: 1 / -1; }
}

/* ==========================================================================
   Byline / freshness strip
   ========================================================================== */

.byline {
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0; margin: 0 0 40px;
  font-size: 14px; color: var(--muted);
}
.byline .who { color: var(--ink-soft); font-weight: 600; }

/* ==========================================================================
   Callouts
   ========================================================================== */

.note {
  border-left: 3px solid var(--brand);
  background: var(--brand-tint);
  padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 28px 0; font-size: 16px;
}
.note.warn { border-left-color: var(--accent); background: var(--accent-tint); }
.note p:last-child { margin-bottom: 0; }
.note strong { font-weight: 650; }

/* Article support classes -------------------------------------------------- */

/* De-emphasised inline text (e.g. "(grouped)" inside a table cell).
   Must stay readable — this is a step down in emphasis, not a disable. */
.muted { color: var(--muted); font-style: normal; }

/* Source list at the foot of an article. Set as a bounded, quieter block so it
   reads as an appendix rather than as body copy competing with the argument. */
ul.sources {
  margin: 18px 0 0; padding: 0 0 0 18px;
  font-size: 14.5px; line-height: 1.6; color: var(--muted);
}
ul.sources li { margin-bottom: 11px; }
ul.sources em { color: var(--muted); }

/* The final caveat paragraph. Deliberately below body size and contrast:
   it qualifies the whole article, but it must never be hidden or unreadable. */
.fine {
  margin-top: 26px; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.65; color: var(--muted);
}

/* ==========================================================================
   Sections (home page)
   ========================================================================== */

.section { padding: 64px 0; }
.section.alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section-head { margin-bottom: 34px; }
.section-head h2 { font-size: 29px; margin: 0 0 10px; letter-spacing: -.018em; font-weight: 660; }
.section-head p { margin: 0; color: var(--muted); max-width: 62ch; font-size: 17px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: var(--navy);
  color: #eef3f6;
  padding: 80px 0 74px;
}
.hero h1 {
  margin: 0 0 20px; font-size: 48px; line-height: 1.1;
  letter-spacing: -.03em; font-weight: 690; max-width: 22ch; color: #fff;
}
.hero p.lede {
  margin: 0; font-size: 20px; line-height: 1.6;
  color: #a9bccb; max-width: 56ch;
}
.hero .cta-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero .btn-primary { background: #2aa87c; color: #06231a; }
.hero .btn-primary:hover { background: #35bb8c; color: #06231a; }
.hero .btn-ghost {
  background: transparent; color: #eef3f6; border-color: rgba(255,255,255,.28);
}
.hero .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }

.hero-stats {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(186px, 1fr));
  margin-top: 54px; padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stats strong {
  display: block; font-size: 15px; font-weight: 650; color: #fff; margin-bottom: 4px;
}
.hero-stats span { font-size: 14px; color: #8ba0b1; line-height: 1.5; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block; padding: 13px 22px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ==========================================================================
   Category cards
   ========================================================================== */

.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
}
.card {
  display: flex; flex-direction: column;
  padding: 26px 24px 22px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: #fff;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover {
  border-color: var(--brand); transform: translateY(-3px);
  color: inherit; box-shadow: var(--shadow-md);
}
.card .kicker {
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 12px;
}
.card h3 {
  margin: 0 0 10px; font-size: 19px; font-weight: 655;
  letter-spacing: -.012em; line-height: 1.28;
}
.card p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.58; }
.card .go {
  margin-top: auto; padding-top: 18px;
  font-size: 14px; font-weight: 600; color: var(--brand-dark);
}

/* ==========================================================================
   Trust strip
   ========================================================================== */

.trust {
  display: grid; gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.trust div { padding-top: 20px; border-top: 2px solid var(--brand); }
.trust div h3 { margin: 0 0 8px; font-size: 17px; font-weight: 655; }
.trust div p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.58; }

/* ==========================================================================
   Tables — rebuilt as decision surfaces
   ========================================================================== */

.table-scroll {
  overflow-x: auto; margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
table {
  border-collapse: collapse; width: 100%;
  font-size: 15px; min-width: 600px;
}
th, td {
  text-align: left; padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
thead th {
  background: var(--bg-soft);
  font-weight: 660; font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fbfcfd; }
td strong { font-weight: 660; color: var(--brand-dark); }

/* rows carrying the headline comparison get a tinted band */
tr.is-key td { background: var(--accent-tint); }
tr.is-key:hover td { background: #fcecd9; }
tr.is-low td { background: var(--brand-tint); }
tr.is-low:hover td { background: #dcf0e8; }

@media (min-width: 1120px) {
  .article-body .table-scroll { margin-right: -110px; }
}

/* Under 720px a wide table is unusable — stack each row into a card. */
@media (max-width: 720px) {
  .table-scroll {
    border: none; box-shadow: none; background: transparent;
    overflow-x: visible; margin: 22px 0;
  }
  table { min-width: 0; display: block; }
  thead { display: none; }
  tbody, tr, td { display: block; width: 100%; }
  tbody tr {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); margin-bottom: 14px; overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  tbody tr:hover { background: #fff; }
  td {
    border-bottom: 1px solid var(--line-soft);
    padding: 12px 18px; font-size: 15px;
  }
  td:last-child { border-bottom: none; }
  td:first-child {
    background: var(--bg-soft); font-weight: 645; color: var(--ink);
  }
  tr.is-key td { background: #fff; }
  tr.is-low td { background: #fff; }
  tr.is-key td:first-child { background: #f6e3cb; }
  tr.is-low td:first-child { background: #d4e9e1; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  background: var(--navy);
  padding: 54px 0 40px;
  font-size: 15px; color: #8ba0b1;
}
.bottom h4 {
  margin: 0 0 14px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase; color: #d7e2ea;
}
.bottom ul { list-style: none; margin: 0; padding: 0; }
.bottom li { margin-bottom: 9px; }
.bottom a { color: #8ba0b1; text-decoration: none; }
.bottom a:hover { color: #fff; text-decoration: underline; }
.bottom .about-col p { margin: 0 0 10px; max-width: 42ch; color: #7b8fa0; line-height: 1.6; }
.foot-grid { display: grid; gap: 40px; grid-template-columns: 1.5fr 1fr 1fr; }

/* The bottom strip: one continuous band, not three stacked paragraphs.
   The affiliate line is legally required to stay present and readable, so it
   is kept at full contrast — it is set as one line rather than decorative small
   print, and it still links straight to the full disclosure page. */
.bottom .legal {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13.5px; line-height: 1.65; color: #7b8fa0;
  display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: baseline;
  justify-content: space-between;
}
.bottom .legal p { margin: 0; }
.bottom .legal p.aff { color: #a4b6c4; }
.bottom .legal a { color: #8fd3bb; white-space: nowrap; }
.bottom .legal .copy { color: #6f8496; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 38px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .masthead-inner { height: auto; padding: 16px 20px; flex-wrap: wrap; gap: 2px; }
  .masthead .brand { width: 100%; margin-right: 0; margin-bottom: 10px; }
  .masthead a.navlink { padding: 7px 10px; font-size: 14px; }
  .hero { padding: 52px 0 46px; }
  .hero h1 { font-size: 31px; }
  .hero p.lede { font-size: 17.5px; }
  .hero-stats { margin-top: 38px; gap: 20px; }
  .page { padding: 40px 0 62px; }
  .page h1 { font-size: 30px; }
  .page h2 { font-size: 22px; margin-top: 42px; }
  .page .sub { font-size: 17.5px; }
  .page .lead { font-size: 18px; }
  .section { padding: 46px 0; }
  .section-head h2 { font-size: 24px; }
  .answer { padding: 20px 20px 18px; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .bottom { padding: 44px 0 34px; }
}
