/* =====================================================================
   mesto-v1.css — mestna aplikacija, TEMELJ za 4 male portale (nov. 2026)
   Tokeni, osnova, postavitev, glava, čipi, iskanje, meni Več, spodnji meni,
   noga in skupni gradniki. Najprej telefon, potem min-width.
   Barve/pisavo/zaobljenost nastavi base.html (style#ma-tema) iz _teme.html.
   Strani: mesto-strani-v1.css, dogodki: mesto-dogodki-v1.css (ne sem!).
   Prelomi: 600 (večji telefon), 768 (tablica, ni spodnjega menija),
            1100 (namizje), 1280 (rubrike v glavi), 1440 (širše).
   ===================================================================== */

/* ---------- 0. Tokeni (privzeto Mislinjčan; base.html jih prepiše) ---------- */
:root {
  --ma-brand: #173F2E;
  --ma-brand-deep: #0F2C20;
  --ma-accent: #173F2E;
  --ma-bg: #EDF1EE;
  --ma-tint: #DDEFE3;
  --ma-tint-2: #CBE5D4;
  --ma-on-brand-2: #A9D9BF;
  --ma-accent-on-dark: #A9D9BF; /* poudarek na temni podlagi (Ravne: žar) */
  --ma-text: #15231C;
  --ma-text-2: #3E4C45;
  --ma-text-3: #5A6761;
  --ma-surface: #FFFFFF;
  --ma-signal: #F0472E;          /* rdeča strešica nad č: samo pike in opozorila */
  --ma-signal-ink: #CC3820;      /* ista rdeča, kadar nosi belo besedilo (AA) */
  --ma-line: rgb(16 28 22 / .09);
  --ma-line-strong: rgb(16 28 22 / .17);
  --ma-scrim: 8 18 14;           /* RGB za temnenje pod besedilom na fotografiji */
  --ma-k-power: #F6C453;          /* vrste obvestil na temni podlagi */
  --ma-k-water: #7CC4F0;
  --ma-k-road: #FF9A80;
  --ma-k-info: var(--ma-on-brand-2);

  /* pisava (tema) */
  --ma-font: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ma-w-head: 700;
  --ma-w-strong: 650;
  --ma-w-num: 300;
  --ma-stretch-head: 100%;
  --ma-track-head: -0.03em;

  /* tipografska lestvica */
  --ma-t-xs: 12.5px;
  --ma-t-sm: 13.5px;
  --ma-t-base: 16px;
  --ma-t-md: 17px;
  --ma-t-lg: 19px;
  --ma-t-xl: 22px;
  --ma-t-2xl: clamp(24px, 2.4vw + 14px, 30px);
  --ma-t-3xl: clamp(28px, 3.2vw + 14px, 44px);
  --ma-t-4xl: clamp(30px, 4vw + 14px, 58px);

  /* razmiki (4-mreža) */
  --ma-s-1: 4px;  --ma-s-2: 8px;  --ma-s-3: 12px; --ma-s-4: 16px; --ma-s-5: 20px;
  --ma-s-6: 24px; --ma-s-7: 32px; --ma-s-8: 40px; --ma-s-9: 56px; --ma-s-10: 72px;

  /* oblika (tema) */
  --ma-r-tile: 28px;
  --ma-r-card: 22px;
  --ma-r-media: 18px;
  --ma-r-sm: 12px;
  --ma-r-pill: 999px;
  --ma-shadow: 0 1px 1px rgb(12 24 18 / .03), 0 6px 16px -8px rgb(12 24 18 / .16);
  --ma-shadow-lift: 0 2px 6px rgb(12 24 18 / .06), 0 24px 48px -24px rgb(12 24 18 / .45);

  /* postavitev */
  --ma-max: 1296px;
  --ma-read: 1088px;
  --ma-col: 720px;
  --ma-gutter: 16px;
  --ma-gap: 12px;
  --ma-appbar-h: 58px;
  --ma-tab-h: 64px;
  --ma-tab-space: calc(var(--ma-tab-h) + 20px + env(safe-area-inset-bottom));
  --ma-logo-h: 23px;
  --ma-logo-ratio: 4.82;
}

/* ---------- 1. Osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--ma-appbar-h) + 12px); scroll-padding-bottom: var(--ma-tab-space); }
body.ma-body {
  margin: 0; min-width: 320px; overflow-x: clip;
  background: var(--ma-bg); color: var(--ma-text);
  font-family: var(--ma-font); font-size: var(--ma-t-base); line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  padding-bottom: var(--ma-tab-space);           /* spodnji meni nikoli ne prekrije vsebine */
}
/* :where() = ničelna specifičnost, da razredi gradnikov vedno zmagajo */
:where(.ma-body) :where(img, video, iframe, svg) { max-width: 100%; }
:where(.ma-body) img { height: auto; }
:where(.ma-body) a { color: inherit; }
:where(.ma-body) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.ma-body) :where(h1, h2, h3, h4) { text-wrap: balance; }
:where(.ma-body) :focus-visible { outline: 3px solid var(--ma-accent); outline-offset: 3px; border-radius: 10px; }
.ma-main:focus { outline: none; }
.ma-i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ma-i--sm { width: 16px; height: 16px; }
.ma-i--lg { width: 24px; height: 24px; }
.ma-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ma-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ma-skip { position: absolute; left: 12px; top: -80px; z-index: 200; padding: 12px 18px; border-radius: var(--ma-r-pill); background: var(--ma-brand); color: #fff !important; font-weight: 650; text-decoration: none; }
.ma-skip:focus { top: 12px; }
.ma-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 2. Tipografija ---------- */
.ma-h1, .ma-h2, .ma-h3, .ma-shead__title, .ma-tile__title, .ma-card__title, .ma-sheet__title {
  font-weight: var(--ma-w-head); font-stretch: var(--ma-stretch-head); letter-spacing: var(--ma-track-head); color: var(--ma-brand-deep);
}
.ma-h1 { margin: 0; font-size: var(--ma-t-4xl); line-height: 1.04; }
.ma-h2 { margin: 0; font-size: var(--ma-t-2xl); line-height: 1.12; }
.ma-h3 { margin: 0; font-size: var(--ma-t-xl); line-height: 1.2; }
.ma-lead { margin: 0; font-size: var(--ma-t-lg); line-height: 1.5; color: var(--ma-text-2); }
.ma-muted { color: var(--ma-text-3); }
.ma-num { font-weight: var(--ma-w-num); font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }

/* ---------- 3. Postavitev ---------- */
.ma-wrap { width: min(100% - 2 * var(--ma-gutter), var(--ma-max)); margin-inline: auto; }
.ma-readwrap { width: min(100% - 2 * var(--ma-gutter), var(--ma-read)); margin-inline: auto; }
.ma-col { width: min(100% - 2 * var(--ma-gutter), var(--ma-col)); margin-inline: auto; }
.ma-main { display: block; min-height: 50vh; }
.ma-sec { margin-top: var(--ma-s-9); }
.ma-stack > * + * { margin-top: var(--ma-gap); }
.ma-grid { display: grid; gap: var(--ma-gap); grid-template-columns: minmax(0, 1fr); }
.ma-page-head { padding: var(--ma-s-6) 0 var(--ma-s-5); }
.ma-page-head .ma-h1 { font-size: var(--ma-t-3xl); }
.ma-page-head .ma-lead { margin-top: var(--ma-s-3); max-width: 62ch; }

/* ---------- 4. Glava ---------- */
.ma-appbar { position: relative; z-index: 50; background: var(--ma-bg); border-bottom: 1px solid var(--ma-line); }
.ma-appbar__in { display: flex; align-items: center; gap: var(--ma-s-3); height: var(--ma-appbar-h); }
.ma-logo { flex: none; display: block; line-height: 0; border-radius: 8px; }
.ma-logo img { height: var(--ma-logo-h); width: auto; }
.ma-nav { display: none; }
.ma-appbar__end { display: flex; align-items: center; gap: var(--ma-s-2); margin-left: auto; }
.ma-chipbtn, .ma-login, .ma-iconbtn, .ma-back {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--ma-s-2);
  height: 44px; min-width: 44px; padding: 0 16px; border-radius: var(--ma-r-pill);
  border: 1px solid var(--ma-line); background: var(--ma-surface); color: var(--ma-brand-deep);
  font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.ma-chipbtn:hover, .ma-iconbtn:hover, .ma-back:hover { border-color: var(--ma-line-strong); }
.ma-iconbtn { width: 44px; padding: 0; }
.ma-chipbtn--search, .ma-chipbtn--more { display: none; }
.ma-login { width: 44px; padding: 0; background: var(--ma-brand); border-color: var(--ma-brand); color: #fff; }
.ma-login > span:not(.ma-avatar) { display: none; }   /* napis; avatar prijavljenega ostane viden */
.ma-login:hover { background: var(--ma-brand-deep); }
.ma-login.is-in { background: var(--ma-surface); border-color: var(--ma-line); color: var(--ma-brand-deep); }
.ma-back { padding: 0 14px 0 8px; gap: 2px; }

/* ---------- 5. Čipi ---------- */
.ma-chips { position: relative; }
.ma-chips__track { display: flex; gap: var(--ma-s-2); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; padding: 2px var(--ma-gutter); scroll-padding-inline: var(--ma-gutter); }
.ma-chips__track::-webkit-scrollbar { display: none; }
.ma-chip {
  flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 18px;
  border-radius: var(--ma-r-pill); border: 1px solid var(--ma-line); background: var(--ma-surface);
  color: var(--ma-text-2); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.ma-chip:hover { border-color: var(--ma-line-strong); color: var(--ma-brand-deep); }
.ma-chip[aria-current="page"], .ma-chip.is-active { background: var(--ma-brand); border-color: var(--ma-brand); color: #fff; }
.ma-chips--bar { padding: var(--ma-s-3) 0 var(--ma-s-1); }
.ma-chips--bar .ma-chips__track { width: min(100%, var(--ma-max) + 2 * var(--ma-gutter)); margin-inline: auto; }

/* ---------- 6. Iskanje (plošča) ---------- */
.ma-search, .ma-sheet { position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; }
.ma-search.is-open, .ma-sheet.is-open, .ma-sheet:target { visibility: visible; pointer-events: auto; }
.ma-scrim { position: absolute; inset: 0; background: rgb(var(--ma-scrim) / .42); opacity: 0; transition: opacity .2s ease; }
.is-open > .ma-scrim, .ma-sheet:target > .ma-scrim { opacity: 1; }
.ma-search__panel { position: absolute; left: 0; right: 0; top: 0; padding: calc(env(safe-area-inset-top) + 10px) 0 12px; background: var(--ma-surface); box-shadow: var(--ma-shadow-lift); transform: translateY(-100%); transition: transform .22s ease; }
.ma-search.is-open .ma-search__panel { transform: none; }
.ma-search__in { display: flex; align-items: center; gap: var(--ma-s-2); }
.ma-search__field { flex: 1; min-width: 0; }
.ma-search__field .ma-input:focus { background: var(--ma-surface); }
.ma-search .ma-btn { display: none; }

/* ---------- 7. Meni Več (spodnji list; na namizju predal) ---------- */
.ma-sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column;
  max-height: min(90vh, 780px); max-height: min(90dvh, 780px);
  background: var(--ma-surface); border-radius: 24px 24px 0 0; box-shadow: var(--ma-shadow-lift);
  transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1);
}
.is-open > .ma-sheet__panel, .ma-sheet:target > .ma-sheet__panel { transform: none; }
.ma-sheet__panel::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 99px; background: var(--ma-line-strong); }
.ma-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: var(--ma-s-3); padding: 22px var(--ma-s-5) var(--ma-s-2); }
.ma-sheet__title { margin: 0; font-size: var(--ma-t-xl); }
.ma-sheet__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--ma-s-2) var(--ma-s-5) var(--ma-s-5); }
.ma-sheet__body > * + * { margin-top: var(--ma-s-5); }
.ma-sheet__last { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--ma-r-sm); background: var(--ma-tint); color: var(--ma-brand-deep); text-decoration: none; }
.ma-sheet__last span { font-size: var(--ma-t-xs); font-weight: 650; color: var(--ma-text-2); }
.ma-sheet__last b { font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ma-sheet__nav { display: grid; }
.ma-sheet__nav a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; border-bottom: 1px solid var(--ma-line); font-size: 17px; font-weight: 600; color: var(--ma-brand-deep); text-decoration: none; }
.ma-sheet__nav a[aria-current="page"] { color: var(--ma-accent); }
.ma-sheet__nav .ma-i { color: var(--ma-text-3); }
.ma-sheet__apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: var(--ma-s-2); }
.ma-sheet__apps a, .ma-sheet__apps button {
  display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 84px; padding: 10px 4px;
  border: 1px solid var(--ma-line); border-radius: var(--ma-r-card); background: var(--ma-surface);
  color: var(--ma-brand-deep); font-size: 12.5px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
}
.ma-sheet__apps .ma-iconchip { width: 40px; height: 40px; border-radius: 12px; }
.ma-sheet__apps a:hover, .ma-sheet__apps button:hover { border-color: var(--ma-line-strong); }
.ma-sheet__wx { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ma-text-2); }
.ma-sheet__wx b { color: var(--ma-brand-deep); }
.ma-sheet__pages { display: flex; flex-wrap: wrap; gap: 0 18px; }
.ma-sheet__pages a, .ma-sheet__pages button { display: inline-flex; align-items: center; min-height: 40px; padding: 0; border: 0; background: none; font-size: 14.5px; color: var(--ma-text-2); text-decoration: none; cursor: pointer; }
.ma-sheet__pages a:hover, .ma-sheet__pages button:hover { color: var(--ma-brand-deep); text-decoration: underline; }
.ma-sheet__foot { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ma-s-2); padding: var(--ma-s-3) var(--ma-s-5) calc(var(--ma-s-3) + env(safe-area-inset-bottom)); border-top: 1px solid var(--ma-line); }
.ma-sheet__foot .ma-btn { width: 100%; }
.ma-noscroll { overflow: hidden; }

