/* SuperVentas · independent local prototype. All visual assets are local. */
:root {
  color-scheme: light;
  --ink: #17211e;
  --muted: #56645d;
  --green: #173c36;
  --green-hover: #234f46;
  --green-soft: #eef4f0;
  --surface: #f4f6f3;
  --line: #e1e6e2;
  --white: #fff;
  --radius: 10px;
  --page-width: 1200px;
  --gutter: 24px;
  --mobile-nav-height: calc(68px + env(safe-area-inset-bottom, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
body.has-tray { padding-bottom: 136px; }
button, input, select, textarea { font: inherit; }
button, select, input[type="checkbox"] { cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 4px; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button svg, a svg { flex-shrink: 0; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-weight: 650; line-height: 1.16; }
h1 { margin-bottom: 16px; font-size: clamp(2rem, 4.2vw, 3.75rem); letter-spacing: -.045em; }
h2 { margin-bottom: 16px; font-size: clamp(1.5rem, 2.5vw, 2rem); letter-spacing: -.03em; }
h3 { margin-bottom: 8px; font-size: 1.15rem; letter-spacing: -.02em; }
p { margin-bottom: 16px; }
strong { font-weight: 650; }
small { font-size: .8125rem; }
hr { margin: 28px 0; border: 0; border-top: 1px solid var(--line); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }
input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.container { width: min(var(--page-width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
main.container { min-height: 55vh; padding-top: 36px; padding-bottom: 72px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 8px; left: 12px; z-index: 100;
  padding: 12px 20px; border-radius: 6px; color: white; background: var(--green);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

/* Shared navigation */
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner {
  display: grid; grid-template-columns: auto minmax(200px, 1fr) auto; align-items: center;
  gap: 36px; width: min(var(--page-width), calc(100% - var(--gutter) * 2));
  min-height: 84px; margin-inline: auto; padding-block: 15px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-size: 1.4rem; font-weight: 750; letter-spacing: -.06em; text-decoration: none; white-space: nowrap; }
.brand-logo { display: block; width: 174px; height: auto; object-fit: contain; }
.search-form, .hero-search { display: flex; align-items: center; min-width: 0; min-height: 46px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.search-form { width: 100%; max-width: 460px; margin-inline: auto; }
.search-form input, .hero-search input { width: 100%; min-width: 0; height: 44px; padding: 10px 14px; border: 0; border-radius: 8px; color: var(--ink); background: transparent; }
.search-form input::placeholder, .hero-search input::placeholder { color: var(--muted); opacity: 1; }
.search-form button { display: grid; place-items: center; width: 46px; min-height: 44px; padding: 8px; flex-shrink: 0; border: 0; border-radius: 7px; background: transparent; color: var(--green); }
.search-form button svg { width: 19px; height: 19px; }
.search-form > svg { margin-left: 14px; flex-shrink: 0; color: var(--muted); }
.search-form:focus-within, .hero-search:focus-within { border-color: var(--green); }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 12px; border-radius: 6px; color: var(--muted); font-size: .875rem; font-weight: 550; text-decoration: none; white-space: nowrap; }
.site-nav a[aria-current="page"], .site-nav a.is-active { background: var(--green-soft); color: var(--green); }
.nav-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding-inline: 4px; border-radius: 9px; color: white; background: var(--green); font-size: .6875rem; line-height: 1; }
.site-nav a.icon-button { position: relative; width: 44px; min-width: 44px; padding: 10px; }
.site-nav a.icon-button .nav-count { position: absolute; top: 0; right: -2px; border: 2px solid white; height: 21px; min-width: 21px; }

/* The public taxonomy has categories, subcategories and comparable families. */
.department-nav { display: flex; gap: 8px 24px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.department-nav a { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 44px; color: var(--muted); font-size: .875rem; text-decoration: none; }
.department-nav a:first-child, .department-nav a[aria-current] { color: var(--green); font-weight: 650; }
.department-feature-grid, .department-grid, .section-grid { display: grid; gap: 14px; }
.department-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; }
.department-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.department-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.department-title { display: flex; align-items: center; gap: 12px; min-height: 68px; color: var(--ink); text-decoration: none; }
.department-title > span { min-width: 0; flex: 1; }
.department-title > img { width: 50px; flex-shrink: 0; }
.department-title strong { display: block; line-height: 1.35; font-size: .9375rem; }
.department-title small { display: block; color: var(--muted); margin-top: 4px; font-size: .75rem; }
.department-title svg { flex-shrink: 0; width: 18px; }
.department-featured { padding: 22px; }
.department-featured .department-title strong { font-size: 1.375rem; }
.department-featured .department-title > img { width: 80px; }
.department-featured p { margin: 12px 0; color: var(--muted); font-size: .875rem; }
.subcategory-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.subcategory-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
.section-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.section-card { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.section-card strong { line-height: 1.35; }
.section-card > span { grid-row: 2; color: var(--muted); font-size: .8125rem; }
.section-card > svg { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.department-card:focus-within, .section-card:hover, .category-card:hover { border-color: var(--green); }
.taxonomy-children { margin-bottom: 32px; }
.hero.hero-compact { display: block; padding-top: 0; padding-bottom: 28px; margin-bottom: 32px; }
.hero-compact h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.hero-compact .hero-copy { position: relative; padding-right: 230px; }
.hero-compact .hero-copy > a { position: absolute; right: 0; top: 42px; }
@media (max-width: 1023px) {
  .department-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .site-header { position: static; }
  .department-nav { gap: 20px; }
  .department-feature-grid { grid-template-columns: 1fr; }
  .department-card, .department-featured { padding: 16px; }
  .department-featured .department-title strong { font-size: 1.25rem; }
  .department-title > img { width: 36px; }
  .department-grid .department-title { flex-wrap: wrap; }
  .department-grid .department-title > span { flex-basis: calc(100% - 58px); }
  .department-grid .department-title > svg { display: none; }
  .section-grid { grid-template-columns: 1fr; }
  .hero-compact .hero-copy { padding-right: 0; }
  .hero-compact .hero-copy > a { position: static; }
}

/* Home and section headings */
.page-heading { margin-bottom: 32px; }
.page-heading p { max-width: 720px; margin-bottom: 0; color: var(--muted); }
.eyebrow { margin-bottom: 12px; color: var(--green); font-size: .6875rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.hero { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 72px; padding: 16px 0 42px; border-bottom: 1px solid var(--line); margin-bottom: 44px; }
.hero h1 { font-size: clamp(2.7rem, 5vw, 4.2rem); }
.hero h1 span { color: var(--green); }
.hero-copy > p:not(.eyebrow) { max-width: 530px; color: var(--muted); font-size: 1.0625rem; }
.hero-note { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding-left: 32px; border-left: 1px solid var(--line); }
.hero-note p { max-width: 280px; margin-bottom: 12px; color: var(--muted); }
.hero-note p:last-child { margin-bottom: 0; }
.hero-note strong { color: var(--ink); }
.hero-note > div { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.hero-note > div > b { color: var(--green); font-size: .75rem; font-weight: 500; }
.hero-note > div > p { margin: 0; color: var(--ink); font-size: .9375rem; }
.hero-note > small { color: var(--muted); font-size: .6875rem; }
.hero-search { max-width: 560px; margin-top: 24px; background: var(--white); }
.hero-search button { flex-shrink: 0; margin: 3px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; }
.section-heading p { margin: 0; color: var(--muted); font-size: .875rem; }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--green); font-size: .875rem; font-weight: 600; }
main > section, main.container > section { margin-bottom: 48px; }
main > section:last-child, main.container > section:last-child { margin-bottom: 0; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.category-card { display: flex; align-items: center; gap: 14px; min-height: 96px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.category-icon { display: grid; place-items: center; width: 42px; min-width: 42px; height: 48px; }
.category-icon img, .category-icon svg { width: 42px; height: 42px; object-fit: contain; }
.category-card h3 { margin: 0 0 4px; font-size: .875rem; line-height: 1.35; letter-spacing: -.01em; }
.category-card > span:not(.category-icon):not(.category-arrow) { min-width: 0; }
.category-card strong { display: block; margin: 0 0 4px; font-size: .875rem; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.category-card > div:last-child { min-width: 0; }
.category-meta { display: block; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.category-card .category-arrow { margin-left: auto; color: var(--muted); }

/* Buttons and product cards */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 16px; border: 1px solid transparent; border-radius: 7px; font-size: .875rem; font-weight: 600; line-height: 1.4; text-align: center; text-decoration: none; cursor: pointer; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { border-color: var(--green); color: white; background: var(--green); }
.btn-secondary { border-color: var(--line); color: var(--green); background: white; }
.btn-quiet { color: var(--muted); background: transparent; }
.btn.is-active, .btn[aria-pressed="true"] { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.btn:disabled, .icon-button:disabled { opacity: .55; cursor: not-allowed; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: white; cursor: pointer; }
.icon-button svg { width: 18px; height: 18px; }
.icon-button.is-active, .icon-button[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.product-image { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 24px; border-bottom: 1px solid var(--line); background: var(--surface); }
.product-image img, .product-image svg { width: 100%; height: 100%; max-height: 250px; object-fit: contain; }
.product-image:focus-visible { outline-offset: -5px; }
.product-copy { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.product-category { margin-bottom: 8px; color: var(--muted); font-size: .6875rem; font-weight: 600; letter-spacing: .055em; text-transform: uppercase; }
.product-title { margin-bottom: 8px; font-size: 1.25rem; }
.product-title a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.product-summary { flex: 1; margin-bottom: 20px; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.product-price { margin-bottom: 20px; color: var(--ink); font-size: 1.4375rem; font-weight: 650; letter-spacing: -.04em; }
.price-note { display: block; margin-top: 2px; color: var(--muted); font-size: .6875rem; font-weight: 400; letter-spacing: 0; }
.product-actions { display: grid; grid-template-columns: 1fr 44px; gap: 8px; margin-top: auto; }
.product-actions > .btn-primary { grid-column: 1 / -1; }
.product-actions > .btn-quiet { padding-inline: 8px; }
.product-actions > .icon-button { width: 100%; }
.product-copy > .btn-primary { margin-top: auto; margin-bottom: 8px; }
.product-copy > .btn-primary + .product-actions { margin-top: 0; }
.saved-note { margin-top: 12px; margin-bottom: 0; color: var(--muted); font-size: .75rem; }
.community-invitation { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.community-invitation h2 { margin-bottom: 14px; }
.community-invitation > p:not(.eyebrow) { color: var(--muted); font-size: .9375rem; }

/* Catalogue and filters */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; color: var(--muted); font-size: .75rem; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.catalog-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); align-items: start; gap: 36px; }
.filter-panel { min-width: 0; padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.filter-panel details > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin: -8px 0 12px; font-weight: 650; list-style: none; cursor: pointer; }
.filter-panel details > summary::-webkit-details-marker { display: none; }
.filter-panel details > summary > span { display: none; }
.filter-panel details > summary::after { content: "−"; color: var(--muted); }
.filter-panel details:not([open]) > summary { margin-bottom: -8px; }
.filter-panel details:not([open]) > summary::after { content: "+"; }
.filter-panel h2, .filter-panel h3 { font-size: 1rem; margin-bottom: 20px; }
.filter-field, .form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.filter-field > label, .form-field > label, .filter-field > legend { color: var(--ink); font-size: .8125rem; font-weight: 600; }
.filter-field input, .filter-field select, .form-field input, .form-field select, .form-field textarea { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #cbd4ce; border-radius: 6px; color: var(--ink); background: white; font-size: .9375rem; }
.form-field textarea { min-height: 152px; resize: vertical; }
.filter-field input::placeholder, .form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); opacity: 1; }
.filter-row { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--muted); font-size: .8125rem; }
.filter-row input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; padding: 0; flex-shrink: 0; accent-color: var(--green); }
.filter-check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 16px; color: var(--muted); font-size: .8125rem; }
.filter-check input[type="checkbox"] { width: 18px; height: 18px; margin: 0; padding: 0; flex-shrink: 0; accent-color: var(--green); }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 36px; }
.input-suffix > span { position: absolute; top: 10px; right: 12px; color: var(--muted); pointer-events: none; }
.filter-panel .btn { width: 100%; }
.active-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.filter-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--green); background: var(--green-soft); font-size: .75rem; }
.filter-chip button { display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 4px; color: inherit; background: transparent; }
.filter-chip svg { width: 14px; height: 14px; }
.catalog-results { min-width: 0; }
.catalog-results .product-grid { gap: 16px; }
.catalog-results .product-copy { padding: 18px; }
.catalog-results .product-title { font-size: 1.125rem; }
.catalog-results .product-actions .btn { padding-inline: 10px; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.results-toolbar p { margin: 0; color: var(--muted); font-size: .875rem; }
.results-toolbar label { color: var(--muted); font-size: .8125rem; }
.results-toolbar select { max-width: 100%; min-height: 44px; margin-left: 8px; padding: 8px 30px 8px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: white; font-size: .8125rem; }
.empty-state { padding: 52px 28px; border: 1px dashed #cbd4ce; border-radius: var(--radius); background: var(--surface); text-align: center; }
.empty-state h2, .empty-state h3 { margin-bottom: 12px; }
.empty-state p { max-width: 520px; margin: 0 auto 20px; color: var(--muted); }
.empty-state .btn { margin: 4px; }
.empty-symbol { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 20px; border: 1px solid var(--line); border-radius: var(--radius); background: white; color: var(--green); }

/* Product details */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; margin-bottom: 36px; }
.detail-image { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 50px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.detail-image img, .detail-image svg { width: 100%; height: 100%; object-fit: contain; }
.detail-image-label { position: absolute; bottom: 16px; left: 20px; color: var(--muted); font-size: .6875rem; }
.detail-copy { min-width: 0; }
.detail-copy h1 { font-size: clamp(2rem, 3.5vw, 3rem); }
.detail-copy > p { color: var(--muted); }
.detail-summary { max-width: 500px; font-size: 1.0625rem; }
.detail-copy .product-price { margin-top: 24px; font-size: 2rem; }
.detail-topline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; color: var(--muted); font-size: .75rem; }
.detail-topline .product-category { margin: 0; }
.detail-topline .eyebrow { margin: 0; }
.detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.detail-actions .btn-primary { flex: 1; }
.detail-copy .info-box { margin: 20px 0; padding: 14px 16px; }
.anchor-nav { display: flex; align-items: center; gap: 12px; overflow-x: auto; margin: 0 0 38px; border-bottom: 1px solid var(--line); }
.anchor-nav a { display: flex; align-items: center; min-height: 52px; padding: 10px 18px; border-bottom: 2px solid transparent; color: var(--muted); font-size: .875rem; font-weight: 550; text-decoration: none; white-space: nowrap; }
.anchor-nav a:first-child { padding-left: 0; }
.anchor-nav a.is-active, .anchor-nav a[aria-current="true"] { border-bottom-color: var(--green); color: var(--green); }
.anchor-nav button { display: flex; align-items: center; min-height: 52px; padding: 10px 18px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: .875rem; font-weight: 550; white-space: nowrap; }
.anchor-nav button:first-child { padding-left: 0; }
.anchor-nav button.is-active { border-bottom-color: var(--green); color: var(--green); }
.detail-section { scroll-margin-top: 150px; margin-bottom: 48px; }
.detail-section > p { max-width: 800px; color: var(--muted); }
.detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-box { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.info-box h3 { font-size: 1rem; }
.info-box p { color: var(--muted); font-size: .875rem; }
.info-box p:last-child { margin-bottom: 0; }
.info-box ul { padding-left: 18px; margin: 16px 0 0; color: var(--muted); font-size: .875rem; }
.info-box li { margin-bottom: 8px; padding-left: 4px; }
.info-box li:last-child { margin-bottom: 0; }
.info-box-soft { background: white; }
.spec-list { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-row { display: grid; grid-template-columns: minmax(160px, .8fr) 1.2fr; gap: 24px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: .875rem; }
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: var(--muted); }
.spec-row dd { margin: 0; font-weight: 550; }
.spec-group { padding: 11px 20px; background: var(--surface); color: var(--green); font-size: .6875rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.detail-columns > section.spec-group { padding: 0; margin: 0; background: transparent; color: var(--ink); font-size: 1rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.detail-columns > section.spec-group > h3 { margin-bottom: 14px; font-size: 1rem; font-weight: 600; }
.section-description { margin-bottom: 20px; color: var(--muted); font-size: .875rem; }
.offer-list { display: grid; gap: 12px; }
.offer-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.offer-card h3 { font-size: 1rem; }
.offer-card > div { min-width: 0; }
.offer-price { color: var(--ink); font-size: 1.4375rem; font-weight: 650; letter-spacing: -.04em; }
.offer-price > strong { display: block; }
.offer-price .btn { margin-top: 14px; }
.offer-meta { margin-bottom: 0; color: var(--muted); font-size: .8125rem; }

/* Community */
.community-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.community-toolbar .filter-field { min-width: 220px; margin-bottom: 0; }
.community-toolbar .filter-field label { font-size: .75rem; }
.community-toolbar form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.community-toolbar form > label { flex-basis: 100%; color: var(--muted); font-size: .8125rem; }
.community-toolbar select { max-width: 320px; min-height: 44px; padding: 10px 32px 10px 12px; border: 1px solid #cbd4ce; border-radius: 6px; color: var(--ink); background: white; font-size: .9375rem; }
.community-toolbar form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; width: 100%; }
.community-toolbar form .filter-field { min-width: 0; }
.community-toolbar select { width: 100%; max-width: none; min-width: 0; }
.community-toolbar form > .btn { grid-column: 1 / -1; justify-self: start; }
.thread-list { display: grid; gap: 12px; }
.thread-card { display: block; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.thread-type { display: inline-block; margin-bottom: 10px; color: var(--green); font-size: .6875rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
.thread-type > span + span { display: inline-block; padding-left: 10px; margin-left: 10px; border-left: 1px solid var(--line); color: var(--muted); font-size: .625rem; }
.thread-title { margin: 0 0 8px; font-size: 1.125rem; line-height: 1.35; }
.thread-title a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.thread-excerpt { max-width: 820px; margin-bottom: 12px; color: var(--muted); font-size: .875rem; }
.thread-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 0; color: var(--muted); font-size: .75rem; }
.thread-detail { max-width: 840px; margin-inline: auto; }
.thread-detail .page-heading h1 { font-size: clamp(2rem, 3.8vw, 2.75rem); }
.post { padding: 28px 0; border-bottom: 1px solid var(--line); }
.post:first-of-type { border-top: 1px solid var(--line); }
.post-author { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--ink); font-size: .875rem; font-weight: 600; }
.post-author small { color: var(--muted); font-weight: 400; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--green); background: var(--green-soft); font-size: .875rem; }
.post-author > div > strong { display: block; }
.post-author > div > span { display: block; color: var(--muted); font-size: .6875rem; font-weight: 400; }
.post-number { margin-left: auto; color: var(--muted); font-size: .75rem; font-weight: 400; }
.posts { margin-bottom: 28px; }
.post-body { color: var(--muted); font-size: 1rem; }
.post-body p:last-child { margin-bottom: 0; }
.post .btn { margin-top: 14px; }
.linked-product { display: flex; align-items: center; gap: 20px; padding: 16px 20px; margin: 24px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; }
.linked-product img { width: 76px; height: 76px; object-fit: contain; }
.linked-product > div { min-width: 0; }
.linked-product > span { flex: 1; min-width: 0; }
.linked-product > svg { margin-left: auto; }
.linked-product strong { display: block; margin-bottom: 4px; }
.linked-product small { display: block; color: var(--muted); }
.linked-product .text-link { margin-left: auto; flex-shrink: 0; }

/* Comparison, including a purpose-built two-column mobile presentation */
.compare-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.compare-heading h1 { margin-bottom: 12px; }
.compare-heading p { margin-bottom: 0; color: var(--muted); }
.compare-heading > .btn { margin-top: 8px; flex-shrink: 0; }
.comparison-summary { display: block; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 32px; background: var(--surface); }
.comparison-summary .info-box { padding: 20px; }
.comparison-summary .info-box h3 { line-height: 1.35; }
.comparison-summary .info-box .price-note { margin-top: 10px; }
.comparison-summary > .eyebrow { margin-bottom: 20px; }
.comparison-verdicts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.comparison-verdicts article { min-width: 0; }
.comparison-verdicts h2 { margin-bottom: 8px; font-size: 1.0625rem; line-height: 1.35; letter-spacing: -.01em; }
.comparison-verdicts p { margin-bottom: 10px; color: var(--ink); font-size: .875rem; }
.comparison-verdicts small { display: block; color: var(--muted); font-size: .75rem; }
.comparison-differences { padding-top: 20px; margin: 20px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
.comparison-differences strong { color: var(--ink); }
.compare-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-block: 16px; margin-bottom: 20px; border-block: 1px solid var(--line); }
.compare-controls > p { margin: 0; color: var(--muted); font-size: .8125rem; }
.compare-controls label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-size: .875rem; }
.compare-controls input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--green); }
.compare-controls .filter-check { margin: 0; }
.compare-controls .compare-pair { display: none; }
.compare-pair { display: none; align-items: center; flex-wrap: wrap; gap: 8px; }
.compare-pair label { color: var(--muted); font-size: .8125rem; }
.compare-pair select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 32px 10px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: white; font-size: .875rem; }
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.compare-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.compare-table th, .compare-table td { padding: 17px 20px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); font-size: .875rem; line-height: 1.5; text-align: left; vertical-align: top; }
.compare-table tr:last-child > * { border-bottom: 0; }
.compare-table th:last-child, .compare-table td:last-child { border-right: 0; }
.compare-table th:first-child, .compare-table td:first-child { width: 190px; }
.compare-table tbody th { color: var(--muted); font-weight: 450; }
.compare-table thead th { background: white; font-weight: 600; }
.compare-table .spec-group th, .compare-table .spec-group td { padding: 11px 20px; background: var(--surface); color: var(--green); font-size: .6875rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.compare-product { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 0; }
.compare-product img { width: 100%; height: 132px; padding: 12px; object-fit: contain; background: var(--surface); border-radius: 6px; }
.compare-product h2, .compare-product h3 { margin: 0; font-size: 1rem; line-height: 1.35; }
.compare-product .product-price { margin: 0; font-size: 1.25rem; }
.compare-product .btn { width: 100%; padding-inline: 10px; }
.compare-product .btn-quiet { min-height: 44px; padding: 8px; font-size: .75rem; }
.compare-product > a { display: flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 1rem; font-weight: 600; line-height: 1.4; text-decoration: none; }
.compare-product > span { margin-top: -4px; color: var(--ink); font-size: 1.25rem; font-weight: 600; letter-spacing: -.04em; }
.compare-product > small { margin-top: -10px; color: var(--muted); font-size: .6875rem; font-weight: 400; }
.compare-cell { min-width: 0; }
.compare-cell.difference { background: #f7faf7; }
.compare-table tr.difference > td { background: #f7faf7; }
.difference { color: var(--ink); }
.missing { color: var(--muted); font-style: italic; font-weight: 400; }
.mobile-compare-rows { display: none; }
.mobile-compare-row { border-bottom: 1px solid var(--line); }
.mobile-compare-label { margin: 0; padding: 12px 14px; background: var(--surface); color: var(--muted); font-size: .8125rem; font-weight: 550; }
.mobile-compare-cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mobile-compare-cells > * { min-width: 0; margin: 0; padding: 14px; border-right: 1px solid var(--line); font-size: .875rem; }
.mobile-compare-cells > :last-child { border-right: 0; }
.mobile-compare-row.difference .mobile-compare-cells { background: #f7faf7; }
.compare-mobile-header { border-bottom: 1px solid var(--line); }
.compare-disclaimer { margin-top: 16px; margin-bottom: 24px; }

/* A single persistent tray. Body padding keeps the footer and content reachable. */
.compare-tray { position: fixed; right: 0; bottom: 0; left: 0; z-index: 40; border-top: 1px solid #cbd4ce; background: white; box-shadow: 0 -5px 20px rgb(23 33 30 / 4%); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tray-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(var(--page-width), calc(100% - var(--gutter) * 2)); min-height: 96px; margin-inline: auto; padding-block: 14px; }
.tray-products { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0; }
.tray-products > p { margin: 0; color: var(--muted); font-size: .8125rem; }
.tray-item { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 250px; padding: 4px 4px 4px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); font-size: .75rem; }
.tray-item img { width: 32px; height: 32px; object-fit: contain; }
.tray-item > span { min-width: 0; }
.tray-item .icon-button, .tray-item > button { display: grid; place-items: center; min-width: 44px; width: 44px; height: 44px; min-height: 44px; padding: 8px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); }
.tray-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tray-actions .btn-quiet { padding-inline: 10px; }

/* Forms, modal states, and feedback */
.dialog-backdrop { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; background: rgb(23 33 30 / 40%); }
.dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 0; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; box-shadow: 0 16px 64px rgb(23 33 30 / 12%); }
dialog.dialog:not([open]) { display: none; }
dialog.dialog::backdrop { background: rgb(23 33 30 / 40%); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 24px 12px; }
.dialog-header h2 { margin: 6px 0 0; font-size: 1.5rem; }
.dialog-header .icon-button { flex-shrink: 0; border-color: transparent; }
.dialog-body { padding: 12px 24px 24px; }
.dialog-body > p { color: var(--muted); font-size: .875rem; }
.dialog-body .info-box { padding: 16px; margin-bottom: 20px; }
.dialog-body .spec-list { margin-bottom: 20px; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 20px 24px; border-top: 1px solid var(--line); }
.dialog-actions .btn { flex: 0 1 auto; }
.form-note { padding: 16px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--muted); font-size: .875rem; }
.form-note strong { color: var(--ink); }
.form-error { margin: 8px 0 0; color: #8d302a; font-size: .8125rem; }
.form-success { padding: 16px; margin-top: 20px; border: 1px solid #b9d0c1; border-radius: 7px; background: var(--green-soft); color: var(--green); font-size: .875rem; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; max-width: min(420px, calc(100% - 48px)); padding: 14px 20px; border-radius: 8px; color: white; background: var(--green); box-shadow: 0 6px 24px rgb(23 33 30 / 12%); font-size: .875rem; }
body.has-tray .toast { bottom: 118px; }
.error-page { max-width: 700px; padding-block: 48px; margin-inline: auto; text-align: center; }
.error-page p { color: var(--muted); }
.error-page .btn { margin: 4px; }
.site-footer { border-top: 1px solid var(--line); background: white; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; width: min(var(--page-width), calc(100% - var(--gutter) * 2)); margin-inline: auto; padding-block: 32px; color: var(--muted); font-size: .75rem; }
.footer-inner p { margin: 0; }
.footer-inner a { min-height: 44px; display: inline-flex; align-items: center; }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { border-color: var(--green-hover); background: var(--green-hover); }
  .btn-secondary:hover, .icon-button:hover { border-color: #a8b9ad; background: var(--surface); }
  .btn-quiet:hover { color: var(--green); background: var(--surface); }
  .site-nav a:hover { color: var(--green); background: var(--surface); }
  .category-card:hover, .thread-card:hover { border-color: #a8b9ad; background: #fafbf9; }
  .product-title a:hover { color: var(--green); text-decoration: underline; }
  .search-form button:hover { background: var(--green-soft); }
  .anchor-nav a:hover { color: var(--green); }
  .anchor-nav button:hover { color: var(--green); }
  .thread-title a:hover, .compare-product > a:hover { color: var(--green); text-decoration: underline; }
  .linked-product:hover { border-color: #a8b9ad; }
}

@media (max-width: 1100px) {
  .header-inner { gap: 20px; }
  .site-nav a { padding-inline: 10px; }
  .catalog-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 24px; }
  .catalog-results .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-card { padding: 16px 14px; gap: 10px; }
  .hero { gap: 44px; }
  .tray-item { max-width: 205px; }
  .tray-item img { display: none; }
}

@media (max-width: 1050px) {
  .header-inner { grid-template-columns: auto 1fr; gap: 4px 28px; padding-top: 12px; padding-bottom: 6px; }
  .search-form { max-width: none; }
  .site-nav { grid-column: 1 / -1; justify-content: flex-end; }
  .site-nav a { padding: 8px 12px; min-height: 44px; }
  .product-detail { gap: 36px; }
  .detail-image { padding: 36px; }
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .category-card { flex-direction: column; align-items: flex-start; gap: 8px; }
  .category-card .category-arrow { display: none; }
}

@media (min-width: 768px) {
  .filter-panel details:not([open]) > :not(summary) { display: block; }
  .filter-panel details > summary::after { display: none; }
}

@media (min-width: 768px) and (max-width: 900px) {
  body.has-tray { padding-bottom: 176px; }
  body.has-tray .toast { bottom: 152px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1.4fr 1fr; gap: 28px; }
  .hero h1 { font-size: 3.25rem; }
  .hero-note { padding-left: 24px; }
  .detail-actions .btn-primary { flex-basis: 100%; }
  .compare-table th:first-child, .compare-table td:first-child { width: 146px; }
  .compare-table th, .compare-table td { padding-inline: 12px; }
  .compare-product img { height: 108px; }
  .tray-inner { align-items: flex-start; }
  .tray-products { gap: 6px; }
  .tray-item { max-width: 180px; }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; }
  html { scroll-padding-top: 190px; }
  body.has-tray { padding-bottom: 212px; }
  .header-inner { grid-template-columns: 1fr; gap: 7px; padding-block: 10px 6px; }
  .brand { justify-self: start; min-height: 44px; font-size: 1.3rem; }
  .brand-logo { width: 156px; }
  .search-form { grid-row: 2; min-height: 44px; }
  .search-form input { height: 44px; padding-block: 8px; font-size: 1rem; }
  .search-form button { min-height: 44px; }
  .site-nav { grid-row: 3; justify-content: flex-start; gap: 8px; }
  .site-nav a { min-height: 44px; padding-inline: 10px; font-size: .8125rem; }
  main.container { padding-top: 28px; padding-bottom: 48px; }
  .page-heading { margin-bottom: 24px; }
  .page-heading p { font-size: .9375rem; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.5rem; }
  .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 8px; padding-bottom: 28px; margin-bottom: 32px; }
  .hero h1 { max-width: 440px; font-size: clamp(2.5rem, 8vw, 3.25rem); }
  .hero-copy > p:not(.eyebrow) { font-size: 1rem; }
  .hero-note { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .hero-note p { max-width: none; margin-bottom: 8px; font-size: .8125rem; }
  .hero-search { margin-top: 20px; }
  .hero-search .btn { padding-inline: 12px; }
  .section-heading { gap: 4px 16px; margin-bottom: 16px; }
  .section-heading .text-link { font-size: .8125rem; }
  main > section, main.container > section { margin-bottom: 36px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .category-card { min-height: 132px; padding: 16px; }
  .category-card h3 { font-size: .8125rem; }
  .category-card strong { font-size: .8125rem; }
  .category-icon, .category-icon img, .category-icon svg { width: 36px; min-width: 36px; height: 36px; }
  .category-meta { font-size: .6875rem; }
  .product-grid, .catalog-results .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-image { aspect-ratio: 4 / 3; padding: 28px; }
  .product-image img, .product-image svg { max-height: 280px; }
  .product-copy, .catalog-results .product-copy { padding: 20px; }
  .product-title, .catalog-results .product-title { font-size: 1.25rem; }
  .product-summary { font-size: .9375rem; }
  .product-actions .btn { min-height: 46px; }
  .breadcrumb { margin-bottom: 20px; gap: 6px; }
  .catalog-layout { grid-template-columns: 1fr; gap: 24px; }
  .filter-panel { padding: 16px; }
  .filter-panel details > summary { margin: -4px 0 14px; }
  .filter-panel details:not([open]) > summary { margin-bottom: -4px; }
  .filter-panel details[open] > div { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .filter-panel details[open] > form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .filter-panel .filter-field { margin-bottom: 16px; }
  .filter-panel .filter-row { grid-column: 1 / -1; }
  .filter-panel .filter-check { grid-column: 1 / -1; }
  .filter-panel .btn { grid-column: 1 / -1; }
  .results-toolbar { align-items: flex-start; }
  .results-toolbar select { margin-left: 4px; }
  .active-filters { margin-bottom: 16px; }
  .filter-chip { min-height: 44px; }
  .filter-chip button { min-height: 44px; }
  .empty-state { padding: 36px 20px; }
  .product-detail { grid-template-columns: 1fr; gap: 28px; margin-bottom: 28px; }
  .detail-image { aspect-ratio: 4 / 3; padding: 36px; }
  .detail-copy h1 { font-size: 2.125rem; }
  .detail-copy .product-price { margin-top: 20px; }
  .detail-actions .btn-primary { flex-basis: 100%; }
  .detail-actions > .btn-secondary { flex: 1; }
  .anchor-nav { gap: 0; margin-bottom: 28px; }
  .anchor-nav a { padding-inline: 14px; font-size: .8125rem; }
  .anchor-nav a:first-child { padding-left: 0; }
  .anchor-nav button { padding-inline: 14px; font-size: .8125rem; }
  .detail-section { margin-bottom: 36px; scroll-margin-top: 190px; }
  .detail-columns { grid-template-columns: 1fr; gap: 12px; }
  .info-box { padding: 20px; }
  .spec-row { grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 16px; font-size: .8125rem; }
  .spec-group { padding-inline: 16px; }
  .offer-card { gap: 16px; padding: 20px; }
  .offer-card > .btn { width: 100%; }
  .community-toolbar { align-items: stretch; gap: 12px; }
  .community-toolbar .filter-field { flex: 1; min-width: 0; }
  .community-toolbar > .btn { align-self: end; }
  .community-toolbar form { width: 100%; grid-template-columns: 1fr; }
  .community-toolbar select { width: 100%; max-width: none; }
  .community-toolbar form > .btn { width: 100%; }
  .community-toolbar > .btn { width: 100%; }
  .thread-card { padding: 20px; }
  .thread-title { font-size: 1.0625rem; }
  .thread-meta { gap: 6px 12px; }
  .thread-detail .page-heading h1 { font-size: 2rem; }
  .post { padding-block: 24px; }
  .post-author { align-items: flex-start; flex-wrap: wrap; gap: 6px 12px; }
  .linked-product { gap: 12px; padding: 16px; flex-wrap: wrap; }
  .linked-product img { width: 56px; height: 56px; }
  .linked-product > div { flex: 1; }
  .linked-product .text-link { margin-left: 0; }
  .compare-heading { flex-direction: column; gap: 12px; margin-bottom: 24px; }
  .compare-heading > .btn { margin-top: 0; }
  .comparison-summary { grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
  .comparison-summary { padding: 20px; }
  .comparison-verdicts { grid-template-columns: 1fr; gap: 20px; }
  .comparison-summary .info-box { padding: 18px; }
  .compare-controls { display: grid; gap: 10px; }
  .compare-controls > p { font-size: .75rem; }
  .compare-pair { display: flex; }
  .compare-controls .compare-pair { display: flex; align-items: stretch; flex-direction: column; gap: 8px; font-size: .8125rem; }
  .compare-pair > label { width: 100%; }
  .desktop-compare-table { display: none; }
  .mobile-compare-rows { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
  .mobile-compare-rows .compare-product { gap: 8px; padding: 12px; }
  .mobile-compare-rows .compare-product img { height: 100px; padding: 10px; }
  .mobile-compare-rows .compare-product h2, .mobile-compare-rows .compare-product h3 { font-size: .875rem; }
  .mobile-compare-rows .compare-product > a { font-size: .875rem; }
  .mobile-compare-rows .compare-product > span { font-size: 1.125rem; }
  .mobile-compare-rows .compare-product .product-price { font-size: 1.125rem; }
  .mobile-compare-rows .compare-product .btn { padding: 10px 6px; font-size: .75rem; }
  .mobile-compare-rows .spec-group { padding: 11px 14px; border-bottom: 1px solid var(--line); }
  .mobile-compare-row:last-child { border-bottom: 0; }
  .compare-tray { max-height: 42dvh; overflow-y: auto; }
  .tray-inner { flex-direction: column; align-items: stretch; gap: 10px; min-height: 0; padding-block: 12px; }
  .tray-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 6px; }
  .tray-products > p, .tray-products > strong { grid-column: 1 / -1; }
  .tray-item { display: flex; align-items: flex-start; gap: 2px; max-width: none; min-width: 0; min-height: 54px; padding: 6px 2px 6px 8px; font-size: .6875rem; line-height: 1.4; }
  .tray-item > span { align-self: center; flex: 1; }
  .tray-item > button, .tray-item .icon-button { align-self: center; min-width: 44px; width: 44px; height: 44px; padding: 8px; }
  .tray-item img { display: none; }
  .tray-actions { display: grid; grid-template-columns: 1fr auto; width: 100%; }
  .tray-actions .btn-primary { width: 100%; }
  .tray-actions .btn-primary { grid-column: 1; grid-row: 1; }
  .tray-actions .btn-quiet { font-size: .8125rem; }
  .tray-actions .btn-quiet { grid-column: 2; grid-row: 1; }
  .dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 10px; }
  .dialog-backdrop { padding: 12px; }
  .dialog-header { padding: 20px 20px 8px; }
  .dialog-header h2 { font-size: 1.375rem; }
  .dialog-body { padding: 12px 20px 20px; }
  .dialog-actions { padding: 16px 20px; }
  .dialog-actions .btn { flex: 1 1 100%; }
  .dialog-actions .btn-primary { order: -1; }
  .toast { right: 16px; bottom: 16px; max-width: calc(100% - 32px); padding: 12px 16px; font-size: .8125rem; }
  body.has-tray .toast { bottom: 195px; }
  .footer-inner { align-items: flex-start; gap: 12px; padding-block: 24px; }
  .footer-inner p { flex-basis: 100%; }
}

@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .site-nav { gap: 2px; }
  .site-nav a { padding-inline: 8px; font-size: .75rem; }
  .category-card { padding: 14px 12px; min-height: 130px; }
  .category-card h3 { font-size: .8125rem; }
  .hero h1 { font-size: 2.375rem; }
  .hero-search { flex-wrap: wrap; border: 0; background: transparent; gap: 8px; }
  .hero-search input { flex-basis: 100%; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
  .hero-search button { width: 100%; margin: 0; }
  .results-toolbar > label { width: 100%; }
  .results-toolbar select { width: 100%; margin-top: 6px; margin-left: 0; }
  .filter-panel details[open] > div { grid-template-columns: 1fr; }
  .filter-panel details[open] > form { grid-template-columns: 1fr; }
  .community-toolbar { flex-direction: column; }
  .community-toolbar > .btn { align-self: stretch; }
  .tray-item { font-size: .625rem; }
  .tray-item > button, .tray-item .icon-button { min-width: 44px; width: 44px; }
  .mobile-compare-cells > * { padding: 12px 10px; font-size: .8125rem; }
  .mobile-compare-rows .compare-product { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .compare-tray, .site-footer, .toast, .dialog, .skip-link, .product-actions, .detail-actions, .anchor-nav, .filter-panel, .compare-controls { display: none !important; }
  body, body.has-tray { padding-bottom: 0; }
  .container { width: 100%; }
  main.container { padding-block: 0; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-layout { display: block; }
  .desktop-compare-table { display: block; }
  .mobile-compare-rows { display: none; }
  .product-card, .info-box, .thread-card, .spec-row, .compare-table tr { break-inside: avoid; }
  .compare-table-wrap { overflow: visible; }
  a { color: var(--ink); }
}

/* Mobile is the primary journey for editorial content and community requests. */
body { padding-bottom: calc(var(--mobile-nav-height) + 16px); }
body.has-tray { padding-bottom: calc(var(--mobile-nav-height) + 240px); }
.mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 45; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); min-height: var(--mobile-nav-height); padding: 4px 4px calc(4px + env(safe-area-inset-bottom,0px)); border-top: 1px solid var(--line); background: var(--white); }
.mobile-nav a { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; min-height: 60px; min-width: 0; color: var(--muted); text-decoration: none; font-size: .6875rem; font-weight: 600; border-radius: 7px; }
.mobile-nav a[aria-current] { color: var(--green); background: var(--green-soft); }
.mobile-count { position: absolute; right: 8px; top: 2px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px; background: var(--green); color: white; font-size: .625rem; text-align: center; }
.compare-tray { bottom: var(--mobile-nav-height); }
.toast { bottom: calc(var(--mobile-nav-height) + 16px); }
body.has-tray .toast { bottom: calc(var(--mobile-nav-height) + var(--tray-height, 210px) + 16px); }
.format-grid, .ranking-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; margin-bottom: 32px; }
.format-card { display: grid; grid-template-columns: 1fr auto; gap: 7px 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.format-card strong { font-size: 1.0625rem; }
.format-card span { grid-column: 1; color: var(--muted); font-size: .875rem; }
.format-card svg { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.content-notice { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--muted); font-size: .875rem; margin-bottom: 24px; }
.content-notice p:last-child { margin-bottom: 0; }
.ranked-product { display: flex; flex-direction: column; min-width: 0; }
.ranked-product .product-card { flex: 1; }
.ranking-position { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--green); font-size: 1.5rem; font-weight: 650; }
.ranking-position span { font-size: .75rem; color: var(--muted); font-weight: 400; }
.review-intro { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; margin-bottom: 32px; }
.review-intro > img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.review-body { max-width: 760px; }
.product-format-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 16px; }
.product-format-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
.community-entry-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.community-tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 24px; padding: 4px; }
.community-tabs a { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 44px; padding: 10px 14px; border-radius: 7px; color: var(--muted); text-decoration: none; font-size: .875rem; }
.community-tabs a[aria-current] { background: var(--green-soft); color: var(--green); font-weight: 650; }
.community-search { grid-column: 1 / -1; }
.community-form-page { max-width: 640px; }
.form-field select { width: 100%; min-height: 44px; min-width: 0; padding: 10px 12px; border: 1px solid #cbd4ce; border-radius: 6px; background: white; color: var(--ink); }
.community-form-page form > .btn { min-height: 48px; }
.request-details .btn { margin-top: 16px; }
.request-details h2 { font-size: 1.25rem; }
@media (max-width: 767px) {
  .site-nav { display: none; }
  html { scroll-padding-top: 16px; }
  .detail-section { scroll-margin-top: 16px; }
  .header-inner { gap: 12px; padding-bottom: 12px; }
  .department-nav { display: none; }
  .community-entry-actions > a { flex: 1 1 100%; }
  .community-form-page form > .btn { width: 100%; }
  .page-heading h1 { font-size: clamp(1.8rem,7vw,2.4rem); }
  .hero.hero-compact { padding-bottom: 24px; }
}
@media (min-width: 768px) {
  :root { --mobile-nav-height: 0px; }
  body { padding-bottom: 0; }
  body.has-tray { padding-bottom: 136px; }
  .mobile-nav { display: none; }
  .format-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ranking-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .review-intro { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px; }
  .site-nav a { padding-inline: 8px; font-size: .8125rem; }
  .header-inner { gap: 20px; }
}
@media (min-width: 1100px) {
  .format-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media print {
  .mobile-nav, .community-entry-actions, .community-tabs { display: none !important; }
  body, body.has-tray { padding-bottom: 0 !important; }
}

/* Header disclosures: one complete destination, then its smaller choices. */
.header-inner { grid-template-columns: 190px minmax(200px, 1fr) auto; gap: 32px; min-height: 88px; }
.search-form { max-width: 560px; }
.header-utilities { display: flex; align-items: center; gap: 16px; }
.header-saved { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; font-size: .875rem; }
.mobile-menu-toggle { display: none; }
.mega-navigation { border-top: 1px solid var(--line); }
.mega-nav-list { display: flex; align-items: center; gap: 8px; list-style: none; padding: 0; margin-block: 0; }
.mega-nav-item { position: static; }
.mega-toggle, .mega-direct a { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; border: 0; padding: 12px 16px; color: var(--ink); background: transparent; font-size: .875rem; font-weight: 600; text-decoration: none; }
.mega-toggle[aria-expanded="true"] { color: var(--green); background: var(--green-soft); }
.chevron { display: inline-block; width: 7px; height: 7px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); flex-shrink: 0; }
[aria-expanded="true"] > .chevron { transform: rotate(225deg); margin-top: 3px; }
.mega-direct { margin-left: auto; }
.mega-direct a { color: var(--green); }
.mega-direct a[aria-current] { background: var(--green-soft); }
.mega-panel { position: absolute; top: 100%; left: 0; right: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; box-shadow: 0 14px 24px #17211e0d; max-height: calc(100dvh - 152px); overflow-y: auto; overscroll-behavior: contain; }
.mega-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; padding-block: 32px; position: relative; }
.mega-intro { padding-right: 12px; }
.mega-intro h2 { font-size: 1.6rem; margin-bottom: 12px; }
.mega-intro p:not(.eyebrow) { color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.mega-intro .text-link { display: flex; min-height: 44px; align-items: center; gap: 8px; font-size: .875rem; }
.mega-intro .btn { white-space: normal; text-align: left; }
.mega-category-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px 28px; padding-right: 24px; }
.mega-group h3 { font-size: .9375rem; margin: 0; }
.mega-group h3 a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.mega-group ul, .editorial-related ul { list-style: none; padding: 0; margin: 0; }
.mega-group li a { display: flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-size: .875rem; line-height: 1.4; }
.mega-destinations { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding-right: 28px; }
.mega-destinations a { display: flex; flex-direction: column; justify-content: center; min-height: 88px; gap: 6px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.mega-destinations span { font-weight: 650; }
.mega-destinations small { color: var(--muted); line-height: 1.5; }
.mega-close { position: absolute; top: 8px; right: -8px; }

/* Footer: a useful second entry point rather than a repeated catalogue. */
.footer-content { padding-block: 48px 24px; }
.footer-lead { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.footer-lead p { margin: 8px 0 0; color: var(--muted); font-size: .9375rem; }
.footer-invitation { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px; border-left: 2px solid var(--green); text-decoration: none; }
.footer-invitation > span { color: var(--muted); font-size: .875rem; }
.footer-invitation strong { display: inline-flex; align-items: center; gap: 12px; font-size: .9375rem; }
.footer-invitation svg { flex-shrink: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 32px; }
.footer-group h2 { margin: 0 0 8px; font-size: .9375rem; }
.footer-group h2 button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); font-weight: 650; text-align: left; }
.footer-group .chevron { display: none; }
.footer-group ul { list-style: none; padding: 0; margin: 0; }
.footer-group li a { display: flex; align-items: center; min-height: 44px; padding-block: 8px; color: var(--muted); font-size: .875rem; line-height: 1.5; text-decoration: none; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-bottom a { display: flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.footer-bottom .btn { font-size: .75rem; }

/* Editorial destinations and the human-readable sitemap. */
.editorial-page .page-heading { max-width: 820px; }
.editorial-layout { display: grid; grid-template-columns: minmax(0,760px) minmax(200px,1fr); gap: 72px; padding-top: 24px; }
.editorial-sections section { padding-block: 24px; border-bottom: 1px solid var(--line); }
.editorial-sections h2 { font-size: 1.4rem; }
.editorial-sections p { max-width: 70ch; color: var(--muted); line-height: 1.8; margin-bottom: 0; }
.editorial-related { align-self: start; background: var(--surface); border-radius: 8px; padding: 24px; }
.editorial-related h2 { font-size: 1rem; }
.editorial-related a { display: flex; align-items: center; min-height: 44px; font-size: .875rem; text-decoration: none; }
.sitemap-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; margin-top: 48px; }
.sitemap-department { padding: 24px; border: 1px solid var(--line); border-radius: 8px; }
.sitemap-department h2 { font-size: 1.2rem; }
.sitemap-department h2 a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.sitemap-department ul { list-style: none; padding: 0; margin: 0; }
.sitemap-department ul ul { border-left: 1px solid var(--line); padding-left: 16px; margin-bottom: 12px; }
.sitemap-department li a { display: flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .875rem; text-decoration: none; }
.sitemap-department .sitemap-section { font-weight: 650; color: var(--ink); }
.sitemap-pages { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); list-style: none; gap: 8px 24px; padding: 0; }
.sitemap-pages a { display: flex; align-items: center; min-height: 44px; }
@media (hover:hover) and (pointer:fine) {
  .mega-toggle:hover, .mega-direct a:hover { background: var(--surface); }
  .mega-group a:hover, .footer-group a:hover, .footer-bottom a:hover, .editorial-related a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
  .mega-destinations a:hover { background: var(--surface); border-color: var(--green); }
}
@media (min-width:768px) and (max-width:1023px) {
  .header-inner { grid-template-columns: 174px minmax(180px,1fr) auto; gap: 20px; }
  .mega-nav-list { gap: 4px; }
  .mega-toggle, .mega-direct a { gap: 9px; padding-inline: 10px; font-size: .8125rem; }
  .mega-layout { grid-template-columns: 180px minmax(0,1fr); gap: 28px; }
  .mega-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid { gap: 20px; }
  .footer-invitation { max-width: 380px; }
  .editorial-layout { gap: 28px; }
  .sitemap-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:767px) {
  .site-header { position: static; }
  .header-inner { grid-template-columns: minmax(0,1fr) auto; gap: 12px; min-height: 0; padding-block: 12px; }
  .header-inner .brand { grid-row: 1; grid-column: 1; }
  .header-inner .brand-logo { width: 156px; }
  .header-inner .search-form { grid-row: 2; grid-column: 1 / -1; max-width: none; }
  .header-utilities { grid-column: 2; grid-row: 1; }
  .header-saved { display: none; }
  .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); font-size: .875rem; }
  .menu-lines { width: 16px; height: 12px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; position: relative; }
  .menu-lines::after { content: ''; position: absolute; top: 4px; left: 0; width: 16px; border-top: 1.5px solid currentColor; }
  .mega-navigation { background: var(--surface); }
  .mega-nav-list { display: block; padding-block: 8px; }
  .mega-toggle { display: flex; width: 100%; min-height: 52px; padding-inline: 8px; font-size: 1rem; }
  .mega-nav-item { border-bottom: 1px solid var(--line); }
  .mega-panel { position: static; max-height: none; overflow: visible; border: 0; box-shadow: none; background: transparent; }
  .mega-layout { display: block; width: 100%; padding: 12px 8px 24px; }
  .mega-intro { padding-right: 32px; margin-bottom: 20px; }
  .mega-intro h2 { font-size: 1.35rem; }
  .mega-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); padding-right: 0; gap: 12px 16px; }
  .mega-group h3, .mega-group li a { font-size: .8125rem; }
  .mega-destinations { grid-template-columns: 1fr; padding-right: 0; gap: 10px; }
  .mega-destinations a { min-height: 76px; padding: 14px; background: white; }
  .mega-close { top: 4px; right: 0; }
  .mega-direct { margin: 8px 0 0; }
  .mega-direct a { width: 100%; justify-content: flex-start; padding-inline: 8px; }
  .footer-content { padding-block: 32px 24px; }
  .footer-lead { display: block; margin-bottom: 24px; }
  .footer-invitation { margin-top: 24px; padding: 16px 18px; background: var(--surface); }
  .footer-invitation strong { line-height: 1.6; }
  .footer-grid { display: block; }
  .footer-group { border-bottom: 1px solid var(--line); }
  .footer-group h2 { margin: 0; }
  .footer-group h2 button { min-height: 56px; font-size: .9375rem; }
  .footer-group .chevron { display: inline-block; margin-right: 6px; }
  .footer-group ul { padding-bottom: 12px; }
  .footer-group li a { padding-left: 12px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 4px; margin-top: 24px; }
  .footer-bottom nav { gap: 0 16px; }
  .footer-bottom .btn { padding-left: 0; }
  .editorial-layout { display: block; padding-top: 0; }
  .editorial-related { margin-top: 28px; }
  .editorial-sections h2 { font-size: 1.2rem; }
  .sitemap-grid, .sitemap-pages { grid-template-columns: 1fr; }
  .sitemap-grid { margin-top: 32px; gap: 16px; }
}

/* Discovery-first home and its destinations. */
.mega-direct { margin-left: 0; }
.mega-direct a { color: var(--ink); }
.mega-nav-list { justify-content: space-between; }
.discovery-hero .hero-copy { padding-right: 0; }
.discovery-hero { margin-bottom: 24px !important; }
.home-shortcuts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.home-shortcuts button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 6px; background: white; font-size: .875rem; color: var(--green); }
.home-section { margin-bottom: 48px; scroll-margin-top: 160px; }
.home-section .section-heading { margin-bottom: 12px; }
.selection-note { color: var(--muted); font-size: .8125rem; line-height: 1.6; margin-bottom: 20px; }
.top-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.top-card { display: flex; align-items: center; gap: 12px; min-height: 100px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; }
.top-card img { width: 72px; flex-shrink: 0; border-radius: 6px; background: var(--surface); }
.top-card > span { flex: 1; min-width: 0; }
.top-card strong { display: block; font-size: .9375rem; line-height: 1.4; }
.top-card small { display: block; margin-top: 4px; font-size: .75rem; color: var(--muted); }
.top-card > svg { width: 16px; }
.story-grid, .deal-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.story-card { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); }
.story-images { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; background: var(--surface); border-radius: 6px; padding: 12px; }
.story-images img { width: calc((100% - 48px) / 2); flex: 1; min-width: 0; }
.story-images > span { font-size: .8125rem; color: var(--muted); flex-shrink: 0; }
.story-card .eyebrow { color: var(--green); font-size: .6875rem; }
.story-card h3 { font-size: 1.05rem; line-height: 1.45; }
.story-card h3 > span { color: var(--muted); font-weight: 400; }
.story-card > p:not(.eyebrow) { font-size: .875rem; color: var(--muted); }
.story-link { display: flex; align-items: center; justify-content: space-between; margin-top: auto; min-height: 44px; color: var(--green); font-size: .875rem; font-weight: 600; }
.deal-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: white; }
.deal-image { display: block; position: relative; background: var(--surface); padding: 14px; }
.deal-image img { width: 100%; max-height: 190px; object-fit: contain; }
.deal-badge { position: absolute; top: 12px; left: 12px; display: inline-block; padding: 5px 10px; border-radius: 5px; background: var(--green); color: white; font-size: .75rem; font-weight: 650; }
.deal-copy { padding: 20px; }
.deal-copy h3 { font-size: 1.1rem; line-height: 1.4; }
.deal-copy h3 a { color: var(--ink); text-decoration: none; }
.deal-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin: 16px 0 4px; }
.deal-total strong { font-size: 1.8rem; line-height: 1.25; color: var(--green); letter-spacing: -.03em; }
.deal-total del { color: var(--muted); font-size: .9375rem; }
.deal-copy .price-note { margin-bottom: 8px; }
.deal-shipping { color: var(--muted); font-size: .8125rem; }
.deal-actions { display: flex; gap: 8px; align-items: center; }
.deal-actions > a { flex: 1; }
.deal-detail-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; align-items: start; }
.deal-detail-grid > img { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.deal-detail-copy .deal-total { margin-top: 0; }
.deal-detail-copy .deal-total strong { font-size: 2.4rem; }
.deal-discount { font-size: .9375rem; color: var(--green); margin-top: 16px; }
.featured-tree { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 12px; }
.featured-branch { min-width: 0; border: 1px solid var(--line); border-radius: 8px; }
.featured-branch > summary { display: flex; align-items: center; gap: 12px; min-height: 62px; list-style: none; cursor: pointer; padding: 14px 20px; font-size: .9375rem; font-weight: 650; }
.featured-branch > summary::-webkit-details-marker { display: none; }
.featured-branch > summary > span:first-child { flex: 1; }
.featured-branch > summary small { color: var(--muted); font-size: .75rem; font-weight: 400; }
.featured-branch[open] > summary .chevron { transform: rotate(225deg); }
.featured-branch-content { padding: 0 20px 20px; border-top: 1px solid var(--line); }
.featured-branch-content > .text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .8125rem; }
.featured-section h3 { font-size: .8125rem; margin: 12px 0 0; }
.featured-section h3 a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.featured-section ul { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 1px solid var(--line); }
.featured-leaf { display: flex; align-items: center; gap: 12px; padding-block: 12px; }
.featured-image { flex-shrink: 0; }
.featured-image img { width: 64px; background: var(--surface); border-radius: 5px; }
.featured-leaf > div { flex: 1; min-width: 0; }
.featured-leaf strong { display: block; font-size: .875rem; line-height: 1.4; }
.featured-family { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .75rem; text-decoration: none; }
.featured-product-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: .8125rem; text-decoration: none; }
.featured-product-link svg { width: 15px; }
.discovery-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 20px; margin-block: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.discovery-filter .filter-field { flex: 1 1 170px; min-width: 0; margin: 0; }
.discovery-filter .filter-field:first-child { flex-basis: 240px; }
.discovery-filter .btn { flex-shrink: 0; }
.story-verdicts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.story-verdicts img { width: 100%; max-height: 240px; object-fit: contain; background: var(--surface); border-radius: 6px; margin-bottom: 24px; }
.story-verdicts h2 { font-size: 1.25rem; }
.story-differences { margin-block: 24px; }
.story-differences article { padding-block: 20px; border-top: 1px solid var(--line); }
.story-differences h3 { font-size: 1rem; }
.story-values { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.story-values small { display: block; color: var(--muted); margin-bottom: 6px; }
.story-values strong { display: block; font-size: 1rem; }
.story-values .missing { color: var(--muted); }
@media (hover:hover) and (pointer:fine) {
  .top-card:hover, .story-card:hover { border-color: var(--green); background: var(--surface); }
  .home-shortcuts button:hover { background: var(--green-soft); }
}
@media (min-width:768px) {
  .format-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (min-width:768px) and (max-width:1023px) {
  .top-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .story-grid, .deal-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mega-toggle, .mega-direct a { gap: 7px; padding-inline: 8px; }
  .deal-detail-grid { gap: 24px; }
}
@media (max-width:767px) {
  .home-section { margin-bottom: 36px; scroll-margin-top: 16px; }
  .home-section .section-heading { gap: 12px; align-items: flex-start; }
  .home-section .section-heading h2 { font-size: 1.5rem; }
  .home-section .section-heading > .text-link { font-size: .8125rem; max-width: 100px; text-align: right; flex-shrink: 0; }
  .home-shortcuts { gap: 6px; }
  .home-shortcuts button { flex: 1 1 calc(50% - 6px); padding-inline: 12px; }
  .top-grid { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .top-card { min-height: 88px; padding: 10px 14px; }
  .top-card img { width: 64px; }
  .story-grid, .deal-grid, .featured-tree, .story-verdicts, .deal-detail-grid { grid-template-columns: minmax(0,1fr); }
  .story-grid, .deal-grid { gap: 16px; }
  .story-card { padding: 16px; }
  .story-card .story-images { margin-bottom: 16px; }
  .deal-detail-grid { gap: 24px; }
  .featured-branch > summary { padding: 12px 16px; }
  .featured-branch > summary small { display: none; }
  .featured-branch-content { padding-inline: 16px; }
  .featured-leaf { gap: 8px; }
  .featured-image img { width: 48px; }
  .featured-section ul { padding-left: 8px; }
  .featured-leaf strong { font-size: .8125rem; }
  .discovery-filter { padding: 16px; }
  .discovery-filter .filter-field, .discovery-filter .filter-field:first-child { flex-basis: 100%; }
  .discovery-filter .btn { flex: 1 1 calc(50% - 12px); }
  .story-values { gap: 16px; }
  .story-values small { font-size: .75rem; }
}
.mega-toggle.is-current { color: var(--green); box-shadow: inset 0 -2px 0 var(--green); }
