:root {
  --navy: #06111d;
  --navy-2: #0b1d30;
  --blue: #0874b9;
  --blue-bright: #27aaf2;
  --ink: #182232;
  --muted: #59697d;
  --paper: #f3f6fa;
  --line: #d5deea;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(rgba(79, 108, 140, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 108, 140, .12) 1px, transparent 1px),
    #04090f;
  background-size: 112px 112px, 112px 112px, auto;
  color: #f7f9fc;
  font: 16px/1.68 Inter, "Segoe UI", Arial, sans-serif;
}

a { color: inherit; }

.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 10px;
  background: rgba(6, 13, 21, .94);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  text-decoration: none;
}

.brand img { width: 46px; height: 46px; object-fit: contain; }
.site-header nav, .footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.site-header nav a, .footer-links a { color: #bec9d6; text-decoration: none; }
.site-header nav a:hover, .footer-links a:hover { color: #fff; }

.page-shell {
  margin-top: 18px;
  padding: clamp(22px, 4vw, 50px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: #65758a;
  font-size: .93rem;
}

.breadcrumbs a { color: #075f9d; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: 30px;
  align-items: center;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.hero.single { grid-template-columns: 1fr; }
.hero-copy { max-width: 790px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1, h2, h3 { color: #111b29; line-height: 1.08; }
h1 { margin: 0 0 20px; font-size: clamp(2.7rem, 6vw, 5.3rem); letter-spacing: -.045em; }
h2 { margin: 0 0 20px; font-size: clamp(1.9rem, 3.5vw, 3rem); letter-spacing: -.025em; }
h3 { margin: 0 0 12px; font-size: 1.22rem; }

.lead { margin: 0; color: #506074; font-size: clamp(1.08rem, 2vw, 1.3rem); }
.hero-art { width: 100%; min-height: 280px; border: 1px solid var(--line); border-radius: 10px; object-fit: cover; box-shadow: 0 16px 38px rgba(17, 28, 43, .1); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid #bfcddd;
  border-radius: 7px;
  background: #fff;
  color: #18314d;
  font-weight: 850;
  text-decoration: none;
}
.button.primary { border-color: #0874b9; background: #0874b9; color: #fff; }
.button:hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(17, 28, 43, .1); }

.content-section { padding: 48px 0; border-bottom: 1px solid var(--line); }
.content-section:last-child { border-bottom: 0; }
.section-intro { max-width: 790px; color: var(--muted); font-size: 1.07rem; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(17, 28, 43, .05);
}
.card p, .card li { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card a { color: #075f9d; font-weight: 750; }

.callout {
  margin: 28px 0;
  padding: 22px 24px;
  border-left: 5px solid var(--blue-bright);
  border-radius: 7px;
  background: var(--navy-2);
  color: #eef6fd;
}
.callout strong { color: #fff; }
.callout p:last-child { margin-bottom: 0; }

.checklist, .steps { padding-left: 1.25rem; }
.checklist li, .steps li { margin: .65rem 0; }

.data-table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 24px 0; background: #fff; }
.data-table th, .data-table td { padding: 14px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { background: #e9f0f7; color: #21334a; }

pre {
  overflow-x: auto;
  padding: 20px;
  border-radius: 8px;
  background: #071727;
  color: #d9efff;
  font: .9rem/1.55 Consolas, "Courier New", monospace;
}
code { font-family: Consolas, "Courier New", monospace; }
p code, li code, td code, .callout code { overflow-wrap: anywhere; word-break: break-word; }
pre code { white-space: pre; overflow-wrap: normal; word-break: normal; }

.article-body { max-width: 880px; }
.article-body > p, .article-body > ul, .article-body > ol { color: #46566a; font-size: 1.04rem; }
.article-body h2 { margin-top: 46px; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.article-body h3 { margin-top: 30px; }
.article-body a {
  color: #075f9d;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.byline { margin-top: 18px; color: #66768a; font-size: .92rem; }
.source-list li { margin: .8rem 0; }

.faq details { padding: 18px 0; border-top: 1px solid var(--line); }
.faq summary { color: #162337; font-weight: 850; cursor: pointer; }
.faq details p { color: var(--muted); }

.resource-card { display: flex; min-height: 270px; flex-direction: column; }
.resource-card .topic { margin-bottom: 12px; color: var(--blue); font-size: .74rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.resource-card .card-link { margin-top: auto; padding-top: 18px; }

.related { padding: 30px; border-radius: 10px; background: #e7eff7; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  color: #afbdcc;
}

@media (max-width: 860px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .hero, .grid, .grid.two { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
  .data-table { font-size: .88rem; }
  .data-table th, .data-table td { padding: 10px; }
}
