:root {
  color-scheme: light;
  --base: #f9faff;
  --panel: #eff3fc;
  --paper: #fff;
  --ink: #141e3c;
  --muted: #4a5675;
  --blue: #284798;
  --line: #c4d0e7;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --display: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--base); font: 1rem/1.6 var(--sans); }
h1, h2, h3, p, figure, dl { margin: 0; }
h1, h2 { font-family: var(--display); line-height: 1.035; font-weight: 400; letter-spacing: -.045em; }
h3 { font-size: 1.1rem; line-height: 1.25; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #4169bc; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 1; padding: .5rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.wrap { width: min(70rem, calc(100% - 4rem)); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); }
.topbar, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: .63rem; text-decoration: none; font-size: 1.18rem; font-weight: 760; letter-spacing: -.055em; }
.mark { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; background: var(--blue); color: white; border-radius: .28rem; }
.mark::before { content: ""; width: .76rem; height: .4rem; border-bottom: 2px solid; border-left: 2px solid; transform: translateY(-.09rem) rotate(-45deg); }
nav { display: flex; flex-wrap: wrap; gap: .35rem 1.3rem; align-items: center; font-size: .89rem; font-weight: 680; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero { background: var(--panel); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-block: clamp(3.1rem, 6.7vw, 6.1rem); }
.category { margin-bottom: .85rem; color: var(--blue); font-size: .92rem; font-weight: 730; }
h1 { font-size: clamp(2.88rem, 5.25vw, 5.18rem); max-width: 13ch; }
.intro { margin-top: 1.2rem; max-width: 46ch; font-size: clamp(1.02rem, 1.5vw, 1.14rem); color: var(--muted); }
.byline { margin-top: .75rem; color: var(--muted); font-size: .83rem; }
.worksheet-link { display: inline-flex; align-items: baseline; gap: .55rem; margin-top: 1.3rem; color: var(--blue); font-size: .95rem; font-weight: 750; }
.proof { background: var(--paper); border: 1px solid #a6b6d7; border-radius: .55rem; box-shadow: .58rem .58rem 0 #d3ddf2; font-size: .94rem; overflow: hidden; }
.proof figcaption { display: flex; align-items: center; gap: .73rem; padding: 1.1rem clamp(1rem, 2.9vw, 2rem); background: var(--blue); color: white; }
.proof figcaption strong, .proof figcaption small { display: block; }
.proof figcaption strong { font-size: 1.03rem; }
.proof figcaption small { color: #e3ebff; }
.document-shape { display: inline-block; width: 1.02rem; height: 1.22rem; border: 1.5px solid currentColor; border-radius: .12rem; flex: 0 0 auto; }
.buyer-question { padding: 1.15rem clamp(1rem, 2.9vw, 2rem); color: var(--muted); }
.buyer-question p { color: var(--ink); font-size: 1.16rem; font-weight: 620; line-height: 1.4; }
.diff { display: grid; grid-template-columns: 5.4rem 1fr; gap: .8rem; align-items: baseline; padding: 1rem clamp(1rem, 2.9vw, 2rem); border-top: 1px solid; }
.diff > span { font-size: .84rem; font-weight: 740; }
.diff > span span { margin-right: .24rem; }
.diff p { font-family: var(--display); font-size: clamp(1.26rem, 2.2vw, 1.78rem); line-height: 1.24; }
.before { background: #fff2f4; border-color: #e6c4cd; color: #772e45; }
.after { background: #e3f4ec; border-color: #beddd0; color: #154d3b; }
mark { background: transparent; color: inherit; text-decoration: underline; text-decoration-color: #70a99a; text-decoration-thickness: .09em; text-underline-offset: .15em; text-decoration-skip-ink: none; }
.annotation, .check { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; padding-block: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2.2rem, 4.32vw, 3.95rem); }
.annotation p, .lead { color: var(--muted); margin-top: .64rem; }
.annotation aside { border-left: 3px solid #7491cd; padding-left: 1.1rem; }
.delivery { border-top: 1px solid var(--line); }
.annotation .source { font-size: .86rem; }
.source a { color: var(--blue); font-weight: 700; overflow-wrap: anywhere; }
.worksheet-section { padding-block: clamp(2.8rem, 6vw, 5rem); background: #edf1fa; border-block: 1px solid var(--line); }
.worksheet-section .lead { max-width: 61ch; }
.worksheet { background: var(--paper); border: 1px solid var(--line); margin-block-start: 1.5rem; border-radius: .42rem; }
.worksheet h3 { padding: 1rem clamp(1rem, 2.9vw, 1.65rem); border-bottom: 1px solid var(--line); background: #f6f8ff; }
.worksheet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.worksheet-grid > * { margin: 0; padding: 1rem clamp(1rem, 2.9vw, 1.65rem); }
.worksheet-grid > :not(:first-child) { border-left: 1px solid var(--line); }
.sample { border-bottom: 1px solid var(--line); }
dt, .fields label { font-size: .91rem; font-weight: 720; }
dd { margin: .36rem 0 0; color: var(--muted); }
.fields label { display: grid; gap: .42rem; align-content: start; }
textarea { width: 100%; resize: vertical; color: var(--ink); border: 1px solid #677da9; border-radius: .28rem; padding: .65rem; font: 400 1rem/1.45 var(--sans); }
textarea::placeholder { color: #536182; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; padding-inline: clamp(1rem, 2.9vw, 1.65rem); }
button, .button { display: inline-block; border: 1px solid var(--blue); border-radius: .3rem; padding: .68rem .95rem; background: var(--blue); color: white; cursor: pointer; text-decoration: none; font: 720 .92rem/1.4 var(--sans); }
button:hover, .button:hover { background: #1d387d; }
.quiet-button { background: white; color: var(--blue); border-color: #9caed2; }
.quiet-button:hover { background: #edf1fa; }
.status, noscript p { padding: .25rem clamp(1rem, 2.9vw, 1.65rem); min-height: 1.7rem; color: var(--muted); font-size: .86rem; }
.checks { padding: 0; margin: 1rem 0 0; list-style: none; }
.checks li + li { margin-top: .5rem; }
.checks label { display: flex; gap: .55rem; align-items: baseline; cursor: pointer; }
.checks input { flex: 0 0 auto; accent-color: var(--blue); width: 1rem; height: 1rem; }
.cta { border: 1px solid #9caed2; border-top: 4px solid var(--blue); padding: clamp(1.1rem, 3vw, 2rem); background: #f0f4ff; }
.cta p { margin-top: .65rem; }
.cta .button { margin-block: .8rem .45rem; }
.disclosure { color: var(--muted); font-size: .87rem; }
.footer { border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.footer span { font-weight: 750; }
.manual-copy { width: calc(100% - 2rem); min-height: 8rem; margin: .65rem 1rem; }
.print-fields { display: none; }
@media (max-width: 48rem) {
  .wrap { width: calc(100% - 2.25rem); }
  .hero-grid, .annotation, .check { grid-template-columns: 1fr; gap: 1.6rem; }
  h1 { max-width: 17ch; }
  .proof { margin-right: .58rem; }
}
@media (max-width: 39rem) {
  .worksheet-grid { grid-template-columns: 1fr; }
  .worksheet-grid > :not(:first-child) { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 28rem) {
  nav > a:first-child { display: none; }
  .diff { grid-template-columns: 4.25rem 1fr; gap: .4rem; }
}
@media print {
  body, .worksheet-section, .worksheet, .worksheet h3 { color: #000; background: #fff; }
  .masthead, .hero, .annotation, .check, .footer, .actions, .skip, .status, .manual-copy { display: none !important; }
  .wrap { width: 100%; }
  .worksheet-section { border: 0; padding: 0; }
  .worksheet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  textarea { min-height: 2rem; border: 0; border-bottom: 1px solid #555; border-radius: 0; }
  textarea::placeholder { color: transparent; }
  .print-fields:not(:empty) { display: block; padding: 0 1rem; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
  .fields.has-print-copy { display: none; }
}
