:root {
  --ink: #1b1b1f;
  --ink-2: #4a4a52;
  --muted: #74747e;
  --paper: #fbfaf7;
  --paper-2: #f1efe9;
  --line: #dedbd2;
  --hot: #9b2226;
  --hot-bg: #fbeceb;
  --accent: #1f3a5f;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
strong { color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.hot { color: var(--hot); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow, .narrow-p { max-width: 760px; margin-left: auto; margin-right: auto; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(251,250,247,.94); backdrop-filter: saturate(150%) blur(8px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding-top: 6px; padding-bottom: 6px; }
.brand { font-family: var(--serif); font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1rem; line-height: 1.2; max-width: 360px; }
.brand span { color: var(--hot); font-weight: 500; margin-left: 6px; white-space: nowrap; }
.nav { display: flex; gap: 2px; flex-wrap: nowrap; flex-shrink: 0; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .86rem; padding: 6px 9px; border-radius: 6px; }
.nav a:hover { background: var(--paper-2); }
.nav a.active { color: var(--hot); font-weight: 600; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; font-size: 1.2rem; padding: 4px 10px; cursor: pointer; color: var(--ink); }
@media (max-width: 1100px) {
  .brand { font-size: .92rem; }
  .nav-toggle { display: block; flex-shrink: 0; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 14px 14px; }
  .nav.open { display: flex; }
  .nav a { font-size: 1rem; padding: 10px 8px; }
}

/* hero */
.hero { padding: 64px 0 56px; background: linear-gradient(180deg, #f6f3ec 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); }
.kicker { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--hot); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 900px; margin-bottom: 22px; }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--ink-2); max-width: 820px; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 34px 0 30px; max-width: 900px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.stat-num { display: block; font-family: var(--serif); font-size: 2.3rem; color: var(--hot); font-variant-numeric: tabular-nums; line-height: 1; }
.stat-label { display: block; margin-top: 8px; color: var(--ink-2); font-size: .92rem; }
.btn { display: inline-block; background: var(--hot); color: #fff; text-decoration: none; padding: 12px 22px; border-radius: 8px; font-weight: 600; }
.btn:hover { background: #7f1b1f; }

/* sections */
.section { padding: 64px 0; }
.section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
blockquote { margin: 28px 0 0; padding: 18px 22px; border-left: 4px solid var(--hot); background: var(--hot-bg); font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }

/* store */
.store-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .store-grid { grid-template-columns: 1fr; } }
.store-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.store-addr { font-size: 1.05rem; }
.links { list-style: none; padding: 0; margin: 14px 0 0; }
.links li { padding: 6px 0; border-top: 1px solid var(--line); }
.links li:first-child { border-top: 0; }
.embed { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.embed iframe { width: 100%; height: 280px; border: 0; display: block; flex: 1; }
.embed figcaption { font-size: .78rem; color: var(--muted); padding: 8px 12px; }

/* tables */
.table-scroll { overflow-x: auto; margin: 18px 0 22px; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; background: #fff; border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--paper-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.num { text-align: right; white-space: nowrap; }
tfoot td { background: #fff; }
tr.total td, tr.total th { font-weight: 700; font-size: 1.05rem; border-top: 2px solid var(--ink); }
.bill th:first-child, .bill td:first-child { min-width: 220px; }
.compare thead th { white-space: normal; min-width: 130px; }
.compare tbody th { white-space: nowrap; }
.compare thead th span { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: .78rem; }
.compare td { text-align: right; white-space: nowrap; }
.compare tbody th { font-weight: 500; color: var(--ink-2); }
.compare .col-estero { background: var(--hot-bg); }
.compare thead .col-estero { color: var(--hot); }
.compare tr.diff th, .compare tr.diff td { background: var(--paper-2); font-weight: 600; }
.compare tr.diff .col-estero { background: var(--hot-bg); }
.fn { display: block; font-size: .75rem; color: var(--muted); font-weight: 400; }
sup a { text-decoration: none; font-size: .7em; }

/* callouts */
.callouts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 26px 0; }
@media (max-width: 760px) { .callouts { grid-template-columns: 1fr; } }
.callout { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.callout-title { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.callout-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.big { display: block; font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.sub { display: block; font-size: .85rem; color: var(--muted); margin-top: 6px; }
.vs { font-family: var(--serif); font-style: italic; color: var(--muted); }
.callout-note { margin: 14px 0 0; color: var(--ink-2); font-size: .95rem; }
.footnotes { font-size: .88rem; color: var(--ink-2); padding-left: 1.2em; }
.footnotes li { margin-bottom: 6px; }

/* same chain */
.chain-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px 0; }
@media (max-width: 600px) { .chain-compare { grid-template-columns: 1fr; } }
.chain-box { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; text-align: center; }
.chain-box.hot-box { border-color: var(--hot); background: var(--hot-bg); }
.chain-label { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.chain-num { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.hot-box .chain-num { color: var(--hot); }
.chain-sub { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* math */
.math-block { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin: 22px 0 14px; overflow: hidden; }
.math-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.math-row span:last-child { font-family: var(--serif); font-size: 1.2rem; white-space: nowrap; }
.math-row.result { border-bottom: 0; background: var(--hot-bg); font-weight: 700; }
.math-row.result span:last-child { color: var(--hot); font-size: 1.9rem; }

/* findings / sources */
.findings { padding-left: 1.2em; }
.findings li { margin-bottom: 12px; }
.sources { padding-left: 1.2em; }
.sources li { margin-bottom: 12px; }

/* footer */
.footer { padding: 34px 0 44px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .92rem; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media print {
  .topbar, .btn, .embed { display: none; }
  .section { padding: 24px 0; }
  body { font-size: 12pt; }
}

/* parts section */
.parts tbody th .fn { font-weight: 400; }
.oem-box { background: #fff; border: 1px solid var(--hot); border-left: 6px solid var(--hot); border-radius: 10px; padding: 24px 26px; margin: 30px auto 22px; max-width: 860px; }
.oem-box h3 { font-size: 1.45rem; color: var(--hot); margin-bottom: 12px; }
.oem-box ul { padding-left: 1.2em; margin: 0 0 14px; }
.oem-box li { margin-bottom: 12px; }
.oem-box p:last-child { margin-bottom: 0; }

/* pattern section */
.sub-h { margin-top: 36px; font-size: 1.35rem; }
.rating-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 22px 0 10px; }
.rating { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.rating-num { display: block; font-family: var(--serif); font-size: 2.3rem; color: var(--hot); line-height: 1; font-variant-numeric: tabular-nums; }
.rating-label { display: block; margin-top: 8px; color: var(--ink-2); font-size: .92rem; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 18px 0 8px; }
.quote { margin: 0; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--hot); border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.quote blockquote { margin: 0; padding: 0; border: 0; background: none; font-family: var(--serif); font-size: 1.12rem; line-height: 1.45; color: var(--ink); }
.quote figcaption { font-size: .85rem; color: var(--muted); line-height: 1.45; }
.quote figcaption a { white-space: nowrap; }
