/* Tehomaksulaskuri */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(archivo.woff2) format('woff2-variations'), url(archivo.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #EDF1F5;
  --surface: #FFFFFF;
  --ink: #14213A;
  --ink-2: #47566F;
  --muted: #6F7C92;
  --line: #D8DFE8;
  --line-strong: #B4C0CF;
  --grid: #E6EBF1;
  --volt: #1C4FD6;
  --volt-soft: #E4EBFE;
  --on-ink: #FFFFFF;
  --limit: #C8283A;
  --limit-ink: #A3192B;
  --limit-zone: #FCEEEF;
  --signal: #FFB000;

  --s-muu: #A9B3C1;
  --s-lammitys: #2A78D6;
  --s-sauna: #EB6834;
  --s-varaaja: #6250D6;
  --s-auto: #1BAF7A;
  --hatch: rgba(255, 255, 255, 0.62);

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0E1524;
    --surface: #162036;
    --ink: #E8EDF5;
    --ink-2: #AEB9CB;
    --muted: #8A97AD;
    --line: #26324A;
    --line-strong: #3A4964;
    --grid: #1F2A41;
    --volt: #86A8FF;
    --volt-soft: #1E2B4F;
    --on-ink: #0E1524;
    --limit: #FF6B7A;
    --limit-ink: #FF9AA5;
    --limit-zone: rgba(255, 107, 122, 0.09);
    --s-muu: #56637A;
    --s-lammitys: #3987E5;
    --s-sauna: #D95926;
    --s-varaaja: #9085E9;
    --s-auto: #199E70;
    --hatch: rgba(14, 21, 36, 0.55);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0E1524;
  --surface: #162036;
  --ink: #E8EDF5;
  --ink-2: #AEB9CB;
  --muted: #8A97AD;
  --line: #26324A;
  --line-strong: #3A4964;
  --grid: #1F2A41;
  --volt: #86A8FF;
  --volt-soft: #1E2B4F;
  --on-ink: #0E1524;
  --limit: #FF6B7A;
  --limit-ink: #FF9AA5;
  --limit-zone: rgba(255, 107, 122, 0.09);
  --s-muu: #56637A;
  --s-lammitys: #3987E5;
  --s-sauna: #D95926;
  --s-varaaja: #9085E9;
  --s-auto: #199E70;
  --hatch: rgba(14, 21, 36, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--volt); outline-offset: 2px; border-radius: 6px; }
strong { font-weight: 700; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left));
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* --- Ylätunniste ------------------------------------------------------ */

.site-head { padding-block: 14px; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 760; font-stretch: 112%; font-size: 1.0625rem; letter-spacing: -0.005em;
}
.mark { display: block; flex: none; }
.mark-bar { fill: var(--ink); }
.mark-hatch { fill: var(--signal); }
.mark-line { fill: var(--limit); }
.head-note { font-size: 0.8125rem; color: var(--muted); }
@media (max-width: 420px) { .head-note { display: none; } }

/* --- Hero ja laskuri ------------------------------------------------- */

.hero {
  display: grid;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 56px;
}
.hero h1 { grid-area: title; }
.hero .calc { grid-area: calc; }
.hero .hero-text { grid-area: text; }
.hero { grid-template-areas: "title" "calc" "text"; }
h1 {
  font-stretch: 116%;
  font-weight: 820;
  font-size: clamp(2.2rem, 1.35rem + 3.9vw, 3.6rem);
  line-height: 1.0;
  letter-spacing: -0.028em;
  text-wrap: balance;
  max-width: 13ch;
}
.lede {
  max-width: 34em;
  color: var(--ink-2);
  font-size: 1.0625rem;
  text-wrap: pretty;
}
.lede + .lede { margin-top: 10px; }

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    grid-template-areas: "title calc" "text calc";
    grid-template-rows: auto 1fr;
    gap: 28px 64px;
    padding-top: 40px;
    padding-bottom: 96px;
    align-items: start;
  }
  .hero h1 { padding-top: 12px; }
  .hero .calc { grid-row: 1 / span 2; }
  h1 { max-width: none; font-size: clamp(2.5rem, 0.2rem + 3.6vw, 3.25rem); }
  .lede { font-size: 1.125rem; margin-top: 24px; }
}

