/* =====================================================================
   mesto-dogodki-v1.css — slogi DOGODKOV mestne aplikacije (nov. 2026)
   Lastnik: agent za dogodke (seznam, dogodek, koledar, zemljevid, oddaja,
   vstopnice …). Gradi na mesto-v1.css: tokeni --ma-*, gradniki .ma-tile,
   .ma-card, .ma-date, .ma-ev, .ma-btn … Nove razrede začni z ma-d-
   (npr. .ma-d-koledar). Barve samo prek spremenljivk (4 teme).
   Najprej telefon, potem min-width.
   Strani: .ma-p-dogodki (seznam), .ma-p-dogodek, .ma-p-koledar,
           .ma-p-videoteka, .ma-p-promet, .ma-p-enovice (nastavitve, odjava).
   Barve vrst dogodkov (--c) so podatek iz baze (EventCategory.color).
   ===================================================================== */

/* ---------- 1. Skupno: glava, zavihki, vrste, stolpca ---------- */
.ma-d-head .ma-lead b { font-weight: var(--ma-w-strong); color: var(--ma-brand-deep); }
.ma-d-head .ma-lead .ma-d-dot { display: inline-block; margin-right: 8px; vertical-align: 1px; }
.ma-d-head__cta { display: inline-flex; align-items: center; min-height: 44px; margin-left: 2px; 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-d-head__cta:hover { text-decoration-color: currentColor; }

.ma-d-bar { display: grid; gap: var(--ma-s-2); margin-bottom: var(--ma-s-6); }
/* vodoravni vrsti: na telefonu drsita do roba zaslona */
.ma-d-seg, .ma-d-cats {
  display: flex; gap: var(--ma-s-2); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  margin: -4px calc(-1 * var(--ma-gutter)); padding: 6px var(--ma-gutter); scroll-padding-inline: var(--ma-gutter);
}
.ma-d-seg::-webkit-scrollbar, .ma-d-cats::-webkit-scrollbar { display: none; }
.ma-d-seg__a {
  position: relative;           /* .ma-sr v drsniku: sicer absolutni element razširi stran */
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px 0 18px;
  border-radius: var(--ma-r-pill); border: 1px solid var(--ma-line); background: var(--ma-surface); box-shadow: var(--ma-shadow);
  color: var(--ma-brand-deep); font-size: 15.5px; font-weight: 650; text-decoration: none; white-space: nowrap;
}
.ma-d-seg__a:hover { border-color: var(--ma-line-strong); }
.ma-d-seg__a[aria-current="page"] { background: var(--ma-brand); border-color: var(--ma-brand); color: #fff; box-shadow: var(--ma-shadow-lift); }
.ma-d-seg__a .ma-i { margin-left: -4px; }
.ma-d-seg__n {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: var(--ma-r-pill);
  background: var(--ma-tint); color: var(--ma-brand); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0;
}
.ma-d-seg__n.is-zero { background: transparent; color: var(--ma-text-3); box-shadow: inset 0 0 0 1px var(--ma-line-strong); }
.ma-d-seg__a[aria-current="page"] .ma-d-seg__n { background: rgb(255 255 255 / .2); color: #fff; box-shadow: none; }
.ma-d-seg__a--cal { background: transparent; box-shadow: none; border-style: dashed; border-color: var(--ma-line-strong); color: var(--ma-accent); }
.ma-d-seg__a--cal:hover { background: var(--ma-surface); border-style: solid; }

.ma-d-cat {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 14px;
  border-radius: var(--ma-r-pill); border: 1px solid var(--ma-line-strong); background: transparent;
  color: var(--ma-text-2); font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.ma-d-cat:first-child { padding-left: 16px; }
.ma-d-cat:hover { background: var(--ma-surface); color: var(--ma-brand-deep); }
.ma-d-cat[aria-current="page"] { background: var(--ma-surface); border-color: var(--ma-brand); box-shadow: inset 0 0 0 1px var(--ma-brand); color: var(--ma-brand-deep); }
.ma-d-dot { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--ma-accent)); box-shadow: 0 0 0 2px var(--ma-surface), 0 0 0 3px var(--ma-line); }

/* stolpca: vsebina (1fr) + stranski stolpec stalne širine; vrhova poravnana, brez lukenj */
.ma-d-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ma-s-8) var(--ma-s-6); align-items: start; }
.ma-d-main, .ma-d-side { display: grid; gap: var(--ma-s-5); align-content: start; min-width: 0; }
.ma-d-main > .ma-pager { margin-top: var(--ma-s-4); }

