:root {
  color-scheme: light;
  --ink: #071411;
  --ink-2: #10221d;
  --muted: #53615c;
  --subtle: #74807b;
  --paper: #ffffff;
  --wash: #fbfcf8;
  --panel: rgba(255, 255, 255, 0.94);
  --line: #dfe7e2;
  --line-strong: #cbd8d1;
  --green: #00543e;
  --green-2: #007858;
  --green-3: #dceee7;
  --amber: #e2a51c;
  --amber-2: #fff4d6;
  --coral: #c85c44;
  --coral-2: #fff0eb;
  --blue: #345f78;
  --shadow: 0 18px 52px rgba(7, 20, 17, 0.08);
  --shadow-soft: 0 8px 24px rgba(7, 20, 17, 0.055);
  --footer-height: 66px;
  --mesh-soft:
    repeating-linear-gradient(30deg, rgba(7, 20, 17, 0.018) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(150deg, rgba(7, 20, 17, 0.012) 0 1px, transparent 1px 20px);
  --mesh-surface:
    repeating-linear-gradient(30deg, rgba(0, 84, 62, 0.012) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(150deg, rgba(7, 20, 17, 0.008) 0 1px, transparent 1px 24px);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(0, 84, 62, 0.038) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 84, 62, 0.038) 1px, transparent 1px),
    linear-gradient(rgba(251, 252, 248, 0.88), rgba(251, 252, 248, 0.9)),
    url("assets/evidence-texture.png"),
    var(--wash);
  background-attachment: scroll, scroll, scroll, fixed, scroll;
  background-size: 64px 64px, 64px 64px, auto, cover, auto;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0 360px, transparent 620px),
    linear-gradient(120deg, rgba(0, 84, 62, 0.055) 0 18%, transparent 42%),
    linear-gradient(290deg, rgba(226, 165, 28, 0.045) 0 12%, transparent 34%);
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

:where(a, button, input, select):focus-visible {
  outline: 2px solid rgba(0, 84, 62, 0.42);
  outline-offset: 3px;
}

button,
select {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(250px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  min-height: 62px;
  padding: 0 clamp(22px, 3.3vw, 46px);
  border-bottom: 1px solid rgba(7, 20, 17, 0.12);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.9), transparent 34%),
    radial-gradient(circle at 82% 100%, rgba(0, 84, 62, 0.08), transparent 38%),
    repeating-linear-gradient(30deg, rgba(7, 20, 17, 0.038) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(150deg, rgba(7, 20, 17, 0.026) 0 1px, transparent 1px 16px),
    linear-gradient(180deg, rgba(248, 249, 246, 0.96), rgba(234, 238, 234, 0.94));
  box-shadow: 0 10px 28px rgba(7, 20, 17, 0.055);
  backdrop-filter: blur(18px);
}

.scroll-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  overflow: hidden;
  background: transparent;
}

.scroll-progress::before {
  content: "";
  display: block;
  width: calc(var(--scroll-progress, 0) * 100%);
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--amber));
  box-shadow: 0 0 18px rgba(0, 84, 62, 0.25);
}

.brand {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  min-height: 48px;
  padding: 6px 14px 6px 8px;
  overflow: hidden;
  border: 1px solid rgba(233, 225, 199, 0.16);
  border-radius: 8px;
  color: var(--paper);
  background:
    radial-gradient(circle at 18% 18%, rgba(233, 196, 106, 0.2), transparent 24%),
    radial-gradient(circle at 86% 82%, rgba(63, 129, 102, 0.32), transparent 34%),
    linear-gradient(135deg, rgba(6, 18, 16, 0.98), rgba(9, 45, 35, 0.96) 48%, rgba(4, 15, 14, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 34px rgba(7, 20, 17, 0.12);
  font-size: clamp(1.22rem, 1.55vw, 1.52rem);
  font-weight: 950;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.brand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(30deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(150deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 12px);
  opacity: 0.72;
}

.brand::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 7px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  pointer-events: none;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.24));
}

.top-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(18px, 2.7vw, 34px);
  min-width: 0;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 62px;
  border-bottom: 3px solid transparent;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.top-nav a.active,
.top-nav a:hover {
  border-color: var(--green);
  color: var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.header-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  color: var(--ink-2);
  font-weight: 800;
  text-decoration: none;
}

.header-search::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 7px 7px 0 -5px currentColor;
}

.bookmark-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  border: 1px solid rgba(0, 84, 62, 0.28);
  border-radius: 8px;
  color: var(--paper);
  background: linear-gradient(180deg, #00644a, #004b38);
  padding: 0 12px;
  box-shadow: 0 8px 20px rgba(0, 84, 62, 0.18);
  font-weight: 900;
}

