/* Luftek – spletna aplikacija. Barve izhajajo iz ikone (temno modrozelena) in lestvice EAQI. */
:root {
  --bg: #071d2b; --bg2: #0b2a3c; --card: rgba(10, 38, 52, .78); --card2: #0f3346; --line: rgba(127, 227, 220, .16);
  --fg: #eafcfb; --muted: #94bfc0; --accent: #2dd4bf; --accent2: #7fe3dc; --warn: #f97316; --err: #ff5050; --ok: #50ccaa;
  --cloud: #cbd5e1; --cloud-dark: #94a3b8; --shadow: 0 10px 30px rgba(0, 0, 0, .25);
  --r: 18px; --gut: clamp(12px, 3vw, 28px); --maxw: 1240px;
  --font: "Noto Sans", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  /* Luft design system (ml/docs/LUFTEK_DESIGN_SYSTEM.md): vrsta podatka in stopnje opozoril – enako kot luftek_ml.design */
  --kind-measured: #0ea5e9; --kind-analysis: #14b8a6; --kind-forecast: #8b5cf6; --kind-derived: #f59e0b; --kind-missing: #94a3b8; --kind-stale: #ef4444;
  --alert-1: #facc15; --alert-2: #f97316; --alert-3: #dc2626; --alert-4: #7e22ce;
  --ease: cubic-bezier(.2, .8, .2, 1); --t-fast: .15s; --t-med: .3s;
}
[data-theme="light"] {
  --bg: #eef7f6; --bg2: #ddeff0; --card: rgba(255, 255, 255, .88); --card2: #f4fbfb; --line: rgba(12, 88, 102, .14);
  --fg: #0b2a3c; --muted: #4f7280; --accent: #0d9488; --accent2: #0f766e; --cloud: #94a3b8; --cloud-dark: #64748b;
  --shadow: 0 8px 24px rgba(11, 42, 60, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--fg); font: 15px/1.5 var(--font); min-height: 100vh;
  background: radial-gradient(1100px 600px at 90% -10%, rgba(19, 128, 138, .35), transparent 60%), linear-gradient(160deg, var(--bg) 0%, var(--bg2) 100%) fixed;
}
[data-theme="light"] body { background: radial-gradient(1000px 500px at 90% -10%, rgba(45, 212, 191, .18), transparent 60%), linear-gradient(160deg, var(--bg), var(--bg2)) fixed; }
a { color: var(--accent2); }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.2; }
h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 1.12rem; font-weight: 700; }
h3 { font-size: 1rem; }
h4 { font-size: .9rem; color: var(--muted); font-weight: 600; margin-top: .8rem; }
p { margin: 0 0 .6rem; }
code { background: var(--card2); padding: .05rem .35rem; border-radius: 6px; font-size: .85em; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- lupina */
.boot { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: .8rem; color: var(--muted); }
.boot img { border-radius: 18px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.94); opacity: .75; } }
header.top {
  position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; gap: 1rem;
  padding: .55rem var(--gut); padding-top: max(.55rem, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--fg); text-decoration: none; flex: none; }
