/*
 * Golubarska prognoza 3.0 — stilovi aplikacije (generisano, ne menjati ručno).
 * Izvor: tmp/golub3-prototype/proto.css + ops/golub-app/app-extra.css
 * Gradi: py -3 ops/golub-app/build_app_css.py
 */
:root {
	/* tlo i površine */
	--g3-bg: #f4f7fc;
	--g3-surface: #ffffff;
	--g3-surface-2: #eef2f9;
	--g3-sunk: #e3e9f4;
	--g3-line: #d7dfec;
	--g3-line-strong: #b4c1d6;
	/* tekst */
	--g3-ink: #0f172a;
	--g3-ink-2: #334155;
	--g3-muted: #475569;
	--g3-faint: #55647a;
	/* naglasak (Vedrina 2) */
	--g3-accent: #2563eb;
	--g3-accent-2: #4f46e5;
	--g3-accent-ink: #1d4ed8;
	--g3-accent-soft: #e8f0ff;
	--g3-on-accent: #ffffff;
	--g3-sky: linear-gradient(135deg, #eaf2ff 0%, #e2ebff 46%, #ece7ff 100%);
	--g3-glass: rgba(255, 255, 255, .78);
	--g3-glass-line: rgba(15, 23, 42, .08);
	--g3-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 14px 34px -20px rgba(15, 23, 42, .32);
	/* vetar: mirno / umeren (>=5) / jak (>=7) */
	--g3-calm: #5f7fb4;
	--g3-mod: #d97706;
	--g3-mod-ink: #8f4405;
	--g3-mod-bg: #fff1d6;
	--g3-strong: #dc2626;
	--g3-strong-ink: #a51616;
	--g3-strong-bg: #fde4e4;
	/* stanje */
	--g3-ok-ink: #14613a;
	--g3-ok-bg: #dff5e7;
	--g3-rain-ink: #075985;
	--g3-rain-bg: #e0f2fe;
	--g3-sun: #b45309;
	--g3-night-bg: #e9edf6;
	--g3-night-ink: #3f4d63;
	--g3-bar: #0f172a;
	--g3-on-bar: #f4f7fc;
	/* grupe kolona u tabeli (iste boje kao sada) */
	--g3-grp-info: #94a3b8;
	--g3-grp-info-bg: #eef1f6;
	--g3-grp-info-ink: #475569;
	--g3-grp-temp: #3b82f6;
	--g3-grp-temp-bg: #e9f1ff;
	--g3-grp-temp-ink: #1d4ed8;
	--g3-grp-wind: #22c55e;
	--g3-grp-wind-bg: #e6f7ec;
	--g3-grp-wind-ink: #166534;
	--g3-grp-cloud: #f59e0b;
	--g3-grp-cloud-bg: #fff4dd;
	--g3-grp-cloud-ink: #92400e;
	/* mere */
	--g3-radius: 22px;
	--g3-radius-sm: 14px;
	--g3-radius-xs: 10px;
	--g3-gap: 18px;
	--g3-max: 1680px;
	--g3-header-h: 64px;
	--g3-rail-w: 300px;
	--g3-sticky-top: 8px;
	--g3-font: "Space Grotesk", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--g3-bg: #0a1120; --g3-surface: #111b30; --g3-surface-2: #17233b; --g3-sunk: #1e2c48; --g3-line: #26344f; --g3-line-strong: #40527a;
		--g3-ink: #e8eef8; --g3-ink-2: #cbd5e4; --g3-muted: #b3c0d3; --g3-faint: #9aa9bf;
		--g3-accent: #8bb4ff; --g3-accent-2: #a5b4fc; --g3-accent-ink: #a9c8ff; --g3-accent-soft: #1b2b4f; --g3-on-accent: #0b1220;
		--g3-sky: linear-gradient(135deg, #16213a 0%, #1a2747 50%, #241f45 100%);
		--g3-glass: rgba(15, 23, 42, .55); --g3-glass-line: rgba(255, 255, 255, .1);
		--g3-shadow: 0 1px 0 rgba(255, 255, 255, .04), 0 18px 38px -22px rgba(0, 0, 0, .9);
		--g3-calm: #7f9bd0; --g3-mod: #f59e0b; --g3-mod-ink: #fcd34d; --g3-mod-bg: #3b2a0c;
		--g3-strong: #ef4444; --g3-strong-ink: #fecaca; --g3-strong-bg: #4a161c;
		--g3-ok-ink: #86efac; --g3-ok-bg: #10331f; --g3-rain-ink: #7dd3fc; --g3-rain-bg: #0c2e44;
		--g3-sun: #fbbf24; --g3-night-bg: #0d1628; --g3-night-ink: #a7b4c8; --g3-bar: #22325a; --g3-on-bar: #eef3fb;
		--g3-grp-info-bg: #1a2438; --g3-grp-info-ink: #b3c0d3;
		--g3-grp-temp-bg: #16264a; --g3-grp-temp-ink: #93c5fd;
		--g3-grp-wind-bg: #11301f; --g3-grp-wind-ink: #86efac;
		--g3-grp-cloud-bg: #33270c; --g3-grp-cloud-ink: #fcd34d;
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--g3-bg: #0a1120; --g3-surface: #111b30; --g3-surface-2: #17233b; --g3-sunk: #1e2c48; --g3-line: #26344f; --g3-line-strong: #40527a;
	--g3-ink: #e8eef8; --g3-ink-2: #cbd5e4; --g3-muted: #b3c0d3; --g3-faint: #9aa9bf;
	--g3-accent: #8bb4ff; --g3-accent-2: #a5b4fc; --g3-accent-ink: #a9c8ff; --g3-accent-soft: #1b2b4f; --g3-on-accent: #0b1220;
	--g3-sky: linear-gradient(135deg, #16213a 0%, #1a2747 50%, #241f45 100%);
	--g3-glass: rgba(15, 23, 42, .55); --g3-glass-line: rgba(255, 255, 255, .1);
	--g3-shadow: 0 1px 0 rgba(255, 255, 255, .04), 0 18px 38px -22px rgba(0, 0, 0, .9);
	--g3-calm: #7f9bd0; --g3-mod: #f59e0b; --g3-mod-ink: #fcd34d; --g3-mod-bg: #3b2a0c;
	--g3-strong: #ef4444; --g3-strong-ink: #fecaca; --g3-strong-bg: #4a161c;
	--g3-ok-ink: #86efac; --g3-ok-bg: #10331f; --g3-rain-ink: #7dd3fc; --g3-rain-bg: #0c2e44;
	--g3-sun: #fbbf24; --g3-night-bg: #0d1628; --g3-night-ink: #a7b4c8; --g3-bar: #22325a; --g3-on-bar: #eef3fb;
	--g3-grp-info-bg: #1a2438; --g3-grp-info-ink: #b3c0d3;
	--g3-grp-temp-bg: #16264a; --g3-grp-temp-ink: #93c5fd;
	--g3-grp-wind-bg: #11301f; --g3-grp-wind-ink: #86efac;
	--g3-grp-cloud-bg: #33270c; --g3-grp-cloud-ink: #fcd34d;
	color-scheme: dark;
}

/* ── Osnova ─────────────────────────────────────────────────────────────── */
.g3-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.g3-num { font-variant-numeric: tabular-nums; }
.g3-ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g3-arrow { flex: none; display: inline-block; vertical-align: middle; }
.g3-wrap { width: 100%; max-width: var(--g3-max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* ── Traka aplikacije: Prognoza · Ensemble · Mapa · Alati ───────────────── */
.g3-appnav { background: var(--g3-surface); border-bottom: 1px solid var(--g3-line); }
.g3-appnav__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding-block: 6px; max-width: 620px; }
.g3-appnav__link { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 6px 8px; border-radius: 12px; font-weight: 800; font-size: .92rem; color: var(--g3-muted); }
.g3-appnav__link:hover { background: var(--g3-surface-2); text-decoration: none; color: var(--g3-ink); }
.g3-appnav__link[aria-current="page"] { background: var(--g3-accent-soft); color: var(--g3-accent-ink); }
@media (max-width: 420px) { .g3-appnav__link { flex-direction: column; gap: 2px; font-size: .8rem; min-height: 52px; } }

/* ── Vrh: region, „Start i silazak", stanje ─────────────────────────────── */
.g3-page { display: flex; flex-direction: column; gap: var(--g3-gap); padding-block: 16px 40px; }
.g3-hero { display: grid; gap: 12px; padding: 14px; border-radius: var(--g3-radius); background: var(--g3-sky); border: 1px solid var(--g3-glass-line); box-shadow: var(--g3-shadow); }
.g3-title { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 2px 4px; }
.g3-eyebrow { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--g3-accent-ink); }
.g3-h1 { font-size: clamp(1.5rem, 4.6vw, 2.15rem); line-height: 1.12; font-weight: 800; letter-spacing: -.015em; text-wrap: balance; }
.g3-h1 small { display: block; font-size: .5em; font-weight: 800; letter-spacing: .02em; color: var(--g3-muted); margin-bottom: 3px; }
.g3-cities { color: var(--g3-muted); font-size: .95rem; }
.g3-regionbtn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; margin-top: 4px; padding: 8px 14px; border-radius: 14px; border: 1px solid var(--g3-line-strong); background: var(--g3-surface); color: var(--g3-ink); font-weight: 800; }
.g3-regionbtn:hover { border-color: var(--g3-accent); }
.g3-regionbtn small { font-weight: 700; color: var(--g3-faint); }
.g3-address { font-size: .76rem; color: var(--g3-faint); overflow-wrap: anywhere; }
.g3-address code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .95em; color: var(--g3-muted); }

.g3-status { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g3-stat { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 9px 12px; border-radius: var(--g3-radius-sm); background: var(--g3-glass); border: 1px solid var(--g3-glass-line); }
.g3-stat__label { font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--g3-faint); }
.g3-stat__value { font-weight: 800; font-size: .98rem; line-height: 1.25; }
.g3-stat__sub { font-size: .8rem; color: var(--g3-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 999px) { .g3-status .g3-dots, .g3-status #g3-age { display: none; } .g3-stat { padding: 7px 10px; } }
.g3-dots { display: inline-flex; gap: 4px; margin-top: 4px; }
.g3-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--g3-line-strong); }
.g3-dots i.is-on { background: var(--g3-ok-ink); }

/* Start i silazak */
.g3-flight { min-width: 0; padding: 10px; border-radius: 18px; background: var(--g3-glass); border: 1px solid var(--g3-glass-line); }
.g3-flight__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; padding: 0 4px 8px; }
.g3-flight__title { font-size: 1rem; font-weight: 800; }
.g3-flight__hint { font-size: .76rem; color: var(--g3-faint); }
.g3-flight__rows { display: grid; gap: 6px; }
.g3-flight__row { display: grid; grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1fr); gap: 5px; align-items: stretch; }
.g3-flight__colhead { font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--g3-faint); padding: 0 6px; }
.g3-flight__day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 60px; padding: 4px 2px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--g3-ink); font-weight: 800; line-height: 1.15; }
.g3-flight__day small { font-size: .72rem; font-weight: 700; color: var(--g3-faint); }
.g3-flight__day:hover { border-color: var(--g3-line-strong); }
.g3-flight__day[aria-pressed="true"] { background: var(--g3-accent-soft); border-color: var(--g3-accent); color: var(--g3-accent-ink); }
.g3-flight__cell { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "term term" "wx risk" "winds winds"; align-items: center; gap: 2px 6px; min-width: 0; padding: 6px 7px; border-radius: 12px; background: var(--g3-surface); border: 1px solid var(--g3-line); }
.g3-flight__cell--empty { display: grid; place-items: center; color: var(--g3-faint); }
.g3-flight__term { grid-area: term; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font-size: .8rem; color: var(--g3-muted); white-space: nowrap; }
.g3-flight__term b { font-size: .98rem; color: var(--g3-ink); }
.g3-flight__sun { display: inline-flex; align-items: center; gap: 3px; }
.g3-flight__sun .g3-ic { width: 1em; height: 1em; color: var(--g3-sun); }
.g3-flight__wx { grid-area: wx; display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 1.02rem; }
.g3-m, .g3-wide { display: none; }
.g3-flight__wx img { width: 30px; height: 30px; }
.g3-flight__winds { grid-area: winds; display: flex; justify-content: space-between; gap: 4px; }
.g3-flight__wind { display: inline-flex; align-items: center; gap: 2px; font-size: .86rem; white-space: nowrap; }
.g3-flight__wind small { font-size: .68rem; font-weight: 700; color: var(--g3-faint); margin-right: 1px; }
.g3-flight__wind b { min-width: 1.2em; padding: 0 4px; border-radius: 6px; text-align: center; font-weight: 800; }
.g3-flight__wind .g3-arrow { color: var(--g3-ink-2); }
.g3-flight__risk { grid-area: risk; }

