/* ============================================================
   PetFoodRankings — design system
   Independent pet food rankings (EN market)
   ============================================================ */

:root {
  --bg: #FAF8F3;
  --surface: #FFFFFF;
  --surface-2: #F3F0E8;
  --surface-3: #EDE8DC;

  --ink: #211D16;
  --ink-2: #4C463B;
  --muted: #837A6B;
  --line: #E7E0D1;
  --line-2: #D6CCB6;

  --brand: #0E6B4E;
  --brand-dark: #0A4E39;
  --brand-deep: #073726;
  --brand-soft: #E2F0E9;
  --brand-softer: #F0F7F3;

  --accent: #E8590C;
  --accent-dark: #C24A08;
  --accent-soft: #FCEAE0;

  --gold: #D99A06;
  --gold-soft: #FBF3DF;

  --s90: #0E6B4E;
  --s80: #2E8B62;
  --s70: #C77700;
  --s60: #B3402A;

  --shadow-sm: 0 1px 2px rgba(33, 29, 22, .06), 0 1px 3px rgba(33, 29, 22, .05);
  --shadow-md: 0 4px 14px rgba(33, 29, 22, .08), 0 1px 3px rgba(33, 29, 22, .05);
  --shadow-lg: 0 24px 48px -16px rgba(33, 29, 22, .22);

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --maxw: 1180px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--ink-2); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .45em; }
strong { color: var(--ink); }
:focus-visible { outline: 3px solid rgba(14, 107, 78, .45); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }

.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-weight: 800; font-size: 1.22rem; letter-spacing: -0.02em; color: var(--ink); }
.logo-sub { font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 9px 13px; border-radius: 9px;
  font-size: .93rem; font-weight: 600; color: var(--ink-2);
}
.nav-link:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav-item.active > .nav-link { color: var(--brand); background: var(--brand-soft); }
.nav-link .caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-1px); opacity: .55; }

.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 264px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown,
.nav-item.open > .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 9px; font-size: .9rem; font-weight: 600; color: var(--ink-2);
}
.nav-dropdown a:hover { background: var(--brand-softer); color: var(--brand-dark); text-decoration: none; }
.nav-dropdown a .dd-ico { font-size: 1rem; width: 22px; text-align: center; }
.nav-dropdown .dd-all { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; color: var(--brand); }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -6px; left: 0; right: 0; }
.nav-toggle span::after { top: 6px; left: 0; right: 0; }

