:root {
  --ink: #0b2430;
  --muted: #58706d;
  --line: #d8e5df;
  --paper: #ffffff;
  --wash: #f5f8f2;
  --teal: #087f68;
  --teal-dark: #056352;
  --navy: #071b35;
  --gold: #eab43a;
  --coral: #eb6b5e;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--wash);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fffaf0 0, #f7faf4 430px, #fff 900px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

a { color: var(--teal-dark); }
a:hover { color: var(--teal); }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(11, 36, 48, .1);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}

.site-header__inner,
.article-shell,
.site-footer__inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 850;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 750;
}

.site-nav a { text-decoration: none; }
.site-nav .nav-cta {
  padding: 10px 15px;
  border-radius: 6px;
  color: #fff;
  background: var(--navy);
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  padding: 72px 0 88px;
}

.article-main { min-width: 0; }

.breadcrumbs {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a { text-decoration: none; }
.breadcrumbs span { margin: 0 8px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.16;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  margin: 0 0 22px;
  font-size: clamp(38px, 6vw, 66px);
}

h2 {
  margin: 58px 0 18px;
  padding-top: 4px;
  font-size: clamp(28px, 4vw, 38px);
}

h3 {
  margin: 32px 0 10px;
  font-size: 23px;
}

p, ul, ol { margin: 0 0 22px; }
li + li { margin-top: 8px; }

.dek {
  max-width: 780px;
  margin-bottom: 22px;
  color: #395451;
  font-size: 21px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 14px;
}

.answer-box,
.callout,
.source-box,
.next-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.answer-box {
  margin: 30px 0 40px;
  padding: 26px;
  border-left: 5px solid var(--teal);
  box-shadow: 0 18px 48px rgba(7, 27, 53, .08);
}

.answer-box strong {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 20px;
}

.answer-box p:last-child,
.callout p:last-child,
.source-box p:last-child { margin-bottom: 0; }

.article-image {
  width: 100%;
  margin: 34px 0 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.visual-figure {
  margin: 34px 0 42px;
}

.visual-figure .article-image {
  margin: 0;
}

.visual-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.visual-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.steps {
  margin: 26px 0 34px;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  min-height: 54px;
  padding: 3px 0 22px 68px;
  counter-increment: steps;
}

.steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  content: counter(steps);
  font-weight: 850;
}

.steps strong {
  display: block;
  color: var(--navy);
  font-size: 19px;
}

.callout {
  margin: 30px 0;
  padding: 22px 24px;
  background: #eaf6ef;
}

.callout--warning {
  border-color: #efd7a2;
  background: #fff8e7;
}

.table-wrap {
  max-width: 100%;
  margin: 28px 0 38px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
}

caption {
  padding: 16px 18px;
  color: var(--muted);
  text-align: left;
  font-weight: 650;
}

th, td {
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--navy);
  background: #f2f7f4;
}

.source-box {
  margin-top: 52px;
  padding: 24px;
  color: var(--muted);
  font-size: 15px;
}

.source-box strong {
  color: var(--navy);
}

.article-aside {
  position: relative;
}

.aside-sticky {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.aside-card {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
}

.aside-card h2 {
  margin: 0 0 12px;
  font-size: 21px;
}

.aside-card p {
  color: var(--muted);
  font-size: 15px;
}

.aside-card ul {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
}

.button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 16px;
  border-radius: 6px;
  color: #fff;
  background: var(--teal-dark);
  font-size: 15px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  color: #fff;
  background: var(--teal);
}

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

.next-card {
  min-height: 154px;
  padding: 22px;
  color: var(--ink);
  text-decoration: none;
}

.next-card:hover {
  border-color: #8fc5b5;
  box-shadow: 0 16px 36px rgba(7, 27, 53, .07);
}

.next-card small {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-weight: 800;
  text-transform: uppercase;
}

.next-card strong {
  display: block;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.3;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--navy);
  color: #c8d6d8;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  padding: 38px 0;
}

.site-footer p { margin: 0; font-size: 14px; }
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.site-footer a { color: #fff; font-size: 14px; }

@media (max-width: 880px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .article-shell {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 48px;
  }
  .aside-sticky { position: static; }
  .site-footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header__inner,
  .article-shell,
  .site-footer__inner {
    width: min(100% - 28px, 1160px);
  }
  .site-header__inner { min-height: 64px; }
  .brand { font-size: 16px; }
  .brand img { width: 34px; height: 34px; }
  .site-nav .nav-cta { padding: 9px 12px; font-size: 13px; }
  h1 { font-size: 38px; }
  .dek { font-size: 18px; }
  .answer-box { padding: 20px; }
  .related-grid { grid-template-columns: 1fr; }
  .visual-scroll .article-image {
    width: 700px;
    max-width: none;
  }
}