/* zajedničke oznake: vetar i rizik */
.is-mod { background: var(--g3-mod-bg); color: var(--g3-mod-ink); }
.is-strong { background: var(--g3-strong-bg); color: var(--g3-strong-ink); }
.g3-pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .03em; white-space: nowrap; border: 1px solid transparent; }
.g3-pill--ok { background: var(--g3-ok-bg); color: var(--g3-ok-ink); }
.g3-pill--risk { background: var(--g3-strong-bg); color: var(--g3-strong-ink); border-color: color-mix(in srgb, var(--g3-strong) 45%, transparent); }
.g3-pill .g3-ic { width: 1em; height: 1em; stroke-width: 2.6; }
button.g3-pill { min-height: 32px; }
button.g3-pill:hover { border-color: var(--g3-strong); }

@media (min-width: 1000px) {
	.g3-hero { grid-template-columns: minmax(250px, .9fr) minmax(520px, 1.5fr) minmax(220px, .62fr); align-items: stretch; padding: 16px; gap: 14px; }
	.g3-title { justify-content: center; padding: 4px 8px; }
	.g3-status { grid-template-columns: 1fr; }
	.g3-flight__row { grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
	.g3-flight__cell { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "term risk" "wx winds"; gap: 3px 12px; padding: 7px 12px; }
	.g3-flight__term { justify-content: flex-start; gap: 10px; }
	.g3-flight__risk { justify-self: end; }
	.g3-flight__winds { justify-content: flex-end; gap: 12px; }
	.g3-m, .g3-wide { display: inline; }
	.g3-flight { padding: 12px; }
}

/* ── Režim: prognoza / takmičenje ───────────────────────────────────────── */
.g3-controls { display: grid; gap: 10px; }
.g3-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 18px; background: var(--g3-surface); border: 1px solid var(--g3-line); }
.g3-mode__btn { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ic t" "ic d"; column-gap: 9px; align-items: center; text-align: left; min-height: 52px; padding: 7px 12px; border: 0; border-radius: 14px; background: transparent; color: var(--g3-muted); }
.g3-mode__btn .g3-ic { grid-area: ic; width: 22px; height: 22px; }
.g3-mode__btn b { grid-area: t; font-size: .86rem; font-weight: 800; letter-spacing: .03em; line-height: 1.15; }
.g3-mode__btn span { grid-area: d; font-size: .74rem; line-height: 1.2; }
.g3-mode__btn[aria-pressed="true"], .g3-mode__btn[aria-current="true"] { background: linear-gradient(135deg, var(--g3-accent), var(--g3-accent-2)); color: var(--g3-on-accent); }
.g3-mode__btn:disabled { cursor: not-allowed; color: var(--g3-faint); }
.g3-compbadge { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-radius: var(--g3-radius-sm); background: var(--g3-accent-soft); border: 1px solid color-mix(in srgb, var(--g3-accent) 40%, transparent); color: var(--g3-ink); font-size: .9rem; }
.g3-compbadge .g3-ic { color: var(--g3-accent-ink); width: 22px; height: 22px; margin-top: 1px; }
.g3-compbadge b { color: var(--g3-accent-ink); }
.g3-notice { padding: 10px 14px; border-radius: var(--g3-radius-sm); border: 1px dashed var(--g3-line-strong); background: var(--g3-surface); font-size: .86rem; color: var(--g3-muted); }
@media (min-width: 1000px) {
	.g3-controls { grid-template-columns: minmax(420px, 620px) minmax(0, 1fr); align-items: center; }
	.g3-controls > .g3-compbadge, .g3-controls > .g3-notice { grid-column: 1 / -1; }
	.g3-controls__meta { justify-self: end; }
}
.g3-controls__meta { font-size: .78rem; color: var(--g3-faint); }
@media (max-width: 767px) { .g3-controls__meta, .g3-shortcuts--inline { display: none; } .g3-hero { padding: 10px; } .g3-flight { padding: 8px; } }

/* ── Raspored: sadržaj + bočna kolona ───────────────────────────────────── */
.g3-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--g3-gap); align-items: start; }
.g3-main { display: flex; flex-direction: column; gap: var(--g3-gap); min-width: 0; }
.g3-rail { display: none; }
@media (min-width: 1400px) {
	.g3-layout { grid-template-columns: minmax(0, 1fr) var(--g3-rail-w); }
	.g3-rail { display: block; position: sticky; top: calc(var(--vm-header-h, 64px) + 16px); }
	.g3-rail__inner { display: flex; flex-direction: column; gap: 12px; }
	.g3-shortcuts--inline { display: none; }
}
.g3-shortcuts { padding: 12px; border-radius: 18px; background: var(--g3-surface); border: 1px solid var(--g3-line); }
.g3-shortcuts__title { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--g3-faint); padding: 0 4px 6px; }
.g3-shortcuts__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 6px; }
.g3-shortcuts__list a { display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 4px 6px; border-radius: 9px; font-size: .84rem; font-weight: 700; color: var(--g3-ink-2); }
.g3-shortcuts__list a:hover { background: var(--g3-surface-2); color: var(--g3-accent-ink); text-decoration: none; }
.g3-shortcuts__list .g3-ic { color: var(--g3-accent-ink); }
.g3-shortcuts--inline { padding: 0; border: 0; background: none; }
.g3-shortcuts--inline .g3-shortcuts__title { display: none; }
.g3-shortcuts--inline .g3-shortcuts__list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.g3-shortcuts--inline .g3-shortcuts__list::-webkit-scrollbar { display: none; }
.g3-shortcuts--inline .g3-shortcuts__list a { flex: none; min-height: 44px; padding: 6px 12px; border: 1px solid var(--g3-line); border-radius: 999px; background: var(--g3-surface); white-space: nowrap; }
.g3-adslot { display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; padding: 12px; border-radius: 14px; border: 2px dashed var(--g3-line-strong); background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--g3-line) 55%, transparent) 14px 15px); color: var(--g3-faint); font-size: .8rem; }
.g3-adslot b { font-size: .95rem; color: var(--g3-muted); }
.g3-adslot--rail { width: 300px; height: 600px; }
.g3-adslot--inline { width: 300px; max-width: 100%; height: 250px; margin: 2px auto; }
@media (min-width: 768px) { .g3-only-phone { display: none; } }
@media (max-height: 889px) { .g3-adslot--rail { height: 250px; } }