/* ---------- disclosure bar ---------- */
.disclosure-bar {
  background: var(--gold-soft);
  border-bottom: 1px solid #F0E3BC;
  color: #7A5B0B;
  font-size: .82rem;
  text-align: center;
  padding: 8px 16px;
}
.disclosure-bar strong { color: #6B4F08; }
.disclosure-bar a { color: #7A5B0B; text-decoration: underline; }

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 60px;
  background:
    radial-gradient(720px 340px at 88% -10%, rgba(14, 107, 78, .10), transparent 60%),
    radial-gradient(560px 300px at -8% 110%, rgba(232, 89, 12, .07), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero .eyebrow { margin-bottom: 14px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-sub { font-size: 1.12rem; max-width: 54ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust-chip { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.trust-chip .tick {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center; font-size: .68rem; font-weight: 800;
}

.hero-picks { display: grid; gap: 12px; }
.pick-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pick-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.pick-row .rank-badge {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; font-size: .95rem; color: #fff; background: var(--brand);
}
.pick-row .rank-badge.gold { background: linear-gradient(135deg, #E8B33A, #C98F0B); }
.pick-row .rank-badge.silver { background: linear-gradient(135deg, #A8AEB8, #7C838F); }
.pick-row .rank-badge.bronze { background: linear-gradient(135deg, #C98B5E, #A96B3F); }
.pick-row .pick-name { font-weight: 700; color: var(--ink); font-size: .98rem; }
.pick-row .pick-meta { font-size: .8rem; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 11px;
  font-weight: 700; font-size: .95rem; cursor: pointer;
  border: 1px solid transparent; transition: all .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(14, 107, 78, .5); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-price { background: var(--accent); color: #fff; }
.btn-price:hover { background: var(--accent-dark); }
.btn-sm { padding: 8px 15px; font-size: .86rem; border-radius: 9px; }

/* ---------- sections ---------- */
.section { padding: 66px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head p { font-size: 1.05rem; margin-bottom: 0; }

.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase; color: var(--brand);
}

/* ---------- category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 16px; }
.cat-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--brand-soft); text-decoration: none; }
.cat-ico {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: var(--brand-softer); display: grid; place-items: center; font-size: 1.4rem;
}
.cat-card .cc-title { font-weight: 700; color: var(--ink); font-size: .98rem; line-height: 1.3; }
.cat-card .cc-meta { font-size: .8rem; color: var(--muted); }
.cat-card .cc-arrow { margin-left: auto; color: var(--line-2); font-weight: 800; }
.cat-card:hover .cc-arrow { color: var(--brand); }

/* ---------- score badges & bars ---------- */
.score-badge {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: var(--radius); color: #fff; font-weight: 800; flex-shrink: 0;
  width: 64px; height: 64px; line-height: 1.05;
}
.score-badge .n { font-size: 1.55rem; letter-spacing: -0.03em; }
.score-badge .d { font-size: .62rem; font-weight: 700; opacity: .85; }
.score-badge.s90 { background: var(--s90); }
.score-badge.s80 { background: var(--s80); }
.score-badge.s70 { background: var(--s70); }
.score-badge.s60 { background: var(--s60); }
.score-badge.lg { width: 92px; height: 92px; border-radius: var(--radius-lg); }
.score-badge.lg .n { font-size: 2.2rem; }
.score-badge.lg .d { font-size: .72rem; }
.score-badge.sm { width: 46px; height: 46px; border-radius: 10px; }
.score-badge.sm .n { font-size: 1.1rem; }

.score-word { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.score-word.s90, .score-word.s80 { color: var(--brand); }
.score-word.s70 { color: var(--s70); }
.score-word.s60 { color: var(--s60); }

.bar-row { display: grid; grid-template-columns: 150px 1fr 44px; align-items: center; gap: 14px; margin-bottom: 10px; font-size: .9rem; }
.bar-row .bar-label { color: var(--ink-2); font-weight: 600; }
.bar-track { height: 9px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.bar-fill.s90, .bar-fill.s80 { background: var(--brand); }
.bar-fill.s70 { background: var(--s70); }
.bar-fill.s60 { background: var(--s60); }
.bar-row .bar-val { text-align: right; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- ranking table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
table.rank { width: 100%; border-collapse: collapse; min-width: 860px; }
table.rank th {
  text-align: left; font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); background: var(--surface-2); padding: 13px 16px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.rank td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: middle; }
table.rank tr:last-child td { border-bottom: 0; }
table.rank tbody tr { transition: background .12s ease; }
table.rank tbody tr:hover { background: var(--brand-softer); }
.rank-num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--surface-3); color: var(--ink-2); font-weight: 800; font-size: .9rem;
}
tr.top1 .rank-num { background: var(--gold); color: #fff; }
tr.top2 .rank-num { background: #9AA3B2; color: #fff; }
tr.top3 .rank-num { background: #C08552; color: #fff; }
.unit { font-size: .76em; color: var(--muted); margin-left: 1px; white-space: nowrap; font-weight: 500; }
/* compact variant used by the homepage top-5 side-by-side tables */
table.rank-compact { min-width: 0; }
table.rank-compact th, table.rank-compact td { padding: 8px 7px; font-size: .84rem; }
table.rank-compact th { white-space: normal; line-height: 1.25; }
table.rank-compact .rank-num { width: 22px; height: 22px; font-size: .8rem; border-radius: 6px; }
table.rank-compact .score-badge.sm { width: 38px; height: 38px; }
table.rank-compact .score-badge.sm .n { font-size: .95rem; }
table.rank-compact .score-badge.sm .d { font-size: .55rem; }
table.rank-compact .p-cell .p-brand { font-size: .74rem; }
.p-cell { display: flex; align-items: center; gap: 12px; }
.p-cell .p-name { font-weight: 700; color: var(--ink); }
.p-cell .p-name:hover { color: var(--brand); }
.p-cell .p-brand { font-size: .8rem; color: var(--muted); }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 99px;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
  white-space: nowrap;
}
.tag.green { background: var(--brand-soft); color: var(--brand-dark); border-color: transparent; }
.tag.orange { background: var(--accent-soft); color: var(--accent-dark); border-color: transparent; }
.tag.gold { background: var(--gold-soft); color: #8A6408; border-color: transparent; }
.num { font-variant-numeric: tabular-nums; }

/* compare checkbox */
.cmp-label { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--muted); cursor: pointer; user-select: none; white-space: nowrap; }
.cmp-label input { accent-color: var(--brand); width: 15px; height: 15px; cursor: pointer; }

/* ---------- verdict callout ---------- */
.verdict-box {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center;
  background: linear-gradient(120deg, var(--brand-softer), var(--surface));
  border: 1px solid var(--brand-soft); border-radius: var(--radius-lg);
  padding: 24px 26px; margin: 28px 0 34px;
}
.verdict-box .vb-title { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.verdict-box .vb-name { font-weight: 800; font-size: 1.12rem; color: var(--ink); }
.verdict-box p { margin: 8px 0 0; font-size: .95rem; }
.verdict-box .vb-link { font-weight: 700; font-size: .9rem; }

/* ---------- pick cards (detailed) ---------- */
.picks-stack { display: grid; gap: 22px; }
.pick-card {
  position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.pick-card.is-first { border-color: var(--brand-soft); box-shadow: var(--shadow-md); }
.pick-ribbon {
  position: absolute; top: -13px; left: 26px;
  background: var(--brand); color: #fff; font-size: .72rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 99px; box-shadow: var(--shadow-sm);
}
.pick-card.is-first .pick-ribbon { background: linear-gradient(135deg, #E8B33A, #C98F0B); }
.pick-head { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; margin-bottom: 16px; }
.pick-head .ph-rank { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pick-head h3 { font-size: 1.35rem; margin-bottom: 4px; }
.pick-head h3 a { color: var(--ink); }
.pick-head h3 a:hover { color: var(--brand); }
.pick-head .ph-brand { font-size: .88rem; color: var(--muted); }
.pick-summary { font-size: .98rem; margin-bottom: 20px; }
.pick-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pick-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pick-foot .cmp-label { margin-left: auto; }

.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 4px 0 20px; }
.pc-box h4 { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.pc-box.pros h4 { color: var(--brand); }
.pc-box.cons h4 { color: var(--s60); }
.pc-box ul { list-style: none; padding: 0; margin: 0; }
.pc-box li { position: relative; padding-left: 27px; font-size: .92rem; color: var(--ink-2); margin-bottom: 9px; }
.pc-box.pros li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 800; }
.pc-box.cons li::before { content: "✕"; position: absolute; left: 0; top: 0; color: var(--s60); font-weight: 800; }

/* ---------- buying guide / callouts ---------- */
.guide-list { display: grid; gap: 14px; }
.guide-item {
  display: grid; grid-template-columns: 34px 1fr; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.guide-item .g-num {
  width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center; font-weight: 800; font-size: .95rem;
}
.guide-item h3 { font-size: 1rem; margin-bottom: 4px; }
.guide-item p { font-size: .92rem; margin: 0; }

.note-box {
  background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm); padding: 16px 20px; font-size: .9rem; margin: 22px 0;
}
.note-box p:last-child { margin-bottom: 0; }
.note-box.warn { border-left-color: var(--gold); background: var(--gold-soft); }

/* ---------- page header (category/product) ---------- */
.page-head { padding: 40px 0 8px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: .82rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb li { display: flex; align-items: center; gap: 7px; margin: 0; }
.breadcrumb li + li::before { content: "/"; color: var(--line-2); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: .86rem; color: var(--muted); margin-bottom: 26px; }
.page-meta .pm-item { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- how we score strip ---------- */
.weights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.weight-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
}
.weight-card .w-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.weight-card .w-name { font-weight: 800; font-size: .98rem; color: var(--ink); }
.weight-card .w-pct { font-weight: 800; color: var(--brand); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.weight-card p { font-size: .88rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 17px 22px; font-weight: 700; font-size: .98rem; color: var(--ink); cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--brand); flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq-a { padding: 16px 22px 20px; }
.faq .faq-a p { font-size: .93rem; margin: 0; }

/* ---------- product page ---------- */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr); gap: 44px; align-items: start; }
.product-main { min-width: 0; }
.product-side { position: sticky; top: 92px; display: grid; gap: 18px; }

.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.side-card .sc-score { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.side-card .sc-score .scs-word { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.side-card .sc-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }

.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; padding: 9px 0; font-size: .88rem; border-bottom: 1px dashed var(--line); vertical-align: top; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { color: var(--muted); font-weight: 500; width: 46%; padding-right: 14px; }
.facts td { color: var(--ink); font-weight: 600; }

.price-list { display: grid; gap: 10px; margin: 4px 0 12px; }
.price-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 18px; border-radius: 11px; background: var(--accent); color: #fff;
  font-weight: 700; font-size: .93rem; transition: background .15s ease;
}
.price-btn:hover { background: var(--accent-dark); text-decoration: none; }
.price-btn .pb-arrow { font-weight: 400; opacity: .9; }

.dim-list { display: grid; gap: 18px; }
.dim-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.dim-item .di-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.dim-item .di-name { font-weight: 800; font-size: .98rem; }
.dim-item .di-weight { font-size: .78rem; color: var(--muted); font-weight: 600; }
.dim-item .di-score { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.dim-item p { font-size: .92rem; margin: 0; }

.ing-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.ing-chip {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px;
  padding: 5px 13px; font-size: .84rem; font-weight: 600; color: var(--ink-2);
}
.ing-chip:first-child { background: var(--brand-soft); border-color: transparent; color: var(--brand-dark); }

.alt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.alt-card { display: flex; align-items: center; gap: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 17px; }
.alt-card:hover { border-color: var(--brand-soft); text-decoration: none; }
.alt-card .ac-name { font-weight: 700; font-size: .92rem; color: var(--ink); line-height: 1.3; }
.alt-card .ac-meta { font-size: .78rem; color: var(--muted); }

/* ---------- TOC ---------- */
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 26px; margin: 34px 0; }
.toc .toc-title { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 1.25em; columns: 2; column-gap: 40px; }
.toc li { margin-bottom: 7px; break-inside: avoid; }
.toc a { font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.toc a:hover { color: var(--brand); }

/* ---------- methodology ---------- */
.method-section { padding: 44px 0; border-bottom: 1px solid var(--line); }
.method-section:last-child { border-bottom: 0; }
.method-section > h2 { scroll-margin-top: 90px; }
.rubric { display: grid; gap: 12px; margin-top: 18px; }
.rubric-row { display: grid; grid-template-columns: 130px 1fr; gap: 18px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.rubric-row .rr-pts { font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rubric-row p { margin: 0; font-size: .92rem; }
.scale-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.scale-table th, .scale-table td { padding: 13px 18px; text-align: left; font-size: .92rem; border-bottom: 1px solid var(--line); }
.scale-table th { background: var(--surface-2); font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.scale-table tr:last-child td { border-bottom: 0; }
.scale-pill { display: inline-block; min-width: 74px; text-align: center; padding: 4px 12px; border-radius: 99px; color: #fff; font-weight: 800; font-size: .82rem; }
.scale-pill.s90 { background: var(--s90); } .scale-pill.s80 { background: var(--s80); }
.scale-pill.s70 { background: var(--s70); } .scale-pill.s60 { background: var(--s60); }

/* ---------- provenance badges & editorial adjustment ---------- */
.prov {
  display: inline-block; padding: 2px 9px; border-radius: 99px;
  font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.prov-auto { background: var(--brand-softer); color: var(--brand-deep); }
.prov-ed { background: var(--surface-3); color: var(--muted); }
.di-adj {
  display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 99px;
  background: var(--gold-soft); color: #8A6410;
  font-size: .68rem; font-weight: 800; font-variant-numeric: tabular-nums;
}

/* ---------- interactive weight lab ---------- */
.weight-lab {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: 26px 28px; margin-top: 22px;
}
.wl-controls { display: grid; gap: 14px; }
.wl-row { display: grid; grid-template-columns: 200px 1fr 56px; align-items: center; gap: 16px; font-size: .92rem; }
.wl-row .wl-name { font-weight: 700; color: var(--ink-2); }
.wl-row output { text-align: right; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.wl-row input[type="range"] { width: 100%; accent-color: var(--brand); height: 26px; }
.wl-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 20px 0 6px; font-size: .9rem; color: var(--muted); }
.wl-meta strong { color: var(--ink); font-variant-numeric: tabular-nums; }
/* 两张排名表上下排：每张 9 列（#/产品/总分 + 六个权重分项），并排只给半宽时
   列会被压到几十像素、产品名换成四五行的竖条，网格子项还会因 min-width:auto
   溢出卡片被裁掉。单列全宽后每列都有足够宽度，名字基本一行放得下。 */
.wl-results { display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 18px; }
.wl-results > div { min-width: 0; }  /* 不置 0 时 grid 子项按内容最小宽度撑开，表格会溢出 */
.wl-results h3 { font-size: 1rem; margin-bottom: 12px; }
.wl-results .rank { min-width: 640px; }  /* 窄屏交给外层 .table-scroll 横向滚动 */
/* 表头必须允许折行：继承来的 white-space:nowrap 会让 min-content 宽度超过卡片，
   表格就会溢出 .table-scroll 被右边缘裁掉（只剩 7 列可见）。 */
.wl-results .rank th { white-space: normal; font-size: .68rem; letter-spacing: .05em; line-height: 1.25; }
.wl-results .rank th, .wl-results .rank td { padding: 10px 8px; font-size: .82rem; }
.wl-results .rank th:first-child, .wl-results .rank td:first-child { padding-left: 14px; }
.wl-results .rank th:last-child, .wl-results .rank td:last-child { padding-right: 14px; }
.wl-results .rank th:nth-child(2), .wl-results .rank td:nth-child(2) { min-width: 168px; padding-right: 12px; }
.wl-results .rank td:nth-child(3) { padding-right: 10px; }
.wl-results .rank a { font-weight: 600; }
.wl-note { font-size: .84rem; color: var(--muted); margin: 18px 0 0; }
/* 方法页正文套在 .legal（max-width:780px，内容区 732px）里做阅读宽度，但这个
   交互卡片要放 9 列排名表，674px 根本不够。宽屏时把它横向撑到接近整容器宽：
   负 margin 让它在垂直流里位置不变，只是左右各自越出阅读栏，页头/其他 section
   的分隔线宽度不受影响。 */
@media (min-width: 1024px) {
  .method-section#slider .weight-lab {
    /* 用 120px 而不是 96px：100vw 含竖向滚动条宽度，留窄了会顶出横向滚动条 */
    width: min(1080px, calc(100vw - 120px));
    margin-left: calc((100% - min(1080px, 100vw - 120px)) / 2);
  }
}
@media (max-width: 960px) {
  .wl-row { grid-template-columns: 150px 1fr 48px; gap: 10px; }
}

/* ---------- legal pages ---------- */
.legal { max-width: 780px; }
.legal h2 { margin-top: 40px; font-size: 1.3rem; }
.legal h2:first-of-type { margin-top: 28px; }
.legal p, .legal li { font-size: .96rem; color: var(--ink-2); }

/* ---------- compare tool ---------- */
.compare-bar {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 140%);
  z-index: 90; display: flex; align-items: center; gap: 14px;
  background: var(--ink); color: #fff; border-radius: 99px;
  padding: 12px 14px 12px 22px; box-shadow: var(--shadow-lg);
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.2);
  max-width: calc(100vw - 32px);
}
.compare-bar.show { transform: translate(-50%, 0); }
.compare-bar .cb-text { font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compare-bar .cb-actions { display: flex; gap: 8px; }
.compare-bar .btn { padding: 8px 16px; font-size: .86rem; }
.compare-bar .btn-primary { background: var(--brand); }
.compare-bar .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }

table.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; min-width: 720px; }
table.compare th, table.compare td { padding: 14px 16px; text-align: left; font-size: .92rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare thead th { background: var(--surface-2); font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
table.compare tbody th { font-weight: 600; color: var(--muted); width: 190px; background: var(--surface); }
table.compare tr:last-child th, table.compare tr:last-child td { border-bottom: 0; }

/* ---------- 404 ---------- */
.nf-wrap { text-align: center; padding: 110px 0 90px; }
.nf-code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; letter-spacing: -0.04em; color: var(--brand); line-height: 1; }
.nf-wrap p { max-width: 52ch; margin: 14px auto 30px; }

/* ---------- back to top ---------- */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-md);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY 0; }
.back-to-top:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- footer ---------- */
.site-footer { background: var(--brand-deep); color: #D9E8E0; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 60px 0 44px; }
.footer-brand .logo-name { color: #fff; }
.footer-brand .logo-sub { color: rgba(217, 232, 224, .6); }
.footer-brand p { color: rgba(217, 232, 224, .75); font-size: .9rem; margin: 16px 0 0; max-width: 34ch; }
.footer-col h4 { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(217, 232, 224, .55); margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #D9E8E0; font-size: .92rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(217, 232, 224, .15); padding: 24px 0 34px; }
.footer-disclaimer { font-size: .82rem; color: rgba(217, 232, 224, .68); max-width: 88ch; margin: 0 0 14px; }
.footer-copy { font-size: .82rem; color: rgba(217, 232, 224, .55); display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- ad slots ---------- */
.ad-slot { margin: 30px auto; text-align: center; overflow: hidden; }
.ad-slot-ph {
  border: 1.5px dashed var(--line-2); border-radius: var(--radius);
  display: grid; place-items: center; align-content: center; gap: 4px;
  color: var(--muted); font-size: .8rem; font-weight: 600;
  background: repeating-linear-gradient(-45deg, var(--surface-2), var(--surface-2) 12px, var(--surface-3) 12px, var(--surface-3) 24px);
}
.ad-slot-ph span { font-size: .72rem; font-weight: 500; opacity: .75; }
.ad-leaderboard .ad-slot { margin-top: 26px; }

/* ---------- sponsored rail ---------- */
.sponsored-rail {
  border: 1.5px solid var(--line-2); border-radius: var(--radius-lg);
  background: var(--surface); padding: 22px 26px; margin: 26px 0 8px;
}
.sponsored-rail .sp-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sponsored-rail .sp-note { font-size: .78rem; color: var(--muted); }
.sp-badge {
  display: inline-block; padding: 3px 11px; border-radius: 99px;
  background: var(--ink); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.sp-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px dashed var(--line); }
.sp-item:first-of-type { border-top: 0; }
.sp-item strong { color: var(--ink); }
.sp-item p { font-size: .9rem; margin: 4px 0 6px; }
.sp-item a { font-size: .88rem; font-weight: 700; }

/* ---------- newsletter ---------- */
.newsletter {
  background: linear-gradient(120deg, var(--brand-softer), var(--surface));
  border: 1px solid var(--brand-soft); border-radius: var(--radius-lg);
  padding: 44px 28px; text-align: center;
}
.newsletter h2 { margin-bottom: 10px; }
.newsletter p { max-width: 52ch; margin: 0 auto; }
.newsletter form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.newsletter input[type="email"] {
  padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 11px;
  font-size: .95rem; min-width: 280px; font-family: var(--font); background: var(--surface);
}
.newsletter input[type="email"]:focus { outline: 2px solid var(--brand); outline-offset: 1px; }

/* ---------- sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(33, 29, 22, .1);
  padding: 10px 16px; display: none;
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .sc-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; max-width: 760px; margin: 0 auto; }
.sticky-cta .sc-info { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sticky-cta .sc-info strong { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta .sc-info span { font-size: .76rem; color: var(--muted); }
@media (max-width: 720px) {
  .sticky-cta { display: block; }
  .back-to-top { bottom: 78px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .product-layout { grid-template-columns: 1fr; }
  .product-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 14px 24px 20px; box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0;
    margin: 4px 0 8px 10px; padding: 4px 0 4px 12px; display: none; min-width: 0;
  }
  .nav-item.open > .nav-dropdown { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 52px 0 48px; }
  .toc ol { columns: 1; }
}
@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .home-rank-grid { grid-template-columns: 1fr !important; gap: 34px !important; }
  .pc-grid { grid-template-columns: 1fr; gap: 14px; }
  .verdict-box { grid-template-columns: 1fr; }
  .pick-head { grid-template-columns: 1fr; }
  .pick-card { padding: 22px; }
  .section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .bar-row { grid-template-columns: 110px 1fr 40px; gap: 10px; font-size: .84rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- 产品图 + 购买框 ---------- */
/* 列规格与下方 .product-layout 完全一致（同 fr 比、同 44px 间距），
   购买框因此与侧栏（Quick facts / 评分卡）严格同宽对齐，整页是一条
   连贯的双栏网格；图片列随之变宽，包装照成为真正的 Hero。 */
.product-top{
  display:grid;
  grid-template-columns:minmax(0,1.85fr) minmax(300px,1fr);
  gap:44px;
  align-items:start;
  margin:18px 0 22px;
}
.product-hero{
  display:block;
  width:100%;
  height:auto;
  border-radius:16px;
  box-shadow:0 10px 30px rgba(14,107,78,.16);
  background:var(--surface-2);
}
.buy-box{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md);
  overflow:hidden;
}
.buy-box .bb-head{
  background:var(--brand-softer);
  padding:18px 22px 16px;
  border-bottom:1px solid var(--line);
}
.buy-box .bb-title{font-size:.74rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase;color:var(--muted);margin:0 0 10px}
.buy-box .bb-price{margin:0 0 2px;font-size:1.9rem;font-weight:800;color:var(--brand);line-height:1.1}
.buy-box .bb-price .bb-per{font-size:.85rem;font-weight:600;color:var(--muted);margin-left:2px}
.buy-box .bb-price .bb-tier{display:inline-block;margin-left:8px;font-size:.72rem;font-weight:700;color:var(--ink-2);background:var(--surface-3);border-radius:99px;padding:3px 10px;vertical-align:middle}
.buy-box .bb-kcal{margin:0;font-size:.85rem;color:var(--muted)}
.buy-box .price-list{display:grid;gap:10px;margin:0;padding:16px 22px 6px}
.buy-box .sc-note{font-size:.74rem;line-height:1.55;color:var(--muted);margin:0}
.buy-box .price-list .sc-note{padding-bottom:12px}
.buy-box > .sc-note{padding:0 22px 18px}
@media (max-width:1020px){
  .product-top{grid-template-columns:1fr;gap:22px}
  .product-hero{max-width:560px}
}
@media (max-width:640px){
  .product-hero{border-radius:12px}
}

/* ---------- cookie 同意横幅 ---------- */
.cookie-banner{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:1200;
  background:var(--surface);
  border-top:1px solid var(--line-2);
  box-shadow:0 -8px 28px -12px rgba(33,29,22,.28);
  padding:14px 20px;
}
.cookie-banner[hidden]{display:none}
.cookie-banner-inner{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}
.cookie-banner-text{
  flex:1 1 420px;
  margin:0;
  font-size:.9rem;
  line-height:1.55;
  color:var(--ink-2);
}
.cookie-banner-text a{color:var(--brand);text-decoration:underline}
.cookie-banner-actions{display:flex;gap:10px;flex:0 0 auto}
.btn-cookie{
  font:inherit;
  font-size:.88rem;
  font-weight:600;
  padding:9px 18px;
  border-radius:10px;
  border:1px solid transparent;
  cursor:pointer;
  transition:background .15s ease,border-color .15s ease;
}
.btn-cookie-accept{background:var(--brand);color:#fff}
.btn-cookie-accept:hover{background:var(--brand-dark)}
.btn-cookie-decline{background:var(--surface);color:var(--ink-2);border-color:var(--line-2)}
.btn-cookie-decline:hover{border-color:var(--brand);color:var(--brand)}
@media (max-width:640px){
  .cookie-banner{padding:12px 16px}
  .cookie-banner-inner{gap:12px}
  .cookie-banner-actions{width:100%}
  .btn-cookie{flex:1}
}
