/* Nautworthy — design system
   Palette drawn from a sunlit deck: deep navy ink, sea blue, warm paper, teak and brass accents. */

@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-500-normal.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-400-normal.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --ink: #0e2338;
  --ink-2: #2b3d50;
  --muted: #5d6b79;
  --sea: #1d5b86;
  --sea-deep: #123f60;
  --sky: #e9f1f6;
  --paper: #fbf9f5;
  --paper-2: #f4efe6;
  --white: #ffffff;
  --line: #e3ddd2;
  --line-2: #d3cabb;
  --brass: #a8834f;
  --teak: #8a5a33;
  --ok: #2f6b4f;
  --warn: #9a6412;
  --serif: "Cormorant", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --narrow: 760px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
  --shadow: 0 1px 2px rgba(14, 35, 56, .06), 0 8px 24px rgba(14, 35, 56, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; font-feature-settings: "tnum" 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sea-deep); }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.005em; line-height: 1.08; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .45em; }
code { font-size: .9em; background: var(--paper-2); padding: .1em .35em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: var(--narrow); }
.eyebrow { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); margin: 0 0 14px; }
.eyebrow--light { color: #f2e6cc; }
.dek { font-size: 1.15rem; color: var(--ink-2); max-width: 44em; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Prototype banner ---------- */
.proto-bar { background: #1b1b1b; color: #f1e6cf; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: 6px 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 249, 245, .96); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand__mark { width: 26px; height: 30px; flex: none; }
.brand__word { font-family: var(--serif); font-weight: 600; font-size: 1.32rem; letter-spacing: .26em; text-transform: uppercase; line-height: 1; padding-top: 2px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 500; letter-spacing: .02em; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brass); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }

.site-header--overlay { position: absolute; left: 0; right: 0; background: transparent; border-bottom-color: rgba(255,255,255,.18); backdrop-filter: none; }
.site-header--overlay .brand, .site-header--overlay .nav a, .site-header--overlay .nav-toggle { color: #fff; }
.proto-bar ~ .site-header--overlay { top: 27px; }
.site-header--overlay.is-scrolled { top: 0; position: fixed; background: rgba(251, 249, 245, .96); border-bottom-color: var(--line); backdrop-filter: saturate(1.2) blur(8px); }
.site-header--overlay.is-scrolled .brand, .site-header--overlay.is-scrolled .nav a, .site-header--overlay.is-scrolled .nav-toggle { color: var(--ink); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease; box-shadow: var(--shadow); }
  .nav a, .site-header--overlay .nav a { color: var(--ink); font-size: 1.05rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .brand__word { font-size: 1.12rem; letter-spacing: .2em; }
}

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .8rem; color: var(--muted); padding: 22px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--sea-deep); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(8,22,36,.62) 0%, rgba(8,22,36,.28) 42%, rgba(8,22,36,0) 70%),
  linear-gradient(180deg, rgba(8,22,36,.42) 0%, rgba(8,22,36,0) 24%, rgba(8,22,36,0) 50%, rgba(8,22,36,.6) 100%); }
