/* What a generic category page adds to calculator.css: any number of questions, and specs with their sources. */
.cat-page .ask .calc-label { line-height: 22px; padding-top: 13px; }
.cat-page .ask .opts { flex-wrap: wrap; }
/* A form with a label word that can't break (`Nõudekomplekte`) gets a wider label column on phones, in every row so they line up. */
@media (max-width: 767px) { .cat-page .ask.ask-long-word .calc-row { grid-template-columns: 136px minmax(0, 1fr); column-gap: 10px; } }
@media (max-width: 359px) {
  .cat-page .ask.ask-long-word .calc-row { grid-template-columns: 132px minmax(0, 1fr); column-gap: 8px; }
  /* At 320 the option column is too narrow for a note (4 lines): it takes the row's full width, so Arvuta stays on the first screen. */
  .cat-page .ask.ask-long-word .calc-note { grid-column: 1 / -1; }
}
.calc-rule + .calc-rule { border-top: 0; padding-top: 0; }
.row-nums .num-with-extra { flex-wrap: wrap; column-gap: 16px; row-gap: 0; }
.num-with-extra .num-label { flex: 1 1 0; min-width: 0; }
.num-extra { flex-basis: 100%; margin: 0; }
.cat-source { display: flex; align-items: center; min-height: 44px; margin-top: -8px; color: var(--ink); font-size: 14px; text-decoration: none; }
.cat-source-note { padding-bottom: 6px; font-size: 13px; line-height: 18px; }
.cat-offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 12px; color: var(--ink); }
.cat-offer .row-buy { display: flex; align-items: center; min-width: 44px; min-height: 44px; text-decoration: none; }
.cat-offer-note { flex-basis: 100%; padding-bottom: 6px; color: var(--muted); font-size: 13px; line-height: 18px; }
.cat-label-note { margin-top: 6px; }
.cat-model-note { font-weight: 600; }
/* Air-to-water: no lead, rows in groups by output. */
.grouped-lead { font-size: clamp(24px, 7vw, 28px); line-height: 1.15; letter-spacing: -0.022em; text-wrap: balance; }
.grouped-text { margin-top: 8px; font-size: 15px; line-height: 21px; color: var(--muted); text-wrap: pretty; }
.grouped-lead + .grouped-text { margin-top: 10px; }
.grouped-price { font-weight: 600; text-wrap: pretty; }
/* Card #114: one quiet block over the rows, only what the price leaves out in ink. */
.grouped-price-first { color: var(--ink); }
.grouped-price-quiet a { display: inline-block; margin: -12px 0; padding: 12px 0; color: inherit; text-underline-offset: 2px; }
.grouped-price a { display: inline-block; margin: -12px 0; padding: 12px 0; color: inherit; text-underline-offset: 2px; }
/* Air-to-water's power filter: the sort's segmented control (.seg), one row even on a phone so the first row stays in sight. */
.kw-seg { margin: 4px 0 0; }
/* The filter's 46 px come out of the space around it, so the first row stays on a 390 x 844 screen (cat-ohk-vesi.spec.js). */
.cat-grouped .all-head { padding-top: 16px; }
.cat-grouped [data-groups] > .group:first-child { padding-top: 0; }
@media (max-width: 480px) { .kw-seg { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } .kw-seg .opt > span { padding: 4px; } }
.cat-grouped .group-title { padding-bottom: 8px; font-size: 19px; line-height: 24px; letter-spacing: -0.01em; }
.cat-grouped .row-name { margin: 0; }
.row-code { white-space: nowrap; }
.row-nums .num-code .num-value { white-space: normal; } /* A long code wraps at its spaces at 320, never inside a part. */
.row-hot-none .row-figure { font-weight: 400; }
.grouped-missing-list { margin: 10px 0 0; padding: 0; list-style: none; font-size: 15px; line-height: 21px; color: var(--muted); }
.grouped-missing-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.grouped-missing-list strong { display: block; font-weight: 600; color: var(--ink); }
@media (min-width: 768px) {
  .cat-page .ask { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .cat-page .ask .calc-label { padding-top: 0; }
  .cat-grouped .ask { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grouped-lead { font-size: 40px; line-height: 1.08; letter-spacing: -0.028em; }
  .grouped-text { font-size: 17px; line-height: 24px; }
  .cat-grouped .group-title { font-size: 24px; line-height: 30px; padding-bottom: 12px; }
  .grouped-missing-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
/* calculator.css puts three questions and the button on one row here. A category can have more questions, so they keep their own row. */
@media (min-width: 980px) {
  .cat-page .calc-form { display: block; } /* From the first paint, so nothing jumps when the list comes (#166). Without JavaScript noscript.css hides it under its noscript line. */
  .cat-page .ask { display: grid; }
  .cat-page .ask .calc-row, .cat-page .ask .calc-row:last-child { grid-row: auto; grid-column: auto; }
  .cat-page .calc-form::before { content: none; }
  .cat-page .calc-go { width: 280px; height: 56px; margin-top: 24px; font-size: 19px; }
  .cat-page .result { margin-top: 40px; border-top: 1px solid var(--line); }
  .cat-page .row-panel { grid-template-columns: minmax(0, 1fr) 556px; }
  /* Air-to-water (card #114): the mark under the name, out of the heading. #140's three equal right-set columns, euros
     ending under each other, wide enough for every figure, and hot water as a fourth, only on these rows. Every other category keeps the three. */
  .cat-grouped .row-rest { grid-template-columns: minmax(0, 1fr) 680px 16px; grid-template-areas: "name figures ." "mark figures ."; }
  .cat-grouped .row-rest > .row-rough-mark { grid-area: mark; }
  /* 176 px: the widest heating figure at real answers (`22 431 kuni 26 745€`, 400 m², old, 55 °C, 50 s) is 169 px. */
  .cat-grouped .row-figures:not(.lead-figures) { grid-template-columns: repeat(3, 176px) 116px; column-gap: 12px; }
}

/* The model pages, one more tap down: plain links, one a line. */
.cat-model-fold > summary { display: flex; align-items: center; column-gap: 6px; min-height: 44px; font-size: 15px; cursor: pointer; list-style: none; }
.cat-model-fold > summary::-webkit-details-marker { display: none; }
.cat-model-fold[open] > summary .calc-chevron { transform: rotate(90deg); }
.cat-model-links { margin: 0; padding: 0; list-style: none; }
.cat-model-links a { display: inline-block; padding: 12px 0; line-height: 20px; }

/* A source most specs share: one line after the specs, not one under each. */
.row-nums > dl { margin: 0; }
.cat-sources .cat-source { margin-top: 0; }

/* Real use beside the label (card #124): each source its own 44 px row, as `.calc-sources a`. */
.real-sources { display: flex; flex-wrap: wrap; column-gap: 24px; font-size: 14px; }
.real-sources a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }

/* The boiler's size and mounting over the list (Tarvo, 2026-11-08): the sort's segmented control (.seg), one per filter. */
.list-filters { padding-top: 20px; }
.list-filters .wrap { display: flex; flex-direction: column; align-items: flex-start; row-gap: 16px; }
.list-filters .calc-label { font-size: 15px; line-height: 20px; color: var(--muted); }
.list-filter { display: flex; flex-direction: column; align-items: flex-start; row-gap: 8px; max-width: 100%; }
@media (max-width: 480px) {
  .list-filter { width: 100%; }
  .list-seg-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .list-seg-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) { .list-filters { padding-top: 28px; } .list-filters .wrap { flex-direction: row; flex-wrap: wrap; column-gap: 32px; } }
/* No model under these answers: said plainly, and the nearest choices as buttons. */
.list-empty { flex-basis: 100%; }
.list-empty[hidden] { display: none; }
.list-empty-text { font-size: 17px; line-height: 24px; color: var(--ink); text-wrap: pretty; }
.list-empty-ways, .lead-ways { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lead-ways[hidden] { display: none; }
.list-way {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid #86868b; border-radius: 6px;
  background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; text-align: left; cursor: pointer;
}
@media (hover: hover) { .list-way:hover { background: var(--soft); } .band-dark .list-way:hover { background: #2c2c2e; } }
.list-way:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* A class letter's plain words beside it (Tarvo, 2026-11-08): quieter than the letter, and they wrap on a narrow phone. */
.num-plain { color: var(--muted); }
.row-nums .num-value:has(.num-plain) { min-width: 0; white-space: normal; }
