:root {
  --ink: #13201b;
  --muted: #5c6d65;
  --green: #0d8f59;
  --green-dark: #087348;
  --gold: #f4bf4f;
  --cream: #f6f7f2;
  --line: #dce5df;
  --night: #061410;
  --white: #fff;
  --radius: 20px;
  --shadow: 0 16px 48px rgba(9, 46, 32, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.72; }
a { color: var(--green-dark); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
.site-header { position: sticky; top: 0; z-index: 20; height: 74px; color: white; background: rgba(5, 20, 15, .97); border-bottom: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(14px); }
.header-inner { width: min(1180px, calc(100% - 32px)); height: 100%; margin: auto; display: flex; align-items: center; gap: 24px; }
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; color: white; font-size: 2rem; font-weight: 950; line-height: 1; letter-spacing: -.08em; text-decoration: none; }
.brand-digits { color: #65dfa5; }
.brand-letter { margin-left: .08em; color: var(--gold); }
.desktop-nav { margin-left: auto; }
.desktop-nav ul, .site-footer nav ul { display: flex; list-style: none; gap: 5px; padding: 0; margin: 0; }
.desktop-nav a { display: block; color: #dce9e3; padding: 9px 10px; border-radius: 9px; font-size: .88rem; font-weight: 650; text-decoration: none; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: white; background: rgba(255,255,255,.09); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 10px 17px; border: 1px solid transparent; border-radius: 10px; font-weight: 800; line-height: 1; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #112016; background: var(--gold); }
.button-primary:hover { background: #ffd26d; }
.button-ghost { color: white; border-color: rgba(255,255,255,.28); }
.button-ghost:hover { background: rgba(255,255,255,.09); }
.mobile-menu { display: none; margin-left: auto; position: relative; }
.mobile-menu summary { width: 42px; height: 42px; display: grid; place-content: center; gap: 5px; cursor: pointer; list-style: none; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { width: 20px; height: 2px; display: block; background: white; border-radius: 2px; }
.mobile-menu nav { position: absolute; right: 0; top: 50px; width: 220px; padding: 10px; background: #09241b; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; box-shadow: var(--shadow); }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu a { display: block; color: white; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.mobile-menu a[aria-current="page"] { color: var(--gold); background: rgba(255,255,255,.07); }
.breadcrumbs { width: min(1120px, calc(100% - 32px)); min-height: 46px; margin: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .87rem; }
.breadcrumbs a { color: var(--green-dark); text-decoration: none; }
.hero { min-height: 500px; width: min(1240px, calc(100% - 32px)); margin: 0 auto 46px; display: flex; align-items: center; color: white; overflow: hidden; position: relative; isolation: isolate; border-radius: 28px; background: #061612 url("/assets/hero.png") 68% center/cover no-repeat; box-shadow: 0 24px 70px rgba(2, 20, 13, .22); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(2,14,10,.97) 0%, rgba(2,14,10,.82) 37%, rgba(2,14,10,.06) 67%); }
.hero-content { width: min(620px, 58%); padding: clamp(34px, 6vw, 76px); }
.eyebrow { margin: 0 0 12px; color: #78e0ad; font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 780px; margin: 0 0 20px; font-size: clamp(2.15rem, 4.5vw, 4.6rem); line-height: 1.04; letter-spacing: -.045em; }
.hero-content > p:not(.eyebrow) { max-width: 510px; color: #d3e3dc; font-size: clamp(1rem, 1.5vw, 1.15rem); }
.hero-cta { margin-top: 12px; min-height: 50px; padding-inline: 22px; }
.content-wrap { width: min(900px, calc(100% - 32px)); margin: auto; }
.toc { margin-bottom: 28px; padding: 0 24px; background: #0a2b20; color: white; border-radius: 16px; box-shadow: var(--shadow); }
.toc summary { min-height: 68px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font-size: 1.05rem; font-weight: 800; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary span { color: var(--gold); font-size: 1.6rem; transition: transform .2s; }
.toc[open] summary span { transform: rotate(45deg); }
.toc nav { padding: 0 0 22px; border-top: 1px solid rgba(255,255,255,.12); }
.toc ol { columns: 2; gap: 36px; margin: 18px 0 0; padding-left: 24px; }
.toc li { break-inside: avoid; margin: 7px 0; }
.toc a { color: #d6e9e0; }
section:not(.hero) { margin: 0 0 24px; padding: clamp(24px, 4vw, 42px); background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(10, 50, 35, .045); }
.intro-card { border-top: 4px solid var(--green) !important; }
h2, h3 { color: #0a3b2b; line-height: 1.2; letter-spacing: -.025em; }
h2 { margin: 0 0 20px; font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { margin: 30px 0 10px; font-size: 1.25rem; }
p { margin: 0 0 16px; }
section > div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
section > div > a { display: inline-flex; padding: 11px 16px; color: white; background: var(--green); border-radius: 9px; font-weight: 750; text-decoration: none; }
ul, ol { padding-left: 23px; }
li { margin-bottom: 7px; }
.content-wrap table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: .94rem; }
caption { padding-bottom: 12px; color: var(--muted); font-weight: 700; text-align: left; }
th, td { padding: 13px 15px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { color: white; background: #0b513a; }
tbody tr:nth-child(even) { background: #f4f8f5; }
.site-footer { margin-top: 70px; padding: 52px 0 26px; color: #bed0c8; background: var(--night); }
.footer-inner { width: min(1120px, calc(100% - 32px)); margin: auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; }
.footer-brand p { max-width: 560px; margin-top: 20px; }
.site-footer nav ul { flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }
.site-footer nav a { color: white; font-weight: 700; text-decoration: none; }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .86rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .hero { min-height: 470px; }
  .hero-content { width: 64%; }
}

@media (max-width: 640px) {
  .site-header { height: 64px; }
  .header-inner { width: calc(100% - 20px); gap: 7px; }
  .brand { font-size: 1.58rem; }
  .mobile-menu { order: 2; margin-left: auto; }
  .header-actions { order: 3; gap: 5px; }
  .header-actions .button { min-height: 38px; padding: 8px 10px; font-size: .74rem; border-radius: 8px; }
  .mobile-menu summary { width: 38px; height: 38px; }
  .mobile-menu nav { right: -102px; top: 45px; }
  .breadcrumbs { width: calc(100% - 24px); min-height: 42px; }
  .hero { min-height: 540px; width: calc(100% - 24px); margin-bottom: 28px; align-items: flex-end; border-radius: 20px; background-position: 72% center; }
  .hero::after { background: linear-gradient(0deg, rgba(2,14,10,.98) 0%, rgba(2,14,10,.84) 48%, rgba(2,14,10,.16) 100%); }
  .hero-content { width: 100%; padding: 28px 24px; }
  h1 { font-size: clamp(2rem, 10.5vw, 3rem); }
  .content-wrap { width: calc(100% - 24px); }
  .toc ol { columns: 1; }
  section:not(.hero) { padding: 24px 20px; border-radius: 16px; overflow: hidden; }
  .content-wrap table { display: block; overflow-x: auto; white-space: normal; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .site-footer nav ul { justify-content: flex-start; }
  .footer-bottom { grid-column: auto; flex-direction: column; gap: 8px; }
}

@media (max-width: 360px) {
  .brand { font-size: 1.42rem; }
  .header-actions .button { padding-inline: 7px; font-size: .68rem; }
  .mobile-menu summary { width: 34px; }
}
