.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.tools-page { --tool-green: #31543d; }
.tools-page a:focus-visible, .tools-page button:focus-visible, .tools-page summary:focus-visible { outline: 3px solid #31543d; outline-offset: 5px; }
.tool-topbar { display: flex; justify-content: space-between; gap: 24px; padding: 18px max(24px, 5vw); border-bottom: 1px solid var(--line); font-size: 14px; }
.language-switch { display: flex; gap: 16px; }
.tool-breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; line-height: 1.5; }
.tool-topbar .language-switch { flex-shrink: 0; align-items: flex-start; }
.tool-breadcrumbs [aria-current] { color: #555a50; }
.language-switch a[aria-current] { text-decoration: underline; text-underline-offset: 4px; font-weight: 700; }
.tool-main { max-width: 1440px; margin: auto; padding: 0 max(24px, 5vw) 70px; }
.tool-heading { max-width: 960px; padding: 46px 0 34px; }
.tools-page .eyebrow { font-size: 14px; line-height: 1.4; }
.tool-heading h1, .download-intro h1 { font-family: var(--display); font-size: clamp(36px, 4.8vw, 68px); line-height: 1.02; letter-spacing: -.045em; margin: 16px 0; text-wrap: balance; overflow-wrap: anywhere; }
.tool-heading > p:last-child { font-size: 20px; max-width: 740px; line-height: 1.5; margin: 0; }
.calculator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); border: 1px solid var(--line); background: var(--white); }
.calculator > div { min-width: 0; padding: clamp(22px, 3vw, 42px); }
.calculator-form fieldset { padding: 0; border: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.tool-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tool-field:first-of-type { grid-column: 1 / -1; }
.tool-field > span { font-size: 14px; font-weight: 700; line-height: 1.45; }
.tool-field input, .tool-field select { min-width: 0; width: 100%; border: 1px solid #8c9085; border-radius: 0; color: var(--ink); background: white; padding: 13px 12px; font: inherit; font-size: 16px; min-height: 50px; }
.tool-field input:focus, .tool-field select:focus { outline: 2px solid var(--tool-green); outline-offset: 2px; }
.calculator-form .button { grid-column: 1 / -1; margin-top: 8px; border: 0; cursor: pointer; font-size: 16px; text-transform: none; letter-spacing: 0; min-height: 54px; }
.tool-note { font-size: 14px; line-height: 1.6; color: #555a50; margin: 22px 0 0; }
.tool-error { color: #9a261e; font-size: 16px; font-weight: 700; }
.calculator-result { background: var(--signal); border-left: 1px solid var(--line); }
.calculator-result > h2 { font-family: var(--sans); font-size: 16px; letter-spacing: 0; line-height: 1.4; font-weight: 800; }
.result-context { font-size: 16px; margin: 8px 0 24px; line-height: 1.5; }
.result-primary { display: flex; flex-direction: column; gap: 5px; padding-bottom: 26px; }
.result-primary strong { font-size: clamp(42px, 6vw, 82px); line-height: 1.1; font-weight: 900; letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.result-primary span { font-size: 16px; }
.result-grid dl { margin: 0; }
.result-grid dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid #789220; }
.result-grid dt, .result-grid dd { font-size: 16px; margin: 0; }
.result-grid dd { font-weight: 800; text-align: right; }
.result-table-scroll { max-height: 560px; overflow: auto; scrollbar-width: thin; }
.calculator-result table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.calculator-result caption { text-align: left; font-size: 14px; padding-bottom: 16px; }
.calculator-result th, .calculator-result td { padding: 12px 8px; border-bottom: 1px solid #789220; text-align: right; }
.calculator-result th:first-child { text-align: left; }
.calculator-result thead th { font-size: 14px; background: var(--signal); position: sticky; top: 0; }
.prediction-note { color: var(--ink); border-top: 1px solid #789220; padding-top: 16px; }
.print-button { margin-top: 24px; cursor: pointer; border: 0; background: transparent; font-size: 16px; padding: 10px 0; }
.tool-prose { max-width: 820px; padding: 38px 0; font-size: 17px; line-height: 1.7; }
.tool-prose section { margin: 24px 0 38px; }
.tool-prose h2, .related-tools > h2, .download-features h2 { font-size: clamp(24px, 2.7vw, 36px); line-height: 1.2; letter-spacing: -.025em; }
.tool-prose a { color: var(--tool-green); text-decoration: underline; text-underline-offset: 3px; }
.tool-prose details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.tool-prose summary { cursor: pointer; font-weight: 700; line-height: 1.5; }
.tool-prose details p { margin-bottom: 4px; }
.guide-prose { max-width: 900px; padding-top: 0; }
.guide-byline { margin-top: 22px; font-size: 14px; color: #555a50; }
.guide-table { overflow-x: auto; margin: 24px 0; }
.guide-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.guide-table caption { text-align: left; font-size: 14px; margin-bottom: 12px; }
.guide-table th, .guide-table td { border-bottom: 1px solid var(--line); padding: 14px; text-align: left; }
.guide-table thead { background: var(--signal); }
.tool-cta { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: 36px; background: var(--ink); color: var(--white); margin: 26px 0 46px; }
.tool-cta h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.1; }
.tool-cta p { max-width: 680px; font-size: 17px; line-height: 1.6; margin-bottom: 0; }
.tool-cta .button { background: var(--signal); color: var(--ink); flex-shrink: 0; font-size: 16px; }
.tool-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border-left: 1px solid var(--line); margin: 28px 0 40px; }
.tool-card { padding: 28px; border: 1px solid var(--line); border-left: 0; display: flex; flex-direction: column; gap: 18px; }
.tool-card:hover { background: var(--white); }
.tool-card > span { font-size: 14px; color: var(--tool-green); }
.tool-card h3 { margin: 0; font-size: 28px; font-family: var(--display); line-height: 1.15; letter-spacing: -.03em; overflow-wrap: anywhere; }
.tool-card p { font-size: 16px; line-height: 1.6; margin: 0; }
.tool-card strong { font-size: 16px; margin-top: auto; padding-top: 10px; }
.tool-footer { background: var(--ink); color: var(--white); padding: 36px max(24px, 5vw); display: flex; justify-content: space-between; gap: 28px; }
.tool-footer-brand { font-weight: 900; font-size: 26px; }
.tool-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: 14px; }
.download-intro { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 7vw; align-items: center; padding: 48px 0; }
.download-intro > div > p:not(.eyebrow):not(.tool-note) { font-size: 20px; line-height: 1.6; }
.download-intro .button { margin-top: 16px; font-size: 16px; }
.download-intro img { width: min(100%, 300px); height: auto; max-height: 630px; object-fit: contain; justify-self: center; border-radius: 24px; }
.download-features { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; border-top: 1px solid var(--line); padding-top: 36px; }
.download-features p { font-size: 17px; line-height: 1.6; }
@media (max-width: 800px) {
  .calculator { grid-template-columns: 1fr; }
  .calculator-result { border-left: 0; border-top: 1px solid var(--line); }
  .tool-heading { padding-top: 30px; }
  .tool-cards, .download-features { grid-template-columns: 1fr; }
  .tool-cta { flex-direction: column; align-items: flex-start; padding: 26px; }
  .tool-footer { flex-direction: column; }
  .download-intro { grid-template-columns: 1fr; }
  .download-intro img { max-height: 480px; }
}
@media (max-width: 440px) {
  .calculator-form fieldset { grid-template-columns: 1fr; }
  .tool-topbar { padding-inline: 20px; }
  .tool-main { padding-inline: 20px; }
  .calculator > div { padding: 20px; }
  .tools-page .header-cta { font-size: 10px; }
}
@media print {
  .tools-page { background: white; color: black; }
  .tools-page .site-header, .tool-topbar, .tool-footer, .calculator > div:first-child, .tool-prose, .tool-cta, .related-tools, .print-button, .tool-heading > p { display: none !important; }
  .tool-main { max-width: none; padding: 0; }
  .tool-heading { padding: 0 0 16px; }
  .tool-heading h1 { font-size: 26px; }
  .calculator { display: block; border: 0; }
  .calculator-result { border: 0; padding: 0 !important; background: white; }
  .calculator-result thead th { position: static; background: white; }
  .calculator-result th, .calculator-result td { padding: 5px 10px; font-size: 12px; border-color: #bbb; }
  .result-table-scroll { max-height: none; overflow: visible; }
  .calculator-result tr { break-inside: avoid; }
}

/* Readable, crawlable navigation for the journal library. */
.article-contents { max-width: 760px; margin: 0 auto 44px; padding: 22px 26px; border: 1px solid var(--line); font-size: 16px; line-height: 1.6; }
.article-contents ol { margin: 12px 0 0; padding-left: 22px; }
.article-contents a { text-decoration: underline; text-underline-offset: 3px; }
.guide-prose section { scroll-margin-top: 110px; }
.journal-topics { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.journal-topics a { border: 1px solid var(--ink); padding: 10px 14px; font-size: 14px; }
.journal-topics a:hover, .journal-topics a:focus-visible { background: var(--ink); color: var(--paper); }
.journal-group { margin-bottom: 64px; scroll-margin-top: 110px; }
.journal-group > h2 { font-family: var(--display); font-size: clamp(28px, 4vw, 42px); letter-spacing: -.03em; }
.journal-group > p { max-width: 680px; margin: 12px 0 28px; font-size: 16px; line-height: 1.6; }
.journal-group .article-row h3 { margin: 0; font-family: var(--display); font-size: clamp(22px, 2.4vw, 34px); line-height: 1.12; letter-spacing: -.03em; }
@media (max-width: 720px) { .article-contents { padding: 18px; } .journal-group { margin-bottom: 44px; } }