/* ---------- 8. Spodnji meni (telefon) ---------- */
.ma-tabbar {
  position: fixed; z-index: 70; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  height: var(--ma-tab-h); padding: 5px; border-radius: 26px; border: 1px solid var(--ma-line);
  background: color-mix(in srgb, var(--ma-surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
  box-shadow: 0 10px 30px -12px rgb(var(--ma-scrim) / .4), 0 1px 2px rgb(var(--ma-scrim) / .08);
}
.ma-tab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 0; border-radius: 20px; color: var(--ma-text-3); font-size: 11.5px; font-weight: 650; text-decoration: none;
}
.ma-tab .ma-i { width: 24px; height: 24px; }
.ma-tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-tab[aria-current="page"] { background: var(--ma-tint); color: var(--ma-brand); }
.ma-tab__dot { position: absolute; top: 7px; left: calc(50% + 7px); width: 9px; height: 9px; border-radius: 50%; background: var(--ma-signal); box-shadow: 0 0 0 2px var(--ma-surface); }

/* ---------- 9. Noga ---------- */
.ma-footer { margin-top: var(--ma-s-9); margin-bottom: var(--ma-s-4); }
.ma-footer__in { display: grid; gap: var(--ma-s-7); padding: var(--ma-s-7) var(--ma-s-6) var(--ma-s-5); border-radius: var(--ma-r-tile); background: var(--ma-brand-deep); color: #fff; }
.ma-footer__logo { display: inline-block; line-height: 0; border-radius: 6px; }
.ma-footer__logo img { height: 30px; width: auto; }
.ma-footer__brand p { margin: var(--ma-s-4) 0 var(--ma-s-3); max-width: 36ch; font-size: 15.5px; line-height: 1.55; color: rgb(255 255 255 / .8); }
.ma-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ma-s-6) var(--ma-s-4); }
.ma-footer__cols h2 { margin: 0 0 var(--ma-s-2); font-size: 14px; font-weight: 700; letter-spacing: 0; color: var(--ma-on-brand-2); }
.ma-footer__cols ul { list-style: none; margin: 0; padding: 0; }
.ma-footer__cols > div:last-child { grid-column: 1 / -1; }
.ma-footer__cols > div:last-child ul { columns: 2; column-gap: var(--ma-s-4); }
.ma-footer__cols li { break-inside: avoid; }
.ma-footer__cols a, .ma-footer__cols button { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; font-size: 15px; color: rgb(255 255 255 / .9); text-align: left; text-decoration: none; cursor: pointer; }
.ma-footer__cols a:hover, .ma-footer__cols button:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ma-footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: var(--ma-s-5); border-top: 1px solid rgb(255 255 255 / .14); font-size: 13.5px; color: rgb(255 255 255 / .74); }
.ma-footer__bar a { color: #fff; }
.ma-footer :focus-visible { outline-color: #fff; }
.ma-social { display: inline-flex; gap: var(--ma-s-2); }
.ma-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ma-line); color: var(--ma-brand-deep); }
.ma-social--footer a { border-color: rgb(255 255 255 / .22); color: #fff; }
.ma-social--footer a:hover { background: rgb(255 255 255 / .1); }

/* ---------- 10. Gumbi ---------- */
.ma-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--ma-s-2);
  min-height: 44px; padding: 0 22px; border: 0; border-radius: var(--ma-r-pill);
  background: var(--ma-brand); color: #fff; font-size: 15px; font-weight: 650; line-height: 1.1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.ma-btn:hover { background: var(--ma-brand-deep); }
.ma-btn:disabled, .ma-btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.ma-btn--soft { background: var(--ma-tint); color: var(--ma-brand); }
.ma-btn--soft:hover { background: var(--ma-tint-2); }
.ma-btn--ghost { background: transparent; color: var(--ma-brand); box-shadow: inset 0 0 0 1.5px currentColor; }
.ma-btn--ghost:hover { background: var(--ma-brand); color: #fff; box-shadow: none; }
.ma-btn--light { background: #fff; color: var(--ma-brand-deep); }
.ma-btn--light:hover { background: var(--ma-tint); }
.ma-btn--accent { background: var(--ma-accent); }
.ma-btn--block { width: 100%; }
.ma-btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.ma-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: var(--ma-r-pill); border: 1px solid var(--ma-line); background: var(--ma-surface); color: var(--ma-brand-deep); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ma-pill:hover { border-color: var(--ma-line-strong); }
.ma-roundbtn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--ma-line); background: var(--ma-surface); color: var(--ma-brand-deep); cursor: pointer; }
.ma-roundbtn:hover:not(:disabled) { border-color: var(--ma-line-strong); }
.ma-roundbtn:disabled { opacity: .38; cursor: default; }
.ma-iconchip { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ma-tint); color: var(--ma-brand); }
.ma-iconchip .ma-i { width: 22px; height: 22px; }