.brand img { border-radius: 9px; }
.brand b { display: block; font-size: 1.15rem; line-height: 1.05; letter-spacing: -.01em; }
.brand small { display: block; font-size: .7rem; color: var(--muted); }
.topnav { display: flex; gap: .15rem; margin: 0 auto; }
.tn, .bn { color: var(--muted); text-decoration: none; display: flex; align-items: center; gap: .4rem; border-radius: 999px; transition: background .2s, color .2s; }
.tn { padding: .4rem .75rem; font-size: .9rem; font-weight: 600; }
.tn .ni svg { width: 18px; height: 18px; }
.tn:hover { color: var(--fg); background: var(--card); }
.tn.on, .bn.on { color: var(--fg); background: color-mix(in srgb, var(--accent) 22%, transparent); }
.status { display: flex; align-items: center; gap: .5rem; flex: none; }
.conn { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.conn i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--muted); }
.conn.ok i { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.conn.warn i { background: #facc15; } .conn.err i { background: var(--err); }
.iconbtn { background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: 999px; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; }
.banner { background: #854d0e; color: #fff; padding: .45rem var(--gut); font-size: .88rem; text-align: center; }
.bottomnav { display: none; }
main.page { max-width: var(--maxw); margin: 0 auto; padding: 1rem var(--gut) 2rem; }
.view { display: grid; gap: 1rem; }
.view.enter > * { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.view.enter > *:nth-child(2) { animation-delay: .05s; } .view.enter > *:nth-child(3) { animation-delay: .1s; } .view.enter > *:nth-child(n+4) { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .view.enter > * { animation: none; } * { scroll-behavior: auto !important; } }
.loading { display: flex; align-items: center; justify-content: center; gap: .7rem; min-height: 50vh; color: var(--muted); }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
footer.foot { max-width: var(--maxw); margin: 0 auto; padding: 1rem var(--gut) 2rem; text-align: center; font-size: .85rem; color: var(--muted); }
footer.foot b { color: var(--fg); }
.noscript { padding: 2rem; text-align: center; }

/* ---------------------------------------------------------------- gradniki */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; box-shadow: var(--shadow); backdrop-filter: blur(8px); min-width: 0; }
.card.error { text-align: center; padding: 2rem; max-width: 36rem; margin: 2rem auto; }
.cardhead { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .6rem; }
.cardhead h1, .cardhead h2 { margin: 0; }
.grid2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.chip { display: inline-flex; align-items: center; padding: .18rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.chip.muted { background: var(--card2); color: var(--muted); }
.btn { background: var(--accent); color: #062026; border: 0; border-radius: 999px; padding: .5rem 1rem; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn:disabled { opacity: .6; } .btn.small { padding: .3rem .75rem; font-size: .82rem; }
.seg { display: inline-flex; background: var(--card2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { background: transparent; border: 0; color: var(--muted); font: inherit; font-size: .85rem; font-weight: 600; padding: .3rem .8rem; border-radius: 999px; cursor: pointer; }
.seg button.on { background: var(--accent); color: #062026; }
.scale { display: flex; flex-wrap: wrap; gap: 3px; margin-top: .7rem; }
.scale span { flex: 1 1 auto; text-align: center; font-size: .72rem; font-weight: 700; padding: .2rem .45rem; border-radius: 6px; background: var(--card2); color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .78rem; color: var(--muted); margin-top: .3rem; }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.legend i { width: 14px; height: 0; border-top: 3px solid; display: inline-block; }
svg.chart { width: 100%; height: auto; display: block; margin-top: .4rem; overflow: visible; }
svg.chart .grid { stroke: var(--line); stroke-width: 1; }
svg.chart .tick { fill: var(--muted); font-size: 11px; font-family: var(--font); }
svg.chart .tick.unit { font-weight: 700; }
svg.chart .now { stroke: var(--accent2); stroke-dasharray: 3 3; }
.wx { display: inline-flex; line-height: 0; }
.prose p { max-width: 75ch; }
.facts { list-style: none; padding: 0; margin: .3rem 0 0; display: grid; gap: .2rem; font-size: .88rem; }
table.simple { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.simple th, table.simple td { text-align: left; padding: .35rem .4rem; border-top: 1px solid var(--line); vertical-align: top; }
table.simple th { color: var(--muted); font-weight: 600; white-space: nowrap; }

/* ---------------------------------------------------------------- Zrak */
.hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; border-radius: calc(var(--r) + 4px); padding: clamp(1rem, 3vw, 1.8rem);
  background: linear-gradient(135deg, color-mix(in srgb, var(--lvl) 30%, var(--card)) 0%, var(--card) 70%);
  border: 1px solid color-mix(in srgb, var(--lvl) 45%, transparent); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--lvl) 45%, transparent), transparent 70%); pointer-events: none; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; color: var(--muted); margin-bottom: .2rem; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); margin: 0 0 .4rem; }
.hero .lvl { background: var(--lvl); color: var(--lvl-fg); padding: 0 .5em .05em; border-radius: .35em; display: inline-block; }
.advice { font-size: 1.05rem; } .advice2 { font-size: .92rem; }
.meta { color: var(--muted); font-size: .82rem; margin: 0; }
.hero-days { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; align-content: start; position: relative; z-index: 1; }
.daytile { background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: .7rem .8rem; display: grid; gap: .35rem; justify-items: start; }
.daytile > small:first-child { font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: .7rem; letter-spacing: .1em; }
.extra { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .85rem; color: var(--muted); }
.extra b { color: var(--fg); }
.mapcard { padding-bottom: .9rem; }
.mapwrap { position: relative; display: grid; grid-template-columns: 1fr 340px; gap: .8rem; }
.nomap { display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--muted); }
.map { height: 520px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0d2b3a; z-index: 0; }
[data-theme="light"] .map { background: #dfe9ea; }
.detail { background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: .9rem; overflow: auto; max-height: 520px; }
.detail .center { margin-top: 40%; }
.dhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.close { display: none; background: none; border: 0; color: var(--muted); font-size: 1.5rem; cursor: pointer; line-height: 1; }
.pols { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr)); gap: .4rem; margin: .5rem 0; }
.pols.wide { grid-template-columns: repeat(4, 1fr); }
.pol { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .45rem .55rem; display: grid; }
.pol span { font-size: .75rem; color: var(--muted); font-weight: 700; }
.pol b { font-size: 1.35rem; line-height: 1.2; }
.pol small { font-size: .68rem; color: var(--muted); }
.rank, .pri { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.rank li { display: grid; grid-template-columns: auto 1fr auto auto; gap: .6rem; align-items: center; padding: .45rem .3rem; border-top: 1px solid var(--line); cursor: pointer; border-radius: 8px; }
.rank li:first-child { border-top: 0; }
.rank li:hover { background: var(--card2); }
.rank .nm { font-weight: 600; } .rank .val { font-size: .8rem; color: var(--muted); }
.pri li { display: grid; grid-template-columns: 6px 1fr; gap: .7rem; padding: .45rem 0; border-top: 1px solid var(--line); }
.pri li:first-child { border-top: 0; }
.pri i { border-radius: 4px; }
.pri p { margin: .1rem 0 0; font-size: .85rem; }
.maplibregl-map { font-family: var(--font); }
.maplibregl-ctrl-group { background: var(--card2) !important; border: 1px solid var(--line); }
.maplibregl-ctrl-group button { filter: none; }
[data-theme="dark"] .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1); }
.maplibregl-ctrl-attrib, .maplibregl-ctrl-attrib.maplibregl-compact { background: color-mix(in srgb, var(--bg) 55%, transparent) !important;
  color: var(--muted); font: 10px/1.4 var(--font) !important; opacity: .75; border-radius: 8px !important; }
.maplibregl-ctrl-attrib:hover { opacity: 1; }
.maplibregl-ctrl-attrib-inner { font-size: 10px !important; line-height: 1.4; }
.maplibregl-ctrl-attrib a { text-decoration: none; }
.maplibregl-ctrl-attrib-button { transform: scale(.8); }
.maplibregl-ctrl-attrib a { color: var(--accent2); }
.maplibregl-popup.tip .maplibregl-popup-content { background: var(--card2); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px 10px; font-size: .85rem; }
.maplibregl-popup.tip .maplibregl-popup-tip { border-top-color: var(--card2); border-bottom-color: var(--card2); }
.uchart { width: 100%; margin-top: .4rem; }
.uplot { font-family: var(--font); color: var(--fg); }
.u-legend { font-size: .78rem; color: var(--muted); }
.u-legend .u-marker { border-radius: 3px; }
.u-legend th { font-weight: 600; }

/* ---------------------------------------------------------------- Zemljevid in animacija */
.animcard { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; padding: .7rem; }
.animmap { grid-area: map; position: relative; }
.map.big { height: clamp(460px, calc(100vh - 230px), 920px); }
.maptitle { position: absolute; left: 12px; top: 12px; z-index: 500; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(6px); padding: .3rem .7rem; border-radius: 999px; font-weight: 700; font-size: .9rem; border: 1px solid var(--line); }
.maptitle.nodata::after { content: " · ni podatkov za ta čas"; color: var(--muted); font-weight: 500; }
canvas.wind { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.steps { display: flex; height: 12px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.steps i { flex: 1; }
.timeline { display: grid; grid-template-columns: auto 1fr auto auto; gap: .8rem; align-items: center; }
/* časovnica plava na dnu zemljevida: kontrolniki so tam, kjer je animacija */
.animmap .timeline { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3; padding: .5rem .8rem;
  border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--card2) 88%, transparent);
  backdrop-filter: blur(8px); box-shadow: var(--shadow); }
.animmap .timeline .play { width: 40px; height: 40px; }
.animmap .maplibregl-ctrl-bottom-right, .animmap .maplibregl-ctrl-bottom-left { bottom: 74px; }
.play { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--accent); color: #062026; font-size: 1.05rem; cursor: pointer; font-weight: 800; }
.tl { display: grid; gap: .2rem; }
.tl input { width: 100%; accent-color: var(--accent); }
.tlmarks { display: flex; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.tlmarks .past { border-right: 2px solid var(--accent2); padding-right: .4rem; text-align: right; opacity: .8; }
.tlmarks .fut { padding-left: .4rem; flex: 1; }
.tlabel { display: grid; text-align: right; min-width: 9rem; }
.tlabel b { font-size: 1rem; } .tlabel small { color: var(--accent2); font-weight: 700; } .tlabel small.past { color: var(--muted); }
.mapside { grid-area: side; display: grid; gap: .8rem; align-content: start; }
.lgroup small { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; color: var(--muted); font-weight: 700; margin-bottom: .3rem; }
.layers { display: grid; gap: .7rem; }
.chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.lchip { background: var(--card2); color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: .28rem .7rem; font: inherit; font-size: .82rem; cursor: pointer; transition: all .15s; }
.lchip:hover { border-color: var(--accent); }
.lchip.on { background: var(--accent); color: #062026; border-color: var(--accent); font-weight: 700; }
.legendbox .scale { margin-top: 0; }
.gradient { height: 12px; border-radius: 6px; border: 1px solid var(--line); }
.gticks { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: .2rem; }
.opt { display: grid; gap: .2rem; font-size: .85rem; color: var(--muted); }
.opt.check { display: flex; align-items: center; gap: .5rem; color: var(--fg); }
.opt input[type=range] { accent-color: var(--accent); }

/* ---------------------------------------------------------------- Kraj */
.searchbar { display: flex; gap: .6rem; position: relative; z-index: 600; }
.searchwrap { position: relative; flex: 1; }
.search { width: 100%; font: inherit; font-size: 1rem; padding: .7rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); outline: none; }
.search:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; list-style: none; margin: 0; padding: .3rem; background: var(--card2); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.suggest li { padding: .5rem .7rem; border-radius: 10px; cursor: pointer; }
.suggest li:hover, .suggest li:focus { background: color-mix(in srgb, var(--accent) 18%, transparent); outline: none; }
.placehead { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .3rem .2rem; }
.placehead h1 { margin: 0; }
.nowbox { display: flex; align-items: center; gap: .6rem; }
.big { font-size: 2.6rem; font-weight: 800; line-height: 1; display: block; }
.aqdays { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: .8rem; }
.aqday { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: .55rem .65rem; display: grid; gap: .25rem; justify-items: start; }
.aqday > small:first-child { font-weight: 700; }
.hourstrip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(4.2rem, 1fr); gap: .3rem; overflow-x: auto; padding-bottom: .4rem; scroll-snap-type: x proximity; }
.hcell { display: grid; justify-items: center; gap: .1rem; background: var(--card2); border-radius: 12px; padding: .45rem .2rem; scroll-snap-align: start; }
.hcell b { font-size: 1.05rem; } .hcell small { font-size: .72rem; }
.rain { color: #38bdf8; } .gust { color: var(--warn); }
.wind { color: var(--muted); display: flex; align-items: center; gap: .15rem; }
.arrow { display: inline-block; font-style: normal; font-weight: 800; }
.days3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.day3 { background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: .8rem; display: grid; justify-items: start; gap: .15rem; }
.temps { font-size: 1.25rem; margin: .2rem 0; } .tmin { color: #60a5fa; font-weight: 700; } .tmax { color: #fb923c; font-weight: 800; }
.alts { padding: 0 .3rem; }

/* ---------------------------------------------------------------- Cvetni prah */
.pgrid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.ptable table { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: .8rem; }
.ptable th { text-align: left; font-weight: 600; color: var(--muted); }
.ptable thead th { text-align: center; } .ptable thead th span, .ptable thead th small { display: block; }
.cell { display: block; text-align: center; padding: .2rem .1rem; border-radius: 6px; background: var(--card2); color: var(--muted); font-weight: 700; font-size: .72rem; }
.scale.pollen span:first-child { background: var(--card2); }

/* ---------------------------------------------------------------- Napoved */
.tabs { margin-bottom: .8rem; }
.tabbody { min-height: 6rem; }
.alerts { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.alerts li { border-left: 5px solid; background: var(--card2); border-radius: 10px; padding: .55rem .8rem; display: grid; gap: .1rem; }
.regions { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.region { background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: .8rem; }
.rhead { display: flex; justify-content: space-between; gap: .4rem; align-items: start; }
.rhead h3 { margin: 0; font-size: .95rem; }
.rdays { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; margin: .5rem 0; }
.rday { display: grid; justify-items: center; gap: .1rem; font-size: .85rem; }
.rday small:first-child { font-weight: 700; color: var(--muted); }
.region p { color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------- Vode, O aplikaciji */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .6rem; margin: .4rem 0 .8rem; }
.stat { background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: .7rem .8rem; display: grid; }
.stat b { font-size: 1.6rem; line-height: 1.1; } .stat small { color: var(--muted); font-size: .78rem; }
.eco { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .7rem; margin: .8rem 0 .2rem; }
.eco article { background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: .8rem; }
.eco small { text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; color: var(--accent2); font-weight: 700; }
.eco h3 { font-size: 1.15rem; margin: .1rem 0 .3rem; } .eco p { font-size: .88rem; color: var(--muted); margin: 0; }
.sources { columns: 2 14rem; font-size: .88rem; padding-left: 1.1rem; }

/* ---------------------------------------------------------------- donacija (Revolut), vedno spodaj levo */
.donate {
  position: fixed; left: 14px; bottom: 14px; z-index: 900; display: inline-flex; align-items: center; gap: .4rem;
  height: 32px; padding: 0 .8rem 0 .7rem; border-radius: 999px; background: #fff; color: #191c1f; text-decoration: none;
  font-size: .8rem; font-weight: 600; box-shadow: 0 6px 18px rgba(0, 0, 0, .28); opacity: .82;
  transition: opacity .2s, transform .2s, box-shadow .2s;
}
.donate:hover, .donate:focus-visible { opacity: 1; color: #191c1f; transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(255, 255, 255, .45); }
.donate span { display: inline-flex; }
@media print { .donate { display: none; } }

/* ---------------------------------------------------------------- telefon in tablica */
@media (max-width: 1080px) {
  .topnav .nl { display: none; }
  .tn { padding: .45rem; }
}
@media (max-width: 900px) {
  .animcard { grid-template-columns: 1fr; grid-template-areas: "map" "side"; }
  /* podokno postaje se na telefonu odpre čez spodnji del zemljevida; zaprto je skrito znotraj zemljevida */
  .mapwrap { grid-template-columns: 1fr; overflow: hidden; border-radius: 14px; }
  .detail { position: absolute; left: 8px; right: 8px; bottom: 8px; max-height: 62%; z-index: 700; transform: translateY(calc(100% + 20px));
    visibility: hidden; pointer-events: none; transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s; box-shadow: var(--shadow); }
  .detail.open { transform: none; visibility: visible; pointer-events: auto; transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
  .close { display: block; }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .topnav { display: none; }
  .brand small { display: none; }
  .status { margin-left: auto; }
  .donate { left: 10px; bottom: calc(68px + env(safe-area-inset-bottom)); width: 34px; height: 34px; padding: 0; justify-content: center; }
  .donate .dl { display: none; }
  .bottomnav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
    padding: .25rem .2rem max(.25rem, env(safe-area-inset-bottom));
  }
  .bn { flex-direction: column; gap: 0; padding: .3rem 0; border-radius: 12px; font-size: .6rem; font-weight: 600; }
  .bn .nl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  main.page { padding-bottom: 5.5rem; }
  footer.foot { padding-bottom: 6rem; }
  .hero { grid-template-columns: 1fr; }
  .map { height: 420px; } .map.big { height: 64vh; }
  .pols.wide { grid-template-columns: repeat(2, 1fr); }
  .aqdays { grid-template-columns: repeat(2, 1fr); }
  .days3 { grid-template-columns: 1fr; }
  .day3 { grid-template-columns: auto 1fr; column-gap: .8rem; }
  .timeline { grid-template-columns: auto 1fr; }
  .animmap .timeline { left: 6px; right: 6px; bottom: 6px; padding: .35rem .55rem; gap: .5rem; grid-template-columns: auto 1fr auto; }
  .animmap .timeline .play { width: 34px; height: 34px; font-size: .9rem; }
  .animmap .tlmarks { display: none; }
  .animmap .tlabel { grid-column: auto; display: grid; text-align: right; min-width: 0; }
  .animmap .tlabel b { font-size: .85rem; white-space: nowrap; } .animmap .tlabel small { font-size: .72rem; }
  .animmap .maplibregl-ctrl-bottom-right, .animmap .maplibregl-ctrl-bottom-left { bottom: 58px; }
  .tlabel { grid-column: 1 / -1; text-align: left; display: flex; gap: .6rem; align-items: baseline; }
  #tlnow { display: none; }
  .conn span { display: none; }
  .rank li { grid-template-columns: auto 1fr auto; } .rank .muted { display: none; }
}

/* prostovoljni senzorji */
#dodaj-senzor { scroll-margin-top: 4.5rem; }
#sensor-form { display: grid; grid-template-columns: 10.5rem minmax(0, 26rem); justify-content: start; gap: .7rem 1rem; align-items: center; margin: .9rem 0 .4rem; }
#sensor-form label { font-size: .88rem; color: var(--muted); font-weight: 600; }
#sensor-form > div { display: contents; }
#sensor-form > div[hidden] { display: none; }
#sensor-form input, #sensor-form select {
  width: 100%; font: inherit; font-size: .95rem; padding: .6rem .9rem; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card2); color: var(--fg); outline: none; transition: border-color .15s, box-shadow .15s; }
#sensor-form select { appearance: none; padding-right: 2.2rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
#sensor-form select option { background: var(--card2); color: var(--fg); }
#sensor-form input:focus, #sensor-form select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
#sensor-form input::placeholder { color: var(--muted); opacity: .8; }
#sensor-form #sensor-consent { grid-column: 2; display: flex; align-items: flex-start; gap: .6rem; font-weight: 500; color: var(--fg); line-height: 1.4; }
#sensor-form #sensor-consent input { width: 1.15rem; height: 1.15rem; padding: 0; margin-top: .15rem; flex: none; accent-color: var(--accent); }
#sensor-form #sensor-consent small { display: block; }
#sensor-form .btn { grid-column: 2; justify-self: start; margin-top: .2rem; }
#sensor-form .btn:disabled { opacity: .6; cursor: wait; }
#sensor-msg { grid-column: 2; min-height: 1.2em; margin: 0; font-size: .9rem; color: var(--accent2); }
.sharebar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .6rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.btn.ghost { background: transparent; color: var(--accent2); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.btn.ghost:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
@media (max-width: 640px) {
  #sensor-form { grid-template-columns: 1fr; gap: .35rem; }
  #sensor-form label { margin-top: .4rem; }
  #sensor-form .btn, #sensor-msg, #sensor-form #sensor-consent { grid-column: 1; }
}

/* ---------------------------------------------------------------- Luft: zgodba podatkov, vrsta podatka, odčitek */
.kind { display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  padding: .08rem .45rem; border-radius: 999px; border: 1px solid currentColor; color: var(--kind-forecast); background: color-mix(in srgb, currentColor 12%, transparent); vertical-align: middle; }
.kind[data-kind="analysis"] { color: var(--kind-analysis); } .kind[data-kind="derived"] { color: var(--kind-derived); }
.kind[data-kind="measured"] { color: var(--kind-measured); } .kind[data-kind="stale"] { color: var(--kind-stale); }
.maptitle .kind { margin-left: .25rem; font-size: .62rem; }
.insight { display: grid; gap: .35rem; padding: .7rem .8rem; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); }
.insight:empty { display: none; }
.insight .ihead { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.insight .headline { margin: 0; font-size: .92rem; line-height: 1.4; }
.insight .warnline { margin: 0; color: var(--warn); }
details.more summary { cursor: pointer; font-size: .82rem; font-weight: 700; color: var(--accent2); list-style: none; }
details.more summary::before { content: "ⓘ "; }
details.more[open] summary { margin-bottom: .35rem; }
details.more p { margin: 0 0 .35rem; font-size: .85rem; }
details.more code { font-size: .75rem; word-break: break-word; }
.gticks abbr { text-decoration: none; cursor: help; }
.maplibregl-popup.probe .maplibregl-popup-content { padding: 8px 26px 8px 10px; line-height: 1.35; }
.maplibregl-popup.probe .maplibregl-popup-close-button { color: var(--muted); font-size: 18px; width: 24px; height: 24px; }
.maplibregl-popup.probe b { font-size: 1rem; }
@media (max-width: 900px) {
  .mapside { grid-template-columns: 1fr; }
  .mapside .insight { order: -1; }
}
@media (prefers-reduced-motion: reduce) { .lchip, .tn, .bn { transition: none; } }
.devtab { border-collapse: collapse; margin: .3rem 0; font-size: .82rem; }
.devtab td { padding: .08rem .45rem .08rem 0; }
.devtab .qc { font-weight: 700; } .qc-ok { color: var(--ok); } .qc-no { color: var(--err); } .qc-na { color: var(--muted); }

/* ---------------------------------------------------------------- zemljevid: vrstica menijev, pas informacij */
.animcard { grid-template-columns: minmax(0, 1fr); grid-template-areas: "bar" "map" "info"; }
.animcard > .maptoolbar { grid-area: bar; } .animcard > .animmap { grid-area: map; } .animcard > .mapinfo { grid-area: info; }
.maptoolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; position: relative; z-index: 900; }
.ddgear { display: none; }
.ddgap { flex: 1; }
details.dd { position: relative; }
details.dd > summary { list-style: none; display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; user-select: none;
  padding: .38rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); font-size: .86rem; font-weight: 600; color: var(--fg); }
details.dd > summary::-webkit-details-marker { display: none; }
details.dd > summary:hover { border-color: var(--accent); }
details.dd.active > summary { background: var(--accent); color: #062026; border-color: var(--accent); }
details.dd .ddcur:not(:empty)::before { content: "· "; font-weight: 500; }
details.dd .ddarrow { font-style: normal; font-size: .75rem; opacity: .75; transition: transform var(--t-fast); }
details.dd[open] .ddarrow { transform: rotate(180deg); }
.ddmenu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px; max-width: min(320px, 90vw); display: flex; flex-wrap: wrap; gap: .3rem;
  padding: .6rem; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ddopts .ddmenu { left: auto; right: 0; display: grid; gap: .6rem; min-width: 260px; }
.ddopts .ddmenu p { margin: 0; }
.mapinfo { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: .6rem; align-items: start; font-size: .85rem; }
.mapinfo .insight { padding: .5rem .7rem; gap: .25rem; }
.mapinfo .insight .headline { font-size: .86rem; }
.mapinfo .legendbox { padding: .5rem .7rem; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); }
.mapinfo .legendbox small { font-size: .72rem; }
.devtab td:first-child { color: var(--muted); }
@media (max-width: 760px) {
  .animcard { padding: .5rem; }
  .map.big { height: clamp(380px, calc(100svh - 250px), 720px); }
  .mapinfo { grid-template-columns: 1fr; }
  details.dd > summary { padding: .34rem .65rem; font-size: .82rem; }
  details.dd .ddcur { display: none; }
  .ddgap { display: none; }
  .maptoolbar { flex-wrap: nowrap; gap: .3rem; }
  details.dd { position: static; }
  .ddmenu, .ddopts .ddmenu { left: 0; right: 0; max-width: none; min-width: 0; }
  .ddtext, .ddopts .ddarrow { display: none; }
  .ddgear { display: inline; font-size: 1rem; }
  .ddopts { margin-left: auto; }
}
.devtab + small .live, small .live { color: var(--ok); }

/* iskanje: skupini Slovenija / Evropa */
.suggest li.grp { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); cursor: default; padding: .4rem .7rem .15rem; }
.suggest li.grp:hover { background: none; }
@media (max-width: 760px) {
  /* zemljevid: izbira območja kaže izbrano vrednost (Slovenija / Evropa); vrstica se po potrebi prelomi */
  .maptoolbar { flex-wrap: wrap; row-gap: .35rem; }
  details.dd[data-group="region"] .ddlabel { display: none; }
  details.dd[data-group="region"] .ddcur { display: inline; }
  details.dd[data-group="region"] .ddcur::before { content: none; }
}

/* morje ob hrvaški obali: kompakten seznam postaj */
.seahr { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .85rem; margin: .3rem 0; }

/* ================================================================ v19: glava z iskanjem, meni, celozaslonski zemljevid */
.bn { background: none; border: 0; font: inherit; cursor: pointer; }
/* iskanje v glavi */
.hsearch { position: relative; flex: 1; max-width: 560px; margin: 0 auto; display: flex; align-items: center; z-index: 1100; }
.hsearch .search { padding: .55rem 2.6rem .55rem 2.3rem; font-size: .95rem; }
.hsicon { position: absolute; left: .85rem; color: var(--muted); display: inline-flex; pointer-events: none; }
.geobtn { position: absolute; right: .35rem; width: 32px; height: 32px; border-radius: 999px; border: 0; background: none; color: var(--muted);
  display: grid; place-items: center; cursor: pointer; }
.geobtn:hover { color: var(--fg); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.geobtn.busy { animation: pulse 1s ease-in-out infinite; }
.hsearch .suggest { z-index: 1200; max-height: min(70vh, 520px); overflow: auto; }
/* meni */
.menupanel { position: fixed; top: var(--hdr, 58px); left: 0; right: 0; z-index: 1050; background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: .8rem var(--gut) 1rem; }
.menupanel[hidden] { display: none; }
.menugrid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .3rem .8rem; }
.mn { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 12px; color: var(--fg); text-decoration: none; font-weight: 600; }
.mn .ni { color: var(--accent2); display: inline-flex; }
.mn:hover, .mn.on { background: color-mix(in srgb, var(--accent) 16%, transparent); }
#menubtn[aria-expanded="true"] { border-color: var(--accent); }

/* zemljevid kot vstopna stran: čez cel zaslon pod glavo, kontrole lebdijo nad njim */
body[data-full="1"] main.page { max-width: none; padding: 0; }
body[data-full="1"] footer.foot { display: none; }
body[data-full="1"] .donate { display: none; }
body[data-full="1"] .view { gap: 0; }
.fullmap .animcard { display: block; position: relative; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.fullmap .map.big { height: calc(100svh - var(--hdr, 58px) - var(--bnav, 0px)); min-height: 360px; border: 0; border-radius: 0; }
.fullmap .maptoolbar { position: absolute; top: 12px; left: 12px; right: 220px; z-index: 900; pointer-events: none; }
.fullmap .maptoolbar > * { pointer-events: auto; }
.fullmap .maptoolbar .ddgap { display: none; }
.fullmap details.dd > summary { box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .55); }
.fullmap .maptitle { left: 50%; transform: translateX(-50%); top: auto; bottom: 108px; white-space: nowrap; }
.infobtn { width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); color: var(--fg);
  font: italic 700 .95rem Georgia, serif; cursor: pointer; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .55); }
