/* Crawlable research, COA, and server-rendered product surfaces. Kept in a
   separate file so the existing storefront layout remains the source of truth. */

.seo-page .site-header { border-bottom-color: var(--line); }
.seo-page .nav-links a[aria-current="page"] { color: var(--ink); }

.seo-hero {
  padding: clamp(64px, 9vw, 118px) 0 clamp(54px, 7vw, 92px);
  background:
    radial-gradient(circle at 88% 12%, rgba(166, 85, 59, .10), transparent 32%),
    var(--paper);
}

.seo-hero h1 {
  max-width: 940px;
  margin: 12px 0 18px;
  font-family: var(--serif, "Fraunces", serif);
  font-weight: 500;
  font-size: clamp(42px, 6.8vw, 82px);
  line-height: .98;
  letter-spacing: -.035em;
}

.seo-hero .lede { max-width: 820px; }

.seo-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 13px;
}

.seo-breadcrumb a { color: inherit; }

.seo-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.seo-answer {
  max-width: 860px;
}

/* Product evidence has a second heading level immediately after the shared
   section title. Global heading and paragraph resets remove all margins, so
   both the server-rendered and hydrated shapes need their rhythm restored. */
.seo-evidence > .h2 + .seo-answer,
.seo-evidence > .h2 + #research-content,
.seo-evidence > .h2 + .lede {
  margin-top: clamp(28px, 3vw, 40px);
}

.seo-evidence .seo-answer h3 + p {
  margin-top: 16px;
}

.seo-answer h2,
.seo-answer h3,
.seo-guide-sections h2,
.seo-components h2,
.seo-components h3 {
  font-family: var(--serif, "Fraunces", serif);
  font-weight: 500;
}

.seo-answer h3 { font-size: clamp(25px, 3vw, 34px); }

.seo-answer p,
.seo-guide-sections p,
.seo-components p,
.seo-components li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.seo-sources {
  list-style: none;
  counter-reset: source;
  padding: 0;
  margin: 34px 0;
  display: grid;
  gap: 18px;
}

