.calculator-page [hidden] { display: none !important; }
.calculator-page input, .calculator-page select { min-width: 0; box-sizing: border-box; width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--canvas); color: var(--text); font: 16px/1.6 inherit; }
.calculator-page select { font-family: inherit; font-size: 14px; line-height: 1.6; min-height: 44px; }
.calculator-page button { min-height: 44px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); padding: 10px 14px; font: 13px/1.5 var(--sans, sans-serif); cursor: pointer; }
.calculator-page button:hover:not(:disabled) { border-color: var(--amber); }
.calculator-page button:disabled { opacity: .4; cursor: default; }
.calculator-page :focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.calculator-page .cost-submit { background: var(--amber); color: #10151b; }
.cost-mode-switch, .cost-field-row { display: flex; align-items: end; gap: 12px; }
.cost-mode-switch > *, .cost-field-row > div { flex: 1; min-width: 0; }
.cost-mode-switch [aria-pressed=true] { color: var(--amber); border-color: var(--amber); }
.cost-field-row { margin: 12px 0; }
.cost-levels-table { margin: 18px 0 12px; }
.cost-levels-head, .cost-level-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 44px; gap: 8px; margin-bottom: 8px; }
.cost-levels-head { color: var(--secondary); font-size: 12px; }
#cost-levels { max-height: 380px; overflow-y: auto; }
.calculator-page details { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 18px; }
.calculator-page summary { cursor: pointer; font-size: 13px; line-height: 1.7; margin-bottom: 12px; }
.calculator-page pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow-y: auto; font: 12px/1.8 var(--mono); }
#cost-fee-custom, .cost-presets { margin: 18px 0; }
#cost-snapshot-status, #cost-result-context { white-space: pre-line; overflow-wrap: anywhere; color: var(--secondary); font: 12px/1.8 var(--mono); }
.cost-share-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.calculator-page .cost-privacy, #cost-share-status, #cost-fee-note { font-size: 12px; line-height: 1.8; color: var(--secondary); }
.cost-notice { padding: 16px; border-left: 2px solid var(--amber); background: var(--surface); font-size: 13px; line-height: 1.8; }
.calculator-page .cost-comparison { margin-top: 32px; padding: 26px; border: 1px solid var(--border); border-radius: 12px; min-width: 0; }
.cost-comparison .cost-field-row { max-width: 650px; }
.cost-comparison label { font-size: 13px; }
.cost-table-scroll { overflow-x: auto; max-width: 100%; }
.cost-table-scroll table { width: 100%; border-collapse: collapse; font: 12px/1.8 var(--mono); }
.cost-table-scroll th, .cost-table-scroll td { padding: 14px 12px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
.cost-table-scroll th { color: var(--secondary); font-family: inherit; font-weight: 500; }
.cost-table-scroll th:first-child, .cost-table-scroll td:first-child { text-align: left; }
@media(max-width: 480px) { .calculator-page .cost-comparison { padding: 20px; } .cost-comparison .cost-field-row { flex-direction: column; align-items: stretch; } .cost-mode-switch { gap: 6px; } }
.growth-figure { margin: 28px 0; }
.growth-figure img { display: block; width: 100%; height: auto; border: 1px solid #343b43; border-radius: 12px; }
.growth-figure figcaption { margin-top: 12px; color: #b3bbc5; font-size: 13px; line-height: 1.7; }
.cost-form { display: grid; gap: 22px; padding: 24px; margin: 30px 0; border: 1px solid #343b43; border-radius: 12px; background: #10151b; }
.cost-form label { display: block; font-weight: 600; margin-bottom: 10px; }
.cost-form input, .cost-form textarea { box-sizing: border-box; width: 100%; border: 1px solid #5d6875; border-radius: 6px; padding: 12px; background: #090c10; color: #f4f5f7; font: inherit; }
.cost-form textarea { font-family: monospace; resize: vertical; }
.cost-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cost-actions button { padding: 12px 16px; border: 1px solid #687280; background: #17212c; color: #f4f5f7; border-radius: 6px; cursor: pointer; font: inherit; }
.cost-actions button[type=submit] { color: #10151b; background: #edb958; border-color: #edb958; font-weight: 650; }
.cost-form :focus-visible { outline: 3px solid #edb958; outline-offset: 3px; }
.cost-form p { margin: 0; font-size: 14px; }
#cost-error { color: #f9c777; }
.cost-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cost-metrics div { padding: 18px; background: #10151b; border: 1px solid #343b43; border-radius: 8px; }
.cost-metrics dt { color: #b3bbc5; font-size: 13px; }
.cost-metrics dd { margin: 6px 0 0; font-size: 22px; overflow-wrap: anywhere; }
#cost-result summary { cursor: pointer; padding: 12px 0; }
.research-tools-link { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 24px 40px; margin: 28px 0; padding: 32px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.research-tools-link small { color: var(--amber); font: 11px var(--mono); letter-spacing: .12em; }
.research-tools-link h2 { margin: 12px 0; font-size: 26px; line-height: 1.3; letter-spacing: -.025em; }
.research-tools-link h2 a { color: var(--text); text-decoration: none; }
.research-tools-link p { max-width: 660px; margin: 0; color: var(--secondary); font-size: 15px; line-height: 1.7; }
.research-tool-cta { display: inline-flex; justify-content: center; align-items: center; gap: 24px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--border); border-radius: 6px; color: var(--amber); text-decoration: none; font-size: 14px; white-space: nowrap; }
.research-tool-cta:hover { border-color: var(--amber); }
.research-tool-cases { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.research-tool-cases span { color: var(--secondary); font: 10px var(--mono); letter-spacing: .08em; }
.research-tool-cases a { color: var(--secondary); font-size: 13px; text-decoration: none; line-height: 1.8; }
.research-tools-link a:hover { color: var(--amber); }
.research-tools-link a:focus-visible { outline: 2px solid var(--amber); outline-offset: 5px; }

/* Keep tool typography separate from the long-form research article scale. */
.calculator-page { max-width: 1120px; padding-block: 48px 80px; }
.calculator-page .article-breadcrumb { margin-bottom: 32px; }
.calculator-page .calculator-intro { max-width: 800px; margin-bottom: 32px; }
.calculator-page h1 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.18; letter-spacing: -.035em; margin: 14px 0 18px; }
.calculator-page .article-deck { font-size: 17px; line-height: 1.7; margin: 0 0 14px; }
.calculator-page .calculator-note { color: var(--secondary); font-size: 12px; line-height: 1.8; margin: 0; }
.calculator-workspace { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; align-items: start; }
.calculator-page h2 { margin: 0 0 20px; font-size: 21px; line-height: 1.4; letter-spacing: -.02em; }
.calculator-page section { margin: 0; }
.calculator-page section p, .calculator-page section li { font-size: 14px; line-height: 1.8; color: var(--secondary); }
.calculator-page section p { margin: 14px 0; }
.calculator-page section ol { padding-left: 20px; }
.calculator-page .cost-form { gap: 20px; margin: 0; padding: 26px; background: var(--surface); border-color: var(--border); }
.cost-form h2 { margin-bottom: 0; }
.cost-form label { font-size: 13px; line-height: 1.6; margin-bottom: 8px; }
.cost-form input, .cost-form textarea { font-size: 16px; line-height: 1.6; padding: 10px 12px; border-color: var(--border); background: var(--canvas); }
.calculator-title { display: inline-block; }
.cost-form textarea { min-height: 126px; font-family: var(--mono); }
.cost-form #cost-input-help { font-size: 12px; line-height: 1.7; color: var(--secondary); margin-top: 8px; }
.cost-form button { min-height: 44px; font-family: inherit; }
.cost-submit { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; color: #10151b; background: var(--amber); border: 1px solid var(--amber); border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 600; }
.cost-presets > p { color: var(--secondary); font-size: 12px; margin-bottom: 10px; }
.cost-actions { gap: 8px; }
.cost-actions button { padding: 8px 12px; font-size: 12px; background: transparent; border-color: var(--border); }
.cost-actions button:hover { border-color: var(--amber); }
#cost-error { font-size: 12px; line-height: 1.7; }
#cost-error:empty { display: none; }
.cost-result-panel { min-width: 0; padding: 26px; border: 1px solid var(--border); border-radius: 12px; }
.cost-result-panel > .eyebrow { font-size: 10px; margin: 0 0 16px; }
.cost-metrics { margin: 24px 0 18px; gap: 12px; }
.cost-metrics div { padding: 16px; background: var(--surface); border-color: var(--border); }
.cost-metrics dt { font-size: 11px; line-height: 1.6; }
.cost-metrics dd { font: 22px/1.4 var(--mono); font-variant-numeric: tabular-nums; }
.calculator-page #cost-result > p { font-size: 12px; }
#cost-result summary { font-size: 13px; color: var(--text); }
.calculator-explainer { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.calculator-page #limitations, .calculator-page #related-reading { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border); }
.cost-example-breakdown { margin: 18px 0; font-size: 13px; }
.cost-example-breakdown div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cost-example-breakdown dt { color: var(--secondary); }
.cost-example-breakdown dd { margin: 0; font-family: var(--mono); }
.calculator-page #worked-example > a, .calculator-reading a { font-size: 13px; line-height: 1.8; }
.calculator-reading { display: flex; flex-wrap: wrap; gap: 12px 28px; }
@media (max-width: 760px) {
  .research-tools-link { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .research-tools-link h2 { font-size: 23px; }
  .research-tool-cta { justify-self: start; }
  .research-tool-cases { align-items: flex-start; flex-direction: column; gap: 10px; }
  .calculator-page { padding-block: 28px 56px; }
  .calculator-page .article-breadcrumb { margin-bottom: 26px; font-size: 12px; }
  .calculator-page .article-deck { font-size: 15px; }
  .calculator-workspace, .calculator-explainer { grid-template-columns: 1fr; gap: 24px; }
  .calculator-page .cost-form, .cost-result-panel { padding: 20px; }
  .calculator-page h2 { font-size: 20px; }
  .cost-metrics div { padding: 12px; }
  .cost-metrics dd { font-size: 19px; }
  .calculator-explainer { margin-top: 32px; }
}
/* Question-led discovery, using the existing restrained research typography. */
.research-topic-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 32px}
.research-topic-nav a{display:grid;gap:8px;padding:20px;border:1px solid #30363d;border-radius:12px;text-decoration:none;color:inherit}
.research-topic-nav a:hover{border-color:#b99b68}.research-topic-nav span{font-size:14px;line-height:1.6;color:#a6abb4}
@media(max-width:700px){.research-topic-nav{grid-template-columns:1fr;gap:10px}.research-topic-nav a{padding:16px}}
.evidence-hash{overflow-wrap:anywhere;word-break:break-word}