.bookmark-pill::before {
  content: "";
  width: 12px;
  height: 16px;
  border-radius: 2px 2px 1px 1px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
  opacity: 0.95;
}

.bookmark-pill span {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: var(--green);
  background: var(--paper);
  font-size: 0.84rem;
}

main {
  width: min(1500px, 100%);
  margin: 0 auto;
}

section[id] {
  scroll-margin-top: 92px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
  min-height: 148px;
  padding: 14px clamp(22px, 3.3vw, 46px) 14px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 46%, rgba(0, 84, 62, 0.045), transparent 34%),
    var(--mesh-surface),
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(251, 252, 248, 0.2));
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: clamp(20px, 6vw, 120px);
  bottom: 10px;
  width: min(360px, 34vw);
  height: 104px;
  border-radius: 28px;
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(0, 84, 62, 0.08) 12% 20%, transparent 20% 30%, rgba(0, 84, 62, 0.08) 30% 42%, transparent 42% 54%, rgba(0, 84, 62, 0.08) 54% 62%, transparent 62%),
    linear-gradient(180deg, transparent 0 78%, rgba(0, 84, 62, 0.06) 78%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 850px;
  margin: 0 0 6px;
  color: #06120f;
  font-size: clamp(1.62rem, 2.42vw, 2.34rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy > p {
  max-width: 780px;
  margin: 0 0 12px;
  color: #22312d;
  font-size: clamp(0.88rem, 1vw, 0.98rem);
  line-height: 1.42;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 920px;
}

.trust-row article {
  display: inline-grid;
  grid-template-columns: 26px minmax(0, auto);
  gap: 7px;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(0, 84, 62, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(249, 252, 249, 0.66)),
    rgba(255, 255, 255, 0.72);
  padding: 4px 11px 4px 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.trust-icon {
  position: relative;
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-3);
}

.trust-icon::before,
.trust-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.trust-icon-study::before {
  width: 11px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.trust-icon-study::after {
  width: 7px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}

.trust-icon-sources::before {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.trust-icon-sources::after {
  right: 5px;
  bottom: 5px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: right center;
}

.trust-icon-claim::before {
  width: 13px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translate(1px, -1px);
}

.trust-row h2,
.trust-row p,
.hero-art h2,
.hero-art p,
.panel h2,
.panel p,
.guide-grid h3,
.guide-grid p {
  margin: 0;
}

.trust-row h2 {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1;
}

.trust-row p {
  display: none;
  color: #34443f;
  font-size: 0.8rem;
  line-height: 1.38;
}

.hero-art {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 96px;
}

.hero-mark,
.claim-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    var(--mesh-surface),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 247, 0.9)),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero-mark {
  position: relative;
  display: grid;
  width: 68px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--green);
  background:
    linear-gradient(145deg, rgba(220, 238, 231, 0.74), rgba(255, 255, 255, 0.94)),
    var(--panel);
}

.hero-mark span {
  position: relative;
  display: block;
  width: 34px;
  height: 42px;
  border: 4px solid currentColor;
  border-radius: 6px 6px 18px 18px;
  transform: rotate(7deg);
}

.hero-mark span::before {
  content: "";
  position: absolute;
  left: 8px;
  top: -14px;
  width: 18px;
  height: 18px;
  border: 4px solid currentColor;
  border-bottom: 0;
  border-left: 0;
  transform: rotate(-18deg);
}

.hero-mark span::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: 8px;
  width: 22px;
  height: 14px;
  border-left: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  transform: rotate(-45deg);
}

.claim-panel {
  padding: 13px 15px;
}

.claim-panel > span {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.claim-panel h2 {
  margin-bottom: 4px;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.15;
}

.claim-panel p {
  color: var(--muted);
  font-size: clamp(0.78rem, 0.92vw, 0.88rem);
  line-height: 1.42;
}

.filters-section {
  padding: 10px clamp(22px, 3.3vw, 46px);
  border-bottom: 1px solid var(--line);
  background:
    var(--mesh-soft),
    linear-gradient(180deg, rgba(248, 250, 247, 0.96), rgba(239, 244, 240, 0.9));
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(270px, 1.24fr) repeat(4, minmax(120px, 0.54fr)) minmax(220px, 0.84fr) 88px;
  gap: 12px;
  align-items: end;
}

.field {
  display: grid;
  gap: 6px;
}

.field span,
.field label {
  color: #25352f;
  font-size: 0.75rem;
  font-weight: 950;
}

.field input,
.field select,
.reset-button {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 248, 0.94)),
    var(--paper);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.field input,
.field select {
  padding: 0 12px;
}