/* ── Traka dana i prikaza ───────────────────────────────────────────────── */
.g3-toolbar { display: grid; gap: 10px; padding: 10px; border-radius: 18px; background: var(--g3-surface); border: 1px solid var(--g3-line); box-shadow: var(--g3-shadow); }
.g3-days { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 1px; }
.g3-days::-webkit-scrollbar { display: none; }
.g3-chip { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 70px; min-height: 48px; padding: 4px 12px; border-radius: 12px; border: 1px solid var(--g3-line); background: var(--g3-surface-2); color: var(--g3-ink); font-weight: 800; line-height: 1.15; }
.g3-chip small { font-size: .74rem; font-weight: 700; color: var(--g3-faint); }
.g3-chip__short { display: none; }
@media (max-width: 520px) { .g3-chip { flex: 1 1 0; min-width: 0; padding: 4px 6px; } .g3-chip__long { display: none; } .g3-chip__short { display: inline; } }
.g3-chip:hover { border-color: var(--g3-accent); }
.g3-chip[aria-pressed="true"] { background: linear-gradient(135deg, var(--g3-accent), var(--g3-accent-2)); border-color: transparent; color: var(--g3-on-accent); }
.g3-chip[aria-pressed="true"] small { color: var(--g3-on-accent); }
.g3-view { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--g3-surface-2); border: 1px solid var(--g3-line); }
.g3-view__btn { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 6px 16px; border: 0; border-radius: 10px; background: transparent; color: var(--g3-muted); font-weight: 800; font-size: .92rem; }
.g3-view__btn[aria-pressed="true"] { background: var(--g3-surface); color: var(--g3-accent-ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .16); }
@media (min-width: 768px) {
	.g3-toolbar { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
	.g3-chip { flex: 0 0 auto; }
}

/* ── Kartice termina (telefon podrazumevano) ───────────────────────────── */
.g3-cards { display: flex; flex-direction: column; gap: 22px; }
.g3-cardday { display: flex; flex-direction: column; gap: 10px; }
.g3-dayhead { position: sticky; top: var(--g3-sticky-top); z-index: 5; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 4px; padding: 4px; border-radius: 16px; background: var(--g3-bar); color: var(--g3-on-bar); box-shadow: var(--g3-shadow); }
.g3-dayhead__nav { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--g3-on-bar); }
.g3-dayhead__nav:disabled { opacity: .3; cursor: default; }
.g3-dayhead__nav:not(:disabled):hover { background: color-mix(in srgb, var(--g3-on-bar) 16%, transparent); }
.g3-dayhead__txt { min-width: 0; text-align: center; line-height: 1.2; }
.g3-dayhead__txt b { display: block; font-size: 1rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g3-dayhead__txt span { font-size: .8rem; color: color-mix(in srgb, var(--g3-on-bar) 85%, transparent); white-space: nowrap; }
.g3-dayhead__txt .g3-ic { width: .95em; height: .95em; vertical-align: -1px; }
.g3-termgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 10px; align-items: start; }

.g3-term { min-width: 0; border-radius: 18px; background: var(--g3-surface); border: 1px solid var(--g3-line); box-shadow: 0 1px 2px rgba(15, 23, 42, .05); overflow: hidden; }
.g3-term__head { display: grid; grid-template-columns: auto 40px minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; width: 100%; min-height: 58px; padding: 8px 12px; border: 0; background: transparent; text-align: left; color: inherit; }
.g3-term__time { font-size: 1.4rem; font-weight: 800; letter-spacing: -.01em; line-height: 1; font-variant-numeric: tabular-nums; }
.g3-term__icon { width: 40px; height: 40px; }
.g3-term__desc { min-width: 0; font-weight: 700; font-size: .9rem; line-height: 1.2; }
.g3-term__role { display: block; margin-top: 2px; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--g3-accent-ink); }
.g3-term__role .g3-ic { width: 1em; height: 1em; vertical-align: -1px; color: var(--g3-sun); }
.g3-term__riskline { display: flex; gap: 8px; align-items: flex-start; padding: 7px 12px; background: var(--g3-strong-bg); color: var(--g3-strong-ink); font-size: .84rem; font-weight: 700; line-height: 1.3; }
.g3-term__riskline .g3-ic { margin-top: 2px; }

