/* Instrument Sans, self-hosted (SIL Open Font License 1.1, see /assets/fonts/OFL.txt). Variable: weight 400-700,
   width 85-100%. Same axes the approved option A loaded from Google Fonts; served from this site for the CSP. */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 85% 100%;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 85% 100%;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Option A, "Daylight retail" layout with the owner-approved "P1 Pine & snow" colour scheme (2026-12-01).
   White cards on a snow-grey page, deep pine brand and buttons, sunlit amber for savings and small highlights.
   Type: Instrument Sans for everything (85-100 width axis; headings at 650 with tight tracking).
   Tokens from build/design/brand/palettes.json (scheme P1); contrast checked by build/design/brand/contrast.mjs. */

:root {
  --page: #eef2f0;
  --white: #ffffff;
  --tint: #e1ebe5;
  --tint-2: #f4f7f5;
  --ink: #10251d;
  --ink-2: #33473f;
  --muted: #586a62;
  --primary: #1f4b3a;
  --primary-2: #163a2c;
  --primary-rgb: 31, 75, 58;
  --on-primary: #dbe9e1;
  --on-primary-2: #cfe0d6;
  --highlight: #f2b544;
  --focus: #2b6cb3;
  --save: #8a4c0c;
  --save-bg: #fbedd6;
  --toast-ok: #8fdcb4;
  --line: #dce4e0;
  --shadow-rgb: 16, 37, 29;
  --r: 22px;
  --r-sm: 14px;
  --gap: clamp(14px, 1.6vw, 22px);
  --pad: clamp(16px, 3vw, 40px);
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sh: 0 1px 2px rgba(var(--shadow-rgb), 0.05), 0 8px 24px -12px rgba(var(--shadow-rgb), 0.14);
  --sh-2: 0 2px 4px rgba(var(--shadow-rgb), 0.05), 0 22px 48px -20px rgba(var(--shadow-rgb), 0.3);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--page); color: var(--ink-2); font-family: var(--sans); font-size: 1rem; line-height: 1.55; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, ul, figure, fieldset { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
fieldset { padding: 0; border: 0; min-width: 0; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 80; padding: 10px 16px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
.wrap { width: min(100% - 2 * var(--pad), 1320px); margin-inline: auto; }
.muted { color: var(--muted); }

/* ------------------------------------------------ type */
.display { color: var(--ink); font-size: clamp(2.35rem, 1.25rem + 3.6vw, 4.25rem); font-weight: 650; font-stretch: 92%; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.h1 { color: var(--ink); font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); font-weight: 650; font-stretch: 92%; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.h2 { color: var(--ink); font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.35rem); font-weight: 650; font-stretch: 94%; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
.h3 { color: var(--ink); font-size: 1.15rem; font-weight: 620; letter-spacing: -0.012em; line-height: 1.25; }
.lede { margin-top: 18px; max-width: 34em; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.55; text-wrap: pretty; }

/* ------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 22px; border: 0; border-radius: 999px; font-weight: 600; font-size: 0.98rem; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 160ms var(--ease), box-shadow 160ms var(--ease), transform 160ms var(--ease); }
.btn .ico { transition: transform 200ms var(--ease); }
.btn:hover .ico { transform: translateX(2px); }
.btn--lg { min-height: 54px; padding: 12px 26px; font-size: 1.03rem; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 0.93rem; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 10px 22px -12px rgba(var(--primary-rgb), 0.8); }
.btn--primary:hover { background: var(--primary-2); }
.btn--line { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--primary); }
.btn--white { background: #fff; color: var(--primary); }
.btn--white:hover { background: var(--tint); }
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 620; text-decoration: none; white-space: nowrap; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ------------------------------------------------ preview notice and header */
.notice { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; background: var(--primary); color: var(--on-primary); font-size: 0.86rem; font-weight: 500; text-align: center; }
.notice .ico { color: var(--highlight); }
.top { position: sticky; top: 0; z-index: 50; padding: 12px var(--pad) 0; }
.pill { position: relative; display: flex; align-items: center; gap: 8px; max-width: 1320px; margin-inline: auto; padding: 7px 7px 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 1px 2px rgba(var(--shadow-rgb), 0.06), 0 12px 30px -16px rgba(var(--shadow-rgb), 0.35); }
@supports (backdrop-filter: blur(1px)) { .pill { background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(1.6) blur(16px); } }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); text-decoration: none; border-radius: 999px; }
.brand__logo { display: block; width: auto; height: 40px; }
.brand__logo--stack { display: none; }
.nav__links a { display: block; padding: 9px 12px; border-radius: 999px; color: var(--ink-2); font-size: 0.93rem; font-weight: 550; text-decoration: none; white-space: nowrap; transition: background-color 150ms var(--ease); }
.nav__links a:hover { background: var(--tint); color: var(--ink); }
.nav__links a[aria-current="page"] { background: var(--tint); color: var(--primary); }
.cart { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--tint); color: var(--primary); }
.cart .ico { width: 21px; height: 21px; }
.cart__n { position: absolute; top: -2px; right: -2px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--save); color: #fff; font-size: 0.72rem; font-weight: 700; }
.cart__n[hidden] { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 16px 8px 13px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; cursor: pointer; }
.menu-btn .ico--x { display: none; }
.menu-btn[aria-expanded="true"] .ico--x { display: block; }
.menu-btn[aria-expanded="true"] .ico--menu { display: none; }
@media (max-width: 1199px) {
  .nav__links { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; padding: 8px; border-radius: 22px; background: #fff; box-shadow: var(--sh-2); }
  .nav__links[data-open="true"] { display: grid; grid-template-columns: 1fr 1fr; }
  .nav__links a { padding: 13px 16px; font-size: 1.02rem; border-radius: 14px; }
}
@media (max-width: 479px) {
  .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu-btn { width: 46px; padding: 0; justify-content: center; }
  .brand__logo--line { display: none; }
  .brand__logo--stack { display: block; }
  .nav__links[data-open="true"] { grid-template-columns: 1fr; }
}
@media (min-width: 1200px) {
  .menu-btn { display: none; }
  .nav__links { display: flex; gap: 0; margin-right: 6px; }
}

/* ------------------------------------------------ sections */
.section { margin-top: clamp(64px, 8vw, 112px); }
.sechead { max-width: 760px; margin-bottom: clamp(20px, 2.4vw, 32px); }
.sechead p { margin-top: 10px; font-size: 1.06rem; }
.sechead--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; max-width: none; }
.sechead--row > div { max-width: 700px; }