.search-field input {
  padding-left: 18px;
}

.search-field {
  position: relative;
  z-index: 20;
}

.search-preview {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  display: none;
  max-height: min(390px, 72vh);
  overflow: auto;
  border: 1px solid rgba(0, 84, 62, 0.18);
  border-radius: 8px;
  background:
    var(--mesh-surface),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 250, 0.96)),
    var(--paper);
  box-shadow: 0 18px 42px rgba(7, 20, 17, 0.16);
  padding: 6px;
}

.search-preview.open {
  display: grid;
  gap: 4px;
}

.search-preview button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--ink);
  background: transparent;
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
}

.search-preview button:hover,
.search-preview button.active {
  border-color: rgba(0, 84, 62, 0.16);
  background: rgba(220, 238, 231, 0.58);
}

.search-preview strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.86rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-preview small {
  grid-column: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-preview em {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  border: 1px solid color-mix(in srgb, var(--preview-color, var(--green)) 40%, transparent);
  border-radius: 999px;
  color: var(--preview-color, var(--green));
  background: color-mix(in srgb, var(--preview-color, var(--green)) 8%, white);
  padding: 4px 7px;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.search-preview-empty {
  padding: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.reset-button {
  font-weight: 900;
}

.reset-button:hover,
.field input:focus,
.field select:focus {
  border-color: rgba(0, 84, 62, 0.42);
  outline: 0;
}

.database-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  padding: 12px clamp(22px, 3.3vw, 46px) 22px;
}

.results-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.results-meta h2,
.content-section h2 {
  margin: 0;
  font-size: clamp(1.24rem, 1.85vw, 1.76rem);
  line-height: 1.06;
}

.results-meta p:last-child {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.compare-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.compare-strip article {
  border: 1px solid rgba(0, 84, 62, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 10px 12px;
  box-shadow: 0 6px 20px rgba(7, 20, 17, 0.04);
}

.compare-strip span {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.compare-strip strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.15;
}

.compare-strip p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

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

.catalog.single-result .supplement-card {
  grid-column: 1 / -1;
}

.supplement-card {
  position: relative;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 112px;
  gap: 9px;
  align-items: center;
  min-height: 106px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    var(--mesh-surface),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 249, 0.9)),
    var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    var(--shadow-soft);
  transition:
    border-color 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
  overflow: hidden;
}

.supplement-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--score-accent, var(--line-strong));
  opacity: 0.78;
}

.score-band-strong {
  --score-accent: var(--green);
}

.score-band-moderate {
  --score-accent: var(--amber);
}

.score-band-weak {
  --score-accent: #9aa49f;
}

.score-band-very-weak {
  --score-accent: var(--coral);
}

.supplement-card:hover {
  border-color: rgba(0, 84, 62, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 12px 32px rgba(7, 20, 17, 0.075);
  transform: translateY(-1px);
}

.supplement-card.open {
  grid-column: 1 / -1;
  grid-template-columns: 80px minmax(0, 1fr) 120px;
  border-color: rgba(0, 84, 62, 0.3);
  background:
    var(--mesh-surface),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 250, 0.94)),
    var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 16px 38px rgba(7, 20, 17, 0.09);
}

.score-ring {
  --score-color: var(--green);
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--score-color);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.82), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 247, 0.92)),
    var(--paper);
  box-shadow:
    inset 0 0 0 5px color-mix(in srgb, var(--score-color) 10%, transparent),
    0 8px 18px rgba(7, 20, 17, 0.07);
}

.score-ring div {
  display: grid;
  gap: 1px;
  width: auto;
  height: auto;
  place-items: center;
  background: transparent;
}

.score-ring strong {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 950;
  line-height: 0.95;
}

.score-ring small {
  font-size: 0.66em;
}