.infobtn:hover { border-color: var(--accent); }
/* opis sloja: lebdeča kartica, prikaže se na »i« */
.fullmap .mapinfo { display: contents; }
.fullmap .insight { display: none; position: absolute; top: 60px; left: 12px; z-index: 880; width: min(380px, calc(100% - 24px));
  max-height: 46vh; overflow: auto; box-shadow: var(--shadow); }
.fullmap .insight.show { display: grid; }
/* legenda: trak ob spodnjem robu zemljevida */
.fullmap .legendbox { position: absolute; left: 0; right: 0; bottom: 0; z-index: 860; border-radius: 0; border: 0; border-top: 1px solid var(--line);
  padding: .25rem .8rem .3rem; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(8px); display: grid;
  grid-template-columns: minmax(0, 1fr) auto; column-gap: .8rem; align-items: center; }
.fullmap .legendbox .steps { height: 9px; }
.fullmap .legendbox .gticks { grid-column: 1; margin-top: .1rem; font-size: .68rem; }
.fullmap .legendbox > small { grid-column: 2; grid-row: 1 / span 2; font-size: .66rem; max-width: 48ch; text-align: right; }
.fullmap .legendbox .scale { grid-column: 1 / -1; }
.fullmap .animmap .timeline { left: 50%; right: auto; transform: translateX(-50%); width: min(720px, calc(100% - 24px)); bottom: 46px; }
.fullmap .animmap .maplibregl-ctrl-bottom-right, .fullmap .animmap .maplibregl-ctrl-bottom-left { bottom: 112px; }
/* zrak zdaj */
.aqnow { position: absolute; top: 12px; right: 56px; z-index: 880; display: grid; gap: .15rem; justify-items: start; padding: .45rem .7rem;
  border-radius: 14px; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line);
  color: var(--fg); text-decoration: none; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .55); }
