/* ============================================================
   Valmara – muzeji in doživetja
   Videz po CGP dostopnovsem.org (Bootstrap Italia osnova, #095892, Inter/Lora,
   dvojni obroč fokusa), vzorci komponent po A11Y-SCMS (main.css).
   ============================================================ */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/lora-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/lora-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------------- Žetoni ---------------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f2f6fa;
  --surface-mute: #e8eef4;
  --text: #17222d;
  --text-muted: #4a5868;
  --primary: #095892;
  --primary-hover: #063f6a;
  --on-primary: #ffffff;
  --primary-soft: #e1edf7;
  --primary-line: #095892;
  --link: #095892;
  --link-hover: #052f50;
  --accent: #b5400b;
  --accent-soft: #fbeadf;
  --band: #0b2a45;
  --band-2: #0f3658;
  --on-band: #ffffff;
  --on-band-muted: #c9d6e3;
  --border: #6f7e8d;
  --border-soft: #d3dce5;
  --focus-outer: #111111;
  --focus-inner: #ffffff;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --success: #067647;
  --success-soft: #e3f4ec;
  --warning: #9a4a05;
  --warning-soft: #fdf1e3;
  --info: #095892;
  --info-soft: #e1edf7;
  --scrim: rgb(6 20 34 / .78);
  --shadow: 0 1px 2px rgb(16 24 40 / .06), 0 4px 14px rgb(16 24 40 / .08);
  --shadow-lg: 0 10px 34px rgb(16 24 40 / .18);
  --radius: .9rem;
  --radius-sm: .55rem;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Lora", Georgia, serif;
  --maxw: 76rem;
  --focus-ring: 0 0 0 2px var(--focus-inner);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1620;
  --surface: #15202b;
  --surface-alt: #1a2734;
  --surface-mute: #213141;
  --text: #e9eff5;
  --text-muted: #b6c3cf;
  --primary: #7cc0f2;
  --primary-hover: #a6d4f7;
  --on-primary: #06233b;
  --primary-soft: #1d3346;
  --primary-line: #7cc0f2;
  --link: #8fcaf5;
  --link-hover: #c4e3fa;
  --accent: #ffad7a;
  --accent-soft: #3a2518;
  --band: #08121b;
  --band-2: #0c1b28;
  --on-band: #ffffff;
  --on-band-muted: #c4d0dc;
  --border: #8496a8;
  --border-soft: #2d3e4f;
  --focus-outer: #ffffff;
  --focus-inner: #111111;
  --danger: #ff8a80;
  --danger-soft: #3b1714;
  --success: #6fd3a3;
  --success-soft: #12301f;
  --warning: #ffc078;
  --warning-soft: #362411;
  --info: #7cc0f2;
  --info-soft: #1d3346;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 4px 14px rgb(0 0 0 / .35);
  --shadow-lg: 0 10px 34px rgb(0 0 0 / .55);
}

/* ---------------- Ponastavitev ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 { line-height: 1.22; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; color: var(--text); }
.h1 { font-size: clamp(2rem, 1.45rem + 2.4vw, 3.1rem); letter-spacing: -.02em; }
.h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.h3 { font-size: 1.25rem; font-weight: 750; }
.h4 { font-size: 1.08rem; font-weight: 750; }
h5, h6 { font-size: inherit; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { padding-inline-start: 1.3rem; }
hr { border: 0; border-top: 1px solid var(--border-soft); margin: 2rem 0; }
[hidden] { display: none !important; }
table { border-collapse: collapse; }
address { font-style: normal; }
::selection { background: var(--primary); color: var(--on-primary); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------- Fokus: dvojni obroč (CGP dostopnovsem.org) ---------------- */
:focus-visible {
  outline: 3px solid var(--focus-outer);
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}
.band :focus-visible, .site-footer :focus-visible, .topbar :focus-visible, .hero :focus-visible {
  outline-color: #ffffff; box-shadow: 0 0 0 2px #111111;
}

/* ---------------- Pripomočki ---------------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }
.container--narrow { max-width: 50rem; }
.icon { display: inline-block; width: 1.15em; height: 1.15em; flex: 0 0 auto; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 62ch; }
.muted { color: var(--text-muted); }
.serif { font-family: var(--font-serif); }
.stack > * + * { margin-top: 1rem; }
.kicker { display: inline-block; margin: 0 0 .5rem; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

.skip-link {
  position: absolute; inset-inline-start: -100vw; top: .5rem; z-index: 1000;
  padding: .75rem 1.25rem; background: var(--primary); color: var(--on-primary);
  font-weight: 700; text-decoration: none; border-radius: var(--radius-sm);
}
.skip-link:focus-visible { inset-inline-start: .5rem; }
#main-content:focus { outline: none; }

/* ---------------- Gumbi ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .6em 1.35em;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn--secondary { background: transparent; color: var(--link); border-color: var(--primary-line); }
.btn--secondary:hover { background: var(--primary-soft); color: var(--link-hover); }
.btn--light { background: #ffffff; color: #0b2a45; }
.btn--light:hover { background: #e1edf7; color: #052f50; }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.btn--sm { min-height: 40px; padding: .4em 1em; font-size: .95rem; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; }
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-width: 44px; min-height: 44px; padding: .35rem .6rem;
  background: transparent; border: 0; border-radius: 999px; color: inherit;
  text-decoration: none; font-weight: 600;
}
.icon-btn:hover { background: var(--primary-soft); color: var(--link-hover); }
.icon-btn .icon { width: 1.35em; height: 1.35em; }

/* ---------------- Glava: zgornji pas (orodja) ---------------- */
.site-header { background: var(--surface); position: relative; z-index: 50; }
.topbar { background: var(--band); color: var(--on-band); font-size: .9rem; }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; min-height: 2.75rem; }
.topbar a { color: var(--on-band); text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: var(--on-band); }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .4rem; margin: 0; padding: 0; list-style: none; }
.tools > li { display: flex; align-items: center; }
.tools__link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .55rem; border-radius: 6px; background: none; border: 0; color: var(--on-band); font-size: .9rem; font-weight: 600; }
.tools__link:hover { background: var(--band-2); }
.tools__link .icon { width: 1.15em; height: 1.15em; }
.tool-social { gap: .1rem; }
.tool-social a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 44px; border-radius: 6px; }
.tool-social a:hover { background: var(--band-2); }
.tool-social .icon { width: 1.2em; height: 1.2em; }

