/* PDRNpedia — static content site styles
   Design goals: readable long-form, trustworthy (YMYL health content), fast, no framework. */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-tint: #eef4f3;
  --ink: #16211f;
  --ink-soft: #4a5a57;
  --ink-faint: #7a8a87;
  --line: #e2e8e6;
  --accent: #0f6f5c;
  --accent-soft: #e6f2ef;
  --accent-ink: #0a4f42;
  --warn-bg: #fff8e8;
  --warn-line: #f0dca6;
  --warn-ink: #6b5312;
  --maxw: 46rem;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: .6rem 1rem; z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: .85rem; padding-bottom: .85rem; flex-wrap: wrap;
}
.brand {
  text-decoration: none; font-weight: 700; font-size: 1.2rem;
  letter-spacing: -.02em; display: inline-flex; align-items: baseline;
}
.brand__mark { color: var(--accent); }
.brand__name { color: var(--ink); }

.site-nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .93rem;
  padding: .35rem .6rem; border-radius: 999px; transition: background .15s, color .15s;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.site-nav a.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }

/* ---------- page ---------- */

.page { padding: 2.25rem 0 3.5rem; }
.page--home { padding-top: 2.75rem; }

.page-head { margin-bottom: 2rem; }
.page-head h1 {
  font-size: clamp(1.85rem, 5vw, 2.5rem);
  line-height: 1.18; letter-spacing: -.025em; margin: 0 0 .65rem;
  font-weight: 750;
}
.page-head__sub {
  margin: 0 0 1rem; color: var(--ink-soft);
  font-size: 1.13rem; line-height: 1.55;
}
.page-meta {
  margin: 0; color: var(--ink-faint); font-size: .85rem;
  display: flex; flex-wrap: wrap; gap: .45rem; align-items: center;
}
.page-meta__sep { opacity: .5; }

.page h2 {
  font-size: 1.45rem; line-height: 1.3; letter-spacing: -.015em;
  margin: 2.6rem 0 .85rem; font-weight: 700;
  scroll-margin-top: 5rem;
}
.page h3 {
  font-size: 1.13rem; line-height: 1.4;
  margin: 1.9rem 0 .55rem; font-weight: 650;
  scroll-margin-top: 5rem;
}
.page h4 { font-size: 1rem; margin: 1.5rem 0 .4rem; font-weight: 650; }

.page p { margin: 0 0 1.05rem; }
.page p.lead { font-size: 1.13rem; color: var(--ink-soft); line-height: 1.65; }

.page a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.page a:hover { color: var(--accent-ink); background: var(--accent-soft); }

.page ul, .page ol { margin: 0 0 1.15rem; padding-left: 1.35rem; }
.page li { margin-bottom: .5rem; }
.page li::marker { color: var(--ink-faint); }

.page strong { font-weight: 650; }

.page hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.page blockquote {
  margin: 1.5rem 0; padding: .2rem 0 .2rem 1.15rem;
  border-left: 3px solid var(--accent); color: var(--ink-soft); font-style: italic;
}

/* ---------- components ---------- */

.toc {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 0 0 2.25rem;
}
.toc__title {
  margin: 0 0 .5rem; font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint);
}
.toc ol { margin: 0; padding-left: 1.15rem; }
.toc li { margin-bottom: .3rem; font-size: .95rem; }
.toc a { text-decoration: none; color: var(--ink-soft); }
.toc a:hover { color: var(--accent); text-decoration: underline; background: none; }