/* oznake (Danes, Jutri, Odpovedano …): barve iz teme, kontrast AA */
.ma-d-tag {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: var(--ma-r-pill);
  background: var(--ma-tint); color: var(--ma-brand); font-size: 12.5px; font-weight: 700; line-height: 1; letter-spacing: .01em;
  white-space: nowrap; text-decoration: none; font-stretch: 100%;
}
.ma-d-tag .ma-i { width: 14px; height: 14px; }
.ma-d-tag--now { background: var(--ma-brand); color: #fff; }
.ma-d-tag--next { background: var(--ma-tint-2); color: var(--ma-brand-deep); }
.ma-d-tag--off { background: var(--ma-signal-ink); color: #fff; }
.ma-d-tag--run { background: var(--ma-surface); color: var(--ma-brand-deep); box-shadow: inset 0 0 0 1px var(--ma-line-strong); }
.ma-d-tag--past { background: var(--ma-bg); color: var(--ma-text-2); box-shadow: inset 0 0 0 1px var(--ma-line-strong); font-weight: 650; }
.ma-d-tag--feat { background: var(--ma-accent); color: #fff; }
.ma-d-tag--cat { background: var(--ma-surface); color: var(--ma-brand-deep); box-shadow: inset 0 0 0 1px var(--ma-line-strong); gap: 8px; padding-left: 10px; }
a.ma-d-tag--cat:hover { box-shadow: inset 0 0 0 1px var(--ma-brand); }
/* povezava v obliki oznake: vidno 26 px, cilj dotika 44 px */
a.ma-d-tag--cat { position: relative; }
a.ma-d-tag--cat::after { content: ""; position: absolute; inset: -9px -2px; }
.ma-d-tag--cat .ma-d-dot { width: 8px; height: 8px; box-shadow: none; }

/* listek z datumom (dogodek, koledar) */
.ma-d-leaf {
  display: grid; flex: none; width: 64px; overflow: hidden; text-align: center; line-height: 1;
  border-radius: calc(var(--ma-r-sm) + 4px); background: var(--ma-surface); box-shadow: var(--ma-shadow), inset 0 0 0 1px var(--ma-line);
}
.ma-d-leaf__m { padding: 5px 0 4px; background: var(--ma-accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ma-d-leaf__d { padding: 8px 0 3px; font-size: 30px; font-weight: var(--ma-w-head); letter-spacing: -0.03em; color: var(--ma-brand-deep); font-variant-numeric: tabular-nums; }
.ma-d-leaf__w { padding-bottom: 8px; font-size: 12.5px; font-weight: 600; color: var(--ma-text-3); }
.ma-d-leaf--sm { width: 48px; }
.ma-d-leaf--sm .ma-d-leaf__m { font-size: 11px; padding: 4px 0 3px; }
.ma-d-leaf--sm .ma-d-leaf__d { padding: 6px 0 7px; font-size: 22px; }

/* ---------- 2. Seznam dogodkov po dnevih ---------- */
.ma-d-day { padding: 0 var(--ma-s-4) var(--ma-s-1); }
.ma-d-day__head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 14px 0 12px; border-bottom: 1px solid var(--ma-line); }
.ma-d-day__title { margin: 0; font-size: 17px; line-height: 1.25; font-weight: var(--ma-w-head); font-stretch: var(--ma-stretch-head); letter-spacing: var(--ma-track-head); color: var(--ma-brand-deep); }
.ma-d-day__n { margin-left: auto; font-size: var(--ma-t-sm); font-weight: 600; color: var(--ma-text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ma-d-day__ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ma-surface); color: var(--ma-brand); }
.ma-d-day--today { box-shadow: var(--ma-shadow), inset 0 3px 0 var(--ma-brand); }
.ma-d-day--run { background: var(--ma-tint); border-color: transparent; box-shadow: none; }
.ma-d-day--run .ma-d-day__head, .ma-d-day--run .ma-d-ev + .ma-d-ev { border-color: var(--ma-line-strong); }

.ma-d-evs { list-style: none; margin: 0; padding: 0; }
.ma-d-ev + .ma-d-ev { border-top: 1px solid var(--ma-line); }
.ma-d-ev__link { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: start; min-height: 44px; padding: 14px 0; color: inherit; text-decoration: none; }
.ma-d-ev__time { padding-top: 1px; white-space: nowrap; font-size: 15px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--ma-brand-deep); font-variant-numeric: tabular-nums; }
.ma-d-ev__time small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: var(--ma-text-3); }
.ma-d-ev__time small:first-child { margin: 0 0 2px; }
.ma-d-ev__time .ma-d-ev__allday { margin: 2px 0 0; font-size: 13px; color: var(--ma-text-2); }
.ma-d-ev__body { display: grid; gap: 6px; min-width: 0; }
.ma-d-ev__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ma-d-ev__title {
  margin: 0; font-size: 16.5px; font-weight: var(--ma-w-strong); line-height: 1.3; letter-spacing: -0.01em; color: var(--ma-brand-deep);
  overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ma-d-ev__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--ma-t-sm); line-height: 1.35; color: var(--ma-text-3); }
.ma-d-ev__meta > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.ma-d-ev__loc { overflow-wrap: anywhere; }
.ma-d-ev__loc .ma-i { margin-left: -1px; color: var(--ma-accent); }
.ma-d-ev__cat .ma-d-dot { width: 8px; height: 8px; box-shadow: none; }
.ma-d-ev__free { font-weight: 650; color: var(--ma-brand); }
.ma-d-ev__pic { position: relative; width: 64px; aspect-ratio: 1; overflow: hidden; border-radius: var(--ma-r-sm); background: var(--ma-tint); }
.ma-d-ev__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ma-d-ev__link:hover .ma-d-ev__title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.ma-d-ev.is-cancelled .ma-d-ev__title { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--ma-text-2); }

