:root {
  --pine-950: #0b211b;
  --pine-900: #123129;
  --pine-800: #1b4438;
  --pine-700: #285d4c;
  --moss: #a9ba90;
  --moss-light: #dbe3cf;
  --sand: #f4f0e7;
  --paper: #fffdf8;
  --ink: #17221e;
  --muted: #5e6a65;
  --line: rgba(18, 49, 41, 0.16);
  --ember: #d56745;
  --sky: #c9d9d6;
  --shadow: 0 24px 80px rgba(11, 33, 27, 0.12);
  --radius: 1.35rem;
  --content: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 8rem; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--sand);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 4%, rgba(169, 186, 144, .32), transparent 25rem),
    linear-gradient(rgba(18, 49, 41, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 49, 41, .035) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
button, input { font: inherit; }
button { color: inherit; }
.skip-link {
  position: fixed; left: 1rem; top: -8rem; z-index: 100;
  padding: .75rem 1rem; background: white; color: var(--pine-950); border-radius: .6rem;
}
.skip-link:focus { top: 1rem; }

.update-strip {
  min-height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .45rem 1rem;
  color: #ecf4ef;
  background: var(--pine-950);
  font-size: .75rem;
  letter-spacing: .06em;
  text-align: center;
}
.update-strip span { color: #b9c9bf; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(18, 49, 41, .94);
  color: white;
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(var(--content), calc(100% - 2rem));
  min-height: 4.7rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.4rem;
}
.brand { display: inline-flex; align-items: baseline; gap: .3rem; text-decoration: none; }
.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -.04em;
}
.brand small { color: var(--moss-light); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; }
.main-nav { min-width: 0; }
.main-nav ul {
  display: flex; align-items: center; justify-content: center; gap: .1rem;
  margin: 0; padding: 0; list-style: none;
}
.main-nav a {
  display: block; padding: .55rem .63rem; border-radius: 999px;
  color: #dfe9e3; font-size: .77rem; font-weight: 650; text-decoration: none; white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: white; background: rgba(255,255,255,.11); }
.header-actions { display: flex; align-items: center; gap: .45rem; }
.icon-button, .language-switch {
  min-height: 2.45rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.2); border-radius: 999px;
  color: white; background: transparent; text-decoration: none; cursor: pointer;
}
.icon-button { width: 2.45rem; }
.icon-button svg { width: 1rem; height: 1rem; }
.language-switch { padding: 0 .85rem; font-size: .72rem; font-weight: 750; letter-spacing: .08em; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { list-style: none; cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav-panel {
  position: fixed; top: 7.05rem; left: 1rem; right: 1rem;
  max-height: calc(100vh - 8.5rem); overflow: auto;
  padding: .85rem; border-radius: 1rem; background: var(--pine-900); box-shadow: var(--shadow);
}
.mobile-nav-panel a { display: block; padding: .8rem; border-bottom: 1px solid rgba(255,255,255,.09); text-decoration: none; }

.breadcrumbs {
  width: min(var(--content), calc(100% - 2rem));
  margin: 1.15rem auto .85rem;
  display: flex; align-items: center; flex-wrap: wrap; gap: .45rem;
  color: var(--muted); font-size: .75rem;
}
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--pine-700); }
.breadcrumbs .slash { opacity: .5; }

