:root {
  --ink: #10252a;
  --ink-soft: #40565b;
  --paper: #ffffff;
  --paper-alt: #f2f8f7;
  --line: #cfdfdc;
  --brand: #087f74;
  --brand-dark: #075d56;
  --brand-pale: #dff4f0;
  --caution: #9c5b00;
  --caution-pale: #fff4dc;
  --focus: #f0b429;
  --max: 74rem;
  --measure: 44rem;
  --shadow: 0 12px 32px rgba(16, 37, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  display: block;
  height: 0.35rem;
  background: linear-gradient(90deg, var(--brand) 0 64%, #62c7bb 64% 82%, var(--focus) 82% 100%);
}

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

a {
  color: var(--brand-dark);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 0.2rem solid var(--focus);
  outline-offset: 0.2rem;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.65rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  transform: translateY(-180%);
  border-radius: 0.35rem;
  background: var(--ink);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  min-height: 4.25rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.12rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.brand span {
  color: var(--brand);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  min-height: 2.75rem;
  padding: 0.62rem 0.8rem;
  display: inline-flex;
  align-items: center;
  border-radius: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  background: var(--paper-alt);
  color: var(--brand-dark);
}

.nav-mobile {
  position: relative;
}

.nav-mobile summary {
  min-width: 5.6rem;
  min-height: 2.75rem;
  padding: 0.58rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}

.nav-mobile summary::-webkit-details-marker {
  display: none;
}

.nav-mobile summary::before {
  content: "☰";
  font-size: 1.05rem;
}

.nav-mobile[open] summary::before {
  content: "×";
}

.nav-mobile nav {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  width: min(18rem, calc(100vw - 2rem));
  padding: 0.5rem;
  display: grid;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.nav-mobile a {
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  border-radius: 0.35rem;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.nav-mobile a:hover {
  background: var(--paper-alt);
}

.page-shell {
  overflow: clip;
}

.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 90% 4%, rgba(8, 127, 116, 0.16), transparent 26rem),
    linear-gradient(180deg, #f8fcfb 0%, #fff 100%);
}

.hero-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding-block: clamp(2.25rem, 8vw, 5.75rem) clamp(2.5rem, 7vw, 5rem);
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  text-wrap: balance;
}

h1 {
  max-width: 15ch;
  margin-bottom: 1rem;
  font-size: clamp(2.15rem, 8.5vw, 4.7rem);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.article-hero h1 {
  max-width: 19ch;
  font-size: clamp(2.15rem, 7.5vw, 4.3rem);
}

.dek {
  max-width: 41rem;
  margin: 0;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 3vw, 1.42rem);
  line-height: 1.48;
}

.hero-actions {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  min-height: 3rem;
  padding: 0.73rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--brand-dark);
  border-radius: 0.4rem;
  background: var(--brand-dark);
  color: #fff;
  font-weight: 780;
  line-height: 1.2;
  text-decoration: none;
}

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

.button-secondary {
  background: transparent;
  color: var(--brand-dark);
}

.button-secondary:hover {
  background: var(--brand-pale);
  color: var(--brand-dark);
}

.answer-card {
  padding: 1.25rem;
  border: 1px solid #acd7d1;
  border-top: 0.3rem solid var(--brand);
  border-radius: 0.55rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.answer-label {
  margin: 0 0 0.45rem;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.answer-card h2,
.answer-card h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  line-height: 1.2;
}

.answer-card p {
  margin-block: 0.45rem 0;
}

.quick-checks {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.62rem;
  list-style: none;
}

.quick-checks li {
  display: grid;
  grid-template-columns: 1.65rem 1fr;
  gap: 0.65rem;
  align-items: start;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.quick-checks li::before {
  content: "✓";
  width: 1.65rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-pale);
  color: var(--brand-dark);
  font-weight: 900;
}

.meta-row {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.meta-row span + span::before {
  content: "•";
  margin-right: 1rem;
  color: #7d9397;
}

.breadcrumbs {
  width: min(100% - 2rem, var(--max));
  margin: 1rem auto 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.breadcrumbs ol {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: #789096;
}

.section {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding-block: clamp(2.8rem, 7vw, 5.2rem);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 1.75rem;
}

.section-heading h2 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.85rem, 5vw, 2.8rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.section-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.topic-grid,
.question-grid,
.trust-grid {
  display: grid;
  gap: 1rem;
}

.topic-card,
.question-card,
.trust-card {
  min-height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--paper);
}

.topic-card {
  color: inherit;
  text-decoration: none;
}

.topic-card:hover {
  border-color: var(--brand);
  color: inherit;
  box-shadow: var(--shadow);
  transform: translateY(-0.1rem);
}

.card-kicker {
  margin: 0 0 0.55rem;
  color: var(--brand-dark);
  font-size: 0.75rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topic-card h3,
.question-card h3,
.trust-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.3rem;
  line-height: 1.22;
}

.topic-card p,
.question-card p,
.trust-card p {
  margin: 0;
  color: var(--ink-soft);
}

.card-link {
  margin-top: 1rem !important;
  color: var(--brand-dark) !important;
  font-weight: 760;
}

.ad-marker {
  width: min(100% - 2rem, 48rem);
  min-height: 7rem;
  margin: 2rem auto;
  padding: 1rem;
  display: grid;
  place-items: center;
  border: 1px dashed #9aadb0;
  border-radius: 0.45rem;
  background: #f8faf9;
  color: #53696e;
  text-align: center;
}

.ad-marker strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ad-marker p {
  max-width: 36rem;
  margin: 0;
  font-size: 0.88rem;
}

.feature-band {
  background: var(--ink);
  color: #fff;
}

.feature-band .section {
  border: 0;
}

.feature-band h2,
.feature-band h3 {
  color: #fff;
}

.feature-band .section-heading p,
.feature-band .trust-card p {
  color: #d8e6e4;
}

.feature-band .trust-card {
  border-color: #375157;
  background: #173239;
}

.feature-band .card-kicker {
  color: #8ee1d7;
}

.number {
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 0.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 850;
}

.article-layout {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding-block: clamp(2.25rem, 6vw, 4.5rem);
  display: grid;
  gap: 2rem;
}

.toc {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--paper-alt);
}

.toc h2 {
  margin-bottom: 0.7rem;
  font-family: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.toc li + li {
  margin-top: 0.35rem;
}

.toc a {
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 630;
  text-decoration: none;
}

.toc a:hover,
.toc a[aria-current="location"] {
  color: var(--brand-dark);
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
}

.article-content {
  min-width: 0;
  max-width: var(--measure);
}

.article-content > :first-child {
  margin-top: 0;
}

.article-content h2 {
  margin: 3.3rem 0 1rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.article-content h3 {
  margin: 2rem 0 0.6rem;
  font-size: 1.35rem;
  line-height: 1.25;
}

.article-content p,
.article-content li {
  color: #243b40;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.article-content p {
  margin: 1rem 0;
}

.article-content ul,
.article-content ol {
  padding-left: 1.4rem;
}

.article-content li + li {
  margin-top: 0.55rem;
}

.callout {
  margin-block: 1.5rem;
  padding: 1.2rem;
  border-left: 0.3rem solid var(--brand);
  background: var(--brand-pale);
}

.callout.caution {
  border-left-color: var(--caution);
  background: var(--caution-pale);
}

.callout strong {
  color: var(--ink);
}

.checklist {
  margin: 1.25rem 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  list-style: none;
}

.checklist li {
  padding: 0.9rem 0.95rem 0.9rem 2.8rem;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: #fff;
}

.checklist li::before {
  content: "□";
  position: absolute;
  top: 0.78rem;
  left: 0.9rem;
  color: var(--brand-dark);
  font-family: system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 850;
}

.table-wrap {
  margin-block: 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.85rem;
  vertical-align: top;
  text-align: left;
}

th {
  background: var(--ink);
  color: #fff;
  font-weight: 760;
}

tr + tr td {
  border-top: 1px solid var(--line);
}

tbody tr:nth-child(even) {
  background: var(--paper-alt);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  min-height: 3.5rem;
  padding: 1rem 2.25rem 1rem 0;
  position: relative;
  cursor: pointer;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  font-weight: 750;
  line-height: 1.3;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 0.75rem;
  right: 0.2rem;
  color: var(--brand-dark);
  font-family: system-ui, sans-serif;
  font-size: 1.65rem;
  font-weight: 500;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin-top: 0;
  padding-bottom: 1rem;
}

.sources,
.author-box,
.editorial-note {
  margin-top: 2.25rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--paper-alt);
}

.sources h2,
.author-box h2,
.editorial-note h2 {
  margin: 0 0 0.7rem;
  font-family: inherit;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.sources ol,
.sources ul {
  margin-bottom: 0;
}

.sources li,
.author-box p,
.editorial-note p {
  font-family: inherit;
  font-size: 0.94rem;
}

.source-meta {
  color: var(--ink-soft);
  font-size: 0.85rem !important;
}

.related-links {
  display: grid;
  gap: 0.75rem;
}

.related-links a {
  min-height: 3rem;
  padding: 0.75rem 0.85rem;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: #fff;
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid #365157;
  background: var(--ink);
  color: #d3e0de;
}

.footer-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 1.25rem;
}

.site-footer .brand {
  color: #fff;
}

.site-footer p {
  max-width: 42rem;
  margin: 0.45rem 0 0;
  color: #bed0cd;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.footer-links a {
  color: #fff;
  font-size: 0.92rem;
}

.reading-progress {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.25rem;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--focus);
  pointer-events: none;
}

.staging-note {
  padding: 0.55rem 1rem;
  background: #fff2cc;
  color: #563600;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
}

@media (min-width: 42rem) {
  .topic-grid,
  .question-grid,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

@media (min-width: 58rem) {
  .nav-desktop {
    display: flex;
  }

  .nav-mobile {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(19rem, 0.8fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
  }

  .article-hero .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(19rem, 0.65fr);
  }

  .topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: 15rem minmax(0, var(--measure));
    justify-content: center;
    gap: clamp(2.5rem, 6vw, 5rem);
  }

  .toc {
    position: sticky;
    top: 5.5rem;
    align-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body::before,
  .site-header,
  .staging-note,
  .ad-marker,
  .reading-progress,
  .hero-actions,
  .site-footer {
    display: none !important;
  }

  .hero,
  .feature-band {
    background: #fff;
    color: #000;
  }

  .article-layout {
    display: block;
  }

  .toc {
    position: static;
    margin-bottom: 2rem;
  }

  a {
    color: #000;
  }
}
