/*!
 * © 2026 Kde je MHD (kdejemhd.sk). Všetky práva vyhradené. All rights reserved.
 * Kód a dizajn tejto stránky sú autorským dielom prevádzkovateľa. Ich kopírovanie, šírenie,
 * úprava alebo použitie na iných stránkach či v aplikáciách bez písomného súhlasu je zakázané.
 * Copying, redistribution, modification or reuse without written permission is prohibited.
 */
/* Kde je MHD — "Moja ulica" (src/street/render.js, public/street.js): the city's list of water,
   hot-water and road notices, and one street's answer. Someone worried about tomorrow morning:
   the answer first, in plain words; then when, what and where at a glance.
   Three families carry a hue of their own here — water, hot water and heating, the road — because
   these pages show no vehicle: the colours of the transport modes and of delay are not in play.
   The hue sits on small marks (the chips, the map's signs, the legend); text stays ink. */

.st-doc {
    max-width: 1120px;
    --st-water: #0b6c80;
    --st-hot: #b4401a;
    --st-road: var(--ink);
    --st-tint: 11%;
}
:root[data-theme="dark"] .st-doc { --st-water: #5cc3d6; --st-hot: #ff986a; --st-tint: 18%; }
.st-doc [data-f="water"] { --f: var(--st-water); }
.st-doc [data-f="hot"] { --f: var(--st-hot); }
.st-doc [data-f="road"] { --f: var(--st-road); }
.st-doc .page-head { margin-bottom: 4px; }
.st-doc .lede { max-width: 50ch; }

/* a kind, drawn in its family's colour on a tint of it */
.st-chip {
    display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px;
    border-radius: 9px; background: color-mix(in srgb, var(--f) var(--st-tint), var(--paper)); color: var(--f);
}
.st-chip[data-f="road"] { background: var(--ink); color: var(--paper); }
.st-ico { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ── The search ─────────────────────────────────────────────────── */
.st-find {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 8.5em auto; gap: 10px; align-items: end;
    max-width: 720px; margin-top: 26px; padding: 14px; border-radius: var(--r-panel);
    background: var(--ground);
}
.st-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.st-qwrap { display: block; position: relative; }
.st-field label, .st-noform label { font-size: 14px; font-weight: 600; }
.st-field input, .st-noform input {
    width: 100%; min-height: 52px; padding: 10px 14px;
    border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); border-radius: var(--r-ctl);
    background: var(--paper); color: var(--ink); font: 500 18px/1.2 var(--font);
    caret-color: var(--focus); transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
/* the magnifier in the street's field */
.st-f-street input {
    padding-left: 44px;
    background: var(--paper) no-repeat 14px 50% / 20px 20px
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6270' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .st-f-street input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5adb9' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E");
}
.st-field input::placeholder, .st-noform input::placeholder { color: var(--ink-3); font-weight: 400; }
.st-field input:focus-visible, .st-noform input:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.st-field input[type="search"]::-webkit-search-cancel-button { display: none; }
.st-go {
    min-height: 52px; padding: 0 24px; border: 0; border-radius: var(--r-ctl);
    background: var(--ink); color: var(--paper); font: 600 17px/1 var(--font); cursor: pointer;
    transition: background-color 160ms var(--ease), transform 120ms var(--ease);
}
.st-go:hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); }
.st-go:active { transform: scale(0.98); }
.st-go:focus-visible, .st-act:focus-visible, .st-list li:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.st-list {
    /* as wide as the whole form, just under the street's field */
    position: absolute; left: 0; right: 0; z-index: 40; translate: 0 6px;
    max-height: min(60vh, 380px); overflow-y: auto; margin: 0; padding: 6px 0;
    border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--paper); box-shadow: var(--shadow);
}
.st-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 14px; cursor: pointer; font-size: 17px; }
.st-list li small { flex: none; font-size: 14px; color: var(--ink-2); }
.st-list li:hover, .st-list li.is-on { background: var(--ground); }
.st-list li.is-empty { cursor: default; color: var(--ink-2); }
.st-list li.is-empty:hover { background: none; }
.st-found { margin-top: 22px; max-width: 720px; }
.st-h3 { margin: 0 0 8px; font: 600 17px/1.3 var(--font) !important; }
.st-found li { padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 17px; }
.st-found li small { margin-left: 6px; color: var(--ink-2); font-size: 14px; }

