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

.seo-skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 9999;
  padding: 10px 14px;
  background: #fff;
  color: #171814;
  border: 1px solid #171814;
}

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

.seo-header {
  position: relative;
  z-index: 3;
  background: #f8f5ef;
  border-bottom: 1px solid rgba(23, 24, 20, .12);
}

.seo-header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.seo-header nav,
.seo-footer nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.seo-header nav a,
.seo-footer a { color: inherit; }

.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%),
    #f8f5ef;
}

.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, #686a61);
  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, #62645c);
  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: #fff;
  border: 1px solid rgba(23, 24, 20, .13);
  border-radius: 18px;
}

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

.seo-source__label {
  margin: 0 0 10px;
  color: #9e4a2e;
  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, #62645c);
  line-height: 1.65;
}

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

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

.seo-components {
  max-width: 860px;
  padding: 26px 30px;
  margin: 24px 0;
  background: #f2eee6;
  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: #fff;
  border: 1px solid rgba(23, 24, 20, .13);
  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 rgba(23, 24, 20, .08);
}

.seo-coa-card dt { color: var(--muted, #62645c); }
.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: #fff;
  border: 1px solid rgba(23, 24, 20, .12);
  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, #62645c); 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: rgba(23, 24, 20, .12);
  border: 1px solid rgba(23, 24, 20, .12);
  border-radius: 16px;
}

.seo-fact-grid div { padding: 24px; background: #fff; }
.seo-fact-grid span { display: block; margin-bottom: 8px; color: var(--muted, #62645c); 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 rgba(23, 24, 20, .12);
}

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

.seo-table-wrap { overflow-x: auto; margin-top: 28px; border: 1px solid rgba(23, 24, 20, .13); border-radius: 16px; background: #fff; }
.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 rgba(23, 24, 20, .09); text-align: left; vertical-align: top; }
.seo-evidence-table thead th { color: var(--muted, #62645c); 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-footer {
  padding: 36px 0;
  color: #ece9e2;
  background: #24251f;
}

.seo-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  align-items: center;
}

.seo-footer p { max-width: 760px; margin: 0; color: rgba(255,255,255,.76); font-size: 13px; line-height: 1.55; }

.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 rgba(23,24,20,.09); }
.seo-dose-list li span:last-child { min-width: 86px; color: var(--muted, #62645c); text-align: right; }

@media (max-width: 720px) {
  .seo-header__inner { min-height: 70px; }
  .seo-header nav { display: none; }
  .seo-footer .container { align-items: flex-start; flex-direction: column; }
  .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; }
}