/* izpostavljeno: na telefonu vrsta s pripenjanjem */
.ma-d-feat {
  display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: var(--ma-gap);
  margin-inline: calc(-1 * var(--ma-gutter)); padding: 2px var(--ma-gutter) 6px; scroll-padding-inline: var(--ma-gutter);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.ma-d-feat::-webkit-scrollbar { display: none; }
.ma-d-feat > * { scroll-snap-align: start; }
.ma-d-feat--1 { grid-auto-columns: 100%; }
.ma-d-fcard { min-width: 0; border: 1px solid var(--ma-line); border-radius: var(--ma-r-tile); background: var(--ma-surface); box-shadow: var(--ma-shadow); overflow: hidden; }
.ma-d-fcard__link { display: flex; flex-direction: column; height: 100%; padding: 8px 8px 16px; color: inherit; text-decoration: none; }
.ma-d-fcard__media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: calc(var(--ma-r-tile) - 8px); background: var(--ma-tint); }
.ma-d-fcard__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ma-d-fcard__ph { display: grid; place-items: center; height: 100%; color: var(--ma-brand); background: linear-gradient(135deg, var(--ma-tint), var(--ma-tint-2)); }
/* listek in oznaka na sliki (kot .ma-evcard na naslovnici) */
.ma-d-fcard__cal { position: absolute; left: 10px; top: 10px; box-shadow: 0 6px 18px -6px rgb(var(--ma-scrim) / .5); }
.ma-d-fcard.is-today .ma-d-fcard__cal { background: var(--ma-signal-ink); }
.ma-d-fcard__tag { position: absolute; right: 10px; top: 10px; box-shadow: var(--ma-shadow); }
.ma-d-fcard.is-cancelled .ma-d-fcard__title { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.ma-d-fcard__media:has(.ma-d-fcard__ph) { aspect-ratio: 2 / 1; }
.ma-d-fcard__body { display: grid; gap: 6px; padding: 14px 8px 0; }
.ma-d-fcard__when { font-size: var(--ma-t-sm); font-weight: 650; color: var(--ma-accent); }
.ma-d-fcard__title { margin: 0; font-size: 18px; line-height: 1.25; font-weight: var(--ma-w-head); font-stretch: var(--ma-stretch-head); letter-spacing: var(--ma-track-head); color: var(--ma-brand-deep); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ma-d-fcard__where { display: inline-flex; align-items: center; gap: 5px; font-size: var(--ma-t-sm); color: var(--ma-text-3); }
.ma-d-fcard__link:hover .ma-d-fcard__title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

/* stranski stolpec: koledar, organizatorji, e-novice, najbolj brano */
.ma-d-calcta { display: flex; align-items: center; gap: 14px; padding-top: var(--ma-s-4); padding-bottom: var(--ma-s-4); color: var(--ma-brand-deep); text-decoration: none; }
.ma-d-calcta__t { display: grid; gap: 2px; flex: 1; min-width: 0; }
.ma-d-calcta__t b { font-size: 17px; font-weight: var(--ma-w-head); letter-spacing: var(--ma-track-head); }
.ma-d-calcta__t span { font-size: var(--ma-t-sm); color: var(--ma-text-3); }
.ma-d-calcta > .ma-i { color: var(--ma-text-3); }
.ma-d-calcta:hover { border-color: var(--ma-line-strong); }
.ma-d-calcta:hover .ma-d-calcta__t b { text-decoration: underline; text-underline-offset: 3px; }
.ma-d-org { display: flex; flex-direction: column; align-items: flex-start; gap: var(--ma-s-2); padding-bottom: var(--ma-s-5); }
.ma-d-org .ma-btn { margin-top: auto; }   /* v raztegnjeni ploščici gumb na dno */
.ma-d-org__mail { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--ma-on-brand-2); text-underline-offset: 3px; overflow-wrap: anywhere; }
.ma-d-org__mail:hover { color: #fff; }
.ma-d-org .ma-iconchip { background: rgb(255 255 255 / .14); color: #fff; }
.ma-d-org .ma-tile__title { margin-top: var(--ma-s-2); }
.ma-d-org p { margin: 0 0 var(--ma-s-2); color: var(--ma-on-brand-2); line-height: 1.5; }
.ma-d-rank .ma-tile__head { margin-bottom: 0; }
.ma-d-side .ma-news { align-content: start; }   /* v raztegnjeni vrsti besedilo in obrazec skupaj zgoraj */

/* ---------- 3. Dogodek ---------- */
.ma-d-staff { background: var(--ma-brand-deep); color: #fff; }
.ma-d-staff__in { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ma-s-3) var(--ma-s-5); padding: var(--ma-s-3) 0; }
.ma-d-staff p { display: flex; align-items: flex-start; gap: 10px; margin: 0; flex: 1 1 320px; font-size: 15px; line-height: 1.45; }
.ma-d-staff p .ma-i { margin-top: 1px; color: var(--ma-k-power); }
.ma-d-staff__acts { display: flex; flex-wrap: wrap; gap: var(--ma-s-2); }
.ma-d-staff__acts form { margin: 0; }
.ma-d-staff .ma-btn--sm { min-height: 44px; }
.ma-d-staff .ma-btn--ghost { color: #fff; }
.ma-d-staff .ma-btn--ghost:hover { background: #fff; color: var(--ma-brand-deep); }
.ma-d-staff .ma-check { flex-basis: 100%; padding-top: 0; color: rgb(255 255 255 / .9); }
.ma-d-staff :focus-visible { outline-color: #fff; }

.ma-d-evpage > .ma-crumbs { display: none; }
.ma-d-evhead { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--ma-s-4); align-items: start; padding: var(--ma-s-5) 0 var(--ma-s-6); }
.ma-d-evhead__text { display: grid; gap: var(--ma-s-3); min-width: 0; }
.ma-d-evhead__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ma-d-evhead__tags:empty { display: none; }
.ma-d-evhead__title { font-size: var(--ma-t-3xl); line-height: 1.06; overflow-wrap: anywhere; }
.ma-d-evhead__sub { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: 15.5px; font-weight: 550; color: var(--ma-text-2); }
.ma-d-evhead__sub span { display: inline-flex; align-items: center; gap: 7px; }
.ma-d-evhead__sub .ma-i { color: var(--ma-accent); }

/* telefon: slika, opis, PODATKI, deljenje, podobni (vrstni red v HTML) */
.ma-d-evgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ma-s-6); align-items: start; }
.ma-d-evgrid > * { min-width: 0; }
.ma-d-fig { margin: 0; }
.ma-d-fig__img { display: grid; place-items: center; overflow: hidden; border-radius: var(--ma-r-tile); background: var(--ma-tint); }
.ma-d-fig__img img { display: block; width: 100%; height: auto; max-height: min(76vh, 680px); object-fit: contain; }  /* plakati pokončno: cel, na barvni podlagi */
.ma-d-fig figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--ma-text-3); }
.ma-d-evgrid__body > * + * { margin-top: var(--ma-s-5); }
.ma-d-prose { font-size: 17.5px; }
.ma-d-alert { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px 18px; border-radius: var(--ma-r-card); background: var(--ma-signal-ink); color: #fff; font-size: 16px; line-height: 1.45; }
.ma-d-alert .ma-i { flex: none; margin-top: 1px; }
.ma-d-src { margin: 0; font-size: 15px; color: var(--ma-text-3); }
.ma-d-src a { color: var(--ma-accent); font-weight: 600; text-underline-offset: 3px; }

.ma-d-evgrid__side { display: grid; gap: var(--ma-s-4); }
.ma-d-facts { padding: var(--ma-s-1) var(--ma-s-5) var(--ma-s-5); }
.ma-d-facts__dl { margin: 0; }
.ma-d-fact { position: relative; min-height: 72px; padding: 14px 0 14px 58px; border-bottom: 1px solid var(--ma-line); }
.ma-d-fact dt { font-size: var(--ma-t-xs); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ma-text-3); }
.ma-d-fact dt .ma-iconchip { position: absolute; left: 0; top: 14px; }
.ma-d-fact dd { margin: 3px 0 0; font-size: 16.5px; font-weight: 600; line-height: 1.4; color: var(--ma-brand-deep); overflow-wrap: anywhere; }
.ma-d-fact__s { display: block; margin-top: 2px; font-size: 14.5px; font-weight: 500; color: var(--ma-text-2); }
.ma-d-fact__s--only { margin: 0; }
.ma-d-fact__free { color: var(--ma-brand); }
.ma-d-fact__a { display: flex; align-items: center; min-height: 44px; font-size: 14.5px; font-weight: 600; color: var(--ma-accent); text-decoration: underline; text-decoration-color: var(--ma-tint-2); text-underline-offset: 3px; }
.ma-d-fact__a:hover { text-decoration-color: currentColor; }
.ma-d-acts { display: grid; gap: var(--ma-s-2); margin-top: var(--ma-s-4); }
.ma-d-acts .ma-btn { white-space: normal; text-align: center; padding-block: 10px; }
.ma-d-map { display: block; width: 100%; aspect-ratio: 4 / 3; margin-top: var(--ma-s-4); border: 0; border-radius: var(--ma-r-card); background: var(--ma-tint); }

.ma-d-tix .ma-tile__title { margin-bottom: var(--ma-s-3); }
.ma-d-tix .ma-tile__title .ma-i { color: var(--ma-accent); }
.ma-d-tix form > * + * { margin-top: var(--ma-s-3); }
.ma-d-tix__types { display: grid; gap: var(--ma-s-2); margin: 0; padding: 0; border: 0; }
.ma-d-tt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; border: 1px solid var(--ma-line-strong); border-radius: var(--ma-r-card); cursor: pointer; }
.ma-d-tt input { width: 20px; height: 20px; margin: 0; accent-color: var(--ma-brand); }
.ma-d-tt__name { font-weight: 600; color: var(--ma-brand-deep); line-height: 1.3; }
.ma-d-tt__name small { display: block; font-size: var(--ma-t-xs); font-weight: 600; color: var(--ma-signal-ink); }
.ma-d-tt__price { font-size: 17px; color: var(--ma-brand-deep); font-variant-numeric: tabular-nums; }
.ma-d-tt:has(input:checked) { border-color: var(--ma-brand); box-shadow: inset 0 0 0 1px var(--ma-brand); background: var(--ma-tint); }
.ma-d-tt.is-out { opacity: .6; cursor: default; }
.ma-d-tix__row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--ma-s-3); }
.ma-d-tix__row .ma-field + .ma-field, .ma-d-tix .ma-field + .ma-field { margin-top: 0; }
.ma-d-tix .ma-help a { color: var(--ma-accent); }

