/* ============================================================
   BioWasteGuide - styles.css
   Editorial regulatory reference. Clinical, authoritative, calm.
   Serif display (Source Serif 4) + Inter body. Teal primary,
   amber accent for data/alerts, red reserved for biohazard cues.
   ============================================================ */

:root {
  /* brand */
  --teal: #0e7c7b;
  --teal-dark: #0a5c5b;
  --teal-light: #e6f2f1;
  --amber: #b45309;
  --amber-light: #fef3e2;
  --red: #b91c1c;

  /* neutrals */
  --ink: #11201f;
  --slate-800: #1f2d2c;
  --slate-700: #34433f;
  --slate-600: #4b5a55;
  --slate-500: #6b7975;
  --slate-400: #94a39e;
  --slate-300: #cdd6d2;
  --slate-200: #e3e9e6;
  --slate-100: #f1f5f3;
  --slate-50:  #f8faf9;
  --white: #ffffff;

  --bg: var(--white);
  --bg-soft: var(--slate-50);
  --border: var(--slate-200);

  --maxw: 880px;
  --maxw-wide: 1120px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(17,32,31,.05), 0 4px 16px rgba(17,32,31,.04);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.3rem; font-weight: 700; margin: 0 0 .5rem; }
h2 { font-size: 1.55rem; font-weight: 600; margin: 2.4rem 0 .9rem; }
h3 { font-size: 1.2rem; font-weight: 600; margin: 1.6rem 0 .5rem; }

p { margin: 0 0 1rem; }
a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal); }

main { display: block; }

/* layout container applied per-section */
.page-head, .reg-article, .disposal-article, .study-article,
.breadcrumb, .module-grid, .who-section, .faq-section,
.card-grid, .reg-table-wrap, .hero-inner, .footer-inner,
.tldr-block, .key-takeaways, .sources-block, .quote-cta-inner,
.cross-links, .unique-section, .steps-section, .counts-section,
.colorcode-section, .mini-table-section, .methodology, .cite-block,
.disclaimer, .verified-bar, .stat-grid, .edition-list, .case-list {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.reg-table-wrap, .stat-grid, .module-grid, .card-grid { max-width: var(--maxw-wide); }

/* ---------- nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw-wide); margin: 0 auto; padding: 0 24px;
  height: 62px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--teal-dark); text-decoration: none; font-weight: 700; }
.brand-text { font-family: 'Source Serif 4', serif; font-size: 1.22rem; letter-spacing: -.02em; color: var(--ink); }
.brand-accent { color: var(--teal); }
.logo-mark { color: var(--teal); flex: none; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--slate-700); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--teal-dark); }
.nav-cta {
  background: var(--teal); color: #fff !important; padding: 8px 16px; border-radius: 8px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--teal-dark); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--teal-light), var(--white)); border-bottom: 1px solid var(--border); padding: 64px 0 56px; }
.hero-inner { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--teal-dark); margin-bottom: .6rem; }
.hero h1 { font-size: 2.8rem; max-width: 16ch; margin: 0 auto .9rem; }
.hero-dek { font-size: 1.18rem; color: var(--slate-600); max-width: 60ch; margin: 0 auto 1.6rem; }
.hero-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.cta-button {
  display: inline-block; background: var(--teal); color: #fff; padding: 13px 26px;
  border-radius: 9px; font-weight: 600; text-decoration: none; font-size: 1rem;
}
.cta-button:hover { background: var(--teal-dark); color: #fff; }
.cta-button.ghost { background: #fff; color: var(--teal-dark); border: 1.5px solid var(--teal); }
.cta-button.ghost:hover { background: var(--teal-light); }

/* ---------- page head ---------- */
.page-head { padding-top: 40px; }
.dek { font-size: 1.18rem; color: var(--slate-600); max-width: 62ch; }

.breadcrumb { padding-top: 20px; font-size: .86rem; color: var(--slate-500); }
.breadcrumb a { color: var(--slate-600); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal-dark); text-decoration: underline; }
.breadcrumb .sep { color: var(--slate-300); margin: 0 2px; }
.breadcrumb [aria-current] { color: var(--slate-700); }

/* ---------- verified bar ---------- */
.verified-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .88rem; color: var(--slate-600);
  background: var(--slate-50); border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 14px; margin: 1rem 0 0;
}
.verified-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); flex: none; box-shadow: 0 0 0 3px var(--teal-light); }
.changelog { margin-left: auto; font-size: .85rem; }
.changelog summary { cursor: pointer; color: var(--teal-dark); }
.changelog ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.changelog time { color: var(--slate-500); }