.score-ring span {
  max-width: 54px;
  color: var(--score-color);
  font-size: 0.55rem;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.score-ring em {
  color: var(--muted);
  font-size: 0.5rem;
  font-style: normal;
  font-weight: 750;
}

.supplement-main {
  min-width: 0;
}

.supplement-main h3 {
  margin: 0 0 5px;
  font-size: 0.98rem;
  line-height: 1.12;
}

.supplement-main h3 a {
  color: inherit;
  text-decoration: none;
}

.supplement-main h3 a:hover {
  color: var(--green);
}

.tag-row,
.meta-row,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tag {
  display: inline-flex;
  min-height: 21px;
  align-items: center;
  border-radius: 6px;
  color: #12352c;
  background: var(--green-3);
  padding: 2px 7px;
  font-size: 0.67rem;
  font-weight: 850;
  line-height: 1.15;
}

.summary {
  display: -webkit-box;
  margin: 6px 0 4px;
  overflow: hidden;
  color: #263631;
  font-size: 0.78rem;
  line-height: 1.34;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.finding-line {
  display: -webkit-box;
  margin: 0 0 7px;
  overflow: hidden;
  color: #3a4a45;
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.finding-line span {
  display: inline-flex;
  margin-right: 6px;
  border-radius: 5px;
  color: #073d31;
  background: rgba(220, 238, 231, 0.78);
  padding: 1px 5px;
  font-size: 0.6rem;
  font-weight: 950;
  text-transform: uppercase;
}

.meta-row {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.meta-row span:first-child::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 12px;
  margin-right: 7px;
  border: 1px solid currentColor;
  border-top-width: 3px;
  border-radius: 2px;
  vertical-align: -1px;
}

.source-profile {
  display: inline-flex;
  max-width: min(100%, 188px);
  min-height: 18px;
  align-items: center;
  border: 1px solid rgba(0, 84, 62, 0.12);
  border-radius: 999px;
  color: #28463d;
  background: rgba(220, 238, 231, 0.55);
  padding: 2px 7px;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-profile::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  vertical-align: 1px;
}

.source-profile-mixed {
  border-color: rgba(226, 165, 28, 0.18);
  color: #5d4514;
  background: rgba(255, 244, 214, 0.58);
}

.source-profile-mixed::before {
  background: var(--amber);
}

.source-profile-early {
  border-color: rgba(154, 164, 159, 0.2);
  color: #65706b;
  background: rgba(255, 255, 255, 0.58);
}

.source-profile-early::before {
  background: #9aa49f;
}

.card-actions {
  justify-content: flex-end;
  gap: 5px;
}

.paper-button,
.review-button,
.bookmark-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  border-radius: 7px;
  padding: 5px 6px;
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.paper-button,
.review-button,
.bookmark-button {
  border: 1px solid transparent;
  color: var(--ink-2);
  background: transparent;
  text-decoration: none;
}

.paper-button:hover,
.review-button:hover,
.bookmark-button:hover {
  border-color: var(--line);
  background: var(--paper);
}

.supplement-card.open .paper-button {
  border-color: rgba(0, 84, 62, 0.26);
  color: var(--green);
  background: rgba(220, 238, 231, 0.7);
}

.bookmark-button.active {
  border-color: var(--green);
  color: var(--paper);
  background: var(--green);
}

.source-drawer {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  opacity: 0;
  padding: 0 4px 0 90px;
  pointer-events: none;
  transform: translateY(-3px);
  transition:
    max-height 220ms ease,
    opacity 170ms ease,
    padding 170ms ease,
    border-color 170ms ease,
    transform 170ms ease;
}

.supplement-card.open .source-drawer {
  max-height: 560px;
  border-top-color: var(--line);
  opacity: 1;
  overflow-y: auto;
  padding: 10px 4px 2px 90px;
  pointer-events: auto;
  transform: translateY(0);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 84, 62, 0.22) transparent;
}

.source-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-2);
  font-size: 0.76rem;
  line-height: 1.25;
}

.source-drawer-head strong {
  font-weight: 950;
}

.source-drawer-head span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-align: right;
}

.source-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.source-finding,
.source-dose,
.source-caveat {
  display: block;
  max-width: 100%;
  color: #2f3f39;
  border: 1px solid rgba(226, 165, 28, 0.35);
  border-radius: 7px;
  background: rgba(255, 244, 214, 0.52);
  padding: 7px 9px;
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.34;
}

.source-finding {
  border-color: rgba(52, 95, 120, 0.2);
  background: rgba(229, 238, 243, 0.6);
}

.source-dose {
  border-color: rgba(0, 84, 62, 0.16);
  background: rgba(220, 238, 231, 0.5);
}

.source-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 6px;
}

.source-drawer a {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--green);
  background: var(--paper);
  padding: 6px 8px;
  font-size: 0.71rem;
  font-weight: 820;
  line-height: 1.18;
  text-decoration: none;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.source-drawer a span:last-child {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.source-drawer a:hover {
  border-color: rgba(0, 84, 62, 0.24);
  box-shadow: 0 5px 14px rgba(7, 20, 17, 0.05);
  transform: translateY(-1px);
}

.source-kind {
  border: 1px solid rgba(7, 20, 17, 0.06);
  border-radius: 5px;
  color: #28463d;
  background: #edf5f1;
  padding: 2px 4px;
  font-size: 0.58rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.source-kind-position-stand,
.source-kind-meta-analysis {
  color: #073d31;
  background: #dceee7;
}

.source-kind-systematic-review {
  color: #24465b;
  background: #e5eef3;
}

.source-kind-trial {
  color: #654309;
  background: #fff4d6;
}

.source-kind-full-text {
  color: #5a3327;
  background: #fff0eb;
}

.source-kind-safety {
  color: #6f2d1e;
  background: #ffe7df;
}

.sidebar {
  position: sticky;
  top: 76px;
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 84, 62, 0.2) transparent;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    var(--mesh-surface),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 248, 0.9)),
    var(--panel);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.panel h2 {
  margin-bottom: 8px;
  font-size: 0.98rem;
  line-height: 1.2;
}

