fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
}
legend {
  font-weight: 750;
  margin-bottom: 16px;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid #ccd3ca;
}
.check-item input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 4px;
}
.check-item small {
  display: block;
  font-weight: 400;
  font-size: 14px;
  margin-top: 4px;
}
[data-planner-actions] {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
[hidden] {
  display: none !important;
}
html {
  overflow-wrap: anywhere;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.secondary {
  background: transparent;
  color: var(--brand);
  border: 1px solid currentColor;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
details {
  padding: 16px 0;
  border-bottom: 1px solid #ccd3ca;
}
summary {
  font-weight: 700;
  cursor: pointer;
}
details p {
  margin-bottom: 0;
}
.print-note {
  display: none;
}
@media print {
  header,
  footer,
  .skip,
  .actions,
  form > button,
  details {
    display: none !important;
  }
  main,
  .prose {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .tool {
    break-inside: avoid;
  }
  body,
  output {
    background: white !important;
    color: black !important;
  }
  h1 {
    font-size: 28px !important;
  }
  .print-note {
    display: block;
  }
  input,
  textarea {
    border: 1px solid #888;
  }
}
:root {
  --ink: #172f33;
  --paper: #f7f5ed;
  --muted: #526568;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    17px/1.65 system-ui,
    sans-serif;
}
a {
  color: var(--brand);
  text-underline-offset: 4px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ba7417;
  outline-offset: 4px;
}
.skip {
  position: absolute;
  top: -80px;
}
.skip:focus {
  top: 0;
  background: white;
  padding: 10px;
  z-index: 2;
}
header,
footer,
main {
  max-width: 1140px;
  margin: auto;
  padding: 26px 30px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ccd3ca;
  gap: 20px;
}
nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 800;
  font-size: 22px;
  text-decoration: none;
  letter-spacing: -0.7px;
}
.hero {
  padding: 65px 0 45px;
  max-width: 890px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 2px;
  color: var(--brand);
}
h1 {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.07;
  letter-spacing: -2px;
  margin: 20px 0 24px;
}
h2 {
  line-height: 1.2;
  letter-spacing: -0.7px;
}
h3 {
  line-height: 1.25;
}
.lead {
  font-size: 21px;
  max-width: 750px;
  color: var(--muted);
}
.button,
button {
  display: inline-block;
  background: var(--brand);
  color: white;
  padding: 13px 22px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 30px 0 55px;
}
.card {
  padding: 28px;
  border: 1px solid #ccd3ca;
  border-radius: 12px;
  background: white;
  text-decoration: none;
  color: var(--ink);
}
.card span {
  color: var(--brand);
  font-weight: 700;
}
.card p {
  color: var(--muted);
}
.prose {
  max-width: 800px;
  margin: 40px auto 65px;
}
.prose h1 {
  font-size: clamp(34px, 5vw, 52px);
}
.prose h2 {
  margin-top: 38px;
}
.prose p,
.prose li {
  max-width: 75ch;
}
.tool {
  background: white;
  border: 1px solid #ccd3ca;
  border-radius: 14px;
  padding: 28px;
  margin: 30px 0;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0 0 24px;
}
label {
  font-size: 14px;
  font-weight: 650;
}
input,
textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 12px;
  border: 1px solid #acbcb5;
  border-radius: 6px;
  margin-top: 6px;
  color: var(--ink);
  background: #fdfefb;
}
textarea {
  min-height: 200px;
}
output {
  display: block;
  padding: 20px;
  background: #edf2e6;
  border-radius: 8px;
  white-space: pre-wrap;
  margin-top: 22px;
  font-weight: 650;
}
.note {
  font-size: 14px;
  color: var(--muted);
}
.breadcrumbs {
  font-size: 14px;
}
.sources {
  font-size: 14px;
  border-top: 1px solid #ccd3ca;
  margin-top: 35px;
  padding-top: 20px;
}
footer {
  border-top: 1px solid #ccd3ca;
  padding-top: 30px;
  padding-bottom: 45px;
  font-size: 14px;
}
footer nav {
  margin: 20px 0;
}
.facts {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-block: 1px solid #ccd3ca;
  font-size: 14px;
}
@media (max-width: 650px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }
  header,
  footer,
  main {
    padding: 22px;
  }
  .hero {
    padding: 38px 0;
  }
  .cards,
  .fields {
    grid-template-columns: 1fr;
  }
  .tool {
    padding: 20px;
  }
  nav {
    gap: 16px;
  }
  h1 {
    letter-spacing: -1px;
  }
}
/* 2026-10-04: three-column fields, tables, formula box, sources, notes */
.fields-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 650px) {
  .fields-3 {
    grid-template-columns: 1fr;
  }
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 26px;
  font-size: 0.95rem;
}
caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: 6px;
}
th,
td {
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
thead th {
  background: rgba(0, 0, 0, 0.05);
}
.prose table {
  display: block;
  overflow-x: auto;
}
@media (min-width: 651px) {
  .prose table {
    display: table;
  }
}
.formula-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(0, 0, 0, 0.04);
  border-left: 4px solid var(--brand, #4a5c4d);
  padding: 14px 16px;
  margin: 16px 0;
  line-height: 1.7;
  font-size: 0.92rem;
}
.disclaimer-callout {
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 12px 14px;
  font-size: 0.92rem;
  margin: 24px 0;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.05);
  padding: 1px 4px;
  border-radius: 3px;
}
.sources ul {
  padding-left: 1.2em;
}
.prose h3 {
  margin-top: 1.4em;
}