.callout {
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  background: var(--bg-soft); border-radius: var(--radius);
  padding: 1rem 1.15rem; margin: 1.6rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout--key { border-left-color: var(--accent); background: var(--accent-soft); }
.callout--warn { border-left-color: #d9a520; background: var(--warn-bg); }
.callout--warn p { color: var(--warn-ink); }
.callout__label {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: .35rem;
}

.evidence {
  display: inline-block; font-size: .74rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .12rem .5rem; border-radius: 999px; vertical-align: middle;
  white-space: nowrap;
}
.evidence--strong { background: #dff0e6; color: #1c5c37; }
.evidence--mixed { background: #fff1d6; color: #7a5a10; }
.evidence--weak { background: #f3e4e4; color: #7d2f2f; }

/* product cards */
.products { display: grid; gap: 1rem; margin: 1.5rem 0 2rem; }
.product {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.25rem; background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
}
.product:hover { border-color: #c9d6d3; box-shadow: 0 2px 14px rgba(15,111,92,.07); }
.product__head { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-bottom: .3rem; }
.product__name { font-size: 1.06rem; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.product__brand { font-size: .82rem; color: var(--ink-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.product__tag {
  font-size: .75rem; font-weight: 700; padding: .15rem .55rem;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink);
}
.product__desc { margin: .4rem 0 .75rem; font-size: .97rem; color: var(--ink-soft); }
.product__spec { margin: 0 0 .8rem; font-size: .9rem; }
.product__spec dt { font-weight: 650; color: var(--ink); display: inline; }
.product__spec dd { display: inline; margin: 0; color: var(--ink-soft); }
.product__spec dd::after { content: ""; display: block; }
.product__cta {
  display: inline-block; background: var(--accent); color: #fff;
  text-decoration: none; font-weight: 650; font-size: .93rem;
  padding: .5rem 1rem; border-radius: 999px; transition: background .15s;
}
.product__cta:hover { background: var(--accent-ink); color: #fff; }
.product__note { font-size: .82rem; color: var(--ink-faint); margin: .6rem 0 0; }

/* tables */
.table-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; min-width: 34rem; }
caption {
  caption-side: top; text-align: left; padding: .85rem 1rem;
  font-weight: 650; background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
th, td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-soft); font-weight: 650; font-size: .86rem; color: var(--ink-soft); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--bg-soft); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* FAQ */
.faq { margin-top: 2.75rem; }
.faq-item { border-bottom: 1px solid var(--line); padding: .15rem 0; }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; padding: .95rem 0; font-weight: 650; font-size: 1.02rem;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.35rem; color: var(--accent);
  font-weight: 400; line-height: 1; flex-shrink: 0; transition: transform .15s;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { color: var(--accent); }
.faq-a { padding: 0 0 1.1rem; color: var(--ink-soft); }
.faq-a p:last-child { margin-bottom: 0; }

/* references */
.references { margin-top: 2.5rem; }
.references ol { padding-left: 1.3rem; font-size: .92rem; }
.references li { margin-bottom: .55rem; color: var(--ink-soft); }
.references a { word-break: break-word; }

/* author box */
.author-box {
  margin-top: 2.5rem; padding: 1.2rem 1.35rem;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.author-box__label {
  margin: 0 0 .2rem; font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint);
}
.author-box__name { margin: 0 0 .15rem; font-weight: 700; font-size: 1.05rem; }
.author-box__creds { margin: 0 0 .55rem; font-size: .9rem; color: var(--accent-ink); font-weight: 600; }
.author-box__bio { margin: 0; font-size: .93rem; color: var(--ink-soft); }

/* disclaimer */
.disclaimer {
  margin-top: 1.25rem; padding: 1rem 1.2rem;
  background: var(--warn-bg); border: 1px solid var(--warn-line);
  border-radius: var(--radius); font-size: .88rem; line-height: 1.6;
}
.disclaimer p { margin: 0; color: var(--warn-ink); }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 2rem 0 2.5rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin-bottom: 1rem; }
.footer-nav a { color: var(--ink-soft); text-decoration: none; font-size: .9rem; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.footer-note { margin: 0 0 .35rem; font-size: .87rem; color: var(--ink-soft); }
.footer-note--small { font-size: .78rem; color: var(--ink-faint); line-height: 1.6; }

/* ---------- responsive ---------- */

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .site-header__inner { gap: .55rem; }
  .site-nav { width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: .15rem; }
  .site-nav a { padding: .3rem .5rem; white-space: nowrap; }
  .page { padding-top: 1.6rem; }
  .page h2 { font-size: 1.3rem; margin-top: 2.1rem; }
  .product { padding: 1rem; }
  th, td { padding: .6rem .7rem; }
}

@media print {
  .site-header, .site-footer, .toc, .product__cta { display: none; }
  body { font-size: 11pt; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
