* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --panel: #ffffff;
  --panel-soft: #f3f0ea;
  --ink: #171717;
  --muted: #5f635f;
  --rule: #ddd7ce;
  --riq: #5b6eae;
  --ciq: #c4576a;
  --liq: #4a9080;
  --gold: #a88838;
  --code: #f6f2eb;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: #274f8f;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #18345f;
}

.shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
}

.skip:focus {
  top: 12px;
}

.topbar {
  border-bottom: 1px solid var(--rule);
  background: rgba(251, 250, 247, 0.96);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--panel-soft);
}

.hero {
  padding: 58px 0 36px;
  border-bottom: 1px solid var(--rule);
}

.eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  margin: 12px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  font-weight: 700;
}

h2 {
  margin: 0 0 16px;
  font-size: 1.7rem;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.lede {
  max-width: 820px;
  margin: 0;
  color: #383b38;
  font-size: 1.15rem;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  color: #383b38;
  font-size: 0.88rem;
  font-weight: 700;
}

main {
  padding: 36px 0 56px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.card,
.fact-card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 20px;
}

.card--riq {
  border-top: 5px solid var(--riq);
}

.card--ciq {
  border-top: 5px solid var(--ciq);
}

.card--liq {
  border-top: 5px solid var(--liq);
}

.section {
  margin-top: 36px;
}

.section:first-child {
  margin-top: 0;
}

.summary {
  background: #fff;
  border-left: 5px solid var(--gold);
  padding: 18px 20px;
  margin: 0 0 28px;
}

.summary p {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
}

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

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

th {
  background: var(--panel-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
}

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

ul,
ol {
  padding-left: 1.15rem;
}

li + li {
  margin-top: 6px;
}

.answer-box {
  background: var(--code);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 18px 20px;
}

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

code,
pre {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

code {
  background: var(--code);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.92em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #1f2937;
  border-radius: 6px;
  background: #1f2937;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  background: #fff;
  color: #1f2937;
}

.footer {
  border-top: 1px solid var(--rule);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer .shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.small {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

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

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

  .hero {
    padding-top: 38px;
  }

  table {
    min-width: 640px;
  }
}
