:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #f4f5f7; background: #090b0f; --muted: #a8b1be; --line: #29313d; --accent: #8ed8ff; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: radial-gradient(circle at 80% 0%, rgb(41 93 122 / 22%), transparent 34rem); line-height: 1.45; }
.page { width: min(100% - 24px, 860px); margin: auto; padding: 12px 0 40px; }
a { color: var(--accent); }
nav, header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
nav { font-size: .85rem; }
.languages { display: flex; gap: 4px; }
button, input, select { font: inherit; color: inherit; border: 1px solid var(--line); border-radius: 8px; background: #0d1117; }
button { min-width: 44px; min-height: 44px; cursor: pointer; }
button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: #172c3a; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
header { min-height: 94px; }
header svg { width: 164px; height: 104px; flex-shrink: 0; }
.diagram-label { fill: #e3f5ff; font: italic 700 24px ui-serif, Georgia, serif; paint-order: stroke; stroke: #0d1117; stroke-width: 4px; stroke-linejoin: round; }
.equivalent-mass { display: block; color: var(--muted); font-size: .72rem; font-weight: 400; white-space: nowrap; }
.eyebrow { color: var(--accent); font-size: .7rem; font-weight: 800; letter-spacing: .14em; margin: 0 0 2px; }
h1 { font-size: 2rem; line-height: 1; letter-spacing: -.05em; margin: 0; }
#personal-intro { max-width: 70ch; margin: 0 0 16px; color: var(--muted); font-size: .92rem; line-height: 1.55; }
h2 { font-size: 1rem; margin: 0 0 10px; }
.panel, details { border: 1px solid var(--line); border-radius: 14px; background: #11151b; }
.panel { padding: 12px; }
.selectors, .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
label { display: block; min-width: 0; color: var(--muted); font-size: .77rem; }
select, input { width: 100%; min-width: 0; min-height: 44px; padding: 8px; margin-top: 4px; color: #f4f5f7; }
input[aria-invalid="true"] { border-color: #ff9b9b; }
table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 8px; }
th, td { text-align: right; vertical-align: middle; padding: 7px 3px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
thead th { font-size: .75rem; color: var(--muted); }
tbody th { width: 44%; text-align: left; font-size: .76rem; font-weight: 500; color: var(--muted); }
.quantity-label { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.quantity-name { min-width: 0; white-space: pre-line; }
.quantity-symbol { flex-shrink: 0; color: var(--text); font-size: 1.12rem; font-weight: 800; white-space: nowrap; }
td { font-variant-numeric: tabular-nums; font-size: .9rem; font-weight: 650; }
#comparison-results td { vertical-align: top; padding-block: 12px; }
td small { font-size: .68rem; font-weight: 400; white-space: nowrap; }
.delta { display: block; color: var(--accent); font-size: .68rem; font-weight: 500; margin-top: 1px; }
.note { font-size: .72rem; margin: 10px 0 0; color: var(--muted); }
.note[data-i18n="reference"] { white-space: pre-line; }
details { margin-top: 10px; }
summary { padding: 14px 12px; font-size: .86rem; font-weight: 650; cursor: pointer; }
.detail-body { padding: 0 12px 14px; font-size: .85rem; }
.detail-body p:first-child { margin-top: 0; }
.detail-body .fields { margin: 12px 0; }
.formula { font: 1.05rem/2 ui-monospace, Consolas, monospace; color: var(--accent); }
.error { color: #ff9b9b; font-size: .8rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 600px) {
  .page { padding-top: 24px; } header { min-height: 140px; } header svg { width: 220px; height: 130px; }
  h1 { font-size: 2.8rem; } .panel { padding: 20px; } h2 { font-size: 1.15rem; }
  tbody th { font-size: .9rem; } td { font-size: 1.05rem; } th, td { padding: 10px 6px; }
  .quantity-symbol { font-size: 1.3rem; }
  .note { font-size: .8rem; } .delta { font-size: .78rem; } .fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