.panel-kicker {
  margin: 0 0 12px;
  color: #455852;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.38;
}

.rating-list,
.policy-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rating-list li {
  --rating-color: var(--line-strong);
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 3px 10px;
  align-items: center;
  min-height: 48px;
  border: 1px solid rgba(203, 216, 209, 0.72);
  border-radius: 8px;
  padding: 7px 9px;
  background:
    var(--mesh-surface),
    linear-gradient(90deg, color-mix(in srgb, var(--rating-color) 8%, transparent), rgba(255, 255, 255, 0.72) 46%),
    rgba(255, 255, 255, 0.56);
}

.rating-list li:nth-child(1) {
  --rating-color: #00543e;
}

.rating-list li:nth-child(2) {
  --rating-color: #2f8a5c;
}

.rating-list li:nth-child(3) {
  --rating-color: #c28b18;
}

.rating-list li:nth-child(4) {
  --rating-color: #b35a3b;
}

.rating-list li:nth-child(5) {
  --rating-color: #7e3438;
}

.rating-list b {
  grid-row: 1 / span 2;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--rating-color);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.rating-list span {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.1;
}

.rating-list p,
.policy-list li,
#bookmark-list {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.rating-list p {
  grid-column: 2;
  line-height: 1.28;
}

.panel a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--green);
  font-weight: 950;
  text-decoration: none;
}

.policy-list li {
  position: relative;
  padding-left: 24px;
}

.policy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--green);
}

#bookmark-list {
  display: grid;
  gap: 8px;
}

#bookmark-list a {
  margin: 0;
}

.content-section {
  padding: 28px clamp(22px, 3.3vw, 46px) 36px;
  border-top: 1px solid var(--line);
}

.guides {
  background:
    var(--mesh-soft),
    rgba(251, 252, 248, 0.5);
}

.methodology-section,
.affiliate-section {
  background:
    var(--mesh-soft),
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(251, 252, 248, 0.76));
}

.section-intro {
  max-width: 820px;
  margin: 12px 0 0;
  color: #2f403b;
  font-size: 0.96rem;
  line-height: 1.55;
}

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

.guide-grid article,
.method-card,
.affiliate-rule {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    var(--mesh-surface),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 248, 0.9)),
    var(--panel);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.guide-grid span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 7px;
  color: var(--paper);
  background: var(--green);
  font-size: 0.7rem;
  font-weight: 950;
}

.guide-grid h3 {
  margin-bottom: 8px;
  font-size: 0.98rem;
  line-height: 1.25;
}

.guide-grid p,
.method-card p,
.affiliate-rule p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.methodology-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.method-card h3,
.affiliate-rule h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.2;
}

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

.evidence-ladder li {
  display: grid;
  gap: 4px;
}

.evidence-ladder b {
  color: var(--ink);
  font-size: 0.82rem;
}

.evidence-ladder span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.42;
}

.score-band-grid {
  display: grid;
  gap: 8px;
}

.score-band-grid div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.score-band-grid div:first-child {
  border-top: 0;
  padding-top: 0;
}

.score-band-grid b {
  color: var(--green);
  font-weight: 950;
}

.score-band-grid span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.42;
}

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

.trust-docs {
  background: rgba(251, 252, 248, 0.72);
}

.trust-doc-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.trust-doc-grid a,
.detail-policy-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.7);
  padding: 12px;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.trust-doc-grid a:hover,
.detail-policy-links a:hover {
  border-color: rgba(0, 84, 62, 0.25);
  color: var(--green);
  background: var(--paper);
}

.not-found-links {
  margin-top: 20px;
}

.trust-doc-grid span {
  display: block;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.trust-doc-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 0.88rem;
  line-height: 1.24;
}