.langs { display: flex; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.langs a, .langs span[aria-current] {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  padding: 0 .55rem; border-radius: 6px; font-weight: 700; letter-spacing: .04em;
}
.langs [aria-current] { background: var(--on-band); color: var(--band) !important; }

/* Videz (tema + poenostavljen pogled) – APG disclosure */
.appearance { position: relative; }
.appearance__panel {
  position: absolute; top: calc(100% + .25rem); inset-inline-end: 0; z-index: 60;
  min-width: 17rem; padding: 1rem 1.1rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.appearance__panel fieldset { border: 0; margin: 0 0 .75rem; padding: 0; }
.appearance__panel legend { font-weight: 700; margin-bottom: .35rem; padding: 0; }
.appearance__panel label { display: flex; align-items: center; gap: .6rem; min-height: 36px; cursor: pointer; }
.appearance__panel input { width: 1.2rem; height: 1.2rem; accent-color: var(--primary); }
.appearance__panel :focus-visible { outline-color: var(--focus-outer); box-shadow: var(--focus-ring); }

/* ---------------- Glava: vrstica z znamko ---------------- */
.mainbar { display: flex; align-items: center; gap: 1rem; min-height: 5rem; padding-block: .6rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--text); text-decoration: none; margin-inline-end: auto; }
.brand:hover { color: var(--text); }
.brand__logo { width: 3rem; height: 3rem; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-size: 1.55rem; font-weight: 850; letter-spacing: -.02em; }
.brand__tag { font-family: var(--font-serif); font-style: italic; font-size: .95rem; color: var(--text-muted); }
.header-actions { display: flex; align-items: center; gap: .25rem; }
.cart-link { position: relative; }
.cart-count {
  min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .78rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Iskalnik (okence pod gumbom, po A11Y-SCMS) */
.site-search { position: relative; }
.search-panel {
  position: absolute; top: calc(100% + .5rem); inset-inline-end: 0; z-index: 60;
  width: min(30rem, calc(100vw - 2rem)); padding: 1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
html.js .search-panel { display: none; }
html.js .search-toggle[aria-expanded="true"] + .search-panel,
html.js .search-panel.is-open { display: block; }
.search-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.search-form label { flex-basis: 100%; font-weight: 700; }
.search-form input[type="search"] { flex: 1 1 12rem; min-height: 48px; padding: .5rem .9rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }

/* Hamburger */
.nav-toggle { display: none; }
.nav-toggle__bars { position: relative; width: 1.35rem; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; inset-inline: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Glavni meni ---------------- */
.navband { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: var(--surface); }
.main-nav { position: relative; }
.main-nav__list { display: flex; flex-wrap: wrap; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.main-nav__item { position: relative; display: flex; align-items: center; }
.main-nav__link {
  display: flex; align-items: center; min-height: 52px; padding: .5rem .9rem;
  color: var(--text); text-decoration: none; font-weight: 650; border-radius: 8px;
}
.main-nav__link:hover { color: var(--link-hover); background: var(--primary-soft); }
.main-nav__link[aria-current="page"], .main-nav__item.is-current > .main-nav__link {
  color: var(--link); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .55em;
}
.sub-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; min-height: 44px; margin-inline-start: -.4rem;
  background: none; border: 0; border-radius: 8px; color: var(--text);
}
.sub-toggle:hover { background: var(--primary-soft); color: var(--link-hover); }
.sub-toggle .icon { transition: transform .2s; }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.submenu {
  position: absolute; top: 100%; inset-inline-start: 0; z-index: 40;
  min-width: 16rem; margin: 0; padding: .45rem; list-style: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.submenu a { display: flex; align-items: center; min-height: 44px; padding: .45rem .8rem; border-radius: 8px; color: var(--link); text-decoration: none; font-weight: 600; }
.submenu a:hover { background: var(--primary-soft); color: var(--link-hover); text-decoration: underline; }
.submenu a[aria-current="page"] { background: var(--primary-soft); }
html.js .submenu { display: none; }
html.js .sub-toggle[aria-expanded="true"] + .submenu { display: block; }

/* Mega meni (Muzeji) */
.main-nav__item--mega { position: static; }
.submenu--mega { inset-inline: 0; padding: 0; border-radius: 0 0 var(--radius) var(--radius); border-top: 0; }
.megamenu { display: grid; gap: 1.25rem; padding: 1.25rem; }
.megamenu__feature { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--surface-alt); color: var(--text) !important; }
.megamenu__feature strong { font-size: 1.1rem; color: var(--link); }
.megamenu__feature span { font-weight: 400; color: var(--text-muted); }
.megamenu__group { margin: 0 0 .3rem; padding-inline: .8rem; font-size: .8rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.megamenu ul { margin: 0; padding: 0; list-style: none; }
@media (min-width: 64rem) {
  .megamenu { grid-template-columns: 17rem 1fr 1fr; }
}

/* Slabe različice menija – podmeni samo ob lebdenju / ves meni v zaporedju Tab */

/* Mobilna navigacija (hamburger) */
@media (max-width: 63.99rem) {
  .nav-toggle { display: inline-flex; }
  html.js .navband { display: none; }
  html.js .navband.is-open { display: block; }
  .main-nav__list { flex-direction: column; align-items: stretch; padding-block: .5rem; }
  .main-nav__item { flex-wrap: wrap; }
  .main-nav__link { flex: 1; }
  .sub-toggle { min-width: 48px; min-height: 48px; }
  .submenu, .submenu--mega { position: static; flex-basis: 100%; min-width: 0; box-shadow: none; border: 0; border-inline-start: 3px solid var(--primary-line); border-radius: 0; margin: 0 0 .5rem .9rem; }
  .megamenu { padding: .5rem; }
  .header-actions .icon-btn__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------------- Drobtine ---------------- */
.breadcrumbs { font-size: .92rem; padding-block: .9rem 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: flex; align-items: center; gap: .5rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--text-muted); }
.breadcrumbs [aria-current] { color: var(--text-muted); }

/* ---------------- Glava strani ---------------- */
.pagehead { padding-block: 1.5rem 2rem; }
.pagehead__title { margin-bottom: .4em; }
.pagehead--image { display: grid; gap: 1.5rem; align-items: center; }
.pagehead--image img { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
@media (min-width: 56rem) { .pagehead--image { grid-template-columns: 1.1fr 1fr; gap: 3rem; } }

/* ---------------- Sekcije ---------------- */
.section { padding-block: clamp(2.5rem, 2rem + 2.5vw, 4.5rem); }
.section--alt { background: var(--surface-alt); }
.section--tight { padding-block: 1.5rem; }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.75rem; }
.section__head > :first-child { margin: 0; }
.section__head p { margin: .35rem 0 0; color: var(--text-muted); max-width: 60ch; }
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 40rem) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.split { display: grid; gap: 2rem; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .split--rev > :first-child { order: 2; } }

/* ---------------- Hero vrtiljak (APG carousel) ---------------- */
.hero { position: relative; background: var(--band); color: #fff; }
.hero__viewport { position: relative; }
.hero__slide { position: relative; min-height: clamp(26rem, 60vh, 38rem); display: grid; align-items: end; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(6 20 34 / .9) 0%, rgb(6 20 34 / .72) 42%, rgb(6 20 34 / .15) 75%), linear-gradient(0deg, rgb(6 20 34 / .7), transparent 50%);
}
.hero__caption { position: relative; z-index: 1; padding-block: 3rem 6rem; max-width: 40rem; }
.hero__kicker { color: #ffd9c2; }
.hero__title { color: #fff; font-size: clamp(2.1rem, 1.5rem + 3vw, 3.6rem); margin-bottom: .35em; }
.hero__text { font-size: 1.15rem; color: #f2f6fa; margin-bottom: 1.5rem; }
.hero__controls {
  position: absolute; z-index: 2; inset-inline-end: max(1.25rem, calc((100vw - var(--maxw)) / 2 + 1.25rem)); bottom: 1.5rem;
  display: flex; align-items: center; gap: .5rem;
  padding: .35rem; background: rgb(6 20 34 / .85); border: 1px solid rgb(255 255 255 / .55); border-radius: 999px;
}
.hero__btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: #fff; }
.hero__btn:hover { background: rgb(255 255 255 / .18); }
.hero__dots { display: flex; gap: .3rem; margin: 0 .25rem; padding: 0; list-style: none; }
.hero__dots button { width: 24px; height: 24px; padding: 0; border: 2px solid #fff; border-radius: 999px; background: transparent; display: inline-flex; }
.hero__dots button[aria-current="true"] { width: 2.75rem; background: #fff; }
.hero__btn .ico-play { display: none; }
.hero__btn[data-state="paused"] .ico-play { display: inline-block; }
.hero__btn[data-state="paused"] .ico-pause { display: none; }
html:not(.js) .hero__controls { display: none; }
html:not(.js) .hero__slide + .hero__slide { display: none; }

/* ---------------- Hitre povezave (ploščice z ikonami) ---------------- */
.quick { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)); }
.quick__item a {
  display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; height: 100%;
  padding: 1.25rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border-soft);
  color: var(--text); text-decoration: none; font-weight: 750; box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.quick__item a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--primary-line); color: var(--link); }
.quick__item a:focus-visible { box-shadow: var(--focus-ring), var(--shadow-lg); }
.quick__icon { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.quick__icon .icon { width: 1.5rem; height: 1.5rem; }
.quick__label { font-size: 1.05rem; }
.quick__desc { font-weight: 400; font-size: .92rem; color: var(--text-muted); }

/* ---------------- Kartice ---------------- */
.card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card:focus-within { box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-mute); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; gap: .45rem; padding: 1.15rem 1.25rem 1.35rem; flex: 1; }
.card__title { margin: 0; font-size: 1.2rem; }
.card__title a { color: var(--text); text-decoration: none; }
.card__title a:hover { color: var(--link); text-decoration: underline; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__title a:focus-visible { outline: none; box-shadow: none; }
.card:has(.card__title a:focus-visible) { outline: 3px solid var(--focus-outer); outline-offset: 2px; box-shadow: var(--focus-ring), var(--shadow-lg); }
.card__meta { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin: 0; font-size: .92rem; color: var(--text-muted); }
.card__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.card__date { margin: 0; font-size: .9rem; font-weight: 700; color: var(--accent); }
.card__text { margin: 0; color: var(--text-muted); }
.card__more { position: relative; z-index: 2; margin-top: auto; padding-top: .4rem; font-weight: 700; }
.card--row { flex-direction: row; }
.card--row .card__media { flex: 0 0 38%; aspect-ratio: auto; }
@media (max-width: 40rem) { .card--row { flex-direction: column; } .card--row .card__media { aspect-ratio: 3 / 2; } }
/* V slabi različici imajo kartice več ločenih povezav (slika, naslov, »več«) */
.card__media-link { display: block; height: 100%; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.tag { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .65rem; border-radius: 999px; background: var(--primary-soft); color: var(--link-hover); font-size: .85rem; font-weight: 650; }
.tag--accent { background: var(--accent-soft); color: var(--text); }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border-radius: 999px; font-size: .82rem; font-weight: 750; background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.card__badge { position: absolute; top: .8rem; inset-inline-start: .8rem; z-index: 2; }

/* ---------------- Drsnik ploščic (vrtiljak kartic) ---------------- */
.slider { position: relative; }
.slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(16rem, calc((100% - 3rem) / 3)); gap: 1.5rem; margin: 0; padding: .5rem .25rem 1.25rem; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; }
.slider__track > li { scroll-snap-align: start; }
@media (max-width: 56rem) { .slider__track { grid-auto-columns: minmax(15rem, 80%); } }
.slider__controls { display: flex; gap: .5rem; }
.slider__btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--primary-line); background: var(--surface); color: var(--link); }
.slider__btn:hover { background: var(--primary); color: var(--on-primary); }
.slider__btn[disabled] { opacity: .45; cursor: default; }

/* ---------------- Dogodki ---------------- */
.events-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.event-row {
  position: relative; display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.25rem; align-items: start;
  padding: 1.1rem; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); box-shadow: var(--shadow);
}
.event-row:hover { box-shadow: var(--shadow-lg); }
.event-row__date { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--primary); color: var(--on-primary); line-height: 1.1; text-align: center; margin: 0; }
.event-row__day { font-size: 1.8rem; font-weight: 850; }
.event-row__month { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.event-row__body > * { margin: 0 0 .3rem; }
.event-row__title { font-size: 1.15rem; }
.event-row__title a { color: var(--text); text-decoration: none; }
.event-row__title a::after { content: ""; position: absolute; inset: 0; }
.event-row__title a:hover { color: var(--link); text-decoration: underline; }
.event-row:has(a:focus-visible) { outline: 3px solid var(--focus-outer); outline-offset: 2px; }
.event-row a:focus-visible { outline: none; box-shadow: none; }

.month-group + .month-group { margin-top: 2.25rem; }
.month-group__title { font-size: 1.35rem; padding-bottom: .4rem; border-bottom: 2px solid var(--border-soft); margin-bottom: 1rem; }
.facts { display: grid; gap: .75rem 1.5rem; margin: 0 0 1.5rem; padding: 1.25rem; background: var(--surface-alt); border-radius: var(--radius); }
.facts div { display: grid; grid-template-columns: 2rem 1fr; gap: .2rem .5rem; align-items: start; }
.facts dt { font-weight: 750; grid-column: 2; }
.facts dd { margin: 0; grid-column: 2; color: var(--text-muted); }
.facts .icon { grid-row: 1 / span 2; color: var(--primary); width: 1.5rem; height: 1.5rem; margin-top: .1rem; }
@media (min-width: 40rem) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- Filtri ---------------- */
.listing { display: grid; gap: 2rem; }
@media (min-width: 64rem) { .listing { grid-template-columns: 17.5rem 1fr; align-items: start; } }
.filters { padding: 1.25rem; background: var(--surface-alt); border-radius: var(--radius); }
.filters__title { font-size: 1.15rem; margin-bottom: .75rem; }
.filters fieldset { border: 0; margin: 0 0 1.25rem; padding: 0; }
.filters legend { font-weight: 750; margin-bottom: .5rem; padding: 0; }
.filters__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.check { display: flex; align-items: flex-start; gap: .6rem; min-height: 40px; padding-block: .35rem; cursor: pointer; }
.check input { flex: none; width: 1.25rem; height: 1.25rem; margin: .2rem 0 0; accent-color: var(--primary); }
.check__count { color: var(--text-muted); font-size: .9rem; }
.select, .input, .textarea {
  width: 100%; min-height: 48px; padding: .55rem .85rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text);
}
.textarea { min-height: 9rem; line-height: 1.5; resize: vertical; }
.select { appearance: auto; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1.25rem; }
.results-count { margin: 0; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .3rem .95rem;
  border: 2px solid var(--primary-line); border-radius: 999px; background: var(--surface); color: var(--link); font-weight: 650;
}
.chip[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.chip[aria-pressed="true"]::before { content: "✓"; font-weight: 900; }

.view-switch { display: inline-flex; border: 2px solid var(--primary-line); border-radius: 999px; overflow: hidden; }
.view-switch button { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .3rem .9rem; border: 0; background: var(--surface); color: var(--link); font-weight: 650; }
.view-switch button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.is-list .grid { grid-template-columns: 1fr; }
.is-list .card { flex-direction: row; }
.is-list .card__media { flex: 0 0 30%; aspect-ratio: auto; }
@media (max-width: 40rem) { .is-list .card { flex-direction: column; } }
.empty { padding: 2rem; text-align: center; background: var(--surface-alt); border-radius: var(--radius); }

/* ---------------- Zavihki (APG tabs, po A11Y-SCMS) ---------------- */
.tabs { margin-block: 1.5rem; }
.tabs__list { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; }
.tabs__list [role="tab"] {
  min-height: 48px; padding: .5rem 1.15rem; margin-bottom: -2px;
  background: none; border: 0; border-bottom: 4px solid transparent; border-radius: 8px 8px 0 0;
  font-weight: 700; color: var(--text-muted);
}
.tabs__list [role="tab"]:hover { color: var(--link-hover); background: var(--primary-soft); }
.tabs__list [role="tab"][aria-selected="true"] { color: var(--link); border-bottom-color: var(--primary-line); }
.tabs__section[role="tabpanel"] { border-radius: var(--radius-sm); }
.tabs__section + .tabs__section { margin-top: 2rem; }
html.js .tabs__section[role="tabpanel"] + .tabs__section { margin-top: 0; }

/* ---------------- Harmonika (APG accordion, po A11Y-SCMS) ---------------- */
.accordion { margin-block: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.accordion__heading { margin: 0; font-size: 1.05rem; }
.accordion__heading + .accordion__panel, .accordion__panel + .accordion__heading { border-top: 1px solid var(--border-soft); }
.accordion__trigger {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  width: 100%; min-height: 56px; padding: .9rem 1.25rem;
  background: none; border: 0; text-align: start; font-weight: 700; color: var(--text);
}
.accordion__trigger:hover { background: var(--primary-soft); color: var(--link-hover); }
.accordion__trigger[aria-expanded="true"] { background: var(--surface-alt); color: var(--link); }
.accordion__trigger .icon { transition: transform .2s; }
.accordion__trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.accordion > :first-child .accordion__trigger { border-radius: var(--radius) var(--radius) 0 0; }
.accordion__content { padding: 1rem 1.25rem 1.25rem; }
.accordion__content > :last-child { margin-bottom: 0; }

/* ---------------- Tabela ---------------- */
.table-wrap { overflow-x: auto; margin-block: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; min-width: 30rem; }
.table caption { text-align: start; font-weight: 750; padding: .9rem 1rem; font-size: 1.05rem; }
.table th, .table td { padding: .7rem 1rem; text-align: start; border-top: 1px solid var(--border-soft); vertical-align: top; }
.table thead th { background: var(--surface-alt); border-bottom: 2px solid var(--border); }
.table tbody th { font-weight: 700; }
.table .num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------------- Galerija in povečava ---------------- */
.gallery { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.gallery__item { margin: 0; }
.gallery__open { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface-mute); }
.gallery__open img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .35s; }
.gallery__open:hover img { transform: scale(1.05); }
.gallery__zoom { position: absolute; inset-inline-end: .6rem; bottom: .6rem; display: inline-flex; padding: .4rem; border-radius: 50%; background: rgb(6 20 34 / .8); color: #fff; }
.gallery__item figcaption { margin-top: .5rem; font-size: .92rem; color: var(--text-muted); }
.gallery__item figcaption strong { display: block; color: var(--text); }

.lightbox { width: min(64rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.lightbox::backdrop { background: rgb(6 14 22 / .82); }
.lightbox__inner { display: grid; gap: 0; }
@media (min-width: 56rem) { .lightbox__inner { grid-template-columns: 1.5fr 1fr; } }
.lightbox__figure { margin: 0; background: #0b1218; display: flex; align-items: center; justify-content: center; }
.lightbox__figure img { max-height: 76vh; width: auto; object-fit: contain; }
.lightbox__info { padding: 1.5rem; position: relative; }
.lightbox__close { position: absolute; top: .6rem; inset-inline-end: .6rem; }
.lightbox__nav { display: flex; gap: .5rem; margin-top: 1.25rem; }
.lightbox__count { margin: 0 0 .5rem; color: var(--text-muted); font-size: .92rem; }
.lightbox__fake-close { position: absolute; top: .6rem; inset-inline-end: .9rem; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--text-muted); }

/* ---------------- Obrazci (vzorec A11Y-SCMS blockform) ---------------- */
.form { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.form__note { margin: 0 0 1.25rem; font-size: .95rem; color: var(--text-muted); }
.form__grid { display: grid; gap: 1.2rem; }
@media (min-width: 40rem) { .form__grid { grid-template-columns: 1fr 1fr; } .field--half { grid-column: auto !important; } }
.field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: .35rem; margin: 0; min-width: 0; }
.field > label, .field > .field__label, .field > legend { font-weight: 700; font-size: .98rem; padding: 0; }
.field__hint { margin: 0; font-size: .92rem; color: var(--text-muted); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .55rem .85rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text);
}
.field textarea { min-height: 8rem; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #6b7785; opacity: 1; }
fieldset.field { border: 0; padding: 0; }
.req { color: var(--danger); font-weight: 800; }
.field--error {
  margin-inline-start: calc(-1 * (4px + .6rem));
  border-inline-start: 4px solid var(--danger); padding-inline-start: .6rem;
}
.field--error input, .field--error select, .field--error textarea { border-color: var(--danger) !important; border-width: 2px !important; }
.field__error { display: flex; gap: .4rem; align-items: flex-start; margin: 0; color: var(--danger); font-weight: 650; font-size: .95rem; }
.field__error .icon { margin-top: .15em; }
.checks { display: flex; flex-direction: column; gap: .35rem; }
.check-line { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; min-height: 32px; }
.check-line input { flex: none; width: 1.25rem; height: 1.25rem; margin: .2rem 0 0; accent-color: var(--primary); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.error-summary {
  margin: 0 0 1.5rem; padding: 1rem 1.25rem; background: var(--danger-soft);
  border: 1px solid var(--danger); border-inline-start: 6px solid var(--danger); border-radius: 0 var(--radius) var(--radius) 0;
}
.error-summary:focus { outline: 3px solid var(--focus-outer); outline-offset: 2px; }
.error-summary__title { font-size: 1.15rem; margin: 0 0 .4rem; color: var(--text); }
.error-summary ul { margin: .4rem 0 0; }
.error-summary a { color: var(--danger); font-weight: 650; }
.pw-wrap { display: flex; gap: .5rem; }
.pw-wrap input { flex: 1; }

/* ---------------- Obvestila ---------------- */
.notice { padding: 1rem 1.25rem; margin-bottom: 1.25rem; border: 1px solid var(--border); border-inline-start-width: 6px; border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface); }
.notice > :last-child { margin-bottom: 0; }
.notice__title { font-weight: 800; margin: 0 0 .25rem; display: flex; align-items: center; gap: .45rem; }
.notice--info { background: var(--info-soft); border-color: var(--info); }
.notice--ok { background: var(--success-soft); border-color: var(--success); }
.notice--warn { background: var(--warning-soft); border-color: var(--warning); }
.notice--error { background: var(--danger-soft); border-color: var(--danger); }

/* ---------------- Vstopnice in košarica ---------------- */
.ticket { display: grid; gap: 1rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 48rem) { .ticket { grid-template-columns: 1fr auto; align-items: center; } }
.ticket__title { margin: 0 0 .25rem; font-size: 1.15rem; }
.ticket__price { font-size: 1.35rem; font-weight: 850; color: var(--text); }
.ticket__row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--surface); }
.qty__btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--link); font-size: 1.3rem; font-weight: 700; }
.qty__btn:hover { background: var(--primary-soft); }
.qty__input { width: 3.25rem; height: 44px; border: 0 !important; text-align: center; background: transparent; font-weight: 700; -moz-appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.div-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .6em 1.35em; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 700; cursor: pointer; user-select: none; }
.div-btn:hover { background: var(--primary-hover); }
.steps { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 2rem; padding: 0; list-style: none; counter-reset: s; }
.steps li { display: flex; align-items: center; gap: .55rem; color: var(--text-muted); font-weight: 650; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--border); font-weight: 800; }
.steps [aria-current="step"] { color: var(--text); }
.steps [aria-current="step"]::before { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.steps .is-done::before { content: "✓"; border-color: var(--success); color: var(--success); }
.summary-box { padding: 1.25rem; background: var(--surface-alt); border-radius: var(--radius); }
.summary-box dl { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; margin: 0; }
.summary-box dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; }
.summary-box .total { font-weight: 850; font-size: 1.15rem; border-top: 2px solid var(--border); padding-top: .5rem; }
.fake-label { font-weight: 700; font-size: .98rem; }

/* ---------------- Namig (tooltip) ---------------- */
.tip { position: relative; display: inline-flex; vertical-align: middle; }
.tip__btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--link); }
.tip__btn:hover { background: var(--primary-soft); }
.tip__bubble {
  position: absolute; bottom: calc(100% + .4rem); inset-inline-start: 50%; transform: translateX(-50%); z-index: 20;
  width: max-content; max-width: 16rem; padding: .6rem .8rem; border-radius: var(--radius-sm);
  background: var(--band); color: #fff; font-size: .9rem; font-weight: 500; box-shadow: var(--shadow-lg);
}
.tip__bubble::after { content: ""; position: absolute; top: 100%; inset-inline-start: 50%; margin-inline-start: -6px; border: 6px solid transparent; border-top-color: var(--band); }