.hero {
  position: relative;
  width: min(var(--content), calc(100% - 2rem));
  min-height: 34rem;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: end;
  border-radius: calc(var(--radius) + .5rem);
  box-shadow: var(--shadow);
  isolation: isolate;
  background: var(--pine-900);
}
.hero-media, .hero-media::after { position: absolute; inset: 0; }
.hero-media { z-index: -2; }
.hero-media img { height: 100%; object-fit: cover; object-position: center; }
.hero-media::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(7,26,21,.92) 0%, rgba(7,26,21,.58) 52%, rgba(7,26,21,.12) 100%),
    linear-gradient(0deg, rgba(7,26,21,.7), transparent 55%);
}
.hero-content { width: min(52rem, 76%); padding: clamp(2rem, 5vw, 4.6rem); color: white; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-bottom: 1rem; color: #dce7d3; font-size: .72rem; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 2.4rem; height: 1px; background: var(--moss); }
.hero h1 {
  max-width: 15ch; margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 6vw, 5.55rem);
  font-weight: 500; line-height: .98; letter-spacing: -.055em;
  text-wrap: balance;
}
.hero-lead { max-width: 42rem; margin: 1.5rem 0 0; color: #e4ebe7; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.55; }
.hero-credit {
  position: absolute; right: 1rem; bottom: 1rem;
  max-width: 19rem; padding: .45rem .65rem;
  border-radius: .55rem; color: rgba(255,255,255,.82); background: rgba(7,26,21,.55);
  font-size: .62rem; line-height: 1.35; text-decoration: none; backdrop-filter: blur(8px);
}

.meta-bar {
  position: relative; z-index: 2;
  width: min(69rem, calc(100% - 4rem));
  margin: -1.25rem auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: 1rem;
  background: var(--paper); box-shadow: 0 12px 40px rgba(11,33,27,.09);
}
.meta-item { padding: 1rem 1.15rem; border-right: 1px solid var(--line); }
.meta-item:last-child { border-right: 0; }
.meta-label { display: block; color: var(--muted); font-size: .62rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.meta-value { display: block; margin-top: .2rem; color: var(--pine-900); font-size: .84rem; font-weight: 700; }

.page-shell {
  width: min(71rem, calc(100% - 2rem));
  margin: clamp(3rem, 7vw, 6.5rem) auto;
  display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5.75rem);
  align-items: start;
}
.toc { position: sticky; top: 7.3rem; }
.toc-title { margin: 0 0 .8rem; color: var(--pine-900); font-size: .69rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.toc a {
  display: grid; grid-template-columns: 1.8rem 1fr; gap: .3rem;
  padding: .63rem 0; color: var(--muted); font-size: .78rem; line-height: 1.35; text-decoration: none;
}
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--moss); font-size: .62rem; font-weight: 800; }
.toc a:hover { color: var(--pine-700); }
.toc-note { margin-top: 1.1rem; padding: .9rem; border-radius: .8rem; color: var(--pine-900); background: var(--moss-light); font-size: .7rem; line-height: 1.45; }