/* ── The city's list and its map ────────────────────────────────── */
.st-city { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 0 48px; margin-top: 52px !important; }
.st-city h2 { margin-bottom: 2px; }
.st-read { margin-top: 4px; font-size: 14px; color: var(--ink-2); }

/* the legend that counts: what the next two weeks hold, and the colours of the map */
.st-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.st-legend { gap: 6px 20px !important; }
.st-leg, .st-leg-a { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.doc-body a.st-leg-a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); text-underline-offset: 4px; }
.doc-body a.st-leg-a:hover { text-decoration-color: currentColor; }
.st-leg .st-chip { width: 26px; height: 26px; border-radius: 8px; }
.st-leg .st-ico { width: 17px; height: 17px; }
.st-leg b { font-weight: 700; font-variant-numeric: tabular-nums; }
.st-leg[data-zero] { opacity: 0.55; }

.st-mapbox { position: sticky; top: 78px; align-self: start; padding-top: 8px; }
.st-map {
    height: min(640px, calc(100vh - 110px)); overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--ground); isolation: isolate;
}
.st-map .leaflet-bar { border: 1px solid var(--line); border-radius: var(--r-ctl); box-shadow: var(--shadow); overflow: hidden; }
.st-map .leaflet-bar a { background: var(--paper); color: var(--ink); border-bottom-color: var(--line); }

