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

:root {
  --ink: #22160d;
  --ink-soft: #3a2716;
  --muted: #7d6f5e;
  --paper: #e5d7c0;
  --paper-warm: #eee2ce;
  --sheet: #f0e7d5;
  --line: #d0bfa3;
  --line-strong: #b39a7c;
  --blue: #0E6E78;          /* secondary blue accent (was a mislabeled brown) */
  --blue-soft: #d8e8ea;     /* soft blue tint */
  --brown: #120d09;
  --brown-soft: #7a4b2a;
  --green: #556b4a;
  --green-soft: #e8eddf;
  --amber: #b07a50;
  --amber-soft: #f2e2cc;
  --shadow: 0 28px 80px rgba(69, 34, 14, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, var(--brown) 0, var(--brown) 6.5vw, transparent 6.5vw),
    linear-gradient(90deg, transparent calc(100% - 6.5vw), var(--brown) calc(100% - 6.5vw)),
    var(--paper);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

body > nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 48px;
  background: rgba(18, 13, 9, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.nav-wordmark {
  color: #c8b89a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-wordmark span {
  display: block;
  color: #8a7d6b;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0;
}

.nav-contact {
  color: #8a7d6b;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-contact:hover,
.nav-contact:focus-visible {
  color: #e5d7c0;
}

.site-shell {
  flex: 1 0 auto;
  width: min(1280px, calc(100% - 96px));
  margin: 56px auto 52px;
}

.articles-hero,
.article-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(217, 202, 184, 0.94);
  border-radius: 8px;
  background: rgba(240, 231, 213, 0.95);
  box-shadow: var(--shadow);
}

.articles-hero::before,
.article-frame::before {
  position: absolute;
  top: -120px;
  right: 0;
  width: 54%;
  height: 420px;
  content: "";
  background: rgba(240, 231, 213, 0.82);
  clip-path: polygon(100% 0, 100% 100%, 0 52%);
  pointer-events: none;
}

.articles-hero {
  min-height: 360px;
  padding: 64px 72px;
  background:
    radial-gradient(circle at 82% 18%, rgba(85, 107, 74, 0.14), transparent 34%),
    linear-gradient(135deg, #e5d7c0 0%, #f0e7d5 62%, #e7d9be 100%);
}

.hero-copy,
.article-head,
.dossier-list,
.article-inner,
.article-footer-note {
  position: relative;
  z-index: 1;
}

.eyebrow,
.case-label,
.section-label,
.level-kicker,
.source-kicker {
  margin: 0;
  color: #8a7d6b;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.articles-hero h1,
.article-title,
.dossier-card h2,
.level-panel h2,
.story-title,
.article-prose h2,
.article-prose h3 {
  margin: 0;
  color: var(--ink);
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.06;
}

.articles-hero h1 {
  max-width: 780px;
  margin-top: 18px;
  font-size: 4.8rem;
}

.articles-hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.dossier-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.dossier-list-single {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.dossier-card {
  display: grid;
  grid-template-rows: 230px 1fr;
  overflow: hidden;
  min-height: 560px;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sheet);
  box-shadow: 0 18px 50px rgba(69, 34, 14, 0.11);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dossier-card:hover,
.dossier-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 26px 70px rgba(69, 34, 14, 0.18);
}

.dossier-media,
.lab-visual {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  background: #281508;
}

.dossier-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 31% 42%;
}

.lab-visual {
  padding: 26px;
  color: #e5d7c0;
  background:
    radial-gradient(circle at 24% 38%, rgba(176, 91, 65, 0.76) 0 5%, transparent 6% 100%),
    radial-gradient(circle at 58% 50%, rgba(176, 91, 65, 0.6) 0 4%, transparent 5% 100%),
    radial-gradient(circle at 77% 30%, rgba(176, 91, 65, 0.48) 0 4%, transparent 5% 100%),
    linear-gradient(135deg, #120d09, #281508 52%, #556b4a);
}

.lab-visual::before {
  position: absolute;
  inset: 26px;
  content: "";
  border: 1px solid rgba(237, 232, 220, 0.3);
  border-radius: 8px;
}

.lab-visual::after {
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: 168px;
  height: 168px;
  content: "";
  border: 1px solid rgba(237, 232, 220, 0.36);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 18px rgba(237, 232, 220, 0.08),
    inset 0 0 0 42px rgba(237, 232, 220, 0.05);
}

.lab-visual span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 8px 10px;
  color: #281508;
  background: #e5d7c0;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 800;
}

.dossier-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
}

.dossier-card h2 {
  font-size: 2.35rem;
}

.dossier-card p:not(.case-label) {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.68;
}

.dossier-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.dossier-chip,
.article-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.article-frame {
  padding: 44px 48px 48px;
  background:
    linear-gradient(135deg, #e5d7c0 0%, #f0e7d5 56%, #e7d9be 100%);
}

.article-head {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.article-tag {
  margin-bottom: 22px;
}

.article-title {
  max-width: 930px;
  font-size: 4.2rem;
}

.article-subtitle {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.72;
}

.article-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  margin-top: 28px;
}

.article-byline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.article-byline strong {
  color: var(--ink-soft);
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.share-label {
  align-self: center;
  color: var(--muted);
  font-weight: 800;
}

.share-chip,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink-soft);
  background: rgba(240, 231, 213, 0.78);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.copy-button {
  gap: 8px;
  color: var(--blue);
  cursor: pointer;
}

.share-chip:hover,
.share-chip:focus-visible,
.copy-button:hover,
.copy-button:focus-visible {
  transform: translateY(-1px);
  background: #f0e7d5;
  border-color: var(--blue);
}

.article-inner {
  padding-top: 40px;
}

.story-panel {
  margin-bottom: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(240, 231, 213, 0.84);
  box-shadow: 0 14px 34px rgba(69, 34, 14, 0.1);
}

.story-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
}

.story-panel summary::-webkit-details-marker {
  display: none;
}

.story-title {
  display: block;
  margin-top: 5px;
  font-size: 1.65rem;
}

.story-toggle {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.story-toggle::before,
.story-toggle::after {
  position: absolute;
  top: 8px;
  left: 1px;
  width: 16px;
  height: 2px;
  content: "";
  background: #8a7d6b;
  transition: transform 0.2s ease;
}

.story-toggle::after {
  transform: rotate(90deg);
}

.story-panel[open] .story-toggle::after {
  transform: rotate(0);
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 0.62fr;
  gap: 24px;
  padding: 0 26px 26px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.story-content p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.story-content a {
  color: var(--blue);
  font-weight: 800;
}

.story-bridge {
  margin-top: 22px;
  padding: 18px;
  background: #eee2ce;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.story-bridge p {
  margin-top: 0;
}

.story-bridge p + p {
  margin-top: 14px;
}

.story-note {
  align-self: start;
  margin-top: 22px;
  padding: 18px;
  color: var(--ink-soft);
  background: var(--amber-soft);
  border: 1px solid rgba(196, 122, 51, 0.26);
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.story-figure {
  align-self: start;
  margin: 22px 0 0;
  overflow: hidden;
  background: #281508;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(69, 34, 14, 0.14);
}

.story-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.story-figure figcaption {
  padding: 12px 14px;
  color: #e5d7c0;
  background: #281508;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
}

.level-dossier {
  margin-top: 10px;
}

.section-label {
  margin: 0 0 14px;
}

.folder-tabs {
  display: flex;
  align-items: end;
  gap: 6px;
  padding-left: 4px;
  border-bottom: 1px solid var(--line-strong);
}

.folder-tab {
  position: relative;
  min-width: 142px;
  min-height: 54px;
  padding: 0 22px;
  color: var(--muted);
  background: #e8ddcb;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  font-weight: 900;
}

.folder-tab[aria-selected="true"] {
  z-index: 2;
  color: var(--blue);
  background: var(--sheet);
  border-color: var(--line-strong);
}

.folder-tab[aria-selected="true"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--sheet);
}

.folder-body {
  position: relative;
  min-height: 560px;
  padding: 38px 40px;
  background: var(--sheet);
  border: 1px solid var(--line-strong);
  border-top: 0;
  border-radius: 0 8px 8px 8px;
}

.level-panel[hidden] {
  display: none;
}

.level-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.level-panel h2 {
  margin-top: 8px;
  font-size: 2.25rem;
}

.article-prose {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.78;
}

.article-prose > * + * {
  margin-top: 1.15em;
}

.article-prose h2 {
  margin-top: 1.7em;
  font-size: 1.8rem;
}

.article-prose h3 {
  margin-top: 1.45em;
  font-size: 1.35rem;
}

.article-prose p,
.article-prose li {
  max-width: 76ch;
}

.article-prose strong,
.article-prose b {
  color: var(--ink);
}

.article-prose a {
  color: var(--blue);
  font-weight: 800;
}

.article-prose ul,
.article-prose ol {
  padding-left: 1.35em;
}

.article-prose li + li {
  margin-top: 0.55em;
}

.callout,
.dose-meter,
.claim-grid,
.source-box {
  margin: 28px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eee2ce;
}

.callout {
  border-color: rgba(47, 125, 98, 0.24);
  background: var(--green-soft);
}

.dose-meter {
  display: grid;
  gap: 10px;
  border-color: #b89463;
  background:
    linear-gradient(90deg, rgba(85, 107, 74, 0.32), rgba(124, 143, 70, 0.34), rgba(214, 158, 73, 0.42), rgba(188, 91, 45, 0.42), rgba(104, 35, 24, 0.36)),
    #f7ead8;
  box-shadow: inset 0 0 0 1px rgba(120, 75, 42, 0.18);
}

.dose-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.dose-segment {
  min-height: 78px;
  padding: 12px;
  color: #1f140d;
  background: rgba(240, 231, 213, 0.86);
  border: 1px solid rgba(120, 75, 42, 0.28);
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(69, 34, 14, 0.08);
}

.dose-segment:nth-child(1) {
  background: #dfe6d5;
  border-color: #9fad85;
}

.dose-segment:nth-child(2) {
  background: #cfdca9;
  border-color: #8ea05e;
}

.dose-segment:nth-child(3) {
  background: #f3c46f;
  border-color: #c28a38;
}

.dose-segment:nth-child(4) {
  background: #d97943;
  border-color: #a54c25;
}

.dose-segment:nth-child(5) {
  color: #fff7ed;
  background: #6f2d20;
  border-color: #4d1d15;
}

.dose-caption {
  max-width: 92ch;
  margin: 14px 0 0;
  color: #3b2114;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.58;
}

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

.claim-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sheet);
}

.claim-card h3 {
  margin-top: 0;
}

.table-scroll {
  width: 100%;
  margin: 28px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-prose table {
  width: 100%;
  min-width: 720px;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.article-prose th,
.article-prose td {
  min-width: 180px;
  padding: 12px;
  text-align: left;
  vertical-align: top;
  border: 1px solid rgba(36, 48, 68, 0.16);
}

.article-prose th {
  background: #efe3d2;
}

.source-box {
  background: var(--paper-warm);
}

.level-source-box {
  margin: 34px 0 0;
}

.source-box ul {
  margin-bottom: 0;
}

.article-footer-note {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding-top: 26px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
  padding: 30px 64px;
  color: #8a7d6b;
  background: #120d09;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-wordmark {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-right {
  font-size: 0.62rem;
  line-height: 1.8;
  text-align: right;
}

.footer-right a {
  color: #b07a50;
  text-decoration: none;
}

.footer-right a:hover,
.footer-right a:focus-visible {
  color: #e5d7c0;
}

@media (max-width: 1000px) {
  body {
    background: var(--paper);
  }

  .site-shell {
    width: min(100% - 40px, 900px);
    margin-top: 28px;
  }

  .articles-hero,
  .article-frame {
    padding: 34px;
  }

  .articles-hero h1,
  .article-title {
    font-size: 3rem;
  }

  .dossier-list,
  .story-content,
  .article-meta,
  .claim-grid {
    grid-template-columns: 1fr;
  }

  .share-row {
    justify-content: flex-start;
  }

  .dose-track {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body > nav {
    padding: 16px 20px;
  }

  .site-shell {
    width: 100%;
    margin-top: 16px;
    padding: 0 12px;
  }

  .articles-hero,
  .article-frame {
    width: 100%;
    max-width: 100%;
    padding: 24px;
  }

  .article-head,
  .article-inner,
  .level-dossier,
  .folder-body,
  .level-panel {
    min-width: 0;
    max-width: 100%;
  }

  .articles-hero::before,
  .article-frame::before {
    width: 74%;
    height: 300px;
  }

  .articles-hero {
    min-height: 320px;
  }

  .articles-hero h1,
  .article-title {
    font-size: 2.35rem;
    overflow-wrap: break-word;
  }

  .article-subtitle,
  .articles-hero p:not(.eyebrow) {
    max-width: 100%;
    font-size: 1rem;
    overflow-wrap: break-word;
  }

  .dossier-list {
    gap: 18px;
  }

  .dossier-card {
    min-height: 0;
    grid-template-rows: 210px 1fr;
  }

  .dossier-copy,
  .story-panel summary,
  .story-content,
  .folder-body {
    padding: 22px;
  }

  .dossier-card h2 {
    font-size: 1.9rem;
  }

  .folder-tabs {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    padding-left: 0;
    overflow: hidden;
  }

  .folder-tab {
    min-width: 0 !important;
    max-width: 100%;
    width: 100%;
    padding: 0 6px;
    overflow: hidden;
    font-size: 0.74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .level-heading {
    flex-direction: column;
    gap: 16px;
  }

  .copy-button {
    min-width: 136px;
  }

  .level-panel h2 {
    font-size: 1.85rem;
  }

  .article-prose {
    font-size: 1rem;
  }

  .article-footer-note,
  footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }
}

/* ============================================================
/*
   Reusable component: WIP / draft warning banner  (.wip-banner)
   Hazard-striped "work in progress / pending review" notice.
   Markup snippet: components/wip-banner.html
   Drop <div class="wip-banner">…</div> near the top of a page's
   content. Remove the block (or the whole component) to unpublish
   the warning once the work is reviewed/approved.
   ============================================================ */
*/
.wip-banner{position:relative;margin:0 0 26px;border:2px solid #d99a00;border-radius:12px;overflow:hidden;background:#fff7e6;box-shadow:0 8px 22px rgba(217,154,0,0.2);}
.wip-stripes{height:16px;background:repeating-linear-gradient(45deg,#f2b705 0 20px,#1c1a12 20px 40px);}
.wip-body{display:flex;gap:16px;align-items:flex-start;padding:16px 22px 18px;}
.wip-icon{flex:0 0 auto;width:44px;height:44px;margin-top:2px;}
.wip-title{margin:0 0 5px;font-weight:900;letter-spacing:0.05em;text-transform:uppercase;font-size:1rem;color:#8a4b00;}
.wip-text{margin:0;font-size:0.93rem;line-height:1.55;color:#5b4630;}
.wip-text strong{color:#8a4b00;}
@media (max-width:560px){.wip-body{gap:12px;padding:14px 16px 16px;}.wip-icon{width:34px;height:34px;}}
