/* comparebabystuff.com design system v1 */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #1f2933;
  --muted: #52606d;
  --accent: #0b6e4f;
  --accent-dark: #084c37;
  --bg: #fafaf7;
  --card: #ffffff;
  --line: #e4e7eb;
  --warn-bg: #fff8ec;
  --win: #e8f5ee;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

header.site {
  background: var(--card);
  border-bottom: 3px solid var(--accent);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.logo { font-family: 'Helvetica Neue', Arial, sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.5px; color: var(--ink); text-decoration: none; }
.logo span { color: var(--accent); }
nav.main a { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 14px; color: var(--muted); text-decoration: none; margin-left: 22px; }
nav.main a:hover { color: var(--accent); }

.hero { padding: 56px 0 36px; }
.hero h1 { font-size: 40px; line-height: 1.15; letter-spacing: -0.5px; max-width: 720px; }
.hero p.lede { font-size: 20px; color: var(--muted); max-width: 700px; margin-top: 16px; }

h2.section { font-size: 28px; margin: 48px 0 8px; letter-spacing: -0.3px; }
h3 { font-size: 21px; margin: 32px 0 8px; }
.sub { color: var(--muted); max-width: 760px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin: 24px 0; }
a.card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 22px; text-decoration: none; color: inherit;
  transition: border-color .15s ease;
}
a.card:hover { border-color: var(--accent); }
.card h3 { margin: 0 0 6px; font-size: 19px; color: var(--accent-dark); }
.card p { color: var(--muted); font-size: 15px; }
.card .tag {
  display: inline-block; font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}

table.compare {
  width: 100%; border-collapse: collapse; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  margin: 18px 0; font-size: 15.5px;
}
table.compare caption {
  caption-side: top; text-align: left; font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700; font-size: 15px; padding: 10px 2px; color: var(--muted);
}
table.compare th, table.compare td {
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  text-align: left; vertical-align: top;
}
table.compare thead th {
  font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 14px;
  background: #f1f4f1; letter-spacing: .2px;
}
table.compare tbody th { width: 26%; color: var(--muted); font-weight: normal; }
table.compare td.win { background: var(--win); }
td.win::after { content: " ✓"; color: var(--accent); }

