:root { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #193e4e; background: #edf3f3; }
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.7; }
.guide-nav, main, footer { width: min(850px, calc(100% - 32px)); margin: auto; }
.guide-nav { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; }
a { color: #14586a; font-weight: 650; text-underline-offset: 4px; }
button { padding: 12px 16px; background: #164f61; color: #fff; border: 0; border-radius: 9px; font: inherit; font-size: .85rem; cursor: pointer; }
main { padding: clamp(22px, 5vw, 52px); background: #fff; border: 1px solid #d9e6e8; border-radius: 20px; box-shadow: 0 20px 65px #193e4e0b; }
header { padding-bottom: 22px; border-bottom: 2px solid #dbe9e7; }
h1 { font-size: clamp(1.85rem, 4.7vw, 2.8rem); line-height: 1.16; letter-spacing: -.035em; margin: 12px 0 20px; }
h2 { font-size: 1.14rem; margin: 0 0 12px; line-height: 1.4; }
p { margin: 0 0 14px; }
.kicker { font-weight: 700; text-transform: uppercase; font-size: .74rem; letter-spacing: .07em; color: #50737e; }
.purpose { font-size: 1.13rem; color: #476472; }
.provenance { font-size: .76rem; line-height: 1.6; color: #677677; margin-bottom: 0; }
section, aside, details { margin-top: 28px; }
ol { padding-left: 25px; margin: 12px 0 0; }
li { padding-left: 7px; margin-bottom: 15px; }
.worked { padding: 24px; border-radius: 13px; background: #edf6f4; border-left: 4px solid #328f7c; }
.mistake { padding: 20px; border-radius: 13px; background: #fff7e7; border-left: 4px solid #d6a23d; }
.mistake p, .worked li:last-child { margin-bottom: 0; }
summary { cursor: pointer; font-weight: 700; padding: 15px; border-radius: 10px; background: #eff3f6; }
details ol { padding: 15px 15px 0 35px; }
.next { border-top: 1px solid #dce5e5; padding-top: 22px; }
footer { font-size: .74rem; color: #5c767e; padding: 22px 0 30px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #d4a632; outline-offset: 4px; }
@media print {
  @page { margin: 18mm; }
  :root { background: #fff; font-size: 10pt; color: #162c35; }
  .guide-nav, .next { display: none; }
  main, footer { width: 100%; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  h1 { font-size: 24pt; }
  h2, summary { break-after: avoid; }
  li, .mistake { break-inside: avoid; }
  section, aside, details { margin-top: 18pt; }
  .worked, .mistake { padding: 14pt; print-color-adjust: exact; }
  .writing-space { height: 32pt; border-bottom: 1px dotted #bcc9cb; }
  details { break-before: page; }
  footer { margin-top: 20pt; }
}