.ma-d-sharebox { display: grid; gap: var(--ma-s-2); justify-items: start; }
.ma-d-sharebox__t { margin: 0; font-size: 14.5px; font-weight: 650; color: var(--ma-text-2); }
/* ma-share na telefonu: kopiraj samo z ikono, sicer 6 gumbov preseže 358 px */
.ma-d-sharebox .ma-share__copy { width: 44px; padding: 0; }
.ma-d-sharebox .ma-share__copy span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* .ma-share__b / .ma-iconbtn imata display, ki preglasi [hidden]: brez navigator.share gumb »Deli« skrij */
.ma-d-sharebox .ma-share__native[hidden], .ma-p-dogodek .ma-read__sharebtn[hidden] { display: none; }
/* ozek telefon (320): ob sistemskem deljenju skrij X in e-pošto (7 gumbov je 332 px) */
@media (max-width: 359px) {
  .ma-d-sharebox .ma-share:has(.ma-share__native:not([hidden])) .ma-share__b[href^="https://x.com"],
  .ma-d-sharebox .ma-share:has(.ma-share__native:not([hidden])) .ma-share__b[href^="mailto:"] { display: none; }
}
.ma-d-simlist { padding: var(--ma-s-1) var(--ma-s-4); }
.ma-d-simlist .ma-ev { padding: 12px 0; min-height: 44px; }
.ma-d-simlist .ma-ev + .ma-ev { border-top: 1px solid var(--ma-line); }

