.site-nav .nav-links a.nav-cta {
  color: #ffffff;
  white-space: nowrap;
}

.page-hero h1 {
  font-size: clamp(30px, 5.5vw, 68px);
  overflow-wrap: break-word;
}

.content-inner > h2,
.article-flow h2,
.af-tool-head h2,
.af-checklist li,
.faq summary,
.faq p,
.af-share-box p,
.primary,
.secondary {
  overflow-wrap: break-word;
  max-width: 100%;
}

.calculator > *,
.open-grid > * {
  min-width: 0;
}

.af-hero-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--green);
  text-transform: uppercase;
  margin: 0;
}

.af-micro {
  font-size: 14px;
  color: #46544e;
  margin: 18px auto 0;
  max-width: 680px;
}

.af-tool-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}

.af-tool-head h2 {
  font: 800 clamp(28px, 4vw, 42px) / 1.12 Manrope, sans-serif;
  margin: 0 0 12px;
}

.af-tool-head p {
  color: #46544e;
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

.af-calc-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.af-calc-actions button,
.af-calc-actions a {
  width: auto;
  margin-top: 0;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 99px;
  font: 700 14px 'DM Sans', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.af-btn-submit {
  background: var(--lime);
  color: var(--ink);
  border: 0;
}

.af-btn-ghost {
  background: transparent;
  color: #f6f8f2;
  border: 1px solid #6c8178;
}

.af-btn-cta {
  background: var(--green);
  color: #ffffff;
  border: 0;
}

.af-copy-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--lime);
  min-height: 20px;
}

.result span {
  color: #23332c;
}

.dark .open-grid p {
  color: #cfd9d4;
}

.af-checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: grid;
  gap: 12px;
}

.af-checklist li {
  background: #ffffff;
  border: 1px solid #d7dbd2;
  border-radius: 16px;
  padding: 16px 20px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

.af-checklist strong {
  color: var(--ink);
}

.af-share-box {
  max-width: 760px;
  margin: 56px auto 0;
  background: #ffffff;
  border: 1px solid #d7dbd2;
  border-radius: 24px;
  padding: 28px;
}

.af-share-box h2 {
  font: 800 24px Manrope, sans-serif;
  margin: 0 0 8px;
}

.af-share-box p {
  margin: 0 0 18px;
  color: #46544e;
  font-size: 15px;
  line-height: 1.6;
}

.af-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.af-share-btn {
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 99px;
  font: 700 14px 'DM Sans', sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.af-share-wa {
  background: var(--green);
  color: #ffffff;
  border: 0;
}

.af-share-outline {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid #b8bfb5;
}

.af-share-status {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  min-height: 20px;
}

.faq p {
  color: #46544e;
}

footer p {
  color: #46544e;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.calculator a:focus-visible,
.calculator button:focus-visible,
.calculator input:focus-visible {
  outline-color: var(--lime);
}

.print-footer {
  display: none;
}

@media (prefers-color-scheme: dark) {
  body {
    background: #101b16;
    color: #f4f2e9;
  }

  .brand,
  .nav-links a,
  .secondary,
  .footer-links a,
  .article-flow h2,
  .faq summary {
    color: #f4f2e9;
  }

  .brand span,
  .af-hero-eyebrow,
  .af-share-status {
    color: var(--lime);
  }

  .site-nav .nav-links a.nav-cta {
    background: var(--lime);
    color: #101b16;
  }

  .page-hero .lead,
  .af-micro,
  .af-tool-head p,
  .article-flow p,
  .faq p,
  .af-share-box p,
  footer p {
    color: #cfd9d4;
  }

  .content-band.dark {
    background: #172720;
  }

  .calculator {
    background: #172720;
    border: 1px solid #2b4238;
  }

  .af-checklist li,
  .af-share-box {
    background: #172720;
    border-color: #2b4238;
    color: #f4f2e9;
  }

  .af-checklist strong {
    color: var(--lime);
  }

  .af-share-outline {
    background: #101b16;
    color: #f4f2e9;
    border-color: #4f6b5f;
  }

  .faq details,
  footer {
    border-color: #2b4238;
  }
}

@media (max-width: 800px) {
  nav.site-nav {
    padding: 20px 18px;
    gap: 12px;
  }

  nav.site-nav .nav-cta {
    padding: 10px 14px;
    font-size: 13px;
  }

  .page-hero {
    padding: 0 20px;
  }

  .page-hero .actions {
    align-items: stretch;
  }

  .page-hero .actions a {
    text-align: center;
  }

  .tool {
    padding: 0 20px;
  }

  .calculator {
    padding: 22px 18px;
  }

  .result strong {
    font-size: 34px;
  }

  .af-calc-actions {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .af-copy-status {
    grid-column: auto;
  }

  .af-share-actions {
    flex-direction: column;
    align-items: stretch;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media print {
  body {
    background: #ffffff;
    color: #000000;
  }

  .site-nav,
  .actions,
  .af-calc-actions,
  .af-share-box,
  footer {
    display: none !important;
  }

  .content-band,
  .content-band.dark {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 20px 0 !important;
  }

  .dark .open-grid p,
  .dark .number {
    color: #222222 !important;
  }

  .calculator {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #333333;
    padding: 20px;
  }

  .calculator input {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #666666;
  }

  .result {
    background: #f4f4f4 !important;
    color: #000000 !important;
    border: 1px solid #333333;
  }

  .print-footer {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 2px solid #15241e;
    break-inside: avoid;
  }

  .print-footer p {
    margin: 4px 0;
    font-size: 12px;
    color: #111111;
  }

  .print-footer svg {
    width: 84px;
    height: 84px;
    flex-shrink: 0;
  }
}