.site-footer {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-height: var(--footer-height);
  padding: 8px clamp(22px, 3.3vw, 46px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--paper);
  background:
    repeating-linear-gradient(30deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(150deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 20px),
    radial-gradient(circle at 12% 0%, rgba(233, 196, 106, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(0, 84, 62, 0.97), rgba(0, 63, 47, 0.98));
  background-size: auto;
  box-shadow: 0 -18px 42px rgba(7, 20, 17, 0.16);
  backdrop-filter: blur(18px);
  scrollbar-width: none;
}

.site-footer.footer-intro {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 45;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

.site-footer.footer-intro.footer-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  pointer-events: none;
}

.site-footer::-webkit-scrollbar {
  display: none;
}

.site-footer .footer-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.footer-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.footer-mark {
  position: relative;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fffdf5;
  background:
    radial-gradient(circle at 26% 16%, rgba(233, 196, 106, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 18px rgba(0, 0, 0, 0.12);
}

.footer-mark::before,
.footer-mark::after {
  content: "";
  position: absolute;
}

.footer-mark-reviews::before {
  width: 14px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 3px;
  transform: translate(2px, 1px);
}

.footer-mark-reviews::after {
  width: 14px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 3px;
  transform: translate(-4px, -4px);
}

.footer-mark-sources::before {
  width: 14px;
  height: 14px;
  border: 3px solid currentColor;
  border-radius: 50%;
  transform: translate(-3px, -3px);
}

.footer-mark-sources::after {
  width: 11px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(7px, 8px) rotate(45deg);
}

.footer-mark-restraint::before {
  width: 18px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 9px 9px 11px 11px;
  clip-path: polygon(50% 0, 100% 18%, 86% 100%, 50% 84%, 14% 100%, 0 18%);
}

.footer-mark-restraint::after {
  width: 14px;
  height: 7px;
  border-bottom: 3px solid currentColor;
  border-left: 3px solid currentColor;
  transform: translate(1px, 1px) rotate(-45deg);
}

.footer-mark-education::before {
  width: 20px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 2px 2px 6px 6px;
  transform: translateY(2px);
}

.footer-mark-education::after {
  width: 2px;
  height: 17px;
  border-radius: 999px;
  background: currentColor;
  box-shadow:
    -8px -1px 0 -0.5px rgba(255, 255, 255, 0.78),
    8px -1px 0 -0.5px rgba(255, 255, 255, 0.78);
  transform: translateY(1px);
}

.site-footer strong {
  font-size: 0.86rem;
  line-height: 1.25;
}

.footer-copy span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  line-height: 1.28;
}

.empty {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 24px;
  color: var(--muted);
}

.detail-page {
  min-height: 100vh;
  padding-bottom: 0;
  background:
    linear-gradient(rgba(251, 252, 248, 0.9), rgba(251, 252, 248, 0.92)),
    url("assets/evidence-texture.png");
  background-size: auto, 640px auto;
}

.detail-shell {
  display: grid;
  gap: 16px;
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.back-link {
  width: fit-content;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 950;
  text-decoration: none;
}

.detail-hero {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  border: 1px solid var(--line);
  border-left: 5px solid var(--score-accent);
  border-radius: 8px;
  background:
    var(--mesh-surface),
    linear-gradient(135deg, color-mix(in srgb, var(--score-accent) 8%, transparent), rgba(255, 255, 255, 0.9) 42%),
    var(--panel);
  padding: clamp(18px, 3vw, 32px);
  box-shadow: var(--shadow);
}

.detail-score {
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  border-radius: 50%;
  border: 3px solid var(--score-color);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.82), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 247, 0.9)),
    var(--paper);
  box-shadow:
    inset 0 0 0 8px color-mix(in srgb, var(--score-color) 10%, transparent),
    0 12px 26px rgba(7, 20, 17, 0.08);
}

.detail-score strong,
.detail-score span,
.detail-score em {
  grid-column: 1;
  line-height: 1;
}

.detail-score strong {
  align-self: end;
  color: var(--ink);
  font-size: 1.42rem;
  font-weight: 950;
}

.detail-score small {
  font-size: 0.58em;
}

.detail-score span {
  max-width: 68px;
  color: var(--score-color);
  font-size: 0.67rem;
  font-weight: 950;
  text-align: center;
}

.detail-score em {
  align-self: start;
  color: var(--muted);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 800;
}

.detail-hero h1 {
  max-width: 850px;
  margin: 4px 0 10px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
}

.detail-claim {
  max-width: 880px;
  margin: 0;
  color: #243630;
  font-size: 1.02rem;
  line-height: 1.55;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.detail-tags span {
  border: 1px solid rgba(0, 84, 62, 0.12);
  border-radius: 999px;
  color: #0a3f31;
  background: rgba(220, 238, 231, 0.72);
  padding: 5px 8px;
  font-size: 0.75rem;
  font-weight: 900;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.detail-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    var(--mesh-surface),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 248, 0.9)),
    var(--panel);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.detail-card h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.18;
}