/* hero: text card left, photo right with a real product callout */
.hero { display: grid; gap: var(--gap); margin-top: 18px; }
.hero__text { padding: clamp(28px, 4.4vw, 64px); border-radius: var(--r); background: var(--white); box-shadow: var(--sh); }
.hero__uses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero__uses a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 11px; border-radius: 999px; background: var(--tint-2); color: var(--ink); font-size: 0.93rem; font-weight: 560; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.hero__uses a:hover { background: var(--tint); }
.hero__uses .ico { color: var(--primary); }
.hero__photo { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r); background: var(--tint); }
.hero__photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.callout { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 8px 12px 8px 8px; border-radius: 18px; background: rgba(255, 255, 255, 0.95); color: var(--ink); text-decoration: none; box-shadow: var(--sh-2); animation: rise 700ms 250ms var(--ease) both; }
.callout img { width: 60px; height: 60px; border-radius: 12px; background: #fff; object-fit: contain; flex: none; }
.callout__text { display: grid; gap: 2px; min-width: 0; }
.callout__name { font-weight: 620; font-size: 0.95rem; line-height: 1.25; }
.callout__price { color: var(--muted); font-size: 0.9rem; }
.callout__price b { color: var(--ink); }
.callout__go { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* shop by use: rows on phones, photo tiles from 640 */
.uses { display: grid; gap: 12px; }
.use a { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 16px; padding: 10px 14px 10px 10px; border-radius: var(--r-sm); background: var(--white); text-decoration: none; box-shadow: var(--sh); transition: box-shadow 200ms var(--ease), transform 200ms var(--ease); }
.use__photo { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 10px; background: var(--tint); }
.use__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.use__text { display: grid; gap: 4px; }
.use__name { color: var(--ink); font-size: 1.1rem; font-weight: 650; letter-spacing: -0.015em; }
.use__blurb { color: var(--ink-2); font-size: 0.92rem; line-height: 1.45; }
.use__go { display: none; }
@media (min-width: 640px) {
  .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
  .use a { display: flex; flex-direction: column; align-items: stretch; height: 100%; padding: 0; border-radius: var(--r); overflow: hidden; }
  .use__photo { aspect-ratio: 16 / 10; border-radius: 0; }
  .use__text { flex: 1; align-content: start; gap: 8px; padding: 20px 22px 22px; }
  .use__name { font-size: 1.25rem; }
  .use__blurb { font-size: 0.97rem; }
  .use__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; color: var(--primary); font-weight: 620; }
}
@media (min-width: 1100px) { .uses { grid-template-columns: repeat(4, minmax(0, 1fr)); } .use__photo { aspect-ratio: 4 / 3.4; } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .use a:hover, .card:hover, .cat:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
}

/* product cards */
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .grid--list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--r); background: var(--white); box-shadow: var(--sh); overflow: hidden; transition: box-shadow 200ms var(--ease), transform 200ms var(--ease); }
.card[hidden] { display: none; }
.card__media { position: relative; display: block; aspect-ratio: 1; margin: 8px 8px 0; border-radius: calc(var(--r) - 8px); background: #fff; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.card__media img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.card__tag { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--primary); font-size: 0.76rem; font-weight: 620; }
.card__body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 14px 16px 16px; }
.card__use { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: 0.85rem; font-weight: 600; }
.card__title { color: var(--ink); font-size: 1.02rem; font-weight: 620; letter-spacing: -0.01em; line-height: 1.3; text-wrap: balance; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__parts { display: grid; gap: 5px; font-size: 0.9rem; }
.card__parts li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.35; }
.card__parts .ico { margin-top: 2px; color: var(--save); }
.specs { display: flex; flex-wrap: wrap; gap: 6px; }
.specs li { padding: 3px 9px; border-radius: 8px; background: var(--tint-2); color: var(--ink-2); font-size: 0.8rem; font-weight: 560; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.card__buy { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; color: var(--ink); line-height: 1.2; }
.price b { font-size: 1.2rem; font-weight: 680; letter-spacing: -0.02em; }
.price s { color: var(--muted); font-size: 0.88rem; }
.price__from { color: var(--muted); font-size: 0.85rem; }
.add { position: relative; z-index: 2; display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--primary); color: #fff; cursor: pointer; transition: background-color 150ms var(--ease); }
.add:hover { background: var(--primary-2); }
.add .ico { width: 20px; height: 20px; stroke-width: 2.3; }
@media (max-width: 639px) {
  .card__media { margin: 6px 6px 0; }
  .card__body { padding: 12px 12px 12px; gap: 8px; }
  .card__title { font-size: 0.95rem; }
  .card__parts { font-size: 0.84rem; }
  .card__parts li:nth-child(3) { display: none; }
  .card__tag { font-size: 0.7rem; padding: 3px 8px; left: 8px; top: 8px; }
  .specs li { font-size: 0.75rem; padding: 2px 7px; }
  .price b { font-size: 1.08rem; }
  .add { width: 38px; height: 38px; }
}

/* categories */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (min-width: 768px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cats { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.cat { display: grid; gap: 4px; height: 100%; padding: 10px 10px 16px; border-radius: var(--r); background: var(--white); text-decoration: none; box-shadow: var(--sh); transition: box-shadow 200ms var(--ease), transform 200ms var(--ease); }
.cat__img { display: block; aspect-ratio: 1; margin-bottom: 8px; border-radius: calc(var(--r) - 8px); background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.cat__img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.cat__name { padding-inline: 6px; color: var(--ink); font-size: 1.05rem; font-weight: 640; letter-spacing: -0.012em; }
.cat__count { padding-inline: 6px; color: var(--muted); font-size: 0.88rem; }

/* why buy here */
.why { margin-top: clamp(64px, 8vw, 112px); padding-block: clamp(48px, 6vw, 80px); background: var(--primary); color: var(--on-primary-2); }
.why .h2 { color: #fff; }
.why__inner { display: grid; gap: 28px; }
.why__list { display: grid; gap: 22px; }
.why__list li { display: grid; align-content: start; gap: 8px; padding: 22px; border-radius: var(--r); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.why__list .h3 { color: #fff; }
.why__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 12px; background: var(--highlight); color: var(--primary); }
.why__icon .ico { width: 22px; height: 22px; }
.why .btn { justify-self: start; }
@media (min-width: 900px) { .why__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } .why__inner { grid-template-columns: 1fr auto; align-items: end; } .why__list { grid-column: 1 / -1; grid-row: 2; } .why .btn { grid-column: 2; grid-row: 1; } }

/* footer */
.footer { padding-top: clamp(48px, 6vw, 80px); padding-bottom: 24px; background: var(--white); border-top: 1px solid var(--line); }
.why + .footer { border-top: 0; }
.footer__inner { display: grid; gap: 36px; padding-bottom: 32px; }
.footer__name img { display: block; width: auto; height: 46px; }
.footer__brand p:not(.footer__name) { margin-block: 8px 18px; max-width: 30em; }
.footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.footer__head { margin-bottom: 10px; color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.footer__cols a { display: inline-block; padding-block: 5px; color: var(--ink); text-decoration: none; font-weight: 500; }
.footer__cols a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.footer__small { display: grid; gap: 4px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; }
@media (min-width: 640px) { .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footer__inner { grid-template-columns: 1fr 1.5fr; gap: 64px; } }

/* toast */
.toast { position: fixed; z-index: 90; left: 50%; bottom: 20px; display: flex; align-items: center; gap: 10px; width: min(100% - 32px, 460px); padding: 14px 18px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 0.95rem; box-shadow: var(--sh-2); transform: translate(-50%, 140%); transition: transform 300ms var(--ease); }
.toast.is-on { transform: translate(-50%, 0); }
.toast[hidden] { display: none; }
.toast .ico { color: var(--toast-ok); }
.p-product .toast { bottom: 96px; }

/* ------------------------------------------------ category page */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 26px; color: var(--muted); font-size: 0.9rem; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .ico { width: 14px; height: 14px; }
.crumbs [aria-current] { color: var(--ink); font-weight: 560; }
.pagehead__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px; margin-top: 18px; }
.pagehead__row .lede { margin-top: 12px; max-width: 40em; }
.pagehead__count { color: var(--muted); }
.pagehead__count b { color: var(--ink); font-size: 1.1rem; }
.listing { margin-top: 28px; }
.toolbar { position: sticky; top: 76px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: var(--gap); padding: 10px; border-radius: 20px; background: rgba(255, 255, 255, 0.95); box-shadow: var(--sh); }
.chips { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-right: 24px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 8px 15px; border: 0; border-radius: 999px; background: var(--tint-2); color: var(--ink); font-size: 0.92rem; font-weight: 560; white-space: nowrap; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--primary); }
.chip[aria-pressed="true"] { background: var(--primary); color: #fff; box-shadow: none; }
.toolbar__right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.toolbar__shown { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.sort { position: relative; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; }
.sort select { appearance: none; min-height: 40px; padding: 8px 36px 8px 14px; border: 0; border-radius: 999px; background: var(--tint-2); color: var(--ink); font-weight: 560; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.sort .ico { position: absolute; right: 12px; pointer-events: none; color: var(--ink); }
@media (max-width: 767px) {
  .toolbar { flex-direction: column; align-items: stretch; top: 70px; }
  .chips { width: 100%; }
  .toolbar__right { margin-left: 0; justify-content: space-between; }
}
.more { display: flex; justify-content: center; margin-top: 32px; }
.more [hidden] { display: none; }
.help { margin-top: clamp(56px, 7vw, 96px); }
.help__inner { display: grid; gap: 20px; align-items: center; padding: clamp(26px, 4vw, 52px); border-radius: var(--r); background: var(--tint); }
.help__inner p { margin-top: 10px; max-width: 36em; font-size: 1.05rem; }
.help .btn { justify-self: start; }
@media (min-width: 900px) { .help__inner { grid-template-columns: 1fr auto; } }
.p-category .footer, .p-product .footer { margin-top: clamp(64px, 8vw, 112px); }

/* ------------------------------------------------ product page */
.pdp { display: grid; gap: clamp(20px, 3vw, 40px); margin-top: 20px; }
.gallery { min-width: 0; }
.gallery__main { aspect-ratio: 1; border-radius: var(--r); background: #fff; box-shadow: var(--sh); overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding: 3px; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumbs button { display: block; width: 76px; height: 76px; padding: 0; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; overflow: hidden; }
.gallery__thumbs button[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--primary); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.buy { align-self: start; padding: clamp(22px, 3vw, 36px); border-radius: var(--r); background: var(--white); box-shadow: var(--sh); }
.buy__brand { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--primary); font-weight: 620; font-size: 0.95rem; }
.buy__brand span { color: var(--muted); font-weight: 500; }
.buy__title { margin-top: 10px; font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.6rem); }
.buy__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 16px; }
.buy__price b { color: var(--ink); font-size: clamp(2rem, 1.6rem + 1vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.buy__price s { color: var(--muted); font-size: 1.1rem; }
.save { padding: 4px 10px; border-radius: 999px; background: var(--save-bg); color: var(--save); font-weight: 650; font-size: 0.88rem; }
.save[hidden], [data-price-was][hidden] { display: none; }
.runs { display: flex; gap: 12px; margin-top: 20px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--tint); color: var(--ink); font-weight: 520; line-height: 1.45; }
.runs .ico { margin-top: 2px; color: var(--primary); }
.keychips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.keychips li { display: grid; padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.keychips b { color: var(--ink); font-size: 1.05rem; font-weight: 680; letter-spacing: -0.01em; }
.keychips span { color: var(--muted); font-size: 0.85rem; }
@media (min-width: 560px) and (max-width: 1023px), (min-width: 1280px) { .keychips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.options { display: grid; gap: 8px; margin-top: 22px; }
.options legend { margin-bottom: 10px; color: var(--ink); font-weight: 620; }
.opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--primary); background: var(--tint-2); }
.opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.opt__text { display: grid; }
.opt__name { color: var(--ink); font-weight: 600; }
.opt__detail { color: var(--muted); font-size: 0.86rem; }
.opt__price { color: var(--ink); font-weight: 650; }
.buy__row { display: flex; gap: 10px; margin-top: 20px; }
.btn--grow { flex: 1; }
.qty { display: flex; align-items: center; flex: none; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); }
.qty button { display: grid; place-items: center; width: 42px; height: 52px; border: 0; background: none; cursor: pointer; color: var(--ink); }
.qty input { width: 34px; border: 0; background: none; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy__note { margin-top: 12px; color: var(--muted); font-size: 0.88rem; }
@media (min-width: 1024px) {
  .pdp { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  .gallery { position: sticky; top: 96px; align-self: start; }
}
.pdp-more { display: grid; gap: var(--gap); margin-top: clamp(48px, 6vw, 80px); }
.specs-block { padding: clamp(22px, 3vw, 36px); border-radius: var(--r); background: var(--white); box-shadow: var(--sh); }
.spec { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 0.98rem; }
.spec th, .spec td { padding: 12px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec th { width: 40%; padding-right: 16px; color: var(--muted); font-weight: 520; }
.spec td { color: var(--ink); font-weight: 540; }
.spec td .muted { font-weight: 450; }
.dl-block { display: grid; gap: var(--gap); align-content: start; }
.downloads { padding: 22px; border-radius: var(--r); background: var(--white); box-shadow: var(--sh); }
.downloads ul { display: grid; gap: 8px; margin-top: 14px; }
.downloads a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--tint-2); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.downloads a:hover { box-shadow: inset 0 0 0 1.5px var(--primary); }
.downloads a > .ico:first-child { color: var(--primary); width: 22px; height: 22px; }
.downloads span { display: grid; }
.downloads b { color: var(--ink); font-weight: 600; }
.downloads small { color: var(--muted); font-size: 0.82rem; }
.ico--dl { color: var(--primary); }
.ask { padding: 22px; border-radius: var(--r); background: var(--tint); }
.ask p:not(.h3) { margin-block: 6px 10px; }
@media (min-width: 1024px) { .pdp-more { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }

/* sticky buy bar */
.buybar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96); box-shadow: 0 -10px 30px -18px rgba(var(--shadow-rgb), 0.4); transform: translateY(110%); transition: transform 280ms var(--ease); }
@supports (backdrop-filter: blur(1px)) { .buybar { background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.6) blur(14px); } }
.buybar.is-shown { transform: none; }
.buybar__inner { display: flex; align-items: center; gap: 14px; }
.buybar img { width: 48px; height: 48px; border-radius: 10px; object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.buybar__name { display: grid; flex: 1; min-width: 0; color: var(--ink); font-weight: 620; line-height: 1.25; }
.buybar__name span, .buybar__name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buybar__name small { color: var(--muted); font-weight: 500; font-size: 0.85rem; }
.buybar__price { color: var(--ink); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
@media (max-width: 639px) { .buybar img, .buybar__name small { display: none; } .buybar__name { font-size: 0.9rem; } .buybar .btn { padding-inline: 16px; } .buybar__price { font-size: 1.1rem; } }
@media (max-width: 419px) { .buybar__name { display: none; } .buybar__inner { justify-content: space-between; } }
.p-product { padding-bottom: 76px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
  .hero__text { display: flex; flex-direction: column; justify-content: center; }
  .hero__photo { aspect-ratio: auto; min-height: 560px; }
  .callout { left: 24px; bottom: 24px; }
}

/* Store additions on top of option A (10-option-a.css is the approved stylesheet, unchanged).
   Everything here reuses option A's tokens: white panels with --r and --sh, navy actions, tint bands, Instrument Sans. */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.small { font-size: 0.88rem; }
.footer--gap { margin-top: clamp(64px, 8vw, 112px); }

/* ------------------------------------------------ owner-approved photos: keep the house, van or array in frame */
.hero__photo > img.ph-hero { object-position: 30% 50%; }
.use__photo img.ph-farm, .hero__photo > img.ph-farm { object-position: 35% 60%; }
.use__photo img.ph-ranch, .hero__photo > img.ph-ranch { object-position: 45% 60%; }
.use__photo img.ph-van, .hero__photo > img.ph-van { object-position: 50% 62%; }
.use__photo img.ph-backup, .hero__photo > img.ph-backup { object-position: 58% 50%; }
.callout img { padding: 4px; }

/* ------------------------------------------------ panels and running text */
.panel { padding: clamp(22px, 3vw, 36px); border-radius: var(--r); background: var(--white); box-shadow: var(--sh); }
.prose p { max-width: 46em; text-wrap: pretty; }
.prose .h2 + p, .prose .h2 + .prose__lead { margin-top: 16px; }
.prose p + p, .prose p + .actions { margin-top: 14px; }
.prose__lead { color: var(--ink); font-size: clamp(1.05rem, 1rem + 0.25vw, 1.15rem); font-weight: 520; }
.pagebody { margin-top: 28px; }
.pagehead__also { margin-top: 12px; color: var(--ink-2); }
.pagehead__also .link { margin-left: 4px; }
.eyebrow { color: var(--primary); font-size: 0.95rem; font-weight: 640; letter-spacing: 0.01em; }
.linkbtn { padding: 0; border: 0; background: none; color: var(--primary); font-weight: 620; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

.ticks { display: grid; gap: 10px; margin-top: 14px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; color: var(--ink); }
.ticks .ico { margin-top: 3px; color: var(--save); }
.ticks--box li { color: var(--ink-2); font-size: 0.95rem; }
@media (min-width: 900px) { .ticks--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; } }

/* ------------------------------------------------ FAQ rows (details / summary) */
.faq { margin-top: 14px; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 0; color: var(--ink); font-size: 1.04rem; font-weight: 620; line-height: 1.35; list-style: none; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .ico { margin-top: 2px; color: var(--primary); transition: transform 200ms var(--ease); }
.faq__item[open] summary .ico { transform: rotate(180deg); }
.faq__item summary:hover span { text-decoration: underline; text-underline-offset: 4px; }
/* the question is an <h3> (a heading for search and screen readers) that looks exactly like the old <span> */
.faq__q { margin: 0; color: inherit; font: inherit; letter-spacing: inherit; }
.faq__item summary:hover .faq__q { text-decoration: underline; text-underline-offset: 4px; }

/* internal links written into the copy ([text](/path/) in the content files) */
.prose p a, .lede a, .hero__more a, .faq__a a, .qa__item p a { color: var(--primary); font-weight: 600; text-underline-offset: 3px; }
.faq__a { padding-bottom: 18px; }
.faq__a p { max-width: 48em; text-wrap: pretty; }

.guide { display: grid; gap: var(--gap); align-items: start; }
.guide .sechead--row { margin-bottom: 4px; align-items: center; }
@media (min-width: 1024px) { .guide:has(.guide__text):has(.guide__faq) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } .guide__text { position: sticky; top: 96px; } }
.guide__text p { margin-top: 14px; }

/* ------------------------------------------------ category page additions */
.toolbar__note { padding-left: 8px; color: var(--muted); font-size: 0.9rem; }
.empty-note { margin-top: 8px; color: var(--ink-2); }
.empty-note[hidden] { display: none; }

/* ------------------------------------------------ use-case page: option A's hero with the breadcrumb inside */
.hero--use .crumbs { margin-top: 0; margin-bottom: 18px; }
.hero--use .lede { margin-top: 14px; }
.hero__more { margin-top: 12px; max-width: 34em; text-wrap: pretty; }
@media (min-width: 1024px) { .hero--use .hero__photo { min-height: 440px; } }
.lookfor { margin-top: var(--gap); }
.use__count { color: var(--muted); font-size: 0.88rem; }

/* ------------------------------------------------ product page additions */
.keychips--3 li:last-child { grid-column: 1 / -1; }
.keychips--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) and (max-width: 1023px), (min-width: 1280px) {
  .keychips--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .keychips--3 li:last-child { grid-column: auto; }
}
.options + .options { margin-top: 18px; }
.options--grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.options--grid legend { float: left; width: 100%; }
.options--grid .opt { grid-template-columns: auto minmax(0, 1fr); gap: 8px; padding: 10px 12px; }
.opt--off { cursor: not-allowed; opacity: 0.6; }
.opt--off .opt__price { color: var(--muted); font-weight: 520; font-size: 0.88rem; }
.buy__unavail { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: var(--tint-2); color: var(--ink); font-weight: 560; box-shadow: inset 0 0 0 1px var(--line); }
.buy__unavail[hidden] { display: none; }
[data-add-main][disabled] { opacity: 0.5; cursor: not-allowed; }

.pdp-info { display: grid; gap: var(--gap); margin-top: clamp(48px, 6vw, 80px); align-items: start; }
.pdp-info + .pdp-more { margin-top: var(--gap); }
.side { display: grid; gap: var(--gap); align-content: start; }
@media (min-width: 1024px) { .pdp-info { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.goodfor { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.goodfor span { margin-right: 2px; }
.goodfor a { padding: 6px 12px; border-radius: 999px; background: var(--tint-2); color: var(--ink); font-weight: 560; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.goodfor a:hover { box-shadow: inset 0 0 0 1.5px var(--primary); }
/* the "Good for" row at the foot of the product Overview panel: full panel width, its own top spacing */
.prose .goodfor { max-width: none; margin-top: 18px; }
/* rows of pill links in their own panel (category "Related categories / Shop by use", brand pages) */
.related { margin-top: clamp(48px, 6vw, 80px); }
.related .goodfor:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.related .goodfor + .goodfor { margin-top: 14px; padding-top: 14px; }
/* brands index: few tiles, so four to a row on wide screens instead of the category grid's six (narrower: unchanged) */
@media (min-width: 1100px) { .cats--brands { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* footer: the fourth link column (Brands) sits in the same row on desktop; below 1000px it wraps as before */
@media (min-width: 1000px) { .footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* the product page's brand line links to the brand page */
.buy__brand a { color: inherit; text-decoration: none; }
.buy__brand a:hover { text-decoration: underline; text-underline-offset: 4px; }
.parts { display: grid; gap: 0; margin-top: 12px; }
.parts li { display: grid; grid-template-columns: 3.6em minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); line-height: 1.4; }
.parts li:first-child { border-top: 0; }
.parts__qty { color: var(--primary); font-weight: 680; white-space: nowrap; }
.parts a { color: var(--ink); font-weight: 560; text-underline-offset: 3px; }
.parts span:not(.parts__qty) { color: var(--ink); }
.downloads + .downloads { margin-top: 0; }
.spec__list { display: grid; gap: 6px; }
.qa { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .qa { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qa__item p { margin-top: 10px; text-wrap: pretty; }

/* ------------------------------------------------ cart */
.p-cart .pagehead .lede { max-width: 44em; }
.cartwrap { margin-top: 28px; }
.cart-empty { display: grid; justify-items: start; gap: 12px; }
.cart-empty[hidden], .cart-full[hidden] { display: none; }
.cart-empty .why__icon { margin-bottom: 4px; }
.cart-empty .actions { margin-top: 10px; }
.cart-full { display: grid; gap: var(--gap); align-items: start; }
@media (min-width: 1024px) { .cart-full { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } .summary { position: sticky; top: 96px; } }
.cartrows { margin-top: 10px; }
.cartrow { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; grid-template-areas: "img text remove" "img qty price"; align-items: center; gap: 10px 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.cartrow:first-child { border-top: 0; }
.cartrow__img { grid-area: img; display: block; align-self: start; width: 84px; height: 84px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.cartrow__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cartrow__text { grid-area: text; display: grid; gap: 2px; min-width: 0; }
.cartrow__name { color: var(--ink); font-weight: 620; line-height: 1.3; text-decoration: none; }
.cartrow__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cartrow__variant, .cartrow__unit { color: var(--muted); font-size: 0.88rem; }
.cartrow .qty { grid-area: qty; justify-self: start; }
.cartrow .qty button { height: 44px; }
.cartrow__price { grid-area: price; justify-self: end; color: var(--ink); font-size: 1.1rem; font-weight: 680; letter-spacing: -0.02em; }
.cartrow__remove { grid-area: remove; justify-self: end; align-self: start; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--tint-2); color: var(--ink-2); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.cartrow__remove:hover { color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); }
@media (max-width: 479px) { .cartrow { grid-template-columns: 64px minmax(0, 1fr) auto; } .cartrow__img { width: 64px; height: 64px; } }
.summary__rows { display: grid; gap: 10px; margin: 16px 0 0; }
.summary__rows div { display: flex; justify-content: space-between; gap: 12px; }
.summary__rows dt { color: var(--ink-2); }
.summary__rows dd { margin: 0; color: var(--ink); font-weight: 680; }
.summary__rows div:first-child dd { font-size: 1.35rem; letter-spacing: -0.02em; }
.summary__save dd { color: var(--save); }
.summary__save[hidden] { display: none; }
.summary__go { width: 100%; margin-top: 20px; }
.summary__note { margin-top: 12px; color: var(--muted); font-size: 0.88rem; }
.summary .linkbtn { margin-top: 14px; font-size: 0.92rem; }

.dialog { width: min(100% - 32px, 480px); padding: clamp(24px, 4vw, 36px); border: 0; border-radius: var(--r); background: var(--white); color: var(--ink-2); box-shadow: var(--sh-2); }
.dialog::backdrop { background: rgba(var(--shadow-rgb), 0.5); }
.dialog p { margin-top: 10px; }
.dialog .actions { margin-top: 22px; }
.dialog__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px; background: var(--highlight); color: var(--primary); }

/* sizing help */
.notice-panel { display: flex; gap: 14px; align-items: flex-start; background: var(--tint); box-shadow: none; }
.notice-panel .ico { width: 24px; height: 24px; margin-top: 2px; color: var(--primary); }
.notice-panel b { color: var(--ink); }
.nw { white-space: nowrap; }

/* many chips: the chip row scrolls sideways (option A's fade) so the count and sort stay on the same line */
@media (min-width: 768px) { .toolbar .chips { flex: 1 1 0; } }
.pdp-more { align-items: start; }
.sizing { display: grid; gap: var(--gap); margin-top: var(--gap); }
.sizing .guide { display: block; }
@media (min-width: 1024px) { .sizing { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

/* Homepage review section (plan Task 5): build/templates/partials/reviews.mjs, script assets-src/js/reviews.js.
   The card parts (.review__card, .review__stars, .review__text, .review__meta) also dress the product page review
   cards (28-product-reviews.css), so a review looks the same in both places.
   Option A tokens only: white cards with --r and --sh, ink text, pine links, the section head of the kits row.
   The row is a CSS scroll-snap track: 1 card per view below 640px, 2 from 640px, 3 from 1024px. Every card in the row
   takes the height of the tallest one, so nothing jumps while it scrolls. Stars are an amber (#c27a12, 3.45:1 on white)
   that meets the 3:1 contrast for graphics; each star row also carries the rating as text for screen readers. */

.reviews { --star: #c27a12; --per: 1; --bleed: 12px; }
@media (min-width: 640px) { .reviews { --per: 2; } }
@media (min-width: 1024px) { .reviews { --per: 3; } }

.reviews__sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.reviews .vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* the track: the cards' shadows need room, so it reaches 12px past the content edge on each side (inside the page
   padding, which is 16px or more) and pads that back, so the cards still line up with the heading */
.reviews__track {
  position: relative; /* holds the visually hidden rating text, so cards off to the side never widen the page */
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  gap: var(--gap);
  margin: -8px calc(-1 * var(--bleed)) -20px; /* the bottom padding is shadow room, so the gap to the next section stays the usual one */
  padding: 8px var(--bleed) 26px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--bleed);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  border-radius: calc(var(--r) + 4px);
}
.reviews__track:focus-visible { outline-offset: -2px; }
@media (prefers-reduced-motion: no-preference) { .reviews__track { scroll-behavior: smooth; } }

/* the card */
.review { display: flex; min-width: 0; scroll-snap-align: start; }
.review__card { display: flex; flex: 1; flex-direction: column; gap: 14px; min-width: 0; padding: clamp(20px, 2.2vw, 28px); border-radius: var(--r); background: var(--white); box-shadow: var(--sh); }
.review__stars { position: relative; display: flex; gap: 3px; }
.review__star { width: 19px; height: 19px; flex: none; fill: var(--star); stroke: var(--star); stroke-width: 1.6; stroke-linejoin: round; }
.review__star--off { fill: none; }
.review__text { margin: 0; color: var(--ink); font-size: 1.02rem; line-height: 1.6; overflow-wrap: break-word; }
.review__text p { text-wrap: pretty; }
.review__text p + p { margin-top: 0.6em; }
.review__meta { display: grid; gap: 3px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); line-height: 1.35; }
.review__name { color: var(--ink); font-weight: 620; }
.review__product { justify-self: start; color: var(--primary); font-weight: 600; font-size: 0.95rem; text-decoration: none; text-wrap: balance; }
.review__product:hover { text-decoration: underline; text-underline-offset: 3px; }
.review__date { color: var(--muted); font-size: 0.86rem; } /* month and year only (owner, 2026-12-02: no website named) */
/* one buyer photo beside the name, product and date: a small square in a second column, so the card is no taller */
.review__meta--photo { grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; }
.review__meta--photo > :not(.review__photo) { grid-column: 1; }
.review__photo { grid-column: 2; grid-row: 1 / span 3; align-self: center; display: block; width: 60px; height: 60px; overflow: hidden; border-radius: 12px; background: var(--tint-2); box-shadow: inset 0 0 0 1px var(--line); }
.review__photo img { width: 100%; height: 100%; object-fit: cover; }

/* previous / next: hidden until script runs (CSS "scripting" where the browser knows it, so the space is there from the
   first paint and nothing shifts; data-ready from reviews.js elsewhere); the script hides them again when every card
   already fits */
.reviews__nav { display: none; flex: none; gap: 10px; }
@media (scripting: enabled) { .reviews__nav { display: flex; } }
.reviews[data-ready] .reviews__nav { display: flex; }
.reviews .reviews__nav[hidden] { display: none; }
.reviews__btn { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--white); color: var(--primary); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line), var(--sh); transition: background-color 150ms var(--ease), box-shadow 150ms var(--ease), opacity 150ms var(--ease); }
.reviews__btn .ico { width: 20px; height: 20px; stroke-width: 2.2; }
.reviews__btn--prev .ico { transform: scaleX(-1); }
.reviews__btn:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--primary), var(--sh); }
.reviews__btn:disabled { cursor: default; opacity: 0.45; box-shadow: inset 0 0 0 1.5px var(--line); }
/* with the buttons on screen the scrollbar is not needed (touch, trackpad and the arrow keys still scroll the row) */
@media (scripting: enabled) {
  .reviews__track { scrollbar-width: none; }
  .reviews__track::-webkit-scrollbar { display: none; }
}

/* Homepage cards (owner 2026-12-02): the buyer's name, product and date sit above the stars. */
.review__meta--top { margin-top: 0; padding-top: 0; padding-bottom: 14px; border-top: 0; border-bottom: 1px solid var(--line); }

/* Home page (plan Task 8): the "Shop by brand" text panels, built from option A's .panel, .h3, .link and .goodfor
   pills. One column on phones, two side by side from 768 px; the category pills line up at the foot of both panels.
   Nothing else on the page changes. */
.brandrow { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .brandrow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.brandrow__item { display: flex; flex-direction: column; align-items: flex-start; }
.brandrow__item > p:not(.goodfor) { margin-top: 8px; max-width: 40em; text-wrap: pretty; }
.brandrow__item > .link { margin-top: 14px; margin-bottom: 18px; }
.brandrow__item > .goodfor { align-self: stretch; margin-top: auto; }

/* "Shop by category" picture tiles (owner 2026-12-02): the group picture sits at the foot of the tile and the words
   sit above it in the store's own type and colours. Two across on phones, three across from 768 px. */
.series { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (min-width: 768px) { .series { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.serie { position: relative; display: block; height: 100%; border-radius: var(--r); background: #f5f5f5; box-shadow: var(--sh); overflow: hidden; text-decoration: none; transition: box-shadow 200ms, transform 200ms; }
.serie:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.serie__img { display: block; width: 100%; height: auto; }
.serie__text { position: absolute; inset: 0 0 auto 0; z-index: 1; display: grid; justify-items: center; gap: 4px; padding: clamp(16px, 3vw, 34px) 12px 0; text-align: center; }
.serie__eyebrow { color: var(--primary); font-size: clamp(0.72rem, 1.1vw, 0.86rem); font-weight: 680; letter-spacing: 0.08em; text-transform: uppercase; }
.serie__name { color: var(--ink); font-size: clamp(1.05rem, 2.3vw, 1.7rem); font-weight: 680; letter-spacing: -0.02em; line-height: 1.12; }
.serie__go { display: inline-flex; align-items: center; gap: 6px; margin-top: clamp(4px, 1vw, 10px); padding: 8px 16px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: clamp(0.8rem, 1.1vw, 0.92rem); font-weight: 620; }
.serie__go .ico { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .serie { transition: none; } .serie:hover { transform: none; } }
/* Phones and tablets: the words sit above the picture, not over it, and the empty top of the picture is cropped away. */
@media (max-width: 1023px) {
  .serie { display: flex; flex-direction: column; }
  .serie__text { position: static; padding: 16px 8px 0; }
  .serie__img { margin-top: auto; aspect-ratio: 550 / 330; object-fit: cover; object-position: center bottom; }
}

/* Phones only (owner 2026-12-02, picked option A's header from previews/review/home-mobile): the homepage header
   is a tall full-width photo with the title on it and the product chip at its top, then the description and the two
   buttons side by side. The quick-link pills are not shown on phones (the shop-by-use section follows). 640px and
   wider keep the two-panel layout; the shop-by-use page headers (.hero--use) are not changed. */
@media (max-width: 639px) {
  .p-home .hero:not(.hero--use) { width: 100%; margin-top: 0; grid-template-columns: 100%; gap: 0; }
  .p-home .hero:not(.hero--use) .hero__text { display: contents; }
  .p-home .hero:not(.hero--use) .hero__photo { order: 0; grid-area: 1 / 1; margin: 0; width: 100%; height: min(125vw, 560px); aspect-ratio: auto; border-radius: 0; }
  .p-home .hero:not(.hero--use) .hero__photo::after { content: ""; position: absolute; inset: 35% 0 0 0; background: linear-gradient(to bottom, rgba(10, 30, 22, 0), rgba(10, 30, 22, 0.86)); pointer-events: none; }
  .p-home .hero:not(.hero--use) .display { order: 0; grid-area: 1 / 1; align-self: end; z-index: 2; padding: 0 20px 22px; color: #fff; font-size: 2.15rem; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35); }
  .p-home .hero:not(.hero--use) .callout { top: 14px; bottom: auto; left: 14px; }
  .p-home .hero:not(.hero--use) .lede { order: 3; margin: 0; padding: 18px 20px 0; }
  .p-home .hero:not(.hero--use) .actions { order: 4; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 16px 20px 0; }
  .p-home .hero:not(.hero--use) .actions .btn { justify-content: center; padding-inline: 10px; font-size: 0.95rem; }
  .p-home .hero:not(.hero--use) .hero__uses { display: none; }
  .p-home .hero .hero__wide { display: none; } /* phones: the second button is Guides (owner 2026-12-02) */
}
@media (min-width: 640px) { .hero .hero__phone { display: none; } }

/* Category pages: the filter sidebar (owner 2026-12-02: "filters ... like SunGold and Rich Solar"), markup in
   build/templates/category.mjs, script in assets-src/js/filter.js. Everything here is scoped to .listing--facets, the
   listings that hold the sidebar (/shop-by-use/, /brands/ and /guides/ use a plain .listing and are not touched).
   >= 1024px: a sticky white column of 260px on the left (it scrolls inside itself when taller than the window), the
   sort bar and the cards on the right (3 columns, 4 from 1360px).
   < 1024px: a "Filters" button next to Sort opens the same sidebar as a panel from the left (.js-facets, set by the
   script); without JavaScript the sidebar sits above the grid inside a closed <details>. */
.listing--facets [hidden] { display: none !important; }

/* ------------------------------------------------ the sidebar box */
.facets { position: relative; }
.facets__sum { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: var(--gap); padding: 10px 18px; border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 600; list-style: none; cursor: pointer; box-shadow: var(--sh); }
.facets__sum::-webkit-details-marker { display: none; }
.facets[open] > .facets__sum { margin-bottom: 10px; }
.facets__panel { padding: 4px 18px 18px; border-radius: 20px; background: var(--white); box-shadow: var(--sh); }
.js-facets .facets__sum { display: none; }
.facets__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 10px; }
.facets__title { color: var(--ink); font-size: 1.15rem; font-weight: 650; letter-spacing: -0.015em; line-height: 1.2; }
.facets__x { display: none; place-items: center; width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 0; border-radius: 50%; background: var(--tint-2); color: var(--ink); cursor: pointer; }
.facets__x .ico { width: 20px; height: 20px; }
.facets__x:hover { background: var(--tint); }
.facets__foot { display: none; }

/* applied filters: removable chips and "Clear all" */
.facets__applied { display: grid; gap: 10px; padding: 4px 0 16px; }
.facets__label { color: var(--muted); font-size: 0.8rem; font-weight: 640; letter-spacing: 0.04em; text-transform: uppercase; }
.facets__applied ul { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 10px 6px 12px; border: 0; border-radius: 999px; background: var(--tint); color: var(--primary); font-size: 0.86rem; font-weight: 600; line-height: 1.25; text-align: left; cursor: pointer; }
.fchip .ico { width: 15px; height: 15px; flex: none; stroke-width: 2.4; }
.fchip:hover { background: var(--primary); color: #fff; }
.facets__applied .linkbtn { justify-self: start; min-height: 32px; font-size: 0.92rem; }

/* one group: a disclosure row with its checkboxes */
.fgroup { border-top: 1px solid var(--line); }
.fgroup > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 8px 0; color: var(--ink); font-weight: 620; list-style: none; cursor: pointer; }
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup > summary .ico { color: var(--primary); transition: transform 200ms var(--ease); }
.fgroup[open] > summary .ico { transform: rotate(180deg); }
.fgroup > summary:hover span { text-decoration: underline; text-underline-offset: 4px; }
.fgroup fieldset { padding: 0 0 14px; }
.fgroup ul { display: grid; gap: 2px; }
.fgroup ul.is-short > li:nth-child(n + 9) { display: none; }
.fgroup label { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 0 -8px; padding: 4px 8px; border-radius: 10px; color: var(--ink-2); font-size: 0.95rem; line-height: 1.3; cursor: pointer; }
.fgroup label:hover { background: var(--tint-2); }
.fgroup input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.fgroup label:has(input:checked) { color: var(--ink); font-weight: 600; }
.fgroup .fn { margin-left: auto; padding-left: 6px; color: var(--muted); font-size: 0.85rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.fgroup label.is-off { color: var(--muted); cursor: default; opacity: 0.55; }
.fgroup label.is-off:hover { background: none; }
.fgroup label.is-off input { cursor: default; }
.fgroup__more { min-height: 40px; margin-top: 2px; padding: 0; border: 0; background: none; color: var(--primary); font-weight: 620; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* price From / To */
.fprice { display: flex; align-items: flex-end; gap: 8px; }
.fgroup .fprice label { display: grid; flex: 1; gap: 4px; min-width: 0; min-height: 0; margin: 0; padding: 0; color: var(--muted); font-size: 0.82rem; font-weight: 560; cursor: default; }
.fgroup .fprice label:hover { background: none; }
.fprice__in { display: flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 12px; border-radius: 12px; background: var(--white); color: var(--muted); font-size: 0.95rem; box-shadow: inset 0 0 0 1.5px var(--line); }
.fprice__in:focus-within { box-shadow: inset 0 0 0 2px var(--primary); }
.fprice input { width: 100%; min-width: 0; padding: 8px 0; border: 0; background: none; color: var(--ink); font-size: 0.98rem; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.fprice input:focus { outline: none; }
.fprice input::-webkit-outer-spin-button, .fprice input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fprice__to { padding-bottom: 12px; color: var(--muted); }

/* the "Filters" button in the sort bar (below 1024px) */
.facets__open { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px 8px 13px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 600; font-size: 0.95rem; cursor: pointer; box-shadow: 0 8px 18px -12px rgba(var(--primary-rgb), 0.8); }
.facets__open:hover { background: var(--primary-2); }
.facets__n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--primary); font-size: 0.8rem; font-weight: 700; }
.listing--facets .empty-note { display: grid; justify-items: start; gap: 12px; padding: 24px; border-radius: var(--r); background: var(--white); box-shadow: var(--sh); }

/* ------------------------------------------------ below 1024px: sort bar with the Filters button; the panel */
@media (max-width: 1023px) {
  .listing--facets .toolbar { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
  .listing--facets .toolbar__right { flex: 1 1 auto; justify-content: flex-end; margin-left: auto; }
  .js-facets .facets__panel { position: fixed; z-index: 85; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; width: min(420px, 100%); padding: 0 20px; border-radius: 0 22px 22px 0; overflow-y: auto; overscroll-behavior: contain; box-shadow: var(--sh-2); transform: translateX(-102%); visibility: hidden; transition: transform 260ms var(--ease), visibility 0s linear 260ms; }
  .js-facets .facets.is-open .facets__panel { transform: none; visibility: visible; transition: transform 260ms var(--ease); }
  .js-facets .facets__head { position: sticky; z-index: 1; top: 0; margin: 0 -20px; padding: 14px 20px 12px; background: var(--white); border-bottom: 1px solid var(--line); }
  .js-facets .facets__applied { padding-top: 14px; }
  .js-facets .facets__x { display: grid; }
  .js-facets .facets__foot { position: sticky; bottom: 0; display: block; margin: auto -20px 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); }
  .js-facets .facets__done { width: 100%; gap: 0.3em; }
  .js-facets .facets__panel { scroll-padding-bottom: 88px; }
  .js-facets .facets__head + .fgroup, .js-facets .facets__applied[hidden] + .fgroup { border-top: 0; }
  .facets__scrim { position: fixed; z-index: 84; inset: 0; background: rgba(var(--shadow-rgb), 0.45); }
  html.facets-lock, html.facets-lock body { overflow: hidden; }
}
@media (max-width: 439px) {
  .js-facets .facets__panel { border-radius: 0; }
}
@media (max-width: 639px) {
  .listing--facets .toolbar__right { display: contents; }
  .listing--facets .toolbar .sort { margin-left: auto; }
  .listing--facets .toolbar .sort > span { display: none; }
  .listing--facets .toolbar__shown { order: 3; flex-basis: 100%; padding-left: 4px; font-size: 0.86rem; }
}

/* ------------------------------------------------ 1024px and up: the left column */
@media (min-width: 1024px) {
  .listing--facets { display: grid; grid-template-columns: 260px minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: var(--gap); align-items: start; }
  .listing--facets > .facets { grid-column: 1; grid-row: 1 / span 4; position: sticky; top: 92px; }
  .listing--facets .facets__panel { max-height: calc(100vh - 116px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .listing--facets > .toolbar, .listing--facets > .grid, .listing--facets > .empty-note, .listing--facets > .more { grid-column: 2; }
  .listing--facets > .toolbar { position: static; } /* as before on desktop: the sort bar scrolls away; the sidebar stays */
  .listing--facets > .toolbar > .toolbar__right { justify-content: space-between; width: 100%; padding-left: 6px; }
  .listing--facets > .grid.grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .listing--facets .facets__open, .listing--facets .facets__scrim { display: none !important; }
}
@media (min-width: 1360px) {
  .listing--facets > .grid.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Product page buyer reviews (owner, 2026-12-02): build/templates/partials/product-reviews.mjs, script
   assets-src/js/product-reviews.js. Option A tokens only, and the home carousel's own card parts (25-reviews.css:
   .review__card, .review__stars, .review__text, .review__meta), restyled here inside .prv only, so the home carousel
   does not change.
   - .prating: the star line under the product title (products with 3+ reviews averaging 4.0 or more), a link to #reviews
   - .prv: the section at the foot of the page, design "Summary + photo strip + list" (owner pick, 2026-12-02):
     the H2 with the rating count as a chip; from 1024px a sticky left rail (one white card: the summary, then the
     filter pills) beside one white panel that holds the "Buyer photos" strip, then the reviews as rows split by
     hairlines (stars, name and month on one line, then the text; the buyer photos beside the text from 768px), then
     the count note and "Show more reviews". Below 1024px the rail is a block on top and the pills one row that
     scrolls sideways inside the card (the page itself never scrolls sideways). Long reviews show 6 lines and a
     "Read more" button (product-reviews.js; nothing is clamped without script).
   Stars are the carousel's amber (#c27a12, 3.45:1 on white, above the 3:1 needed for graphics). */

.prating, .prv { --star: #c27a12; }
.prv { --rv-pad: clamp(18px, 2.4vw, 30px); }
.prv .vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------ the star line in the buy box */
.prating { margin-top: 12px; }
.prating__link { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.prating__stars { display: inline-flex; gap: 2px; }
.prating__stars .review__star { width: 18px; height: 18px; }
.prating__avg { font-weight: 680; letter-spacing: -0.01em; }
.prating__count { color: var(--muted); font-size: 0.95rem; }
.prating__link:hover .prating__count { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------ heading: "Buyer reviews" + the rating count, the note line small */
.prv .sechead { max-width: none; margin-bottom: clamp(16px, 2vw, 24px); }
.prv .sechead p { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }
.prv__hcount { display: inline-block; margin-left: 0.35em; padding: 0.2em 0.62em; border-radius: 999px; background: var(--tint); color: var(--primary); font-size: 0.42em; font-weight: 650; font-stretch: 100%; letter-spacing: 0; line-height: 1.2; vertical-align: 0.38em; white-space: nowrap; }

/* ------------------------------------------------ layout: rail + main */
.prv > .prv__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); align-items: start; }
@media (min-width: 1024px) {
  .prv > .prv__layout:has(> .prv__rail) { grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 2.6vw, 36px); }
  .prv .prv__rail { position: sticky; top: 96px; }
}

/* the rail: one white card, the summary on top and the pills under it */
.prv__rail { display: grid; min-width: 0; padding: var(--rv-pad); border-radius: var(--r); background: var(--white); box-shadow: var(--sh); }

/* summary: average, its stars, the count, and one bar per star level */
.prv .prv__summary { display: grid; gap: 6px; align-content: start; }
.prv__avg { display: flex; align-items: baseline; gap: 10px; }
.prv .prv__avg b { color: var(--ink); font-size: clamp(2.5rem, 2.1rem + 1vw, 3rem); font-weight: 680; letter-spacing: -0.03em; line-height: 1; }
.prv__avg span { color: var(--muted); font-weight: 520; }
.prv__glyphs { display: flex; gap: 3px; }
.prv__avgstars .review__star { width: 22px; height: 22px; }
.prv .prv__based { color: var(--muted); font-size: 0.92rem; }
.prv .prv__dist { display: grid; gap: 5px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.prv .prv__dist li { display: grid; grid-template-columns: 3.9em minmax(0, 1fr) 2.4em; align-items: center; gap: 10px; font-size: 0.88rem; line-height: 1.35; }
.prv__dist-label { color: var(--ink-2); white-space: nowrap; }
.prv__dist-n { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.prv__bar { display: block; width: 100%; height: 8px; overflow: visible; }
.prv__track { fill: var(--tint); }
.prv__fill { fill: var(--star); }
@media (min-width: 640px) and (max-width: 1023px) {
  /* tablets: the average beside the bars */
  .prv .prv__summary { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "avg dist" "stars dist" "based dist"; column-gap: clamp(24px, 4vw, 44px); }
  .prv__avg { grid-area: avg; }
  .prv__avgstars { grid-area: stars; }
  .prv__based { grid-area: based; align-self: start; }
  .prv .prv__dist { grid-area: dist; padding-left: clamp(24px, 4vw, 48px); border-top: 0; border-left: 1px solid var(--line); }
}
/* a product whose reviews are all withheld from the list: the summary alone, at a readable width */
.prv__layout--summary .prv__summary { max-width: 560px; }

/* filter pills (product-reviews.js filters the cards the page holds; hidden without script) */
.prv__filters { min-width: 0; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.prv__filters[hidden] { display: none; }
.prv__filters-h { margin-bottom: 10px; color: var(--ink); font-size: 0.9rem; font-weight: 620; }
.prv__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.prv__pill { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 7px 14px; border: 0; border-radius: 999px; background: var(--tint-2); color: var(--ink); font-size: 0.92rem; font-weight: 580; white-space: nowrap; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: background-color 150ms var(--ease), box-shadow 150ms var(--ease); }
.prv__pill:hover { box-shadow: inset 0 0 0 1.5px var(--primary); }
.prv__pill-n { color: var(--muted); font-size: 0.84rem; font-weight: 560; font-variant-numeric: tabular-nums; }
.prv__pill[aria-pressed="true"] { background: var(--primary); color: #fff; box-shadow: none; }
.prv__pill[aria-pressed="true"] .prv__pill-n { color: var(--on-primary); }
.prv__scope { margin-top: 10px; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
@media (max-width: 1023px) {
  /* one row that scrolls sideways inside the card (the page itself never scrolls sideways) */
  .prv__pills { flex-wrap: nowrap; margin: -7px calc(-1 * var(--rv-pad)); padding: 7px var(--rv-pad); overflow-x: auto; overscroll-behavior-x: contain; scroll-padding-inline: var(--rv-pad); scrollbar-width: none; }
  .prv__pills::-webkit-scrollbar { display: none; }
  .prv__pill { flex: none; }
}

/* ------------------------------------------------ the main panel: photo strip, then the list */
.prv .prv__main { min-width: 0; padding: 0 var(--rv-pad); border-radius: var(--r); background: var(--white); box-shadow: var(--sh); }
.prv__strip { padding: var(--rv-pad) 0 calc(var(--rv-pad) - 4px); border-bottom: 1px solid var(--line); }
.prv__strip-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; color: var(--ink); font-size: 1rem; font-weight: 640; letter-spacing: -0.01em; }
.prv__strip-h span { color: var(--muted); font-size: 0.88rem; font-weight: 540; }
.prv__strip-list { display: flex; gap: 8px; margin: -7px calc(-1 * var(--rv-pad)) -4px; padding: 7px var(--rv-pad) 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--rv-pad); scrollbar-width: thin; scrollbar-color: var(--line) transparent; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
.prv__strip-list > li { flex: none; scroll-snap-align: start; }
.prv__strip-list .prv__photo { width: 104px; height: 104px; border-radius: 12px; }
@media (max-width: 639px) { .prv__strip-list .prv__photo { width: 88px; height: 88px; } }
/* the strip's "+N more" tile (shown by product-reviews.js; it loads and adds the older photos): a photo-sized square */
.prv__strip-more { position: relative; /* holds its visually hidden words, so they never widen the page */ display: grid; place-items: center; width: 104px; height: 104px; padding: 8px; border: 0; border-radius: 12px; background: var(--tint-2); color: var(--ink); font-size: 0.95rem; font-weight: 620; line-height: 1.25; text-align: center; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 150ms var(--ease); }
.prv__strip-more:hover { box-shadow: inset 0 0 0 1.5px var(--primary); }
@media (max-width: 639px) { .prv__strip-more { width: 88px; height: 88px; } }
/* scrolled to the end, the tile stops clear of the strip's right-edge fade (56px) */
.prv__strip-tile { margin-right: calc(56px - var(--rv-pad)); }

/* the rows: stars, name and month on one line, then the text; photos beside the text from 768px */
.prv .prv__list { display: block; }
.prv .prv__list[hidden], .prv .prv__item[hidden] { display: none; }
.prv .prv__item { display: block; min-width: 0; }
/* a hairline above every shown row that follows a shown row (a filter hides rows, so "+" is not enough) */
.prv .prv__item:not([hidden]) ~ .prv__item:not([hidden]), .prv__rest > .prv__list > .prv__item:first-child { border-top: 1px solid var(--line); }
.prv .prv__item .review__card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "stars meta" "text text" "more more" "photos photos"; align-items: center; gap: 0 12px; padding: clamp(18px, 2vw, 22px) 0; border-radius: 0; background: none; box-shadow: none; }
.prv .prv__item .review__stars { grid-area: stars; }
.prv .prv__item .review__star { width: 16px; height: 16px; }
.prv .prv__item .review__meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0; padding: 0; border: 0; line-height: 1.35; }
.prv .prv__item .review__name { font-size: 0.95rem; }
.review__date { color: var(--muted); font-size: 0.86rem; }
.prv .prv__item .review__date::before { content: "\00b7"; margin-right: 8px; color: var(--muted); }
.prv .prv__item .review__text { grid-area: text; align-self: start; max-width: 34em; margin-top: 10px; font-size: 1rem; line-height: 1.6; }
@media (min-width: 1024px) { .prv .prv__item .review__text { font-size: 1.04rem; } }
.prv .prv__item .prv__photos { grid-area: photos; margin-top: 12px; }
.prv__readmore { grid-area: more; justify-self: start; }

/* buyer photos: small square thumbnails; each opens the large photo */
.prv__photos { display: flex; flex-wrap: wrap; gap: 8px; }
.prv__photo { display: block; width: 84px; height: 84px; overflow: hidden; border-radius: 12px; background: var(--tint-2); box-shadow: inset 0 0 0 1px var(--line); }
.prv__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 200ms var(--ease); }
.prv__photo:hover img { transform: scale(1.04); }
.prv .prv__item .prv__photo { width: 72px; height: 72px; border-radius: 10px; }
@media (min-width: 768px) {
  .prv .prv__item .review__card { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "stars meta photos" "text text photos" "more more photos"; grid-template-rows: auto auto 1fr; column-gap: 12px; }
  .prv .prv__item .prv__photos { align-self: start; justify-content: flex-end; max-width: 232px; margin: 0 0 0 32px; }
  /* four photos (the most any review has) sit as a 2 x 2 block rather than 3 + 1 */
  .prv .prv__item .prv__photos:has(> li:nth-child(4)) { display: grid; grid-template-columns: repeat(2, 72px); justify-self: end; }
}

/* ------------------------------------------------ "Read more": a review past 8 lines shows 6 (product-reviews.js) */
.review__text.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.prv__readmore { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--primary); font-size: 0.93rem; font-weight: 620; cursor: pointer; }
.prv__readmore::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.prv__readmore[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(-135deg); }
.prv__readmore:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------ footer of the panel: the count note and "Show more reviews" */
.prv .prv__note { margin-top: 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; text-align: center; text-wrap: balance; }
.prv__more { display: flex; }
.prv .prv__more { min-width: 220px; margin: 12px auto 0; }
.prv__more[hidden] { display: none; }
/* the older reviews: a <details> block whose summary is the button without script (one press shows them all, then the
   summary goes away); product-reviews.js opens it, hides its list and adds 8 cards per press to the list above */
.prv__rest > summary { width: fit-content; list-style: none; }
.prv .prv__rest > summary { margin: 0 auto; }
.prv__rest > summary::-webkit-details-marker { display: none; }
.prv__rest[open] > summary { display: none; }
.prv .prv__rest:not([open]) { padding-top: 20px; border-top: 1px solid var(--line); }
.prv .prv__rest:not([open]) ~ .prv__note--closed { padding-top: 10px; border-top: 0; }
.prv__rest[open] ~ .prv__note--closed { display: none; }
.prv .prv__rest > .prv__list { margin-top: 0; }
.prv .prv__main:has(> :not(.prv__list):not(.prv__strip)) { padding-bottom: clamp(20px, 2.4vw, 26px); }
/* older reviews loading (product-reviews.js): the button keeps its size while it says "Loading…"; a failed load leaves a
   quiet note under the button (or under the photo strip) and the button stays usable */
.prv__more[aria-busy="true"], .prv__strip-more[aria-busy="true"], .prv__filters[aria-busy="true"] .prv__pill { cursor: progress; }
.prv__error { margin-top: 10px; color: var(--muted); font-size: 0.9rem; text-align: center; }
.prv__error[hidden] { display: none; }
.prv__strip + .prv__error, .prv__strip-list + .prv__error { margin: 0 0 4px; text-align: left; }

/* the large photo, opened in a dialog by product-reviews.js (without script the link opens the file itself) */
.prv-lightbox { width: fit-content; max-width: min(100% - 24px, 1180px); max-height: calc(100vh - 24px); padding: 12px; overflow: hidden; border: 0; border-radius: var(--r); background: var(--white); box-shadow: var(--sh-2); }
.prv-lightbox::backdrop { background: rgba(var(--shadow-rgb), 0.72); }
.prv-lightbox img { width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 48px); margin-inline: auto; border-radius: var(--r-sm); object-fit: contain; }
.prv-lightbox__close { position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.94); color: var(--ink); cursor: pointer; box-shadow: var(--sh-2); }
.prv-lightbox__close:hover { background: var(--white); color: var(--primary); }
.prv-lightbox__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

@media (prefers-reduced-motion: reduce) {
  .prv__photo img, .prv__pill, .prv__strip-more { transition: none; }
  .prv__photo:hover img { transform: none; }
}

/* Product gallery arrows and photo counter (owner 2026-12-02). Added by gallery-arrows.js, so pages without
   script keep the plain thumbnails. To remove: delete this file and assets-src/js/gallery-arrows.js. */
.gallery__main--arrows { position: relative; }
.gallery__arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: var(--ink); box-shadow: var(--sh), inset 0 0 0 1px var(--line); cursor: pointer; }
.gallery__arrow:hover { box-shadow: var(--sh), inset 0 0 0 1.5px var(--primary); color: var(--primary); }
.gallery__arrow:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.gallery__arrow--prev { left: 12px; }
.gallery__arrow--prev svg { transform: rotate(180deg); }
.gallery__arrow--next { right: 12px; }
.gallery__count { position: absolute; right: 14px; bottom: 12px; z-index: 2; margin: 0; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: var(--muted); font-size: 0.82rem; font-weight: 560; box-shadow: inset 0 0 0 1px var(--line); }
/* Desktop: thumbnails wrap into whole squares, so no thumbnail is cut off at the edge (owner 2026-12-02).
   Below 1024px the thumbnail row still scrolls sideways. */
@media (min-width: 1024px) {
  .gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); overflow: visible; }
  .gallery__thumbs button { width: 100%; height: auto; aspect-ratio: 1; }
}

/* Guides hub (plan Task 9): /guides/ and /guides/<slug>/. Option A tokens only (white panels with --r and --sh, tint
   boxes, pine links, Instrument Sans). Reused as they are: .pagehead, .crumbs, .h1/.h2/.h3, .lede, .panel, .prose,
   .prose__lead, .ticks, .why__icon, .qa__item, .faq, .goodfor, .card, .grid, .sechead, .help. Everything below is new
   and scoped to guide markup, so no other page changes. */

/* ------------------------------------------------ article head */
.guide-head { margin-top: 18px; }
.guide-head .h1 { max-width: 22em; }
.guide-head .lede { margin-top: 14px; max-width: 42em; }
.guide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 16px; color: var(--muted); font-size: 0.9rem; }
.guide-meta__item { white-space: nowrap; }
.guide-meta__sep { color: var(--line); font-weight: 700; }

/* ------------------------------------------------ article + side column */
/* one column below 1024px; minmax(0, 1fr) keeps a wide table inside its own scroll frame instead of widening the page */
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); align-items: start; margin-top: 28px; }
@media (min-width: 1024px) {
  .guide-layout { grid-template-columns: minmax(0, 820px) minmax(260px, 320px); justify-content: space-between; column-gap: 40px; }
}
.guide-article { padding: clamp(22px, 3.4vw, 44px); font-size: 1.0625rem; line-height: 1.65; }
/* about 70 characters a line: Instrument Sans averages a little over half an em per character */
.guide-article p, .guide-list, .guide-article .faq__a p { max-width: 38em; }
.takeaways a, .guide-list a, .cmp a, .sources a { color: var(--primary); font-weight: 600; text-underline-offset: 3px; }

/* key takeaways: a tint box at the top of the article */
.takeaways { padding: clamp(18px, 2.4vw, 26px); border-radius: var(--r-sm); background: var(--tint); }
.takeaways .ticks { margin-top: 12px; }
.takeaways .ticks li { max-width: 40em; font-size: 1rem; }
.takeaways .ticks .ico { color: var(--primary); }

/* sections: question H2, the answer capsule, running text */
.guide-sec { margin-top: clamp(38px, 4.6vw, 56px); }
.guide-sec .h2 { font-size: clamp(1.45rem, 1.15rem + 0.9vw, 1.95rem); }
.guide-sec .guide-answer { margin-top: 14px; max-width: 34em; }
.guide-sec > p + p, .guide-sec > .guide-list + p { margin-top: 14px; }
.guide-list { display: grid; gap: 8px; margin-top: 14px; padding-left: 1.3em; list-style: disc; }
ol.guide-list { list-style: decimal; }
.guide-list li { padding-left: 4px; }
.guide-list li::marker { color: var(--primary); font-weight: 650; }
.guide-sec .faq { margin-top: 18px; }

/* comparison table: the caption sits above the frame; the table scrolls inside the frame on narrow screens, never the page */
.cmp-fig { margin-top: 24px; }
.cmp-cap { margin-bottom: 10px; color: var(--ink); font-size: 0.98rem; font-weight: 620; line-height: 1.4; }
.cmp-wrap { overflow-x: auto; border-radius: var(--r-sm); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); -webkit-overflow-scrolling: touch; }
.guide-sec > .cmp-fig + p { margin-top: 18px; }
.cmp { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.95rem; line-height: 1.45; }
.cmp th, .cmp td { padding: 11px 16px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp thead th { background: var(--tint-2); color: var(--ink); font-size: 0.9rem; font-weight: 620; }
.cmp tbody th { color: var(--ink); font-weight: 600; }
.cmp td { color: var(--ink-2); }

/* numbered steps (the sizing page's step panels, as tint boxes inside the article) */
.guide-steps { display: grid; gap: 12px; margin-top: 20px; padding: 0; list-style: none; }
.guide-steps .qa__item { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 18px 20px; border-radius: var(--r-sm); background: var(--tint-2); box-shadow: inset 0 0 0 1px var(--line); }
.guide-steps .why__icon { grid-row: span 2; width: 40px; height: 40px; margin: 0; }
/* the title lines up with the middle of the 40px badge (block text, so its words wrap normally) */
.guide-steps .h3 { padding-top: 8px; }
.guide-steps .qa__item p { grid-column: 2; margin-top: 4px; font-size: 1rem; }
@media (max-width: 559px) {
  .guide-steps .qa__item { grid-template-columns: minmax(0, 1fr); }
  .guide-steps .why__icon { grid-row: auto; margin-bottom: 10px; }
  .guide-steps .h3 { padding-top: 0; }
  .guide-steps .qa__item p { grid-column: auto; }
}

/* sources */
.sources { display: grid; gap: 8px; margin-top: 14px; padding-left: 1.4em; list-style: decimal; color: var(--ink-2); font-size: 0.95rem; line-height: 1.5; }
.sources li::marker { color: var(--muted); }

/* side column (1024px and up): the contents list, pinned while the article scrolls; it scrolls itself on short screens */
.guide-side { display: none; }
@media (min-width: 1024px) {
  .guide-side { display: block; align-self: stretch; }
  .toc { position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow-y: auto; }
}
.toc { padding: 18px 16px; }
.toc__head { margin: 0 0 6px 8px; color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.toc ol { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }
.toc a { display: block; padding: 6px 8px; border-radius: 10px; color: var(--ink-2); font-size: 0.9rem; line-height: 1.35; text-decoration: none; }
.toc a:hover { background: var(--tint); color: var(--ink); }
/* "Shop for this": the pill row at the foot of the article, as on the product page's Overview panel */
.guide-article > .goodfor { max-width: none; margin-top: clamp(30px, 3.6vw, 44px); }

/* guide cards (index and "More guides") */
.guide-cards { display: grid; gap: var(--gap); }
@media (min-width: 640px) { .guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .guide-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.guide-card { position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; transition: box-shadow 200ms var(--ease), transform 200ms var(--ease); }
.guide-card .why__icon { margin-bottom: 4px; }
.guide-card__title { font-size: 1.2rem; text-wrap: balance; }
.guide-card__title a { color: var(--ink); text-decoration: none; }
.guide-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.guide-card__title a:focus-visible { outline: none; }
.guide-card:has(a:focus-visible) { outline: 2.5px solid var(--focus); outline-offset: 3px; }
.guide-card p { color: var(--ink-2); text-wrap: pretty; }
.guide-card__go { margin-top: auto; padding-top: 6px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .guide-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
}

/* "Frequently bought together" on product pages (owner 2026-12-02): build/templates/partials/fbt.mjs and
   assets-src/js/fbt.js. Option A tokens only: a white panel, pine for the button and the "This item" label, the
   card photo frame, the sort picker's pill select. Phones (below 640px): photos two to a row, the total centred, a
   full-width button, then the list (name, then picker and price). Tablets (640-1023px): one photo row, then the
   total and the button side by side. Desktops (1024px up): the total and the button beside the photo row. Each width
   range has its own block (the 640px-up block holds the list rules both larger ranges share), so a change for one
   range leaves the others alone. The note (.fbt__why) and the role lines (.fbt__role) are the same on every width. */
.fbt { margin-top: clamp(48px, 6vw, 80px); }
.fbt__title { margin-bottom: 20px; }
/* the note under the heading (data/fbt-notes.json): why buyers pair these products. One readable measure on every width. */
.fbt__title + .fbt__why { margin-top: -8px; }
.fbt__why { max-width: 70ch; margin: 0 0 24px; color: var(--ink-2); font-size: 1rem; line-height: 1.6; text-wrap: pretty; }
.fbt__img { display: block; flex: none; aspect-ratio: 1; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.fbt__img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.fbt__plus { display: grid; place-items: center; color: var(--muted); }
.fbt__plus .ico { stroke-width: 2.2; }
.fbt__img[hidden], .fbt__plus[hidden] { display: none; }
.fbt__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--ink-2); font-weight: 560; }
.fbt__total b { color: var(--ink); font-size: 1.55rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.fbt__total s { color: var(--muted); font-size: 1.02rem; }
.fbt__total s[hidden] { display: none; }
.fbt__add { margin-top: 14px; }
.fbt__add[hidden] { display: none; }
.fbt__add[disabled] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.fbt__add[disabled]:hover { background: var(--primary); }

.fbt__list { margin-top: 24px; border-top: 1px solid var(--line); }
.fbt__item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fbt__item:last-child { border-bottom: 0; padding-bottom: 0; }
.fbt__cb { width: 20px; height: 20px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.fbt__cb:disabled { cursor: default; }
.fbt__line { min-width: 0; transition: opacity 160ms var(--ease); }
.fbt__item.is-off .fbt__line { opacity: 0.5; }
.fbt__name { min-width: 0; color: var(--ink); font-weight: 560; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
a.fbt__name:hover { text-decoration: underline; text-underline-offset: 3px; }
/* a set item's name with its role line under it (the picker and price column are not part of this block) */
.fbt__main { min-width: 0; }
.fbt__main .fbt__name { display: block; }
.fbt__role { display: block; margin-top: 2px; color: var(--muted); font-size: 0.875rem; font-weight: 450; line-height: 1.4; overflow-wrap: anywhere; }
.fbt__name--this { font-weight: 650; cursor: pointer; }
.fbt__this { color: var(--primary); }
.fbt__pick { position: relative; display: inline-flex; align-items: center; min-width: 0; max-width: 100%; }
.fbt__pick select { appearance: none; -webkit-appearance: none; min-width: 0; max-width: 100%; min-height: 38px; padding: 6px 34px 6px 14px; border: 0; border-radius: 999px; background: var(--tint-2); color: var(--ink); font-size: 0.92rem; font-weight: 560; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; text-overflow: ellipsis; }
.fbt__pick select:hover:enabled { box-shadow: inset 0 0 0 1.5px var(--primary); }
.fbt__pick select:disabled { cursor: default; opacity: 1; }
.fbt__pick .ico { position: absolute; right: 12px; color: var(--ink); pointer-events: none; }
.fbt__price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; color: var(--ink); white-space: nowrap; }
.fbt__price b { font-size: 1.05rem; font-weight: 680; letter-spacing: -0.01em; }
.fbt__price s { color: var(--muted); font-size: 0.88rem; }
.fbt__price s[hidden], .fbt__na[hidden] { display: none; }
.fbt__na { color: var(--save); font-size: 0.85rem; font-weight: 600; }

/* phones */
@media (max-width: 639px) {
  .fbt__top { display: grid; gap: 20px; }
  .fbt__imgs { display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr) 30px; align-items: center; row-gap: 12px; }
  .fbt__img { width: 100%; }
  .fbt__plus .ico { width: 18px; height: 18px; }
  .fbt__buy { display: grid; justify-items: center; text-align: center; }
  .fbt__total { justify-content: center; }
  .fbt__add { width: 100%; }
  .fbt__item { align-items: start; }
  .fbt__cb { margin-top: 2px; }
  .fbt__line { display: flex; flex-wrap: wrap; gap: 8px; }
  .fbt__name, .fbt__main { flex: 1 1 100%; }
  /* the picker gives way (its label ends in "…") so the price always stays beside it */
  .fbt__meta { display: flex; flex: 1 1 100%; align-items: center; gap: 12px; min-width: 0; }
  .fbt__pick { flex: 0 1 auto; }
  .fbt__pick select { width: 100%; }
  .fbt__price { flex: none; }
}

/* tablets and desktops: the list */
@media (min-width: 640px) {
  .fbt__top { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
  .fbt__imgs { display: flex; flex: none; align-items: center; }
  .fbt__plus { width: 36px; }
  .fbt__plus .ico { width: 20px; height: 20px; }
  .fbt__item { align-items: center; }
  .fbt__line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
  .fbt__name, .fbt__main { flex: 1 1 260px; }
  .fbt__meta { display: flex; flex: 0 1 auto; align-items: center; gap: 16px; min-width: 0; max-width: 100%; margin-left: auto; }
  .fbt__pick { flex: 0 1 auto; }
  .fbt__pick select { width: 100%; }
  .fbt__price { flex: none; justify-content: flex-end; }
}
/* tablets: the photo row on its own line, then the total and the button side by side (no jump when a line is ticked
   or unticked) */
@media (min-width: 640px) and (max-width: 1023px) {
  .fbt__img { width: clamp(96px, 15vw, 140px); }
  .fbt__buy { display: flex; flex: 1 1 100%; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
  .fbt__add { margin-top: 0; }
  /* a long variant label ends in "…" here, so the picker and price stay on the name's row */
  .fbt__pick { max-width: 15rem; }
}
/* desktops: the total and the button beside the photo row */
@media (min-width: 1024px) {
  .fbt__img { width: clamp(96px, 11vw, 150px); }
  .fbt__buy { flex: 1 1 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .fbt__line { transition: none; }
}

/* Phone number in the top bar (owner 2026-12-02, "for now"). Set phone to null in build/site.config.mjs to remove. */
.notice { flex-wrap: wrap; row-gap: 2px; }
.notice__call { margin-left: 14px; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, 0.35); color: inherit; font-weight: 640; text-decoration: none; white-space: nowrap; }
.notice__call:hover { text-decoration: underline; }
@media (max-width: 479px) { .notice__call { margin-left: 0; padding-left: 0; border-left: 0; flex-basis: 100%; } }

/* Rich Solar product page extras (owner, 2026-12-02; build/templates/partials/product-extras.mjs): the store promises in
   the buy box, short notices, the Videos section, the full spec table with group headings, a kit's part specs, the
   side column (what's included, downloads with file sizes, warranty, notices), own-words sections, pure-fact tables
   and "Why choose Rich Solar". Option A's tokens only (white panels, --r, --sh, pine primary, amber highlight); the
   comparison tables reuse the guides' .cmp styles (30-guides.css). Only Rich Solar product pages carry these classes. */

/* ------------------------------------------------ store promises (buy box and "Why choose Rich Solar") */
.promise { container-type: inline-size; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; border-radius: var(--r-sm); background: var(--tint-2); box-shadow: inset 0 0 0 1px var(--line); }
.promise li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 0; padding: 12px 8px; color: var(--ink); font-size: 0.86rem; font-weight: 620; line-height: 1.25; text-align: center; }
.promise li + li { box-shadow: inset 1px 0 0 var(--line); }
.promise__icon { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--white); color: var(--primary); box-shadow: inset 0 0 0 1px var(--line); }
.promise__icon .ico { width: 18px; height: 18px; }
@container (min-width: 500px) {
  .promise li { flex-direction: row; gap: 10px; padding: 12px 14px; text-align: left; }
}

.pdx-note { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--save-bg); color: var(--ink); font-size: 0.92rem; font-weight: 600; line-height: 1.35; }
.pdx-note .ico { color: var(--save); }

.pdx-why { margin-top: clamp(48px, 6vw, 80px); }
.pdx-why__box { display: grid; gap: 20px; padding: clamp(24px, 3.4vw, 40px); border-radius: var(--r); background: var(--tint); }
.promise--band { container-type: normal; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 0; background: none; box-shadow: none; }
.promise--band li { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 16px 18px; border-radius: var(--r-sm); background: var(--white); font-size: 1.02rem; text-align: left; box-shadow: var(--sh); }
.promise--band li + li { box-shadow: var(--sh); }
.promise--band .promise__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--highlight); color: var(--primary); box-shadow: none; }
.promise--band .promise__icon .ico { width: 22px; height: 22px; }
@media (min-width: 640px) { .promise--band { grid-template-columns: repeat(3, minmax(0, 1fr)); } .promise--band li { flex-direction: column; align-items: flex-start; } }
@media (min-width: 1024px) { .pdx-why__box { grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); align-items: center; gap: 32px; } .promise--band li { flex-direction: row; align-items: center; } }

/* ------------------------------------------------ videos */
.pdx-videos { margin-top: clamp(48px, 6vw, 80px); }
.vgrid { display: grid; gap: var(--gap); }
.vgrid--1 { max-width: 560px; }
@media (min-width: 640px) { .vgrid--2, .vgrid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .vgrid--2, .vgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vcard { display: grid; align-content: start; overflow: hidden; border-radius: var(--r); background: var(--white); box-shadow: var(--sh); }
.vcard__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease), opacity 200ms var(--ease); }
a.vcard__media:hover img { transform: scale(1.02); opacity: 0.92; }
.vcard__play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: rgba(var(--shadow-rgb), 0.78); box-shadow: 0 10px 24px -10px rgba(var(--shadow-rgb), 0.8), inset 0 0 0 2px rgba(255, 255, 255, 0.85); transform: translate(-50%, -50%); transition: background-color 160ms var(--ease), transform 200ms var(--ease); }
.vcard__play::before { content: ""; margin-left: 5px; border-block: 12px solid transparent; border-left: 19px solid #fff; }
a.vcard__media:hover .vcard__play { background: var(--primary); transform: translate(-50%, -50%) scale(1.06); }
a.vcard__media:focus-visible { outline-offset: -4px; }
.vcard__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vcard__media--file { display: grid; place-items: center; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%); text-decoration: none; }
.vcard__file { position: absolute; left: 16px; bottom: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: var(--on-primary); font-size: 0.8rem; font-weight: 600; }
.vcard__title { padding: 16px 20px 0; color: var(--ink); font-size: 1.02rem; font-weight: 620; line-height: 1.35; text-wrap: pretty; }
.vcard__meta { padding: 4px 20px 18px; color: var(--muted); font-size: 0.86rem; }

/* ------------------------------------------------ specifications: groups, the kit's parts, the side column */
.pdx-specs .spec td { overflow-wrap: anywhere; }
@media (max-width: 479px) { .pdx-specs .spec th { width: 48%; } }
.spec .spec__group th { width: auto; padding: 22px 0 8px; border-top: 0; color: var(--primary); font-size: 0.95rem; font-weight: 650; letter-spacing: 0.005em; }
.spec tbody:first-child .spec__group th { padding-top: 4px; }
.pdx-parts { margin-top: clamp(28px, 3vw, 40px); padding-top: clamp(22px, 2.6vw, 30px); border-top: 1px solid var(--line); }
.pdx-parts > .muted { margin-top: 4px; }
.pdx-part { margin-top: 12px; border-radius: var(--r-sm); background: var(--tint-2); box-shadow: inset 0 0 0 1px var(--line); }
.pdx-part summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; color: var(--ink); font-weight: 620; line-height: 1.3; list-style: none; cursor: pointer; }
.pdx-part summary::-webkit-details-marker { display: none; }
.pdx-part summary .ico { color: var(--primary); transition: transform 200ms var(--ease); }
.pdx-part[open] summary .ico { transform: rotate(180deg); }
.pdx-part summary:hover .pdx-part__name { text-decoration: underline; text-underline-offset: 4px; }
.pdx-part__sub { display: block; margin-top: 2px; color: var(--muted); font-size: 0.88rem; font-weight: 500; }
.pdx-part .spec { margin: 0; padding: 0 18px 10px; border-collapse: separate; border-spacing: 0; font-size: 0.93rem; }
.pdx-part .spec th, .pdx-part .spec td { padding: 10px 0; overflow-wrap: anywhere; }
.pdx-part .spec td[colspan] { color: var(--ink-2); font-weight: 500; }
.pdx-part .spec .spec__group th { padding: 16px 0 6px; }

.dl-block .panel { padding: 22px; }
.pdx-dl__group { margin-top: 16px; color: var(--muted); font-size: 0.85rem; font-weight: 620; letter-spacing: 0.01em; }
.pdx-dl__group + ul { margin-top: 8px; }
.pdx-dl b { overflow-wrap: anywhere; }
.pdx-dl a > span { min-width: 0; }
.pdx-inc .parts { margin-top: 10px; }
.pdx-inc__note { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.pdx-warranty .ticks { margin-top: 12px; }
.pdx-notice { background: var(--save-bg); box-shadow: none; }
.pdx-notice ul { display: grid; gap: 8px; margin-top: 10px; padding-left: 18px; list-style: disc; color: var(--ink); font-size: 0.93rem; line-height: 1.45; }

/* ------------------------------------------------ own-words sections and pure-fact tables */
.pdx-sections { display: grid; gap: var(--gap); margin-top: var(--gap); }
.pdx-sec { display: grid; gap: clamp(18px, 2.4vw, 32px); padding: clamp(22px, 3vw, 36px); border-radius: var(--r); background: var(--white); box-shadow: var(--sh); }
.pdx-sec__text p { max-width: 46em; margin-top: 12px; text-wrap: pretty; }
.pdx-sec__text .ticks { margin-top: 14px; }
.pdx-sec__media { overflow: hidden; border-radius: var(--r-sm); background: var(--tint-2); }
.pdx-sec__media img { width: 100%; height: auto; }
@media (min-width: 900px) {
  .pdx-sec--img { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .pdx-sec--flip .pdx-sec__media { order: 2; }
  .pdx-sec--img > .pdx-tiles, .pdx-sec--img > .cmp-fig { grid-column: 1 / -1; }
}
.pdx-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 900px) { .pdx-tiles { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.pdx-tile { display: grid; align-content: start; gap: 6px; padding: 14px; border-radius: var(--r-sm); background: var(--tint-2); box-shadow: inset 0 0 0 1px var(--line); }
.pdx-tile__img { overflow: hidden; border-radius: 10px; }
.pdx-tile__title { color: var(--ink); font-weight: 620; line-height: 1.3; }
.pdx-tile p:not(.pdx-tile__title) { color: var(--ink-2); font-size: 0.92rem; }
.pdx-facts .panel { display: grid; gap: 8px; }
.pdx-facts__h:not(:first-child) { margin-top: 22px; }
.pdx-cmp { margin-top: 6px; }
.pdx-cmp .cmp { min-width: 0; }
.pdx-cmp--wide .cmp { min-width: 34rem; }

/* protocol code lists and numbered parts pictures (pure facts from the maker) */
.pdx-facts__note { color: var(--muted); font-size: 0.92rem; }
.pdx-codes { display: grid; gap: 14px; margin-top: 6px; }
@media (min-width: 640px) { .pdx-codes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pdx-codes__col { padding: 16px 18px; border-radius: var(--r-sm); background: var(--tint-2); box-shadow: inset 0 0 0 1px var(--line); }
.pdx-codes__h { color: var(--ink); font-weight: 650; }
.pdx-codes ul { margin-top: 10px; color: var(--ink-2); font-size: 0.94rem; }
.pdx-codes li { padding-block: 2px; break-inside: avoid; }
@media (min-width: 1024px) { .pdx-codes ul { column-count: 2; column-gap: 20px; } }
.pdx-pfs { display: grid; gap: var(--gap); margin-top: 6px; }
@media (min-width: 640px) { .pdx-pfs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pdx-pfs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pdx-pf { display: grid; align-content: start; gap: 14px; padding: 16px; border-radius: var(--r-sm); background: var(--tint-2); box-shadow: inset 0 0 0 1px var(--line); }
.pdx-pf__img { overflow: hidden; border-radius: 10px; background: var(--white); }
.pdx-pf__img img { width: 100%; height: auto; }
.pdx-pf__legend { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--ink); font-size: 0.93rem; line-height: 1.35; }
.pdx-pf__legend li { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: start; gap: 10px; }
.pdx-pf__n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--save); color: #fff; font-size: 0.75rem; font-weight: 700; }

/* Spec chips in the buy box: a long value such as "Monocrystalline" ran outside its chip in the fixed 4-column
   grid (owner 2026-12-02). Chips now size to their text and share the row; they wrap to a new row when the
   row is full, so a value never leaves its chip. */
.keychips { display: flex; flex-wrap: wrap; }
.keychips li { flex: 1 1 auto; min-width: min-content; }
.keychips b, .keychips span { white-space: nowrap; }
/* Option tiles (quantity packs such as "8 panels", "2 Batteries"): the 104px tiles were too narrow, so the
   label wrapped and ran past the tile edge on 9 products. Tiles are wider and the label stays on one line. */
.options--grid { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
.options--grid .opt__name { white-space: nowrap; }
/* Feature sections: a wide table inside a section widened the whole grid on phones (DC-DC charger pages
   scrolled sideways at 390px). The grid column may now shrink, so the table scrolls inside its own frame. */
.pdx-sections, .pdx-sec { grid-template-columns: minmax(0, 1fr); }
/* The "Compare the models" table sits in a grid panel; a grid item will not shrink below its content unless told
   to, so the table widened the page on phones. Now the figure may shrink and the table scrolls in its frame. */
.pdx-cmp, .cmp-fig { min-width: 0; max-width: 100%; }
.pdx-cmp .cmp-wrap, .cmp-fig .cmp-wrap { overflow-x: auto; }
/* "Technical details" block under the shopper-friendly overview (owner 2026-12-02). */
.pdp-tech { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.pdp-tech .h3 { margin-bottom: 8px; }
.pdp-tech p { color: var(--muted); font-size: 0.95rem; }
/* The "Quantity" label takes the full row, so the first option does not sit beside it. */
.options--grid legend { grid-column: 1 / -1; }
/* Maker's product name on cards, e.g. "MEGA 250 PRO" (owner 2026-12-02). */
.card__series { margin-bottom: 2px; color: var(--primary); font-size: 0.78rem; font-weight: 680; letter-spacing: 0.06em; text-transform: uppercase; }

/* Store policy pages (build/templates/policy.mjs): /policies/ and /policies/<id>/. They reuse the guide layout
   (30-guides.css) and the product spec table; every rule below is scoped to .p-policy, so no other page changes. */

/* the first section sits at the top of the article panel (guide sections otherwise open with a large top margin) */
.p-policy .guide-article > .guide-sec:first-child { margin-top: 0; }

/* two-column key/value tables use the spec table; the caption above it already gives the gap */
.p-policy .cmp-fig .spec { margin-top: 0; }
.p-policy .spec thead th { padding-top: 0; border-top: 0; color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.p-policy .spec td .spec__list { margin: 0; padding: 0; list-style: none; }

/* "terms by brand": one framed block per brand inside the article; its parts sit under small headings */
.p-policy .policy-brand { margin-top: 24px; padding: clamp(18px, 2.6vw, 30px); border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); }
.p-policy .policy-brand__name { margin: 0; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); }
.p-policy .policy-brand > p { margin-top: 10px; }
.p-policy .policy-brand__h { margin: 28px 0 0; color: var(--ink); font-size: 1.06rem; font-weight: 640; letter-spacing: -0.01em; line-height: 1.3; }
.p-policy .policy-brand__h + p, .p-policy .policy-brand__h + .guide-list { margin-top: 10px; }
.p-policy .policy-brand > p + p, .p-policy .policy-brand > .guide-list + p { margin-top: 12px; }
.p-policy .policy-brand .guide-list { margin-top: 12px; }
/* a brand block's entry in the contents list sits indented under its section */
.p-policy .toc .toc__sub a { padding-left: 20px; }

/* links in check-mark lists, table cells and the contact box look like the links in running text */
.p-policy .ticks a, .p-policy .spec a, .p-policy .ask a { color: var(--primary); font-weight: 600; text-underline-offset: 3px; }
