:root {
  --ink: #173247;
  --muted: #526a7a;
  --soft: #f6fbfd;
  --panel: #ffffff;
  --line: #d9e8ef;
  --blue: #1f5f8b;
  --blue-soft: #e9f3f8;
  --green: #5f8f7b;
  --green-soft: #eaf4f2;
  --cream: #fbfaf6;
  --warning: #fff7e6;
  --warning-line: #ead6a8;
  --shadow: 0 16px 40px rgba(23, 50, 71, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: #15496c;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  line-height: 1.18;
  margin: 0 0 0.75rem;
  color: #102a3d;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  letter-spacing: -0.025em;
  margin-top: 2rem;
}

h3 {
  font-size: 1.18rem;
  margin-top: 1.2rem;
}

ul,
ol {
  padding-left: 1.25rem;
  margin: 0 0 1.2rem;
}

li {
  margin: 0.35rem 0;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-link {
  color: var(--ink);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
  background: var(--blue-soft);
  color: var(--blue);
}

.hero {
  padding: 54px 0 34px;
  background:
    radial-gradient(circle at top left, rgba(95, 143, 123, 0.16), transparent 34%),
    linear-gradient(180deg, #f8fcfe 0%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid #cbe4db;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #37576a;
  max-width: 760px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--blue);
  color: #fff;
}

.button.secondary {
  color: var(--blue);
  background: #fff;
  border-color: var(--line);
}

.button:hover {
  transform: translateY(-1px);
}

.hero-card,
.image-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.section {
  padding: 34px 0;
}

.section.alt {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 34px;
  align-items: start;
}

.article {
  max-width: 780px;
}

.article > p,
.article > ul,
.article > ol {
  color: #28495e;
}

.article h2 {
  padding-top: 0.3rem;
}

.sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.toc,
.note-card,
.resource-card,
.check-card,
.callout,
.warning-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
}

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

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid #edf3f6;
}

.toc a:last-child {
  border-bottom: 0;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 8px 24px rgba(23, 50, 71, 0.05);
}

.card h3 {
  margin-top: 0;
}

.resource-card {
  display: grid;
  gap: 8px;
  border-left: 5px solid var(--green);
}

.resource-card a {
  font-weight: 700;
}

.check-card {
  background: var(--green-soft);
  border-color: #cce4da;
}

.callout {
  background: var(--blue-soft);
  border-color: #cfe0ea;
}

.warning-box {
  background: var(--warning);
  border-color: var(--warning-line);
}

.list-clean {
  list-style: none;
  padding: 0;
}

.list-clean li {
  position: relative;
  padding-left: 28px;
  margin: 0.7rem 0;
}

.list-clean li::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--green);
  position: absolute;
  left: 0;
  top: 0.32rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: #fff;
  margin: 14px 0;
}

.faq-item h3 {
  margin-top: 0;
}

.breadcrumb {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--muted);
}

.kicker {
  color: var(--muted);
  font-size: 0.95rem;
}

.page-header {
  padding: 42px 0 26px;
  background: linear-gradient(180deg, #f8fcfe 0%, #ffffff 100%);
}

.page-header .lead {
  max-width: 820px;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.inline-links a {
  background: var(--blue-soft);
  border: 1px solid #cfe0ea;
  border-radius: 999px;
  padding: 7px 12px;
  text-decoration: none;
}

.site-footer {
  margin-top: 38px;
  padding: 30px 0;
  background: #102a3d;
  color: #eaf4f2;
}

.site-footer p {
  color: #c7d7df;
  margin-top: 6px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.site-footer a {
  color: #eaf4f2;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin: 16px 0 22px;
}

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

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

th {
  background: var(--blue-soft);
  color: #13364e;
}

tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 860px) {
  .header-inner,
  .footer-grid,
  .hero-grid,
  .content-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .hero {
    padding-top: 34px;
  }

  .grid.three,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .brand-text small {
    display: none;
  }

  .nav-link {
    padding: 7px 9px;
    font-size: 0.9rem;
  }

  .card,
  .toc,
  .note-card,
  .resource-card,
  .check-card,
  .callout,
  .warning-box {
    padding: 17px;
  }

  .hero-actions,
  .card-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}
