:root {
  --red: #b00020;
  --red-bright: #e00024;
  --black: #0b0b0d;
  --charcoal: #17171a;
  --muted: #5f6368;
  --paper: #f7f7f7;
  --white: #ffffff;
  --line: #e5e7eb;
  --shadow: 0 24px 70px rgba(11, 11, 13, .16);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
.doc-shell {
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 64px;
}
.doc-top {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 24px;
}
.doc-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--black);
  font-weight: 950;
  letter-spacing: .14em;
  text-decoration: none;
}
.doc-brand img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.doc-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--black);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.doc-button.primary { border-color: var(--red); background: var(--red); color: #fff; }
.doc-hero {
  display: grid;
  gap: 18px;
  padding: 34px;
  border-radius: 34px;
  background: radial-gradient(circle at top left, rgba(224,0,36,.2), transparent 34%), var(--black);
  color: #fff;
  box-shadow: var(--shadow);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--red-bright);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 850px;
  margin-bottom: 14px;
  font-family: Georgia, serif;
  font-size: clamp(42px, 9vw, 78px);
  line-height: .95;
  letter-spacing: -2px;
}
h2 {
  margin-bottom: 12px;
  font-family: Georgia, serif;
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1;
}
h3 { margin-bottom: 8px; font-size: 18px; }
p, li { color: #3f3f46; font-size: 16px; line-height: 1.65; }
.doc-hero p { max-width: 780px; color: rgba(255,255,255,.78); font-size: 18px; }
.doc-banner {
  width: 100%;
  margin-top: 14px;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}
.doc-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.doc-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.05);
}
.doc-card.dark {
  border-color: rgba(255,255,255,.1);
  background: var(--charcoal);
  color: #fff;
}
.doc-card.dark p,
.doc-card.dark li { color: rgba(255,255,255,.78); }
.doc-card ul,
.doc-card ol {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 22px;
}
.callout {
  padding: 16px 18px;
  border-left: 5px solid var(--red);
  border-radius: 16px;
  background: #fff;
  color: var(--black);
  font-weight: 850;
}
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}
.pill-list span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}
.doc-footer {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.doc-footer p { color: var(--muted); font-size: 13px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

@media (min-width: 760px) {
  .doc-hero { grid-template-columns: 1fr .62fr; align-items: center; }
  .doc-grid.two { grid-template-columns: repeat(2, 1fr); }
  .doc-grid.three { grid-template-columns: repeat(3, 1fr); }
}

@media print {
  body { background: #fff; }
  .doc-top .doc-actions { display: none; }
  .doc-shell { width: 100%; padding: 0; }
  .doc-card, .doc-hero { box-shadow: none; break-inside: avoid; }
}