/* lestvica vetra: jedna skala 0–14 m/s, pragovi 5 i 7 */
.g3-ladder { --lad-h: 52px; --lad-d: 52px; --lad-v: 30px; --lad-gap: 8px; --lad-pad: 12px; position: relative; display: grid; gap: 5px; padding: 8px var(--lad-pad) 10px; border-top: 1px solid var(--g3-line); }
.g3-ladder__head, .g3-rung { display: grid; grid-template-columns: var(--lad-h) var(--lad-d) minmax(0, 1fr) var(--lad-v); align-items: center; gap: var(--lad-gap); }
.g3-ladder__head { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--g3-faint); min-height: 16px; }
.g3-ladder__head > :first-child { grid-column: 1 / 3; white-space: nowrap; }
.g3-ladder__scale { position: relative; height: 12px; letter-spacing: 0; }
.g3-ladder__scale span { position: absolute; top: 0; transform: translateX(-50%); line-height: 12px; }
.g3-ladder__unit { text-align: right; text-transform: none; letter-spacing: 0; }
.g3-ladder__guides { position: absolute; top: 28px; bottom: 9px; left: calc(var(--lad-pad) + var(--lad-h) + var(--lad-d) + 2 * var(--lad-gap)); right: calc(var(--lad-pad) + var(--lad-v) + var(--lad-gap)); pointer-events: none; }
.g3-ladder__guides i { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--g3-line-strong); }
.g3-rung { min-height: 22px; font-size: .88rem; }
.g3-rung__h { text-align: right; font-weight: 700; color: var(--g3-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.g3-rung__dir { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: .8rem; color: var(--g3-ink-2); white-space: nowrap; }
.g3-rung__bar { position: relative; z-index: 1; height: 10px; border-radius: 4px; background: color-mix(in srgb, var(--g3-sunk) 70%, transparent); }
.g3-rung__bar i { display: block; height: 100%; min-width: 3px; border-radius: 0 4px 4px 0; background: var(--g3-calm); }
.g3-rung__v { justify-self: end; min-width: 26px; padding: 0 5px; border-radius: 7px; text-align: center; font-weight: 800; font-size: .98rem; font-variant-numeric: tabular-nums; }
.g3-rung--mod .g3-rung__bar i { background: var(--g3-mod); }
.g3-rung--strong .g3-rung__bar i { background: var(--g3-strong); }
.g3-rung--gust { min-height: 18px; font-size: .8rem; }
.g3-rung--gust .g3-rung__h { grid-column: 1 / 3; text-align: left; padding-left: 14px; font-weight: 800; color: var(--g3-ink-2); }
.g3-rung--gust .g3-rung__bar { height: 7px; }
.g3-rung--gust .g3-rung__bar i { background: repeating-linear-gradient(135deg, var(--g3-calm) 0 3px, transparent 3px 6px); border: 1px solid var(--g3-calm); }
.g3-rung--gust.g3-rung--mod .g3-rung__bar i { background: repeating-linear-gradient(135deg, var(--g3-mod) 0 3px, transparent 3px 6px); border-color: var(--g3-mod); }
.g3-rung--gust.g3-rung--strong .g3-rung__bar i { background: repeating-linear-gradient(135deg, var(--g3-strong) 0 3px, transparent 3px 6px); border-color: var(--g3-strong); }
.g3-trial { font-size: .62rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 0 5px; border-radius: 5px; border: 1px dashed var(--g3-line-strong); color: var(--g3-faint); vertical-align: 1px; white-space: nowrap; }

.g3-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--g3-line); }
.g3-facts--2 { grid-template-columns: 1fr 1fr; }
.g3-fact { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 6px 8px 7px; }
.g3-fact + .g3-fact { border-left: 1px solid var(--g3-line); }
.g3-fact dt { font-size: .64rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--g3-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g3-fact dd { display: flex; align-items: center; flex-wrap: wrap; gap: 0 5px; font-weight: 800; font-size: .96rem; line-height: 1.25; font-variant-numeric: tabular-nums; }
.g3-fact dd small { font-size: .74rem; font-weight: 700; color: var(--g3-muted); }
.g3-fact dt .g3-ic { width: 1.15em; height: 1.15em; vertical-align: -2px; margin-right: 3px; }
.g3-fact dd.g3-pair { gap: 0 12px; }
.g3-fact dd.g3-pair span { white-space: nowrap; }
.g3-fact dd .g3-ic { color: var(--g3-accent-ink); }
.g3-fact--warn { background: var(--g3-mod-bg); }
.g3-fact--warn dd, .g3-fact--warn dt { color: var(--g3-mod-ink); }
.g3-fact--danger { background: var(--g3-strong-bg); }
.g3-fact--danger dd, .g3-fact--danger dt { color: var(--g3-strong-ink); }
.g3-fact--rain dd { color: var(--g3-rain-ink); }
.g3-fact--none dd { color: var(--g3-faint); font-weight: 700; }

/* noćni termini: prigušeni; u skupljenom obliku jedan red */
.g3-term--night { background: var(--g3-night-bg); border-style: dashed; box-shadow: none; }
.g3-term--night .g3-term__time { color: var(--g3-night-ink); }
.g3-term--night .g3-term__icon { opacity: .8; }
.g3-term--night .g3-rung__bar i { opacity: .75; }
.g3-term__nightsum { display: none; }
.g3-term__chev { display: none; color: var(--g3-faint); transition: transform .15s; }
.g3-term--fold .g3-term__head { grid-template-columns: auto 30px minmax(0, 1fr) auto 20px; cursor: pointer; min-height: 56px; padding-block: 7px; }
.g3-term--fold .g3-term__desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--g3-night-ink); }
.g3-term--fold .g3-term__desc b { font-size: 1rem; font-weight: 800; color: var(--g3-ink); }
.g3-term--fold .g3-term__time { font-size: 1.1rem; }
.g3-term--fold .g3-term__icon { width: 30px; height: 30px; }
.g3-term--fold .g3-term__chev { display: block; }
.g3-term--fold:not(.is-open) .g3-term__nightsum { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 9px; min-width: 0; font-size: .82rem; color: var(--g3-night-ink); }
.g3-term--fold:not(.is-open) .g3-term__body { display: none; }
.g3-term--fold.is-open .g3-term__chev { transform: rotate(180deg); }
.g3-term__nightsum b { font-weight: 800; color: var(--g3-ink); }
.g3-term__nightsum .g3-w { padding: 0 4px; border-radius: 5px; }
.g3-tag-night { display: inline-flex; align-items: center; gap: 3px; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--g3-night-ink); }
.g3-daynav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g3-daynav button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--g3-line-strong); background: var(--g3-surface); color: var(--g3-ink); font-weight: 800; }
.g3-daynav button:disabled { opacity: .4; cursor: default; }
.g3-daynav button:not(:disabled):hover { border-color: var(--g3-accent); color: var(--g3-accent-ink); }
.g3-chartsnote { padding: 10px 14px; border-radius: 14px; border: 1px dashed var(--g3-line-strong); color: var(--g3-muted); font-size: .84rem; background: var(--g3-surface); }
.g3-chartsnote b { color: var(--g3-ink); }