.detail-card p {
  margin: 0;
  color: #33443f;
  font-size: 0.92rem;
  line-height: 1.56;
}

.key-finding {
  border-color: rgba(0, 84, 62, 0.24);
  background:
    var(--mesh-surface),
    linear-gradient(135deg, rgba(220, 238, 231, 0.54), rgba(255, 255, 255, 0.92)),
    var(--panel);
}

.detail-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 12px;
}

.detail-section-head h2 {
  margin-bottom: 0;
}

.detail-section-head > span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
  white-space: nowrap;
}

.detail-source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-source-list li {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  border: 1px solid rgba(203, 216, 209, 0.68);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  padding: 9px;
}

.detail-source-list span {
  width: fit-content;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-3);
  padding: 4px 6px;
  font-size: 0.64rem;
  font-weight: 950;
  line-height: 1;
}

.detail-source-list a {
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.34;
  text-decoration: none;
}

.detail-source-list a:hover {
  color: var(--green);
}

.product-recommendations > p {
  max-width: 860px;
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 700;
}

.product-link-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-link-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 14px;
}

.product-link-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1rem;
}

.product-link-list p {
  margin: 0 0 6px;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.38;
}

.product-link-list span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.product-link-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px;
  color: var(--paper);
  background: var(--green);
  padding: 0 14px;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.product-link-list a:hover {
  background: #00644a;
}

.editorial-note {
  border-color: rgba(52, 95, 120, 0.18);
}

.correction-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 20px;
  align-items: center;
  border-color: rgba(0, 84, 62, 0.18);
  background:
    var(--mesh-surface),
    linear-gradient(135deg, rgba(220, 238, 231, 0.42), rgba(255, 255, 255, 0.92)),
    var(--panel);
}

.correction-note h2,
.correction-note p {
  grid-column: 1;
}

