:root {
  --bg: #f7f8f7;
  --paper: #ffffff;
  --ink: #141817;
  --muted: #5b6562;
  --line: #dfe5e1;
  --soft: #eef3f1;
  --teal: #027d72;
  --teal-dark: #075f58;
  --blue: #204a87;
  --amber: #b96f18;
  --code: #101615;
  --radius: 8px;
  --shadow: 0 18px 60px rgba(22, 30, 28, 0.12);
  --page-max: 1180px;
  --page-gutter: clamp(20px, 5vw, 64px);
  --page-width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
  --section-y: clamp(56px, 8vw, 92px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 14px max(var(--page-gutter), calc((100vw - var(--page-max)) / 2));
  border-bottom: 1px solid rgba(223, 229, 225, 0.82);
  background: rgba(247, 248, 247, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-weight: 780;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
}

.nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav {
  justify-content: center;
  justify-self: center;
}

.nav a,
.site-footer a {
  text-decoration: none;
}

.nav a:hover,
.site-footer a:hover,
.text-link:hover,
.card a:hover {
  color: var(--teal);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  width: var(--page-width);
  margin-inline: auto;
  padding: clamp(36px, 5.5vw, 70px) 0 36px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.card-kicker,
.article-kicker {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.35rem, 4vw, 4.45rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 3rem);
  letter-spacing: 0;
}

h3 {
  font-size: 1.18rem;
}

p {
  color: var(--muted);
}

.hero-lede {
  max-width: 660px;
  margin: 18px 0 0;
  font-size: clamp(1rem, 1.15vw, 1.14rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 760;
  text-decoration: none;
}

.button.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}

.button.secondary {
  background: white;
  color: var(--ink);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.quick-stats div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.quick-stats dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-stats dd {
  margin: 3px 0 0;
  font-size: 0.94rem;
  font-weight: 760;
}

.hero-media {
  margin: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.trust-strip {
  padding: 18px var(--page-gutter);
  border-block: 1px solid var(--line);
  background: var(--ink);
}

.trust-strip p {
  max-width: 1000px;
  margin: 0 auto;
  color: #eaf0ed;
  text-align: center;
}

.section {
  width: var(--page-width);
  margin-inline: auto;
  padding: var(--section-y) 0;
}

.band {
  background: var(--soft);
  box-shadow: 0 0 0 100vmax var(--soft);
  clip-path: inset(0 -100vmax);
}

.section-heading {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin-bottom: 28px;
}

.feature-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

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

.card {
  min-height: 188px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.card a {
  text-decoration: none;
}

.card p {
  margin: 12px 0 0;
}

.keyword-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.keyword-table > div {
  display: grid;
  grid-template-columns: 0.7fr 1.25fr 0.8fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.keyword-table > div:first-child {
  border-top: 0;
  background: var(--ink);
  color: #fff;
  font-weight: 760;
}

.keyword-table span {
  padding: 14px 16px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--teal-dark);
  font-weight: 760;
}

.video-shell {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--code);
  box-shadow: var(--shadow);
}

.video-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

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

.fix-list a {
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 720;
  text-decoration: none;
}

.page-hero,
.article-layout {
  width: var(--page-width);
  margin-inline: auto;
  padding: clamp(50px, 7vw, 82px) 0;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(280px, 0.72fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 0 0 100vmax var(--paper);
  clip-path: inset(0 -100vmax);
}

.page-hero p,
.article-header p {
  max-width: 760px;
  font-size: 1.08rem;
}

.path-list,
.article-list,
.checklist {
  display: grid;
  gap: 12px;
}

.path-list a,
.article-list a,
.checklist li,
.source-box {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.path-list a,
.article-list a {
  display: block;
  text-decoration: none;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 300px);
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
  justify-content: center;
}

.article {
  min-width: 0;
}

.article-header {
  margin-bottom: 28px;
}

.article h1 {
  font-size: clamp(2.1rem, 4vw, 4.1rem);
}

.article h2 {
  margin-top: 38px;
  font-size: 1.85rem;
}

.article h3 {
  margin-top: 26px;
}

.article p,
.article li {
  font-size: 1.02rem;
}

.article img {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.toc {
  position: sticky;
  top: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  text-decoration: none;
}

.code-block {
  overflow-x: auto;
  padding: 18px;
  border-radius: 8px;
  background: var(--code);
  color: #e8f1ee;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
}

.note,
.warning {
  padding: 16px;
  border-radius: var(--radius);
}

.note {
  border: 1px solid #b9d7d2;
  background: #edf8f6;
}

.warning {
  border: 1px solid #e4c99d;
  background: #fff7e8;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: var(--page-width);
  margin-inline: auto;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 0 0 100vmax var(--paper);
  clip-path: inset(0 -100vmax);
}

.site-footer p {
  max-width: 620px;
  margin: 8px 0 0;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .brand,
  .nav {
    justify-self: center;
  }

  .hero,
  .page-hero,
  .two-column,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .resource-grid,
  .fix-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toc {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    display: flex;
    padding-inline: var(--page-gutter);
  }

  .brand,
  .nav {
    justify-self: start;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .feature-grid,
  .resource-grid,
  .fix-list,
  .quick-stats,
  .keyword-table > div {
    grid-template-columns: 1fr;
  }

  .keyword-table > div {
    border-top: 8px solid var(--soft);
  }

  .keyword-table > div:first-child {
    display: none;
  }
}
