:root {
  color-scheme: light;
  --ink: #18211f;
  --muted: #5e6d67;
  --line: #d8e0dc;
  --paper: #fbfcfa;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-strong: #0b4f4a;
  --gold: #c2841a;
  --blue: #245b91;
  --shadow: 0 18px 45px rgba(20, 33, 31, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 252, 250, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.top-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
}

.top-nav {
  flex-wrap: wrap;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.94rem;
}

.top-nav a {
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--accent-strong);
}

.hero {
  min-height: 72vh;
  display: grid;
  align-items: end;
  padding: clamp(52px, 9vw, 104px) clamp(18px, 4vw, 56px);
  color: white;
  background:
    linear-gradient(90deg, rgba(8, 26, 24, 0.86), rgba(8, 26, 24, 0.5) 54%, rgba(8, 26, 24, 0.16)),
    var(--hero-image) center / cover;
}

.hero-inner {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.brief-hero h1 {
  margin: 0;
  font-size: clamp(3.3rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 20px 0 28px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.search-panel {
  width: min(680px, 100%);
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

input[type="search"],
input[type="email"] {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font: inherit;
  box-shadow: var(--shadow);
}

input[type="email"] {
  border-color: var(--line);
  box-shadow: none;
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.metrics-band div {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 22px clamp(16px, 3vw, 34px);
  background: var(--panel);
}

.metrics-band strong {
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  color: var(--accent-strong);
}

.metrics-band span {
  color: var(--muted);
}

.section {
  padding: clamp(40px, 7vw, 74px) clamp(18px, 4vw, 56px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading h2,
.content-block h2,
.brief-aside h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.chip.is-active,
.chip:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.catalog-section {
  padding-top: 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.brief-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(20, 33, 31, 0.08);
}

.brief-card[hidden] {
  display: none;
}

.brief-card.is-compact .brief-image {
  aspect-ratio: 16 / 9;
}

.brief-card.is-compact .brief-body p {
  min-height: auto;
}

.brief-image {
  display: block;
  aspect-ratio: 4 / 3;
  background: #dce8e3;
}

.brief-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brief-body {
  padding: 18px;
}

.brief-category {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.brief-body .rank-badge {
  min-height: auto;
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.brief-body h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.25;
}

.brief-body h3 a {
  text-decoration: none;
}

.brief-body p {
  min-height: 70px;
  margin: 12px 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.brief-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.newsletter-section {
  padding-top: 0;
}

.newsletter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: end;
  border-block: 1px solid var(--line);
  padding: clamp(24px, 5vw, 42px);
  background: white;
}

.newsletter-panel h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.newsletter-panel p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.7;
}

.newsletter-form {
  display: grid;
  gap: 10px;
}

.search-results {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: white;
}

.search-result-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.search-result-link {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  text-decoration: none;
}

.search-result-link:hover {
  border-color: var(--accent);
}

.search-result-link span {
  color: var(--muted);
  font-size: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 0 15px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-strong);
}

.button-secondary {
  background: white;
  color: var(--accent-strong);
}

.button-full {
  width: 100%;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.disclosure-line {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
  background: white;
}

.brief-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding: clamp(48px, 8vw, 90px) clamp(18px, 4vw, 56px);
  background: #edf4f1;
}

.brief-hero-copy p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.brief-hero img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-figure {
  margin: 0;
}

.product-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 0.38fr);
  gap: 10px;
}

.gallery-image-link {
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.gallery-image-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.gallery-image-link:hover img {
  transform: scale(1.02);
}

.product-gallery img {
  aspect-ratio: 5 / 4;
  display: block;
  height: 100%;
  min-width: 0;
  transition: transform 180ms ease;
}

.brief-hero .gallery-image-link img {
  border-radius: 0;
  box-shadow: none;
}

.product-gallery .is-primary {
  min-height: 360px;
}

.product-gallery .is-secondary {
  min-height: 168px;
  aspect-ratio: 4 / 5;
}

.product-gallery.is-gallery-large {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(132px, auto);
}

.product-gallery.is-gallery-large .is-primary {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 0;
}

.product-gallery.is-gallery-large .is-secondary {
  min-height: 0;
  aspect-ratio: 1 / 1;
}

.product-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.page-hero {
  padding: clamp(52px, 8vw, 96px) clamp(18px, 4vw, 56px);
  background: #edf4f1;
}

.page-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 0.98;
}

.page-hero p:not(.eyebrow) {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.14rem;
  line-height: 1.7;
}

.update-note {
  font-size: 0.96rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px clamp(18px, 4vw, 56px) 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.brief-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: clamp(34px, 6vw, 64px) clamp(18px, 4vw, 56px);
}

.brief-main {
  display: grid;
  gap: 18px;
}

.content-block,
.brief-aside {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: clamp(20px, 4vw, 30px);
}

.content-block {
  overflow-x: auto;
}

.content-block ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.content-block ol {
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.8;
}

.content-block p {
  color: var(--muted);
  line-height: 1.7;
}

.content-block a,
.brief-aside a {
  color: var(--accent-strong);
  font-weight: 700;
}

.byline-block {
  margin: 20px clamp(18px, 4vw, 56px) 0;
  background: #f7fffd;
}

.byline-block p {
  margin: 0;
}

.byline-block p + p {
  margin-top: 8px;
}

.citation-snippet {
  border-left: 4px solid var(--accent);
  padding-left: 14px;
}

.answer-block {
  border-left: 5px solid var(--accent);
}

.setup-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.setup-list li {
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.setup-list a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.setup-list a:hover {
  text-decoration: underline;
}

.setup-list span {
  color: var(--muted);
  line-height: 1.5;
}

.comparison-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.comparison-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #dce8e3;
}

.comparison-table th:first-child {
  min-width: 210px;
}

.split-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.spec-table {
  min-width: 560px;
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  border-top: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  width: 36%;
  color: var(--ink);
}

.spec-table td {
  color: var(--muted);
}

.mini-grid,
.collection-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.collection-link {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: white;
  text-decoration: none;
}

.collection-link strong {
  color: var(--ink);
  font-size: 1.15rem;
}

.collection-link span {
  color: var(--muted);
  line-height: 1.5;
}

.collection-link:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(20, 33, 31, 0.08);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.page-link {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: white;
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.page-link:hover,
.page-link.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.legal-hero {
  min-height: 58vh;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.faq details:first-of-type {
  margin-top: 14px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.brief-aside {
  align-self: start;
  position: sticky;
  top: 86px;
}

.brief-aside dl {
  margin: 18px 0;
}

.brief-aside div {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.brief-aside dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.brief-aside dd {
  margin: 5px 0 0;
}

.site-footer {
  display: grid;
  gap: 8px;
  padding: 32px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: white;
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.site-footer nav strong {
  color: var(--ink);
}

.site-footer nav a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 1040px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mini-grid,
  .collection-grid,
  .trust-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brief-layout {
    grid-template-columns: 1fr;
  }

  .brief-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header,
  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .hero {
    min-height: 76vh;
  }

  .metrics-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-grid,
  .brief-hero,
  .product-gallery {
    grid-template-columns: 1fr;
  }

  .product-gallery .is-primary,
  .product-gallery .is-secondary {
    min-height: 0;
    aspect-ratio: 5 / 4;
  }

  .product-gallery.is-gallery-large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-gallery.is-gallery-large .is-primary {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .product-gallery.is-gallery-large .is-secondary {
    aspect-ratio: 5 / 4;
  }

  .split-list,
  .comparison-layout,
  .mini-grid,
  .collection-grid,
  .trust-grid,
  .newsletter-panel,
  .footer-grid,
  .search-result-list {
    grid-template-columns: 1fr;
  }

  .brief-hero h1,
  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }
}

@media (max-width: 480px) {
  .top-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 10px 16px;
  }

  .metrics-band {
    grid-template-columns: 1fr;
  }

  .brief-actions {
    display: grid;
  }
}