/* ---------- AEO: tldr ---------- */
.tldr-block {
  margin-top: 1.6rem; background: var(--teal-light);
  border-left: 4px solid var(--teal); border-radius: 8px; padding: 16px 20px;
}
.tldr-label { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--teal-dark); margin-bottom: .25rem; }
.tldr-block p { margin: 0; font-size: 1.08rem; color: var(--slate-800); }

/* ---------- AEO: key takeaways ---------- */
.key-takeaways {
  margin-top: 1.6rem; background: var(--slate-50);
  border: 1px solid var(--border); border-radius: 10px; padding: 18px 22px;
}
.key-takeaways h2 { margin: 0 0 .6rem; font-size: 1.1rem; }
.key-takeaways ul { margin: 0; padding-left: 1.15rem; }
.key-takeaways li { margin-bottom: .5rem; color: var(--slate-700); }

/* ---------- AEO: sources ---------- */
.sources-block { margin-top: 2.4rem; border-top: 2px solid var(--teal-light); padding-top: 1.2rem; }
.sources-block h2 { font-size: 1.15rem; margin-top: .4rem; }
.sources-block ul { padding-left: 1.15rem; }
.sources-block li { margin-bottom: .35rem; word-break: break-word; }
.sources-note { font-size: .85rem; color: var(--slate-500); margin-top: .6rem; }

/* ---------- tables ---------- */
.reg-table-wrap { overflow-x: auto; margin: 1.2rem auto; }
.reg-table { width: 100%; border-collapse: collapse; font-size: .96rem; background: #fff; }
.reg-table caption { text-align: left; color: var(--slate-500); font-size: .86rem; margin-bottom: .6rem; }
.reg-table th, .reg-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.reg-table thead th { background: var(--slate-100); font-family: 'Inter', sans-serif; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--slate-600); }
.reg-table tbody th[scope="row"] { font-family: 'Inter', sans-serif; font-weight: 600; color: var(--ink); width: 32%; background: var(--slate-50); }
.reg-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.cell-list { margin: 0; padding-left: 1.1rem; }
.cell-list li { margin-bottom: .25rem; }
.cell-src { font-size: .78rem; color: var(--teal-dark); white-space: nowrap; text-decoration: none; }
.cell-src:hover { text-decoration: underline; }
.reg-table.mini th[scope="row"] { width: auto; }

/* ---------- sections ---------- */
.unique-section, .counts-section, .colorcode-section, .steps-section, .mini-table-section, .methodology { margin-top: 2rem; }
.steps { padding-left: 1.3rem; }
.steps li { margin-bottom: 1rem; }
.steps li strong { color: var(--ink); }

/* ---------- disclaimer ---------- */
.disclaimer {
  background: var(--amber-light); border: 1px solid #f3d9b4;
  border-left: 4px solid var(--amber); border-radius: 8px;
  padding: 14px 18px; margin: 2rem auto; font-size: .94rem; color: var(--slate-700);
}
.disclaimer strong { color: var(--amber); }

/* ---------- FAQ ---------- */
.faq-section { margin-top: 2.6rem; }
.faq-item { border: 1px solid var(--border); border-radius: 9px; margin-bottom: 10px; background: #fff; }
.faq-item summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--ink); list-style: none; font-size: 1.03rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--teal); font-weight: 700; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-a { padding: 0 18px 14px; color: var(--slate-700); }