/* ── Tabela (24 kolone) ─────────────────────────────────────────────────── */
.g3-tablecard { border-radius: var(--g3-radius); background: var(--g3-surface); border: 1px solid var(--g3-line); box-shadow: var(--g3-shadow); overflow: hidden; }
.g3-scrollhint { display: none; align-items: center; justify-content: flex-end; gap: 6px; padding: 8px 14px; font-size: .82rem; font-weight: 700; color: var(--g3-accent-ink); border-bottom: 1px solid var(--g3-line); }
.g3-scrollhint.is-on { display: flex; }
.g3-tablescroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.g3-table { width: 100%; min-width: 1058px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: .82rem; line-height: 1.2; }
.g3-table col.c-time { width: 46px; } .g3-table col.c-wx { width: 40px; }
.g3-table col.c-t { width: 42px; } .g3-table col.c-rh { width: 40px; }
.g3-table col.c-ws { width: 32px; } .g3-table col.c-wd { width: 36px; } .g3-table col.c-gust { width: 34px; }
.g3-table col.c-vvel { width: 66px; } .g3-table col.c-p { width: 58px; } .g3-table col.c-cld { width: 62px; }
.g3-table col.c-pr { width: 56px; } .g3-table col.c-risk { width: 68px; }
.g3-table th, .g3-table td { padding: 5px 2px; text-align: center; vertical-align: middle; border-bottom: 1px solid var(--g3-line); overflow: hidden; }
.g3-table td.g3-full, .g3-table th.g3-full { padding: 0; text-align: left; overflow: visible; }
.g3-pin { position: sticky; left: 0; width: var(--g3-pin-w, 100%); max-width: 100%; }
.g3-daytitle { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 11px 14px; background: var(--g3-bar); color: var(--g3-on-bar); font-size: 1rem; font-weight: 800; letter-spacing: .02em; }
.g3-daytitle .g3-ic { width: 1.2em; height: 1.2em; }
.g3-daytitle span { font-size: .8rem; font-weight: 700; padding: 1px 9px; border-radius: 999px; background: color-mix(in srgb, var(--g3-on-bar) 16%, transparent); }
.g3-sunrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; padding: 7px 14px; background: var(--g3-surface-2); color: var(--g3-muted); font-size: .86rem; }
.g3-sunrow strong { color: var(--g3-ink); font-variant-numeric: tabular-nums; }
.g3-sunrow .g3-ic { color: var(--g3-sun); vertical-align: -3px; margin-right: 3px; }
.g3-table tr.g3-groups th { padding: 6px 4px; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border-top: 4px solid; border-bottom: 0; line-height: 1.25; }
.g3-table tr.g3-groups th .g3-ic { vertical-align: -3px; margin-right: 4px; }
.g3-table th.g-info { background: var(--g3-grp-info-bg); color: var(--g3-grp-info-ink); border-top-color: var(--g3-grp-info); }
.g3-table th.g-temp { background: var(--g3-grp-temp-bg); color: var(--g3-grp-temp-ink); border-top-color: var(--g3-grp-temp); }
.g3-table th.g-wind { background: var(--g3-grp-wind-bg); color: var(--g3-grp-wind-ink); border-top-color: var(--g3-grp-wind); }
.g3-table th.g-cloud { background: var(--g3-grp-cloud-bg); color: var(--g3-grp-cloud-ink); border-top-color: var(--g3-grp-cloud); }
.g3-table tr.g3-cols th { padding: 6px 2px; font-size: .74rem; font-weight: 800; color: var(--g3-ink-2); background: var(--g3-surface-2); border-bottom: 2px solid var(--g3-line-strong); line-height: 1.15; }
.g3-table tr.g3-cols th small { display: block; font-size: .64rem; font-weight: 700; color: var(--g3-faint); }
.g3-table .gs { box-shadow: inset 2px 0 0 var(--g3-line-strong); }
.g3-table tbody tr.g3-row td { background: var(--g3-surface); }
.g3-table tbody tr.g3-row--alt td { background: var(--g3-surface-2); }
.g3-table tbody tr.g3-row--night td { background: var(--g3-night-bg); color: var(--g3-night-ink); }
.g3-table tbody tr.g3-row--night.g3-row--alt td { background: color-mix(in srgb, var(--g3-night-bg) 95%, var(--g3-ink)); }
.g3-table tbody tr.g3-row--night td img { opacity: .8; }
.g3-table td.c-time, .g3-table th.c-time { position: sticky; left: 0; z-index: 2; box-shadow: inset -1px 0 0 var(--g3-line-strong); }
.g3-table td.c-time { font-weight: 800; font-size: .92rem; font-variant-numeric: tabular-nums; color: var(--g3-ink); }
.g3-table td.c-time small { display: block; font-size: .56rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--g3-accent-ink); }
.g3-table td.c-time small.is-night { color: var(--g3-night-ink); text-transform: none; font-size: .62rem; }
.g3-table td img.g3-wx { width: 34px; height: 34px; display: block; margin: 0 auto; }
.g3-table td.c-num { font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }
.g3-ws { display: grid; justify-items: center; gap: 0; }
.g3-ws b { min-width: 24px; padding: 1px 3px; border-radius: 6px; font-size: .98rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.g3-ws small { font-size: .58rem; font-weight: 700; color: var(--g3-faint); }
.g3-wd { display: grid; justify-items: center; gap: 1px; font-size: .68rem; font-weight: 800; color: var(--g3-ink-2); }
.g3-table tr.g3-row--night .g3-wd { color: var(--g3-night-ink); }
.g3-stack { display: grid; justify-items: center; gap: 1px; font-size: .72rem; font-weight: 700; }
.g3-stack b { font-size: .9rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.g3-stack .g3-ic { color: var(--g3-accent-ink); width: 1.2em; height: 1.2em; }
.g3-table td.is-warn { background: var(--g3-mod-bg) !important; color: var(--g3-mod-ink); font-weight: 800; }
.g3-table td.is-danger { background: var(--g3-strong-bg) !important; color: var(--g3-strong-ink); font-weight: 800; }
.g3-table td.c-cld { font-size: .74rem; font-weight: 700; }
.g3-pr { display: grid; justify-items: center; color: var(--g3-rain-ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.g3-pr small { font-size: .7rem; font-weight: 700; }
.g3-pr--dry { color: var(--g3-faint); font-weight: 700; }
.g3-riskcell { display: grid; justify-items: center; gap: 2px; }
.g3-riskcell small { font-size: .62rem; font-weight: 700; line-height: 1.1; color: var(--g3-strong-ink); }
.g3-table .g3-chartsrow td { background: var(--g3-surface); }
.g3-chartsrow .g3-chartsnote { margin: 10px 14px 14px; }
.g3-legend { padding: 14px; font-size: .84rem; color: var(--g3-muted); background: var(--g3-surface-2); }
.g3-legend__grid { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 8px; }
.g3-legend b { color: var(--g3-ink); }
.g3-legend__sw { display: inline-block; min-width: 26px; padding: 0 6px; border-radius: 6px; text-align: center; font-weight: 800; margin-right: 4px; }

/* ── Celine ispod prognoze ──────────────────────────────────────────────── */
.g3-section { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: calc(var(--g3-sticky-top) + 8px); }
.g3-sechead { display: flex; flex-direction: column; gap: 2px; }
.g3-h2 { font-size: clamp(1.18rem, 2.6vw, 1.5rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; text-wrap: balance; }
.g3-sechead p { color: var(--g3-muted); max-width: 72ch; }
.g3-card { padding: 16px; border-radius: var(--g3-radius); background: var(--g3-surface); border: 1px solid var(--g3-line); }
.g3-textgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.g3-textday { border-radius: var(--g3-radius); background: var(--g3-surface); border: 1px solid var(--g3-line); overflow: hidden; }
.g3-textday__head { display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 10px 14px; background: var(--g3-sky); border-bottom: 1px solid var(--g3-line); font-weight: 800; }
.g3-textday__head span { font-weight: 700; color: var(--g3-muted); font-size: .9rem; }
.g3-textday__part { padding: 12px 16px; }
.g3-textday__part + .g3-textday__part { border-top: 1px dashed var(--g3-line-strong); }
.g3-textday__label { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--g3-accent-ink); }
.g3-textday__label--wind { color: var(--g3-grp-wind-ink); }
.g3-textday__part p { max-width: 68ch; color: var(--g3-ink-2); }
.g3-textday__note { padding: 12px 16px; background: var(--g3-grp-cloud-bg); color: var(--g3-ink); border-top: 1px solid var(--g3-line); font-size: .92rem; }
.g3-textday__note b { color: var(--g3-grp-cloud-ink); }
.g3-sample { font-size: .8rem; color: var(--g3-faint); }

.g3-toolgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.g3-tool { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 18px; background: var(--g3-surface); border: 1px solid var(--g3-line); color: var(--g3-ink); }
.g3-tool:hover { border-color: var(--g3-accent); text-decoration: none; }
.g3-tool__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--g3-accent-soft); color: var(--g3-accent-ink); }
.g3-tool__ic .g3-ic { width: 22px; height: 22px; }
.g3-tool h3 { font-size: 1.02rem; font-weight: 800; }
.g3-tool p { font-size: .9rem; color: var(--g3-muted); }
.g3-tool__live { margin-top: auto; padding: 7px 10px; border-radius: 10px; background: var(--g3-surface-2); font-size: .84rem; font-weight: 700; color: var(--g3-ink-2); }
.g3-tool__live small { display: block; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--g3-faint); }
.g3-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 800; }