/* a day: the day itself large, its date beside it */
.st-day { margin-top: 40px !important; }
.st-day h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 40%, transparent); }
.st-day h3 span { font: 700 26px/1.1 var(--font-cond); letter-spacing: 0.005em; }
.st-day h3 span::first-letter { text-transform: uppercase; }
.st-day h3 small { font-size: 15px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.st-day.is-now h3 span { color: var(--st-hot); }
.st-quiet {
    display: flex; align-items: center; gap: 10px; margin-top: 16px !important;
    color: var(--ink) !important; font-size: 20px !important; font-weight: 600; line-height: 1.3; text-wrap: balance;
}
.st-quiet svg { flex: none; width: 26px; height: 26px; }
.st-quiet svg circle { fill: var(--ink); }
.st-quiet svg path { fill: none; stroke: var(--paper); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.st-none { margin-top: 18px; font-size: 17px; color: var(--ink-2); }

/* one notice: when, what, where, whose */
.st-rows { margin: 0; padding: 0; list-style: none; }
.st-rows > li {
    display: grid; grid-template-columns: 8.2em minmax(0, 1fr); gap: 4px 20px; align-items: start;
    padding: 16px 0; border-bottom: 1px solid var(--line-soft);
}
.st-time { display: flex; flex-direction: column; gap: 2px; padding-top: 1px; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.st-time small { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.st-dday { font-weight: 600; }
.st-dday + span { font-weight: 400; color: var(--ink-2); }
.st-body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.st-where { font-size: 17px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.st-what { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; font-size: 14px; color: var(--ink-2); }
.st-what .st-chip { width: 24px; height: 24px; border-radius: 7px; }
.st-what .st-ico { width: 15px; height: 15px; }
.st-kind { font-weight: 600; color: var(--f); }
.st-twhen { display: none; font-variant-numeric: tabular-nums; }
.doc-body .st-where a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); text-underline-offset: 3px; }
.doc-body .st-where a:hover { text-decoration-color: currentColor; }
.st-more { display: inline; }
.st-more summary { display: inline; cursor: pointer; color: var(--ink-2); list-style: none; }
.st-more summary::-webkit-details-marker { display: none; }
.st-more[open] summary { display: none; }
.st-place { white-space: nowrap; }
.st-place.is-here { font-weight: 600; }
.st-no, .st-sep { color: var(--ink-2); font-weight: 400; white-space: normal; }
.st-unsure, .st-hint { font-size: 14px; color: var(--ink-2); white-space: normal; }
.st-hint { padding-left: 0; }
.doc-body a.st-src { margin-left: auto; color: var(--ink-2); font-size: 13px; white-space: nowrap; text-decoration-color: color-mix(in srgb, var(--ink) 25%, transparent); text-underline-offset: 3px; }
.doc-body a.st-src:hover { color: var(--ink); }

.st-roads { margin-top: 36px; border-top: 1px solid var(--line); }
.st-roads { margin-top: 28px !important; }
.st-roads summary { display: flex; align-items: baseline; gap: 8px; padding: 14px 0; cursor: pointer; font: 600 18px/1.2 var(--font); list-style: none; }
.st-roads summary::-webkit-details-marker { display: none; }
.st-roads summary::after { content: ''; width: 8px; height: 8px; margin-left: 4px; border-right: 1.6px solid var(--ink-2); border-bottom: 1.6px solid var(--ink-2); transform: translateY(-3px) rotate(45deg); transition: transform 180ms var(--ease); }
.st-roads[open] summary::after { transform: translateY(1px) rotate(225deg); }
.st-roads summary small { font: 600 14px/1 var(--font); padding: 4px 8px; border-radius: 999px; background: var(--ground); color: var(--ink-2); }
.st-roads .note { margin: 0 0 10px; }

/* the map's signs: a disc in the family's colour, the kind drawn in white */
.st-pin-wrap { background: none; border: 0; }
.st-pin {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    background: var(--f); color: #fff; border: 2px solid var(--paper);
    box-shadow: 0 3px 10px rgba(20, 24, 30, 0.28), 0 1px 2px rgba(20, 24, 30, 0.2);
    transition: transform 160ms var(--ease);
}
.st-pin[data-f="water"] { --f: var(--st-water); }
.st-pin[data-f="hot"] { --f: var(--st-hot); }
.st-pin[data-f="road"] { --f: var(--ink); color: var(--paper); }
:root[data-theme="dark"] .st-pin { color: #14171c; }
.st-pin .st-ico { width: 18px; height: 18px; stroke-width: 1.9; }
.leaflet-marker-icon:hover .st-pin, .leaflet-marker-icon:focus-visible .st-pin { transform: scale(1.12); }
/* the popup frame has no padding of its own (styles.css): the content brings it, with room for the close button */
.st-pop { display: flex; flex-direction: column; gap: 3px; font: 400 15px/1.4 var(--font); padding: 14px 40px 12px 14px; }
.st-pop .st-pop-when { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--f); }
.st-pop b { font-weight: 600; }
.st-pop a { margin-top: 6px; font-weight: 600; }

/* ── One street ─────────────────────────────────────────────────── */
.st-one .page-head h1 { overflow-wrap: anywhere; }
.st-answer { margin-top: 24px; max-width: 780px; }
.st-say {
    max-width: none !important; padding: 22px 24px; border-radius: var(--r-panel); background: var(--ground);
    font: 600 26px/1.25 var(--font); letter-spacing: -0.005em; text-wrap: balance;
}
.st-anss { display: grid; border-radius: var(--r-panel); background: var(--ground); padding: 6px 20px; }
.st-ans {
    display: grid; grid-template-columns: 30px 12em minmax(0, 1fr); gap: 4px 14px; align-items: center;
    max-width: none !important; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.st-ans:last-child { border-bottom: 0; }
.st-ans b { font-weight: 600; }
.st-ans > span:last-child { color: var(--ink-2); }
.st-ans:not(.is-on) .st-chip { opacity: 0.5; }
.st-ans.is-on > span:last-child { color: var(--f); font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }
.st-ans.is-on[data-f="road"] > span:last-child { color: var(--ink); }
.st-ans small { display: block; margin-top: 3px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.st-noform { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; max-width: 780px; margin-top: 18px; }
.st-noform input { width: 6.5em; min-height: 44px; font-size: 17px; }
.st-act.st-small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.doc-body a.st-all { font-size: 15px; color: var(--ink-2); }
.st-one .st-rows, .st-one .st-read { max-width: 780px; }
.st-warn { max-width: 62ch; margin-top: 14px; padding: 12px 16px; border-radius: var(--r-ctl); background: var(--ground); font-size: 15px; line-height: 1.45; }
.st-here { margin-top: 26px; }
.st-one .st-read { margin-top: 12px; }

/* the two ways to be told, side by side */
.st-tell { max-width: 780px; }
.st-ways { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: stretch; }
.st-way { display: flex; flex-direction: column; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-panel); }
.st-way[hidden] { display: none; }
.st-way h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 8px !important; font: 600 18px/1.25 var(--font) !important; }
.st-way h3 svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.st-lead { flex: 1; margin: 0 0 16px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.st-way .st-act { width: 100%; justify-content: center; }
.st-way .st-store { margin-top: 10px; font-size: 13px; }
.st-or { align-self: center; margin: 0 !important; font-size: 14px; color: var(--ink-2); }
.st-way-push[hidden] + .st-or { display: none; }
.st-way-push[hidden] ~ .st-way { grid-column: 1 / -1; max-width: 420px; }
.st-ios-note { align-self: center; margin: 0 !important; }
.st-near-none { margin-top: 40px; font-size: 16px; }

.st-act {
    display: inline-flex; align-items: center; gap: 9px; min-height: 50px; padding: 0 20px;
    border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); border-radius: var(--r-ctl);
    background: var(--paper); color: var(--ink); font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer;
    transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 120ms var(--ease);
}
.st-act:hover { background: var(--ground); }
.st-act:active { transform: scale(0.98); }
.st-act svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.st-push, .st-cal { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.doc-body a.st-cal { color: var(--paper); text-decoration: none; }
.st-cal:hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); }
.st-push:hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); }
.st-push[aria-pressed="true"] { border-color: color-mix(in srgb, var(--ink) 20%, transparent); background: var(--paper); color: var(--ink); }
.st-push[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.st-ics-line { margin-top: 12px; font-size: 14px; }
.doc-body a.st-ics { color: var(--ink-2); }
.st-tell .note { margin-top: 12px; }

/* ── Sources ────────────────────────────────────────────────────── */
.st-sources { margin-top: 72px !important; padding-top: 20px; border-top: 1px solid var(--line); }
.st-sources h2 { font-size: 24px !important; }
.st-srcs { margin: 0; padding: 0; list-style: none; }
.st-srcs li { display: grid; grid-template-columns: 12em minmax(0, 1fr); gap: 2px 16px; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 15px; }
.st-srcs li:last-child { border-bottom: 1px solid var(--line-soft); }
.st-sources .note { max-width: 70ch; }

/* at night a filled button stays a raised surface, not the brightest thing on the screen */
:root[data-theme="dark"] .st-go:hover, :root[data-theme="dark"] .st-push:hover, :root[data-theme="dark"] .st-cal:hover { background: color-mix(in srgb, var(--ink) 88%, var(--paper)); }
:root[data-theme="dark"] .st-find, :root[data-theme="dark"] .st-anss, :root[data-theme="dark"] .st-say, :root[data-theme="dark"] .st-quiet { background: color-mix(in srgb, var(--paper) 70%, var(--ground)); }

::selection { background: color-mix(in srgb, var(--focus) 26%, transparent); }

@media (max-width: 899px) {
    /* on a phone the map comes right after the legend, before the long list */
    .st-city { grid-template-columns: minmax(0, 1fr); margin-top: 40px !important; }
    .st-city-list { display: contents; }
    .st-city-list > * { order: 5; }
    .st-city-list > h2, .st-city-list > .st-read { order: 1; }
    .st-city-list > .st-legend, .st-city-list > .st-warn { order: 2; }
    .st-mapbox { order: 3; position: static; padding-top: 18px; }
    .st-map { height: 240px; }
}
@media (max-width: 599px) {
    .st-find { grid-template-columns: minmax(0, 1fr) 6.8em; padding: 12px; margin-left: -4px; margin-right: -4px; }
    .st-go { grid-column: 1 / -1; }
    .st-rows > li { grid-template-columns: minmax(0, 1fr); padding: 14px 0; }
    .st-time { display: none; }
    .st-twhen { display: inline; color: var(--ink); font-weight: 600; }
    .st-ways { grid-template-columns: minmax(0, 1fr); }
    .st-or { justify-self: center; }
    .st-day h3 span { font-size: 24px; }
    .st-say { font-size: 22px; padding: 18px; }
    .st-anss { padding: 4px 14px; }
    .st-ans { grid-template-columns: 30px minmax(0, 1fr); gap: 2px 12px; }
    .st-ans b { font-size: 15px; }
    .st-ans > span:last-child { grid-column: 2; }
    .st-ans.is-on > span:last-child { font-size: 19px; }
    .st-ans .st-chip { grid-row: 1 / span 2; align-self: start; }
    .st-srcs li { grid-template-columns: minmax(0, 1fr); }
    .st-way .st-act { width: 100%; justify-content: center; }
    .st-legend { gap: 6px; }
    .st-leg { font-size: 14px; padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .st-go, .st-act, .st-pin, .st-roads summary::after, .st-field input { transition: none; }
    .st-go:active, .st-act:active { transform: none; }
}