.aqnow small { font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.aqnow b { padding: .1rem .55rem; border-radius: 999px; font-size: .9rem; }
.aqnow .more { font-size: .72rem; color: var(--accent2); }
.aqnow[hidden] { display: none; }

@media (max-width: 760px) {
  header.top { gap: .5rem; }
  .brand span { display: none; }
  .conn span { display: none; }
  #theme { display: none; }
  .hsearch .search { font-size: .9rem; }
  .fullmap .maptoolbar { right: 12px; flex-wrap: wrap; row-gap: .35rem; }
  .fullmap .aqnow { top: auto; right: 8px; bottom: 112px; padding: .3rem .5rem; }
  .fullmap .aqnow small, .fullmap .aqnow .more { display: none; }
  .fullmap .maptitle { bottom: 96px; font-size: .78rem; left: 8px; transform: none; }
  .fullmap .animmap .timeline { width: calc(100% - 12px); bottom: 40px; }
  .fullmap .legendbox { grid-template-columns: 1fr; padding: .2rem .6rem; }
  .fullmap .legendbox > small { display: none; }
  .fullmap .animmap .maplibregl-ctrl-top-right { top: 92px; }
  .menugrid { grid-template-columns: 1fr 1fr; }
}

/* ================================================================ v20: napoved po dnevih (stran Kraj) */
.daily { padding-bottom: .6rem; }
.daily .dhead, .daily .drow > summary { display: grid; grid-template-columns: 7.2rem 2.6rem minmax(0, 1fr) 6.2rem 5.2rem; gap: .7rem; align-items: center; }
.daily .dhead { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 0 .6rem .3rem; border-bottom: 1px solid var(--line); }
.drow { border-bottom: 1px solid var(--line); }
.drow:last-of-type { border-bottom: 0; }
.drow > summary { list-style: none; cursor: pointer; padding: .55rem .6rem; border-radius: 12px; }
.drow > summary::-webkit-details-marker { display: none; }
.drow > summary:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.drow[open] > summary { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.dday { display: grid; line-height: 1.15; } .dday b { font-size: .92rem; } .dday small { font-size: .72rem; }
.dico { display: grid; place-items: center; }
.dtemp { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) 2.4rem; gap: .45rem; align-items: center; font-variant-numeric: tabular-nums; }
.dtemp .tmin { text-align: right; color: var(--muted); } .dtemp .tmax { font-weight: 700; }
.dtemp .track { position: relative; height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 9%, transparent); }
.dtemp .track i { position: absolute; top: 0; bottom: 0; border-radius: 999px; }
.dtemp .track .unc { background: color-mix(in srgb, var(--fg) 16%, transparent); }
.dtemp .track .bar { box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.dprec { display: grid; gap: .1rem; font-size: .78rem; }
.dprec .pbar { display: block; height: 4px; border-radius: 3px; background: #4292c6; min-width: 0; }
.dprec .snow { color: #a5b4fc; }
.dwind { font-size: .78rem; color: var(--muted); }
.dmore { padding: .4rem .6rem .8rem; display: grid; gap: .5rem; }
.dfacts { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 760px) {
  .daily .dhead, .daily .drow > summary { grid-template-columns: 4.6rem 2.1rem minmax(0, 1fr) 3.6rem; gap: .45rem; }
  .daily .dhead span:last-child, .dwind { display: none; }
  .dtemp { grid-template-columns: 1.9rem minmax(0, 1fr) 1.9rem; gap: .3rem; }
  .dday b { font-size: .84rem; }
  .drow > summary { padding: .5rem .3rem; }
}

/* ================================================================ v21: Radar, Morje, UV, Modeli */
.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .38rem .8rem; border-radius: 999px; font-size: .86rem; font-weight: 700;
  background: var(--accent); color: #062026; text-decoration: none; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .55); }
.pill.ghost { background: var(--card2); color: var(--fg); border: 1px solid var(--line); font-weight: 600; }
.uvchip { display: inline-block; min-width: 2.4rem; text-align: center; padding: .1rem .5rem; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.uvhero { display: grid; gap: .3rem; } .uvhero p { margin: .2rem 0; }
.uvdays { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; }
.uvday { display: grid; gap: .2rem; justify-items: start; padding: .6rem .7rem; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); }
.uvscale { display: grid; gap: .45rem; } .uvscale > div { display: grid; grid-template-columns: 4.2rem 8rem 1fr; gap: .6rem; align-items: center; }
.modelrow { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; gap: 1rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.modelrow > div:first-child { display: grid; gap: .15rem; }
.modelrow .share { display: grid; grid-template-columns: 1fr 3rem; gap: .5rem; align-items: center; text-align: right; }
.sbar { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 10%, transparent); overflow: hidden; }
.sbar i { display: block; height: 100%; background: var(--accent); }
@media (max-width: 760px) {
  .uvscale > div { grid-template-columns: 3.6rem 1fr; } .uvscale small { grid-column: 1 / -1; }
  .modelrow { grid-template-columns: 1fr; gap: .3rem; }
}

/* v22: Dodaj napravo – navodila za naprave brez API in polja po vrsti naprave */
#sensor-form .guidebox { border-left: 3px solid var(--accent, #3b82f6); padding: .5rem .75rem; margin: .5rem 0; background: color-mix(in srgb, currentColor 5%, transparent); border-radius: 6px; }
#sensor-form #sensor-help, #sensor-form .guidebox { grid-column: 2; }
@media (max-width: 640px) { #sensor-form #sensor-help, #sensor-form .guidebox { grid-column: 1; } }
#sensor-form #sensor-help { margin: 0; }
#sensor-form #sensor-help[hidden], #sensor-form .guidebox[hidden] { display: none; }

/* ================================================================ v23: umirjena, svetla oblika po vzoru pregledne vremenske karte
   Nevtralno ozadje, temno modrosiva pisava, tanke ločnice, en sam diskreten poudarek; barve imajo pomen samo pri zraku in vremenu. */
:root {
  --bg: #f4f6f8; --bg2: #f4f6f8; --card: #ffffff; --card2: #ffffff; --line: #e1e5ea;
  --fg: #1b2633; --muted: #647184; --accent: #2f5f8f; --accent2: #2f5f8f; --on-accent: #ffffff;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 10px rgba(16, 24, 40, .06);
  --r: 10px;
}
[data-theme="dark"] {
  --bg: #0f1720; --bg2: #0f1720; --card: #17212c; --card2: #17212c; --line: #283644;
  --fg: #e6ebf0; --muted: #8e9bab; --accent: #7fb0e0; --accent2: #7fb0e0; --on-accent: #0b1620;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .28);
}
body, [data-theme="light"] body { background: var(--bg); }
.btn, .play, .lchip.on, details.dd.active > summary { color: var(--on-accent); }
.card { backdrop-filter: none; }
.boot img { border-radius: 10px; }

/* glava: tanek bel pas z logotipom, iskanjem in menijem */
header.top { background: var(--card); backdrop-filter: none; padding-top: max(.35rem, env(safe-area-inset-top)); padding-bottom: .35rem; gap: .8rem; }
.brand img { border-radius: 7px; width: 28px; height: 28px; }
.brand b { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.brand small { display: none; }
.hsearch { max-width: 520px; }
.hsearch .search, .search { background: var(--bg); border-radius: 8px; padding-top: .45rem; padding-bottom: .45rem; font-size: .92rem; }
.search:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.iconbtn { background: transparent; border: 0; border-radius: 8px; width: 34px; height: 34px; }
.iconbtn:hover, #menubtn[aria-expanded="true"] { background: var(--bg); }
.conn.ok i { box-shadow: none; }
.menupanel { background: var(--card); backdrop-filter: none; border-bottom: 1px solid var(--line); padding: .5rem var(--gut) .7rem; }
.mn { border-radius: 8px; font-weight: 500; }
.mn .ni { color: var(--muted); }
.mn:hover, .mn.on { background: var(--bg); }
.mn.on { color: var(--accent); font-weight: 700; }
.mn.on .ni { color: var(--accent); }

/* zemljevid: blage barve polja, tiha obroba države */
.fullmap .map.big { background: var(--bg); }
.fullmap .maplibregl-ctrl-group { border-radius: 8px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.maplibregl-ctrl-attrib { background: color-mix(in srgb, var(--card) 80%, transparent) !important; font-size: 10px; }

/* levi pas z izbiro prikaza (namizje): ploščati gumbi, meniji se odpirajo na desno */
.fullmap .maptoolbar { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: .35rem; right: auto; top: 10px; left: 10px; }
.fullmap details.dd > summary, .stbtn, .infobtn {
  border-radius: 8px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); padding: .4rem .7rem; font-size: .84rem; font-weight: 600; }
.fullmap details.dd > summary { min-width: 9.5rem; justify-content: space-between; }
.fullmap details.dd > summary:hover, .stbtn:hover, .infobtn:hover { border-color: var(--accent); }
.fullmap details.dd.active > summary { background: var(--card); color: var(--fg); border-color: var(--line); box-shadow: inset 3px 0 0 var(--accent), var(--shadow); }
.fullmap details.dd.active .ddlabel { opacity: 1; color: var(--muted); }
.fullmap .ddlabel { color: var(--muted); font-weight: 600; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.fullmap .ddmenu { top: 0; left: calc(100% + 6px); border-radius: 10px; background: var(--card); min-width: 230px; max-width: 300px; }
.fullmap .ddopts .ddmenu { right: auto; left: calc(100% + 6px); }
.lchip { background: var(--bg); border-radius: 6px; border-color: transparent; padding: .3rem .6rem; font-size: .82rem; }
.lchip:hover { border-color: var(--line); background: var(--bg); }
.lchip.on { background: var(--accent); border-color: var(--accent); font-weight: 600; }
.fullmap .maptoolbar .infobtn { width: 34px; height: 34px; padding: 0; font-size: .9rem; }
/* gumb »Merilne postaje«: privzeto izklopljen */
.stbtn { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; color: var(--fg); font-family: inherit; min-width: 9.5rem; }
.stdot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--muted); background: transparent; display: inline-block; }
.stbtn[aria-pressed="true"] { border-color: var(--accent); }
.stbtn[aria-pressed="true"] .stdot { background: var(--accent); border-color: var(--accent); }

/* kartica »zrak zdaj«, naslov sloja, časovnica, legenda: ravni, tihi */
.aqnow, .fullmap .animmap .timeline, .maptitle { background: var(--card); backdrop-filter: none; border-radius: 10px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.aqnow { top: 10px; right: 56px; padding: .4rem .65rem; }
.aqnow b { border-radius: 6px; font-size: .86rem; }
.maptitle { font-weight: 600; font-size: .84rem; padding: .25rem .6rem; border-radius: 8px; }
.play { background: var(--accent); width: 38px; height: 38px; }
.fullmap .animmap .timeline .play { width: 34px; height: 34px; font-size: .85rem; }
.tl input { accent-color: var(--accent); }
.tlabel small { color: var(--accent); }
.fullmap .legendbox { background: var(--card); backdrop-filter: none; border-top: 1px solid var(--line); }
.steps { border-radius: 3px; border: 0; } .steps i { opacity: .92; }
.fullmap .insight { background: var(--card); border-radius: 10px; }
.insight { border-radius: 10px; }

/* oblaček postaje: čista kartica z velikimi vrednostmi */
.maplibregl-popup-content { font-family: var(--font); }
.maplibregl-popup.tip .maplibregl-popup-content { background: var(--card); border-radius: 10px; padding: 10px 12px; }
.maplibregl-popup.tip .maplibregl-popup-tip { border-top-color: var(--card); border-bottom-color: var(--card); }
.maplibregl-popup.probe .maplibregl-popup-content > b:first-child { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.devtab { font-size: .9rem; margin: .45rem 0; }
.devtab td { padding: .14rem .9rem .14rem 0; }
.devtab td:last-child b { font-size: 1.02rem; font-weight: 700; }
.devtab td:last-child { white-space: nowrap; }
.maplibregl-popup.probe small { color: var(--muted); }

/* spodnja vrstica na telefonu */
.bottomnav { background: var(--card); backdrop-filter: none; border-top: 1px solid var(--line); box-shadow: none; }
.bn { border-radius: 8px; }
.bn.on { background: transparent; color: var(--accent); font-weight: 700; }
.donate { box-shadow: none; }

@media (max-width: 760px) {
  header.top { gap: .5rem; padding-left: 10px; padding-right: 10px; }
  .brand b { display: none; }
  /* telefon: orodna vrstica vodoravno in drsno, meni prek celotne širine, oblaček postaje kot spodnji izvlečni panel */
  .fullmap .maptoolbar { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; right: 0; left: 0; top: 8px; padding: 0 8px; gap: .3rem; scrollbar-width: none; pointer-events: auto; }
  .fullmap .maptoolbar::-webkit-scrollbar { display: none; }
  .fullmap .maptoolbar > * { flex: none; }
  .fullmap details.dd > summary, .stbtn { min-width: 0; padding: .38rem .6rem; font-size: .8rem; }
  .fullmap .ddlabel { font-size: .8rem; text-transform: none; letter-spacing: 0; color: inherit; }
  .fullmap .ddmenu, .fullmap .ddopts .ddmenu { position: fixed; left: 8px; right: 8px; top: calc(var(--hdr, 52px) + 52px); max-width: none; z-index: 1000; }
  .fullmap details.dd { position: static; }
  .fullmap .aqnow { bottom: 118px; right: 8px; }
  .fullmap .legendbox { padding: .15rem .5rem .2rem; }
  .fullmap .legendbox .scale { flex-wrap: nowrap; gap: 2px; }
  .fullmap .legendbox .scale span { font-size: .6rem; padding: .15rem .1rem; border-radius: 4px; white-space: nowrap; overflow: hidden; }
  .fullmap .animmap .maplibregl-ctrl-top-right { top: 56px; }
  .animcard:has(.maplibregl-popup.probe) .timeline, .animcard:has(.maplibregl-popup.probe) .legendbox, .animcard:has(.maplibregl-popup.probe) .aqnow, .animcard:has(.maplibregl-popup.probe) .maptitle { visibility: hidden; }
  .maplibregl-popup.probe { position: fixed !important; left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important; transform: none !important; max-width: none !important; z-index: 1100; }
  .maplibregl-popup.probe .maplibregl-popup-tip { display: none; }
  .maplibregl-popup.probe .maplibregl-popup-content { border-radius: 14px 14px 0 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 24px rgba(16, 24, 40, .18); }
  .maplibregl-popup.probe .maplibregl-popup-content::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: -6px auto 10px; }
  .maplibregl-popup.probe .maplibregl-popup-close-button { top: 6px; right: 6px; font-size: 22px; width: 32px; height: 32px; }
  .devtab td:last-child b { font-size: 1.1rem; }
}

/* ostale strani: brez prelivov in svetlečih krogov – raven zraka pove ena barvna črta in oznaka */
.hero { background: var(--card); border-left: 4px solid var(--lvl); }
.hero::after { display: none; }
.hero h1 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); }
.hero .lvl { border-radius: 8px; }
details.dd.active > summary { background: var(--card); color: var(--fg); border-color: var(--line); box-shadow: inset 3px 0 0 var(--accent); }
details.dd > summary { border-radius: 8px; background: var(--card); }
.btn, .play { box-shadow: none; }
.btn { border-radius: 8px; }
.card .btn.small { border-radius: 6px; }

/* v24: gumb za ponastavitev pogleda, kompaktna kartica postaje */
.resetview { display: grid !important; place-items: center; color: var(--fg); }
.maplibregl-popup.probe .maplibregl-popup-content { padding: 8px 26px 8px 11px; max-width: 230px; }
.maplibregl-popup.probe .devtab { margin: .3rem 0; font-size: .84rem; }
.maplibregl-popup.probe .devtab td:last-child b { font-size: .95rem; }
@media (max-width: 760px) { .maplibregl-popup.probe .maplibregl-popup-content { max-width: none; } .maplibregl-popup.probe .devtab { font-size: .92rem; } }

/* ================================================================ v25: najmanj stalnih elementov, ena pisava in en razmik, brez animacij */
:root { --fs-s: .78rem; --fs-m: .875rem; --fs-l: 1.05rem; --gap: .75rem; }
/* brez nepotrebnih animacij: pogledi se zamenjajo takoj */
.view.enter > *, .boot img { animation: none !important; }
* { scroll-behavior: auto !important; }
.btn, .seg button.on, .lchip.on, .play { color: var(--on-accent); }
.seg button.on, .tabs .on { color: var(--on-accent); }

/* zemljevid: dva stalna gumba (sloj in postaje), vse drugo v meniju sloja */
.fullmap .maptoolbar { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: .4rem; top: 10px; left: 10px; right: auto; }
.layerdd > summary { min-width: 11rem; justify-content: space-between; }
.fullmap .layerdd > summary { min-width: 11rem; }
.layerdd .ddcur::before { content: none !important; }
.fullmap .layerdd .ddmenu { top: calc(100% + 6px); left: 0; min-width: 280px; max-width: min(340px, calc(100vw - 20px)); display: grid; gap: .7rem; }
.msec { display: grid; gap: .3rem; }
.msec > small { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.mchips { display: flex; flex-wrap: wrap; gap: .3rem; }
.opts { border-top: 1px solid var(--line); padding-top: .5rem; }
.opts > summary { cursor: pointer; font-size: var(--fs-m); color: var(--muted); list-style: none; }
.opts > summary::-webkit-details-marker { display: none; }
.opts[open] > summary { margin-bottom: .5rem; }
.opts > * + * { margin-top: .5rem; }
.fullmap .stbtn { min-width: 0; }
.stbtn, .layerdd > summary { height: 36px; }

/* skupne mere: enaka pisava, razmik in zaobljenost povsod */
body { font-size: 15px; }
.card { padding: 1rem 1.1rem; }
.view { gap: var(--gap); }
main.page { padding-top: var(--gap); }
h2 { font-size: var(--fs-l); }
.muted, .small { font-size: var(--fs-m); }
.lchip, details.dd > summary, .stbtn { font-size: var(--fs-m); }
.tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; border-radius: 8px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { white-space: nowrap; flex: none; }
footer.foot { font-size: var(--fs-s); }
footer.foot a { color: var(--muted); }
.aqnow small, .aqnow .more { font-size: .68rem; }
@media (max-width: 760px) {
  .fullmap .maptoolbar { overflow: visible; flex-wrap: nowrap; left: 8px; right: 8px; padding: 0; }
  .fullmap .layerdd { position: static; flex: 1; }
  .fullmap .layerdd > summary { min-width: 0; width: 100%; }
  .fullmap .layerdd .ddmenu { position: fixed; left: 8px; right: 8px; top: calc(var(--hdr, 52px) + 52px); max-width: none; max-height: calc(100svh - var(--hdr, 52px) - var(--bnav, 60px) - 70px); overflow: auto; }
  .fullmap .stbtn { flex: none; }
  .fullmap .animmap .maplibregl-ctrl-top-right { top: 56px; }
}
.layerdd .ddcur { display: inline !important; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layerdd > summary { gap: .6rem; }
@media (max-width: 760px) { .fullmap .maptitle { display: none; } }

/* v49: spodnja navigacija je na telefonu spet vklopljena (Domov, Zrak, Zemljevid, Vreme, Okolje); na večjih zaslonih je navigacija v glavi */
main.page { padding-bottom: max(2rem, calc(1rem + env(safe-area-inset-bottom))); }
@media (max-width: 760px) { main.page { padding-bottom: calc(5.2rem + env(safe-area-inset-bottom)); } footer.foot { padding-bottom: 6rem; } }
.fullmap .legendbox { padding-bottom: calc(.3rem + env(safe-area-inset-bottom)); }
@media (max-width: 760px) {
  .fullmap .animmap .timeline { bottom: calc(40px + env(safe-area-inset-bottom)); }
  .fullmap .aqnow { bottom: calc(112px + env(safe-area-inset-bottom)); }
  .menupanel { max-height: calc(100svh - var(--hdr, 52px)); overflow: auto; }
  .menugrid { grid-template-columns: 1fr 1fr; }
  .mn { min-height: 44px; }
  .iconbtn { width: 40px; height: 40px; }
  #theme { display: grid; }
}

/* v26: pregled stanja zraka, raziskovalnik grafov, primerjava krajev */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--gap); }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .8rem 1rem; display: grid; gap: .35rem; align-content: start; min-width: 0; }
.tile > small { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.tile > b { font-size: var(--fs-l); }
.mini { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: var(--fs-m); }
.mini li { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.mini li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctrls { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.seg { border-radius: 8px; } .seg button { border-radius: 6px; }
.pchips { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .4rem; }
.pchip { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line); background: var(--card); color: var(--fg); border-radius: 8px; padding: .25rem .6rem; font: inherit; font-size: var(--fs-m); cursor: pointer; }
.pchip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.pchip b { color: var(--muted); font-weight: 400; }
.placesel { font: inherit; font-size: var(--fs-m); border: 1px dashed var(--line); background: var(--card); color: var(--fg); border-radius: 8px; padding: .3rem .5rem; }
.explain { background: var(--bg); border-left: 3px solid var(--accent); padding: .6rem .8rem; border-radius: 6px; margin: .6rem 0; font-size: var(--fs-m); line-height: 1.5; }
.cmp { margin-top: .8rem; display: grid; gap: .35rem; }
.cmp h3 { margin: 0 0 .2rem; font-size: var(--fs-m); color: var(--muted); }
.cmprow { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr 3rem 6.5rem; gap: .6rem; align-items: center; font-size: var(--fs-m); }
.cmprow .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmprow .bar { background: var(--bg); border-radius: 4px; height: 12px; overflow: hidden; }
.cmprow .bar i { display: block; height: 100%; border-radius: 4px; }
.cmprow b { text-align: right; }
@media (max-width: 760px) { .cmprow { grid-template-columns: 1fr 3rem 5.5rem; } .cmprow .bar { grid-column: 1 / -1; grid-row: 2; } .cmprow .nm small { display: none; } }
.u-legend { font-size: .72rem; } .u-legend .u-series { padding: 1px 6px; } .u-legend .u-marker { width: .7em; height: .7em; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr 1fr; gap: .5rem; } .tile { padding: .6rem .7rem; } .tile:first-child, .tile:last-child { grid-column: span 1; } .u-legend { font-size: .66rem; } }

/* v26: pregled krajev */
.listbar { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.listbar .search { flex: 1 1 14rem; width: auto; border-radius: 8px; }
.listbar select { font: inherit; font-size: var(--fs-m); border: 1px solid var(--line); background: var(--card); color: var(--fg); border-radius: 8px; padding: .4rem .6rem; }
.placegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--gap); }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .8rem .9rem; display: grid; gap: .5rem; }
.pcard:hover { border-color: var(--accent); }
.pmain { color: inherit; text-decoration: none; display: grid; gap: .45rem; }
.phead { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.phead b { font-size: var(--fs-l); }
.prow { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.pcmp { font-size: var(--fs-s); color: var(--muted); display: flex; gap: .4rem; align-items: center; cursor: pointer; }
.cmpbox:empty { display: none; }
.cmpbox { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .8rem 1rem; display: grid; gap: .5rem; }
.cmpbox h3 { font-size: var(--fs-m); color: var(--muted); margin: .4rem 0 0; }
.back { font-size: var(--fs-m); color: var(--muted); text-decoration: none; }
.charttitle { font-size: var(--fs-m); color: var(--muted); margin: .6rem 0 0; }
a.btn { text-decoration: none; display: inline-block; color: var(--on-accent); }
.fullmap .legendbox > small { max-width: 34ch; font-size: .66rem; line-height: 1.25; }

/* v29: opis vizualizacij (vrsta, obdobje, enota, vir, posodobitev), toplotna karta poteka čez dan */
.viznote { display: flex; flex-wrap: wrap; gap: .2rem 1rem; font-size: var(--fs-s); color: var(--muted); border-top: 1px solid var(--line); padding-top: .5rem; margin-top: .5rem; line-height: 1.45; }
.viznote b { color: var(--fg); font-weight: 600; }
.subview { min-width: 0; }   /* mrežni element sicer zraste na širino vsebine (toplotna karta) in razširi stran */
.heatscroll { overflow-x: auto; padding-bottom: .3rem; }
.hmrow { display: flex; align-items: stretch; min-width: max-content; }
.hmname { position: sticky; left: 0; background: var(--card); z-index: 1; width: 7.5rem; flex: none; font-size: var(--fs-s); padding: .15rem .4rem .15rem 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; }
.hmcell { width: 1.55rem; flex: none; height: 1.5rem; text-align: center; font-size: .62rem; line-height: 1.5rem; border: 1px solid var(--card); border-radius: 3px; color: var(--muted); }
.hmhead .hmcell { border: 0; height: 1.1rem; line-height: 1.1rem; background: none; }
.hmcell.now { border-left: 2px solid var(--fg); }
.hmcell.fc:not(.now) { opacity: .92; }
.hlegend { display: flex; flex-wrap: wrap; gap: 3px; margin: .5rem 0 .3rem; }
.hlegend span { font-size: var(--fs-s); padding: .1rem .5rem; border-radius: 4px; font-weight: 600; }
.pcompare { margin-top: .8rem; }
@media (max-width: 760px) { .hmname { width: 5.2rem; } .hmcell { width: 1.35rem; } }

/* v32: dogodki */
.evlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ev { border-left: 3px solid var(--evc, var(--line)); padding: .1rem 0 .1rem .75rem; }
.evhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; }
.evsev { font-size: var(--fs-s); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--evc); }
.evconf { margin-left: auto; font-size: var(--fs-s); color: var(--muted); }
.evreason { margin: .2rem 0; font-size: var(--fs-m); }
.evmore summary { cursor: pointer; font-size: var(--fs-s); color: var(--muted); }
.evmore p { margin: .25rem 0 0; }

/* v33: stanje sistema */
.sysstate { font-size: var(--fs-s); font-weight: 700; padding: .15rem .6rem; border-radius: 6px; background: var(--bg); }
.sysstate[data-s="ok"] { color: #0f766e; } .sysstate[data-s="notice"] { color: #b45309; } .sysstate[data-s="warning"] { color: #b91c1c; }
.sysalerts { list-style: none; margin: .4rem 0 .8rem; padding: 0; display: grid; gap: .3rem; font-size: var(--fs-m); }
.sysalerts li { border-left: 3px solid var(--line); padding-left: .6rem; }
.sysalerts li[data-sev="warning"] { border-color: #dc2626; } .sysalerts li[data-sev="notice"] { border-color: #d97706; }
.quotas { display: grid; gap: .35rem; }
.qrow { display: grid; grid-template-columns: minmax(8rem, 13rem) 1fr 3rem minmax(5rem, 8rem); gap: .6rem; align-items: center; font-size: var(--fs-m); }
.qgroup h4 { margin: .6rem 0 .2rem; font-size: var(--fs-m); color: var(--muted); }
.qrow small { text-align: right; }
@media (max-width: 560px) { .qrow { grid-template-columns: 1fr 3rem; } .qrow .qbar { grid-column: 1 / -1; grid-row: 2; } .qrow small { grid-column: 1 / -1; text-align: left; } }
.qbar { background: var(--bg); border-radius: 4px; height: 10px; overflow: hidden; } .qbar i { display: block; height: 100%; }
.qrow b { text-align: right; }

/* ================================================================ v34: AgroLuftek (kmetijski modul) – samo obstoječi žetoni (barve, polmeri, vrste podatkov) */
:root { --kind-official: #b45309; }
.kind[data-kind="official"] { color: var(--kind-official); }
.agro-hero .tabs { margin-top: .6rem; display: flex; max-width: 100%; overflow-x: auto; }
.agchip { font-size: .78rem; white-space: normal; text-align: left; }
.stat { min-width: 0; overflow-wrap: anywhere; }
.agro-crops { align-items: center; margin-bottom: .6rem; }
.agro-disclaimer { border-left: 4px solid var(--warn); padding: .35rem .7rem; background: var(--card2); border-radius: 8px; }
.agro-unavail { border: 1px dashed var(--line); border-radius: var(--r); padding: .7rem .9rem; background: var(--card2); }
.official { border-left: 4px solid var(--kind-official); }
.recs { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); margin-top: .6rem; }
.rec { border: 1px solid var(--line); border-radius: var(--r); padding: .7rem .85rem; background: var(--card2); min-width: 0; }
.rec[data-kind="uradno"] { border-left: 4px solid var(--kind-official); }
.rec[data-kind="agroluft_ocena"] { border-left: 4px solid var(--kind-derived); }
.rec[data-kind="predlog_opravila"] { border-left: 4px solid var(--kind-analysis); }
.rec h3 { margin: .25rem 0; }
.rechead { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .82rem; }
.rec dl { display: grid; grid-template-columns: max-content 1fr; gap: .1rem .7rem; margin: .4rem 0 0; }
.rec dt { font-weight: 600; } .rec dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.hourstrip { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; margin: .6rem 0; }
.hourstrip.days { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.hcell { border-radius: 4px; min-height: 2.1rem; display: grid; place-items: center; color: #fff; font-size: .68rem; border: 2px solid transparent; }
.hcell.night { border-color: #1b2633; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.hcell small { font-size: .66rem; color: #fff; }
.farmlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.farmlist li { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: var(--r); padding: .6rem .8rem; }
.farmlist li.on { border-color: var(--accent); }
.formgrid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.formgrid label, .cropline label { display: grid; gap: .2rem; font-size: .85rem; color: var(--muted); }
.cropline label { display: inline-flex; color: var(--fg); gap: .4rem; }
.formgrid input, .formgrid select, .cropopts input, .cropopts select { font: inherit; padding: .4rem .55rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--fg); min-width: 0; }
.locsearch { position: relative; } .locsearch .suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; }
.cropsbox details { border-top: 1px solid var(--line); padding: .4rem 0; } .cropsbox summary { cursor: pointer; font-weight: 600; }
.cropline { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; padding: .2rem 0; }
.cropopts { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.bar { display: inline-block; height: .55rem; border-radius: 3px; vertical-align: middle; min-width: 1px; max-width: 5rem; }
.bar.p { background: #3f7fc2; } .bar.e { background: #f59e0b; }
.agleg .gradient { height: .6rem; border-radius: 4px; margin: .3rem 0; } .agleg .lab { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); }
tr.mine th { color: var(--accent); }
@media (max-width: 640px) { .hourstrip { grid-template-columns: repeat(12, minmax(0, 1fr)); } .rec dl { grid-template-columns: 1fr; } .rec dt { margin-top: .2rem; } }

/* ================================================================ v35: podoba AgroLufteka, bližnjica v glavi, združene strani */

.subtabs { margin: 0 0 .8rem; }
.subview > .card:first-child, .subview > section:first-child { margin-top: 0; }

.page-agroluft { --accent: #2f7d3b; --accent2: #256b31; --on-accent: #fff; --agro-wheat: #d9a441; --agro-soil: #8a6a47; --agro-sky: #4a90c2; }
[data-theme="dark"] .page-agroluft { --accent: #78c27d; --accent2: #8fd494; --on-accent: #0b1b0e; }
.page-agroluft .card h2::before { content: ""; display: inline-block; width: .32rem; height: 1em; border-radius: 3px; background: var(--accent); margin-right: .5rem; vertical-align: -.14em; }
.page-agroluft .cardhead h1::before, .page-agroluft .agro-hero h1::before { content: none; }
.page-agroluft .stat { border-top: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.page-agroluft .alerts li { background: color-mix(in srgb, var(--accent) 6%, var(--card2)); }
.agro-hero { position: relative; overflow: hidden; padding-bottom: .8rem;
  background: linear-gradient(90deg, var(--card) 0%, var(--card) 38%, color-mix(in srgb, var(--card) 40%, transparent) 70%, transparent 100%), url(agroluft-hero.svg) right center / cover no-repeat, var(--card); }
.agro-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: .45rem; }
.agro-logo { border-radius: 14px; box-shadow: 0 2px 10px color-mix(in srgb, #2a7336 35%, transparent); flex: none; }
.agro-hero h1 { margin: 0; font-size: clamp(1.7rem, 4.2vw, 2.4rem); line-height: 1; color: #2a7336; letter-spacing: -.03em; }
[data-theme="dark"] .agro-hero h1 { color: #8fd494; }
.agro-hero h1 .l { color: var(--agro-sky); }
.agro-hero .tag { margin: .2rem 0 0; font-size: .85rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.agro-ctx { margin: 0 0 .6rem; font-size: .9rem; max-width: 46rem; }
.agro-hero .tabs { background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(6px); }
.agro-hero .tabs button { display: inline-flex; align-items: center; gap: .35rem; }
.agro-hero .tabs .ti { display: inline-grid; place-items: center; line-height: 0; }
@media (max-width: 640px) { .agro-hero { background: linear-gradient(180deg, var(--card) 0%, var(--card) 45%, color-mix(in srgb, var(--card) 55%, transparent) 100%), url(agroluft-hero.svg) right bottom / cover no-repeat, var(--card); } .agro-logo { width: 44px; height: 44px; } }
.agro-share { margin-left: auto; align-self: flex-start; }

/* v38: statično besedilo za iskalnike (v #app do zagona aplikacije) */
.seo-fallback { max-width: 44rem; margin: 0 auto; padding: 1rem var(--gut, 16px) 3rem; color: var(--muted); font-size: .92rem; }
.seo-fallback h1 { font-size: 1.15rem; color: var(--fg); } .seo-fallback ul { padding-left: 1.1rem; }

/* AgroLuftek: povezava nazaj v Luftek (modra, nevtralna) */
[data-theme="dark"] 
/* Cvetni prah: zavihki virov, urni potek, tabela NLZOH */
.ptabs { margin: .2rem 0 .8rem; }
.cell b { font-weight: 800; } .cell small { font-weight: 600; font-size: .62rem; }
.ptable details { margin-top: .6rem; font-size: .82rem; } .ptable summary { cursor: pointer; color: var(--muted); }
.hourly { display: grid; gap: .25rem; padding-top: .4rem; }
.hrow { display: grid; grid-template-columns: 4.6rem 1fr auto; gap: .5rem; align-items: center; }
.hrow .nm { font-weight: 600; font-size: .78rem; } .spark svg { display: block; width: 100%; max-width: 150px; height: 26px; }
.tscroll { overflow-x: auto; margin: .6rem 0; }
.nlt { border-collapse: separate; border-spacing: 3px; font-size: .8rem; min-width: 30rem; width: 100%; }
.nlt th { text-align: left; font-weight: 600; white-space: nowrap; padding-right: .5rem; } .nlt thead th { text-align: center; color: var(--muted); font-size: .72rem; }
.nlt .nc { display: block; text-align: center; border-radius: 6px; padding: .22rem 0; font-weight: 800; font-size: .72rem; min-width: 1.9rem; }
.nlt td.tr { text-align: center; font-weight: 800; color: var(--muted); }
.nllegend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .76rem; color: var(--muted); margin: .4rem 0; }
.nllegend i { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; margin-right: .3rem; vertical-align: -.1rem; }
.nlz .seg { margin: .4rem 0; }
.ptabs { display: flex; flex-wrap: wrap; max-width: 100%; min-width: 0; } .ptabs button { white-space: nowrap; }
.card.intro .scale.pollen { flex-wrap: wrap; }

/* uradna opozorila ARSO/DHMZ */
.warncard { border-left: 5px solid #f5c518; }
.warncard[data-level="3"] { border-left-color: #f28c28; }
.warncard[data-level="4"] { border-left-color: #d33; }
.warnsec h3 { margin: .8rem 0 .3rem; font-size: 1rem; }
.warnlist { list-style: none; margin: 0; padding: 0; }
.warnlist li { padding: .35rem 0; border-top: 1px solid var(--line); }
.warnlist summary { cursor: pointer; }
.wlevel { display: inline-block; padding: .08rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 700; color: #1b1b1b; background: #f5c518; }
.wlevel[data-level="3"] { background: #f28c28; }
.wlevel[data-level="4"] { background: #d33; color: #fff; }
.warnbody { padding: .4rem 0 .2rem .2rem; }


/* sestava delcev PM2,5 */
.pmsrc .hcell{display:flex;flex-direction:column;align-items:center;gap:2px}
.pmbar{height:80px;width:14px;display:flex;flex-direction:column-reverse;justify-content:flex-start}
.pmbar i{display:block;width:100%}
.pmleg{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:.8rem;margin:6px 0}
.pmleg i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:4px}


.sctitle small { display: block; }
/* oznaka uradna/zasebna stoji poleg imena postaje */
.scard .sctitle b { display: inline; white-space: normal; }

/* gumb Buy Me a Coffee: majhna bela pilula z rumeno skodelico, v nogi in kot pojavni gumb na zemljevidu */
.bmc { display: inline-flex; align-items: center; gap: .4rem; height: 30px; padding: 0 .75rem 0 .3rem; border-radius: 999px; background: #fff; color: #111 !important; border: 1px solid rgba(0,0,0,.55); font-weight: 700; font-size: .78rem; line-height: 1; text-decoration: none; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.14); }
.bmc .cup { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 999px; background: #FFDD00; font-size: .8rem; }
.bmc:hover { background: #fffbe0; }
.bmcrow { margin: .5rem 0 0; }
footer.foot a.bmc { display: inline-flex; min-height: 0; padding: 0 .75rem 0 .3rem; color: #111; }   /* wins over footer.foot a, otherwise the text falls out of the pill */
.bmcpop { position: fixed; right: 10px; bottom: 150px; z-index: 45; display: flex; align-items: center; gap: .25rem; animation: bmcin .6s ease-out; transition: opacity .6s ease, transform .6s ease; }
.bmcpop.out { opacity: 0; transform: translateY(8px); pointer-events: none; }
.bmcx { width: 22px; height: 22px; border-radius: 999px; border: 1px solid rgba(0,0,0,.35); background: #fff; color: #111; font-size: .85rem; line-height: 1; cursor: pointer; padding: 0; }
@keyframes bmcin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bmcpop { animation: none; transition: none; } }
@media print { .bmcpop, .bmc { display: none; } }
@media (max-width: 1100px) { .bmcpop { bottom: calc(190px + env(safe-area-inset-bottom)); } }

/* Cvetni prah: kraji s podatki Google Maps (navedba ob podatkih, besedilo po pravilih Google) */
.gmaps { font-family: Roboto, Arial, sans-serif; font-weight: 400; font-size: 12px; color: #5e5e5e; white-space: nowrap; letter-spacing: normal; }
[data-theme="dark"] .gmaps { color: #ffffff; }
.gplace summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; color: var(--fg); }
.gplace summary .gmaps { margin-left: auto; }
