[hidden] { display: none !important; }

body.p04-page { margin: 0; }
.draft-banner {
  padding: 8px 20px;
  background: var(--p04-warm);
  color: var(--p04-ink);
  text-align: center;
  font-weight: 700;
  font-size: .875rem;
}
.p04-container.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding-block: 14px;
  border-bottom: 1px solid var(--p04-hairline);
}
.site-nav { display: flex; flex-wrap: wrap; gap: 0 16px; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 650; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.p04-premium-identity { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; min-width: 0; }

.p04-section .p04-kicker { margin: 0 0 14px; }
.p04-premium-hero__actions .p04-button { gap: 12px; }
.p04-premium-hero .p04-premium-hero__visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--p04-hairline);
  border-top: 6px solid #128485;
  border-radius: 16px;
  box-shadow: var(--p04-premium-shadow);
}
.p04-premium-hero .p04-premium-hero__visual::after { content: none; }
.p04-premium-hero__visual h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 0; line-height: 1.16; }
.p04-premium-hero__visual > p { margin-block: 12px 0; }
.hero-figures { display: grid; gap: 10px; margin: 18px 0; }
.hero-figure {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--p04-white);
  border-radius: 8px;
}
.hero-figure dt { font-size: .875rem; }
.hero-figure dd {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-weight: 780;
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-variant-numeric: tabular-nums;
}
.hero-figure:last-child { background: var(--p04-ink); color: var(--p04-white); }
.p04-splitbar--example .p04-splitbar__own { width: 66.6667%; }
.p04-splitbar--example .p04-splitbar__allowance { width: 33.3333%; }
.p04-page .p04-splitbar__allowance,
.p04-page .p04-legend__swatch--allowance { background: #128485; }
.p04-legend.hero-legend { gap: 4px 16px; }
.hero-note { font-size: .875rem; }
.p04-grid.p04-premium-steps > article { border: 1px solid var(--p04-hairline); }
.p04-grid.p04-premium-steps h3 { margin-block: 0 4px; }
.p04-grid.p04-premium-steps p { margin: 0; }
.funding-rules.p04-premium-thresholds { list-style: none; padding: 0; margin-inline: 0; }
.site-note {
  margin-block: 20px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--p04-teal-text);
  background: var(--p04-surface);
  line-height: 1.55;
}
.p04-card .p04-field { margin-top: 8px; }
.p04-field-error:empty { display: none; }
.p04-presets button { cursor: pointer; }
.p04-presets button:hover { background-color: var(--p04-mint); }
.site-result { display: grid; gap: 12px; margin-bottom: 18px; }
.site-result p { margin: 0; }
.site-result .p04-money { margin-top: 4px; }
.site-result > :last-child { padding-top: 12px; border-top: 1px solid var(--p04-teal-text); }
#calculator-result .p04-splitbar { background: var(--p04-white); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.comparison-card { display: flex; flex-direction: column; gap: 12px; }
.comparison-card p { margin: 0; }
.comparison-facts, .glossary { margin: 0; }
.glossary { display: grid; gap: 12px; }
.glossary dt { font-weight: 750; }
.glossary dd { margin: 4px 0 0; }
.glossary div { padding: 12px; background: var(--p04-surface); border-radius: 8px; }
.sources li { margin-block: 8px; }
.p04-premium-footer p { margin-block: 8px; }
.p04-premium-footer a { color: var(--p04-white); }

@media (min-width: 600px) {
  .glossary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .site-result { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
  .site-result > :last-child { padding-top: 0; padding-left: 12px; border-top: 0; border-left: 1px solid var(--p04-teal-text); }
  .site-result .p04-money { font-size: clamp(1.45rem, 2.25vw, 2.3rem); }
}