.correction-note a {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(0, 84, 62, 0.22);
  border-radius: 8px;
  color: var(--paper);
  background: linear-gradient(180deg, #00644a, #004b38);
  padding: 0 14px;
  font-size: 0.82rem;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(0, 84, 62, 0.16);
}

.correction-note a:hover {
  background: linear-gradient(180deg, #007858, #00543e);
}

.detail-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px;
}

.detail-policy-links a {
  box-shadow: none;
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 900;
}

.policy-shell {
  display: grid;
  gap: 16px;
  width: min(1060px, calc(100% - 44px));
  margin: 0 auto;
  padding: 38px 0 58px;
}

.policy-hero {
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background:
    var(--mesh-surface),
    linear-gradient(135deg, rgba(220, 238, 231, 0.56), rgba(255, 255, 255, 0.9) 44%),
    var(--panel);
  padding: clamp(20px, 3vw, 34px);
  box-shadow: var(--shadow);
}

.policy-hero h1 {
  max-width: 840px;
  margin: 5px 0 12px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
}

.policy-hero p {
  max-width: 820px;
  margin: 0;
  color: #2b3d37;
  font-size: 1rem;
  line-height: 1.58;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.policy-copy strong {
  color: var(--green);
}

@keyframes premium-reveal {
  from {
    opacity: 0.78;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@supports (animation-timeline: view()) {
  .panel,
  .compare-strip article,
  .guide-grid article,
  .method-card,
  .affiliate-rule {
    animation: premium-reveal linear both;
    animation-range: entry 0% cover 16%;
    animation-timeline: view();
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1280px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px 24px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .top-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 8px;
    overflow: visible;
  }

  .top-nav a {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.72);
    padding: 0 10px;
    font-size: 0.88rem;
  }

  .top-nav a.active,
  .top-nav a:hover {
    border-color: rgba(0, 84, 62, 0.3);
    background: var(--green-3);
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-art {
    grid-template-columns: 68px minmax(0, 360px);
    justify-content: start;
    min-height: auto;
  }

  .filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reset-button {
    width: 100%;
  }

  .database-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
  }

  .guide-grid,
  .methodology-layout,
  .affiliate-grid,
  .trust-doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 940px) {
  .catalog,
  .compare-strip,
  .sidebar,
  .detail-grid,
  .detail-source-list,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .site-footer {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .site-footer .footer-item {
    min-width: 0;
  }

  .footer-copy > span {
    display: none;
  }

  .supplement-card {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .supplement-card.open {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .card-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 94px;
  }

  .source-drawer {
    padding-left: 94px;
  }
}

@media (max-width: 680px) {
  :root {
    --footer-height: 56px;
  }

  .site-header {
    position: static;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 6px;
    padding: 10px 14px 10px;
  }

  .brand {
    max-width: min(100%, calc(100vw - 76px));
    font-size: 1.18rem;
    gap: 8px;
    min-height: 42px;
    padding: 5px 11px 5px 7px;
  }

  .brand span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand img {
    width: 31px;
    height: 31px;
  }

  .header-actions {
    justify-content: flex-end;
    gap: 7px;
    min-width: 0;
  }

  .top-nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .top-nav a {
    justify-content: center;
    min-height: 28px;
    padding: 0 8px;
    font-size: 0.76rem;
    line-height: 1.08;
    text-align: center;
    white-space: normal;
  }

  .detail-shell {
    width: calc(100% - 28px);
    padding-top: 22px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .detail-score {
    width: 78px;
    height: 78px;
  }

  .detail-hero h1 {
    font-size: 2.1rem;
  }

  .detail-section-head {
    display: grid;
    gap: 4px;
  }

  .detail-section-head > span {
    white-space: normal;
  }

  .detail-source-list li {
    grid-template-columns: 1fr;
  }

  .product-link-list li {
    grid-template-columns: 1fr;
  }

  .product-link-list a {
    width: fit-content;
    max-width: 100%;
  }

  .correction-note {
    grid-template-columns: 1fr;
  }

  .correction-note h2,
  .correction-note p,
  .correction-note a {
    grid-column: 1;
    grid-row: auto;
  }

  .correction-note a {
    width: fit-content;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .header-search {
    justify-content: center;
    width: 34px;
    min-height: 34px;
    overflow: hidden;
    font-size: 0;
  }

  .bookmark-pill {
    display: none;
  }

  .hero,
  .filters-section,
  .database-shell,
  .content-section,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  body {
    background-attachment: scroll, scroll, scroll, scroll, scroll;
  }

  .hero {
    min-height: auto;
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .hero-copy,
  .hero h1,
  .hero-copy > p {
    max-width: 100%;
    min-width: 0;
  }

  .hero h1 {
    width: min(100%, calc(100vw - 32px));
    font-size: clamp(1.42rem, 5.65vw, 1.62rem);
    overflow-wrap: normal;
  }

  .trust-row article,
  .trust-row article + article {
    grid-template-columns: 22px minmax(0, auto);
    gap: 6px;
    min-height: auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    padding: 4px 8px 4px 5px;
  }

  .trust-row h2 {
    margin: 0;
    font-size: 0.7rem;
  }

  .hero-art {
    display: block;
    margin-top: 10px;
  }

  .hero-mark {
    display: none;
  }

  .claim-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    padding: 7px 10px;
  }

  .claim-panel > span {
    margin: 0;
    font-size: 0.62rem;
  }

  .claim-panel h2 {
    margin: 0;
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .claim-panel p {
    display: none;
  }

  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .guide-grid,
  .methodology-layout,
  .affiliate-grid,
  .trust-doc-grid {
    grid-template-columns: 1fr;
  }

  .policy-shell {
    width: calc(100% - 28px);
    padding-top: 22px;
  }

  .policy-hero {
    padding: 18px;
  }

  .policy-hero h1 {
    font-size: 2rem;
  }

  .search-field,
  .sort-field,
  .reset-button {
    grid-column: 1 / -1;
  }

  .results-meta {
    align-items: start;
    flex-direction: column;
  }

  .results-meta p:last-child {
    display: none;
  }

  .compare-strip {
    display: none;
  }

  .supplement-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .supplement-card.open {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .score-ring {
    width: 66px;
    height: 66px;
  }

  .score-ring div {
    width: auto;
    height: auto;
  }

  .score-ring strong {
    font-size: 1rem;
  }

  .score-ring span,
  .score-ring em {
    font-size: 0.48rem;
  }

  .supplement-main h3 {
    font-size: 1rem;
  }

  .summary {
    -webkit-line-clamp: 2;
  }

  .finding-line {
    -webkit-line-clamp: 3;
  }

  .card-actions,
  .source-drawer {
    padding-left: 0;
  }

  .source-drawer {
    padding: 0;
  }

  .supplement-card.open .source-drawer {
    padding: 12px 0 0;
  }

  .source-drawer-head {
    display: grid;
    gap: 3px;
  }

  .source-drawer-head span {
    text-align: left;
  }

  .source-notes {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    align-items: center;
  }

  .site-footer .footer-item {
    min-width: 0;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 5px;
  }

  .footer-mark {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }

  .site-footer strong {
    font-size: 0.62rem;
    line-height: 1.1;
  }

  .footer-copy > span {
    display: none;
  }

  .site-footer .footer-item:nth-child(n + 3) {
    display: none;
  }
}

@media (max-width: 360px) {
  .brand {
    font-size: 1.04rem;
  }

  .brand img {
    width: 28px;
    height: 28px;
  }
}