.seo-source {
  position: relative;
  counter-increment: source;
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.seo-source::before {
  content: counter(source, decimal-leading-zero);
  position: absolute;
  right: 24px;
  top: 22px;
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: .08em;
}

.seo-source__label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.seo-source h3 {
  max-width: 900px;
  margin: 0 42px 10px 0;
  font-family: var(--serif, "Fraunces", serif);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 500;
  line-height: 1.18;
}

.seo-source h3 a { color: inherit; }

.seo-source p {
  max-width: 920px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.seo-source__ids { font-size: 13px; }

.seo-review-status {
  max-width: 880px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.seo-components {
  max-width: 860px;
  padding: 26px 30px;
  margin: 24px 0;
  background: var(--paper-2);
  border-radius: 16px;
}

.seo-components ul { margin-bottom: 0; }

.seo-coa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
  margin-top: 28px;
}

.seo-coa-card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.seo-coa-card h3 {
  margin: 0 0 20px;
  font-family: var(--serif, "Fraunces", serif);
  font-size: 28px;
  font-weight: 500;
}

.seo-coa-card dl { margin: 0 0 24px; }

.seo-coa-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.seo-coa-card dt { color: var(--muted); }
.seo-coa-card dd { margin: 0; text-align: right; font-weight: 500; }
.seo-coa-more { margin-top: 22px; }

.seo-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 18px;
}

.seo-library-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.seo-library-card h2 {
  margin: 4px 0 14px;
  font-family: var(--serif, "Fraunces", serif);
  font-size: 30px;
  line-height: 1.08;
  font-weight: 500;
}

.seo-library-card h2 a { color: inherit; }
.seo-library-card p { color: var(--muted); line-height: 1.65; }
.seo-library-card > a:last-child { margin-top: auto; }

.seo-fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.seo-fact-grid div { padding: 24px; background: var(--surface); }
.seo-fact-grid span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.seo-fact-grid strong { font-size: 16px; overflow-wrap: anywhere; }

.seo-guide-sections {
  display: grid;
  gap: 1px;
  max-width: 900px;
  padding-top: 0;
}

.seo-guide-sections > section {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.seo-guide-sections h2 { margin: 0 0 12px; font-size: 34px; }

.seo-table-wrap { overflow-x: auto; margin-top: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.seo-evidence-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.seo-evidence-table th,
.seo-evidence-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.seo-evidence-table thead th { color: var(--muted); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.seo-evidence-table tbody tr:last-child th,
.seo-evidence-table tbody tr:last-child td { border-bottom: 0; }
.seo-evidence-table a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.seo-dose-list ul { list-style: none; padding: 0; margin: 12px 0 18px; }
.seo-dose-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.seo-dose-list li span:last-child { min-width: 86px; color: var(--muted); text-align: right; }

@media (max-width: 720px) {
  .seo-source { padding: 24px 20px; }
  .seo-source::before { display: none; }
  .seo-source h3 { margin-right: 0; }
  .seo-dose-list li { grid-template-columns: 1fr auto; }
  .seo-dose-list li span:last-child { grid-column: 1 / -1; min-width: 0; text-align: left; }
}

/* The alternate names sit directly under the compound heading, because for
   half the audience the synonym IS the name they came looking for. */
.seo-aka {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.02em;
  /* The lede below carries no margin of its own, so this line owns the gap on
     both sides or the two run together as one block of text. */
  margin: 6px 0 14px;
}

/* Evidence tier headings break the reference list into what each study
   actually examined, so a cell-culture result is never skimmed as a trial. */
.seo-evidence-tier {
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin: 26px 0 10px;
  text-transform: uppercase;
  color: var(--muted);
}

.seo-evidence-tier:first-of-type { margin-top: 14px; }

.seo-more { margin: 22px 0 0; font-size: 14px; }

/* Headings on the research pages carry no bottom margin of their own, and the
   fact grid, source list and body paragraphs that follow carry no top margin,
   so a heading ends up sitting on the thing it introduces. Give the heading
   the gap rather than the content, so it holds wherever a heading is reused. */
.seo-evidence .h2,
.section > .h2,
.seo-answer h2,
.seo-answer h3 {
  margin-bottom: 14px;
}

/* The line explaining how the references are grouped is part of the heading
   block, not the first reference. */
.section > .h2 + p {
  margin-bottom: 6px;
  max-width: 70ch;
}

/* Inside the evidence block the answer, the identity grid and the source
   groups are separate ideas and need air between them; none of them carries a
   margin of its own. */
.seo-evidence .seo-answer { margin-bottom: 20px; }
.seo-evidence .seo-fact-grid { margin-bottom: 24px; }
.seo-source-groups { margin-top: 4px; }

/* Shipping is a compact service guide. One restrained surface carries the
   comparison; the country index and closing action remain visually quiet. */
.shipping-page { background: var(--paper); }

.shipping-hero {
  padding: clamp(38px, 5vw, 58px) 0 clamp(34px, 4.4vw, 50px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 28%),
    var(--paper);
}

.shipping-hero h1 {
  max-width: 820px;
  margin: 9px 0 15px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -.028em;
}

.shipping-hero .lede { max-width: 690px; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.6; }
.shipping-hero .seo-actions { margin-top: 22px; }
.shipping-content { max-width: 1060px; }

.shipping-block { padding: clamp(38px, 5vw, 60px) 0; border-bottom: 1px solid var(--line); }
.shipping-block:last-child { border-bottom: 0; }
.shipping-section__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
.shipping-section__head > div { max-width: 700px; }
.shipping-section__head .h2 { margin-bottom: 10px; }
.shipping-section__head p,
.shipping-section__intro { max-width: 68ch; color: var(--muted); line-height: 1.65; }
.shipping-section__intro { margin-top: 20px; }

.shipping-service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 26px;
  padding: 1px;
  border-radius: 15px;
  background: var(--line);
}

.shipping-service-card {
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  padding: clamp(24px, 3vw, 32px);
  background: var(--surface-strong);
}
.shipping-service__speed { margin: 0 0 7px; color: var(--accent); font-size: 10.5px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.shipping-service-card h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: clamp(23px, 2.6vw, 29px); font-weight: 500; }
.shipping-service-card > div > p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.shipping-service__price { flex: none; margin: 0; text-align: right; }
.shipping-service__price span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.shipping-service__price strong { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; font-variant-numeric: tabular-nums; }

.shipping-country-count { display: flex; align-items: baseline; gap: 7px; margin: 0; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.shipping-country-count strong { color: var(--ink); font-family: var(--font-display); font-size: 27px; font-weight: 500; letter-spacing: normal; }
.shipping-country-index { display: grid; grid-template-columns: 1fr; column-gap: 26px; margin: 25px 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.shipping-country-index li { min-width: 0; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--line); }
.shipping-country-index span { overflow-wrap: normal; word-break: normal; hyphens: auto; }
.shipping-country-index small { flex: none; color: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: .09em; }

@media (min-width: 720px) {
  .shipping-country-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .shipping-country-index { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 719px) {
  .shipping-section__head { grid-template-columns: 1fr; align-items: start; gap: 12px; }
  .shipping-service-list { grid-template-columns: 1fr; }
  .shipping-service-card { align-items: center; }
}

@media (max-width: 520px) {
  .shipping-hero { padding-top: 30px; }
  .shipping-hero .seo-actions { align-items: stretch; flex-direction: column; }
  .shipping-hero .seo-actions .btn { width: 100%; }
  .shipping-service-card { align-items: flex-start; flex-direction: column; gap: 18px; }
  .shipping-service__price { text-align: left; }
  .seo-page .footer-col a { min-height: 44px; display: flex; align-items: center; }
  .seo-page .footer-legal a { min-height: 44px; display: inline-flex; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .seo-page .nav-links { transition: none; }
}
