:root {
  color-scheme: light;
  --ink: #102923;
  --muted: #4c635b;
  --paper: #fbfaf5;
  --line: #d7dfd6;
  --green: #195842;
  --mint: #e3f1e5;
  --gold: #e9b952;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 62px; gap: 20px; }
.brand { font-weight: 900; letter-spacing: -.055em; font-size: 1.25rem; }
.brand span { color: #387551; }
.mast-label, .eyebrow { font-size: .73rem; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; }
.mast-label { color: var(--muted); }
.hero { background: var(--ink); color: #fffdf5; padding: clamp(36px, 7vw, 88px) 0; }
.hero-layout { display: grid; grid-template-columns: 1.45fr 1fr; align-items: center; gap: clamp(28px, 7vw, 100px); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.45rem, 5.5vw, 5.5rem); font-weight: 750; letter-spacing: -.066em; line-height: .98; margin-bottom: 20px; max-width: 12ch; }
h2 { font-size: clamp(1.4rem, 2.3vw, 2.1rem); letter-spacing: -.035em; line-height: 1.12; margin-bottom: 12px; }
h3 { margin-bottom: 10px; }
p { line-height: 1.57; }
.hero .eyebrow { color: #b4dbc4; }
.intro { color: #e0ece3; max-width: 48ch; font-size: 1.07rem; margin-bottom: 20px; }
.hero-link { color: #ffdb86; font-weight: 700; text-underline-offset: 4px; }
.diagram { margin: 0; border: 1px solid #466b5f; border-radius: 20px; background: #15352b; padding: 8px 18px 16px; text-align: center; }
.diagram svg { display: block; width: 100%; max-height: 244px; }
.diagram figcaption { color: #dcebe0; font-size: .85rem; }
.tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 33px; border-bottom: 1px solid var(--line); }
.tips article { padding: 0 clamp(12px, 3vw, 33px); }
.tips article:first-child { padding-left: 0; }
.tips article + article { border-left: 1px solid var(--line); }
.tips span { display: block; color: var(--green); font-weight: 750; margin-bottom: 7px; font-size: .83rem; }
.tips h2 { font-size: 1.35rem; }
.tips p, .aside p { color: var(--muted); margin-bottom: 0; }
.worksheet { display: grid; grid-template-columns: 1.65fr 1fr; gap: 24px; padding-block: 36px 60px; scroll-margin-top: 12px; align-items: start; }
.panel, .aside { border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 32px); }
.panel { background: white; }
.aside { background: var(--mint); }
.aside p + p { margin-top: 12px; }
.aside a { display: inline-block; color: var(--green); font-weight: 750; margin-top: 18px; text-underline-offset: 3px; }
.worksheet .eyebrow { color: var(--green); margin-bottom: 8px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0 18px; }
label { display: block; font-size: .92rem; font-weight: 700; }
label span { font-size: .79rem; font-weight: 500; color: var(--muted); }
input { display: block; width: 100%; margin-top: 5px; padding: 10px; min-height: 44px; color: var(--ink); border: 1px solid #aabdb0; border-radius: 8px; font: inherit; font-weight: 400; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
button { font: inherit; font-weight: 700; min-height: 44px; border: 1px solid var(--green); border-radius: 8px; padding: 8px 14px; background: var(--green); color: white; cursor: pointer; }
.secondary { background: transparent; color: var(--green); }
:focus-visible { outline: 3px solid #af6a00; outline-offset: 3px; }
.hero :focus-visible { outline-color: var(--gold); }
.privacy { color: var(--muted); font-size: .82rem; margin: 11px 0 0; }
#result { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 17px; }
dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px 16px; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
footer { border-top: 1px solid var(--line); padding: 19px 0; color: var(--muted); font-size: .85rem; }
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .hero-layout, .worksheet { grid-template-columns: 1fr; }
  .diagram { max-width: 400px; }
  .tips { grid-template-columns: 1fr; gap: 16px; }
  .tips article, .tips article:first-child { padding: 0; }
  .tips article + article { border-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
}
@media (max-width: 380px) { .fields { grid-template-columns: 1fr; } }
@media print {
  body { background: white; }
  .hero, .tips, form, .aside, #print, footer, .mast-label { display: none !important; }
  .worksheet { display: block; padding: 12px 0; }
  .panel { border: 0; padding: 0; }
  .masthead .wrap { min-height: 44px; }
}