/* ---------------- Drsnik (range) ---------------- */
.range { display: flex; flex-direction: column; gap: .35rem; }
.range input[type="range"] { width: 100%; accent-color: var(--primary); min-height: 32px; }
.range output { font-weight: 750; }

/* ---------------- Moj načrt obiska (razvrščanje) ---------------- */
.plan { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; counter-reset: p; }
.plan__item { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); counter-increment: p; }
.plan__item::before { content: counter(p) "."; font-weight: 800; color: var(--primary); min-width: 1.5rem; }
.plan__item[draggable="true"] { cursor: grab; }
.plan__item.is-dragging { opacity: .5; }
.plan__name { flex: 1; font-weight: 650; }
.plan__btns { display: flex; gap: .25rem; }
.plan__grip { color: var(--text-muted); }

/* ---------------- Zemljevid ---------------- */
.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-soft); background: #dcebf3; }
.map svg { display: block; width: 100%; height: auto; }
.map__pin { cursor: pointer; }
.map__pin circle { fill: var(--primary); stroke: #fff; stroke-width: 3; }
.map__pin:focus-visible circle, .map__pin:hover circle { fill: var(--accent); }
.map__pin text { font: 700 15px var(--font); fill: #0b2a45; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
:root[data-theme="dark"] .map { background: #1b3343; }

/* ---------------- Video in zvok ---------------- */
.media-block { margin: 0 0 2rem; }
.media-block video { width: 100%; border-radius: var(--radius); background: #000; }
.media-block figcaption { margin-top: .6rem; color: var(--text-muted); }
.transcript { margin-top: 1rem; }
.transcript summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.transcript__body { padding: 1rem 1.25rem; background: var(--surface-alt); border-radius: var(--radius); max-height: 22rem; overflow: auto; }

/* ---------------- Objave na družbenih omrežjih (mock) ---------------- */
.posts { display: grid; gap: 2rem; }
@media (min-width: 64rem) { .posts { grid-template-columns: 1fr 1fr; align-items: start; } }
.post-col__label { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 .75rem; padding: .3rem .8rem; border-radius: 999px; font-weight: 800; font-size: .9rem; }
.post-col__label--bad { background: var(--danger-soft); color: var(--danger); border: 1px solid var(--danger); }
.post-col__label--good { background: var(--success-soft); color: var(--success); border: 1px solid var(--success); }
.post { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.post__head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem .5rem; }
.post__avatar { width: 2.75rem; height: 2.75rem; border-radius: 50%; flex: none; }
.post__name { font-weight: 800; margin: 0; line-height: 1.2; }
.post__time { margin: 0; font-size: .88rem; color: var(--text-muted); }
.post__text { padding: .25rem 1.1rem .9rem; margin: 0; white-space: pre-line; }
.post__media img { width: 100%; }
.post__actions { display: flex; gap: .25rem; padding: .4rem .6rem; border-top: 1px solid var(--border-soft); }
.post__actions button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--text-muted); font-weight: 650; }
.post__actions button:hover { background: var(--surface-alt); }
.sr-sim { margin-top: 1rem; }
.sr-sim__out { margin-top: .75rem; padding: 1rem 1.15rem; background: #0b1218; color: #e5f3ff; border-radius: var(--radius-sm); font-family: ui-monospace, Consolas, monospace; font-size: .95rem; line-height: 1.55; white-space: pre-wrap; }
.sr-sim__out mark { background: #ffe08a; color: #111; padding: 0 .15em; border-radius: 3px; }
.poster { aspect-ratio: 4 / 5; width: 100%; height: auto; display: block; }

/* ---------------- Prose ---------------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose figure { margin: 2rem 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose figcaption { margin-top: .6rem; font-size: .95rem; color: var(--text-muted); }
.prose blockquote { margin: 1.5rem 0; padding: .5rem 0 .5rem 1.25rem; border-inline-start: 4px solid var(--accent); font-family: var(--font-serif); font-size: 1.2rem; font-style: italic; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* ---------------- Paginacija / naloži več ---------------- */
.loadmore { display: flex; flex-direction: column; align-items: center; gap: .75rem; margin-top: 2rem; }

/* ---------------- Financiranje ---------------- */
.funding { display: grid; gap: 1.25rem; align-items: center; padding: 1.5rem; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); }
@media (min-width: 48rem) { .funding { grid-template-columns: auto 1fr; gap: 2rem; } }
.funding img { width: min(100%, 22rem); height: auto; }
.funding p { margin: 0; color: var(--text-muted); }
.logo-dark { display: none !important; }
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }

/* ---------------- Noga ---------------- */
.site-footer { background: var(--band); color: var(--on-band); margin-top: 0; }
.site-footer a { color: var(--on-band); }
.site-footer a:hover { color: #fff; text-decoration-thickness: 2px; }
.newsletter { background: var(--band-2); }
.newsletter__inner { display: grid; gap: 1.5rem; padding-block: 2.5rem; align-items: center; }
@media (min-width: 64rem) { .newsletter__inner { grid-template-columns: 1fr 1.25fr; gap: 3rem; } }
.newsletter__title { color: #fff; margin-bottom: .35rem; }
.newsletter p { color: var(--on-band-muted); margin: 0; }
.nl-form { display: grid; gap: .75rem; grid-template-columns: 1fr; }
.nl-form label, .nl-form .fake-label { font-weight: 700; color: #fff; }
.nl-form input[type="email"], .nl-form input[type="text"] { width: 100%; min-height: 48px; padding: .55rem 1rem; border: 2px solid #fff; border-radius: 999px; background: #fff; color: #17222d; }
.nl-form__row { display: flex; flex-wrap: wrap; gap: .75rem; }
.nl-form__row > :first-child { flex: 1 1 16rem; }
.nl-form .check-line { color: var(--on-band); }
.nl-form .check-line input { accent-color: #fff; }
.nl-form .field__error { color: #ffc9c4; }
.nl-form .btn--light { min-width: 9rem; }
.nl-msg { padding: .75rem 1rem; border-radius: var(--radius-sm); background: #e3f4ec; color: #064e30; font-weight: 650; }
.nl-msg--err { background: #fdecea; color: #8a1c12; }

.footer-main { padding-block: 3rem 2rem; }
.footer-cols { display: grid; gap: 2rem; }
@media (min-width: 40rem) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .footer-cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-cols h2, .footer-cols .h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: .07em; color: #fff; margin-bottom: .8rem; }
.footer-cols ul { margin: 0; padding: 0; list-style: none; }
.footer-cols li a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; }
.footer-cols li a:hover { text-decoration: underline; }
.footer-cols p, .footer-cols address { color: var(--on-band-muted); }
.footer-social { display: flex; gap: .4rem; margin-top: 1rem; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .6); }
.footer-social a:hover { background: rgb(255 255 255 / .12); }
.footer-funding { background: #ffffff; color: #17222d; }
.footer-funding__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-block: 1.25rem; }
.footer-funding img { width: 18rem; max-width: 100%; height: auto; }
.footer-funding p { margin: 0; flex: 1 1 20rem; font-size: .95rem; color: #3c4a58; }
:root[data-theme="dark"] .footer-funding { background: var(--surface); color: var(--text); }
:root[data-theme="dark"] .footer-funding p { color: var(--text-muted); }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .2); padding-block: 1.25rem; font-size: .92rem; color: var(--on-band-muted); }
.footer-bottom__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.footer-bottom p { margin: 0; }
.demo-note { display: inline-flex; align-items: center; gap: .4rem; }

/* ---------------- Na vrh ---------------- */
.to-top { position: fixed; inset-inline-end: 1rem; bottom: 1rem; z-index: 40; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-lg); text-decoration: none; }
.to-top:hover { background: var(--primary-hover); color: var(--on-primary); }
html.js .to-top:not(.is-visible) { display: none; }

/* ---------------- Pasica piškotkov (napaka focus-obscured) ---------------- */
.cookie { position: fixed; inset-inline: 0; bottom: 0; z-index: 80; background: var(--band); color: #fff; padding: 1.25rem 0 1.5rem; box-shadow: 0 -6px 24px rgb(0 0 0 / .25); }
.cookie__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.cookie p { margin: 0; flex: 1 1 24rem; }
.cookie a { color: #fff; }

/* ---------------- Poenostavljen pogled ---------------- */
html.simple .hero__img, html.simple .card__media, html.simple .split img, html.simple .pagehead--image img, html.simple .quick__icon { display: none; }
html.simple .hero__slide::after { display: none; }
html.simple .hero__slide { min-height: 0; }
html.simple .hero__caption { padding-block: 2rem 5rem; }
html.simple .grid--3, html.simple .grid--4 { grid-template-columns: 1fr; }
html.simple body { font-size: 1.15rem; }
html.simple .card, html.simple .quick__item a { box-shadow: none; }

/* ---------------- Strani za izvajalce in zemljevid strani ---------------- */
.flag-table td code { font-size: .88rem; }
.sitemap ul { list-style: disc; }
.sitemap li { margin: .3rem 0; }
.status-pill { display: inline-flex; padding: .1rem .55rem; border-radius: 999px; font-size: .82rem; font-weight: 800; }
.status-pill--on { background: var(--danger-soft); color: var(--danger); }
.status-pill--off { background: var(--success-soft); color: var(--success); }

/* ============================================================
   NAPAKE POVEČAVE IN PRERAZPOREDITVE (V1)
   ============================================================ */

/* ---------------- Drobni popravki postavitve ---------------- */
.facts div { align-content: start; }
@media (max-width: 40rem) {
  .tools > li:last-child { display: none; } /* zemljevid strani je dosegljiv tudi v nogi */
  .tools__link { padding: 0 .4rem; }
}

/* ---------------- Vrtiljak: upravljanje zgoraj desno in prvo v zaporedju (dostopna različica) ---------------- */
.hero__controls--top { top: 1.25rem; bottom: auto; }
.hero:has(.hero__controls--top) .hero__caption { padding-block: 5.5rem 3.5rem; }
@media (max-width: 40rem) {
  .hero__controls--top { inset-inline-end: 1rem; top: 1rem; }
}

/* ================= PREVERITEV 400 % (SC 1.4.10, 2.4.11) =================
   Pri 400 % je okno 1366 × 768 le ~341 × 192 CSS px: nič se ne sme raztegniti čez širino,
   lepljivi in pritrjeni elementi pa ne smejo zakriti vsebine ali fokusa. */
.mainbar { flex-wrap: wrap; row-gap: .25rem; }
.brand { min-width: 0; }
.brand__text { min-width: 0; }
.header-actions { flex-wrap: wrap; justify-content: flex-end; margin-inline-start: auto; }
@media (max-width: 24rem) {
  .header-actions { width: 100%; justify-content: space-between; }
  .brand__name { font-size: 1.35rem; }
}
/* Vrstica »Dodaj v košarico« je lepljiva samo, kadar je okno dovolj veliko. */
.sticky-actions { padding-block: 1rem; border-top: 1px solid var(--border-soft); background: var(--bg); }
@media (min-width: 48rem) and (min-height: 40rem) {
  .sticky-actions { position: sticky; bottom: 0; z-index: 5; }
}
/* Gumb »Na vrh« ne sme prekrivati vsebine v nizkem oknu. */
@media (max-height: 30rem), (max-width: 24rem) {
  .to-top { display: none !important; }
}
/* Able Player: izbirnik jezika prepisa in orodna vrstica se prelomita */
.able-transcript-area .able-window-toolbar, .able-transcript-language-select-wrapper { flex-wrap: wrap; max-width: 100%; }
.able-transcript-language-select-wrapper select { max-width: 100%; }
.able-wrapper, .able-transcript-area { max-width: 100%; }
/* Ozko okno: zgornji pas v eni vrstici – besedila orodij ostanejo dostopna, vidne so ikone. */
@media (max-width: 30rem) {
  .topbar__inner { flex-wrap: nowrap; gap: 0; padding-inline: .5rem; }
  .tools { flex-wrap: nowrap; gap: 0; }
  .tools__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tools__link, .tool-social a { min-width: 40px; padding: 0 .3rem; justify-content: center; }
  .langs a, .langs span[aria-current] { min-width: 36px; padding: 0 .3rem; }
  .appearance__panel { inset-inline-end: auto; inset-inline-start: 0; min-width: 0; width: min(17rem, calc(100vw - 1rem)); }
}
/* Količina: obroč fokusa ne sme biti odrezan (SC 2.4.7, 2.4.11) */
.qty { overflow: visible; }
.qty__btn:first-child { border-radius: 999px 0 0 999px; }
.qty__btn:last-child { border-radius: 0 999px 999px 0; }
.qty__input:focus-visible { outline-offset: -3px; }
/* 320 px (1280 px pri 400 %): dolgi nizi v objavah se prelomijo */
.posts > * { min-width: 0; }
.post__text, .sr-sim__out { overflow-wrap: anywhere; }
.post__actions { flex-wrap: wrap; }
.post__actions button { min-width: 0; flex: 1 1 auto; }
