/* kvartali.css — страници „Цени по квартали“ (/kvartali/ и /kvartali/<район>/); допълва app.css */
.kv-head { padding-bottom: 4px; }
.kv-head h1 { max-width: 22ch; }
.kv-head .lead { font-size: 18px; color: var(--ink-2); max-width: 72ch; }
.kv-head .lead b { color: var(--ink); }
.kv-thin { background: var(--parcel-soft); border-left: 4px solid var(--parcel); padding: 14px 18px; border-radius: 0 var(--r-md) var(--r-md) 0; }
.kv-stats { grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); }
.kv-stats .stat b { font-size: 21px; }
.kv-body { max-width: 960px; }
.kv-sec { margin-top: 46px; scroll-margin-top: 84px; }
.kv-sec > h2 { font-size: clamp(21px, 2.4vw, 28px); padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 16px; }
.kv-sec .prose ul { margin: 0 0 1em; }
.kv-sec .tbl-wrap { margin: 14px 0 6px; }
.kv-sec .tbl small { font-size: 12px; }
.tbl.kv-small th, .tbl.kv-small td { padding: 7px 9px; white-space: nowrap; }
.kv-chart { margin: 16px 0 10px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 14px 8px; overflow-x: auto; }
.kv-chart svg { display: block; width: 100%; min-width: 440px; height: auto; }
.kv-chart text { font: 500 12.5px var(--body); fill: var(--ink-2); }
.kv-chart .ta, .kv-chart .tc { font-size: 13px; }
.kv-chart .ax { stroke: var(--grid); stroke-width: 1; }
.kv-chart .ax0 { stroke: var(--ink-3); }
.kv-chart .la { fill: none; stroke: var(--survey); stroke-width: 2.8; stroke-linejoin: round; stroke-linecap: round; }
.kv-chart .lc { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-dasharray: 6 4; }
.kv-chart .da { fill: var(--sheet); stroke: var(--survey); stroke-width: 2.2; }
.kv-chart .dc { fill: var(--ink); }
.kv-chart .ta { fill: var(--survey); font-weight: 700; }
.kv-chart .tc { fill: var(--ink); font-weight: 600; }
.kv-chart .kv-b { fill: #B8CBC2; }
.kv-chart .kv-b.m { fill: var(--parcel); stroke: var(--ink); stroke-width: 1; }
.kv-chart .cm { stroke: var(--survey); stroke-width: 2; stroke-dasharray: 4 3; }
.kv-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); margin: 8px 4px 2px; padding: 0; list-style: none; }
.kv-legend i { display: inline-block; width: 22px; height: 0; border-top: 3px solid var(--survey); vertical-align: middle; margin-right: 6px; }
.kv-legend i.c { border-top: 2px dashed var(--ink); }
.kv-legend i.b { width: 14px; height: 11px; border: 1px solid var(--ink); background: var(--parcel); }
.kv-legend i.g { width: 14px; height: 11px; border: 0; background: #B8CBC2; }
.kv-tagline { margin: 16px 0 0; font-size: 15px; }
.kv-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 8px 0 4px; }
.kv-tags li { font-size: 13px; border: 1px solid var(--line); background: var(--paper-2); border-radius: 999px; padding: 3px 11px; }
.kv-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.kv-facts li { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.kv-facts b { display: block; font: 600 19px var(--display); color: var(--ink); margin-bottom: 2px; }
.kv-src { margin-top: 30px; border-top: 1px dashed var(--line); padding-top: 12px; }
.kv-cap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tbl.kv-sort { position: relative; }
.tbl.kv-sort th { white-space: nowrap; vertical-align: bottom; }
.tbl.kv-sort th button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--ink-2); }
.tbl.kv-sort th button:hover { color: var(--ink); }
.tbl.kv-sort th button:focus-visible { outline: 2px solid var(--survey); outline-offset: 2px; border-radius: 3px; }
.tbl.kv-sort th button::after { content: '↕'; font-size: 11px; color: var(--ink-3); }
.tbl.kv-sort th[aria-sort="ascending"] button::after { content: '▲'; color: var(--survey); }
.tbl.kv-sort th[aria-sort="descending"] button::after { content: '▼'; color: var(--survey); }
.tbl.kv-sort td:first-child { white-space: nowrap; }
@media (max-width: 560px) {
  .kv-head .lead { font-size: 16px; }
  .kv-thin { padding: 12px 14px; }
  .kv-stats { grid-template-columns: 1fr 1fr; }
  .kv-stats .stat { padding: 12px; }
  .kv-stats .stat b { font-size: 16px; white-space: nowrap; }
  .kv-chart { padding: 10px 8px 6px; }
}
.kv-sec .tbl td.r, .kv-nw { white-space: nowrap; }
