:root {
  --ink: #222a37;
  --body: #4d5661;
  --muted: #66715a;
  --lime: #cada2a;
  --olive: #596722;
  --pale: #f3f5ec;
  --line: #dce2d6;
  --paper: #fff;
  --canvas: #eef0eb;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body { margin: 0; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--olive); outline-offset: 4px; }

.skip-link { position: fixed; top: -100px; left: 20px; z-index: 10; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 4px; }
.skip-link:focus { top: 12px; }

/* Screen controls stay outside the printable document. */
.toolbar { position: sticky; top: 0; z-index: 3; background: #f8f9f6f5; border-bottom: 1px solid #dce1d6; padding: 0 max(24px, calc((100% - 816px) / 2)); }
.toolbar-top { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.document-title { margin: 0; min-width: 0; font-size: 15px; font-weight: 500; line-height: 1.25; }
.toolbar-actions { display: flex; gap: 10px; flex-shrink: 0; }
.toolbar-actions button { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #cfd5c7; border-radius: 6px; color: var(--ink); background: transparent; cursor: pointer; font-size: 12px; font-weight: 650; }
.toolbar-actions button:hover { background: #e9eddf; }
.toolbar-actions button:disabled { opacity: .4; cursor: default; }
.toolbar-actions button:disabled:hover { background: transparent; }
.toolbar-actions button.print-button { border-color: var(--ink); background: var(--ink); color: #fff; }
.toolbar-actions button.print-button:hover { background: #394432; }
.toolbar-actions svg { width: 15px; height: 15px; }
nav { display: flex; gap: 25px; overflow-x: auto; scrollbar-width: thin; }
nav a { display: block; color: #60685d; font-size: 12px; font-weight: 600; padding: 10px 0 13px; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
nav a:hover { color: var(--ink); }
nav a[aria-current] { border-bottom-color: #9ead16; color: var(--ink); }

main { padding: 28px 20px 64px; }
.sheet { width: 8.5in; min-height: 11in; margin: 0 auto 28px; padding: .43in .44in .36in; background: var(--paper); box-shadow: 0 2px 5px #27351c09, 0 12px 36px #27351c0a; border-radius: 3px; font-size: 13.5px; line-height: 1.34; }
.sheet:last-child { margin-bottom: 0; }
.sheet-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 66px; padding-bottom: 17px; margin-bottom: 21px; border-bottom: 2px solid var(--ink); position: relative; }
.sheet-heading::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 65px; height: 4px; background: var(--lime); }
.sheet h2 { margin: 0; font-size: 29px; line-height: 1.12; letter-spacing: -.85px; font-weight: 750; }
.category { margin: 0 0 5px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--olive); font-weight: 700; font-size: 10px; }
.heading-icon { flex: 0 0 46px; width: 46px; height: 46px; display: grid; place-items: center; background: var(--pale); border-radius: 12px; color: var(--olive); }
.heading-icon svg { width: 27px; height: 27px; }
.check-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 27px; align-items: start; }
.check-column { min-width: 0; }
.check-section { margin: 0 0 17px; break-inside: avoid; }
.check-section:last-child { margin-bottom: 0; }
.check-section h3 { margin: 0 0 7px; display: flex; gap: 9px; align-items: center; background: var(--pale); padding: 7px 9px; border-radius: 4px; font-size: 13.2px; line-height: 1.25; font-weight: 750; letter-spacing: -.1px; }
.section-number { font-variant-numeric: tabular-nums; flex: 0 0 auto; color: var(--olive); font-size: 10px; font-weight: 750; padding-right: 8px; border-right: 1px solid #cbd4b6; }
.consent-section h3 { background: #eef2cc; }
.check-section ul { list-style: none; padding: 0; margin: 0; }
.check-section li { padding: 0; margin: 0; break-inside: avoid; }
.check-row { display: flex; align-items: start; position: relative; gap: 8px; padding: 4px 2px; border-radius: 3px; cursor: pointer; }
.check-row:hover { background: #f7f8f2; }
.check-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check-box { position: relative; flex: 0 0 11px; width: 11px; height: 11px; margin-top: 3.2px; border: 1px solid #7e8b70; border-radius: 2px; background: white; }
.item-text { min-width: 0; color: var(--body); }
.item-text strong { color: var(--ink); font-weight: 650; }
.check-row input:focus-visible + .check-box { outline: 3px solid var(--olive); outline-offset: 3px; }
.check-row input:checked + .check-box { background: var(--olive); border-color: var(--olive); }
.check-row input:checked + .check-box::after { content: ""; position: absolute; left: 3px; top: 1px; width: 3px; height: 6px; border: solid white; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.check-row:has(input:checked) { background: #f1f5e9; }
.column-scope { margin: 0 0 12px; padding: 7px 0; border-bottom: 1px solid #9ca78c; color: var(--olive); font-size: 10px; letter-spacing: .5px; font-weight: 750; text-transform: uppercase; }

@media screen and (max-width: 860px) {
  .toolbar { padding: 0 20px; }
  main { padding: 20px 14px 32px; }
  .sheet { width: 100%; min-height: auto; padding: 30px; }
  .check-grid { gap: 24px; }
}

@media screen and (max-width: 620px) {
  html { scroll-padding-top: 130px; }
  .toolbar { padding: 0 16px; }
  .toolbar-top { height: 60px; gap: 10px; }
  .document-title { font-size: 14px; }
  .toolbar-actions { gap: 6px; }
  .toolbar-actions button { padding: 8px; }
  .toolbar-actions button span { display: none; }
  nav { gap: 22px; }
  nav a { font-size: 11px; padding-top: 8px; padding-bottom: 11px; }
  main { padding: 14px 10px 24px; }
  .sheet { padding: 25px 20px 30px; margin-bottom: 16px; font-size: 14px; }
  .sheet h2 { font-size: 26px; }
  .sheet-heading { gap: 12px; margin-bottom: 20px; }
  .heading-icon { width: 39px; height: 39px; flex-basis: 39px; border-radius: 9px; }
  .heading-icon svg { width: 24px; height: 24px; }
  .check-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .check-section { margin-bottom: 20px; }
  .check-section h3 { font-size: 14px; padding: 9px 10px; }
  .check-row { padding: 7px 2px; gap: 10px; }
  .check-box { width: 13px; height: 13px; flex-basis: 13px; }
  .check-row input:checked + .check-box::after { left: 4px; top: 2px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@page { size: letter portrait; margin: 0; }

@media print {
  :root { background: white; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html { scroll-behavior: auto; }
  .toolbar, .skip-link { display: none !important; }
  main { padding: 0; }
  .sheet { width: 8.5in; height: 11in; min-height: 0; margin: 0; padding: .43in .44in .36in; box-shadow: none; border-radius: 0; break-after: page; }
  .sheet:last-child { break-after: auto; }
  .check-row { cursor: default; }
  .check-row:hover { background: transparent; }
}
