/* gateway-v2/assets/tools.css — Stockertim Tools, free money calculators (17 Nov 2026). Design system tokens (st-tokens.css): gold
   --st-accent (#ffcf5e on dark, #7a5600 on light via :root[data-theme="light"] only), golden-black .st-btn with white text, near-black
   ink on light. Mobile first: inputs 16 px, tap targets 44 px or more, no horizontal scroll at 390 px. No emojis; gold is the only accent. */
.stt-body { background: var(--st-page, #070a12); color: var(--st-ink, #f3f5fb); overflow-x: clip; }
.stt-body [hidden] { display: none !important; }
.stt, .stt *, .stt *::before, .stt *::after { box-sizing: border-box; }
.stt { display: block; max-width: var(--st-container, 1280px); margin: 0 auto; padding: 12px var(--st-gutter, 16px) 48px; font: 400 16px/1.55 var(--st-ui, Inter, system-ui, sans-serif); color: var(--st-ink, #f3f5fb); -webkit-text-size-adjust: 100%; }
.stt:focus { outline: none; }
.stt-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stt a { color: var(--st-accent, #ffcf5e); text-underline-offset: 3px; }
.stt a:focus-visible, .stt button:focus-visible, .stt input:focus-visible, .stt select:focus-visible, .stt summary:focus-visible { outline: 2px solid var(--st-accent, #ffcf5e); outline-offset: 2px; }
.stt-crumbs { margin: 4px 0 12px; }
.stt h1, .stt h2, .stt h3 { font-family: var(--st-serif, Georgia, serif); color: var(--st-ink, #f3f5fb); margin: 0; text-wrap: balance; }
.stt h1 { font-size: var(--st-t-display, clamp(30px, 5vw, 46px)); line-height: 1.12; letter-spacing: -.02em; }
.stt h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.2; }
.stt h3 { font-size: 18px; line-height: 1.3; }
.stt-hero { padding: 8px 0 20px; max-width: 820px; }
.stt-hero .st-kicker a { color: inherit; text-decoration: none; }
.stt-hero h1 { margin: 8px 0 10px; }
.stt-dek { font-size: 17px; line-height: 1.55; color: var(--st-ink-2, rgba(243,245,251,.82)); margin: 0 0 14px; max-width: 66ch; }

/* hub: search and cards */
.stt-search { position: relative; max-width: 560px; margin-top: 8px; }
.stt-search-ic { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--st-ink-3, rgba(243,245,251,.62)); pointer-events: none; }
.stt-search input { width: 100%; min-height: 48px; padding: 0 16px 0 44px; font: 400 16px var(--st-ui, Inter, sans-serif); color: var(--st-ink, #f3f5fb); background: var(--st-card, #0d1322);
  border: 1px solid var(--st-control-line, rgba(255,255,255,.18)); border-radius: 999px; }
.stt-none { color: var(--st-ink-2); margin: 12px 0 0; }
.stt-cat { margin: 24px 0 8px; }
.stt-cat h2 { font: 700 var(--st-t-kicker, 11.5px)/1.2 var(--st-ui, Inter, sans-serif); letter-spacing: .1em; text-transform: uppercase; color: var(--st-ink-2); padding-bottom: 8px; border-bottom: 1px solid var(--st-rule, rgba(255,255,255,.1)); margin-bottom: 12px; }
.stt-cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .stt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .stt-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stt a.stt-card { display: grid; grid-template-columns: 36px 1fr; gap: 2px 12px; align-items: start; min-height: 44px; padding: 14px 16px; border: 1px solid var(--st-rule, rgba(255,255,255,.1)); border-radius: 12px;
  background: var(--st-card, #0d1322); color: var(--st-ink, #f3f5fb); text-decoration: none; transition: border-color .15s, transform .15s; }
.stt a.stt-card:hover { border-color: var(--st-accent-line, rgba(255,207,94,.45)); transform: translateY(-1px); }
.stt-card .stt-ic { grid-row: span 2; width: 36px; height: 36px; padding: 7px; border-radius: 10px; color: var(--st-accent, #ffcf5e); background: var(--st-accent-soft, rgba(255,207,94,.1)); }
.stt-card b { font: 650 16px/1.3 var(--st-ui, Inter, sans-serif); }
.stt-card span { font-size: 14px; line-height: 1.45; color: var(--st-ink-2, rgba(243,245,251,.82)); }

/* the calculator: form and results side by side on wide screens */
.stt-calc { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 4px 0 28px; }
@media (min-width: 960px) { .stt-calc { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); align-items: start; } .stt-form { position: sticky; top: 76px; } }
.stt-form, .stt-out { min-width: 0; border: 1px solid var(--st-rule, rgba(255,255,255,.1)); border-radius: 14px; background: var(--st-card, #0d1322); padding: 16px; }
.stt-form { display: grid; gap: 12px; align-content: start; }
.stt-f label { display: block; font: 600 14px/1.35 var(--st-ui, Inter, sans-serif); color: var(--st-ink, #f3f5fb); margin-bottom: 6px; }
.stt-in { position: relative; display: flex; align-items: stretch; }
.stt-in input, .stt-in select { width: 100%; min-width: 0; min-height: 46px; padding: 0 12px; font: 500 16px var(--st-ui, Inter, sans-serif); font-variant-numeric: tabular-nums; color: var(--st-ink, #f3f5fb);
  background: var(--st-page, #070a12); border: 1px solid var(--st-control-line, rgba(255,255,255,.18)); border-radius: 10px; -webkit-appearance: none; appearance: none; }
.stt-in select { padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.stt-in input[type="month"] { min-height: 46px; }
.stt-in input::-webkit-inner-spin-button { opacity: .5; }
.stt-pre, .stt-suf { position: absolute; top: 50%; transform: translateY(-50%); font: 600 15px var(--st-ui, Inter, sans-serif); color: var(--st-ink-3, rgba(243,245,251,.62)); pointer-events: none; }
.stt-pre { left: 12px; } .stt-suf { right: 34px; }
.stt-f--money input { padding-left: 40px; }
.stt-f--pct input { padding-right: 48px; }
.stt-in [aria-invalid="true"] { border-color: var(--st-dn, #ff5c77); box-shadow: 0 0 0 1px var(--st-dn, #ff5c77); }
.stt-hint { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--st-ink-3, rgba(243,245,251,.62)); }
.stt-check { display: flex !important; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.stt-check input { width: 22px; height: 22px; accent-color: #ffcf5e; flex: none; font-size: 16px; }
.stt-rate { margin: 0; font-size: 14px; color: var(--st-ink-2); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.stt-rate a { display: inline-flex; align-items: center; min-height: 44px; }

.stt-out { display: grid; gap: 14px; align-content: start; }
.stt-msg { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--st-dn-soft, rgba(255,92,119,.12)); color: var(--st-ink, #f3f5fb); border: 1px solid var(--st-dn, #ff5c77); }
.stt-out.is-error .stt-kpis, .stt-out.is-error .stt-chart, .stt-out.is-error .stt-table { opacity: .35; }
.stt-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .stt-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stt-kpi { min-width: 0; padding: 10px 12px; border-radius: 10px; background: var(--st-surface, rgba(255,255,255,.03)); border: 1px solid var(--st-rule, rgba(255,255,255,.1)); }
.stt-kpi span { display: block; font: 600 12.5px/1.35 var(--st-ui, Inter, sans-serif); color: var(--st-ink-2); }
.stt-kpi b { display: block; margin-top: 2px; font: 700 18px/1.25 var(--st-ui, Inter, sans-serif); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; color: var(--st-ink, #f3f5fb); }
.stt-kpi small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--st-ink-3); overflow-wrap: anywhere; }
.stt-kpi--lead { grid-column: 1 / -1; border-color: var(--st-accent-line, rgba(255,207,94,.45)); background: var(--st-accent-soft, rgba(255,207,94,.08)); }
.stt-kpi--lead b { font-size: clamp(26px, 5vw, 34px); color: var(--st-accent, #ffcf5e); }
.stt-kpi.is-up b { color: var(--st-up, #2fd17e); } .stt-kpi.is-dn b { color: var(--st-dn, #ff5c77); }
.stt-note { margin: 0; font-size: 14px; color: var(--st-ink-2); }
.stt-chart { min-width: 0; }
.stt-svg { display: block; width: 100%; height: auto; overflow: visible; }
.stt-svg--split { height: 44px; border-radius: 8px; overflow: hidden; }
.stt-grid { stroke: var(--st-rule, rgba(255,255,255,.1)); stroke-width: 1; }
.stt-ax { fill: var(--st-ink-3, rgba(243,245,251,.62)); font: 500 11px var(--st-ui, Inter, sans-serif); }
.stt-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
rect.stt-c-a, circle.stt-c-a { fill: #ffcf5e; } .stt-line.stt-c-a { stroke: #ffcf5e; }
rect.stt-c-b, circle.stt-c-b { fill: #6f7d9c; } .stt-line.stt-c-b { stroke: #8f9cb8; }
rect.stt-c-c { fill: #b08a3a; } rect.stt-c-d { fill: #4b5878; } rect.stt-c-e { fill: #c9b27a; }
rect.stt-c-up { fill: var(--st-up, #2fd17e); } rect.stt-c-dn { fill: var(--st-dn, #ff5c77); }
.stt-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; color: var(--st-ink-2); }
.stt-legend li { display: inline-flex; align-items: center; gap: 6px; }
.stt-sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.stt-sw.stt-c-a { background: #ffcf5e; } .stt-sw.stt-c-b { background: #8f9cb8; } .stt-sw.stt-c-c { background: #b08a3a; } .stt-sw.stt-c-d { background: #4b5878; } .stt-sw.stt-c-e { background: #c9b27a; }
.stt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stt-share-msg { font-size: 14px; color: var(--st-ink-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; max-width: 100%; }
.stt-copy-in { width: 100%; min-height: 44px; font: 400 16px var(--st-ui, Inter, sans-serif); padding: 0 10px; color: var(--st-ink); background: var(--st-page); border: 1px solid var(--st-control-line); border-radius: 8px; }
.stt-table { min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; max-height: 520px; overflow-y: auto; border-radius: 10px; border: 1px solid var(--st-rule, rgba(255,255,255,.1)); }
.stt-tbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.stt-tbl caption { text-align: left; padding: 10px 12px; font: 650 14px var(--st-ui, Inter, sans-serif); color: var(--st-ink); }
.stt-tbl th, .stt-tbl td { padding: 8px 12px; border-top: 1px solid var(--st-rule, rgba(255,255,255,.1)); text-align: left; white-space: nowrap; }
.stt-tbl thead th { position: sticky; top: 0; background: var(--st-card-hi, #121a2d); font-weight: 650; color: var(--st-ink-2); font-size: 13px; }
.stt-tbl .n { text-align: right; }
.stt-tbl tbody th { font-weight: 600; color: var(--st-ink); }
.stt-tbl tr.is-hi th, .stt-tbl tr.is-hi td { font-weight: 700; color: var(--st-ink); background: var(--st-surface-2, rgba(255,255,255,.05)); }

/* reading sections */
.stt-prose, .stt-faq, .stt-more, .stt-sources, .stt-recent { max-width: 820px; margin: 28px 0 0; }
.stt-prose h2, .stt-faq h2, .stt-more h2, .stt-sources h2 { margin-bottom: 10px; }
.stt-prose h3 { margin: 18px 0 6px; }
.stt-prose p, .stt-sources p, .stt-faq p { font: 400 var(--st-t-body, 17px)/1.62 var(--st-serif, Georgia, serif); color: var(--st-ink-2, rgba(243,245,251,.86)); margin: 0 0 12px; }
.stt-advice { font-family: var(--st-ui, Inter, sans-serif) !important; font-size: 14px !important; padding: 12px 14px; border-left: 3px solid var(--st-accent, #ffcf5e); background: var(--st-surface, rgba(255,255,255,.03)); border-radius: 0 10px 10px 0; }
.stt-faq details { border-top: 1px solid var(--st-rule, rgba(255,255,255,.1)); }
.stt-faq details:last-of-type { border-bottom: 1px solid var(--st-rule, rgba(255,255,255,.1)); }
.stt-faq summary { display: flex; align-items: center; min-height: 48px; padding: 8px 0; cursor: pointer; font: 650 16px/1.35 var(--st-ui, Inter, sans-serif); color: var(--st-ink); list-style: none; }
.stt-faq summary::-webkit-details-marker { display: none; }
.stt-faq summary::after { content: "+"; margin-left: auto; padding-left: 12px; color: var(--st-accent, #ffcf5e); font-size: 20px; }
.stt-faq details[open] summary::after { content: "−"; }
.stt-more-g { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .stt-more-g { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stt-links, .stt-list { margin: 6px 0 0; padding: 0; list-style: none; }
.stt-links li a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; border-bottom: 1px solid var(--st-rule, rgba(255,255,255,.1)); text-decoration: none; }
.stt-links li a:hover { text-decoration: underline; }
.stt-list li { position: relative; padding-left: 16px; margin: 0 0 6px; font-size: 15px; line-height: 1.5; color: var(--st-ink-2); }
.stt-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 2px; background: var(--st-accent, #ffcf5e); }
.stt-src { padding: 14px 16px; border: 1px solid var(--st-rule, rgba(255,255,255,.1)); border-radius: 12px; background: var(--st-card, #0d1322); margin-bottom: 10px; }
.stt-src h3 { margin-bottom: 6px; }
.stt-src p { font: 400 15px/1.5 var(--st-ui, Inter, sans-serif); }
.stt-src-l { font-size: 14px !important; overflow-wrap: anywhere; }
.stt-recent { padding: 14px 16px; border: 1px dashed var(--st-rule-2, rgba(255,255,255,.18)); border-radius: 12px; }
.stt-recent-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stt-recent h2 { font: 650 16px/1.3 var(--st-ui, Inter, sans-serif); }
.stt-recent-none { margin: 6px 0 0; font-size: 14px; color: var(--st-ink-3); }
.stt-recent ol { list-style: none; margin: 6px 0 0; padding: 0; }
.stt-recent li a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; min-height: 44px; align-items: center; padding: 6px 0; border-top: 1px solid var(--st-rule); text-decoration: none; }
.stt-recent li b { color: var(--st-ink); font-weight: 600; font-size: 15px; } .stt-recent li span { color: var(--st-ink-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.stt-linkbtn { min-height: 44px; min-width: 44px; padding: 0 8px; background: none; border: 0; color: var(--st-accent, #ffcf5e); font: 600 14px var(--st-ui, Inter, sans-serif); cursor: pointer; }
.stt-ad { margin: 28px 0 0; max-width: 100%; overflow: hidden; }
.stt-ad-l { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--st-ink-3); margin-bottom: 4px; }
.stt-map { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--st-rule, rgba(255,255,255,.1)); }
.stt-map h2 { font-size: 20px; margin-bottom: 12px; }
.stt-map-g { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .stt-map-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .stt-map-g { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.stt-map h3 { font: 700 12px/1.3 var(--st-ui, Inter, sans-serif); text-transform: uppercase; letter-spacing: .08em; color: var(--st-ink-2); margin-bottom: 4px; }
.stt-map ul { list-style: none; margin: 0; padding: 0; }
.stt-map li a { display: flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration: none; }
.stt-map li a[aria-current] { color: var(--st-ink); font-weight: 650; }

/* light theme: only through :root[data-theme="light"] (never the system setting). Near-black ink, dark gold #7a5600 for gold text */
:root[data-theme="light"] .stt-body { background: #fff; }
:root[data-theme="light"] .stt a, :root[data-theme="light"] .stt-linkbtn, :root[data-theme="light"] .stt-kpi--lead b, :root[data-theme="light"] .stt-faq summary::after { color: #7a5600; }
:root[data-theme="light"] .stt-card .stt-ic { color: #7a5600; background: rgba(122,86,0,.08); }
:root[data-theme="light"] .stt-form, :root[data-theme="light"] .stt-out, :root[data-theme="light"] .stt a.stt-card, :root[data-theme="light"] .stt-src { background: #fff; }
:root[data-theme="light"] .stt-in input, :root[data-theme="light"] .stt-in select, :root[data-theme="light"] .stt-search input, :root[data-theme="light"] .stt-copy-in { background-color: #fff; color: #10131c; }
:root[data-theme="light"] .stt-kpi--lead { background: rgba(122,86,0,.06); border-color: rgba(122,86,0,.45); }
:root[data-theme="light"] .stt-kpi.is-up b { color: #137333; } :root[data-theme="light"] .stt-kpi.is-dn b { color: #a50e0e; }
:root[data-theme="light"] rect.stt-c-a, :root[data-theme="light"] circle.stt-c-a, :root[data-theme="light"] .stt-sw.stt-c-a { fill: #b8860b; background: #b8860b; }
:root[data-theme="light"] .stt-line.stt-c-a { stroke: #b8860b; }
:root[data-theme="light"] rect.stt-c-b, :root[data-theme="light"] circle.stt-c-b, :root[data-theme="light"] .stt-sw.stt-c-b { fill: #5b6680; background: #5b6680; }
:root[data-theme="light"] .stt-line.stt-c-b { stroke: #5b6680; }
:root[data-theme="light"] rect.stt-c-up { fill: #137333; } :root[data-theme="light"] rect.stt-c-dn { fill: #a50e0e; }
:root[data-theme="light"] .stt-tbl thead th { background: #f5f6f9; }
:root[data-theme="light"] .stt-advice { border-left-color: #7a5600; background: #f7f8fb; }
:root[data-theme="light"] .stt-check input { accent-color: #7a5600; }
@media (prefers-reduced-motion: reduce) { .stt a.stt-card { transition: none; } .stt a.stt-card:hover { transform: none; } }
