:root { --ink: #0f172a; --body: #334155; --line: #d7dde5; --accent: #0e7490; }
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font-family: Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.6; }
header, main, footer { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 72px; padding-block: 12px; border-bottom: 1px solid var(--line); }
header a { font-weight: 600; }
nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
nav a, .action { display: inline-flex; align-items: center; min-height: 44px; }
a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link { position: absolute; left: 16px; top: -100px; padding: 12px; background: #fff; z-index: 10; }
.skip-link:focus { top: 8px; }
main { padding-block: 40px 64px; }
h1 { max-width: 850px; margin: 8px 0 16px; font-size: clamp(32px, 4.5vw, 52px); line-height: 1.12; letter-spacing: -.025em; }
h2 { margin: 0 0 12px; font-size: clamp(22px, 3vw, 28px); line-height: 1.25; }
p, li { color: var(--body); }
p { max-width: 760px; margin-block: 12px; }
.eyebrow, .meta { font-size: 14px; color: #475569; }
.eyebrow { margin: 0; letter-spacing: .05em; text-transform: uppercase; }
.intro { font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-block: 20px; }
button { min-height: 44px; padding: 10px 20px; border: 1px solid var(--ink); border-radius: 12px; background: var(--ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
button:hover { background: #26354b; }
section + section { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { padding: 16px 0; text-align: left; font-weight: 600; }
th, td { padding: 16px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: #f8fafc; font-weight: 600; }
tbody th { width: 22%; font-weight: 600; }
td small, th small { display: block; margin-top: 8px; font-size: 13px; font-weight: 400; }
td p { margin: 0 0 8px; }
.worksheet { max-width: 760px; }
.worksheet h1 { font-size: clamp(30px, 4.5vw, 44px); }
.writing-row { margin-block: 16px; }
.writing-line { display: block; min-height: 32px; border-bottom: 1px solid #64748b; }
.writing-line.tall { min-height: 64px; }
.checks { padding-left: 0; list-style: none; }
.checks li { margin-block: 12px; }
.checks li::before { content: '□'; margin-right: 8px; color: var(--ink); }
footer { padding-block: 24px 40px; border-top: 1px solid var(--line); font-size: 14px; }
@media (max-width: 720px) {
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table, tbody, tr, td, tbody th { display: block; width: 100%; }
  tr { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--line); }
  tbody th { padding: 16px 0 8px; font-size: 18px; border: 0; }
  td { padding: 8px 0; border: 0; }
  td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-weight: 600; color: var(--ink); }
  main { padding-top: 32px; }
}
@media print {
  @page { size: auto; margin: 14mm; }
  body { color: #000; font-size: 10pt; line-height: 1.25; }
  header, footer, .skip-link, .no-print { display: none !important; }
  main, .worksheet { width: 100%; max-width: none; margin: 0; padding: 0; }
  h1, .worksheet h1 { font-size: 20pt; margin: 4px 0 10px; }
  h2 { font-size: 13pt; }
  p { margin-block: 8px; }
  .intro { font-size: 10pt; }
  section + section { margin-top: 12px; padding-top: 8px; }
  .writing-row { margin-block: 8px; }
  .writing-line { min-height: 22px; }
  .writing-line.tall { min-height: 36px; }
  .checks li { margin-block: 4px; }
  .writing-row, .checks li, tr { break-inside: avoid; }
  h2 { break-after: avoid; }
  a { color: #000; }
}
