/* CelsiusToFahrenheit.pro — minimal, fast, accessible. */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --surface: #ffffff;
  --border: #e4e8ee;
  --border-strong: #cfd6df;
  --text: #0f172a;
  --text-2: #475569;
  --muted: #64748b;
  --accent: #059669;
  --accent-strong: #047857;
  --accent-soft: #ecfdf5;
  --accent-border: #a7f3d0;
  --cold: #0284c7;
  --hot: #ea580c;
  --brand-grad: linear-gradient(90deg, #0ea5e9 0%, #10b981 55%, #f59e0b 100%);
  --hero-glow: rgba(16, 185, 129, .10);
  --hero-glow-2: rgba(14, 165, 233, .08);
  --header-bg: rgba(255, 255, 255, .86);
  --footer-bg: #0b1220;
  --footer-text: #cbd5e1;
  --footer-muted: #8a99ad;
  --footer-border: #1e293b;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --focus: #10b981;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .05);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 12px 32px rgba(15, 23, 42, .08);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1a; --bg-soft: #0f1624; --surface: #111a2b; --border: #1e2a3d; --border-strong: #2f3d54;
    --text: #f1f5f9; --text-2: #cbd5e1; --muted: #94a3b8;
    --accent: #34d399; --accent-strong: #6ee7b7; --accent-soft: #0b2a22; --accent-border: #065f46;
    --cold: #38bdf8; --hot: #fb923c;
    --hero-glow: rgba(16, 185, 129, .14); --hero-glow-2: rgba(14, 165, 233, .10);
    --header-bg: rgba(10, 15, 26, .82);
    --footer-bg: #070b13; --footer-border: #172033;
    --danger: #f87171; --danger-soft: #2a1414; --focus: #34d399;
    --shadow: none; --shadow-lg: 0 12px 32px rgba(0, 0, 0, .35); color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.015em; color: var(--text); }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem); margin: 0 0 .5rem; font-weight: 750; }