/* ---------- 4. Koledar ---------- */
.ma-d-calcols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ma-s-6); align-items: start; }
.ma-d-cal { padding: var(--ma-s-3) 10px var(--ma-s-4); }
.ma-d-cal__nav { display: flex; align-items: center; gap: var(--ma-s-2); margin-bottom: var(--ma-s-3); }
.ma-d-cal__title { flex: 1; margin: 0; text-align: center; font-size: var(--ma-t-xl); line-height: 1.2; font-weight: var(--ma-w-head); font-stretch: var(--ma-stretch-head); letter-spacing: var(--ma-track-head); color: var(--ma-brand-deep); }
.ma-d-cal__title span { font-weight: var(--ma-w-num); color: var(--ma-text-3); }
.ma-d-cal__today { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: var(--ma-r-pill); background: var(--ma-tint); color: var(--ma-brand); font-size: 14px; font-weight: 650; text-decoration: none; }
.ma-d-cal__today:hover { background: var(--ma-tint-2); }
.ma-d-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.ma-d-cal__dn { padding: 2px 0 8px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--ma-text-3); }
.ma-d-cal__dn.is-we { color: var(--ma-accent); }
.ma-d-cal__c {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; min-height: 44px; border-radius: var(--ma-r-sm);
  color: var(--ma-text-3); font-size: 15px; font-weight: 500; text-decoration: none; font-variant-numeric: tabular-nums;
}
.ma-d-cal__c.is-out { visibility: hidden; }
.ma-d-cal__c.has { background: var(--ma-tint); color: var(--ma-brand-deep); font-weight: 700; }
.ma-d-cal__c.has-span { color: var(--ma-brand-deep); font-weight: 600; }
@media (hover: hover) { a.ma-d-cal__c:hover { background: var(--ma-tint-2); } }
.ma-d-cal__c.is-today { box-shadow: inset 0 0 0 2px var(--ma-accent); color: var(--ma-brand-deep); font-weight: 700; }
.ma-d-cal__c.is-sel, a.ma-d-cal__c.is-sel:hover { background: var(--ma-brand); color: #fff; box-shadow: var(--ma-shadow-lift); }
.ma-d-cal__c.is-sel.is-today { box-shadow: inset 0 0 0 2px var(--ma-brand), inset 0 0 0 4px #fff; }
.ma-d-cal__n { line-height: 1; }
.ma-d-cal__dots { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; gap: 3px; }
.ma-d-cal__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--c, var(--ma-accent)); }
.ma-d-cal__c.is-sel .ma-d-cal__dots i { box-shadow: 0 0 0 1.5px #fff; }
/* večdnevni dogodek: tanka črta ob dnu (samo dnevi brez začetka; z začetkom imajo pike) */
.ma-d-cal__c.has-span::after { content: ""; position: absolute; left: 24%; right: 24%; bottom: 3px; height: 2px; border-radius: 2px; background: var(--ma-text-3); opacity: .45; }
.ma-d-cal__c.is-sel.has-span::after { background: #fff; opacity: .7; }
.ma-d-cal__legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: var(--ma-s-3) 6px 0; font-size: 13px; color: var(--ma-text-3); }
.ma-d-cal__legend span { display: inline-flex; align-items: center; gap: 7px; }
.ma-d-cal__lg-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ma-accent); }
.ma-d-cal__lg-bar { width: 14px; height: 2px; border-radius: 2px; background: var(--ma-text-3); opacity: .6; }
.ma-d-cal__lg-ring { width: 14px; height: 14px; border-radius: 5px; box-shadow: inset 0 0 0 2px var(--ma-accent); }

.ma-d-calist { display: grid; gap: var(--ma-s-6); min-width: 0; }
.ma-d-sel { padding: 0 var(--ma-s-4) var(--ma-s-1); border-color: var(--ma-brand); box-shadow: var(--ma-shadow-lift); }
.ma-d-sel[aria-busy="true"] { opacity: .6; }
.ma-d-sel__head { display: flex; align-items: center; gap: 10px; padding: 14px 0 12px; border-bottom: 1px solid var(--ma-line); }
.ma-d-sel__text { display: grid; flex: 1; gap: 4px; min-width: 0; }
.ma-d-sel__k { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: var(--ma-t-xs); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ma-text-3); }
.ma-d-sel__n { text-transform: none; letter-spacing: 0; font-size: var(--ma-t-sm); font-weight: 600; }
.ma-d-sel__k .ma-d-tag { text-transform: none; letter-spacing: .01em; }
.ma-d-sel__title { margin: 0; font-size: var(--ma-t-xl); line-height: 1.2; font-weight: var(--ma-w-head); font-stretch: var(--ma-stretch-head); letter-spacing: var(--ma-track-head); color: var(--ma-brand-deep); }
.ma-d-sel__title:focus { outline: none; }
.ma-d-sel__x { flex: none; }
.ma-d-sel__empty { margin: 0; padding: 18px 0 16px; color: var(--ma-text-2); }