/* Wide-table containment: scrollable on narrow viewports instead of
   overflowing the page (QA cbb-int4 D1). Wrap any table that can exceed
   viewport width in <div class="table-scroll">. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.verdict {
  background: var(--card); border-left: 5px solid var(--accent);
  padding: 22px 26px; margin: 26px 0; border-radius: 0 10px 10px 0;
}
.verdict h2 { margin-top: 0; font-size: 24px; }
.verdict .pick { font-family: 'Helvetica Neue', Arial, sans-serif; font-weight: 800; color: var(--accent-dark); }

.safety-note {
  background: var(--warn-bg); border: 1px solid #ecd9b0;
  padding: 18px 22px; border-radius: 10px; margin: 26px 0; font-size: 15.5px;
}
.safety-note strong:first-child { font-family: 'Helvetica Neue', Arial, sans-serif; letter-spacing: .3px; }

.cta-box {
  background: var(--accent-dark); color: #fff; border-radius: 10px;
  padding: 24px 28px; margin: 30px 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
}
.cta-box p { max-width: 560px; font-size: 16px; }
.cta-box .btn {
  font-family: 'Helvetica Neue', Arial, sans-serif; font-weight: 700; font-size: 16px;
  background: #fff; color: var(--accent-dark); text-decoration: none;
  padding: 12px 26px; border-radius: 999px; white-space: nowrap;
}
.cta-box .note { font-size: 12px; opacity: .75; display: block; margin-top: 8px; }

.sources { font-size: 14px; color: var(--muted); }
.sources ol { padding-left: 22px; margin: 10px 0 0; }
.sources li { margin: 8px 0; overflow-wrap: anywhere; word-break: break-word; }
.sources a { color: var(--accent-dark); word-break: break-all; }

.disclosure {
  font-size: 12.5px; color: var(--muted); background: var(--card);
  border: 1px dashed var(--line); padding: 10px 16px; border-radius: 8px; margin: 24px 0;
}

footer.site { margin-top: 64px; border-top: 1px solid var(--line); padding: 28px 0 40px; }
footer.site p { font-size: 13.5px; color: var(--muted); max-width: 860px; }
footer.site nav a { color: var(--muted); margin-right: 18px; font-size: 13.5px; }

.breadcrumb { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }

/* ---------- Interactive table tools ---------- */
.table-tools { margin: 18px 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip {
  font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--muted); cursor: pointer; transition: all .12s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tools-row {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 13px; color: var(--muted);
  margin-bottom: 4px;
}
.diff-toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.diff-toggle input { accent-color: var(--accent); width: 15px; height: 15px; }
.sort-group button {
  font-family: inherit; font-size: 12.5px; padding: 5px 11px; margin-left: 4px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  color: var(--muted); cursor: pointer;
}
.sort-group button:hover { border-color: var(--accent); color: var(--accent-dark); }
.sort-group button.is-active { background: #f1f4f1; border-color: var(--accent); color: var(--accent-dark); font-weight: 700; }

/* ---------- Picker quiz ---------- */
.quiz {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 28px; margin: 18px 0 30px;
}
.quiz-progress { display: flex; gap: 7px; margin-bottom: 14px; }
.quiz-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.quiz-dot.done { background: var(--accent); opacity: .45; }
.quiz-dot.current { background: var(--accent); opacity: 1; transform: scale(1.25); }
.quiz-question { font-size: 19px; font-weight: bold; margin-bottom: 14px; }
.quiz-options { display: grid; gap: 9px; margin-bottom: 8px; }
.quiz-option {
  text-align: left; font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 15px;
  padding: 13px 16px; border-radius: 9px; border: 1.5px solid var(--line);
  background: #fff; cursor: pointer; transition: all .12s ease; color: var(--ink);
}
.quiz-option:hover { border-color: var(--accent); background: #f4faf7; }
.quiz-back {
  font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 13px; background: none;
  border: none; color: var(--muted); cursor: pointer; padding: 6px 0; text-decoration: underline;
}
.quiz-result-title { font-size: 19px; font-weight: bold; margin-bottom: 14px; }
.quiz-result-card { border-top: 1px solid var(--line); padding: 14px 0; }
.quiz-result-card.top { border-top: none; }
.quiz-result-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.quiz-pct { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 13px; color: var(--accent-dark); font-weight: 700; white-space: nowrap; }
.quiz-bar { height: 7px; background: #eef1ee; border-radius: 999px; margin: 8px 0; overflow: hidden; }
.quiz-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #2e9e77); border-radius: 999px; transition: width .5s ease; }
.quiz-blurb { font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }
.quiz-cta { display: inline-block; font-family: 'Helvetica Neue', Arial, sans-serif; font-weight: 700; font-size: 14px;
  background: var(--accent-dark); color: #fff !important; text-decoration: none; padding: 10px 20px; border-radius: 999px; }
.quiz-cta:hover { background: var(--accent); }
.quiz-tie { font-size: 14px; color: var(--muted); background: var(--warn-bg); border-radius: 8px; padding: 10px 14px; margin-top: 12px; }

/* ---------- Hub pages ---------- */
.hub-hero { padding: 40px 0 6px; }
.hub-hero h1 { font-size: 36px; letter-spacing: -0.5px; line-height: 1.15; }
.hub-hero p.lede { font-size: 19px; color: var(--muted); max-width: 720px; margin-top: 12px; }
a.card.compare-card, a.card.hub-card { position: relative; display: flex; flex-direction: column; gap: 8px; }
.mini-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-facts .fact {
  font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 12px;
  background: #f1f4f1; border-radius: 999px; padding: 4px 11px; color: var(--ink);
}
.mini-facts .fact strong { color: var(--accent-dark); }
.card-cta {
  font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 13px; font-weight: 700;
  color: var(--accent-dark); margin-top: auto;
}
.soon-badge {
  font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 11px; letter-spacing: .5px;
  text-transform: uppercase; background: var(--warn-bg); border: 1px solid #ecd9b0;
  border-radius: 999px; padding: 2px 9px; color: #8a6d1f;
}

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  body { font-size: 16px; }
  table.compare { font-size: 14px; }
  table.compare th, table.compare td { padding: 8px 9px; }
  .hub-hero h1 { font-size: 29px; }
  .quiz { padding: 20px 16px; }
  .btn, .cta-box .btn { white-space: normal; text-align: center; }
}

/* F1 fix: stack CTA pills vertically on narrow viewports so multi-locale
   buy buttons never geometrically overlap (QA cbb-p1-0823 F1). */
@media (max-width: 480px) {
  .cta-box { flex-direction: column; align-items: stretch; }
  .cta-box .btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    white-space: normal;
    text-align: center;
  }
  .cta-box div > .btn { margin-top: 8px; }
  .cta-box br { display: none; }
  .quiz-cta {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 8px 0 0;
    text-align: center;
    white-space: normal;
  }
}