h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); margin: 0 0 .9rem; font-weight: 700; }
h3 { font-size: 1.05rem; margin: 0 0 .5rem; font-weight: 650; }
p { margin: 0 0 1rem; }
code { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip-link:focus { left: 8px; color: #fff; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--header-bg); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); position: sticky; top: 0; z-index: 5; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand-grad); opacity: .9; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.logo-mark { width: 36px; height: 36px; flex: none; border-radius: 10px; box-shadow: 0 2px 8px rgba(5, 150, 105, .28); transition: transform .2s; }
.brand:hover .logo-mark { transform: rotate(-6deg) scale(1.04); }
.brand-text { display: inline-flex; align-items: baseline; font-size: 1.06rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand-name { font-weight: 750; }
.brand-to { font-weight: 500; color: var(--muted); font-size: .86em; margin: 0 .3em; }
.brand-tld { font-weight: 750; color: var(--accent); }
.nav-desktop { display: none; gap: 4px; }
.nav-desktop a, .nav-mobile nav a { color: var(--text-2); text-decoration: none; font-size: .94rem; font-weight: 500; padding: 6px 10px; border-radius: 6px; }
.nav-desktop a:hover, .nav-mobile nav a:hover { background: var(--bg-soft); color: var(--text); }
.nav-desktop a[aria-current="page"], .nav-mobile a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.nav-mobile summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; } .burger::after { top: 6px; }
.nav-mobile nav { position: absolute; left: 0; right: 0; top: 60px; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; display: grid; gap: 2px; box-shadow: var(--shadow); }
@media (min-width: 820px) { .nav-desktop { display: flex; } .nav-mobile { display: none; } }

main { padding: 20px 0 56px; background:
  radial-gradient(900px 340px at 15% -80px, var(--hero-glow), transparent 70%),
  radial-gradient(800px 320px at 85% -100px, var(--hero-glow-2), transparent 70%) no-repeat; }
@media (max-width: 400px) { .brand-tld { display: none; } }
@media (max-width: 340px) { .brand-text { font-size: .9rem; } .logo-mark { width: 30px; height: 30px; } .brand { gap: 7px; } }
.brand { min-width: 0; }
.brand-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 16px; font-size: .875rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 4px; color: var(--border-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }

/* Hero & headings */
.hero { padding: 16px 0 8px; }
.lead { font-size: 1.075rem; color: var(--text-2); max-width: 720px; }
.page-head { margin-bottom: 20px; }
.tool-title { margin: 4px 0 0; }
.tool-title + .calc { margin-top: 14px; }
.after-tool { margin-top: 18px; }
.section { margin-top: 44px; }
.sub { margin-top: 24px; }

/* Calculator */
.calc { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px 20px; box-shadow: var(--shadow-lg); margin-top: 20px; }
.calc::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--brand-grad); }
.calc-grid { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: end; }
@media (min-width: 640px) { .calc-grid { grid-template-columns: 1fr auto 1fr; } }
.field label { display: block; font-size: .875rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.input-box { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg); min-height: 56px; padding: 0 14px; transition: border-color .15s, box-shadow .15s; }
.input-box:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent); }
.input-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 600 1.5rem/1 var(--font); padding: 12px 0; }
.input-box output { flex: 1; min-width: 0; font: 700 1.5rem/1 var(--font); color: var(--accent); overflow-wrap: anywhere; padding: 12px 0; }
.input-box.is-result { background: var(--accent-soft); border-color: var(--accent-border); }
.input-box.is-invalid { border-color: var(--danger); }
.unit { font-weight: 600; color: var(--muted); margin-left: 8px; }
.swap { justify-self: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text-2); cursor: pointer; display: grid; place-items: center; margin-bottom: 6px; transition: transform .2s, color .15s, border-color .15s; }
.swap:hover { color: var(--accent); border-color: var(--accent); }
.swap:active { transform: rotate(180deg); }
@media (max-width: 639px) { .swap { transform: rotate(90deg); margin: 0; } .swap:active { transform: rotate(270deg); } }
.calc-error { color: var(--danger); background: var(--danger-soft); border-radius: 6px; padding: 8px 12px; margin: 12px 0 0; font-size: .92rem; }
.calc-formula { font-family: var(--mono); font-size: .92rem; color: var(--text-2); margin: 14px 0 0; padding: 10px 12px; background: var(--bg-soft); border-radius: 6px; overflow-wrap: anywhere; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.precision { margin-left: auto; font-size: .875rem; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.precision select { font: inherit; padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--bg); color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font: 600 .94rem/1 var(--font); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { border-color: var(--text-2); color: var(--text); }
.btn-primary { background: linear-gradient(180deg, #10b981, #059669); border-color: #059669; color: #fff; box-shadow: 0 1px 2px rgba(5, 150, 105, .25), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary:hover { background: linear-gradient(180deg, #059669, #047857); border-color: #047857; color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary, .btn-primary:hover { color: #022c22; background: linear-gradient(180deg, #6ee7b7, #34d399); border-color: #34d399; } }
.btn-ghost { border-color: transparent; color: var(--text-2); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .875rem; }
.btn.is-done { color: var(--accent); border-color: var(--accent); }

/* Result card on conversion pages */
.result-card { position: relative; overflow: hidden; border: 1px solid var(--accent-border); background: linear-gradient(135deg, color-mix(in srgb, var(--cold) 7%, var(--surface)), var(--accent-soft) 60%); border-radius: var(--radius); padding: 26px 20px 22px; text-align: center; box-shadow: var(--shadow); }
.result-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--brand-grad); }
.result-line { font-size: clamp(1.9rem, 1.3rem + 3vw, 2.9rem); font-weight: 800; letter-spacing: -0.025em; margin: 0 0 4px; line-height: 1.15; }
.r-c { color: var(--cold); } .r-eq { color: var(--muted); font-weight: 500; margin: 0 .15em; } .r-f { color: var(--accent); }
.result-words { color: var(--text-2); margin-bottom: 14px; }

/* Value cards (homepage) */
.value-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .value-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.value-card { display: grid; gap: 2px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; color: var(--text); background: var(--surface); height: 100%; transition: border-color .15s, transform .15s; }
a.value-card:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-c { font-weight: 700; font-size: 1.1rem; color: var(--cold); }
.card-f { font-weight: 700; color: var(--accent); }
.card-l { font-size: .8rem; color: var(--muted); }
.more { margin-top: 14px; }

/* Formula */
.formula-box { border: 1px solid var(--border); border-left: 4px solid var(--accent); background: var(--bg-soft); border-radius: var(--radius-sm); padding: 18px 20px; margin: 0 0 16px; }
.formula { font: 700 clamp(1.15rem, 1rem + 1vw, 1.5rem)/1.3 var(--mono); margin: 0; color: var(--text); }
.formula-note { margin: 6px 0 0; color: var(--text-2); font-size: .94rem; }

/* Steps & worked examples */
.steps { padding-left: 1.3rem; } .steps li { margin-bottom: 6px; }
.calc-steps { list-style: none; padding: 14px 18px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.calc-steps li { padding: 3px 0; font-size: 1.05rem; }
.worked-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .worked-grid { grid-template-columns: 1fr 1fr; } }
.worked { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.worked ol { margin: 0; padding-left: 1.2rem; color: var(--text-2); }
.bullets { padding-left: 1.2rem; } .bullets li { margin-bottom: 6px; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0 0 16px; }
.facts div { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; }
.facts dt { font-size: .8rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.note { font-size: .9rem; color: var(--text-2); border-left: 3px solid var(--border-strong); padding-left: 12px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.conv-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.conv-table caption { text-align: left; font-weight: 650; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.conv-table th, .conv-table td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.conv-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.conv-table tbody tr:last-child td { border-bottom: 0; }
.conv-table tbody tr:hover { background: var(--bg-soft); }
.conv-table td:last-child { font-weight: 600; }
.conv-table tr.is-current { background: var(--accent-soft); }
.conv-table tr.is-current td { font-weight: 700; color: var(--accent); }
.split { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 720px) { .split { grid-template-columns: 1fr 1fr; } }
.chart-cols { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 720px) { .chart-cols { grid-template-columns: repeat(3, 1fr); } }

/* Chips */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--text-2); font-size: .92rem; background: var(--surface); }
.chips a:hover { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent-strong); }

/* FAQ */
.faq { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1rem; display: inline; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { background: var(--bg-soft); }
.faq-a { padding: 0 18px 6px; color: var(--text-2); }

/* Hub */
.toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hub-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.hub-list li { display: flex; justify-content: space-between; gap: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; font-size: .94rem; }
.hub-list a { text-decoration: none; font-weight: 600; }
.hub-list span { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Prose & errors */
.prose { max-width: 720px; } .prose h2 { margin-top: 28px; }
.contact-email { font-size: 1.25rem; font-weight: 700; }
.error-page { max-width: 760px; }
.error-code { font: 800 3.5rem/1 var(--font); color: var(--accent); margin: 8px 0; }
.error-page h2 { margin-top: 32px; }
.error-page .btn { margin-top: 24px; }

/* Footer */
.site-footer { position: relative; background: var(--footer-bg); color: var(--footer-text); padding: 48px 0 0; font-size: .92rem; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--brand-grad); }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.site-footer .brand-to { color: var(--footer-muted); }
.site-footer .brand-tld { color: #34d399; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-brand p { color: var(--footer-muted); margin-top: 14px; max-width: 320px; }
.site-footer h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer ul.cols-2 { grid-template-columns: 1fr 1fr; column-gap: 12px; }
.site-footer a { color: var(--footer-text); text-decoration: none; }
.site-footer a:hover { color: #34d399; }
.footer-bottom { border-top: 1px solid var(--footer-border); margin-top: 36px; padding-top: 18px; padding-bottom: 26px; color: var(--footer-muted); }
.footer-bottom p { margin: 0; }

/* Calculators */
.tool-fields { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tool-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .tool-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tf label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.tf input, .tf select, .tf textarea { width: 100%; font: 500 1rem/1.4 var(--font); color: var(--text); background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 11px 12px; min-height: 46px; transition: border-color .15s, box-shadow .15s; }
.tf textarea { font-family: var(--mono); font-size: .92rem; resize: vertical; }
.tf input:focus, .tf select:focus, .tf textarea:focus { outline: 0; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent); }
.tf-wide { grid-column: 1 / -1; }
.tf[hidden] { display: none; }
.tool-output { margin-top: 18px; display: grid; gap: 14px; }
.out-primary { display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--accent-border); background: var(--accent-soft); }
.out-primary.is-warn { border-color: #fcd34d; background: color-mix(in srgb, #f59e0b 10%, var(--surface)); }
.out-primary.is-danger { border-color: #fca5a5; background: color-mix(in srgb, #ef4444 9%, var(--surface)); }
.out-label { font-size: .85rem; font-weight: 600; color: var(--text-2); }
.out-value { font: 800 clamp(1.5rem, 1.2rem + 1.5vw, 2rem)/1.2 var(--font); color: var(--accent); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.is-warn .out-value { color: #b45309; } .is-danger .out-value { color: var(--danger); }
@media (prefers-color-scheme: dark) { .is-warn .out-value { color: #fbbf24; } }
.out-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 0; }
.out-rows div { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; }
.out-rows dt { font-size: .8rem; color: var(--muted); }
.out-rows dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.out-note { margin: 0; font-size: .9rem; color: var(--text-2); }
.out-swatch { display: block; width: 100%; height: 48px; border-radius: 10px; border: 1px solid var(--border); }
.out-print { margin: 0; }
.svg-wrap { overflow-x: auto; max-width: 100%; }
.svg-wrap svg { display: block; max-width: none; }
.svg-wrap .protractor { max-width: 100%; height: auto; }
.out-error { color: var(--danger); background: var(--danger-soft); border-radius: 6px; padding: 10px 12px; font-size: .92rem; }
.formula-inline { font-family: var(--mono); background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; overflow-x: auto; }
.prose-wide ul { margin-top: 0; }

/* Tool cards */
.tool-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tool-card { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.tool-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tool-name { font-weight: 700; color: var(--text); }
.tool-desc { font-size: .88rem; color: var(--muted); }
.h-link { color: inherit; text-decoration: none; }
.h-link:hover { color: var(--accent); }
.toc { margin-bottom: 8px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-size: .92rem; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 20; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
@media print {
  .site-header, .site-footer, .no-print, .calc, .breadcrumbs, .chips, .skip-link { display: none !important; }
  /* The printable table generator prints only its generated table. */
  body:has([data-tool="printable-temperature-table"]) main .section, body:has([data-tool="printable-temperature-table"]) .lead { display: none !important; }
  .calc[data-tool="printable-temperature-table"] { display: block !important; border: 0; box-shadow: none; padding: 0; }
  .calc[data-tool="printable-temperature-table"] .tool-fields, .calc[data-tool="printable-temperature-table"] .calc-actions, .calc[data-tool="printable-temperature-table"] .out-print, .calc[data-tool="printable-temperature-table"] .out-note { display: none !important; }
  .calc[data-tool="printable-temperature-table"]::before { display: none; }
  body { font-size: 12px; } .section { margin-top: 16px; break-inside: avoid; }
}
