/* The price pages (/qiymetler, /qiymet-indeksi, /qiymet-dusdu and /ru/ twins):
   functions/_qiymet_pages.js fills qiymetler.html / ru/qiymetler.html. The
   kit (evnet-ui.css) gives hero, sections, chips, callouts; cards come from
   style.css (.listing-card). This file is the figures, tables and the chart. */

.qiymet-page { background: #fff; }
.qiymet-page main { min-height: 60vh; }

.qm-hero .ev-wrap { max-width: 1100px; }
.qm-h1 { margin: 0 0 10px; font: 700 clamp(1.5rem, 4.4vw, 2.4rem)/1.15 var(--ev-f-display); color: var(--ev-ink); letter-spacing: -.01em; overflow-wrap: anywhere; }
.qm-lead { margin: 0 0 22px; max-width: 46em; }
.qm-h2 { margin: 0; font: 700 clamp(1.15rem, 3vw, 1.5rem)/1.25 var(--ev-f-display); color: var(--ev-ink); }
.qm-h3 { margin: 0 0 12px; font: 700 1rem/1.3 var(--ev-f-display); color: var(--ev-ink); }
.qm-sec-head { display: grid; gap: 6px; margin-bottom: 16px; }
.qm-muted { margin: 0; color: var(--ev-ink-3); font-size: .92rem; line-height: 1.5; }
.qm-updated { margin-top: 18px; font-family: var(--ev-f-mono); font-size: .76rem; }

/* ── figure tiles ───────────────────────────────────────────────────── */
.qm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 12px; }
.qm-tiles--trend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qm-tile {
  display: grid; gap: 4px; align-content: start; min-width: 0;
  padding: 14px 16px; border-radius: var(--ev-r-md);
  background: #fff; box-shadow: inset 0 0 0 1px var(--ev-line), var(--ev-shadow-1);
}
.qm-tile-l { font: 600 .7rem/1.3 var(--ev-f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ev-ink-3); }
.qm-tile-v { font: 700 clamp(1.2rem, 3.4vw, 1.6rem)/1.15 var(--ev-f-display); color: var(--ev-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.qm-tile-s { font-size: .82rem; color: var(--ev-ink-3); line-height: 1.35; }
.qm-tile--main { background: var(--ev-mist); box-shadow: inset 0 0 0 1.5px var(--ev-tif); }
.qm-tile--main .qm-tile-v { color: var(--ev-lagoon); }
.qm-tile--up .qm-tile-v { color: var(--ev-danger); }
.qm-tile--down .qm-tile-v { color: var(--ev-ok); }
.qm-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ── tables ─────────────────────────────────────────────────────────── */
.qm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--ev-r-md); box-shadow: inset 0 0 0 1px var(--ev-line); }
.qm-table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.qm-table th, .qm-table td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--ev-line); white-space: nowrap; }
.qm-table th:first-child { text-align: left; }
.qm-table thead th { font: 600 .7rem/1.3 var(--ev-f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ev-ink-3); background: var(--ev-mist); }
.qm-table tbody tr:last-child th, .qm-table tbody tr:last-child td { border-bottom: 0; }
.qm-table tbody th a { color: var(--ev-tif-text); font-weight: 600; text-decoration: none; }
.qm-table tbody th a:hover { text-decoration: underline; }

/* ── chart ──────────────────────────────────────────────────────────── */
.qm-chart { max-width: 680px; margin: 8px 0 0; padding: 12px; border-radius: var(--ev-r-md); background: #fff; box-shadow: inset 0 0 0 1px var(--ev-line); }
.qm-chart svg { display: block; width: 100%; height: auto; }
.qm-gridline { stroke: var(--ev-line); stroke-width: 1; }
.qm-axis { font: 500 13px var(--ev-f-mono); fill: var(--ev-ink-3); }
.qm-line { fill: none; stroke: var(--ev-tif-2); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.qm-dot { fill: #fff; stroke: var(--ev-lagoon); stroke-width: 2.5; }

/* ── index: movers, method, citation ────────────────────────────────── */
.qm-movers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qm-movers li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-bottom: 8px; border-bottom: 1px dashed var(--ev-line); }
.qm-movers li:last-child { border-bottom: 0; }
.qm-movers a { color: var(--ev-ink); font-weight: 600; text-decoration: none; }
.qm-movers a:hover { color: var(--ev-tif-text); }
.qm-chg { font: 700 .95rem/1 var(--ev-f-mono); }
.qm-chg--up { color: var(--ev-danger); }
.qm-chg--down { color: var(--ev-ok); }
.qm-code { margin: 0 0 10px; padding: 14px 16px; border-radius: var(--ev-r-sm); background: var(--ev-ink); color: #e6f7f5; font: 500 .8rem/1.5 var(--ev-f-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.qm-press { margin-top: 28px; }
.qm-press + .qm-sec-head { margin-top: 28px; }
.qm-press p { margin: 0; color: var(--ev-ink-2); line-height: 1.6; }
.qm-chips { list-style: none; margin: 0 0 8px; padding: 0; }
.qm-cross { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ── price drops ────────────────────────────────────────────────────── */
.qm-drops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.qm-drop { position: relative; min-width: 0; display: flex; flex-direction: column; }
.qm-drop .listing-card { min-width: 0; }
.qm-drop-badge {
  display: inline-block; margin-right: 6px; padding: 4px 9px; border-radius: 999px;
  background: var(--ev-amber); color: var(--ev-ink);
  font: 700 .82rem/1 var(--ev-f-mono);
}
.qm-drop-was { margin: 0 2px 10px; font-size: .9rem; line-height: 1.6; color: var(--ev-ink-2); }
.qm-drop-was s { color: var(--ev-ink-3); }
.qm-drop-date { display: block; font-size: .8rem; color: var(--ev-ink-3); }
.qm-grid .listing-card { min-width: 0; }

/* footer: same as the broker page's (ui-makler.css .mk-footer), so long RU
   link names wrap instead of widening the page */
.qm-footer.footer { padding-top: 0; margin-top: clamp(24px, 5vw, 56px); }
.qm-footer .footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.qm-footer .footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }

@media (max-width: 900px) {
  .qm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qm-drops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .qm-tiles--trend { grid-template-columns: minmax(0, 1fr); }
  .qm-drops, .qm-grid.listings-grid { grid-template-columns: minmax(0, 1fr); }
  .qm-table th, .qm-table td { padding: 9px 10px; font-size: .86rem; }
  .qm-tile { padding: 12px; }
}