.ma-d-month { display: grid; gap: var(--ma-s-3); }
.ma-d-month .ma-shead { margin-bottom: var(--ma-s-1); }
.ma-d-month__all { margin: var(--ma-s-3) 0 0; }
.ma-d-week { box-shadow: var(--ma-shadow); }
.ma-d-week__sum { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px var(--ma-s-4); cursor: pointer; list-style: none; border-radius: var(--ma-r-tile); }
.ma-d-week__sum::-webkit-details-marker { display: none; }
@media (hover: hover) { .ma-d-week__sum:hover .ma-d-week__label { text-decoration: underline; text-underline-offset: 3px; } }
.ma-d-week__sum:focus-visible { outline-offset: -3px; }
.ma-d-week__text { display: grid; gap: 3px; flex: 1; min-width: 0; }
.ma-d-week__label { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 16.5px; font-weight: 600; color: var(--ma-brand-deep); }
.ma-d-week__label b { font-weight: var(--ma-w-head); letter-spacing: var(--ma-track-head); }
.ma-d-week__peek { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--ma-t-sm); color: var(--ma-text-3); }
.ma-d-week[open] .ma-d-week__peek { display: none; }
.ma-d-week__sub { font-size: var(--ma-t-sm); color: var(--ma-text-2); }
.ma-d-week__n { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 9px; border-radius: var(--ma-r-pill); background: var(--ma-tint); color: var(--ma-brand); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ma-d-week.is-now .ma-d-week__n { background: var(--ma-brand); color: #fff; }
.ma-d-week__chev { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--ma-text-3); transition: transform .2s ease; }
.ma-d-week[open] .ma-d-week__chev { transform: rotate(180deg); }
.ma-d-week__body { padding: 0 var(--ma-s-4) var(--ma-s-1); border-top: 1px solid var(--ma-line); }
.ma-d-week.is-past:not([open]) { box-shadow: none; background: transparent; border-style: dashed; border-color: var(--ma-line-strong); }
.ma-d-week--run { background: var(--ma-tint); border-color: transparent; box-shadow: none; }
.ma-d-week--run .ma-d-week__body, .ma-d-week--run .ma-d-ev + .ma-d-ev { border-color: var(--ma-line-strong); }
.ma-d-week--run .ma-d-week__n { background: var(--ma-surface); }
.ma-d-dayh { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 16px 0 2px; font-size: 13.5px; font-weight: 700; color: var(--ma-text-2); }
.ma-d-dayh + .ma-d-evs .ma-d-ev:first-child .ma-d-ev__link { padding-top: 10px; }
.ma-d-dayh__past { font-weight: 600; color: var(--ma-text-3); }
.ma-d-dayh__past::before { content: "· "; }

/* ---------- 5. Videoteka ---------- */
.ma-d-vt { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ma-s-4); align-items: start; }
.ma-d-vt__main, .ma-d-vt__side { min-width: 0; }
.ma-d-vt__side { display: grid; gap: var(--ma-s-4); align-content: start; }
/* telefon: predvajalnik čez vso širino kot v aplikaciji */
.ma-d-player { position: relative; aspect-ratio: 16 / 9; margin-inline: calc(-1 * var(--ma-gutter)); overflow: hidden; background: var(--ma-brand-deep); }
.ma-d-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ma-d-vinfo { display: grid; gap: var(--ma-s-3); justify-items: start; padding-bottom: var(--ma-s-5); }
.ma-d-vinfo__kick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; }
.ma-d-vinfo__title { margin: 0; font-size: var(--ma-t-xl); line-height: 1.2; font-weight: var(--ma-w-head); font-stretch: var(--ma-stretch-head); letter-spacing: var(--ma-track-head); color: var(--ma-brand-deep); overflow-wrap: anywhere; }
.ma-d-vinfo__ex { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ma-text-2); }
.ma-d-vinfo__btn .ma-i:last-of-type { margin-right: -4px; }
.ma-d-vinfo__also { width: 100%; padding-top: var(--ma-s-3); border-top: 1px solid var(--ma-line); }
.ma-d-vinfo__also h3 { margin: 0 0 4px; font-size: var(--ma-t-sm); font-weight: 700; color: var(--ma-text-3); }
.ma-d-vinfo__also ul { list-style: none; margin: 0; padding: 0; }
.ma-d-vinfo__also a { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 0; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ma-brand-deep); text-decoration: none; }
.ma-d-vinfo__also a .ma-i { flex: none; color: var(--ma-text-3); }
.ma-d-vinfo__also a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ma-d-upnext { display: none; }
.ma-d-upnext ul { list-style: none; margin: var(--ma-s-2) 0 0; padding: 0; }
.ma-d-upnext li + li { border-top: 1px solid var(--ma-line); }
.ma-d-upnext a { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; color: var(--ma-brand-deep); text-decoration: none; }
.ma-d-upnext__pic { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--ma-r-sm); background: var(--ma-tint); color: #fff; }
.ma-d-upnext__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ma-d-upnext__pic .ma-i { position: relative; width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: rgb(var(--ma-scrim) / .55); fill: currentColor; }
.ma-d-upnext__t { font-size: 14.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ma-d-upnext a:hover .ma-d-upnext__t { text-decoration: underline; text-underline-offset: 3px; }

.ma-d-vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ma-s-6) var(--ma-gap); list-style: none; margin: 0; padding: 0; }
.ma-d-vthumb { min-width: 0; }
.ma-d-vthumb__link { display: grid; gap: 8px; align-content: start; color: inherit; text-decoration: none; }
.ma-d-vthumb__media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--ma-r-media); background: var(--ma-tint); }
.ma-d-vthumb__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ma-d-vthumb__play { position: absolute; left: 8px; bottom: 8px; }
.ma-d-vthumb__play .ma-i { fill: currentColor; }
.ma-d-vthumb__title { font-size: 15px; font-weight: 650; line-height: 1.3; letter-spacing: -0.01em; color: var(--ma-brand-deep); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ma-d-vthumb__link:hover .ma-d-vthumb__title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.ma-d-vthumb.is-current .ma-d-vthumb__media { box-shadow: 0 0 0 3px var(--ma-bg), 0 0 0 6px var(--ma-accent); }
.ma-d-vthumb.is-current .ma-d-vthumb__play { background: var(--ma-accent); }

/* ---------- 6. Promet ---------- */
.ma-d-live { display: inline-flex; align-items: center; gap: 8px; margin: var(--ma-s-3) 0 0; padding: 4px 12px; border-radius: var(--ma-r-pill); background: var(--ma-surface); border: 1px solid var(--ma-line); font-size: 14px; font-weight: 650; color: var(--ma-brand-deep); white-space: nowrap; }
.ma-d-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ma-signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ma-signal) 22%, transparent); }
.ma-d-tstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ma-gap); margin-bottom: var(--ma-s-7); }
.ma-d-tstat {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n ic" "k k"; align-content: start; gap: 6px 8px;
  min-height: 116px; padding: var(--ma-s-4); border-radius: var(--ma-r-tile); border: 1px solid var(--ma-line); background: var(--ma-surface);
  box-shadow: var(--ma-shadow); color: var(--ma-brand-deep); text-decoration: none;
}
a.ma-d-tstat:hover { border-color: var(--ma-line-strong); }
.ma-d-tstat__ic { grid-area: ic; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ma-tint); color: var(--ma-brand); }
.ma-d-tstat__n { grid-area: n; font-size: 44px; line-height: 1; font-weight: var(--ma-w-num); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ma-d-tstat__t { grid-area: n; align-self: center; font-size: 19px; font-weight: var(--ma-w-head); letter-spacing: var(--ma-track-head); }
.ma-d-tstat__k { grid-area: k; align-self: end; font-size: 14px; font-weight: 650; line-height: 1.3; color: var(--ma-text-2); }
.ma-d-tstat--alert { background: var(--ma-brand); border-color: transparent; color: #fff; box-shadow: var(--ma-shadow-lift); }
.ma-d-tstat--alert .ma-d-tstat__k { color: var(--ma-on-brand-2); }
.ma-d-tstat--alert .ma-d-tstat__ic { background: var(--ma-signal-ink); color: #fff; }
.ma-d-tstat--alert:focus-visible { outline-color: var(--ma-brand-deep); }
.ma-d-tstat--here { background: var(--ma-tint); border-color: transparent; box-shadow: none; }
.ma-d-tstat--here .ma-d-tstat__ic { background: var(--ma-surface); }
.ma-d-tstat--link .ma-d-tstat__k { font-weight: 500; }

.ma-d-tsec { min-width: 0; }
.ma-d-tlist { display: grid; gap: var(--ma-s-3); list-style: none; margin: 0; padding: 0; }
.ma-d-tr { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: var(--ma-s-4); }
.ma-d-tr__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ma-tint); color: var(--ma-brand); }
.ma-d-tr.is-serious { box-shadow: var(--ma-shadow), inset 4px 0 0 var(--ma-signal-ink); }
.ma-d-tr.is-serious .ma-d-tr__ic { background: var(--ma-signal-ink); color: #fff; }
.ma-d-tr__body { display: grid; gap: 6px; min-width: 0; }
.ma-d-tr__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; }
.ma-d-tr__kind { font-size: var(--ma-t-xs); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ma-text-3); }
.is-serious .ma-d-tr__kind { color: var(--ma-signal-ink); }
.ma-d-road { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--ma-brand-deep); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.ma-d-tr__title { margin: 0; font-size: 17px; line-height: 1.3; font-weight: var(--ma-w-head); letter-spacing: var(--ma-track-head); color: var(--ma-brand-deep); overflow-wrap: anywhere; }
.ma-d-tr__state { margin: 0; font-size: 15px; font-weight: 650; color: var(--ma-brand-deep); }
.is-serious .ma-d-tr__state { color: var(--ma-signal-ink); }
.ma-d-tr__desc { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ma-text-2); overflow-wrap: anywhere; }
.ma-d-tr__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; margin: 2px 0 0; font-size: var(--ma-t-sm); color: var(--ma-text-3); }
.ma-d-tr__foot span, .ma-d-tr__foot a { display: inline-flex; align-items: center; gap: 6px; }
.ma-d-tr__foot a { min-height: 44px; font-weight: 600; color: var(--ma-accent); text-underline-offset: 3px; }
.ma-d-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; line-height: 1.5; color: var(--ma-text-3); }
.ma-d-note .ma-i { flex: none; margin-top: 2px; }
.ma-d-pnews { display: grid; padding-top: var(--ma-s-2); padding-bottom: var(--ma-s-2); }
.ma-d-pnews .ma-card + .ma-card { margin-top: var(--ma-s-3); padding-top: var(--ma-s-3); border-top: 1px solid var(--ma-line); }
.ma-d-latest .ma-list > li > .ma-card { padding: 12px 0; }
.ma-d-latest .ma-card--mini .ma-card__title { font-size: 15.5px; -webkit-line-clamp: 3; }
.ma-d-latest .ma-tile__head { margin-bottom: 0; }

