/* Layout: a tool page — appliance picker on the left, live results pinned on the right; reading pages in one column. */
:root {
  --bg: #f3f5f7; --surface: #fff; --sunk: #e9edf1; --text: #131820; --muted: #59626f; --line: #d9dfe6;
  --accent: #0d6b57; --accent-ink: #fff; --accent-soft: #dcefe9;
  --good: #157a3d; --good-soft: #e1f3e7; --warn: #a1500a; --warn-soft: #fbeedd; --no: #b42318;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1216; --surface: #161b21; --sunk: #1d242c; --text: #e5e9ee; --muted: #98a2ae; --line: #2a323c;
    --accent: #3cc7a2; --accent-ink: #062019; --accent-soft: #143a31;
    --good: #57d68a; --good-soft: #15301f; --warn: #f2a54a; --warn-soft: #3a2812; --no: #f97066;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1216; --surface: #161b21; --sunk: #1d242c; --text: #e5e9ee; --muted: #98a2ae; --line: #2a323c;
  --accent: #3cc7a2; --accent-ink: #062019; --accent-soft: #143a31;
  --good: #57d68a; --good-soft: #15301f; --warn: #f2a54a; --warn-soft: #3a2812; --no: #f97066;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
a { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; margin: 1.3rem 0 .6rem; letter-spacing: -.015em; text-wrap: balance; }
h2 { font-size: 1.3rem; line-height: 1.25; margin: 2rem 0 .7rem; text-wrap: balance; }
h3 { font-size: 1.05rem; margin: 1.4rem 0 .4rem; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 72ch; }
.small, .fine { font-size: .86rem; color: var(--muted); }
.prose { max-width: 72ch; }
.crumbs { font-size: .9rem; color: var(--muted); margin-top: 1rem; }
.crumbs a { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; min-height: 58px; padding-block: 8px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.12rem; color: var(--text); text-decoration: none; }
.mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); font-size: 1rem; }
nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
nav a { color: var(--text); text-decoration: none; font-weight: 500; white-space: nowrap; }
nav a:hover { color: var(--accent); }

.button { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; padding: .6rem 1.1rem; border-radius: var(--radius); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: inherit; font-size: .92rem; padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* ---- calculator ---- */
.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 2rem; }
@media (min-width: 960px) {
  .calc-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .results { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); max-height: calc(100vh - 24px); overflow: auto; }
}
.calc { display: grid; gap: 14px; min-width: 0; }
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.presets .label { font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-right: 4px; }
.settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 16px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.settings label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; color: var(--muted); }
.settings label.check { flex-direction: row; align-items: flex-start; gap: 8px; grid-column: 1 / -1; color: var(--text); font-size: .95rem; }
.settings label.check input { margin-top: .3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }
input, select { font: inherit; color: var(--text); background: var(--surface); border: 1.5px solid var(--line); border-radius: 8px; padding: .5rem .65rem; min-width: 0; }
input:focus, select:focus { outline: none; border-color: var(--accent); }
.group { margin: 0; padding: 4px 14px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.group legend { padding: 0 6px; font-weight: 700; font-size: .95rem; }
.load { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.group .load:first-of-type { border-top: 0; }
.load label { display: flex; flex-direction: column; min-width: 0; cursor: pointer; }
.load .name { font-weight: 600; line-height: 1.3; }
.load .w { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.stepper { display: flex; align-items: center; flex: none; }
.stepper button { width: 34px; height: 34px; font: inherit; font-size: 1.15rem; font-weight: 700; border: 1.5px solid var(--line); background: var(--sunk); color: var(--text); cursor: pointer; }
.stepper button:first-child { border-radius: 8px 0 0 8px; }
.stepper button:last-child { border-radius: 0 8px 8px 0; }
.stepper input { width: 46px; height: 34px; text-align: center; border-radius: 0; border-inline: 0; padding: 0; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.results { display: grid; gap: 12px; min-width: 0; }
.empty { padding: 1rem 1.2rem; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.figures div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .8rem; min-width: 0; }
.figures span { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.figures b { font-size: clamp(1.15rem, 3vw, 1.5rem); font-variant-numeric: tabular-nums; }
.verdict { border-radius: var(--radius); padding: .9rem 1.1rem; border-left: 6px solid var(--good); background: var(--good-soft); }
.verdict.warn { border-left-color: var(--warn); background: var(--warn-soft); }
.verdict h2 { margin: 0 0 .3rem; font-size: 1.2rem; }
.verdict p { margin: .3rem 0; }
.verdict .note { font-size: .92rem; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.opt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; min-width: 0; }
.opt.off { opacity: .72; }
.opt h3 { margin: 0 0 .2rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.opt .size { margin: 0 0 .4rem; font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.opt .size small { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); }
.opt dl { margin: 0; font-size: .9rem; }
.opt dt { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; margin-top: .45rem; }
.opt dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.opt dd small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.shop { display: inline-block; margin-top: .6rem; font-weight: 700; font-size: .9rem; }
.tips { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem 1.1rem; }
.tips h3 { margin: .5rem 0 .2rem; }
.tips ul { padding-left: 1.1rem; margin: .3rem 0 .6rem; }

/* ---- reference pages ---- */
.table-wrap { overflow-x: auto; margin: .6rem 0 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.chart { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
.chart th, .chart td { text-align: left; padding: .55rem .8rem; border-top: 1px solid var(--line); vertical-align: top; }
.chart thead th { border-top: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--sunk); }
.chart tbody th { font-weight: 600; }
.chart tr.grp th { background: var(--accent-soft); font-weight: 700; }
.chart td small { color: var(--muted); }
.chart td.yes { color: var(--good); font-weight: 700; }
.chart td.no { color: var(--no); font-weight: 700; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 28px; }
ul.fit { list-style: none; padding: 0; margin: 0; }
ul.fit li { padding: .3rem 0 .3rem 1.6rem; border-bottom: 1px dashed var(--line); position: relative; }
ul.fit li::before { position: absolute; left: 0; font-weight: 800; }
ul.fit.yes li::before { content: "✓"; color: var(--good); }
ul.fit.no li::before { content: "✕"; color: var(--no); }
ul.fit small { color: var(--muted); }
.guide-list { padding-left: 1.1rem; }
.guide-list li { margin-bottom: .8rem; }
.ad { margin: 1.5rem 0; min-height: 100px; }
.foot { border-top: 1px solid var(--line); margin-top: 3rem; padding-block: 1.5rem; color: var(--muted); font-size: .9rem; }
@media (max-width: 520px) { .figures { grid-template-columns: 1fr 1fr 1fr; } .figures span { font-size: .68rem; } }

/* Phone-only result bar, so changes are visible while picking appliances. */
.mini { display: none; }
@media (max-width: 959px) {
  .mini:not([hidden]) { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--accent); color: var(--accent-ink); text-decoration: none; box-shadow: 0 -4px 16px rgba(0, 0, 0, .18); }
  .mini span { font-size: .82rem; }
  .mini b { font-size: 1.05rem; }
  .mini .go { margin-left: auto; font-weight: 700; }
  body { padding-bottom: 72px; }
}
