/* Supporting content extends the existing calculator and shared navigation palette. */
body { min-width: 0; padding: 0; }
main.calculator-page { max-width: 1398px; padding: 0 24px; box-sizing: border-box; }
.calculator-page > .calculator-heading { margin-bottom: 12px; }
.calculator-page h1.title-text { display: block; height: auto; margin: 0; font: 800 clamp(24px, 3vw, 34px)/1.2 Inter, system-ui, sans-serif; letter-spacing: -0.025em; }
.calculator-page .tool-lead { max-width: 850px; margin: 10px 0 12px; font: 15px/1.6 Inter, system-ui, sans-serif; }
.calculator-page .generations { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 0; }
.calculator-scroll { max-width: 100%; overflow-x: auto; margin: 0 -4px; padding: 4px; }
.calculator-scroll:focus-visible, .tool-table-scroll:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.calculator-board { display: flow-root; min-width: 1350px; }
.tool-content { clear: both; width: min(100%, 1060px); margin: 52px auto 32px; color: #0f172a; font: 16px/1.75 Inter, system-ui, sans-serif; overflow-wrap: break-word; }
.tool-guide-section { margin: 0 0 24px; padding: 28px 32px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(15,23,42,.04); }
.tool-content h2 { margin: 0 0 16px; font: 750 clamp(21px, 2.5vw, 26px)/1.3 Inter, system-ui, sans-serif; letter-spacing: -0.02em; }
.tool-content h3 { margin: 0 0 8px; font: 700 18px/1.45 Inter, system-ui, sans-serif; }
.tool-content p { margin: 0 0 16px; }
.tool-content p:last-child { margin-bottom: 0; }
.tool-content a:is(:link, :visited) { color: #1d4ed8; text-underline-offset: 3px; }
.tool-content a:hover { color: #1e40af; }
.tool-content a:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.tool-table-scroll { overflow-x: auto; margin-top: 24px; }
.tool-content table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; line-height: 1.6; }
.tool-content th { padding: 12px 14px; background: #eff6ff; color: #0f172a; font-size: inherit; }
.tool-content td { padding: 12px 14px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.tool-faq { padding: 20px 0; border-top: 1px solid #e2e8f0; }
.tool-faq:last-child { padding-bottom: 0; }
.tool-related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tool-related-grid a { display: block; padding: 18px; border: 1px solid #cbd5e1; border-radius: 8px; text-decoration: none; }
.tool-related-grid a:hover { background: #eff6ff; }
.tool-related-grid span { display: block; margin-top: 8px; color: #475569; font-size: 14px; line-height: 1.6; }
.tool-content p.tool-reference { margin-top: 24px; font-size: 14px; }
.dark .tool-content { color: #d4d4d4; }
.dark .tool-guide-section { background: #192121; border-color: #475569; box-shadow: none; }
.dark .tool-content a:is(:link, :visited) { color: #93c5fd; }
.dark .tool-content th { background: #103a52; color: #fff; }
.dark .tool-content td, .dark .tool-faq, .dark .tool-related-grid a { border-color: #475569; }
.dark .tool-related-grid span { color: #cbd5e1; }
.dark .tool-related-grid a:hover { background: #103a52; }
@media (max-width: 760px) {
  main.calculator-page { width: 100%; padding: 0 16px; }
  .calculator-page .tool-lead { font-size: 14px; }
  .tool-content { margin-top: 32px; }
  .tool-guide-section { padding: 22px 18px; margin-bottom: 18px; }
  .tool-related-grid { grid-template-columns: 1fr; }
  .tool-content table { min-width: 520px; }
}