/* ---------- 7. E-novice: nastavitve in odjava ---------- */
.ma-d-nl { display: grid; gap: var(--ma-s-4); width: min(100% - 2 * var(--ma-gutter), 580px); margin: var(--ma-s-6) auto 0; }
.ma-d-nl__card { padding: var(--ma-s-7) var(--ma-s-5) var(--ma-s-6); }
.ma-d-nl__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--ma-s-4); border-radius: 18px; background: var(--ma-brand); color: #fff; }
.ma-d-nl__icon--ok { background: var(--ma-tint); color: var(--ma-brand); }
.ma-d-nl__kick { margin: 0 0 6px; font-size: var(--ma-t-sm); font-weight: 650; color: var(--ma-accent); }
.ma-d-nl__title { margin: 0; }
.ma-d-nl__lead { margin: var(--ma-s-2) 0 0; font-size: 16.5px; color: var(--ma-text-2); overflow-wrap: anywhere; }
.ma-d-nl__lead b { color: var(--ma-brand-deep); font-weight: 650; }
.ma-d-nl__note { margin: var(--ma-s-3) 0 0; color: var(--ma-text-3); }
.ma-d-nl__form { margin-top: var(--ma-s-6); }
.ma-d-opts { display: grid; gap: var(--ma-s-2); margin: 0 0 var(--ma-s-3); padding: 0; border: 0; min-width: 0; }
.ma-d-opts legend { padding: 0; margin-bottom: var(--ma-s-2); }
.ma-d-opt {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; border: 1px solid var(--ma-line-strong);
  border-radius: var(--ma-r-card); background: var(--ma-surface); color: var(--ma-brand-deep); font-size: 16px; font-weight: 600; cursor: pointer;
}
.ma-d-opt input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ma-brand); }
.ma-d-opt span { flex: 1; }
.ma-d-opt__ok { color: var(--ma-brand); visibility: hidden; }
.ma-d-opt:hover { border-color: var(--ma-brand); }
.ma-d-opt:has(input:checked) { border-color: var(--ma-brand); box-shadow: inset 0 0 0 1px var(--ma-brand); background: var(--ma-tint); }
.ma-d-opt:has(input:checked) .ma-d-opt__ok { visibility: visible; }
.ma-d-opt:has(input:focus-visible) { outline: 3px solid var(--ma-accent); outline-offset: 2px; }
.ma-d-nl__active { margin-bottom: var(--ma-s-4); }
.ma-d-nl__active b { color: var(--ma-brand-deep); font-weight: 650; }
.ma-d-nl__alt { margin: var(--ma-s-5) 0 0; padding-top: var(--ma-s-4); border-top: 1px solid var(--ma-line); text-align: center; }
.ma-d-nl__alt a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--ma-text-2); text-underline-offset: 3px; }
.ma-d-nl__alt a:hover { color: var(--ma-signal-ink); }
.ma-d-nl__again { padding-top: var(--ma-s-6); }
.ma-d-nl__h2 { margin: 0 0 var(--ma-s-4); font-size: var(--ma-t-xl); line-height: 1.2; font-weight: var(--ma-w-head); font-stretch: var(--ma-stretch-head); letter-spacing: var(--ma-track-head); color: var(--ma-brand-deep); }
.ma-d-nl__home { margin: var(--ma-s-2) 0 0; text-align: center; }

/* =====================================================================
   VEČJI ZASLONI
   ===================================================================== */
