:root {
  --ink: #12213b;
  --ink-soft: #536078;
  --paper: #f7f9fc;
  --surface: #ffffff;
  --surface-blue: #eef4ff;
  --surface-warm: #fff8e8;
  --line: #d8e0ec;
  --line-strong: #b7c5d9;
  --blue: #1558d6;
  --blue-dark: #0b3d9b;
  --cyan: #10a9c7;
  --green: #157a50;
  --green-bg: #e7f7ef;
  --amber: #9a5b00;
  --amber-bg: #fff3d6;
  --red: #a33131;
  --red-bg: #fdeaea;
  --shadow: 0 18px 55px rgba(23, 44, 82, 0.09);
  --radius: 18px;
  --radius-small: 10px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(21, 88, 214, 0.08), transparent 34rem),
    linear-gradient(180deg, #fff 0, var(--paper) 34rem, var(--paper) 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: #fff;
  background: var(--blue);
}

a {
  color: var(--blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue);
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(21, 88, 214, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  padding: 16px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(216, 224, 236, 0.85);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), var(--cyan));
  border-radius: 9px;
  box-shadow: 0 7px 20px rgba(21, 88, 214, 0.2);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.site-header nav a {
  padding: 7px 11px;
  color: var(--ink-soft);
  border-radius: 8px;
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--blue-dark);
  background: var(--surface-blue);
}

main {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.tool-page,
.article {
  min-width: 0;
}

.hero {
  padding: 84px 0 50px;
}

.eyebrow,
.step {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink);
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  max-width: 940px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 7.8vw, 7.2rem);
  letter-spacing: -0.065em;
}

h1 span {
  color: var(--blue);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.2vw, 3.7rem);
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  letter-spacing: -0.025em;
}

p,
li,
dd,
td,
th {
  overflow-wrap: anywhere;
}

.lede {
  max-width: 920px;
  margin: 0 0 24px;
  color: #33415c;
  font-size: clamp(1.15rem, 2.1vw, 1.48rem);
  line-height: 1.55;
}

dfn {
  font-style: normal;
  font-weight: 760;
}

.direct-answer {
  max-width: 1040px;
  margin: 28px 0;
  padding: 22px 24px;
  background: linear-gradient(120deg, #eaf2ff, #f5f9ff);
  border: 1px solid #c8d9fa;
  border-left: 5px solid var(--blue);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  font-size: 1.05rem;
}

.fact-pack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 32px 0;
  padding: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.fact-pack > div {
  min-width: 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.96);
}