.g3-frame { display: grid; gap: 12px; padding: 16px; border-radius: var(--g3-radius); background: var(--g3-surface); border: 1px solid var(--g3-line); }
.g3-frame__body { display: grid; place-items: center; align-content: center; gap: 10px; min-height: 240px; padding: 18px; border-radius: 16px; border: 2px dashed var(--g3-line-strong); background: linear-gradient(var(--g3-surface-2), var(--g3-surface-2)); text-align: center; color: var(--g3-muted); font-size: .9rem; }
.g3-frame__body b { color: var(--g3-ink); }
.g3-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.g3-pills span { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--g3-line-strong); background: var(--g3-surface); font-size: .8rem; font-weight: 700; color: var(--g3-ink-2); }
.g3-pills span.is-on { background: var(--g3-accent-soft); border-color: var(--g3-accent); color: var(--g3-accent-ink); }
.g3-cta { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 14px; padding: 14px 16px; border-radius: var(--g3-radius); background: var(--g3-sky); border: 1px solid var(--g3-glass-line); color: var(--g3-ink); }
.g3-cta:hover { text-decoration: none; border-color: var(--g3-accent); }
.g3-cta__ic { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--g3-surface); color: var(--g3-accent-ink); }
.g3-cta strong { font-weight: 800; }
.g3-cta span { color: var(--g3-muted); font-size: .9rem; }
.g3-guidegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.g3-guide h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.g3-guide h3 .g3-ic { color: var(--g3-accent-ink); }
.g3-guide p { color: var(--g3-ink-2); font-size: .94rem; max-width: 70ch; }
.g3-guide p + p { margin-top: 8px; }
.g3-faq { display: grid; gap: 8px; }
.g3-faq details { border-radius: 14px; background: var(--g3-surface); border: 1px solid var(--g3-line); }
.g3-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 16px; font-weight: 800; cursor: pointer; list-style: none; }
.g3-faq summary::-webkit-details-marker { display: none; }
.g3-faq summary::after { content: "+"; font-size: 1.3rem; font-weight: 700; color: var(--g3-accent-ink); }
.g3-faq details[open] summary::after { content: "–"; }
.g3-faq details p { padding: 0 16px 14px; color: var(--g3-ink-2); max-width: 78ch; }
.g3-appgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.g3-app { display: flex; flex-direction: column; gap: 10px; }
.g3-app__head { display: flex; align-items: center; gap: 12px; }
.g3-app__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--g3-accent), var(--g3-accent-2)); color: var(--g3-on-accent); flex: none; }
.g3-app__icon .g3-ic { width: 28px; height: 28px; }
.g3-app h3 { font-size: 1.08rem; font-weight: 800; line-height: 1.2; }
.g3-app p { color: var(--g3-ink-2); font-size: .94rem; }
.g3-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.g3-chips li { padding: 3px 10px; border-radius: 999px; background: var(--g3-surface-2); font-size: .8rem; font-weight: 700; color: var(--g3-ink-2); }
.g3-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 18px; border-radius: 14px; background: var(--g3-accent); color: var(--g3-on-accent); font-weight: 800; border: 0; }
.g3-btn:hover { text-decoration: none; filter: brightness(1.08); }
.g3-sponsor { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 16px; padding: 16px; border-radius: var(--g3-radius); background: var(--g3-surface); border: 1px solid var(--g3-line); }
.g3-sponsor__logo { grid-row: 1 / 3; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 18px; background: var(--g3-surface-2); border: 1px solid var(--g3-line); font-weight: 800; font-size: 1.2rem; color: var(--g3-ink); letter-spacing: .04em; }
.g3-sponsor h3 { font-size: 1.02rem; font-weight: 800; }
.g3-sponsor p { color: var(--g3-muted); font-size: .92rem; }
.g3-sponsor .g3-more { grid-column: 1 / -1; }
@media (min-width: 720px) { .g3-sponsor { grid-template-columns: auto minmax(0, 1fr) auto; } .g3-sponsor .g3-more { grid-column: 3; grid-row: 1 / 3; } }
.g3-about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.g3-about li { padding: 12px 14px; border-radius: 14px; background: var(--g3-surface-2); font-size: .9rem; color: var(--g3-ink-2); }
.g3-about li b { display: block; color: var(--g3-ink); }
.g3-foot { padding-block: 18px 26px; font-size: .82rem; color: var(--g3-faint); border-top: 1px solid var(--g3-line); }

/* ── Dijalozi ───────────────────────────────────────────────────────────── */
.g3-dialog { width: min(560px, calc(100vw - 24px)); max-height: min(86vh, 720px); padding: 0; border: 1px solid var(--g3-line); border-radius: 22px; background: var(--g3-surface); color: var(--g3-ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.g3-dialog::backdrop { background: rgba(8, 12, 24, .55); }
.g3-dialog[open] { display: flex; flex-direction: column; }
.g3-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 10px 18px; border-bottom: 1px solid var(--g3-line); }
.g3-dialog__head h2 { font-size: 1.08rem; font-weight: 800; }
.g3-dialog__body { padding: 14px 18px 18px; overflow-y: auto; }
.g3-search { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--g3-line-strong); background: var(--g3-surface-2); color: var(--g3-muted); }
.g3-search input { flex: 1 1 auto; min-width: 0; min-height: 44px; border: 0; background: transparent; outline: 0; color: var(--g3-ink); }
.g3-search:focus-within { border-color: var(--g3-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g3-accent) 25%, transparent); }
.g3-reggroup { margin-top: 14px; }
.g3-reggroup__label { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--g3-faint); padding: 0 4px 4px; }
.g3-regopt { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 2px 10px; width: 100%; min-height: 52px; padding: 7px 10px; border: 1px solid transparent; border-radius: 12px; background: transparent; text-align: left; color: var(--g3-ink); }
.g3-regopt:hover { background: var(--g3-surface-2); }
.g3-regopt[aria-current="true"] { background: var(--g3-accent-soft); border-color: var(--g3-accent); }
.g3-regopt__code { grid-row: 1 / 3; display: grid; place-items: center; height: 34px; border-radius: 9px; background: var(--g3-surface-2); font-weight: 800; font-size: .84rem; }
.g3-regopt[aria-current="true"] .g3-regopt__code { background: var(--g3-accent); color: var(--g3-on-accent); }
.g3-regopt b { font-weight: 800; line-height: 1.2; }
.g3-regopt small { font-size: .8rem; color: var(--g3-muted); line-height: 1.25; }
.g3-noresults { padding: 18px 4px; color: var(--g3-muted); }
.g3-risklist { display: grid; gap: 8px; margin-top: 10px; }
.g3-risklist li { padding: 10px 12px; border-radius: 12px; background: var(--g3-strong-bg); color: var(--g3-strong-ink); }
.g3-risklist li b { display: block; }
.g3-dialog__body p + p { margin-top: 8px; }
.g3-dialog__body .g3-muted { color: var(--g3-muted); font-size: .9rem; }
@media (max-width: 600px) {
	.g3-dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; max-height: 88vh; border-radius: 22px 22px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
}
.g3-toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; width: min(520px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 14px; background: var(--g3-bar); color: var(--g3-on-bar); font-size: .9rem; font-weight: 700; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); }