/* ---------- 11. Ploščice ---------- */
.ma-tile { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--ma-line); border-radius: var(--ma-r-tile); background: var(--ma-surface); box-shadow: var(--ma-shadow); }
.ma-tile--pad { padding: var(--ma-s-5) var(--ma-s-5) var(--ma-s-3); }
.ma-tile--tint { background: var(--ma-tint); border-color: transparent; box-shadow: none; }
.ma-tile--dark { background: var(--ma-brand); border-color: transparent; color: #fff; box-shadow: var(--ma-shadow-lift); }
.ma-tile--dark .ma-tile__title, .ma-tile--dark .ma-tile__more { color: #fff; }
.ma-tile--dark .ma-tile__more { text-decoration-color: rgb(255 255 255 / .4); }
.ma-tile--dark :focus-visible { outline-color: #fff; }
.ma-tile--photo { border: 0; background: var(--ma-brand-deep); box-shadow: var(--ma-shadow-lift); }
.ma-tile__head { display: flex; align-items: center; justify-content: space-between; gap: var(--ma-s-3); margin-bottom: var(--ma-s-1); }
.ma-tile__title { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 20px; line-height: 1.2; }
.ma-tile__title a { color: inherit; text-decoration: none; }
.ma-tile__more {
  display: inline-flex; align-items: center; min-height: 44px; margin: -10px -4px; padding: 0 4px;
  font-size: 14px; font-weight: 600; color: var(--ma-accent);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: var(--ma-tint-2);
}
.ma-tile__more:hover { text-decoration-color: currentColor; }
.ma-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: var(--ma-r-pill); background: var(--ma-signal-ink); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0; font-stretch: 100%; }

/* ---------- 12. Kartice ---------- */
.ma-card { min-width: 0; }
.ma-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.ma-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--ma-r-card); background: var(--ma-tint); }
.ma-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ma-card__body { display: flex; flex-direction: column; gap: var(--ma-s-2); padding: 14px 4px 0; }
.ma-card__title { margin: 0; font-size: 18px; line-height: 1.26; letter-spacing: -0.012em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ma-card__ex { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ma-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ma-card__link:hover .ma-card__title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
/* v ploščici: slika z notranjim robom, koncentrični koti */
.ma-card--tile { padding: 10px 10px 18px; }
.ma-card--tile .ma-card__media { border-radius: calc(var(--ma-r-tile) - 10px); }
.ma-card--tile .ma-card__body { padding: 14px 10px 0; }
/* vrstica: besedilo levo, sličica desno */
.ma-card--row .ma-card__link { flex-direction: row-reverse; align-items: flex-start; gap: 14px; }
.ma-card--row .ma-card__media { flex: none; width: 104px; aspect-ratio: 1; border-radius: var(--ma-r-media); }
.ma-card--row .ma-card__body { flex: 1; min-width: 0; padding: 2px 0 0; gap: 6px; }
.ma-card--row .ma-card__title { font-size: 16.5px; }
.ma-card--row .ma-badges { left: 6px; top: 6px; }
.ma-card--row .ma-badge { height: 24px; padding: 0 8px 0 7px; font-size: 12px; }
/* brez slike */
.ma-card--mini .ma-card__body { padding: 0; }
.ma-card--mini .ma-card__title { font-size: 16px; }
/* besedilo čez fotografijo */
.ma-card--hero { position: relative; overflow: hidden; border-radius: var(--ma-r-tile); background: var(--ma-brand-deep); }
.ma-card--hero .ma-card__link { color: #fff; }
.ma-card--hero .ma-card__media { aspect-ratio: 4 / 5; border-radius: 0; }
.ma-card--hero .ma-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(var(--ma-scrim) / 0) 42%, rgb(var(--ma-scrim) / .5) 66%, rgb(var(--ma-scrim) / .9) 100%); }
.ma-card--hero .ma-card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 var(--ma-s-5) var(--ma-s-5); }
.ma-card--hero .ma-card__title { color: #fff; font-size: var(--ma-t-2xl); line-height: 1.1; -webkit-line-clamp: 4; text-shadow: 0 1px 24px rgb(var(--ma-scrim) / .35); }
.ma-card--hero .ma-kick__cat, .ma-card--hero .ma-kick__region, .ma-card--hero .ma-time { color: rgb(255 255 255 / .86); }
.ma-card--hero .ma-place { background: rgb(255 255 255 / .18); color: #fff; }
.ma-card--hero :focus-visible { outline-color: #fff; }

/* ---------- 13. Vrstica nad naslovom, čas, kraj, oznake ---------- */
.ma-kick { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: var(--ma-t-sm); font-weight: 600; line-height: 1.25; }
.ma-kick:empty { display: none; }
.ma-kick__cat { color: var(--ma-accent); text-decoration: none; }
a.ma-kick__cat:hover { text-decoration: underline; }
.ma-kick__region { color: var(--ma-text-3); font-weight: 500; }
.ma-kick__ad { padding: 2px 8px; border-radius: 6px; background: var(--ma-text-2); color: #fff; font-size: var(--ma-t-xs); }
.ma-place { display: inline-flex; align-items: center; gap: 3px; padding: 3px 9px 3px 6px; border-radius: var(--ma-r-pill); background: var(--ma-tint); color: var(--ma-brand); font-size: 13px; font-weight: 600; line-height: 1.2; }
.ma-place .ma-i { width: 14px; height: 14px; }
.ma-time { font-size: var(--ma-t-sm); font-weight: 500; color: var(--ma-text-3); font-variant-numeric: tabular-nums; }
.ma-badges { position: absolute; left: 10px; top: 10px; z-index: 1; display: flex; gap: 6px; }
.ma-badge { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px 0 9px; border-radius: var(--ma-r-pill); background: rgb(var(--ma-scrim) / .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-size: 13px; font-weight: 600; }
.ma-badge .ma-i { width: 14px; height: 14px; }
.ma-avatar { display: inline-grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--ma-tint-2); color: var(--ma-brand-deep); font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.ma-avatar--sm { width: 30px; height: 30px; font-size: 12.5px; }
img.is-broken { visibility: hidden; }

/* ---------- 14. Seznami ---------- */
.ma-list { list-style: none; margin: 0; padding: 0; }
.ma-list > li + li { border-top: 1px solid var(--ma-line); }
.ma-list > li > a { display: block; padding: 13px 0; color: inherit; text-decoration: none; }
.ma-rank { list-style: none; margin: 0; padding: 0; counter-reset: ma-rank; }
.ma-rank > li + li { border-top: 1px solid var(--ma-line); }
.ma-rank a { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 0; color: var(--ma-brand-deep); text-decoration: none; }
.ma-rank__n { margin-top: -4px; font-size: 34px; line-height: 1; color: var(--ma-accent); font-weight: var(--ma-w-num); font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.ma-rank__t { font-size: 16px; font-weight: 600; line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ma-rank a:hover .ma-rank__t { text-decoration: underline; text-underline-offset: 3px; }
/* datum na listku */
.ma-date { display: inline-grid; justify-items: center; align-content: center; flex: none; width: 56px; min-height: 58px; padding: 6px 0 7px; border-radius: calc(var(--ma-r-sm) + 4px); background: var(--ma-accent); color: #fff; line-height: 1; }
.ma-date b { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.ma-date span { margin-top: 3px; font-size: 12.5px; font-weight: 600; opacity: .9; }
/* dogodek v seznamu */
.ma-ev { display: flex; align-items: center; gap: 14px; padding: 10px 0; color: inherit; text-decoration: none; }
.ma-ev__body { display: grid; gap: 3px; min-width: 0; }
.ma-ev__title { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.28; color: var(--ma-brand-deep); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ma-ev__meta { font-size: var(--ma-t-sm); color: var(--ma-text-3); }
.ma-ev__meta b { color: var(--ma-signal-ink); font-weight: 650; }
.ma-ev:hover .ma-ev__title { text-decoration: underline; text-underline-offset: 3px; }
.ma-ev.is-cancelled .ma-ev__title { text-decoration: line-through; text-decoration-thickness: 1.5px; }
/* obvestila (privzeto na temni ploščici; .ma-notices--light za svetlo) */
.ma-notices { list-style: none; margin: 0; padding: 0; }
.ma-notice + .ma-notice { border-top: 1px solid rgb(255 255 255 / .12); }
.ma-notice__link { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; color: #fff; text-decoration: none; }
.ma-notice__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: calc(var(--ma-r-sm) + 1px); background: rgb(255 255 255 / .1); color: var(--ma-k-info); }
.ma-notice__icon .ma-i { width: 22px; height: 22px; stroke-width: 2; }
.ma-notice--power .ma-notice__icon { color: var(--ma-k-power); }
.ma-notice--water .ma-notice__icon { color: var(--ma-k-water); }
.ma-notice--road .ma-notice__icon { color: var(--ma-k-road); }
.ma-notice__text { display: grid; gap: 3px; min-width: 0; padding-top: 1px; }
.ma-notice__title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ma-notice__meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: var(--ma-t-sm); color: var(--ma-on-brand-2); }
.ma-notice__meta .ma-time { color: inherit; }
.ma-notice__kind { font-weight: 600; color: #fff; }
.ma-notice__link:hover .ma-notice__title { text-decoration: underline; text-underline-offset: 3px; }
.ma-notices--light .ma-notice + .ma-notice { border-top-color: var(--ma-line); }
.ma-notices--light .ma-notice__link { color: var(--ma-brand-deep); }
.ma-notices--light .ma-notice__icon { background: var(--ma-tint); color: var(--ma-brand); }
.ma-notices--light .ma-notice--water .ma-notice__icon { background: #E3F1FA; color: #1F6A99; }
.ma-notices--light .ma-notice--road .ma-notice__icon { background: #FCE9E3; color: #B23A1E; }
.ma-notices--light .ma-notice--power .ma-notice__icon { background: #FBF0D5; color: #8A5B00; }
.ma-notices--light .ma-notice__meta { color: var(--ma-text-3); }
.ma-notices--light .ma-notice__kind { color: var(--ma-text-2); }

/* ---------- 15. Glava sekcije, vrsta kartic ---------- */
.ma-shead { display: flex; align-items: center; justify-content: space-between; gap: var(--ma-s-4); margin-bottom: var(--ma-s-4); }
.ma-shead__title { margin: 0; font-size: var(--ma-t-2xl); line-height: 1.15; }
.ma-shead__title a { color: inherit; text-decoration: none; }
.ma-shead__sub { margin: 4px 0 0; font-size: 15px; color: var(--ma-text-3); }
.ma-shead__tools { display: flex; align-items: center; gap: var(--ma-s-2); }
.ma-shead__tools .ma-roundbtn { display: none; }
.ma-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 76%; gap: var(--ma-gap);
  margin-inline: calc(-1 * var(--ma-gutter)); padding-inline: var(--ma-gutter); scroll-padding-inline: var(--ma-gutter);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px;
}
.ma-rail::-webkit-scrollbar { display: none; }
.ma-rail > * { scroll-snap-align: start; }

/* ---------- 16. Prazno stanje ---------- */
.ma-empty { display: grid; justify-items: start; gap: var(--ma-s-2); padding: var(--ma-s-6); border: 1px dashed var(--ma-line-strong); border-radius: var(--ma-r-card); background: var(--ma-surface); }
.ma-empty__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ma-tint); color: var(--ma-brand); }
.ma-empty__title { margin: var(--ma-s-1) 0 0; font-size: 17px; font-weight: 650; color: var(--ma-brand-deep); }
.ma-empty__text { margin: 0; max-width: 52ch; color: var(--ma-text-2); }
.ma-empty .ma-btn { margin-top: var(--ma-s-2); }
.ma-tile--dark .ma-empty { border-color: rgb(255 255 255 / .25); background: transparent; }
.ma-tile--dark .ma-empty__title, .ma-tile--dark .ma-empty__text { color: #fff; }

/* ---------- 17. Obrazci ---------- */
.ma-label { display: block; margin-bottom: 6px; font-size: 14.5px; font-weight: 600; color: var(--ma-brand-deep); }
.ma-input, .ma-select, .ma-textarea {
  width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid var(--ma-line-strong); border-radius: var(--ma-r-sm);
  background: var(--ma-surface); color: var(--ma-brand-deep); font-size: 16px;
}
.ma-textarea { min-height: 120px; padding: 12px 16px; line-height: 1.5; resize: vertical; }
.ma-select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6761' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.ma-input::placeholder, .ma-textarea::placeholder { color: var(--ma-text-3); }
.ma-input:focus, .ma-select:focus, .ma-textarea:focus { outline: none; border-color: var(--ma-brand); box-shadow: 0 0 0 3px var(--ma-tint-2); }
.ma-input[aria-invalid="true"] { border-color: var(--ma-signal-ink); }
.ma-help { margin: 6px 0 0; font-size: var(--ma-t-sm); color: var(--ma-text-3); }
.ma-error { margin: 6px 0 0; font-size: var(--ma-t-sm); font-weight: 600; color: var(--ma-signal-ink); }
.ma-field { position: relative; }
.ma-field + .ma-field { margin-top: var(--ma-s-4); }
.ma-field--search .ma-field__ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ma-text-3); pointer-events: none; }
.ma-field--search .ma-input { padding-left: 44px; border-radius: var(--ma-r-pill); background: var(--ma-bg); }
.ma-field--inline { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border: 1px solid var(--ma-line-strong); border-radius: 24px; background: var(--ma-surface); }
.ma-field--inline:focus-within { border-color: var(--ma-brand); box-shadow: 0 0 0 3px var(--ma-tint-2); }
.ma-field--inline .ma-input { flex: 1 1 200px; min-height: 44px; border: 0; background: transparent; box-shadow: none; }
.ma-field--inline .ma-btn { flex: 1 0 auto; }
.ma-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding-top: 10px; font-size: var(--ma-t-sm); line-height: 1.45; color: var(--ma-text-2); cursor: pointer; }
.ma-check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ma-brand); }
.ma-check a { color: var(--ma-accent); }
/* e-novice */
.ma-news { display: grid; gap: var(--ma-s-4); padding: var(--ma-s-6) var(--ma-s-5); border-radius: var(--ma-r-tile); background: var(--ma-tint); }
.ma-news .ma-iconchip { margin-bottom: var(--ma-s-3); background: var(--ma-brand); color: #fff; }
.ma-news__title { margin: 0; font-size: var(--ma-t-xl); font-weight: var(--ma-w-head); font-stretch: var(--ma-stretch-head); letter-spacing: var(--ma-track-head); line-height: 1.2; color: var(--ma-brand-deep); }
.ma-news__text p { margin: 8px 0 0; max-width: 42ch; color: var(--ma-text-2); line-height: 1.5; }
.ma-news__msg { margin: 8px 0 0; padding: 10px 14px; border-radius: var(--ma-r-sm); background: var(--ma-surface); font-weight: 600; color: var(--ma-brand); }
.ma-news__msg.is-err { color: var(--ma-signal-ink); }
.ma-news__fine { margin: 6px 0 0 30px; font-size: 13px; color: var(--ma-text-3); }
.ma-news--compact { padding: var(--ma-s-5); }

/* ---------- 18. Številčenje ---------- */
.ma-pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--ma-s-2); margin: var(--ma-s-8) 0 0; }
.ma-pager__pages { display: flex; gap: 4px; }
.ma-pager__n, .ma-pager__step { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--ma-r-pill); border: 1px solid var(--ma-line); background: var(--ma-surface); color: var(--ma-brand-deep); font-weight: 600; text-decoration: none; }
.ma-pager__n:hover, .ma-pager__step:hover { border-color: var(--ma-line-strong); }
.ma-pager__n[aria-current="page"] { background: var(--ma-brand); border-color: var(--ma-brand); color: #fff; }
.ma-pager__gap { display: inline-flex; align-items: center; min-width: 24px; justify-content: center; color: var(--ma-text-3); }
.ma-pager__step span { display: none; }

/* ---------- 19. Drobtine ---------- */
.ma-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 500; color: var(--ma-text-3); }
.ma-crumbs li { display: inline-flex; align-items: center; gap: 2px; }
.ma-crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ma-text-2); text-decoration: none; }
.ma-crumbs a:hover { color: var(--ma-brand-deep); text-decoration: underline; }
.ma-crumbs .ma-i { width: 16px; height: 16px; }

/* ---------- 20. Besedilo članka ---------- */
.ma-prose { font-size: 18px; line-height: 1.66; color: var(--ma-text); overflow-wrap: break-word; }
.ma-prose > :first-child { margin-top: 0; }
.ma-prose p, .ma-prose ul, .ma-prose ol { margin: 0 0 1.05em; }
.ma-prose ul, .ma-prose ol { padding-left: 1.3em; }
.ma-prose li + li { margin-top: .35em; }
.ma-prose h2, .ma-prose h3, .ma-prose h4 { margin: 1.6em 0 .55em; font-weight: var(--ma-w-head); font-stretch: var(--ma-stretch-head); letter-spacing: var(--ma-track-head); line-height: 1.2; color: var(--ma-brand-deep); }
.ma-prose h2 { font-size: 1.3em; }
.ma-prose h3 { font-size: 1.15em; }
.ma-prose strong, .ma-prose b { font-weight: var(--ma-w-strong); color: var(--ma-brand-deep); }
.ma-prose a { color: var(--ma-accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.ma-prose img { display: block; width: 100%; height: auto; margin: 1.5em 0; border-radius: var(--ma-r-card); background: var(--ma-tint); }
.ma-prose p:has(> img:only-child) { margin: 0; }
.ma-prose figure { margin: 1.5em 0; }
.ma-prose figure img { margin: 0; }
.ma-prose figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--ma-text-3); }
.ma-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--ma-accent); font-size: 1.08em; font-weight: 500; color: var(--ma-brand-deep); }
.ma-prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--ma-line-strong); }
.ma-prose table { width: 100%; margin: 1.5em 0; border-collapse: collapse; font-size: 15.5px; display: block; overflow-x: auto; }
.ma-prose th, .ma-prose td { padding: 10px 12px; border-bottom: 1px solid var(--ma-line); text-align: left; vertical-align: top; }
.ma-prose th { font-weight: 650; color: var(--ma-brand-deep); background: var(--ma-tint); }
.ma-prose iframe, .ma-prose video { display: block; width: 100%; max-width: 100%; border: 0; border-radius: var(--ma-r-card); }
.ma-prose iframe[src*="youtube"], .ma-prose iframe[src*="vimeo"], .ma-prose iframe[src*="mediadelivery"], .ma-prose iframe[src*="bunny"] { aspect-ratio: 16 / 9; height: auto; }
.ma-prose .kn-html-embed { margin: 1.5em 0; overflow-x: auto; }
.ma-prose .kn-audio { margin: 1.5em 0; }
.ma-prose .kn-audio audio { width: 100%; }
.ma-prose .kn-important { margin: 1.6em 0 1.2em; padding: 20px 22px; border-radius: var(--ma-r-card); background: var(--ma-brand); color: #fff; font-size: 1.08em; font-weight: var(--ma-w-strong); line-height: 1.35; letter-spacing: -0.01em; }
.ma-prose .kn-important a, .ma-prose .kn-important strong { color: #fff; }
.ma-prose .kn-info { position: relative; margin: 1.5em 0; padding: 18px 20px 18px 56px; border-radius: var(--ma-r-card); background: var(--ma-tint); font-size: .95em; line-height: 1.6; }
.ma-prose .kn-info::before {
  content: ""; position: absolute; left: 18px; top: 20px; width: 22px; height: 22px; background: var(--ma-brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 11v5.2M12 7.6v.1'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 11v5.2M12 7.6v.1'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- 21. Sporočila ---------- */
.ma-flashes { width: min(100% - 2 * var(--ma-gutter), var(--ma-col)); margin: var(--ma-s-4) auto 0; display: grid; gap: var(--ma-s-2); }
.ma-flash { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 16px; border-radius: var(--ma-r-sm); background: var(--ma-surface); border: 1px solid var(--ma-line); font-weight: 550; color: var(--ma-brand-deep); }
.ma-flash .ma-i { margin-top: 1px; }
.ma-flash--ok { background: var(--ma-tint); border-color: transparent; }
.ma-flash--err { background: #FCE9E3; border-color: transparent; color: #8E2A15; }
.ma-flash--warn { background: #FBF0D5; border-color: transparent; color: #6B4700; }

/* ---------- 22. Deljenje ---------- */
.ma-share { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: var(--ma-r-pill); border: 1px solid var(--ma-line); background: var(--ma-surface); max-width: 100%; }
.ma-share__b { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ma-brand-deep); cursor: pointer; }
.ma-share__b:hover { background: var(--ma-tint); }
.ma-share__copy { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; min-width: 44px; padding: 0 16px 0 14px; margin-left: 2px; border: 0; border-radius: var(--ma-r-pill); background: var(--ma-tint); color: var(--ma-brand); font-size: 14.5px; font-weight: 650; white-space: nowrap; cursor: pointer; }
.ma-share__copy:hover { background: var(--ma-tint-2); }
.ma-share__copy.is-ok { background: var(--ma-brand); color: #fff; }
.ma-share--compact .ma-share__copy { width: 44px; padding: 0; }
.ma-share--compact .ma-share__b--extra { display: none; }   /* kratka vrstica v glavi članka; vse možnosti so na koncu */
.ma-share--compact .ma-share__copy span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 23. Tuje komponente (e-novice, obvestila na telefon) ---------- */
.ma-body .knl-popup, .ma-body .knpush, .ma-body .knl-popup__btn, .ma-body .knpush__cta { font-family: var(--ma-font); }
@media (max-width: 767px) {
  .ma-body .knl-popup, .ma-body .knpush { bottom: calc(var(--ma-tab-space) + 6px); }   /* nad spodnjim menijem */
}

/* =====================================================================
   VEČJI ZASLONI
   ===================================================================== */
@media (min-width: 600px) {
  :root { --ma-gutter: 24px; }
  .ma-rail { grid-auto-columns: calc((100% - 2 * var(--ma-gap)) / 2.6); }
  .ma-sheet__apps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ma-pager__step span { display: inline; }
  .ma-news { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: var(--ma-s-6); padding: var(--ma-s-7); }
  .ma-news--compact { grid-template-columns: 1fr; padding: var(--ma-s-6); }
  .ma-card--row .ma-card__media { width: 148px; aspect-ratio: 4 / 3; }
  .ma-prose { font-size: 19px; line-height: 1.68; }
  .ma-footer__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); }
  .ma-footer__cols > div:last-child { grid-column: auto; }
}

/* Tablica: ni spodnjega menija; Iskanje in Več sta v glavi */
@media (min-width: 768px) {
  :root { --ma-tab-space: 0px; --ma-appbar-h: 68px; --ma-logo-h: 25px; --ma-gap: 16px; }
  body.ma-body { padding-bottom: 0; }
  .ma-tabbar { display: none; }
  .ma-appbar { position: sticky; top: 0; background: color-mix(in srgb, var(--ma-bg) 86%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); }
  .ma-appbar__in { gap: var(--ma-s-6); }
  .ma-chipbtn--search, .ma-chipbtn--more { display: inline-flex; }
  .ma-chipbtn--search { width: 44px; padding: 0; }
  .ma-chipbtn--search span { display: none; }
  .ma-login { width: auto; padding: 0 18px 0 14px; }
  .ma-login > span:not(.ma-avatar) { display: inline; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
  .ma-login.is-in { padding-left: 6px; }
  .ma-search .ma-btn { display: inline-flex; }
  .ma-search__panel { padding: 14px 0; }
  /* predal na desni */
  .ma-sheet__panel { left: auto; top: 0; width: min(440px, 92vw); max-height: none; border-radius: 24px 0 0 24px; transform: translateX(100%); }
  .ma-sheet__panel::before { display: none; }
  .ma-sheet__head { padding-top: var(--ma-s-6); }
  .ma-shead__tools .ma-roundbtn { display: grid; }
  .ma-sec { margin-top: var(--ma-s-10); }
  .ma-footer { margin-top: 88px; margin-bottom: var(--ma-s-7); }
  .ma-footer__in { padding: 44px 48px 26px; }
  .ma-page-head { padding: var(--ma-s-8) 0 var(--ma-s-6); }
}

/* Namizje */
@media (min-width: 1100px) {
  :root { --ma-gutter: 32px; }
  .ma-rail { grid-auto-columns: calc((100% - 3 * var(--ma-gap)) / 4.3); }
  .ma-footer__in { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: var(--ma-s-7) var(--ma-s-9); }
  .ma-footer__bar { grid-column: 1 / -1; }
  .ma-footer__cols a, .ma-footer__cols button { min-height: 36px; }
}

/* Rubrike v glavi, čipi skriti */
@media (min-width: 1280px) {
  :root { --ma-appbar-h: 72px; --ma-logo-h: 26px; }
  .ma-appbar__in { gap: var(--ma-s-5); }
  .ma-nav { display: flex; align-items: center; gap: 0; min-width: 0; }
  .ma-nav__a { display: inline-flex; align-items: center; height: 44px; padding: 0 11px; border-radius: var(--ma-r-pill); font-size: 15px; font-weight: 550; color: var(--ma-text-2); text-decoration: none; white-space: nowrap; }
  .ma-nav__a:hover { background: var(--ma-surface); color: var(--ma-brand-deep); }
  .ma-nav__a[aria-current="page"] { background: var(--ma-brand); color: #fff; }
  .ma-chips--bar { display: none; }
}

@media (min-width: 1440px) {
  .ma-nav__a { padding: 0 13px; }
  .ma-chipbtn--search { width: auto; padding: 0 16px 0 14px; }
  .ma-chipbtn--search span { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  .ma-body *, .ma-body *::before, .ma-body *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .ma-rail, .ma-chips__track { scroll-behavior: smooth; }
}

/* =====================================================================
   NASLOVNICA (index.html) — razpored po temi: .ma-bento--obvestila | --promet | --brano | --dogodki
   ===================================================================== */
.ma-hello { padding: var(--ma-s-4) 0 var(--ma-s-3); }
.ma-hello__date { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 4px; font-size: 14.5px; font-weight: 500; color: var(--ma-text-3); }
.ma-hello__wx { display: none; align-items: center; gap: 6px; color: var(--ma-text-2); }
.ma-hello__wx .ma-i { width: 18px; height: 18px; }
.ma-hello__title { margin: 0; font-size: 29px; font-weight: var(--ma-w-head); font-stretch: var(--ma-stretch-head); letter-spacing: var(--ma-track-head); line-height: 1.05; color: var(--ma-brand-deep); }
.ma-quick { display: none; }
.ma-quick a, .ma-quick button {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 18px 0 14px; border-radius: var(--ma-r-pill);
  border: 1px solid var(--ma-line); background: var(--ma-surface); color: var(--ma-brand-deep);
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.ma-quick .ma-i { color: var(--ma-accent); }
.ma-quick a:hover, .ma-quick button:hover { border-color: var(--ma-line-strong); }
.ma-chips--home { margin-bottom: var(--ma-s-4); }
.ma-chips--home .ma-chips__track { width: min(100%, var(--ma-max) + 2 * var(--ma-gutter)); margin-inline: auto; }
@media (min-width: 1280px) { .ma-chips--home { display: none; } }

/* zgornji blok: telefon (2 stolpca za mala gradnika) */
.ma-bento { display: grid; gap: var(--ma-gap); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ma-bento > * { grid-column: 1 / -1; min-width: 0; }
.ma-bento > .ma-b-wx, .ma-bento > .ma-b-ev { grid-column: auto; }
.ma-bento--promet > .ma-b-lead, .ma-bento--dogodki > .ma-b-lead { order: -1; }

/* glavna zgodba */
.ma-hero { display: block; }
.ma-hero__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.ma-hero__img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 30%; background: var(--ma-tint); }
.ma-hero > .ma-hero__link > .ma-badges, .ma-hero .ma-badges { left: 12px; top: 12px; }
.ma-hero__body { display: grid; gap: 8px; padding: 14px 16px 16px; }
.ma-hero__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.ma-hero__title { margin: 0; font-size: 21px; font-weight: var(--ma-w-head); font-stretch: var(--ma-stretch-head); letter-spacing: -0.02em; line-height: 1.16; color: var(--ma-brand-deep); }
.ma-hero__ex { margin: 0; color: var(--ma-text-2); font-size: 15.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ma-hero__link:hover .ma-hero__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ma-bento > .ma-hero { background: var(--ma-surface); border: 1px solid var(--ma-line); box-shadow: var(--ma-shadow); }
.ma-hero--noimg.ma-tile { background: var(--ma-brand); }
.ma-hero--noimg .ma-hero__body { padding: var(--ma-s-6) var(--ma-s-5); align-content: end; height: 100%; }
.ma-hero--noimg .ma-hero__title, .ma-hero--noimg .ma-hero__ex, .ma-hero--noimg .ma-kick__cat, .ma-hero--noimg .ma-kick__region, .ma-hero--noimg .ma-time { color: #fff; }
.ma-hero--noimg .ma-place { background: rgb(255 255 255 / .16); color: #fff; }

/* vreme in sonce */
.ma-wx { display: flex; flex-direction: column; min-height: 156px; padding: 15px 16px 14px; color: var(--ma-brand-deep); }
.ma-wx p { margin: 0; }
.ma-wx__loc { display: flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; }
.ma-wx__loc .ma-i { width: 16px; height: 16px; color: var(--ma-accent); }
.ma-wx__temp { margin: 2px 0 auto -3px !important; font-size: 60px; font-weight: var(--ma-w-num); line-height: .95; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.ma-wx__day { margin: 8px 0 auto !important; font-size: 21px; font-weight: var(--ma-w-head); line-height: 1.15; letter-spacing: var(--ma-track-head); }
.ma-wx__cond { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: var(--ma-w-strong); }
.ma-wx__cond .ma-i { width: 20px; height: 20px; }
.ma-wx__sun { display: flex; align-items: center; gap: 6px; margin-top: 5px !important; font-size: 12.5px; color: var(--ma-text-2); }
.ma-wx__sun .ma-i { width: 16px; height: 16px; }
.ma-wx__sun[hidden] { display: none; }

/* naslednji dogodek */
.ma-evt { display: flex; flex-direction: column; min-height: 156px; padding: 15px 16px 14px; color: inherit; text-decoration: none; }
.ma-evt__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.ma-evt .ma-date { width: 50px; min-height: 52px; }
.ma-evt .ma-date b { font-size: 23px; }
.ma-soon { padding: 4px 9px; border-radius: var(--ma-r-pill); background: var(--ma-tint); color: var(--ma-brand); font-size: 12px; font-weight: 650; white-space: nowrap; }
.ma-evt__title { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: var(--ma-w-strong); line-height: 1.25; color: var(--ma-brand-deep); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ma-evt__meta { margin-top: 4px; font-size: 12.5px; line-height: 1.4; color: var(--ma-text-3); }
.ma-evt__where { display: none; }
.ma-evt:hover .ma-evt__title { text-decoration: underline; text-underline-offset: 3px; }

/* oglasna deska */
.ma-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-bottom: var(--ma-s-5); }
.ma-cta .ma-iconchip { margin-bottom: 6px; }
.ma-cta p { margin: 0 0 var(--ma-s-3); color: var(--ma-text-2); line-height: 1.45; }
.ma-cta .ma-btn { margin-top: auto; }

/* obvestila */
.ma-obv { display: flex; flex-direction: column; }
.ma-obv .ma-notices { margin-top: 4px; }
.ma-obv__cta { margin: auto 0 0; padding-top: 10px; font-size: var(--ma-t-sm); color: var(--ma-on-brand-2); }
.ma-obv__cta a { color: #fff; font-weight: 650; }
.ma-obv--light .ma-obv__cta { color: var(--ma-text-3); }
.ma-obv--light .ma-obv__cta a { color: var(--ma-accent); }
.ma-obv--light .ma-tile__title { color: var(--ma-brand-deep); }
.ma-obv__invite { flex: 1 1 auto; align-content: center; margin-top: 12px; padding: var(--ma-s-5); }   /* eno obvestilo: povabilo zapolni ploščico */

/* najbolj brano */
.ma-ranktile { display: flex; flex-direction: column; }
.ma-ranktile .ma-rank { margin-top: 4px; }
.ma-rank__b { display: grid; gap: 4px; min-width: 0; }
.ma-rank__b .ma-kick { font-size: 12.5px; }
.ma-tile--dark .ma-rank a { color: #fff; }
.ma-tile--dark .ma-rank > li + li { border-top-color: rgb(255 255 255 / .12); }
.ma-tile--dark .ma-rank__n { color: var(--ma-accent-on-dark); }
.ma-tile--dark .ma-kick__cat, .ma-tile--dark .ma-kick__region, .ma-tile--dark .ma-time { color: var(--ma-on-brand-2); }
.ma-tile--dark .ma-place { background: rgb(255 255 255 / .12); color: #fff; }

/* promet (Dravograd) */
.ma-promet__sub { margin: 0 0 4px; font-size: var(--ma-t-sm); color: var(--ma-on-brand-2); }
.ma-promet .ma-tile__title .ma-i { color: var(--ma-on-brand-2); }
.ma-promet .is-hard .ma-notice__icon { color: #FF9A80; }
.ma-promet__list .ma-notice__title .ma-i { width: 15px; height: 15px; margin: 0 5px -2px 0; color: var(--ma-accent-on-dark); }
.ma-promet__st { min-width: 0; }
.ma-promet__list .ma-notice__meta { display: block; }   /* cesta in stanje tečeta v isti vrstici */
.ma-promet__list .ma-notice__kind { margin-right: 8px; white-space: nowrap; }
.ma-promet__more { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; min-height: 44px; color: #fff; font-size: var(--ma-t-sm); font-weight: 600; text-decoration: underline; text-decoration-color: rgb(255 255 255 / .4); text-underline-offset: 4px; }
.ma-promet__more:hover { text-decoration-color: #fff; }
.ma-promet__more .ma-i { width: 15px; height: 15px; }
.ma-promet { display: flex; flex-direction: column; }
.ma-promet .ma-empty { margin-top: 6px; }
.ma-promet__foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.ma-promet__foot a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--ma-r-pill); background: rgb(255 255 255 / .1); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.ma-promet__foot a:hover { background: rgb(255 255 255 / .18); }
.ma-promet__foot .ma-i { width: 16px; height: 16px; }

/* dogodki (Slovenj Gradec) */
.ma-evstrip .ma-tile__head { flex-wrap: wrap; row-gap: 0; }
.ma-evstrip__links { display: flex; gap: 16px; white-space: nowrap; }
.ma-evstrip__grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: var(--ma-gap); margin: 8px calc(-1 * var(--ma-s-5)) 0; padding: 0 var(--ma-s-5) 4px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--ma-s-5); scrollbar-width: none;
}
.ma-evstrip__grid::-webkit-scrollbar { display: none; }
.ma-evcard { scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; }
.ma-evcard__media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--ma-r-media); background: var(--ma-tint); }
.ma-evcard__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ma-evcard__media .ma-date { position: absolute; left: 10px; top: 10px; box-shadow: 0 6px 18px -6px rgb(var(--ma-scrim) / .5); }
.ma-evcard__body { display: grid; gap: 4px; padding: 10px 2px 0; }
.ma-evcard__title { font-size: 16px; font-weight: var(--ma-w-strong); line-height: 1.28; color: var(--ma-brand-deep); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ma-evcard__meta { font-size: var(--ma-t-sm); color: var(--ma-text-3); }
.ma-evcard:hover .ma-evcard__title { text-decoration: underline; text-underline-offset: 3px; }
.ma-evcard.is-today .ma-date { background: var(--ma-signal-ink); }
.ma-evcard--add { justify-content: center; gap: 8px; padding: var(--ma-s-5); border: 1px dashed var(--ma-line-strong); border-radius: var(--ma-r-media); background: var(--ma-bg); }
.ma-evcard--add .ma-iconchip { background: var(--ma-accent); color: #fff; }

/* šport (Ravne) */
.ma-sporttile__lead { display: grid; gap: 10px; padding-bottom: 12px; color: inherit; text-decoration: none; }
.ma-sporttile__lead .ma-card__media { aspect-ratio: 16 / 9; border-radius: var(--ma-r-media); }
.ma-sporttile__body { display: grid; gap: 6px; }
.ma-sporttile__t { font-size: 18px; font-weight: var(--ma-w-strong); line-height: 1.26; color: var(--ma-brand-deep); }
.ma-sporttile__lead:hover .ma-sporttile__t { text-decoration: underline; text-underline-offset: 4px; }

/* vrstice v ploščicah */
.ma-rows { list-style: none; margin: 0; padding: 0; }
.ma-row { border-top: 1px solid var(--ma-line); }
.ma-row__link { display: grid; gap: 5px; padding: 12px 0; color: inherit; text-decoration: none; }
.ma-row__title { font-size: 15.5px; font-weight: 600; line-height: 1.33; color: var(--ma-brand-deep); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ma-row__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.ma-row__link:hover .ma-row__title { text-decoration: underline; text-underline-offset: 3px; }

/* spodnji blok: vrste po 4 enote (širine iz Jinje: ma-sp-1..4, ma-sp-t2 = cela širina na tablici) */
.ma-rows4 { display: grid; gap: var(--ma-gap); margin-top: var(--ma-gap); }
.ma-row4 { display: grid; gap: var(--ma-gap); grid-template-columns: minmax(0, 1fr); }
.ma-row4 > * { min-width: 0; }
.ma-row4 > .ma-card--tile { padding: 10px; }
.ma-row4 > .ma-card--tile .ma-card__link { flex-direction: row-reverse; align-items: flex-start; gap: 14px; }
.ma-row4 > .ma-card--tile .ma-card__media { flex: none; width: 104px; aspect-ratio: 1; border-radius: var(--ma-r-media); }
.ma-row4 > .ma-card--tile .ma-card__body { flex: 1; padding: 4px 0 2px 6px; gap: 6px; }
.ma-row4 > .ma-card--tile .ma-card__title { font-size: 16.5px; }
.ma-row4 > .ma-card--tile .ma-badges { left: 6px; top: 6px; }
.ma-row4 > .ma-card--tile .ma-badge { height: 24px; padding: 0 8px 0 7px; font-size: 12px; }
.ma-row4 > .ma-news { margin: 0; }

/* domače zgodbe in mreže kartic */
.ma-card--rail .ma-card__media { aspect-ratio: 4 / 3; }
.ma-card--rail .ma-card__title { font-size: 16.5px; }
/* malo domačih zgodb: na telefonu vrsta, od 600 px mreža brez praznih celic */
.ma-rail--1 { grid-auto-columns: 100%; }

/* časovnica */
.ma-timeline { padding-top: var(--ma-s-4); }
.ma-timeline__day { margin: 14px 0 2px; font-size: 13px; font-weight: 650; color: var(--ma-text-3); break-after: avoid; }
.ma-timeline__day:first-child, .ma-tile__head + div > .ma-timeline__day:first-child { margin-top: 0; }
.ma-timeline__item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--ma-line); color: inherit; text-decoration: none; break-inside: avoid; }
.ma-timeline__item time { padding-top: 1px; font-size: 14px; font-weight: 650; color: var(--ma-accent); font-variant-numeric: tabular-nums; line-height: 1.35; }
.ma-timeline__b { display: grid; gap: 5px; min-width: 0; }
.ma-timeline__t { font-size: 15.5px; font-weight: 600; line-height: 1.35; color: var(--ma-brand-deep); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ma-timeline__item:hover .ma-timeline__t { text-decoration: underline; text-underline-offset: 3px; }
.ma-timeline .ma-kick { font-size: 12.5px; }

/* rubrike: telefon = vodoravna vrsta ploščic */
.ma-cats {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: var(--ma-gap); align-items: stretch;
  margin-inline: calc(-1 * var(--ma-gutter)); padding-inline: var(--ma-gutter); scroll-padding-inline: var(--ma-gutter);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.ma-cats::-webkit-scrollbar { display: none; }
.ma-cats > * { scroll-snap-align: start; }
.ma-cat { display: flex; flex-direction: column; padding-bottom: 6px; }
.ma-cat .ma-tile__head { margin-bottom: 12px; }
.ma-cat__lead { display: grid; gap: 8px; padding-bottom: 14px; color: inherit; text-decoration: none; }
.ma-cat__lead .ma-card__media { aspect-ratio: 16 / 9; margin-bottom: 4px; border-radius: var(--ma-r-media); }
.ma-cat__title { margin: 0; font-size: 18px; font-weight: var(--ma-w-strong); line-height: 1.28; letter-spacing: -0.012em; color: var(--ma-brand-deep); }
.ma-cat__lead:hover .ma-cat__title { text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 600px) {
  .ma-hello__wx { display: inline-flex; }
  .ma-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ma-bento > .ma-b-wx, .ma-bento > .ma-b-ev { grid-column: span 2; }
  .ma-hero__img { aspect-ratio: 16 / 9; }
  .ma-evstrip__grid { grid-auto-columns: 44%; }
  .ma-row4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ma-row4 > :not(.ma-sp-1), .ma-row4 > .ma-sp-t2 { grid-column: 1 / -1; }
  .ma-row4 > .ma-card--tile .ma-card__media { width: 132px; aspect-ratio: 4 / 3; }
  .ma-rail--few { grid-auto-flow: row; grid-auto-columns: auto; margin-inline: 0; padding-inline: 0; overflow: visible; scroll-snap-type: none; }
  .ma-rail--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ma-rail--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ma-rail--1 { grid-template-columns: minmax(0, 1fr); }
  .ma-cats { grid-auto-columns: 46%; }
}

@media (min-width: 768px) {
  .ma-hello { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--ma-s-6); padding: var(--ma-s-8) 0 var(--ma-s-6); }
  .ma-hello__date { margin-bottom: 10px; font-size: 16px; }
  .ma-hello__title { font-size: clamp(36px, 3.9vw, 60px); letter-spacing: -0.035em; line-height: 1; }
  .ma-quick { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--ma-s-2); }
  .ma-hero__title { font-size: 26px; }
  .ma-wx, .ma-evt { min-height: 200px; padding: 20px 22px 18px; }
  .ma-wx__temp { font-size: 84px; }
  .ma-evt .ma-date { width: 58px; min-height: 60px; }
  .ma-evt .ma-date b { font-size: 28px; }
  .ma-evt__title { font-size: 17px; }
  .ma-evt__meta { font-size: 14px; }
  .ma-evt__where { display: inline; }
  .ma-row4 > .ma-card--tile .ma-card__link { flex-direction: column; align-items: stretch; gap: 0; }
  .ma-row4 > .ma-card--tile .ma-card__media { width: auto; aspect-ratio: 16 / 10; border-radius: calc(var(--ma-r-tile) - 10px); }
  .ma-row4 > .ma-card--tile .ma-card__body { padding: 14px 10px 8px; }
  .ma-row4 > .ma-card--tile .ma-card__title { font-size: 18px; }
  .ma-timeline--cols { column-count: 2; column-gap: var(--ma-s-8); }
  .ma-timeline--cols .ma-tile__head { column-span: all; }
  .ma-cats { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: 0; padding-inline: 0; overflow: visible; scroll-snap-type: none; }
  .ma-cat--t2 { grid-column: 1 / -1; }
}

/* namizje: zgornji blok v 4 progah (2 široki + 2 ozki), vrste po 4 enote */
@media (min-width: 1100px) {
  .ma-bento { grid-template-columns: minmax(0, 1.78fr) minmax(0, 1.78fr) minmax(0, 1fr) minmax(0, 1fr); }
  .ma-bento > * { grid-column: auto; order: 0 !important; }
  .ma-bento > .ma-hero { grid-area: hero; }
  .ma-bento > .ma-b-wx { grid-area: wx; grid-column: auto; }
  .ma-bento > .ma-b-ev { grid-area: ev; grid-column: auto; }
  .ma-bento > .ma-b-lead { grid-area: lead; }
  .ma-bento > .ma-b-side { grid-area: side; }
  .ma-bento--obvestila { grid-template-rows: minmax(224px, auto) minmax(316px, auto); grid-template-areas: "hero hero wx ev" "hero hero lead lead"; }
  .ma-bento--promet { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.78fr) minmax(0, 1.78fr); grid-template-rows: auto minmax(224px, auto); grid-template-areas: "lead lead hero hero" "wx ev hero hero"; }
  .ma-bento--brano { grid-template-rows: minmax(270px, auto) minmax(270px, auto); grid-template-areas: "hero hero lead lead" "hero hero lead lead"; }
  .ma-bento--dogodki { grid-template-rows: auto minmax(224px, auto) minmax(316px, auto); grid-template-areas: "lead lead lead lead" "hero hero wx ev" "hero hero side side"; }
  /* fotografija čez celo ploščico, besedilo na prelivu */
  .ma-bento > .ma-hero:not(.ma-hero--noimg) { background: var(--ma-brand-deep); border: 0; box-shadow: var(--ma-shadow-lift); }
  .ma-bento > .ma-hero:not(.ma-hero--noimg) .ma-hero__link { position: relative; color: #fff; }
  .ma-bento > .ma-hero:not(.ma-hero--noimg) .ma-hero__img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: 50% 28%; }
  .ma-bento > .ma-hero:not(.ma-hero--noimg) .ma-hero__link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(var(--ma-scrim) / 0) 46%, rgb(var(--ma-scrim) / .5) 67%, rgb(var(--ma-scrim) / .9) 100%); }
  .ma-bento > .ma-hero:not(.ma-hero--noimg) .ma-hero__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; gap: 14px; padding: 0 36px 34px; max-width: 820px; }
  .ma-bento > .ma-hero:not(.ma-hero--noimg) .ma-hero__title { color: #fff; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.08; letter-spacing: -0.028em; text-shadow: 0 1px 24px rgb(var(--ma-scrim) / .35); }
  .ma-bento > .ma-hero:not(.ma-hero--noimg) .ma-kick__cat { display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border-radius: var(--ma-r-pill); background: rgb(255 255 255 / .18); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; }
  .ma-bento > .ma-hero:not(.ma-hero--noimg) .ma-kick__region, .ma-bento > .ma-hero:not(.ma-hero--noimg) .ma-time { color: rgb(255 255 255 / .82); }
  .ma-bento > .ma-hero:not(.ma-hero--noimg) .ma-place { background: rgb(255 255 255 / .18); color: #fff; }
  .ma-bento > .ma-hero :focus-visible { outline-color: #fff; }
  .ma-bento--brano .ma-hero__body, .ma-bento--promet .ma-hero__body { max-width: 760px; }
  .ma-wx, .ma-evt { min-height: 0; }
  .ma-wx__temp { font-size: 88px; }
  .ma-bento > .ma-b-lead.ma-obv, .ma-bento > .ma-b-side.ma-obv { padding-bottom: 10px; }
  .ma-bento--promet .ma-promet__list .ma-notice__link { padding: 9px 0; }
  .ma-bento--promet .ma-promet__list .ma-notice__title { -webkit-line-clamp: 1; }
  .ma-bento--promet .ma-promet__list .ma-notice__meta { display: flex; flex-wrap: nowrap; }
  .ma-bento--promet .ma-promet__list .ma-notice__kind { flex: none; margin-right: 0; }
  .ma-bento--promet .ma-promet__st { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .ma-bento--promet .ma-promet__more { display: none; }   /* število je v znački, vse v »Vse razmere« */
  .ma-bento--brano .ma-ranktile { padding: 26px 28px 12px; }
  .ma-bento--brano .ma-ranktile .ma-rank { flex: 1; display: flex; flex-direction: column; justify-content: space-around; }
  .ma-bento--brano .ma-rank a { grid-template-columns: 48px minmax(0, 1fr); padding: 14px 0; }
  .ma-bento--brano .ma-rank__n { font-size: 42px; }
  .ma-bento--brano .ma-rank__t { font-size: 17px; }
  .ma-evstrip__grid { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 10px 0 4px; padding: 0; overflow: visible; }
  .ma-evstrip__grid--1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .ma-evstrip__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, .9fr); }
  .ma-evstrip__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, .8fr); }
  .ma-evstrip__grid--0 { grid-template-columns: minmax(0, 1fr); }
  .ma-evcard__media { aspect-ratio: 3 / 2; }
  .ma-row4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ma-row4 > :not(.ma-sp-1), .ma-row4 > .ma-sp-t2 { grid-column: auto; }
  .ma-row4 > .ma-sp-1 { grid-column: span 1; }
  .ma-row4 > .ma-sp-2 { grid-column: span 2; }
  .ma-row4 > .ma-sp-3 { grid-column: span 3; }
  .ma-row4 > .ma-sp-4 { grid-column: span 4; }
  .ma-row4 > .ma-card--tile .ma-card__media { flex: 1 1 auto; aspect-ratio: auto; min-height: 190px; }
  .ma-row4 > .ma-card--tile .ma-card__media img { position: absolute; inset: 0; }
  .ma-row4 > .ma-news { grid-template-columns: 1fr; }
  .ma-row4 > .ma-news.ma-sp-3, .ma-row4 > .ma-news.ma-sp-4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .ma-cats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ma-cats > .ma-cat { grid-column: span 2; }
  .ma-cats > .ma-cat--w3 { grid-column: span 3; }
  .ma-cats > .ma-cat--w6 { grid-column: 1 / -1; }
  .ma-cat--w6 .ma-cat__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--ma-s-7); align-items: start; }
  .ma-cat--w6 .ma-rows { margin-top: -12px; }
  .ma-cat--w6 .ma-row:first-child { border-top: 0; }
  .ma-timeline--cols { column-count: 3; }
}

/* =====================================================================
   ČLANEK (article.html) — bralni pogled: stolpec 720, naslovna slika 1088
   ===================================================================== */
.ma-preview { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 10px var(--ma-gutter); background: var(--ma-signal-ink); color: #fff; font-weight: 650; text-align: center; }
.ma-read__head { padding: var(--ma-s-4) 0 var(--ma-s-5); }
.ma-read__head .ma-crumbs { display: none; margin-bottom: var(--ma-s-3); }
.ma-read__tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: var(--ma-s-3); }
.ma-tag { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: var(--ma-r-pill); background: var(--ma-brand); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
a.ma-tag:hover { background: var(--ma-brand-deep); }
.ma-tag--ad { background: var(--ma-text-2); }
.ma-pill-s { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 11px 0 9px; border-radius: var(--ma-r-pill); background: var(--ma-surface); border: 1px solid var(--ma-line); color: var(--ma-text-2); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.ma-pill-s .ma-i { width: 15px; height: 15px; }
.ma-pill-s--vip { background: var(--ma-brand-deep); border-color: var(--ma-brand-deep); color: #fff; }
a.ma-pill-s--link { min-height: 40px; padding: 0 14px; color: var(--ma-brand-deep); }
a.ma-pill-s--link:hover { border-color: var(--ma-line-strong); }
.ma-read__title { margin: 0; font-size: 30px; font-weight: var(--ma-w-head); font-stretch: var(--ma-stretch-head); line-height: 1.1; letter-spacing: -0.03em; color: var(--ma-brand-deep); overflow-wrap: break-word; }
.ma-read__lead { margin: 14px 0 0; font-size: 17.5px; line-height: 1.5; color: var(--ma-text-2); }
.ma-read__bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 20px; }
.ma-author { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: var(--ma-r-pill); background: var(--ma-surface); border: 1px solid var(--ma-line); }
.ma-author .ma-avatar { width: 40px; height: 40px; }
.ma-author .ma-avatar .ma-i { width: 18px; height: 18px; }
.ma-author__txt { display: grid; line-height: 1.25; }
.ma-author__name { font-size: 15px; font-weight: var(--ma-w-strong); color: var(--ma-brand-deep); }
.ma-author time { font-size: 13.5px; color: var(--ma-text-3); }
.ma-author__upd { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ma-text-3); }
.ma-author__upd .ma-i { width: 13px; height: 13px; color: var(--ma-accent); }
.ma-readtime { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 550; color: var(--ma-text-2); }
.ma-readtime .ma-i { width: 17px; height: 17px; color: var(--ma-accent); }
.ma-read__share { display: none; }
.ma-read__hero { margin: 0 auto; }
.ma-read__hero img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 38%; border-radius: calc(var(--ma-r-tile) - 4px); background: var(--ma-tint); cursor: zoom-in; }
.ma-read__hero figcaption { display: flex; align-items: flex-start; gap: 8px; width: min(100%, var(--ma-col)); margin: 10px auto 0; font-size: 14px; line-height: 1.45; color: var(--ma-text-3); }
.ma-read__hero figcaption .ma-i { width: 16px; height: 16px; margin-top: 1px; color: var(--ma-accent); flex: none; }
.ma-read__hero figcaption a { color: var(--ma-accent); }
.ma-read__body { margin-top: var(--ma-s-6); }
.ma-read__head + .ma-read__body { margin-top: 0; }   /* brez naslovne fotografije */
.ma-read__body > .ma-prose { margin-top: var(--ma-s-5); }
.ma-read__lede { margin: var(--ma-s-5) 0 0; font-size: 19px; line-height: 1.55; font-weight: 500; color: var(--ma-brand-deep); }
.ma-gpref { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--ma-r-card); background: var(--ma-surface); border: 1px solid var(--ma-line); color: var(--ma-text-2); text-decoration: none; }
.ma-gpref svg { width: 26px; height: 26px; flex: none; }
.ma-gpref span { font-size: 15px; line-height: 1.35; }
.ma-gpref b { color: var(--ma-brand-deep); }
.ma-gpref:hover b { text-decoration: underline; text-underline-offset: 3px; }
/* video */
.ma-video { margin: var(--ma-s-5) 0; overflow: hidden; border-radius: var(--ma-r-card); background: var(--ma-brand-deep); }
.ma-video__t { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 16px; color: #fff; font-weight: 650; font-size: 15px; line-height: 1.35; }
.ma-video__t .ma-i { width: 16px; height: 16px; color: var(--ma-on-brand-2); }
.ma-video__main { aspect-ratio: 16 / 9; background: #000; }
.ma-video__main iframe { display: block; width: 100%; height: 100%; border: 0; }
.ma-video__thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 12px; }
.ma-video__thumb { flex: none; width: 150px; padding: 0; border: 0; background: none; text-align: left; color: #DDE6E1; opacity: .75; cursor: pointer; }
.ma-video__thumb[aria-current="true"], .ma-video__thumb:hover { opacity: 1; }
.ma-video__ph { position: relative; display: grid; place-items: center; width: 150px; height: 84px; overflow: hidden; border-radius: var(--ma-r-sm); background: rgb(255 255 255 / .1); color: #fff; }
.ma-video__ph .ma-i { width: 26px; height: 26px; }
.ma-video__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ma-video__thumb[aria-current="true"] .ma-video__ph { outline: 2px solid #fff; outline-offset: 2px; }
.ma-video__thumb > span:not(.ma-video__ph) { display: block; margin-top: 6px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma-fbvid { display: flex; justify-content: center; margin: var(--ma-s-5) 0; }
.ma-fbvid iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; overflow: hidden; border-radius: var(--ma-r-card); }
.ma-fbvid--p iframe { max-width: 420px; aspect-ratio: auto; height: 680px; }
.ma-vidlock { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; aspect-ratio: 16 / 9; margin: var(--ma-s-5) 0; padding: var(--ma-s-6); border-radius: var(--ma-r-card); background: var(--ma-brand-deep); color: #fff; text-align: center; }
.ma-vidlock h2 { margin: 0; font-size: 21px; font-weight: var(--ma-w-head); line-height: 1.2; }
.ma-vidlock p { margin: 0; max-width: 40ch; color: var(--ma-on-brand-2); }
.ma-vidlock .ma-iconchip, .ma-pay .ma-iconchip { background: rgb(255 255 255 / .14); color: #fff; }
/* plačilni zid */
.ma-lock { position: relative; }
.ma-lock__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(to bottom, color-mix(in srgb, var(--ma-bg) 0%, transparent), var(--ma-bg) 88%); pointer-events: none; }
.ma-pay { display: grid; justify-items: center; gap: 8px; margin: 4px 0 var(--ma-s-4); padding: var(--ma-s-7) var(--ma-s-5); border-radius: var(--ma-r-tile); background: var(--ma-brand); color: #fff; text-align: center; }
.ma-pay h2 { margin: 6px 0 0; font-size: 24px; font-weight: var(--ma-w-head); font-stretch: var(--ma-stretch-head); letter-spacing: var(--ma-track-head); line-height: 1.15; }
.ma-pay p { margin: 0; max-width: 44ch; color: rgb(255 255 255 / .86); }
.ma-pay ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0; padding: 0; list-style: none; }
.ma-pay li { padding: 6px 12px; border-radius: var(--ma-r-pill); background: rgb(255 255 255 / .14); font-size: 14px; font-weight: 600; }
.ma-pay__price b { font-size: 30px; font-weight: var(--ma-w-num); margin: 0 4px; color: #fff; }
.ma-pay__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.ma-pay .ma-btn { background: #fff; color: var(--ma-brand-deep); }
.ma-pay .ma-btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .6); }
/* preberi tudi */
.ma-also { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: center; margin: 1.5em 0; padding: 10px; border-radius: var(--ma-r-card); background: var(--ma-tint); color: var(--ma-brand-deep) !important; text-decoration: none !important; }
.ma-also--noimg { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; }
.ma-also img, .ma-prose .ma-also img { width: 104px; height: 78px; margin: 0; object-fit: cover; border-radius: var(--ma-r-sm); }
.ma-also small { display: block; margin-bottom: 3px; font-size: 13px; font-weight: 650; color: var(--ma-accent); }
.ma-also b { display: block; font-size: 17px; line-height: 1.28; font-weight: var(--ma-w-strong); }
.ma-also:hover b { text-decoration: underline; text-underline-offset: 3px; }
.ma-read__src { margin: var(--ma-s-5) 0 0; font-size: 15px; font-style: italic; color: var(--ma-text-3); }
.ma-read__sponsor { margin: var(--ma-s-4) 0 0; padding: 12px 14px; border-radius: var(--ma-r-sm); background: var(--ma-surface); border: 1px solid var(--ma-line); font-size: 15px; color: var(--ma-text-2); }
.ma-read__tagsend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--ma-s-5); }
.ma-read__end { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: var(--ma-s-7); padding-top: var(--ma-s-5); border-top: 1px solid var(--ma-line); }
.ma-read__end p { margin: 0; font-size: 16px; font-weight: var(--ma-w-strong); color: var(--ma-brand-deep); }
.ma-read__end .ma-share { flex-wrap: wrap; border-radius: 26px; }
.ma-read__end .ma-share--compact .ma-share__b--extra { display: grid; }
/* dodatni razredi urejevalnika */
.ma-prose .kn-warning { margin: 1.5em 0; padding: 18px 20px; border-radius: var(--ma-r-card); background: #FBF0D5; color: #5E4100; }
.ma-prose .kn-quote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--ma-accent); font-size: 1.08em; font-style: italic; color: var(--ma-brand-deep); }
.ma-prose .kn-source { margin: .8em 0; padding-left: 12px; border-left: 2px solid var(--ma-line-strong); font-size: .9em; font-style: italic; color: var(--ma-text-3); }
.ma-prose .kn-audio { padding: 16px 18px; border-radius: var(--ma-r-card); background: var(--ma-brand-deep); color: #fff; }
.ma-prose .kn-audio-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid rgb(255 255 255 / .18); }
.ma-prose .kn-audio-icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--ma-on-brand-2); }
.ma-prose .kn-audio-title { font-weight: var(--ma-w-strong); font-size: 16px; color: #fff; }
.ma-prose .kn-audio audio { display: block; width: 100%; height: 44px; border-radius: 8px; }
.ma-prose .youtube-embed { margin: 1.3em 0 !important; border-radius: var(--ma-r-card); }
.ma-prose .kn-html-embed { display: flex; justify-content: center; align-items: center; margin: 1.4em auto; clear: both; }
.ma-prose .kn-html-embed iframe { display: block; max-width: 100%; margin: 0 auto; }
.ma-prose .vg-video-gallery, .wp-block-gallery, .kn-gallery-source { display: none !important; }
.ma-prose img.align-left, .ma-prose img.align-right, .ma-prose img.align-center, .ma-prose img.size-large, .ma-prose img.size-medium { float: none; max-width: 100% !important; width: auto !important; height: auto !important; margin: 1.5em auto; }
/* galerija (zgradi jo mesto-v1.js iz .kn-gallery-source) */
.kn-gallery { margin: 1.6em 0; overflow: hidden; border-radius: var(--ma-r-card); background: var(--ma-brand-deep); }
.kn-gallery-main { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: rgb(var(--ma-scrim)); }
.kn-gallery-main img, .ma-prose .kn-gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: contain; border-radius: 0; background: none; cursor: zoom-in; }
.kn-gallery-nav { position: absolute; top: 50%; z-index: 6; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; transform: translateY(-50%); background: rgb(255 255 255 / .92); color: var(--ma-brand-deep); box-shadow: 0 4px 12px rgb(0 0 0 / .3); cursor: pointer; }
.kn-gallery-nav:hover { background: #fff; }
.kn-gallery-nav.prev { left: 10px; }
.kn-gallery-nav.next { right: 10px; }
.kn-gallery-counter { position: absolute; right: 10px; bottom: 10px; z-index: 6; padding: 4px 11px; border-radius: var(--ma-r-pill); background: rgb(var(--ma-scrim) / .85); color: #fff; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.kn-gallery-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; scrollbar-width: thin; }
.kn-gallery-thumb { flex: none; width: 92px; height: 66px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: var(--ma-r-sm); background: rgb(255 255 255 / .08); opacity: .6; cursor: pointer; }
.kn-gallery-thumb:hover { opacity: .9; }
.kn-gallery-thumb.active { opacity: 1; border-color: #fff; }
.kn-gallery-thumb img, .ma-prose .kn-gallery-thumb img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; border-radius: 0; }
.kn-gallery-vip-thumb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #fff; font-size: 12px; font-weight: 700; text-decoration: none !important; opacity: 1; background: var(--ma-brand); }
.kn-gallery-vip-overlay { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; padding: 28px; text-align: center; color: #fff !important; text-decoration: none !important; background: linear-gradient(to top, rgb(var(--ma-scrim) / .94), rgb(var(--ma-scrim) / .3) 60%, transparent); }
.kn-gallery-vip-overlay strong { font-size: 1.1rem; }
.kn-gallery-grid { display: grid; gap: 8px; margin: 1.4em 0; overflow: hidden; border-radius: var(--ma-r-card); grid-template-columns: repeat(2, 1fr); }
.kn-gallery-grid-item { position: relative; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; }
.kn-gallery-grid-item img, .ma-prose .kn-gallery-grid-item img { width: 100%; height: 100%; margin: 0; object-fit: cover; border-radius: 0; }
/* komentarji: okvir in združljivost z razredi, ki jih ustvari static/js/comments.js */
.ma-cmt { margin-top: var(--ma-s-8); }
.ma-cmt__warn { display: flex; gap: 12px; margin: 0 0 var(--ma-s-5); padding: 14px 16px; border-radius: var(--ma-r-card); background: #FBF0D5; color: #5E4100; font-size: 14.5px; line-height: 1.5; }
.ma-cmt__warn .ma-i { margin-top: 2px; }
.ma-cmt__warn a { color: inherit; font-weight: 700; }
.ma-cmt__load { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0; padding: 28px 0; color: var(--ma-text-3); }
.ma-spin { width: 20px; height: 20px; border: 2.5px solid var(--ma-tint-2); border-top-color: var(--ma-brand); border-radius: 50%; animation: ma-spin .8s linear infinite; }
@keyframes ma-spin { to { transform: rotate(360deg); } }
#comments-section .comments-header h3 { font-size: 24px; font-weight: var(--ma-w-head); font-stretch: var(--ma-stretch-head); letter-spacing: var(--ma-track-head); color: var(--ma-brand-deep); }
#comments-section .comments-header h3 .w-1 { display: none; }
#comments-section .comment > .flex { background: var(--ma-surface); border-color: var(--ma-line); border-radius: var(--ma-r-card); }
#comments-section .comment .replies { border-left: 2px solid var(--ma-line); }
#comments-section textarea { width: 100%; background: var(--ma-surface); border-color: var(--ma-line-strong); border-radius: var(--ma-r-sm); font-size: 16px; }
#comments-section .comment-form textarea:focus { outline: none; border-color: var(--ma-brand); box-shadow: 0 0 0 3px var(--ma-tint-2); }
#comments-section button[type="submit"], #comments-section [data-action="show-login"] { border-radius: var(--ma-r-pill); font-weight: 650; min-height: 44px; }
#comments-section .hidden { display: none !important; }
#comments-section .flex { display: flex; }
#comments-section .block { display: block; }
#comments-section .inline-block { display: inline-block; }
#comments-section .flex-1 { flex: 1 1 0%; }
#comments-section .flex-shrink-0 { flex-shrink: 0; }
#comments-section .min-w-0 { min-width: 0; }
#comments-section .items-center { align-items: center; }
#comments-section .justify-between { justify-content: space-between; }
#comments-section .justify-center { justify-content: center; }
#comments-section .justify-end { justify-content: flex-end; }
#comments-section .gap-1 { gap: .25rem; }
#comments-section .gap-2 { gap: .5rem; }
#comments-section .gap-3 { gap: .75rem; }
#comments-section .gap-4 { gap: 1rem; }
#comments-section .space-y-3 > * + * { margin-top: .75rem; }
#comments-section .space-y-4 > * + * { margin-top: 1rem; }
#comments-section .fixed { position: fixed; }
#comments-section .inset-0 { inset: 0; }
#comments-section #report-modal, #comments-section #moderation-modal, #comments-section #login-modal { z-index: 150; background: rgb(var(--ma-scrim) / .6); }
body > .fixed.top-4 { position: fixed; top: 1rem; right: 1rem; z-index: 160; padding: 1rem 1.5rem; border-radius: var(--ma-r-sm); color: #fff; box-shadow: var(--ma-shadow-lift); transition: transform .3s; }
body > .fixed.top-4.translate-x-full { transform: translateX(130%); }
body > .fixed.top-4.bg-green-600, body > .fixed.top-4.bg-green-500 { background: var(--ma-brand); }
body > .fixed.top-4.bg-red-600, body > .fixed.top-4.bg-red-500 { background: var(--ma-signal-ink); }
#comments-section .z-50 { z-index: 150; }
#comments-section .w-1 { width: .25rem; }
#comments-section .w-4 { width: 1rem; }
#comments-section .w-5 { width: 1.25rem; }
#comments-section .w-6 { width: 1.5rem; }
#comments-section .w-10 { width: 2.5rem; }
#comments-section .w-12 { width: 3rem; }
#comments-section .w-full { width: 100%; }
#comments-section .h-4 { height: 1rem; }
#comments-section .h-5 { height: 1.25rem; }
#comments-section .h-6 { height: 1.5rem; }
#comments-section .h-10 { height: 2.5rem; }
#comments-section .h-12 { height: 3rem; }
#comments-section .max-w-md { max-width: 28rem; }
#comments-section .mx-auto { margin-left: auto; margin-right: auto; }
#comments-section .p-2 { padding: .5rem; }
#comments-section .p-3 { padding: .75rem; }
#comments-section .p-4 { padding: 1rem; }
#comments-section .p-6 { padding: 1.5rem; }
#comments-section .px-2 { padding-left: .5rem; padding-right: .5rem; }
#comments-section .px-3 { padding-left: .75rem; padding-right: .75rem; }
#comments-section .px-4 { padding-left: 1rem; padding-right: 1rem; }
#comments-section .px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
#comments-section .py-2 { padding-top: .5rem; padding-bottom: .5rem; }
#comments-section .py-3 { padding-top: .75rem; padding-bottom: .75rem; }
#comments-section .py-4 { padding-top: 1rem; padding-bottom: 1rem; }
#comments-section .mb-1 { margin-bottom: .25rem; }
#comments-section .mb-2 { margin-bottom: .5rem; }
#comments-section .mb-3 { margin-bottom: .75rem; }
#comments-section .mb-4 { margin-bottom: 1rem; }
#comments-section .mb-6 { margin-bottom: 1.5rem; }
#comments-section .mt-1 { margin-top: .25rem; }
#comments-section .mt-2 { margin-top: .5rem; }
#comments-section .mt-3 { margin-top: .75rem; }
#comments-section .mt-4 { margin-top: 1rem; }
#comments-section .mt-6 { margin-top: 1.5rem; }
#comments-section .mr-1 { margin-right: .25rem; }
#comments-section .mr-2 { margin-right: .5rem; }
#comments-section .ml-8 { margin-left: 2rem; }
#comments-section .rounded { border-radius: .375rem; }
#comments-section .rounded-lg { border-radius: var(--ma-r-sm); }
#comments-section .rounded-full { border-radius: 9999px; }
#comments-section .border { border: 1px solid var(--ma-line-strong); }
#comments-section .border-gray-200 { border-color: var(--ma-line); }
#comments-section .border-gray-300 { border-color: var(--ma-line-strong); }
#comments-section .bg-white { background-color: var(--ma-surface); }
#comments-section .bg-gray-50, #comments-section .bg-gray-100 { background-color: var(--ma-bg); }
#comments-section .bg-gray-200 { background-color: var(--ma-tint-2); }
#comments-section .bg-red-600 { background-color: var(--ma-signal-ink); }
#comments-section .bg-green-600 { background-color: var(--ma-brand); }
#comments-section .bg-yellow-50, #comments-section .bg-yellow-100 { background-color: #FBF0D5; }
#comments-section .bg-blue-50 { background-color: var(--ma-tint); }
#comments-section .bg-red-50 { background-color: #FCE9E3; }
#comments-section .text-xs { font-size: .8125rem; }
#comments-section .text-sm { font-size: .9rem; }
#comments-section .text-base { font-size: 1rem; }
#comments-section .text-lg { font-size: 1.125rem; }
#comments-section .text-xl { font-size: 1.25rem; }
#comments-section .font-normal { font-weight: 400; }
#comments-section :is(.font-medium, .font-bold) { font-weight: 650; }
#comments-section .italic { font-style: italic; }
#comments-section .text-center { text-align: center; }
#comments-section .text-white { color: #fff; }
#comments-section :is(.text-gray-300, .text-gray-400, .text-gray-500) { color: var(--ma-text-3); }
#comments-section :is(.text-gray-600, .text-gray-700) { color: var(--ma-text-2); }
#comments-section :is(.text-gray-800, .text-gray-900) { color: var(--ma-text); }
#comments-section :is(.text-blue-600, .text-blue-800, .text-green-600) { color: var(--ma-accent); }
#comments-section :is(.text-red-500, .text-red-600, .text-red-700) { color: var(--ma-signal-ink); }
#comments-section :is(.text-yellow-600, .text-yellow-700) { color: #8A5B00; }
#comments-section .hover\:underline:hover { text-decoration: underline; }
#comments-section .whitespace-pre-wrap { white-space: pre-wrap; }
#comments-section .break-words { overflow-wrap: break-word; }
#comments-section .resize-none { resize: none; }
#comments-section .cursor-pointer { cursor: pointer; }
#comments-section .shadow-lg { box-shadow: var(--ma-shadow-lift); }
@media (min-width: 640px) { #comments-section .sm\:ml-12 { margin-left: 3rem; } }

/* po članku */
.ma-read__more .ma-shead__title { font-size: var(--ma-t-xl); }
.ma-grid4 {
  display: grid; grid-auto-flow: column; grid-auto-columns: 76%; gap: var(--ma-gap);
  margin-inline: calc(-1 * var(--ma-gutter)); padding-inline: var(--ma-gutter); scroll-padding-inline: var(--ma-gutter);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.ma-grid4::-webkit-scrollbar { display: none; }
.ma-grid4 > * { scroll-snap-align: start; }
.ma-grid4--1 { grid-auto-columns: 100%; }
.ma-grid4 .ma-card__media { aspect-ratio: 4 / 3; }
.ma-grid4 .ma-card__title { font-size: 16.5px; }
.ma-after { display: grid; gap: var(--ma-gap); grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.ma-after > .ma-news { margin: 0; }

@media (min-width: 600px) {
  .ma-read__title { font-size: 36px; }
  .ma-read__share { display: inline-flex; margin-left: auto; }
  .ma-grid4 { grid-auto-columns: 44%; }
  .kn-gallery-grid[data-columns="3"], .kn-gallery-grid[data-columns="4"], .kn-gallery-grid[data-columns="5"] { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .ma-read__head { padding: var(--ma-s-7) 0 var(--ma-s-7); }
  .ma-read__head .ma-crumbs { display: block; }
  .ma-read__title { font-size: clamp(36px, 3.3vw, 50px); line-height: 1.06; letter-spacing: -0.032em; }
  .ma-read__title--long { font-size: clamp(32px, 2.8vw, 42px); line-height: 1.1; }
  .ma-read__lead { margin-top: 20px; font-size: 20px; line-height: 1.55; }
  .ma-read__bar { margin-top: 28px; gap: 12px 18px; }
  .ma-read__hero img { aspect-ratio: 16 / 9; border-radius: var(--ma-r-tile); }
  .ma-read__hero figcaption { margin-top: 12px; }
  .ma-read__body { margin-top: var(--ma-s-8); }
  .ma-grid4 { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: 0; padding-inline: 0; overflow: visible; scroll-snap-type: none; }
  .ma-grid4--1 { grid-template-columns: minmax(0, 1fr); }
  .ma-grid4--3 > :last-child { grid-column: 1 / -1; }
  .ma-after { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kn-gallery-grid[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
  .kn-gallery-grid[data-columns="5"] { grid-template-columns: repeat(5, 1fr); }
  .ma-pay { padding: var(--ma-s-8) var(--ma-s-7); }
}
@media (min-width: 1100px) {
  .ma-grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ma-grid4--1 { grid-template-columns: minmax(0, 1fr); }
  .ma-grid4--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ma-grid4--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ma-grid4--3 > :last-child { grid-column: auto; }
}

/* telefon: glava članka kot v aplikaciji (nazaj, logotip na sredini, deli) */
@media (max-width: 767px) {
  .ma-p-clanek .ma-read__sharebtn:not([hidden]) { display: inline-flex; }
  .ma-p-clanek .ma-read__end .ma-share__copy span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ma-p-clanek .ma-read__end .ma-share__copy { width: 44px; padding: 0; }
}
@media (min-width: 768px) {
  .ma-back, .ma-read__sharebtn { display: none !important; }
}
/* katerakoli stran z gumbom nazaj (blok appbar_lead): na telefonu logotip na sredino, prijava v meni Več */
@media (max-width: 767px) {
  .ma-appbar__in:has(.ma-back) { justify-content: space-between; }
  .ma-appbar__in:has(.ma-back) .ma-logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .ma-appbar__in:has(.ma-back) .ma-logo img { height: 22px; }
  .ma-appbar__in:has(.ma-back) .ma-login { display: none; }
  .ma-appbar__in:has(.ma-back) .ma-appbar__end { margin-left: 0; }
}
/* ozek telefon: gumb nazaj samo s puščico (napis ostane za bralnike zaslona) */
@media (max-width: 479px) {
  .ma-back { width: 44px; padding: 0; }
  .ma-back span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* tisk: samo članek */
@media print {
  .ma-appbar, .ma-chips, .ma-tabbar, .ma-footer, .ma-search, .ma-sheet, .ma-share, .ma-read__end, .ma-cmt, .ma-gpref,
  .ma-read__more, .ma-preview, .knl-popup, .knpush, .ma-skip, .ma-video__thumbs, .kn-gallery-nav, .kn-gallery-thumbs { display: none !important; }
  body.ma-body { background: #fff; color: #000; padding: 0; }
  .ma-col, .ma-readwrap { width: 100%; }
  .ma-read__title { font-size: 26pt; }
  .ma-prose { font-size: 11.5pt; line-height: 1.55; }
  .ma-read__hero img { max-height: 9cm; border-radius: 0; }
  .ma-prose a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .ma-tile, .ma-pay { box-shadow: none; border: 1px solid #ccc; }
}

/* skupni popravki pred preklopom (4. 11.): [hidden] vedno skrije (gumbi z display so ga povozili),
   vrstica deljenja se pri ozkih zaslonih prelomi, skriti napisi v drsnih vrsticah ne širijo strani */
[hidden] { display: none !important; }
.ma-share { flex-wrap: wrap; }
.ma-chips { position: relative; }