.calc { scroll-margin-top: 12px; }
.calc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 18px 22px;
  box-shadow: 0 30px 60px -44px rgba(20, 33, 58, 0.45);
}
@media (min-width: 960px) { .calc-card { min-height: 460px; } }
@media (min-width: 560px) { .calc-card { padding: 26px 28px 28px; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .calc-card { box-shadow: none; } }
:root[data-theme="dark"] .calc-card { box-shadow: none; }

.q-view, .r-view { transition: opacity .22s var(--ease), transform .22s var(--ease); }
.q-view.enter, .r-view.enter { opacity: 0; transform: translateX(18px); }
.q-view.enter-back, .r-view.enter-back { opacity: 0; transform: translateX(-18px); }

/* Kysymykset */
.q-top { display: flex; align-items: center; gap: 14px; }
.q-meter { display: flex; gap: 4px; flex: 1; max-width: 240px; }
.q-meter span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); transition: background-color .25s; }
.q-meter .done { background: var(--ink); }
.q-meter .now { background: var(--volt); }
.q-count { font-size: 0.875rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.q-title {
  margin: 22px 0 18px;
  font-stretch: 110%;
  font-weight: 760;
  font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.q-title:focus { outline: none; }
.q-options { display: grid; gap: 10px; }
.opt {
  position: relative;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  min-height: 62px;
  padding: 12px 56px 12px 18px;
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .15s, background-color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.opt:active { transform: scale(.99); }
.opt-label { font-weight: 640; font-size: 1.0625rem; line-height: 1.25; }
.opt-sub { margin-top: 2px; font-size: 0.875rem; color: var(--muted); }
.opt-dot {
  position: absolute; right: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.opt.is-selected { border-color: var(--volt); background: var(--volt-soft); }
.opt.is-selected .opt-dot { border-color: var(--volt); background: var(--volt); box-shadow: inset 0 0 0 4px var(--surface); }
.q-options.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.q-options.cols-2 .span-2 { grid-column: 1 / -1; }
.q-options.cols-2 .opt { min-height: 68px; padding: 12px 12px 12px 14px; }
.q-options.cols-2 .opt-dot { display: none; }
.q-options.cols-2 .opt-label { font-size: 1rem; overflow-wrap: break-word; }
.q-options.cols-2 .opt.is-selected { border-width: 2px; padding: 11.5px 11.5px 11.5px 13.5px; }
.q-options.cols-2 .opt.is-selected .opt-label { color: var(--volt); }
@media (min-width: 560px) {
  .q-options.cols-2 .opt { padding: 14px 16px; }
  .q-options.cols-2 .opt.is-selected { padding: 13.5px 15.5px; }
  .q-options.cols-2 .opt-label { font-size: 1.0625rem; }
}
.q-help { margin-top: 14px; font-size: 0.9375rem; color: var(--muted); max-width: 38em; }
.q-nav { display: flex; align-items: center; margin-top: 18px; min-height: 40px; }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 8px 4px; margin-left: -4px;
  color: var(--ink-2); font-weight: 600; font-size: 0.9375rem; cursor: pointer;
}
.link-btn.push { margin-left: auto; margin-right: -4px; }

/* Tulos */
.r-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 12px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--paper); color: var(--ink-2);
  font-size: 0.8125rem; font-weight: 620; cursor: pointer;
}
.chip svg { color: var(--muted); }

.r-head { margin-top: 20px; }
.r-label { font-size: 0.9375rem; font-weight: 650; color: var(--ink-2); }
.r-label:focus { outline: none; }
.r-label::first-letter { text-transform: uppercase; }
.r-big {
  margin: 4px 0 8px;
  font-stretch: 125%;
  font-weight: 820;
  font-size: clamp(3.4rem, 2.4rem + 5vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.r-eur { font-size: 0.78em; font-weight: 820; font-stretch: 112%; letter-spacing: 0; color: var(--limit); }
.r-big.is-zero .r-eur { color: var(--ink-2); }
.r-unit { font-size: 0.3em; font-weight: 700; font-stretch: 100%; letter-spacing: 0; color: var(--ink-2); white-space: nowrap; }
.r-sub { color: var(--ink-2); font-size: 1rem; max-width: 36em; }
.r-sub strong { color: var(--ink); }

.actions { display: grid; gap: 12px; margin-top: 18px; }
.actions [hidden] { display: none !important; }
.choice { display: grid; gap: 10px; margin-top: 4px; }
.choice-q {
  font-stretch: 108%; font-weight: 760; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.act {
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 72px; padding: 14px 16px;
  border: 1.5px solid var(--ink); border-radius: 16px;
  background: var(--surface); color: var(--ink);
  text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, transform .1s;
}
.act-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.act-title { font-weight: 760; font-stretch: 108%; font-size: 1.125rem; line-height: 1.15; }
.act small { font-weight: 540; font-stretch: 100%; font-size: 0.875rem; line-height: 1.35; color: var(--ink-2); }
.act-chev { flex: none; opacity: .8; }
.act-icon { flex: none; fill: currentColor; }
.act-icon .act-line { fill: var(--limit); }
.act:active { transform: scale(.99); }
.act.primary { background: var(--ink); color: var(--paper); }
.act.primary small { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.act.big { min-height: 92px; padding: 16px 16px 16px 18px; box-shadow: 0 18px 32px -24px rgba(20, 33, 58, .7); }
.act.big .act-title { font-size: 1.375rem; }
@media (max-width: 380px) { .act-icon { width: 46px; height: 26px; } .act.big { gap: 12px; } }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.detail .chart { margin-top: 6px; }

.compete {
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: var(--volt-soft);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.compete.enter { opacity: 0; transform: translateY(8px); }
.c-label { font-size: 0.9375rem; font-weight: 680; color: var(--ink-2); }
.c-label:focus { outline: none; }
.c-big {
  margin: 4px 0 10px;
  font-stretch: 118%; font-weight: 820; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(2.1rem, 1.6rem + 2.4vw, 2.9rem);
}
.c-eur { font-size: 0.82em; color: var(--volt); letter-spacing: 0; }
.c-unit { font-size: 0.4em; font-weight: 700; font-stretch: 100%; letter-spacing: 0; color: var(--ink-2); white-space: nowrap; }
.c-text { font-size: 0.96875rem; color: var(--ink-2); }
.c-total { margin-top: 10px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--volt) 25%, transparent); font-size: 1rem; color: var(--ink); }
.c-note { margin-top: 10px; font-size: 0.8125rem; color: var(--muted); }
.compete .slot-tag { display: inline-block; margin-top: 12px; background: var(--surface); }

.seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
}
.seg[hidden] { display: none; }
.seg-btn {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px;
  min-height: 46px; padding: 8px 8px;
  border: 0; border-radius: 10px; background: transparent;
  color: var(--ink-2); font-weight: 680; font-size: 0.9375rem; line-height: 1.2; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.seg-btn.is-on { background: var(--ink); color: var(--paper); }
.seg-badge {
  font-size: 0.75rem; font-weight: 720; font-variant-numeric: tabular-nums;
  padding: 2px 6px; border-radius: 6px; background: var(--volt-soft); color: var(--volt); white-space: nowrap;
}
.seg-btn.is-on .seg-badge { background: color-mix(in srgb, var(--paper) 18%, transparent); color: var(--paper); }

/* Kaavio */
.chart { margin-top: 22px; }
.chart-cap { font-size: 0.875rem; font-weight: 620; color: var(--ink-2); margin-bottom: 14px; }
.chart-body { display: grid; grid-template-columns: 30px minmax(0, 1fr); height: clamp(210px, 52vw, 290px); }
.y-axis { position: relative; }
.y-axis span {
  position: absolute; right: 8px; transform: translateY(50%);
  font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1;
}
.y-axis .y-unit { bottom: 100% !important; transform: translateY(-6px); }
.plot { position: relative; border-bottom: 1px solid var(--line-strong); }
.grid span { position: absolute; left: 0; right: 0; height: 1px; background: var(--grid); }
.zone { position: absolute; left: 0; right: 0; top: 0; background: var(--limit-zone); transition: bottom .6s var(--ease); }
.limit { position: absolute; left: 0; right: 0; height: 0; border-top: 2px solid var(--limit); z-index: 2; pointer-events: none; }
.y-axis .y-limit {
  right: 5px; padding: 2px 5px; border-radius: 4px;
  background: var(--limit); color: #fff; font-weight: 760;
}
:root[data-theme="dark"] .y-axis .y-limit { color: #0E1524; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .y-axis .y-limit { color: #0E1524; } }
.legend .sw-limit { height: 3px; width: 16px; border-radius: 2px; background: var(--limit); }

.bars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); z-index: 1; }
.bar {
  position: relative; height: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bar:focus-visible { outline: none; }
.bar:focus-visible .stack { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 4px; }
.stack {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(24px, 64%); height: 100%;
  display: flex; flex-direction: column-reverse;
  transition: opacity .2s;
}
.stack > span {
  display: block; flex: none; width: 100%; height: 0;
  box-shadow: inset 0 2px 0 var(--surface);
  transition: height .6s var(--ease);
}
.stack > span.is-zero { box-shadow: none; }
.stack > span.is-top { border-radius: 4px 4px 0 0; }
.seg-muu { background: var(--s-muu); }
.seg-lammitys { background: var(--s-lammitys); }
.seg-sauna { background: var(--s-sauna); }
.seg-varaaja { background: var(--s-varaaja); }
.seg-auto { background: var(--s-auto); }
.over {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: min(24px, 64%); height: 0;
  background: repeating-linear-gradient(135deg, var(--hatch) 0 2.5px, transparent 2.5px 6px);
  border-radius: 4px 4px 0 0;
  pointer-events: none;
  transition: bottom .6s var(--ease), height .6s var(--ease), opacity .2s;
}
.peak-label {
  position: absolute; left: 50%; transform: translate(-50%, -4px);
  font-size: 0.75rem; font-weight: 720; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums;
  opacity: 0; transition: bottom .6s var(--ease), opacity .3s; pointer-events: none;
}
.bar.is-peak .peak-label { opacity: 1; }
.bars:has(.is-hover) .bar:not(.is-hover) .stack,
.bars:has(.is-hover) .bar:not(.is-hover) .over { opacity: .5; }

.tip {
  position: absolute; top: 4px; left: 0; z-index: 5;
  min-width: 196px; max-width: 240px;
  padding: 10px 12px;
  background: var(--ink); color: var(--paper);
  border-radius: 10px; font-size: 0.8125rem; line-height: 1.35;
  opacity: 0; transform: translateY(4px); pointer-events: none;
  transition: opacity .15s, transform .15s;
}
.tip.is-on { opacity: 1; transform: none; }
.tip-h { display: flex; justify-content: space-between; gap: 12px; font-weight: 650; margin-bottom: 6px; }
.tip ul { list-style: none; display: grid; gap: 3px; }
.tip li, .tip-over { display: flex; align-items: center; gap: 7px; }
.tip li span, .tip-over span { margin-left: auto; font-variant-numeric: tabular-nums; padding-left: 10px; }
.tip-over { margin-top: 6px; padding-top: 6px; border-top: 1px solid color-mix(in srgb, var(--paper) 25%, transparent); font-weight: 650; }

.x-axis {
  display: grid; grid-template-columns: repeat(16, minmax(0, 1fr));
  margin-left: 30px; margin-top: 6px;
  font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center;
}

.sw { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 3px; }
.sw-muu { background: var(--s-muu); }
.sw-lammitys { background: var(--s-lammitys); }
.sw-sauna { background: var(--s-sauna); }
.sw-varaaja { background: var(--s-varaaja); }
.sw-auto { background: var(--s-auto); }
.sw-over { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .7) 0 1.6px, transparent 1.6px 4px), #6F7C92; }
.tip .sw { width: 10px; height: 10px; border-radius: 2px; }

.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 0.8125rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }

.table-box { margin-top: 12px; font-size: 0.8125rem; }
.table-box summary { cursor: pointer; color: var(--ink-2); font-weight: 620; padding: 6px 0; width: max-content; }
.table-scroll { overflow-x: auto; margin-top: 6px; }
.table-scroll table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.table-scroll caption { text-align: left; color: var(--muted); padding-bottom: 6px; }
.table-scroll th, .table-scroll td { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.table-scroll th:first-child { text-align: left; }
.table-scroll thead th { color: var(--muted); font-weight: 620; }
.table-scroll tr.is-over { background: var(--limit-zone); }

.r-explain { margin-top: 18px; font-size: 0.96875rem; color: var(--ink-2); }
.r-same { color: var(--ink); font-weight: 620; }
.tips { list-style: none; display: grid; gap: 8px; margin-top: 10px; }
.tips li { position: relative; padding-left: 20px; }
.tips li::before {
  content: ''; position: absolute; left: 2px; top: .55em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--volt);
}

.r-price { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.r-price-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.r-price-title { font-size: 0.875rem; font-weight: 650; }
.price-chips { display: flex; gap: 6px; }
.pchip {
  min-width: 64px; min-height: 40px; padding: 6px 12px;
  border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--surface);
  font-weight: 660; font-size: 0.9375rem; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.pchip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.r-note { margin-top: 10px; font-size: 0.8125rem; color: var(--muted); line-height: 1.5; max-width: 46em; }
.r-foot { margin-top: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

/* --- Faktat --------------------------------------------------------- */

.facts, .soon { padding-block: 40px 56px; }
@media (min-width: 960px) { .facts, .soon { padding-block: 56px 80px; } }
.sec-title {
  font-stretch: 112%; font-weight: 780; letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.4rem); line-height: 1.08;
  margin-bottom: 24px;
}
.fact-grid { display: grid; gap: 0 48px; }
@media (min-width: 720px) { .fact-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .fact-grid { grid-template-columns: repeat(4, 1fr); gap: 0 32px; } }
.fact { border-top: 2px solid var(--ink); padding: 14px 0 26px; }
.fact dt { font-stretch: 116%; font-weight: 780; font-size: 1.3rem; line-height: 1.15; letter-spacing: -0.01em; }
.fact dd { margin-top: 8px; color: var(--ink-2); font-size: 1rem; max-width: 34em; }

/* --- Tulossa -------------------------------------------------------- */

.slots { list-style: none; display: grid; gap: 12px; }
@media (min-width: 720px) {
  .slots { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .slot { grid-column: span 2; }
  .slot:nth-child(4), .slot:nth-child(5) { grid-column: span 3; }
}
.slot {
  display: flex; flex-direction: column;
  padding: 18px 18px 16px;
  border: 1.5px dashed var(--line-strong); border-radius: 16px;
}
.slot h3 { font-stretch: 106%; font-weight: 740; font-size: 1.0625rem; line-height: 1.25; }
.slot p { margin-top: 6px; color: var(--ink-2); font-size: 0.9375rem; flex: 1; }
.slot-tag {
  align-self: flex-start; margin-top: 14px;
  font-size: 0.75rem; font-weight: 700; color: var(--muted);
  padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line);
}

/* --- Laskentatapa ja lähteet ---------------------------------------- */

.more { padding-bottom: 56px; }
.more-box { border-top: 1px solid var(--line-strong); max-width: 820px; }
.more-box:last-child { border-bottom: 1px solid var(--line-strong); }
.more-box summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 0; font-weight: 720; font-size: 1.0625rem; font-stretch: 106%;
}
.more-box summary::-webkit-details-marker { display: none; }
.more-box summary::after {
  content: ''; width: 12px; height: 12px; flex: none;
  background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
              linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat;
  transition: transform .2s;
}
.more-box[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat; }
.more-body { padding-bottom: 22px; color: var(--ink-2); font-size: 0.96875rem; }
.more-body > p { max-width: 42em; }
.more-body ul { margin-top: 10px; padding-left: 1.1em; display: grid; gap: 6px; max-width: 46em; }
.sources a { color: var(--ink); }

/* --- Alatunniste ---------------------------------------------------- */

.site-foot { border-top: 1px solid var(--line); padding-block: 28px 44px; padding-bottom: max(44px, env(safe-area-inset-bottom)); }
.foot-row { display: grid; gap: 6px; font-size: 0.875rem; color: var(--muted); }
.foot-row p { max-width: 60em; }
.foot-row a { color: var(--ink-2); }

@media (hover: hover) {
  .opt:not(.is-selected):hover { border-color: var(--ink-2); }
  .link-btn:hover span { text-decoration: underline; text-underline-offset: 3px; }
  .chip:hover { color: var(--ink); border-color: var(--ink-2); }
  .seg-btn:hover { color: var(--ink); }
  .pchip:hover { border-color: var(--ink-2); }
  .act:hover { background: var(--paper); }
  .act.primary:hover { background: color-mix(in srgb, var(--ink) 88%, var(--paper)); }
  .table-box summary:hover { color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .stack > span, .sw { forced-color-adjust: none; }
}