/* ── doterivanja posle prvog pregleda ───────────────────────────────────── */
.g3-flight__winds { min-width: 0; }
@media (max-width: 999px) {
	.g3-flight__wind { font-size: .84rem; gap: 1px; }
	.g3-flight__wind small { font-size: .62rem; }
	.g3-flight__wind b { padding: 0 3px; min-width: 0; }
	.g3-flight__wind .g3-arrow { width: 12px; height: 12px; }
	.g3-flight { padding: 8px 6px; }
}
button.g3-pill { position: relative; }
button.g3-pill::after { content: ""; position: absolute; inset: -8px -6px; }
.g3-proto__seg button { min-height: 44px; }
.g3-status { align-content: start; }
@media (min-width: 1000px) { .g3-status { align-content: center; } }
/* skrivene oznake (.g3-sr) u tabeli su apsolutne: bez ovoga beže iz okvira koji se pomera i šire stranicu */
.g3-tablescroll { position: relative; }
.g3-iconbtn { flex: none; }
.g3-flight__row { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr); }
@media (min-width: 1000px) { .g3-flight__row { grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1fr); } }

/* van skale (preko 14 m/s): pun stub sa vrhom strelice */
.g3-rung__bar.is-over i { border-radius: 0; }
.g3-rung__bar.is-over::after { content: ""; position: absolute; right: -7px; top: 50%; transform: translateY(-50%); border-left: 7px solid var(--g3-strong); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.g3-rung--gust .g3-rung__bar.is-over::after { border-left-width: 6px; border-top-width: 5px; border-bottom-width: 5px; }
.g3-term--night .g3-term__role { color: var(--g3-night-ink); }
.g3-term--night .g3-term__role .g3-ic { color: inherit; }
.g3-table tr.g3-groups th { text-align: left; padding-left: 10px; }
.g3-table tr.g3-groups th.g-info { text-align: center; padding-left: 4px; }

/* ═══════════════════════════════════════════════════════════════════════
 * Aplikacija (dopune prototipu). Osnova važi samo unutar <main class="g3-root">,
 * da zaglavlje, podnožje i donja navigacija sajta zadrže svoje stilove.
 * ═══════════════════════════════════════════════════════════════════════ */
.g3-app { background: var(--g3-bg); }
.g3-root { display: block; color: var(--g3-ink); font-family: var(--g3-font); font-size: 16px; line-height: 1.5; }
:where(.g3-root) *, :where(.g3-root) *::before, :where(.g3-root) *::after { box-sizing: border-box; }
:where(.g3-root) img { max-width: 100%; }
:where(.g3-root) :is(h1, h2, h3, h4, p, dl, dd, ul, ol, figure, figcaption) { margin: 0; }
:where(.g3-root) :is(h1, h2, h3, h4, h5, h6) { color: inherit; font-family: inherit; }
:where(.g3-root) :is(ul, ol) { padding: 0; list-style: none; }
:where(.g3-root) :is(button, input, select) { font: inherit; color: inherit; letter-spacing: inherit; text-transform: none; }
:where(.g3-root) button { cursor: pointer; background: none; border: 0; padding: 0; margin: 0; min-height: 0; width: auto; height: auto; border-radius: 0; box-shadow: none; line-height: inherit; }
:where(.g3-root) a { color: var(--g3-accent-ink); text-decoration: none; border-bottom: 0; }
:where(.g3-root) a:hover { text-decoration: underline; }
:where(.g3-root) :is(a, button, summary, input, [tabindex]):focus-visible { outline: 3px solid var(--g3-accent); outline-offset: 2px; border-radius: 6px; }
.g3-root [hidden] { display: none !important; }
.g3-root table { border-collapse: collapse; }
@media (prefers-reduced-motion: reduce) { .g3-root * { transition: none !important; animation: none !important; } }

/* sadržaj ispod lepljivog zaglavlja sajta */
.g3-root .g3-section, .g3-root .g3-day, .g3-root #start-silazak { scroll-margin-top: calc(var(--vm-header-h, 64px) + 12px); }

/* ── Dani: tabela, kartice i grafikoni za svaki dan ───────────────────── */
.g3-forecast { display: flex; flex-direction: column; gap: 22px; }
.g3-day { display: flex; flex-direction: column; gap: 12px; }
.g3-day .g3-cardday { display: none; }
.g3-forecast[data-view="cards"] .g3-cardday { display: flex; }
.g3-forecast[data-view="cards"] .g3-tablecard { display: none; }
@media (max-width: 767px) {
	.g3-forecast:not([data-view]) .g3-cardday { display: flex; }
	.g3-forecast:not([data-view]) .g3-tablecard { display: none; }
}
/* jedan dan: strelice u zaglavlju dana i dugmad ispod; „Svi dani": bez njih */
.g3-forecast[data-day="all"] .g3-daynav { display: none; }
.g3-forecast[data-day="all"] .g3-dayhead__nav { visibility: hidden; }
.g3-forecast > .g3-legend { border-radius: 16px; border: 1px solid var(--g3-line); }
.g3-dayhead { top: calc(var(--vm-header-h, 0px) + var(--g3-sticky-top)); }

/* ── Noćni termini: na telefonu jedan red, dodir otvara (pregledač ih na širem ekranu otvara) ── */
.g3-term__t, .g3-term__sep { display: none; }
.g3-term--fold:not(.is-open) .g3-term__t, .g3-term--fold:not(.is-open) .g3-term__sep { display: inline; }
.g3-term--fold:not(.is-open) .g3-term__role { display: none; }
button.g3-term__head { font: inherit; }

/* ── Grafikoni dana: uvek otvoreni, crtaju se kad uđu u vidno polje ─── */
.g3-charts { padding: 14px; border-radius: var(--g3-radius); background: var(--g3-surface); border: 1px solid var(--g3-line); }
.g3-charts__title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .95rem; font-weight: 800; }
.g3-charts__title .g3-ic { color: var(--g3-accent-ink); }
.g3-charts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
@media (min-width: 1100px) { .g3-charts__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, .9fr); } }
.g3-chart { min-width: 0; }
.g3-chart figcaption { margin-bottom: 6px; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--g3-faint); }
.g3-chart__box { position: relative; height: 220px; }
.g3-chart__box canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.g3-chart--rose { display: flex; flex-direction: column; align-items: center; }
.g3-chart--rose figcaption { align-self: stretch; }
.g3-rosebar { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-bottom: 6px; }
.g3-rosebtn { min-height: 32px; padding: 2px 10px; border: 1px solid var(--g3-line); border-radius: 999px; background: var(--g3-surface-2); color: var(--g3-muted); font-size: .78rem; font-weight: 800; }
.g3-rosebtn[aria-pressed="true"] { background: var(--g3-accent); border-color: transparent; color: var(--g3-on-accent); }
.g3-chart--rose .vm-windrose-svg { width: 100%; max-width: 250px; height: auto; aspect-ratio: 1 / 1; }
.g3-chart--rose .rose-legend { width: 100%; }