.fact-pack dt {
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact-pack dd {
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
}

.provenance-note {
  max-width: 900px;
  color: var(--ink-soft);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-notes li {
  padding: 6px 11px;
  color: var(--blue-dark);
  background: var(--surface-blue);
  border: 1px solid #ceddfa;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.page-nav {
  margin: 12px 0 72px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 35px rgba(23, 44, 82, 0.06);
}

.page-nav > strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 20px;
  margin: 0;
  padding: 0;
  counter-reset: nav-item;
  list-style: none;
}

.page-nav li {
  counter-increment: nav-item;
}

.page-nav li::before {
  content: counter(nav-item, decimal-leading-zero) " ";
  color: var(--line-strong);
  font-size: 0.75rem;
  font-weight: 800;
}

.page-nav a {
  font-size: 0.91rem;
  font-weight: 650;
}

.calculator-section,
.content-section,
.article section {
  scroll-margin-top: 88px;
}

.calculator-section {
  margin-bottom: 100px;
}

.section-heading {
  max-width: 880px;
  margin-bottom: 30px;
}

.section-heading > p:last-child,
.content-section > p,
.article section > p {
  max-width: 920px;
  color: #3f4d66;
}

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 22px;
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.input-panel {
  padding: 28px;
}

.result-panel {
  position: sticky;
  top: 86px;
  padding: 28px;
  background: linear-gradient(160deg, #10213f, #17366b);
  border-color: #1e4077;
  color: #edf4ff;
}

.result-panel h3,
.result-panel .step {
  color: #fff;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.panel-heading h3 {
  margin-bottom: 0;
}

.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.presets button,
.text-button,
.actions button {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-weight: 750;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.presets button {
  min-width: 48px;
  padding: 7px 10px;
  color: var(--blue-dark);
  background: #fff;
  font-size: 0.82rem;
}

.presets button:hover,
.text-button:hover,
.actions button:hover {
  transform: translateY(-1px);
}

form {
  display: grid;
  gap: 18px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 20px;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 12px;
}

legend {
  padding: 0 8px;
  color: var(--ink);
  font-weight: 800;
}

.fieldset-note,
.hint {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  color: #293750;
  font-size: 0.86rem;
  font-weight: 760;
}

label small {
  min-height: 2.5em;
  color: #6b778c;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.35;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-weight: 650;
}

input:hover,
select:hover {
  border-color: #7d96bd;
}

.text-button {
  margin-top: 14px;
  padding: 9px 12px;
  color: var(--blue-dark);
  background: var(--surface-blue);
  font-size: 0.8rem;
}

.state-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: #0d5739;
  background: #c9f3dd;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.state-badge.lower_bound {
  color: #6c4200;
  background: #ffe5a6;
}

.state-badge.not_computable {
  color: #7a2323;
  background: #ffcaca;
}

.total-label {
  display: block;
  margin-top: 18px;
  color: #9fb3d1;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.total-value {
  display: block;
  margin: 2px 0 0;
  color: #fff;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.total-value.unknown {
  margin-top: 10px;
  color: #ffd7a3;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
}

.per-thousand {
  margin: 5px 0 24px;
  color: #aebdd5;
  font-size: 0.86rem;
}

.breakdown {
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breakdown dt {
  color: #aebdd5;
  font-size: 0.82rem;
}

.breakdown dd {
  margin: 0;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 760;
  text-align: right;
}

.meter-note {
  margin: 20px 0 14px;
  padding: 14px;
  color: #c7d4e8;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  font-size: 0.77rem;
  line-height: 1.55;
}

.meter-note strong {
  display: block;
  color: #fff;
  text-transform: capitalize;
}

.assumptions {
  margin: 12px 0;
  padding-left: 18px;
  color: #b6c5db;
  font-size: 0.75rem;
}

.warning {
  padding: 13px 14px;
  color: #ffe4b5;
  background: rgba(159, 88, 0, 0.23);
  border: 1px solid rgba(255, 211, 143, 0.3);
  border-radius: 9px;
  font-size: 0.8rem;
}

.actions {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 7px;
  margin-top: 20px;
}

.actions button {
  padding: 10px 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  font-size: 0.75rem;
}

.actions button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.content-section,
.article section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.content-section > h3,
.article section > h3 {
  margin-top: 40px;
}

.formula-figure,
.calculation-map {
  margin: 30px 0 36px;
  padding: 26px;
  background: #101f39;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.formula-flow {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 28px;
  color: #8cb7ff;
}

.formula-flow li {
  padding-left: 8px;
}

code {
  color: #0c3f92;
  background: #eaf2ff;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
}

.formula-flow code,
.calculation-map code {
  display: inline-block;
  padding: 4px 7px;
  color: #eaf3ff;
  background: rgba(255, 255, 255, 0.08);
  line-height: 1.55;
}

figcaption {
  margin-top: 20px;
  color: #aebdd5;
  font-size: 0.79rem;
}

.two-column,
.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 30px 0;
}

.two-column > div,
.scope-grid > div,
.callout,
.risk-note {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.callout {
  margin: 0;
  background: var(--surface-blue);
  border-color: #cbdaf5;
}

.callout p,
.risk-note {
  color: #44526b;
}

.risk-note {
  margin: 30px 0 0;
  background: var(--surface-warm);
  border-color: #eed99e;
}

.definitions,
.formula-list,
.state-definitions,
.worked-calculation,
.governance-list {
  margin: 0;
}

.definitions > div,
.formula-list > div,
.state-definitions > div,
.worked-calculation > div,
.governance-list > div {
  display: grid;
  grid-template-columns: minmax(160px, 0.38fr) minmax(0, 1fr);
  gap: 22px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.definitions dt,
.formula-list dt,
.state-definitions dt,
.worked-calculation dt,
.governance-list dt {
  font-weight: 800;
}

.definitions dd,
.formula-list dd,
.state-definitions dd,
.worked-calculation dd,
.governance-list dd {
  margin: 0;
  color: #49576f;
}

.definitions.compact > div {
  grid-template-columns: minmax(130px, 0.6fr) minmax(0, 1fr);
  padding: 8px 0;
}

.table-wrap {
  max-width: 100%;
  margin: 28px 0 14px;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 8px 25px rgba(23, 44, 82, 0.045);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  line-height: 1.48;
}

.table-wrap.wide table {
  min-width: 1040px;
}

caption {
  padding: 16px 18px;
  color: var(--ink);
  background: #f5f8fc;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 780;
  text-align: left;
}

th,
td {
  padding: 12px 14px;
  border-right: 1px solid #e5eaf2;
  border-bottom: 1px solid #e5eaf2;
  vertical-align: top;
  text-align: left;
}

tr:last-child > * {
  border-bottom: 0;
}

tr > *:last-child {
  border-right: 0;
}

thead th {
  color: #35435c;
  background: #f8fafc;
  font-size: 0.72rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

tbody th {
  min-width: 145px;
  color: var(--ink);
  background: #fbfcfe;
  font-weight: 780;
}

tbody tr:hover td,
tbody tr:hover th {
  background: #f5f9ff;
}

.table-note {
  margin-top: 14px;
  font-size: 0.84rem;
}

.meter-grid,
.decision-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.meter-grid article,
.decision-grid article,
.trust-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  box-shadow: 0 8px 25px rgba(23, 44, 82, 0.045);
}

.meter-grid article > span {
  display: block;
  margin-bottom: 25px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 850;
}

.meter-grid p,
.decision-grid p,
.trust-card p {
  margin-bottom: 0;
  color: #4d5a70;
  font-size: 0.91rem;
}

.decision-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scope-grid ul,
.principles,
.decision-tree {
  margin-bottom: 0;
  padding-left: 22px;
}

.scope-grid li,
.principles li,
.decision-tree li {
  margin: 7px 0;
}

.glossary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 30px 0 0;
  padding: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.glossary > div {
  padding: 22px;
  background: #fff;
}

.glossary dt {
  margin-bottom: 7px;
  color: var(--blue-dark);
  font-weight: 800;
}

.glossary dd {
  margin: 0;
  color: #4b596f;
  font-size: 0.9rem;
}

.faq details {
  margin: 8px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.faq summary {
  padding: 17px 20px;
  color: var(--ink);
  font-weight: 780;
  cursor: pointer;
}

.faq details p {
  margin: 0;
  padding: 0 20px 20px;
  color: #4b596f;
}

.trust-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-list {
  margin-top: 26px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.resource-list ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 30px;
  margin: 0;
  padding-left: 20px;
}

.article {
  max-width: 1080px;
  margin-inline: auto;
}

.article-header {
  padding: 84px 0 56px;
}

.article-header h1 {
  max-width: 980px;
  font-size: clamp(3rem, 7vw, 6.4rem);
}

.article-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.calculation-map {
  color: #fff;
}

.flow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.flow-row > div,
.branch-grid > div {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
}

.flow-row span,
.branch-grid span {
  color: #b6c7df;
  font-size: 0.78rem;
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.formula-list > div {
  grid-template-columns: minmax(190px, 0.32fr) minmax(0, 1fr);
}

.state-definitions > div {
  padding: 20px;
  border: 1px solid var(--line);
  border-bottom: 0;
}

.state-definitions > div:first-child {
  background: var(--green-bg);
  border-radius: 10px 10px 0 0;
}

.state-definitions > div:nth-child(2) {
  background: var(--amber-bg);
}

.state-definitions > div:last-child {
  background: var(--red-bg);
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
}

.worked-calculation {
  margin: 28px 0;
  padding: 4px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.governance-list {
  margin: 30px 0;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 70px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 32px 0 45px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 0.81rem;
}

.site-footer p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1000px) {
  .calculator-shell {
    grid-template-columns: 1fr;
  }

  .result-panel {
    position: static;
  }

  .fact-pack,
  .article-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meter-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .site-header {
    align-items: flex-start;
    padding: 12px 18px;
  }

  .site-header nav {
    gap: 1px;
  }

  .site-header nav a {
    padding: 5px 7px;
    font-size: 0.76rem;
  }

  main,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .hero,
  .article-header {
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(2.75rem, 15vw, 4.8rem);
  }

  .fact-pack,
  .article-facts,
  .field-grid,
  .two-column,
  .scope-grid,
  .decision-grid,
  .trust-grid,
  .glossary,
  .resource-list ul,
  .branch-grid {
    grid-template-columns: 1fr;
  }

  .input-panel,
  .result-panel {
    padding: 20px;
  }

  fieldset {
    padding: 16px;
  }

  .content-section,
  .article section {
    padding: 64px 0;
  }

  .definitions > div,
  .formula-list > div,
  .state-definitions > div,
  .worked-calculation > div,
  .governance-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .flow-row {
    flex-direction: column;
  }

  .flow-row > div {
    width: 100%;
  }

  .flow-row > span {
    transform: rotate(90deg);
  }

  .article-footer,
  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .brand {
    font-size: 0;
  }

  .brand-mark {
    font-size: 1rem;
  }

  .panel-heading {
    flex-direction: column;
  }

  .actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .site-header,
  .skip-link,
  .actions,
  .presets,
  .text-button {
    display: none !important;
  }

  main,
  .site-footer {
    width: 100%;
  }

  .panel,
  .fact-pack,
  .table-wrap,
  .meter-grid article,
  .trust-card {
    box-shadow: none;
  }

  .result-panel {
    position: static;
    color: #000;
    background: #fff;
    border-color: #777;
  }

  .result-panel h3,
  .result-panel .step,
  .total-value,
  .breakdown dd {
    color: #000;
  }

  a {
    color: #000;
  }

  .content-section,
  .article section {
    break-inside: avoid-page;
  }
}