@media (min-width: 600px) {
  .ma-d-ev__link { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 16px; }
  .ma-d-ev__time { font-size: 15.5px; }
  .ma-d-ev__pic { width: 132px; aspect-ratio: 3 / 2; }
  .ma-d-day { padding-inline: var(--ma-s-5); }
  .ma-d-feat { grid-auto-columns: 46%; }
  .ma-d-feat--1 { grid-auto-columns: 100%; }
  .ma-d-leaf { width: 80px; }
  .ma-d-leaf__d { font-size: 38px; }
  .ma-d-leaf__m { font-size: 13px; }
  .ma-d-leaf--sm { width: 48px; }
  .ma-d-leaf--sm .ma-d-leaf__d { font-size: 22px; }
  .ma-d-leaf--sm .ma-d-leaf__m { font-size: 11px; }
  .ma-d-evhead { gap: var(--ma-s-5); }
  .ma-d-facts__dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--ma-s-5); }
  .ma-d-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ma-d-cal { padding: var(--ma-s-4) var(--ma-s-4) var(--ma-s-5); }
  .ma-d-cal__grid { gap: 4px; }
  .ma-d-cal__c { aspect-ratio: auto; height: 60px; }
  .ma-d-cal__dots { bottom: 8px; }
  .ma-d-sel, .ma-d-week__body { padding-inline: var(--ma-s-5); }
  .ma-d-week__sum { padding-inline: var(--ma-s-5); }
  .ma-d-player { margin-inline: 0; border-radius: var(--ma-r-tile); box-shadow: var(--ma-shadow-lift); }
  .ma-d-tstat { padding: var(--ma-s-5); }
  .ma-d-tr { padding: var(--ma-s-5); grid-template-columns: 48px minmax(0, 1fr); gap: 16px; }
  .ma-d-tr__ic { width: 48px; height: 48px; }
  .ma-d-nl__card { padding: var(--ma-s-8) var(--ma-s-7) var(--ma-s-7); }
  .ma-d-sharebox .ma-share__copy { width: auto; padding: 0 16px 0 14px; }
  .ma-d-sharebox .ma-share__copy span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

@media (min-width: 768px) {
  .ma-d-nl { margin-top: var(--ma-s-9); }
  .ma-d-evpage > .ma-crumbs { display: block; }
  .ma-d-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ma-d-side > .ma-d-calcta, .ma-d-side > .ma-d-rank, .ma-d-side > .ma-d-latest { grid-column: 1 / -1; }
  .ma-d-bar { margin-bottom: var(--ma-s-7); }
  .ma-d-feat { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; margin-inline: 0; padding: 0; overflow: visible; }
  .ma-d-feat--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* en izpostavljen dogodek: slika levo, besedilo desno */
  .ma-d-feat--1 { grid-template-columns: minmax(0, 1fr); }
  .ma-d-feat--1 .ma-d-fcard__link { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: var(--ma-s-5); padding: 10px var(--ma-s-6) 10px 10px; }
  .ma-d-feat--1 .ma-d-fcard__body { padding: 0; }
  .ma-d-feat--1 .ma-d-fcard__title { font-size: var(--ma-t-2xl); }
  .ma-d-vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ma-d-tstats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ma-d-tstat__n { font-size: 52px; }
  .ma-d-sharebox { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--ma-s-4); }
}

/* Namizje: stranski stolpec stalne širine */
@media (min-width: 1100px) {
  .ma-d-cols { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--ma-s-6); }
  .ma-d-side { grid-template-columns: minmax(0, 1fr); }
  .ma-d-cols--few { grid-template-columns: minmax(0, 1fr); }
  .ma-d-cols--few .ma-d-side { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ma-d-cols--few .ma-d-side > .ma-d-calcta { grid-column: 1 / -1; }
  .ma-d-cols--few .ma-d-side > .ma-d-rank, .ma-d-cols--few .ma-d-side > .ma-d-latest { grid-column: auto; }
  /* dogodek: levo slika, opis, deljenje, podobni; desno podatki čez vse vrstice (zadnja vrstica 1fr) */
  .ma-d-evgrid { grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto auto auto auto 1fr; column-gap: var(--ma-s-8); row-gap: 0; }
  .ma-d-evgrid > :not(.ma-d-evgrid__side) { grid-column: 1; margin-bottom: var(--ma-s-7); }
  .ma-d-evgrid > .ma-d-evgrid__more { margin-bottom: 0; }
  .ma-d-evgrid__side { grid-column: 2; grid-row: 1 / -1; position: sticky; top: calc(var(--ma-appbar-h) + 16px); }
  .ma-d-evgrid__side--tall { position: static; }   /* z vstopnicami je višji od zaslona: brez lepljenja */
  .ma-d-facts__dl { display: block; }
  .ma-d-acts { grid-template-columns: minmax(0, 1fr); }
  .ma-d-evhead__title { font-size: var(--ma-t-4xl); }
  /* koledar: mreža stalne širine (lepljiva), seznam 1fr */
  .ma-d-calcols { grid-template-columns: 420px minmax(0, 1fr); gap: var(--ma-s-7); }
  .ma-d-cal { position: sticky; top: calc(var(--ma-appbar-h) + 16px); }
  .ma-d-cal__c { height: 52px; }
  .ma-d-vt { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--ma-s-6); }
  .ma-d-upnext { display: block; }
  .ma-d-vgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .ma-d-seg, .ma-d-cats { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }
}

@media (min-width: 1440px) {
  .ma-d-cols { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--ma-s-7); }
  .ma-d-cols--few { grid-template-columns: minmax(0, 1fr); }
  .ma-d-calcols { grid-template-columns: 460px minmax(0, 1fr); }
  .ma-d-cal__c { height: 58px; }
  .ma-d-evgrid { grid-template-columns: minmax(0, 1fr) 400px; }
  .ma-d-vt { grid-template-columns: minmax(0, 1fr) 380px; }
}

@media (prefers-reduced-motion: no-preference) {
  .ma-d-seg, .ma-d-cats, .ma-d-feat { scroll-behavior: smooth; }
}