.article { min-width: 0; }
.article-intro {
  margin: 0 0 3.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.3vw, 1.85rem); line-height: 1.45; color: var(--pine-900);
}
.article-section { margin: 0 0 3.7rem; }
.section-number { display: block; margin-bottom: .55rem; color: var(--ember); font-size: .65rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.article h2 {
  margin: 0 0 1.3rem; color: var(--pine-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance;
}
.article h3 { margin: 2rem 0 .7rem; color: var(--pine-800); font-size: 1.05rem; line-height: 1.35; }
.article p { margin: 0 0 1.15rem; color: #37443e; }
.article strong { color: var(--pine-900); }
.fact-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem;
  margin: 1.4rem 0 0; padding: 0; list-style: none;
}
.fact-list li { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: .85rem; background: rgba(255,253,248,.7); font-size: .82rem; }
.fact-list li::before { content: "→"; margin-right: .5rem; color: var(--ember); font-weight: 900; }
.callout {
  margin: 2rem 0; padding: 1.3rem 1.45rem 1.25rem 1.6rem;
  border-left: .28rem solid var(--ember); border-radius: 0 .9rem .9rem 0;
  background: #efe9dc; color: var(--pine-950);
}
.callout strong { display: block; margin-bottom: .35rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.callout p { margin: 0; color: inherit; font-size: .88rem; }

.article-photo { margin: 3.5rem 0; }
.article-photo img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); box-shadow: 0 18px 50px rgba(11,33,27,.1); }
.article-photo figcaption {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem;
  margin-top: .7rem; color: var(--muted); font-size: .68rem; line-height: 1.4;
}
.article-photo figcaption a { color: var(--pine-700); }

.faq { margin-top: 5rem; padding-top: 3rem; border-top: 2px solid var(--pine-900); }
.faq > h2 { max-width: 15ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 1.15rem 2.4rem 1.15rem 0; color: var(--pine-900); font-weight: 750; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; color: var(--ember); font-size: 1.35rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 45rem; padding: 0 2rem 1rem 0; font-size: .92rem; }

.related {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  color: white; background: var(--pine-950);
}
.related-inner { width: min(var(--content), calc(100% - 2rem)); margin: auto; }
.related-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.related h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 4vw, 3.5rem); font-weight: 500; letter-spacing: -.04em; }
.related-head a { color: var(--moss-light); font-size: .78rem; }
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.related-card {
  min-height: 15rem; padding: 1.2rem; display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid rgba(255,255,255,.13); border-radius: 1rem;
  background: rgba(255,255,255,.055); text-decoration: none; transition: transform .2s ease, background .2s ease;
}
.related-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.09); }
.related-card small { color: var(--moss); font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.related-card strong { max-width: 16ch; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; line-height: 1.18; font-weight: 500; }
.related-card span { color: #bfccc5; font-size: .75rem; }

.site-footer { padding: 4rem 0 2rem; color: #dce6e0; background: #071712; }
.footer-inner { width: min(var(--content), calc(100% - 2rem)); margin: auto; }
.footer-top { display: grid; grid-template-columns: 1.5fr 2fr; gap: 5rem; padding-bottom: 3rem; }
.footer-brand p { max-width: 30rem; color: #9caf9f; font-size: .82rem; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-nav h3 { margin: 0 0 .8rem; color: var(--moss); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-nav a { display: block; margin: .4rem 0; color: #c9d4ce; font-size: .78rem; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); color: #83958b; font-size: .67rem; }

.search-layer[hidden] { display: none; }
.search-layer { position: fixed; inset: 0; z-index: 100; padding: 6vh 1rem; background: rgba(5,19,15,.84); backdrop-filter: blur(12px); }
.search-panel { width: min(47rem, 100%); max-height: 88vh; margin: auto; overflow: auto; border-radius: 1.2rem; background: var(--paper); box-shadow: var(--shadow); }
.search-head { position: sticky; top: 0; display: grid; grid-template-columns: 1fr auto; gap: .6rem; padding: 1rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.search-head input { width: 100%; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: .75rem; outline: none; background: white; }
.search-head input:focus { border-color: var(--pine-700); box-shadow: 0 0 0 3px rgba(40,93,76,.13); }
.search-close { width: 3rem; border: 0; border-radius: .75rem; background: var(--sand); cursor: pointer; }
.search-results { padding: .7rem 1rem 1.2rem; }
.search-result { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.search-result small { color: var(--ember); font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.search-result strong { display: block; margin-top: .15rem; color: var(--pine-900); }
.search-empty { padding: 2rem; color: var(--muted); text-align: center; }

@media (max-width: 1120px) {
  .main-nav li:nth-child(n+7) { display: none; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .header-inner { grid-template-columns: 1fr auto; min-height: 4.2rem; }
  .main-nav { display: none; }
  .mobile-nav { display: block; }
  .header-actions .language-switch { display: none; }
  .hero { min-height: 29rem; }
  .hero-content { width: 92%; padding: 2rem; }
  .hero h1 { font-size: clamp(2.5rem, 10vw, 4.4rem); }
  .hero-credit { display: none; }
  .meta-bar { grid-template-columns: repeat(2, 1fr); width: calc(100% - 2rem); }
  .meta-item:nth-child(2) { border-right: 0; }
  .meta-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .page-shell { grid-template-columns: 1fr; }
  .toc { position: static; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(255,253,248,.6); }
  .toc ol { columns: 2; column-gap: 2rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 580px) {
  .update-strip { font-size: .63rem; }
  .update-strip span { display: none; }
  .header-inner { width: calc(100% - 1rem); }
  .brand small { display: none; }
  .breadcrumbs { width: calc(100% - 1.25rem); margin-top: .75rem; }
  .hero { width: calc(100% - 1rem); min-height: 27rem; border-radius: 1rem; }
  .hero-content { width: 100%; padding: 1.4rem; }
  .hero h1 { max-width: 12ch; }
  .hero-lead { font-size: .94rem; }
  .meta-bar { width: calc(100% - 1.5rem); }
  .meta-item { padding: .8rem; }
  .page-shell { width: calc(100% - 1.5rem); margin-top: 3.5rem; gap: 3rem; }
  .toc ol { columns: 1; }
  .article-intro { font-size: 1.3rem; }
  .article-section { margin-bottom: 3rem; }
  .fact-list { grid-template-columns: 1fr; }
  .article-photo { margin-inline: -.35rem; }
  .article-photo figcaption { grid-template-columns: 1fr; gap: .25rem; padding-inline: .35rem; }
  .related-grid { grid-template-columns: 1fr; }
  .related-card { min-height: 11rem; }
  .related-head { align-items: start; flex-direction: column; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  body { background: white; font-size: 11pt; }
  .update-strip, .site-header, .breadcrumbs, .toc, .related, .site-footer, .search-layer, .hero-credit { display: none !important; }
  .hero { min-height: 0; width: 100%; box-shadow: none; border-radius: 0; background: white; color: black; }
  .hero-media { display: none; }
  .hero-content { width: 100%; padding: 0 0 2rem; color: black; }
  .hero h1, .hero-lead { color: black; }
  .meta-bar { width: 100%; margin: 0; box-shadow: none; }
  .page-shell { display: block; width: 100%; margin: 2rem 0; }
  .article-photo img { max-height: 14cm; box-shadow: none; }
}
