/*
 * Důchody.cz — styly nástrojů komponenty (kalkulačky, tabulky, grafy, stránky nástrojů).
 * Barvy se berou z proměnných šablony (--d-*), takže fungují ve světlém i tmavém režimu.
 * Náhradní hodnoty zajišťují použitelnost i v jiné šabloně.
 */

.duchody-widget,
.tool-page {
    --w-surface: var(--d-surface, #fff);
    --w-surface-alt: var(--d-surface-alt, #f8fafc);
    --w-surface-muted: var(--d-surface-muted, #f1f5f9);
    --w-heading: var(--d-heading, #0f172a);
    --w-text: var(--d-text, #334155);
    --w-muted: var(--d-muted, #475569);
    --w-subtle: var(--d-subtle, #64748b);
    --w-border: var(--d-border, #e2e8f0);
    --w-border-strong: var(--d-border-strong, #cbd5e1);
    --w-accent: var(--d-accent, #059669);
    --w-accent-soft: var(--d-accent-soft, #ecfdf5);
    --w-accent-soft-border: var(--d-accent-soft-border, #a7f3d0);
    --w-shadow: var(--d-shadow, 0 4px 6px -1px rgba(0, 0, 0, .07));
    --w-shadow-sm: var(--d-shadow-sm, 0 1px 2px rgba(0, 0, 0, .05));
}

/* ─── Stránka nástroje ─── */
.tool-page { max-width: 52rem; }
.tool-page--wide { max-width: none; }
.tool-page__header { max-width: 46rem; margin-bottom: 2rem; }
.tool-page__header h1 { margin-bottom: 1rem; }
.tool-page__section { margin: 3.5rem 0; }
.tool-page .article__body,
.tool-page > .box,
.tool-page > .article__faq { max-width: 48rem; }
.tool-page .article__body { margin-top: 2.5rem; }
.tool-page > .duchody-widget { margin-bottom: 1.5rem; }

.eyebrow {
    display: block;
    margin-bottom: .75rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--w-accent);
}

/* ─── Karta nástroje ─── */
.dw-card {
    background: var(--w-surface);
    border: 1px solid var(--w-border);
    border-radius: 1rem;
    box-shadow: var(--w-shadow);
    overflow: hidden;
    color: var(--w-text);
}

.dw-card__body { padding: 1.5rem; }
.dw-card__foot { padding: .75rem 1.5rem; border-top: 1px solid var(--d-warning-border, #fde68a); background: var(--d-warning-bg, #fffbeb); font-size: .75rem; color: var(--w-muted); }

@media (min-width: 576px) {
    .dw-card__body { padding: 2rem; }
    .dw-card__foot { padding: .75rem 2rem; }
}

.dw-card .form-label { font-size: .875rem; font-weight: 500; color: var(--w-text); }
.dw-card legend.form-label { float: none; margin-bottom: .5rem; }
.dw-card .form-control, .dw-card .form-select { border-radius: .75rem; }
.dw-card .form-text { font-size: .75rem; color: var(--w-subtle); }
.dw-card .form-range::-webkit-slider-thumb { background: var(--w-accent); }
.dw-card .form-range::-moz-range-thumb { background: var(--w-accent); }

/* ─── Výsledek kalkulačky věku ─── */
.dw-result { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--w-border); }
.dw-placeholder { margin: 0; font-size: .875rem; color: var(--w-subtle); }
.dw-note { font-size: .875rem; color: var(--w-muted); }
.dw-note strong { color: var(--w-heading); }
.dw-link { display: inline-block; margin-top: 1rem; font-size: .875rem; font-weight: 600; }

.dw-figures { display: flex; flex-direction: column; gap: 1.25rem; }
.dw-figures__label { margin: 0 0 .25rem; font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--w-subtle); }
.dw-figures__value { margin: 0; font-size: 1.25rem; font-weight: 600; color: var(--w-heading); }
.dw-figures__value--main { font-size: 1.875rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

@media (min-width: 576px) {
    .dw-figures { flex-direction: row; align-items: center; gap: 2rem; }
    .dw-figures > div + div { padding-left: 2rem; border-left: 1px solid var(--w-border); }
}

.dw-result__past { display: flex; align-items: center; gap: .75rem; }
.dw-check { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--w-accent-soft); color: var(--w-accent); font-weight: 700; }

.dw-timeline { margin: 1.5rem 0 1rem; }
.dw-timeline__track { height: .5rem; border-radius: 1rem; background: var(--w-surface-muted); overflow: hidden; }
.dw-timeline__bar { height: 100%; border-radius: 1rem; background: var(--w-accent); transition: width .6s ease; }
.dw-timeline__labels { display: flex; justify-content: space-between; margin-top: .375rem; font-size: .75rem; color: var(--w-subtle); }

/* ─── Pole s posuvníkem ─── */
.dw-field { margin-bottom: 1.75rem; border: 0; padding: 0; min-width: 0; }
.dw-field__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.dw-field__head small { font-weight: 400; color: var(--w-subtle); }
.dw-field__value { font-size: 1.25rem; font-weight: 700; color: var(--w-heading); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dw-field__scale { display: flex; justify-content: space-between; font-size: .75rem; color: var(--w-subtle); }

/* ─── Volba ze dvou možností ─── */
.dw-choice { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.dw-choice__item { display: flex; flex-direction: column; gap: .125rem; padding: .75rem 1rem; border: 1px solid var(--w-border-strong); border-radius: .75rem; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.dw-choice__item input { position: absolute; opacity: 0; pointer-events: none; }
.dw-choice__item strong { color: var(--w-heading); }
.dw-choice__item small { font-size: .75rem; color: var(--w-subtle); }
.dw-choice__item.is-active { border-color: var(--w-accent); background: var(--w-accent-soft); }
.dw-choice__item:focus-within { outline: 2px solid var(--w-accent); outline-offset: 2px; }

/* ─── Přepínací „pilulky“ ─── */
.dw-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.dw-pills__item { padding: .5rem 1rem; border: 1px solid var(--w-border-strong); border-radius: 50rem; background: var(--w-surface); color: var(--w-muted); font-size: .875rem; font-weight: 500; transition: all .15s ease; }
.dw-pills__item:hover { border-color: var(--w-accent); color: var(--w-accent); }
.dw-pills__item.is-active { border-color: var(--w-accent); background: var(--w-accent); color: #fff; }
[data-bs-theme="dark"] .dw-pills__item.is-active { color: #0a0f1a; }

/* ─── Kalkulačky se souhrnem vpravo ─── */
.dw-split { display: grid; }
.dw-summary { padding: 1.5rem; background: #0f172a; color: #cbd5e1; }
.dw-summary__label { margin: 0 0 .25rem; font-size: .875rem; color: #94a3b8; }
.dw-summary__value { margin: 0 0 1.25rem; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.dw-summary__list { margin: 0 0 1rem; }
.dw-summary__list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-top: 1px solid #1e293b; font-size: .875rem; }
.dw-summary__list dt { font-weight: 400; color: #94a3b8; }
.dw-summary__list dd { margin: 0; font-weight: 600; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dw-summary__note { margin: .5rem 0 0; font-size: .75rem; color: #64748b; }
.dw-summary__note strong { color: #94a3b8; }

@media (min-width: 768px) {
    .dw-split { grid-template-columns: 3fr 2fr; }
    .dw-summary { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
}

/* V úzkém sloupci (postranní panel) vždy pod sebou */
.col-lg-4 .dw-split { grid-template-columns: 1fr; box-shadow: none; }
.col-lg-4 .dw-split .dw-card__body, .col-lg-4 .dw-summary { padding: 1.25rem; }

/* ─── Průvodce výpočtem důchodu ─── */
.dw-steps { display: flex; gap: .5rem; margin: 0; padding: 1.25rem 1.5rem; list-style: none; border-bottom: 1px solid var(--w-border); background: var(--w-surface-alt); counter-reset: none; }
.dw-steps__item { display: flex; align-items: center; gap: .5rem; flex: 1; min-width: 0; font-size: .875rem; color: var(--w-subtle); }
.dw-steps__item:not(:last-child)::after { content: ""; flex: 1; height: 1px; min-width: .5rem; background: var(--w-border-strong); }
.dw-steps__dot { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 1.75rem; height: 1.75rem; padding: 0; border: 1px solid var(--w-border-strong); border-radius: 50%; background: var(--w-surface); color: var(--w-subtle); font-size: .8125rem; font-weight: 600; }
.dw-steps__label { display: none; white-space: nowrap; }
.dw-steps__item.is-current { color: var(--w-heading); font-weight: 600; }
.dw-steps__item.is-current .dw-steps__dot, .dw-steps__item.is-done .dw-steps__dot { border-color: #059669; background: #059669; color: #fff; }
.dw-steps__item.is-current .dw-steps__label { display: inline; }

@media (min-width: 768px) {
    .dw-steps { padding: 1.25rem 2rem; }
    .dw-steps__label { display: inline; }
}

.dw-wizard__nav { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; border-top: 1px solid var(--w-border); background: var(--w-surface-alt); }
@media (min-width: 576px) { .dw-wizard__nav { padding: 1rem 2rem; } }

.dw-import { margin-bottom: 1.25rem; padding: .75rem 1rem; border: 1px dashed var(--w-border-strong); border-radius: .75rem; }
.dw-import summary { font-size: .875rem; font-weight: 600; cursor: pointer; color: var(--w-accent); }
.dw-import[open] summary { margin-bottom: .75rem; }

.dw-years { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem .75rem; max-height: 22rem; overflow-y: auto; padding: .25rem; }
.dw-years__item { display: flex; align-items: center; gap: .5rem; }
.dw-years__item label { width: 2.75rem; font-size: .8125rem; font-weight: 600; color: var(--w-muted); font-variant-numeric: tabular-nums; }

.dw-substitutes { display: grid; grid-template-columns: 1fr auto; gap: .625rem 1rem; align-items: center; }
.dw-substitutes .form-check { margin: 0; grid-column: 1; }
.dw-substitutes__years { grid-column: 2; display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--w-subtle); white-space: nowrap; }
.dw-substitutes__years input { width: 4.5rem; }

.dw-total { padding: 1rem 1.25rem; border-radius: .75rem; background: var(--w-accent-soft); border: 1px solid var(--w-accent-soft-border); }
.dw-total strong { font-size: 1.125rem; color: var(--w-heading); }

.dw-hero-result { margin: -1.5rem -1.5rem 1.5rem; padding: 2rem 1.5rem; background: #0f172a; text-align: center; }
@media (min-width: 576px) { .dw-hero-result { margin: -2rem -2rem 2rem; padding: 2.5rem 2rem; } }
.dw-hero-result__label { margin: 0 0 .5rem; font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; }
.dw-hero-result__value { margin: 0; font-size: clamp(2.5rem, 7vw, 4rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.dw-hero-result__value small { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: #94a3b8; }

.stat-list__total { border-top: 2px solid var(--w-border-strong); }
.stat-list__total dt, .stat-list__total dd { font-weight: 700 !important; color: var(--w-heading) !important; font-size: 1rem !important; }

.dw-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--w-border); }

/* ─── Srovnávací pruhy ─── */
.dw-bars__row { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; margin-bottom: .875rem; font-size: .875rem; }
.dw-bars__row strong { color: var(--w-heading); font-variant-numeric: tabular-nums; }
.dw-bars__track { grid-column: 1 / -1; height: .625rem; border-radius: 1rem; background: var(--w-surface-muted); overflow: hidden; }
.dw-bars__bar { height: 100%; border-radius: 1rem; background: var(--w-accent); transition: width .6s ease; }
.dw-bars__bar--neutral { background: var(--w-border-strong); }

/* ─── Tabulky ─── */
.dw-table-wrap { overflow-x: auto; border: 1px solid var(--w-border); border-radius: 1rem; background: var(--w-surface); box-shadow: var(--w-shadow-sm); }
.dw-table { width: 100%; margin: 0; border-collapse: collapse; font-size: .875rem; color: var(--w-text); }
.dw-table th, .dw-table td { padding: .875rem 1rem; border-bottom: 1px solid var(--w-border); text-align: left; vertical-align: middle; }
.dw-table tbody tr:last-child th, .dw-table tbody tr:last-child td { border-bottom: 0; }
.dw-table thead th { background: var(--w-surface-alt); font-size: .8125rem; font-weight: 600; color: var(--w-muted); white-space: nowrap; }
.dw-table tbody th { font-weight: 600; color: var(--w-heading); }
.dw-table tbody tr:hover { background: var(--w-surface-alt); }
.dw-table small { display: block; font-size: .75rem; font-weight: 400; color: var(--w-subtle); }
.dw-table .text-end { text-align: right; }
.dw-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dw-num.is-up { color: var(--w-accent); font-weight: 600; }
.dw-num.is-down { color: #dc2626; font-weight: 600; }
.dw-num.is-empty { color: var(--w-subtle); }

.dw-panel { margin-bottom: 1.5rem; padding: 1.5rem; background: var(--w-surface); border: 1px solid var(--w-border); border-radius: 1rem; box-shadow: var(--w-shadow-sm); }
.dw-panel > :last-child { margin-bottom: 0; }
.dw-panel .dw-table-wrap { box-shadow: none; }
@media (min-width: 576px) { .dw-panel { padding: 2rem; } }

.dw-chart { position: relative; width: 100%; }
.dw-fallback { max-height: 20rem; overflow: auto; font-size: .875rem; }

/* ─── Tabulka fondů ─── */
.dw-funds__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.dw-funds__search { max-width: 20rem; border-radius: 50rem; padding: .5rem 1rem; font-size: .875rem; }
.dw-table--funds { min-width: 56rem; }
.dw-funds__name { color: var(--w-heading); font-weight: 600; }
.dw-funds__name:hover { color: var(--w-accent); text-decoration: none; }
.dw-table--funds .badge { margin: .25rem .25rem 0 0; font-size: .6875rem; }
.dw-table--funds tr.is-selected { background: var(--w-accent-soft); }
.dw-funds__actions { white-space: nowrap; }
.dw-funds__actions .btn { --bs-btn-padding-y: .375rem; --bs-btn-padding-x: .75rem; --bs-btn-font-size: .8125rem; }

.dw-sort { display: inline-flex; align-items: center; gap: .375rem; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; white-space: nowrap; }
.dw-sort span { font-size: .625rem; opacity: .5; }
.dw-sort:hover, .dw-sort.is-active { color: var(--w-accent); }
.dw-sort.is-active span { opacity: 1; }

.dw-type { display: inline-block; padding: .125rem .625rem; border: 1px solid transparent; border-radius: 50rem; font-size: .75rem; font-weight: 500; white-space: nowrap; }
.dw-type--konzervativni { background: var(--d-info-bg, #eff6ff); border-color: var(--d-info-border, #bfdbfe); color: #3b82f6; }
.dw-type--vyvazeny { background: var(--d-warning-bg, #fffbeb); border-color: var(--d-warning-border, #fde68a); color: #d97706; }
.dw-type--dynamicky { background: var(--w-accent-soft); border-color: var(--w-accent-soft-border); color: var(--w-accent); }

.dw-empty { padding: 3rem 1.5rem; border: 1px dashed var(--w-border-strong); border-radius: 1rem; text-align: center; color: var(--w-muted); }

.dw-compare-bar { position: sticky; bottom: 1rem; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding: .75rem 1rem .75rem 1.25rem; border-radius: 1rem; background: #0f172a; color: #cbd5e1; box-shadow: 0 10px 25px rgba(0, 0, 0, .25); font-size: .875rem; }
.dw-compare-bar strong { color: #fff; }
.dw-compare-bar__actions { display: flex; gap: .5rem; }
.dw-compare-bar .btn-ghost { --bs-btn-color: #cbd5e1; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #1e293b; }

.dw-modal { position: fixed; inset: 0; z-index: 1080; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(2, 6, 23, .6); }
.dw-modal__dialog { width: 100%; max-width: 56rem; max-height: calc(100vh - 2rem); overflow: auto; padding: 1.5rem; border-radius: 1rem; background: var(--w-surface); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.dw-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }

.dw-affiliate-note { margin: .75rem 0 0; font-size: .75rem; color: var(--w-subtle); }

/* ─── Detail fondu, kraje, ročníky ─── */
.dw-stars { font-size: 1.75rem; line-height: 1; letter-spacing: .125rem; color: var(--w-border-strong); }
.dw-stars .is-on { color: #f59e0b; }

.region-card { display: flex; flex-direction: column; height: 100%; padding: 1rem 1.25rem; border: 1px solid var(--w-border); border-radius: .875rem; background: var(--w-surface); box-shadow: var(--w-shadow-sm); color: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
.region-card:hover { border-color: var(--w-accent-soft-border); box-shadow: var(--w-shadow); text-decoration: none; color: inherit; }
.region-card__name { font-size: .875rem; color: var(--w-muted); }
.region-card__value { font-size: 1.375rem; font-weight: 700; color: var(--w-heading); font-variant-numeric: tabular-nums; }
.region-card__diff { font-size: .75rem; font-weight: 500; }
.region-card__diff.is-up { color: var(--w-accent); }
.region-card__diff.is-down { color: #dc2626; }

.chip-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.chip-list a { display: inline-block; padding: .375rem .875rem; border: 1px solid var(--w-border); border-radius: 50rem; background: var(--w-surface); color: var(--w-text); font-size: .875rem; }
.chip-list a:hover { border-color: var(--w-accent); color: var(--w-accent); text-decoration: none; }

/* ─── Tisk výsledku kalkulačky ─── */
@media print {
    .site-header, .site-footer, .site-breadcrumbs, .site-sidebar, .dw-wizard__nav, .skip-link { display: none !important; }
    .dw-card { border: 0; box-shadow: none; }
    .dw-hero-result { background: none; }
    .dw-hero-result__label, .dw-hero-result__value small { color: #475569; }
    .dw-hero-result__value { color: #0f172a; }
}

/* Posun při skoku na kalkulačku pod přilepenou hlavičku */
.dw-wizard { scroll-margin-top: 5rem; }

/* ─── Newsletter ─── */
.dw-newsletter { max-width: 36rem; margin: 0 auto; text-align: center; }
.dw-newsletter .lead { margin-bottom: 1.75rem; }
.dw-newsletter__form { display: flex; flex-direction: column; gap: .75rem; max-width: 28rem; margin: 0 auto; }
.dw-newsletter__form .form-control { flex: 1; min-width: 0; border-radius: .75rem; }
.dw-newsletter__form .btn { border-radius: .75rem; white-space: nowrap; }
.dw-newsletter__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dw-newsletter__note { margin: 1rem 0 0; font-size: .75rem; color: var(--d-subtle, #64748b); }
@media (min-width: 576px) { .dw-newsletter__form { flex-direction: row; } }
.module-card .dw-newsletter { text-align: left; }
.module-card .dw-newsletter__form { flex-direction: column; }

/* ─── Mapa krajů ─── */
.dw-map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 2rem; align-items: start; }
.dw-map { padding: 1.5rem; border: 1px solid var(--d-border, #e2e8f0); border-radius: 1rem; background: var(--d-surface, #fff); box-shadow: var(--d-shadow-sm, 0 1px 2px rgba(0, 0, 0, .05)); }
.dw-map svg { display: block; width: 100%; height: auto; overflow: visible; }

.dw-map__region path { stroke: var(--d-surface, #fff); stroke-width: 2; stroke-linejoin: round; transition: fill .15s ease; }
.dw-map__region--1 path, .dw-map__scale .dw-map__region--1 { fill: #d1fae5; background: #d1fae5; }
.dw-map__region--2 path, .dw-map__scale .dw-map__region--2 { fill: #a7f3d0; background: #a7f3d0; }
.dw-map__region--3 path, .dw-map__scale .dw-map__region--3 { fill: #6ee7b7; background: #6ee7b7; }
.dw-map__region--4 path, .dw-map__scale .dw-map__region--4 { fill: #10b981; background: #10b981; }
.dw-map__region--5 path, .dw-map__scale .dw-map__region--5 { fill: #047857; background: #047857; }
.dw-map__region:hover path, .dw-map__region:focus-visible path, .dw-map__region.is-active path { fill: #f59e0b; }
.dw-map__region:focus-visible { outline: none; }
.dw-map__region:focus-visible path { stroke: #0f172a; stroke-width: 3; }

.dw-map__label { pointer-events: none; text-anchor: middle; }
.dw-map__name { font-size: 15px; font-weight: 500; fill: #065f46; }
.dw-map__value { font-size: 21px; font-weight: 700; fill: #0f172a; font-variant-numeric: tabular-nums; }
.dw-map__label--4 .dw-map__name, .dw-map__label--5 .dw-map__name { fill: #d1fae5; }
.dw-map__label--4 .dw-map__value, .dw-map__label--5 .dw-map__value { fill: #fff; }
.dw-map__label.is-active .dw-map__name, .dw-map__label.is-active .dw-map__value { fill: #0f172a; }
.dw-map__label--small .dw-map__name { font-size: 13px; }
.dw-map__label--small .dw-map__value { font-size: 15px; }

.dw-map__legend { display: flex; align-items: center; justify-content: flex-end; gap: .625rem; margin: 1rem 0 0; font-size: .75rem; color: var(--d-subtle, #64748b); }
.dw-map__scale { display: inline-flex; border-radius: .25rem; overflow: hidden; }
.dw-map__scale span { width: 1.75rem; height: .625rem; }

.dw-map-list { margin: 0; padding: .5rem; list-style: none; border: 1px solid var(--d-border, #e2e8f0); border-radius: 1rem; background: var(--d-surface, #fff); box-shadow: var(--d-shadow-sm, 0 1px 2px rgba(0, 0, 0, .05)); font-size: .875rem; }
.dw-map-list a { display: grid; grid-template-columns: 1.75rem 1fr auto; gap: 0 .5rem; align-items: baseline; padding: .4375rem .75rem; border-radius: .5rem; color: var(--d-text, #334155); }
.dw-map-list a:hover, .dw-map-list li.is-active a { background: var(--d-accent-soft, #ecfdf5); text-decoration: none; }
.dw-map-list__rank { color: var(--d-subtle, #64748b); font-variant-numeric: tabular-nums; }
.dw-map-list__name { font-weight: 500; color: var(--d-heading, #0f172a); }
.dw-map-list__value { font-weight: 700; color: var(--d-heading, #0f172a); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dw-map-list__diff { grid-column: 2 / -1; font-size: .75rem; }
.dw-map-list__diff.is-up { color: var(--d-accent, #059669); }
.dw-map-list__diff.is-down { color: #dc2626; }

/* Malý kraj (Praha): do obrysu se vejde jen hodnota, název je v seznamu vedle mapy */
.dw-map__label--small .dw-map__name { display: none; }
.dw-map__label--small .dw-map__value { font-size: 14px; }

/* Seznam vedle mapy: jeden řádek na kraj, aby byl stejně vysoký jako mapa */
.dw-map-wrap { grid-template-columns: minmax(0, 1fr) 24rem; align-items: stretch; }
.dw-map-list { display: flex; flex-direction: column; justify-content: space-between; }
.dw-map-list a { grid-template-columns: 1.5rem 1fr auto 4.25rem; padding: .3125rem .625rem; }
.dw-map-list__diff { grid-column: auto; text-align: right; white-space: nowrap; }