.hero .eyebrow { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero__body { position: relative; z-index: 1; padding-bottom: clamp(48px, 9vh, 96px); padding-top: 140px; }
.hero h1 { color: #fff; font-size: clamp(2.9rem, 7.4vw, 6.2rem); font-weight: 500; line-height: .98; margin-bottom: 22px; }
.hero__dek { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 34em; color: rgba(255,255,255,.9); margin-bottom: 30px; }
.hero__credit { position: absolute; right: var(--gutter); bottom: 14px; z-index: 1; font-size: .66rem; color: rgba(255,255,255,.6); letter-spacing: .04em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: var(--radius); font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--paper-2); color: var(--ink); }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--sea-deep); color: #fff; }
.btn--secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--secondary:hover { background: var(--ink); color: #fff; }
.btn__arrow { width: 14px; height: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(44px, 6vw, 72px) 0; }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #eef2f5; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.text-link { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--brass); padding-bottom: 3px; white-space: nowrap; }
.text-link:hover { color: var(--sea); }
.section--ink .text-link { color: #fff; }

/* Standard pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.pillars--spaced { margin-top: 44px; }
.pillar { border-top: 1px solid var(--ink); padding-top: 22px; }
.pillar__n { font-family: var(--serif); font-size: 1.1rem; color: var(--brass); font-style: italic; margin-bottom: 10px; display: block; }
.pillar h3 { font-size: 1.6rem; margin-bottom: 10px; }
.pillar p { color: var(--ink-2); font-size: .98rem; margin: 0; }
@media (max-width: 860px) { .pillars { grid-template-columns: minmax(0, 1fr); } }

/* Department tiles */
.tiles { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 20px; }
.tile { position: relative; display: block; color: #fff; text-decoration: none; overflow: hidden; background: var(--sea-deep); min-height: 460px; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.6,.2,1); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,22,36,.05) 20%, rgba(8,22,36,.55) 55%, rgba(8,22,36,.88) 100%); }
.tile:hover img { transform: scale(1.03); }
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; z-index: 1; }
.tile h3 { color: #fff; font-size: 2rem; margin-bottom: 8px; }
.tile p { font-size: .95rem; color: rgba(255,255,255,.88); margin: 0; max-width: 28em; }
.tile:hover { color: #fff; }
@media (max-width: 960px) { .tiles { grid-template-columns: minmax(0, 1fr); } .tile { min-height: 360px; } }

/* Decision band */
.decision { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .decision { grid-template-columns: minmax(0, 1fr); } }

/* Ecosystem table on home/hub */
.eco { width: 100%; border-collapse: collapse; font-size: .95rem; }
.eco th, .eco td { text-align: left; padding: 16px 14px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.eco th { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.eco td:first-child { font-weight: 600; width: 34%; }

/* Product cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); color: var(--ink); }
.card__media { position: relative; background: #fff; aspect-ratio: 4 / 3; border-bottom: 1px solid var(--line); overflow: hidden; }
.card__media img { position: absolute; inset: 24px; width: calc(100% - 48px); height: calc(100% - 48px); object-fit: contain; }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__kicker { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); font-weight: 600; margin-bottom: 8px; }
.card h3 { font-size: 1.45rem; margin-bottom: 8px; }
.card p { font-size: .92rem; color: var(--ink-2); margin-bottom: 14px; }
.card__meta { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.card__meta strong { color: var(--ink); font-weight: 600; font-size: .92rem; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* Tool band */
.feature-split { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 520px; background: var(--ink); color: #eef2f5; }
.feature-split__img { position: relative; min-height: 320px; }
.feature-split__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-split__body { padding: clamp(40px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; }
.feature-split__body h2 { color: #fff; }
.feature-split__body p { color: rgba(238,242,245,.85); max-width: 30em; }
@media (max-width: 900px) { .feature-split { grid-template-columns: minmax(0, 1fr); } }

/* Interlude */
.interlude { position: relative; min-height: 64vh; display: flex; align-items: center; overflow: hidden; }
.interlude img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.interlude::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(8,22,36,.5) 0%, rgba(8,22,36,.28) 70%); }
.interlude blockquote { position: relative; z-index: 1; margin: 0 auto; max-width: 900px; padding: 0 var(--gutter); font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.2; color: #fff; text-align: center; text-shadow: 0 1px 24px rgba(0,0,0,.25); }

/* Feature links (hub footers) */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { display: block; padding: 28px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.feature:hover { border-color: var(--ink); color: var(--ink); }
.feature h3 { font-size: 1.55rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 760px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Page heads ---------- */
.page-head { padding: 36px 0 44px; }
.page-head h1 { margin-bottom: 14px; max-width: 16em; }
.page-banner { position: relative; height: clamp(260px, 38vw, 440px); overflow: hidden; background: var(--sea-deep); }
.page-banner img { width: 100%; height: 100%; object-fit: cover; }
.page-banner__credit { position: absolute; right: 12px; bottom: 8px; font-size: .64rem; color: rgba(255,255,255,.7); }

/* The finding: primary answer */
.finding { border-left: 3px solid var(--brass); background: var(--white); padding: 22px 26px; margin: 0 0 8px; box-shadow: var(--shadow); }
.finding__label { font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-bottom: 8px; display: block; }
.finding p { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.35; color: var(--ink); margin: 0; }
.finding ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.finding li { font-size: .92rem; padding-left: 18px; position: relative; margin: 0; }
.finding li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--brass); }

/* Decision factors */
.factors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.factor { border-top: 1px solid var(--ink); padding-top: 16px; }
.factor h3 { font-size: 1.3rem; margin-bottom: 6px; }
.factor p { font-size: .92rem; color: var(--ink-2); margin: 0; }
@media (max-width: 1000px) { .factors { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .factors { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Product page ---------- */
.p-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding: 28px 0 56px; align-items: start; }
@media (max-width: 960px) { .p-hero { grid-template-columns: minmax(0, 1fr); } }
.gallery__main { position: relative; background: #fff; border: 1px solid var(--line); aspect-ratio: 1 / 1; overflow: hidden; }
.gallery__main img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 10px; }
.gallery__thumb { width: 76px; height: 76px; background: #fff; border: 1px solid var(--line); padding: 6px; cursor: pointer; }
.gallery__thumb[aria-pressed="true"] { border-color: var(--ink); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__credit { font-size: .72rem; color: var(--muted); margin-top: 8px; }
.gallery__none { aspect-ratio: 1 / 1; border: 1px dashed var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .9rem; }
.p-hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); margin-bottom: 6px; }
.p-sub { color: var(--muted); font-size: .98rem; margin-bottom: 22px; }

.keyspecs { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); margin: 22px 0 6px; }
.keyspec { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); }
.keyspec:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.keyspec:nth-child(even) { padding-left: 16px; }
.keyspec dt { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.keyspec dd { margin: 0; font-weight: 600; font-size: 1rem; font-variant-numeric: tabular-nums; }
.keyspec-note { font-size: .76rem; color: var(--muted); margin: 8px 0 0; }

.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 22px 0; }
.fit h2 { font-family: var(--sans); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.fit ul { list-style: none; padding: 0; margin: 0; }
.fit li { font-size: .9rem; padding-left: 22px; position: relative; line-height: 1.45; margin-bottom: 8px; }
.fit li::before { position: absolute; left: 0; top: 0; font-weight: 600; }
.fit--yes li::before { content: "✓"; color: var(--ok); }
.fit--no li::before { content: "—"; color: var(--warn); }
@media (max-width: 520px) { .fit { grid-template-columns: minmax(0, 1fr); } }

/* Buy box */
.buy { border: 1px solid var(--line-2); background: var(--white); padding: 20px 22px; }
.buy__price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.buy__amount { font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.buy__note { font-size: .76rem; color: var(--muted); }
.buy .btn { width: 100%; }
.buy .btn + .btn { margin-top: 10px; }
.buy__disclose { font-size: .74rem; color: var(--muted); margin: 12px 0 0; line-height: 1.45; }
.buy__none { font-size: .88rem; color: var(--muted); margin: 0; }

/* In-page nav */
.toc { position: sticky; top: 72px; z-index: 20; background: rgba(251,249,245,.97); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.toc ul::-webkit-scrollbar { display: none; }
.toc li { margin: 0; flex: none; }
.toc a { display: block; padding: 14px 0; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.toc a:hover { color: var(--ink); border-bottom-color: var(--brass); }

.body-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 80px); padding: 56px 0 24px; }
.body-grid--flush { padding-top: 8px; }
.cards--spaced { margin-top: 40px; }
.page-body { padding: 8px 0 clamp(56px, 8vw, 96px); }
.body-grid__aside { position: sticky; top: 140px; align-self: start; }
@media (max-width: 1000px) { .body-grid { grid-template-columns: minmax(0, 1fr); } .body-grid__aside { position: static; } }

.prose { max-width: 720px; }
.prose > section { margin-bottom: 56px; scroll-margin-top: 140px; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); padding-top: 4px; }
.prose h3 { margin-top: 1.4em; }
.prose table, .table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: .9rem; font-variant-numeric: tabular-nums; }
.prose th, .prose td, .table th, .table td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th, .table thead th { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-bottom-color: var(--ink); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 22px; }
.table-scroll table { margin: 0; min-width: 520px; }

.claim { margin: 8px 0 22px; padding: 16px 20px; background: var(--sky); border-left: 3px solid var(--sea); font-size: .92rem; }
.claim__label, .note__label { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sea); margin-bottom: 6px; }
.note { margin: 8px 0 22px; padding: 16px 20px; background: var(--paper-2); border-left: 3px solid var(--brass); font-size: .92rem; }
.note__label { color: var(--teak); }
.owner-note { margin: 8px 0 22px; padding: 12px 16px; border: 1px dashed #c08a2b; background: #fff8e8; color: #6b4a10; font-size: .85rem; }

/* Compatibility checklist */
.compat { list-style: none; margin: 0 0 12px; padding: 0; border-top: 1px solid var(--line); }
.compat li { display: grid; grid-template-columns: 26px 150px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: .92rem; }
.compat__icon { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; color: #fff; margin-top: 2px; }
.compat__icon--required { background: var(--ink); }
.compat__icon--check { background: var(--brass); }
.compat__icon--info { background: var(--line-2); color: var(--ink); }
.compat__need { font-weight: 600; }
.compat-legend { display: flex; gap: 18px; font-size: .76rem; color: var(--muted); flex-wrap: wrap; margin-bottom: 10px; }
.compat-legend span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 600px) { .compat li { grid-template-columns: 26px 1fr; } .compat li > span:last-child { grid-column: 2; } }

/* Spec tables with evidence tiers */
.spec-group { margin-bottom: 30px; }
.spec-group h3 { font-family: var(--sans); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--ink); margin: 0 0 4px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.spec { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.spec th, .spec td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.spec th { font-weight: 500; color: var(--ink-2); width: 38%; }
.spec td:last-child { width: 1%; white-space: nowrap; padding-right: 0; }
.spec-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 18px; }
@media (max-width: 600px) {
  .spec tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .spec th, .spec td { border: 0; padding: 0; width: auto; }
  .spec th { grid-column: 1 / -1; font-size: .78rem; color: var(--muted); margin-bottom: 2px; }
  .spec td:last-child { text-align: right; padding-left: 10px; }
}
.tier { display: inline-block; font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 2px; white-space: nowrap; line-height: 1.3; }
.tier--doc { background: #e3eef6; color: #184b70; }
.tier--mfr { background: #e8f0ec; color: #2f5c47; }
.tier--retail { background: #f3ebdc; color: #7a5520; }
.tier--calc { background: #efe9f5; color: #5a3f78; }
.tier--unknown { background: #f1f1f1; color: #6a6a6a; }
.src-ref { font-size: .7rem; color: var(--muted); margin-left: 6px; text-decoration: none; }

.limits { list-style: none; padding: 0; margin: 0; }
.limits li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line); position: relative; margin: 0; font-size: .95rem; }
.limits li::before { content: "!"; position: absolute; left: 0; top: 13px; width: 16px; height: 16px; border: 1px solid var(--warn); color: var(--warn); border-radius: 50%; font-size: .66rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.alts { display: grid; gap: 14px; }
.alt { display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: center; padding: 14px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.alt:hover { border-color: var(--ink); color: var(--ink); }
.alt img { width: 88px; height: 88px; object-fit: contain; background: #fff; }
.alt strong { display: block; font-family: var(--serif); font-size: 1.3rem; line-height: 1.15; margin-bottom: 4px; }
.alt span { font-size: .88rem; color: var(--ink-2); }

.sources { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.sources li { font-size: .86rem; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); position: relative; margin: 0; }
.sources li::before { content: attr(data-id); position: absolute; left: 0; top: 10px; font-size: .7rem; font-weight: 600; color: var(--brass); text-transform: uppercase; }
.sources a { word-break: break-word; }
.sources .retrieved { color: var(--muted); font-size: .78rem; }

.aside-card { border: 1px solid var(--line); background: var(--white); padding: 20px; margin-bottom: 18px; }
.aside-card h2 { font-family: var(--sans); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.aside-card ul { list-style: none; margin: 0; padding: 0; }
.aside-card li { margin: 0; border-top: 1px solid var(--line); }
.aside-card li a { display: block; padding: 10px 0; font-size: .9rem; text-decoration: none; color: var(--ink); }
.aside-card li a:hover { color: var(--sea); }

/* Mobile sticky buy bar */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(251,249,245,.98); border-top: 1px solid var(--line-2); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: none; align-items: center; justify-content: space-between; gap: 14px; transform: translateY(110%); transition: transform .25s ease; }
.buybar.is-visible { transform: none; }
.buybar__name { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; line-height: 1.15; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buybar .btn { min-height: 42px; padding: 0 16px; flex: none; }
@media (max-width: 960px) { .buybar { display: flex; } body.has-buybar { padding-bottom: 72px; } }

/* ---------- Comparison ---------- */
.vs-head { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 32px 0; }
.vs-card { background: var(--white); border: 1px solid var(--line); padding: 22px; display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; }
.vs-card img { width: 120px; height: 120px; object-fit: contain; }
.vs-card h2 { font-size: 1.55rem; margin-bottom: 4px; }
.vs-card p { font-size: .88rem; color: var(--ink-2); margin: 0 0 12px; }
.vs-card .btn { min-height: 42px; padding: 0 16px; font-size: .74rem; }
@media (max-width: 760px) { .vs-head { grid-template-columns: minmax(0, 1fr); } .vs-card { grid-template-columns: 88px 1fr; } .vs-card img { width: 88px; height: 88px; } }
.choose { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 24px 0 0; }
.choose div { border-top: 1px solid var(--ink); padding-top: 14px; font-size: .95rem; }
@media (max-width: 760px) { .choose { grid-template-columns: minmax(0, 1fr); } }
.vs-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.vs-table th, .vs-table td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.vs-table thead th { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; border-bottom: 1px solid var(--ink); }
.vs-table tbody th { font-weight: 600; width: 22%; font-size: .85rem; }
.vs-table tr.is-diff td { background: linear-gradient(90deg, rgba(168,131,79,.08), rgba(168,131,79,0)); }
.vs-table .rownote { display: block; font-size: .76rem; color: var(--muted); font-weight: 400; margin-top: 4px; }
.diff-key { font-size: .78rem; color: var(--muted); margin-bottom: 10px; }
.diff-key i { display: inline-block; width: 24px; height: 10px; background: rgba(168,131,79,.2); margin-right: 6px; vertical-align: middle; }
@media (max-width: 700px) {
  .vs-table thead { display: none; }
  .vs-table tr { display: block; border-bottom: 1px solid var(--line); padding: 12px 0; }
  .vs-table tbody th, .vs-table td { display: block; border: 0; padding: 3px 0; width: auto; }
  .vs-table td::before { content: attr(data-label) " — "; font-weight: 600; color: var(--muted); font-size: .78rem; }
  .vs-table tr.is-diff td { background: none; }
}

/* ---------- Best-of ---------- */
.picks { display: grid; gap: 28px; margin-top: 36px; }
.pick { display: grid; grid-template-columns: 280px 1fr; gap: clamp(24px, 4vw, 48px); background: var(--white); border: 1px solid var(--line); padding: clamp(20px, 3vw, 36px); }
.pick__media { position: relative; background: #fff; aspect-ratio: 1 / 1; overflow: hidden; }
.pick__media img { position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: contain; }
.pick__award { font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin-bottom: 8px; }
.pick h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 10px; }
.pick h2 a { color: var(--ink); text-decoration: none; }
.pick h2 a:hover { color: var(--sea); }
.pick__watch { font-size: .88rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.pick__watch strong { color: var(--warn); font-weight: 600; }
.pick .btn-row { margin-top: 18px; }
@media (max-width: 800px) { .pick { grid-template-columns: minmax(0, 1fr); } .pick__media { max-width: 280px; } }
.method { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.method li { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }

/* ---------- Guide ---------- */
.answer { background: var(--ink); color: #eef2f5; padding: clamp(24px, 4vw, 40px); margin: 0 0 48px; }
.answer .finding__label { color: #e7d6b8; }
.answer p { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.35; color: #fff; margin: 0 0 18px; }
.answer ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; }
.answer li { font-size: .9rem; padding-left: 16px; position: relative; margin: 0; font-variant-numeric: tabular-nums; }
.answer li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 1px; background: #e7d6b8; }
@media (max-width: 700px) { .answer ul { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: 12px 0 64px; align-items: start; }
@media (max-width: 980px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc fieldset { border: 1px solid var(--line); background: var(--white); padding: 20px 22px 22px; margin: 0 0 20px; min-width: 0; }
.calc legend { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--muted); padding: 0 6px; }
.calc label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.calc input, .calc select { width: 100%; font: inherit; font-size: .95rem; padding: 10px 12px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); border-radius: var(--radius); min-height: 44px; }
.calc input:focus, .calc select:focus { outline: 2px solid var(--sea); outline-offset: 0; border-color: var(--sea); }
.calc input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--ink); margin: 0 auto; display: block; }
.loads td:first-child { min-width: 190px; }
.calc input[aria-invalid="true"] { border-color: #b3261e; background: #fff5f4; }
.calc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 560px) { .calc-row { grid-template-columns: minmax(0, 1fr); } }
.loads { width: 100%; border-collapse: collapse; }
.loads th { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 0 8px 8px 0; font-weight: 600; }
.loads td { padding: 4px 8px 4px 0; vertical-align: middle; }
.loads input, .loads select { min-height: 40px; padding: 8px 10px; font-size: .9rem; }
.loads .num { width: 84px; }
.loads .kind { width: 84px; }
.loads .rm { background: none; border: 0; color: var(--muted); font-size: 1.3rem; cursor: pointer; width: 36px; height: 40px; }
.loads .rm:hover { color: #b3261e; }
@media (max-width: 640px) {
  .loads thead { display: none; }
  .table-scroll .loads { min-width: 0; }
  .loads tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 32px 32px; gap: 6px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .loads td { padding: 0; min-width: 0; }
  .loads td:first-child { grid-column: 1 / -1; min-width: 0; }
  .loads .num, .loads .kind { width: 100%; }
}
.add-load { margin-top: 12px; background: none; border: 1px dashed var(--line-2); color: var(--ink); font: inherit; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 10px 14px; cursor: pointer; width: 100%; }
.add-load:hover { border-color: var(--ink); }
.results { position: sticky; top: 96px; background: var(--ink); color: #eef2f5; padding: 26px; }
.results h2 { color: #fff; font-size: 1.6rem; margin-bottom: 16px; }
.result { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.result dt { font-size: .82rem; color: rgba(238,242,245,.8); }
.result dd { margin: 0; font-weight: 600; font-size: 1.15rem; color: #fff; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.formula { font-size: .74rem; color: rgba(238,242,245,.65); display: block; font-weight: 400; margin-top: 2px; }
.verdicts { margin-top: 18px; display: grid; gap: 10px; }
.verdict { font-size: .86rem; padding: 12px 14px; background: rgba(255,255,255,.06); border-left: 3px solid #e7d6b8; }
.verdict--warn { border-left-color: #e0a84f; }
.verdict a { color: #fff; }
.calc-errors { color: #ffb4ab; font-size: .85rem; margin-top: 12px; }
@media (max-width: 980px) { .results { position: static; } }

/* ---------- Index list ---------- */
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index-list li { margin: 0; border-bottom: 1px solid var(--line); }
.index-list a { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 24px 0; text-decoration: none; color: var(--ink); }
.index-list a:hover h2 { color: var(--sea); }
.index-list h2 { font-size: 1.6rem; margin-bottom: 4px; }
.index-list p { margin: 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 700px) { .index-list a { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* ---------- Category tables ---------- */
.filterbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; margin-bottom: 16px; }
.filterbar label { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.filterbar select, .filterbar input { font: inherit; font-size: .92rem; letter-spacing: 0; text-transform: none; color: var(--ink); padding: 9px 12px; min-height: 42px; border: 1px solid var(--line-2); background: var(--white); border-radius: var(--radius); min-width: 200px; }
.filterbar__count { font-size: .82rem; color: var(--muted); margin-left: auto; padding-bottom: 10px; }
.table--catalog { background: var(--white); }
.table--catalog th, .table--catalog td { padding: 10px 12px; }
.table--catalog td { white-space: nowrap; }
.table--catalog td:first-child { white-space: normal; min-width: 260px; }
.sort-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.sort-btn::after { content: " ↕"; opacity: .45; }
th[aria-sort="ascending"] .sort-btn::after { content: " ↑"; opacity: 1; }
th[aria-sort="descending"] .sort-btn::after { content: " ↓"; opacity: 1; }
.catalog-item { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.catalog-item img { width: 52px; height: 52px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: none; }
.catalog-item strong { font-weight: 600; font-size: .9rem; }
.catalog-item:hover strong { color: var(--sea); }
.link-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 28px; }
.link-grid li { border-top: 1px solid var(--line); margin: 0; }
.link-grid a { display: block; padding: 12px 0; text-decoration: none; color: var(--ink); font-size: .95rem; }
.link-grid a:hover { color: var(--sea); }
.link-grid { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.table--vs, .table-scroll .table--vs { table-layout: fixed; width: 100%; min-width: 0; }
.table--vs th:first-child { width: 40%; }
.table--vs td, .table--vs th { overflow-wrap: anywhere; }
.vs-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
@media (max-width: 760px) { .vs-lists { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { border-top: 1px solid var(--line); padding: 10px 0; margin: 0; display: flex; justify-content: space-between; gap: 16px; }
.link-list a { color: var(--ink); text-decoration: none; }
.link-list a:hover { color: var(--sea); }
.muted { color: var(--muted, #6b7280); white-space: nowrap; font-variant-numeric: tabular-nums; }
.brand .text-link, .section .text-link { white-space: normal; }
.subhub-list { margin-top: 36px; }
.features--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .features--three { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(238,242,245,.78); padding: 72px 0 36px; font-size: .88rem; margin-top: 0; }
.site-footer a { color: rgba(238,242,245,.9); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-grid h2 { font-family: var(--sans); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: #e7d6b8; font-weight: 600; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.footer-legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; font-size: .78rem; color: rgba(238,242,245,.6); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

.disclosure-line { font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); padding: 14px 0; }

@media print { .site-header, .buybar, .toc, .site-footer { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