/* ── Režim, obaveštenje, prazno stanje, pregled ─────────────────────── */
.g3-mode__btn[aria-current="true"] { background: linear-gradient(135deg, var(--g3-accent), var(--g3-accent-2)); color: var(--g3-on-accent); }
.g3-mode__btn[aria-current="false"] { color: var(--g3-faint); }
.g3-notice--info { display: flex; gap: 10px; align-items: flex-start; border-style: solid; border-color: color-mix(in srgb, var(--g3-mod) 45%, transparent); background: var(--g3-mod-bg); color: var(--g3-ink); font-size: .94rem; }
.g3-notice--info .g3-ic { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--g3-mod-ink); }
.g3-notice--info p + p { margin-top: 6px; }
.g3-empty { padding: 16px; border-radius: var(--g3-radius); border: 1px dashed var(--g3-line-strong); background: var(--g3-surface); color: var(--g3-muted); }
.g3-previewbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--g3-bar); color: var(--g3-on-bar); font-size: .85rem; font-weight: 700; }
.g3-previewbar a { color: inherit; text-decoration: underline; }
.g3-notfound { display: grid; gap: 12px; padding: 48px 0; }
.g3-textday__note--danger { background: var(--g3-strong-bg); }
.g3-textday__note--danger b { color: var(--g3-strong-ink); }
.g3-textday__note p { display: inline; }
a.g3-regopt { color: var(--g3-ink); text-decoration: none; }
a.g3-regopt:hover { text-decoration: none; }
.g3-app__icon--logo { background: var(--g3-surface-2); padding: 6px; }
.g3-tool { color: var(--g3-ink); }
.g3-tool:hover { border-color: var(--g3-line); }

/* ── Stari delovi (mapa, PSI, presek) unutar novog okvira ───────────── */
.g3-legacy { display: flex; flex-direction: column; gap: var(--g3-gap); min-width: 0; }
.g3-legacy .vm-gol-serbia-map, .g3-legacy .vm-gol-xsec { margin: 0; }

/* ── Rezervni okvir kad izvoz sa sajta ne postoji ───────────────────── */
.g3-fallhead { background: var(--g3-surface); border-bottom: 1px solid var(--g3-line); }
.g3-fallhead__row { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.g3-fallhead__logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--g3-ink); text-decoration: none; }
.g3-fallfoot { padding-block: 18px 26px; font-size: .84rem; color: var(--g3-faint); border-top: 1px solid var(--g3-line); }

/* ── Štampa / PDF ───────────────────────────────────────────────────── */
@media print {
	#header, #footer, .vm-bottom-nav, .g3-appnav, .g3-shortcuts, .g3-rail, .g3-toolbar, .g3-legacy, #alati, #aplikacije, .g3-cta, .g3-charts, .vm-vp, .adsbygoogle { display: none !important; }
	.g3-forecast .g3-cardday { display: none !important; }
	.g3-forecast .g3-tablecard, .g3-forecast .g3-day { display: block !important; }
	.g3-tablescroll { overflow: visible !important; }
}

/* ── Ruža vetrova (isto kao assets/css/instruments.css) ── */
.g3-root{--card-bg-strong:rgba(255,255,255,.92);--text-muted:#475569;--text-dim:#8294ab}
[data-theme="dark"] .g3-root{--card-bg-strong:rgba(30,41,59,.92);--text-muted:#cbd5e1;--text-dim:#94a3b8}
.rose-petal { stroke: var(--card-bg-strong); stroke-width: 0.5; transition: opacity 0.18s; }
.rose-petal:hover { opacity: 0.78; }
.rose-ring-label { font-size: 8px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: 0.9; }
.rose-card { font-size: 12.5px; font-weight: 700; }
.rose-calm-val { font-size: 9px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rose-calm-lbl { font-size: 6.5px; font-weight: 500; letter-spacing: 0.3px; text-transform: uppercase; }
.rose-empty { font-size: 11px; font-weight: 500; }
.vm-windrose-legend, .rose-legend { display: flex; flex-wrap: wrap; gap: 0.3rem 0.7rem; justify-content: center; margin-top: 0.5rem; font-size: 0.72rem; color: var(--text-muted); }
.rose-leg { display: inline-flex; align-items: center; gap: 0.32rem; font-variant-numeric: tabular-nums; }
.rose-leg-sw { width: 11px; height: 11px; border-radius: 3px; display: inline-block; flex-shrink: 0; }
.rose-leg-unit { color: var(--text-dim); }

/* ── Pretraga regiona u vrhu: polje sa lupom, spisak se filtrira dok se kuca ── */
.g3-regsearch { position: relative; display: flex; flex-direction: column; gap: 6px; margin-top: 6px; scroll-margin-top: calc(var(--vm-header-h, 64px) + 10px); }
.g3-regsearch__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: .95rem; font-weight: 800; color: var(--g3-ink); cursor: pointer; }
.g3-regsearch__label small { font-size: .8rem; font-weight: 600; color: var(--g3-muted); }
.g3-regsearch__field { display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 4px 6px 4px 14px; border-radius: 16px; border: 2px solid var(--g3-accent); background: var(--g3-surface); box-shadow: 0 8px 20px -12px color-mix(in srgb, var(--g3-accent) 70%, transparent); cursor: text; }
.g3-regsearch__field:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--g3-accent) 25%, transparent); }
.g3-regsearch__icon { flex: none; width: 22px; height: 22px; color: var(--g3-accent-ink); }
.g3-regsearch .g3-regsearch__field input[type="search"],
.g3-regsearch .g3-regsearch__field input[type="search"]:focus { flex: 1 1 auto; width: auto; min-width: 0; height: auto; min-height: 44px; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; outline: 0 !important; color: var(--g3-ink) !important; font-size: 16px; font-weight: 600; }
.g3-regsearch .g3-regsearch__field input[type="search"]::placeholder { color: var(--g3-faint); font-weight: 500; opacity: 1; }
.g3-regsearch__all { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border-radius: 12px; background: var(--g3-accent-soft); color: var(--g3-accent-ink); font-size: .88rem; font-weight: 800; }
.g3-regsearch__all .g3-ic { width: 18px; height: 18px; transition: transform .15s; }
.g3-regsearch.is-open .g3-regsearch__all .g3-ic { transform: rotate(180deg); }
.g3-regsearch__panel { position: relative; max-height: min(60vh, 460px); overflow-y: auto; overscroll-behavior: contain; padding: 2px 6px 8px; border-radius: 16px; border: 1px solid var(--g3-line-strong); background: var(--g3-surface); box-shadow: var(--g3-shadow); }
.g3-regsearch__panel .g3-reggroup { margin-top: 10px; }
.g3-regopt.is-active { background: var(--g3-surface-2); border-color: var(--g3-line-strong); }
@media (min-width: 768px) {
	.g3-regsearch__panel { position: absolute; top: 100%; left: 0; z-index: 40; width: max(100%, 380px); margin-top: 6px; box-shadow: 0 24px 60px -18px rgba(8, 12, 24, .45); }
}