/* ---------- quote CTA ---------- */
.quote-cta { margin: 3rem 0; }
.quote-cta-inner {
  background: var(--ink); color: #fff; border-radius: 14px; padding: 34px 32px; text-align: center;
}
.quote-cta-inner h2 { color: #fff; margin: 0 0 .5rem; }
.quote-cta-inner p { color: #c9d6d3; max-width: 56ch; margin: 0 auto 1.2rem; }
.quote-cta .cta-button { background: var(--teal); }
.quote-cta .cta-button:hover { background: var(--teal-dark); }
.cta-fineprint { font-size: .8rem; color: #8aa39e !important; margin-top: 1rem !important; }

/* ---------- cross links ---------- */
.cross-links { margin-top: 2.2rem; }
.cross-links h2 { font-size: 1.15rem; }
.link-grid { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.link-grid a { display: inline-block; background: var(--teal-light); color: var(--teal-dark); padding: 7px 14px; border-radius: 20px; text-decoration: none; font-size: .9rem; font-weight: 500; }
.link-grid a:hover { background: var(--teal); color: #fff; }

/* ---------- stat cards ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 1.6rem auto; }
.stat-card { background: var(--slate-50); border: 1px solid var(--border); border-radius: 12px; padding: 22px; text-align: center; }
.stat-big { display: block; font-family: 'Source Serif 4', serif; font-size: 2.4rem; font-weight: 700; color: var(--teal-dark); line-height: 1; }
.stat-label { display: block; margin-top: .5rem; font-size: .9rem; color: var(--slate-600); font-weight: 500; }
.stat-sub { display: block; margin-top: .25rem; font-size: .78rem; color: var(--slate-500); }

/* ---------- cite block ---------- */
.cite-block { background: var(--slate-50); border: 1px dashed var(--slate-300); border-radius: 10px; padding: 18px 22px; margin: 2.4rem auto; }
.cite-block h2 { margin-top: 0; font-size: 1.2rem; }
.cite-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cite-text { flex: 1 1 320px; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; font-size: .82rem; color: var(--slate-700); font-family: ui-monospace, Menlo, monospace; }
.copy-cite { background: var(--teal); color: #fff; border: none; border-radius: 6px; padding: 10px 16px; font-weight: 600; cursor: pointer; font-size: .88rem; }
.copy-cite:hover { background: var(--teal-dark); }

.case-list li { margin-bottom: .8rem; }
.prov-list { padding-left: 1.4rem; }
.prov-list li { margin-bottom: .55rem; color: var(--slate-700); }
.prov-list code { background: var(--slate-100); padding: 1px 6px; border-radius: 4px; font-size: .85em; color: var(--ink); }
.methodology { font-size: .96rem; color: var(--slate-600); }
.methodology p { max-width: 70ch; }

/* ---------- module grid (home) ---------- */
.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 56px auto; }
.module-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 28px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .12s, border-color .12s; }
.module-card:hover { transform: translateY(-3px); border-color: var(--teal); color: inherit; }
.module-num { font-family: 'Source Serif 4', serif; font-size: .9rem; color: var(--teal); font-weight: 700; }
.module-card h2 { margin: .3rem 0 .6rem; font-size: 1.4rem; }
.module-card p { color: var(--slate-600); font-size: .96rem; }
.module-meta { display: inline-block; margin-top: .4rem; font-size: .82rem; font-weight: 600; color: var(--teal-dark); background: var(--teal-light); padding: 4px 12px; border-radius: 16px; }

.who-section { margin: 48px auto; }
.who-section p { font-size: 1.1rem; color: var(--slate-600); }

/* ---------- card grid (disposal index) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 1.6rem auto; }
.grid-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-decoration: none; color: inherit; transition: border-color .12s, transform .12s; }
.grid-card:hover { border-color: var(--teal); transform: translateY(-2px); color: inherit; }
.grid-card h2 { font-size: 1.15rem; margin: 0 0 .4rem; }
.grid-card p { font-size: .9rem; color: var(--slate-600); margin: 0; }

.edition-list { list-style: none; padding: 0; }
.edition-list li a { display: inline-block; padding: 10px 18px; background: var(--teal-light); border-radius: 8px; text-decoration: none; font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #b9c7c3; margin-top: 64px; padding: 48px 0 28px; }
.footer-inner { max-width: var(--maxw-wide); display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-family: 'Source Serif 4', serif; font-size: 1.2rem; font-weight: 700; }
.footer-brand .logo-mark { color: var(--teal); }
.footer-tagline { color: #9fb2ae; font-size: .92rem; margin: .6rem 0; }
.footer-disclaimer { font-size: .82rem; color: #8aa39e; line-height: 1.5; }
.footer-disclaimer strong { color: #b9c7c3; }
.footer-col h3 { color: #fff; font-family: 'Inter', sans-serif; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .8rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: #b9c7c3; text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: var(--maxw-wide); margin: 32px auto 0; padding: 18px 24px 0; border-top: 1px solid #2a3a38; font-size: .85rem; color: #8aa39e; }
.footer-bottom a { color: #b9c7c3; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero h1 { font-size: 2.1rem; }
  h1 { font-size: 1.9rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .reg-table tbody th[scope="row"] { width: 40%; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
}
