/* ==========================================================================
   MODRA KLIMA — uredniška tema za modra-klima.si
   Motiv: "pretok" — vzporedne lasne linije z enim odklonom (reže / zračni tok)
   Verzija brez PHP sintaktičnih napak
   ========================================================================== */

:root {
  --mk-bg: #ffffff;
  --mk-surface: #f3f6fb;
  --mk-surface-2: #e9eef7;
  --mk-text: #0f141b;
  --mk-muted: #57616f;
  --mk-faint: #8b95a5;
  --mk-border: #dde4ef;
  --mk-border-strong: #c4cfdf;
  --mk-accent: #1f44e4;
  --mk-accent-strong: #17309e;
  --mk-accent-soft: #e7edff;
  --mk-dark: #0b1120;
  --mk-dark-2: #131c31;
  --mk-dark-border: #232f4b;

  --mk-font-display: 'Bricolage Grotesque', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --mk-font-body: 'Instrument Sans', 'Helvetica Neue', Arial, 'Segoe UI', sans-serif;

  --mk-fs-hero: clamp(2.35rem, 1.55rem + 3.4vw, 4.1rem);
  --mk-fs-h1: clamp(2rem, 1.45rem + 2.3vw, 3.1rem);
  --mk-fs-h2: clamp(1.55rem, 1.25rem + 1.3vw, 2.15rem);
  --mk-fs-h3: clamp(1.28rem, 1.1rem + 0.8vw, 1.6rem);
  --mk-fs-lead: clamp(1.16rem, 1.05rem + 0.5vw, 1.34rem);

  --mk-space-1: 0.5rem;
  --mk-space-2: 0.75rem;
  --mk-space-3: 1rem;
  --mk-space-4: 1.5rem;
  --mk-space-5: 2.25rem;
  --mk-space-6: 3.5rem;
  --mk-space-7: 5.5rem;

  --mk-container: 77.5rem;
  --mk-reading: 44rem;
  --mk-header-h: 4.25rem;
  --mk-ease: cubic-bezier(0.22, 0.61, 0.2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mk-bg);
  color: var(--mk-text);
  font-family: var(--mk-font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
figure { margin: 0; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--mk-font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: var(--mk-accent-strong); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--mk-accent); }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
input, textarea, select { font: inherit; }
hr { border: 0; border-top: 1px solid var(--mk-border); }
::selection { background: var(--mk-accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--mk-accent);
  outline-offset: 2px;
  border-radius: 1px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  width: auto; height: auto;
  clip: auto; clip-path: none;
  margin: 0; padding: 0.6rem 1rem;
  background: var(--mk-dark); color: #fff;
  z-index: 200;
}

.skip-link {
  position: absolute;
  top: -4rem; left: 1rem;
  z-index: 300;
  background: var(--mk-dark);
  color: #fff;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--mk-ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

.container {
  width: 100%;
  max-width: var(--mk-container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.icon {
  display: inline-block;
  width: 1.15em; height: 1.15em;
  flex: none;
  vertical-align: -0.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
}
.icon--fill { fill: currentColor; stroke: none; }

/* Motiv pretoka */
.flow {
  display: block;
  width: 100%;
  height: auto;
  color: var(--mk-border-strong);
}
.flow .flow-accent { color: var(--mk-accent); }

/* ---------- Tipografski pripomočki ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mk-accent-strong);
}
.kicker::before {
  content: "";
  width: 1.6em; height: 2px;
  background: var(--mk-accent);
}
a.kicker { text-decoration: none; }
a.kicker:hover { color: var(--mk-accent); }

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em 1.1em;
  font-size: 0.83rem;
  color: var(--mk-muted);
}
.meta .meta-item { display: inline-flex; align-items: center; gap: 0.4em; }
.meta time { white-space: nowrap; }

.index-no {
  font-family: var(--mk-font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--mk-accent);
  font-variant-numeric: tabular-nums;
}

/* ---------- Gumba / obrazci ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.78em 1.35em;
  background: var(--mk-text);
  color: #fff;
  border: 1px solid var(--mk-text);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s var(--mk-ease), color 0.18s var(--mk-ease), border-color 0.18s var(--mk-ease);
}
.btn:hover { background: var(--mk-accent); border-color: var(--mk-accent); color: #fff; }
.btn--ghost { background: transparent; color: var(--mk-text); }
.btn--ghost:hover { background: var(--mk-text); color: #fff; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  color: var(--mk-text);
  text-decoration: none;
  border-bottom: 1px solid var(--mk-accent);
  padding-bottom: 0.12em;
  transition: color 0.18s var(--mk-ease), border-color 0.18s var(--mk-ease);
}
.text-link:hover { color: var(--mk-accent); border-color: var(--mk-text); }
.text-link .icon { transition: transform 0.18s var(--mk-ease); }
.text-link:hover .icon { transform: translateX(3px); }

.field {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--mk-border-strong);
  background: #fff;
  max-width: 34rem;
  transition: border-color 0.18s var(--mk-ease);
}
.field:focus-within { border-color: var(--mk-accent); }
.field input[type="search"], .field input[type="email"], .field input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.8em 1em;
  color: var(--mk-text);
}
.field input:focus { outline: none; }
.field .btn { border: 0; }

label { font-weight: 600; font-size: 0.92rem; }

/* ---------- Glava ---------- */
.site-header {
  background: var(--mk-bg);
  border-bottom: 1px solid var(--mk-border);
  position: relative;
  z-index: 60;
}
.header-dateline {
  border-bottom: 1px solid var(--mk-border);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mk-muted);
}
.header-dateline .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.42rem;
}
.header-dateline .dateline-tag { color: var(--mk-faint); }
@media (max-width: 899px) { .header-dateline { display: none; } }

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--mk-header-h);
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--mk-text); }
/* Znak: razmerje 5:3; color: inherit — ohisje prevzame barvo konteksta
   (temna glava, bela noga), curki zraka pa so vedno modri. */
.brand .brand-mark { width: 2.8rem; height: 1.68rem; color: inherit; flex: none; }
.brand .mark-stream { stroke: var(--mk-accent); transition: stroke 0.18s var(--mk-ease); }
.brand .mark-led { fill: var(--mk-accent); transition: fill 0.18s var(--mk-ease); }
.brand:hover .mark-stream { stroke: var(--mk-accent-strong); }
.brand:hover .mark-led { fill: var(--mk-accent-strong); }
.brand .brand-word {
  display: flex; flex-direction: column;
  font-family: var(--mk-font-display);
  font-weight: 800;
  font-size: 1.06rem;
  line-height: 1.02;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.brand .brand-word em { font-style: normal; color: var(--mk-accent); }
.brand:hover .brand-word { color: var(--mk-text); }
.brand img { max-height: 2.4rem; width: auto; }

/* Namizna navigacija */
.nav-primary { display: none; }
@media (min-width: 900px) {
  .nav-primary { display: block; }
  .nav-primary ul { display: flex; align-items: center; gap: 0.2rem; list-style: none; }
  .nav-primary a {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    padding: 0.55em 0.85em;
    color: var(--mk-text);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    position: relative;
  }
  .nav-primary a .nav-no {
    font-family: var(--mk-font-display);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--mk-faint);
    letter-spacing: 0.08em;
  }
  .nav-primary a::after {
    content: "";
    position: absolute;
    left: 0.85em; right: 0.85em; bottom: 0.25em;
    height: 2px;
    background: var(--mk-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.22s var(--mk-ease);
  }
  .nav-primary a:hover::after, .nav-primary .current-menu-item > a::after, .nav-primary .current-menu-ancestor > a::after { transform: scaleX(1); }
  .nav-primary a:hover .nav-no { color: var(--mk-accent); }
}

.header-actions { display: flex; align-items: center; gap: 0.35rem; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--mk-text);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.18s var(--mk-ease), color 0.18s var(--mk-ease);
}
.icon-btn:hover { border-color: var(--mk-border-strong); color: var(--mk-accent); }
.icon-btn .icon { width: 1.3rem; height: 1.3rem; }
.menu-toggle .icon-close, .menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline-block; }
@media (min-width: 900px) { .menu-toggle { display: none; } }

/* Iskanje v glavi */
.header-search { border-top: 1px solid var(--mk-border); background: var(--mk-surface); }
.header-search[hidden] { display: none; }
.header-search .container { padding-block: 1.1rem; }

/* Mobilna navigacija — namensko oblikovana */
.mobile-nav {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--mk-bg);
  border-bottom: 1px solid var(--mk-border);
  padding: 1.2rem clamp(1.1rem, 4vw, 2.5rem) 1.8rem;
  z-index: 70;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; }
.mobile-nav li a {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--mk-border);
  color: var(--mk-text);
  text-decoration: none;
  font-family: var(--mk-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.mobile-nav li a:hover { color: var(--mk-accent); }
.mobile-nav .mnav-note {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: var(--mk-muted);
}
.mobile-nav .search-form { margin-top: 1.2rem; }

/* Napredek branja */
.reading-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}
.reading-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--mk-accent);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---------- Drobtinice ---------- */
.breadcrumbs {
  font-size: 0.8rem;
  color: var(--mk-muted);
  padding-block: 1rem 0;
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3em 0.55em; align-items: baseline; }
.breadcrumbs li { display: inline-flex; align-items: baseline; gap: 0.55em; }
.breadcrumbs li + li::before {
  content: "";
  display: inline-block;
  width: 0.45em; height: 0.45em;
  border-top: 1.5px solid var(--mk-faint);
  border-right: 1.5px solid var(--mk-faint);
  transform: rotate(45deg) translateY(-0.08em);
}
.breadcrumbs a { color: var(--mk-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--mk-accent); }
.breadcrumbs [aria-current] { color: var(--mk-text); font-weight: 600; }

/* ---------- DOMACA STRAN ---------- */

/* Naslovnica / glavni prispevek */
.home-hero { padding-top: clamp(1.6rem, 3vw, 2.6rem); }
.feature {
  display: grid;
  gap: 1.6rem;
}
@media (min-width: 900px) {
  .feature {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2rem, 4vw, 3.6rem);
    align-items: end;
  }
}
.feature .feature-body { display: grid; gap: 1.05rem; align-content: start; }
.feature .feature-title {
  font-size: var(--mk-fs-hero);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
}
.feature .feature-title a { color: var(--mk-text); text-decoration: none; }
.feature .feature-title a:hover { color: var(--mk-accent-strong); }
.feature .feature-excerpt { font-size: var(--mk-fs-lead); line-height: 1.55; color: var(--mk-muted); max-width: 40rem; }
.feature .feature-excerpt a { font-weight: 500; }
.feature .feature-media { position: relative; }
.feature .feature-media a { display: block; }
.feature .feature-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--mk-surface);
}
@media (max-width: 899px) {
  .feature .feature-media { order: -1; }
  .feature .feature-media img { aspect-ratio: 16 / 10; }
}
.feature .flow { margin-top: 0.4rem; max-width: 22rem; }

/* Sekundarni izpostavljeni — ostevilcene uredniske vrstice */
.hero-secondary {
  margin-top: clamp(1.8rem, 3.5vw, 2.8rem);
  border-top: 1px solid var(--mk-text);
}
.hero-secondary .sec-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--mk-border);
  align-items: baseline;
}
@media (min-width: 760px) {
  .hero-secondary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.2rem; }
  .hero-secondary .sec-row { border-bottom: 0; grid-template-columns: minmax(0, 1fr); gap: 0.55rem; }
  .hero-secondary .sec-row + .sec-row { border-left: 1px solid var(--mk-border); padding-left: 2.2rem; }
}
.sec-row .sec-title { font-size: 1.18rem; font-weight: 700; line-height: 1.25; }
.sec-row .sec-title a { color: var(--mk-text); text-decoration: none; }
.sec-row .sec-title a:hover { color: var(--mk-accent-strong); }
.sec-row .meta { margin-top: 0.35rem; }

/* Okvir sekcije na domaci strani */
.home-section { margin-top: clamp(3rem, 7vw, 5.5rem); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--mk-text);
  padding-top: 0.9rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.section-head h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}
.section-head .section-link { flex: none; }

/* Najnovejse — asimetricni uredniski tok */
.latest-grid { display: grid; gap: 2.2rem; }
@media (min-width: 900px) {
  .latest-grid {
    grid-template-columns: minmax(0, 6.4fr) minmax(0, 5.6fr);
    gap: clamp(2.2rem, 4vw, 3.4rem);
    align-items: start;
  }
}

.lead-item { display: grid; gap: 1rem; align-content: start; }
.lead-item .lead-media a { display: block; overflow: hidden; border-radius: 4px; }
.lead-item .lead-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--mk-surface);
  border-radius: 4px;
  transition: transform 0.3s var(--mk-ease), opacity 0.25s var(--mk-ease);
}
.lead-item .lead-media a:hover img { transform: scale(1.02); opacity: 0.94; }
.lead-item .lead-body { display: grid; gap: 0.5rem; }
.lead-item .lead-title {
  font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0;
}
.lead-item .lead-title a { color: var(--mk-text); text-decoration: none; transition: color 0.18s var(--mk-ease); }
.lead-item .lead-title a:hover { color: var(--mk-accent-strong); }
.lead-item .excerpt { color: var(--mk-muted); font-size: 1rem; line-height: 1.55; margin: 0; }

.stream { display: grid; }
.stream .row-item { border-top: 1px solid var(--mk-border); }
.stream .row-item:first-child { border-top: 0; padding-top: 0; }

.row-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem 1.4rem;
  padding: 1.3rem 0;
  border-top: 1px solid var(--mk-border);
  align-items: start;
}
.row-item:first-child { border-top: 0; padding-top: 0; }
.row-item .index-no {
  font-family: var(--mk-font-display);
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--mk-accent);
  line-height: 1.2;
  padding-top: 0.05rem;
  min-width: 1.8rem;
}
.row-item .row-main { display: grid; gap: 0.35rem; min-width: 0; }
.row-item .kicker {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mk-accent-strong);
  text-decoration: none;
  line-height: 1.2;
  margin-bottom: 0.05rem;
}
.row-item .kicker::before { display: none; }
.row-item .kicker:hover { text-decoration: underline; }
.row-item .row-title { font-size: 1.22rem; font-weight: 700; line-height: 1.28; margin: 0; }
.row-item .row-title a { color: var(--mk-text); text-decoration: none; transition: color 0.18s var(--mk-ease); }
.row-item .row-title a:hover { color: var(--mk-accent-strong); }
.row-item .excerpt { color: var(--mk-muted); font-size: 0.96rem; line-height: 1.55; margin: 0; }
.row-item .row-thumb {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
}
.row-item .row-thumb a { display: block; overflow: hidden; border-radius: 4px; }
.row-item .row-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--mk-surface);
  transition: transform 0.25s var(--mk-ease), opacity 0.2s var(--mk-ease);
}
.row-item .row-thumb a:hover img {
  transform: scale(1.04);
  opacity: 0.94;
}

@media (min-width: 640px) {
  .row-item.has-thumb { grid-template-columns: auto minmax(0, 1fr) 10.5rem; gap: 0.8rem 1.8rem; }
  .row-item .row-thumb { grid-column: 3; grid-row: 1; margin-top: 0; width: 10.5rem; }
  .row-item .row-thumb img { width: 10.5rem; height: 6.8rem; aspect-ratio: 16 / 10; }
}

@media (max-width: 639px) {
  .row-item.has-thumb { grid-template-columns: auto minmax(0, 1fr); }
  .row-item .row-thumb { grid-column: 1 / -1; margin-top: 0.6rem; }
  .row-item .row-thumb img { width: 100%; max-height: 12rem; aspect-ratio: 16 / 9; }
}

/* Ostali prispevki — 2-stolpčni tok na namiznih zaslonih */
@media (min-width: 768px) {
  .more-posts-stream {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(1.8rem, 3vw, 3rem);
  }
  .more-posts-stream .row-item:nth-child(1),
  .more-posts-stream .row-item:nth-child(2) {
    border-top: 0;
    padding-top: 0;
  }
  /* Premium "Featured" izgled za zadnji lihi prispevek (ali edini) */
  .more-posts-stream .row-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 100%;
    margin: 0;
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 4.5rem);
    padding: clamp(1.5rem, 3vw, 3rem) 0;
  }
  .more-posts-stream .row-item:first-child:last-child {
    padding-top: 0.5rem;
  }
  .more-posts-stream .row-item:last-child:nth-child(odd) .index-no {
    display: none;
  }
  .more-posts-stream .row-item:last-child:nth-child(odd) .row-thumb {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
  }
  .more-posts-stream .row-item:last-child:nth-child(odd) .row-main {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }
  .more-posts-stream .row-item:last-child:nth-child(odd) .row-thumb img {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    border-radius: 8px; /* premium občutek */
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  }
  .more-posts-stream .row-item:last-child:nth-child(odd) .row-title {
    font-size: clamp(1.6rem, 1.8vw + 1rem, 2.2rem);
    line-height: 1.15;
  }
  .more-posts-stream .row-item:last-child:nth-child(odd) .excerpt {
    font-size: 1.05rem;
  }
}

/* Rubrike na domaci strani — vsaka s svojim ritmom */
.rubrics { display: grid; gap: clamp(2.6rem, 6vw, 4.5rem); }
.rubric-band { display: grid; gap: 1.6rem; }
@media (min-width: 900px) {
  .rubric-band { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 4vw, 3.4rem); align-items: start; }
  .rubric-band.rubric--flip { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .rubric-band.rubric--flip .rubric-intro { order: 2; }
  .rubric-band.rubric--flip .rubric-posts { order: 1; }
}
.rubric-intro { border-top: 2px solid var(--mk-accent); padding-top: 1rem; display: grid; gap: 0.7rem; align-content: start; }
.rubric-intro .rubric-count { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mk-faint); }
.rubric-intro h3 { font-size: var(--mk-fs-h2); font-weight: 800; letter-spacing: -0.015em; }
.rubric-intro h3 a { color: var(--mk-text); text-decoration: none; }
.rubric-intro h3 a:hover { color: var(--mk-accent-strong); }
.rubric-intro .rubric-desc { color: var(--mk-muted); font-size: 0.97rem; }
.rubric-posts { display: grid; gap: 0; }
.rubric-posts .rubric-feature { display: grid; gap: 0.8rem; padding-bottom: 1.4rem; }
@media (min-width: 700px) {
  .rubric-posts .rubric-feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.6rem; align-items: center; }
}
.rubric-feature .rf-media img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; background: var(--mk-surface); }
.rubric-feature .rf-title { font-size: var(--mk-fs-h3); font-weight: 700; line-height: 1.22; }
.rubric-feature .rf-title a { color: var(--mk-text); text-decoration: none; }
.rubric-feature .rf-title a:hover { color: var(--mk-accent-strong); }
.rubric-feature .excerpt { color: var(--mk-muted); font-size: 0.96rem; }
.rubric-posts .mini-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.8rem 0;
  border-top: 1px solid var(--mk-border);
}
.mini-item .mini-title { font-size: 1.02rem; font-weight: 600; line-height: 1.35; }
.mini-item .mini-title a { color: var(--mk-text); text-decoration: none; }
.mini-item .mini-title a:hover { color: var(--mk-accent-strong); }
.mini-item time { font-size: 0.8rem; color: var(--mk-faint); white-space: nowrap; }
.rubric-more { margin-top: 1rem; }

/* Poglobljen vodnik — temni uredniski pas */
.deep-dive {
  background: var(--mk-dark);
  color: #eef2fa;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-block: clamp(3rem, 6.5vw, 5rem);
}
.deep-dive .container { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) {
  .deep-dive .container { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 5vw, 4.5rem); }
}
.deep-dive .kicker { color: #9db4ff; font-size: 0.76rem; letter-spacing: 0.16em; font-weight: 700; text-transform: uppercase; }
.deep-dive .kicker::before { background: #9db4ff; }
.deep-dive h2, .deep-dive .dd-title {
  font-size: clamp(1.8rem, 1.3rem + 2.2vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  margin-top: 0.8rem;
  margin-bottom: 1rem;
}
.deep-dive .dd-title a { color: #fff; text-decoration: none; transition: color 0.18s var(--mk-ease); }
.deep-dive .dd-title a:hover { color: #b9c8ff; }
.deep-dive .dd-excerpt { color: #aab6cf; font-size: 1.05rem; line-height: 1.6; max-width: 38rem; margin-bottom: 1.2rem; }
.deep-dive .dd-excerpt a { color: #cdd9ff; }
.deep-dive .meta { color: #8f9bb5; }
.deep-dive .text-link { color: #fff; border-color: var(--mk-accent); }
.deep-dive .text-link:hover { color: #b9c8ff; border-color: #b9c8ff; }
.deep-dive .dd-media { position: relative; overflow: hidden; border-radius: 6px; }
.deep-dive .dd-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  background: var(--mk-dark-2);
  transition: transform 0.3s var(--mk-ease), opacity 0.25s var(--mk-ease);
}
.deep-dive .dd-media a:hover img { transform: scale(1.02); opacity: 0.94; }
.deep-dive .flow { color: #263450; max-width: 26rem; }
.deep-dive .flow .flow-accent { color: var(--mk-accent); }

/* Newsletter — diskreten, del uredniskega sistema */
.newsletter {
  margin-top: clamp(3rem, 7vw, 5.5rem);
  border-top: 1px solid var(--mk-text);
  border-bottom: 1px solid var(--mk-border);
  background: var(--mk-surface);
  padding-block: clamp(2rem, 4.5vw, 3.2rem);
}
.newsletter .container { display: grid; gap: 1.2rem; }
@media (min-width: 900px) {
  .newsletter .container { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3rem; align-items: center; }
}
.newsletter h2 { font-size: var(--mk-fs-h3); font-weight: 800; }
.newsletter p { color: var(--mk-muted); font-size: 0.97rem; max-width: 34rem; }
.newsletter .nl-note { font-size: 0.78rem; color: var(--mk-faint); margin-top: 0.5rem; }
.newsletter .nl-message { font-weight: 600; margin-bottom: 0.8rem; }
.newsletter .nl-message.ok { color: #0c7a3d; }
.newsletter .nl-message.err { color: #b4232a; }
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- NOGA ---------- */
.site-footer {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  background: var(--mk-dark);
  color: #c3cde0;
}
.footer-mast {
  border-bottom: 1px solid var(--mk-dark-border);
  padding-block: clamp(2.2rem, 5vw, 3.6rem);
  display: grid;
  gap: 1.4rem;
}
@media (min-width: 900px) {
  .footer-mast { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}
.footer-brand { display: inline-flex; align-items: center; gap: 0.8rem; color: #fff; text-decoration: none; }
.brand.footer-brand .mark-stream { stroke: #8ea6ff; }
.brand.footer-brand .mark-led { fill: #8ea6ff; }
.brand.footer-brand:hover .mark-stream { stroke: #fff; }
.brand.footer-brand:hover .mark-led { fill: #fff; }
.footer-brand .brand-word em { font-style: normal; color: #8ea6ff; }
.footer-tag { max-width: 30rem; color: #93a1bc; font-size: 0.95rem; }
.footer-mast .flow { max-width: 17rem; color: #263450; }
.footer-mast .flow .flow-accent { color: var(--mk-accent); }

.footer-cols {
  display: grid;
  gap: 2rem;
  padding-block: clamp(2rem, 4.5vw, 3rem);
}
@media (min-width: 700px) { .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.footer-cols h2 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6e7c99;
  margin-bottom: 1rem;
}
.footer-cols ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-cols a { color: #c3cde0; text-decoration: none; font-size: 0.96rem; }
.footer-cols a:hover { color: #fff; }
.footer-brand-list a { color: #8ea6ff; }

.footer-base {
  border-top: 1px solid var(--mk-dark-border);
  padding-block: 1.3rem 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #6e7c99;
}
.footer-base a { color: #93a1bc; }

/* ---------- POSAMEZEN CLANEK ---------- */
.article-head { padding-top: clamp(1.4rem, 3vw, 2.4rem); }
.article-head .article-title {
  font-size: var(--mk-fs-h1);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 54rem;
  margin-top: 0.9rem;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.6rem;
  margin-top: 1.4rem;
  padding-block: 1rem;
  border-top: 1px solid var(--mk-border);
  border-bottom: 1px solid var(--mk-border);
  font-size: 0.87rem;
  color: var(--mk-muted);
}
.article-meta .am-author { display: inline-flex; align-items: center; gap: 0.6rem; }
.article-meta .am-author img { width: 2.1rem; height: 2.1rem; border-radius: 50%; }
.article-meta .am-name { color: var(--mk-text); font-weight: 600; text-decoration: none; }
.article-meta .am-name:hover { color: var(--mk-accent); }
.article-meta .am-sep { width: 3px; height: 3px; background: var(--mk-border-strong); flex: none; }
.article-figure { margin-bottom: 2rem; margin-top: 0; }
.article-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--mk-surface);
}
.article-figure figcaption {
  padding-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--mk-faint);
  border-bottom: 1px solid var(--mk-border);
  padding-bottom: 0.7rem;
}

/* Mreza: vsebina + kazalo */
.article-layout { display: grid; gap: 2.5rem; margin-top: clamp(1.8rem, 4vw, 3rem); }
@media (min-width: 1100px) {
  .article-layout { grid-template-columns: minmax(0, var(--mk-reading)) 15rem; gap: 3rem; align-items: start; }
  .article-layout .toc-rail { order: 2; }
  .article-layout .article-body { order: 1; min-width: 0; }
}
.article-body { max-width: var(--mk-reading); min-width: 0; }

/* Kazalo vsebine */
.toc { font-size: 0.88rem; }
.toc-rail { display: none; }
@media (min-width: 1100px) {
  .toc-rail { display: block; position: sticky; top: 2rem; }
}
.toc .toc-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mk-faint);
  margin-bottom: 0.8rem;
  display: block;
}
.toc ol { list-style: none; display: grid; }
.toc li { border-left: 2px solid var(--mk-border); }
.toc li.toc-h3 { padding-left: 1rem; }
.toc a {
  display: block;
  padding: 0.34rem 0 0.34rem 0.9rem;
  color: var(--mk-muted);
  text-decoration: none;
  line-height: 1.4;
}
.toc a:hover { color: var(--mk-text); }
.toc li.is-active { border-left-color: var(--mk-accent); }
.toc li.is-active > a { color: var(--mk-text); font-weight: 600; }
.toc-mobile { border: 1px solid var(--mk-border); background: var(--mk-surface); margin-bottom: 2rem; }
.toc-mobile summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.92rem;
}
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary .icon { transition: transform 0.2s var(--mk-ease); }
.toc-mobile[open] summary .icon { transform: rotate(180deg); }
.toc-mobile .toc-body { padding: 0 1rem 1rem; }
.toc-mobile .toc-body ol { list-style: none; display: grid; gap: 0.15rem; }
.toc-mobile .toc-body a { color: var(--mk-muted); text-decoration: none; padding: 0.25rem 0 0.25rem 0.9rem; display: block; }
.toc-mobile .toc-body a:hover { color: var(--mk-text); }
.toc-mobile .toc-h3 { padding-left: 1rem; }
@media (min-width: 1100px) { .toc-mobile { display: none; } }

/* ---------- VSEBINA CLANKA (Gutenberg) ---------- */
.entry-content { font-size: 1.075rem; line-height: 1.78; overflow-wrap: break-word; word-wrap: break-word; }
.entry-content > * { margin-block: 0 1.5em; }
.entry-content > p.lead-text {
  font-size: var(--mk-fs-lead);
  line-height: 1.62;
  color: var(--mk-text);
}
.entry-content h2 {
  font-size: var(--mk-fs-h2);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  scroll-margin-top: 5rem;
}
.entry-content h3 { font-size: var(--mk-fs-h3); margin-top: 1.4em; margin-bottom: 0.5em; scroll-margin-top: 5rem; }
.entry-content h4 { font-size: 1.15rem; margin-top: 1.3em; margin-bottom: 0.5em; }
.entry-content h2 + h3 { margin-top: 0.6em; }
.entry-content a { font-weight: 500; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; display: grid; gap: 0.45em; }
.entry-content li::marker { color: var(--mk-accent); font-weight: 700; }
.entry-content li > ul, .entry-content li > ol { margin-top: 0.45em; }
.entry-content dl dt { font-weight: 700; margin-top: 0.9em; }
.entry-content dl dd { margin-left: 0; color: var(--mk-muted); }
.entry-content code, .entry-content kbd, .entry-content samp {
  font-family: Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.86em;
  background: var(--mk-surface-2);
  padding: 0.12em 0.4em;
}
.entry-content pre {
  background: var(--mk-dark);
  color: #dbe4f5;
  padding: 1.2rem 1.4rem;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.6;
}
.entry-content pre code { background: none; padding: 0; color: inherit; }
.entry-content hr { margin-block: 2.6em; border-top: 1px solid var(--mk-border-strong); }
.entry-content mark { background: var(--mk-accent-soft); color: inherit; padding: 0 0.15em; }

/* Blockquote — uredniški poudarek / izpostavljen okvir */
.entry-content blockquote, .wp-block-quote {
  border: 0;
  border-left: 3.5px solid var(--mk-accent);
  background: var(--mk-surface);
  margin: 2.2em 0;
  padding: 1.4rem 1.6rem;
  position: relative;
  border-radius: 0 4px 4px 0;
}

/* Naslovi znotraj citata/okvirja (h1, h2, h3, h4) */
.entry-content blockquote h1,
.entry-content blockquote h2,
.entry-content blockquote h3,
.entry-content blockquote h4,
.wp-block-quote h1,
.wp-block-quote h2,
.wp-block-quote h3,
.wp-block-quote h4 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-size: clamp(1.18rem, 1.05rem + 0.6vw, 1.4rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--mk-text);
  scroll-margin-top: 5rem;
}

/* Odstavki znotraj citata/okvirja */
.entry-content blockquote p, .wp-block-quote p {
  font-family: var(--mk-font-body);
  font-size: 1.02rem;
  line-height: 1.62;
  color: var(--mk-muted);
  margin-bottom: 0.6rem;
}
.entry-content blockquote p:last-child, .wp-block-quote p:last-child {
  margin-bottom: 0;
}

/* Če vsebuje le en odstavek brez naslova (klasični citat) */
.entry-content blockquote:not(:has(h1,h2,h3,h4)) p:only-of-type,
.wp-block-quote:not(:has(h1,h2,h3,h4)) p:only-of-type {
  font-family: var(--mk-font-display);
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--mk-text);
}

.entry-content blockquote cite, .wp-block-quote cite {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--mk-font-body);
  font-style: normal;
  font-size: 0.84rem;
  color: var(--mk-faint);
  font-weight: 600;
}
.wp-block-pullquote {
  border-top: 1px solid var(--mk-text);
  border-bottom: 1px solid var(--mk-text);
  padding: 2rem 0;
  margin: 2.6em 0;
  text-align: left;
}
.wp-block-pullquote blockquote { border: 0; margin: 0; padding: 0; }
.wp-block-pullquote p { font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.7rem); }

/* Slike / figure */
.entry-content figure, .wp-block-image { margin-block: 2.2em; }
.entry-content img { height: auto; }
.wp-block-image img, .entry-content figure img { width: 100%; }
.wp-block-image figcaption, .entry-content figcaption, .wp-block-gallery figcaption {
  font-size: 0.82rem;
  color: var(--mk-faint);
  padding-top: 0.55rem;
  text-align: left;
}
.blocks-gallery-grid, .wp-block-gallery { display: grid; gap: 0.6rem; }
.wp-block-gallery .blocks-gallery-item figcaption { font-size: 0.78rem; }

/* Kljucni poudarki */
.key-takeaways {
  border: 1px solid var(--mk-border-strong);
  border-top: 2px solid var(--mk-accent);
  background: var(--mk-surface);
  padding: 1.5rem 1.6rem 1.2rem;
  margin: 2.2em 0;
}
.key-takeaways .kt-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mk-accent-strong);
  margin-bottom: 0.9rem;
}
.key-takeaways ul { list-style: none; padding: 0; display: grid; gap: 0.6em; }
.key-takeaways li { padding-left: 1.5em; position: relative; }
.key-takeaways li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 0.8em; height: 2px;
  background: var(--mk-accent);
}

/* Strokovno opozorilo */
.pro-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  border-left: 2px solid var(--mk-accent);
  background: var(--mk-surface);
  padding: 1rem 1.2rem;
  font-size: 0.88rem;
  color: var(--mk-muted);
  margin: 2.2em 0;
}
.pro-note .icon { color: var(--mk-accent); width: 1.3rem; height: 1.3rem; margin-top: 0.1em; }
.pro-note strong { color: var(--mk-text); }

/* Podatkovna figura (CSS) */
.data-figure { border-top: 1px solid var(--mk-text); padding-top: 1.1rem; margin: 2.4em 0; }
.data-figure .df-row { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) auto; gap: 0.9rem; align-items: center; padding: 0.45rem 0; font-size: 0.9rem; }
.data-figure .df-label { color: var(--mk-muted); }
.data-figure .df-bar { height: 0.55rem; background: var(--mk-surface-2); position: relative; }
.data-figure .df-bar i { position: absolute; inset: 0 auto 0 0; background: var(--mk-accent); display: block; }
.data-figure .df-val { font-variant-numeric: tabular-nums; font-weight: 600; }
.data-figure figcaption { border-top: 1px solid var(--mk-border); margin-top: 0.8rem; padding-top: 0.6rem; }

/* Tabele — premium + responsive */
.mk-table-wrap {
  margin: 2.2em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--mk-text);
  background:
    linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) left local,
    linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) right local,
    linear-gradient(to right, rgba(15,20,27,0.12), rgba(15,20,27,0)) left scroll,
    linear-gradient(to left, rgba(15,20,27,0.12), rgba(15,20,27,0)) right scroll;
  background-repeat: no-repeat;
  background-size: 2.4rem 100%, 2.4rem 100%, 0.9rem 100%, 0.9rem 100%;
}
.entry-content table, .wp-block-table table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.5;
}
.entry-content caption, .wp-block-table caption {
  text-align: left;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mk-faint);
  padding: 0.7rem 0 0.9rem;
  caption-side: top;
}
.entry-content th, .entry-content td, .wp-block-table th, .wp-block-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 1rem 0.7rem 0;
  border-bottom: 1px solid var(--mk-border);
}
.entry-content thead th, .wp-block-table thead th {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mk-muted);
  border-bottom: 1px solid var(--mk-text);
  white-space: nowrap;
}
.entry-content tbody th, .wp-block-table tbody th { font-weight: 600; }
.entry-content tfoot td, .wp-block-table tfoot td { border-bottom: 0; border-top: 1px solid var(--mk-text); font-weight: 600; }
.entry-content td[data-num], .wp-block-table td[data-num] { text-align: right; font-variant-numeric: tabular-nums; }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--mk-surface); }
.wp-block-table.is-style-stripes td, .wp-block-table.is-style-stripes th { padding-left: 0.7rem; }

/* Gutenberg Buttons / Columns / Embed / Separator */
.wp-block-button__link {
  background: var(--mk-text);
  color: #fff;
  border-radius: 0;
  padding: 0.78em 1.35em;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s var(--mk-ease);
}
.wp-block-button__link:hover { background: var(--mk-accent); color: #fff; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--mk-text); border: 1px solid var(--mk-text); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--mk-text); color: #fff; }
.wp-block-columns { gap: 2rem; }
.wp-block-embed iframe { width: 100%; }
.wp-block-separator { border-top: 1px solid var(--mk-border-strong); margin-block: 2.6em; }
.alignwide { max-width: var(--mk-container); }

/* Oznake pod clankom */
.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin-top: 2.5rem; font-size: 0.85rem; }
.article-tags .tags-label { color: var(--mk-faint); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.74rem; font-weight: 700; padding-top: 0.2em; }
.article-tags a { color: var(--mk-text); text-decoration: none; border-bottom: 1px solid var(--mk-border-strong); padding-bottom: 0.1em; }
.article-tags a:hover { color: var(--mk-accent); border-color: var(--mk-accent); }

/* Avtorjev blok */
.author-box {
  margin-top: 3rem;
  border-top: 2px solid var(--mk-text);
  padding-top: 1.6rem;
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 700px) { .author-box { grid-template-columns: auto minmax(0, 1fr); gap: 1.6rem; } }
.author-box .ab-avatar img { width: 4.6rem; height: 4.6rem; object-fit: cover; }
.author-box .ab-avatar .ab-initial {
  width: 4.6rem; height: 4.6rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--mk-dark); color: #fff;
  font-family: var(--mk-font-display); font-weight: 800; font-size: 1.6rem;
}
.author-box .ab-role { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mk-accent-strong); font-weight: 700; }
.author-box .ab-name { font-family: var(--mk-font-display); font-size: 1.3rem; font-weight: 800; margin-top: 0.2rem; }
.author-box .ab-name a { color: var(--mk-text); text-decoration: none; }
.author-box .ab-name a:hover { color: var(--mk-accent-strong); }
.author-box .ab-bio { color: var(--mk-muted); font-size: 0.95rem; margin-top: 0.5rem; max-width: 40rem; }
.author-box .ab-link { margin-top: 0.7rem; display: inline-block; }

/* Sorodni clanki */
.related { margin-top: clamp(3rem, 6vw, 4.5rem); }
.related .section-head { margin-bottom: clamp(1.5rem, 3vw, 2.2rem); }

/* Komentarji */
.comments-area { margin-top: 3.5rem; border-top: 1px solid var(--mk-text); padding-top: 2rem; }
.comments-title { font-size: var(--mk-fs-h3); font-weight: 800; }
.comment-list { list-style: none; margin-top: 1.8rem; display: grid; gap: 1.8rem; }
.comment-list .children { list-style: none; margin-top: 1.6rem; padding-left: 1.4rem; border-left: 1px solid var(--mk-border); display: grid; gap: 1.6rem; }
.comment-body { display: grid; gap: 0.5rem; }
.comment-meta { display: flex; align-items: center; gap: 0.8rem; font-size: 0.85rem; flex-wrap: wrap; }
.comment-meta img { width: 2.4rem; height: 2.4rem; }
.comment-meta .fn { font-weight: 700; color: var(--mk-text); }
.comment-meta time { color: var(--mk-faint); }
.comment-content p { margin: 0 0 0.8em; }
.comment-reply-link, .comment-edit-link { font-size: 0.82rem; font-weight: 600; }
.comment-respond { margin-top: 2.6rem; }
.comment-respond .comment-reply-title { font-size: var(--mk-fs-h3); font-weight: 800; }
.comment-form { display: grid; gap: 1.1rem; margin-top: 1.4rem; max-width: 40rem; }
.comment-form p { margin: 0; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%;
  border: 1px solid var(--mk-border-strong);
  padding: 0.75em 0.9em;
  background: #fff;
  color: var(--mk-text);
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--mk-accent); }
.comment-form .comment-form-cookies-consent { display: flex; gap: 0.6rem; align-items: baseline; font-size: 0.85rem; color: var(--mk-muted); }
.comment-form .comment-form-cookies-consent input { width: auto; }
.comment-notes, .logged-in-as { font-size: 0.85rem; color: var(--mk-muted); }

/* ---------- ARHIVI ---------- */
.archive-head { padding-top: clamp(1.6rem, 3.5vw, 2.8rem); }
.archive-head .archive-title { font-size: var(--mk-fs-h1); font-weight: 800; letter-spacing: -0.02em; margin-top: 0.8rem; }
.archive-head .archive-desc { color: var(--mk-muted); max-width: 44rem; margin-top: 0.9rem; font-size: 1.02rem; }
.archive-head .archive-count { margin-top: 1rem; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mk-faint); }
.archive-head .flow { margin-top: 1.4rem; max-width: 20rem; }
.archive-list { margin-top: clamp(1.8rem, 4vw, 3rem); }
.archive-list .lead-item { padding-bottom: 2.2rem; border-bottom: 1px solid var(--mk-border); margin-bottom: 0.4rem; }
@media (min-width: 900px) {
  .archive-list .lead-item { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.4rem; align-items: center; }
  .archive-list .lead-item .lead-media { order: 2; }
  .archive-list .lead-item .lead-body { order: 1; }
}
.archive-list .lead-item .lead-title { font-size: var(--mk-fs-h2); }
.archive-list .lead-item + .row-item { border-top: 0; }

/* Author arhiv */
.author-head { display: grid; gap: 1.2rem; }
@media (min-width: 700px) { .author-head { grid-template-columns: auto minmax(0, 1fr); gap: 1.8rem; align-items: center; } }
.author-head img, .author-head .ab-initial { width: 5.2rem; height: 5.2rem; }
.author-head .ab-initial { display: flex; align-items: center; justify-content: center; background: var(--mk-dark); color: #fff; font-family: var(--mk-font-display); font-weight: 800; font-size: 1.8rem; }

/* ---------- PAGINATION ---------- */
.pagination-wrap { margin-top: clamp(2.2rem, 5vw, 3.4rem); border-top: 1px solid var(--mk-text); padding-top: 1.4rem; }
.pagination-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.pagination-nav .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem; height: 2.6rem;
  padding: 0 0.6rem;
  color: var(--mk-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: border-color 0.16s var(--mk-ease), color 0.16s var(--mk-ease);
}
.pagination-nav a.page-numbers:hover { border-color: var(--mk-border-strong); color: var(--mk-accent); }
.pagination-nav .page-numbers.current { border-color: var(--mk-text); background: var(--mk-text); color: #fff; }
.pagination-nav .page-numbers.dots { border: 0; color: var(--mk-faint); }
.pagination-nav .page-numbers.prev, .pagination-nav .page-numbers.next { gap: 0.45em; }
.pagination-info { margin-left: auto; font-size: 0.8rem; color: var(--mk-faint); }

/* ---------- ISKANJE / 404 / PRAZNA STANJA ---------- */
.search-summary { color: var(--mk-muted); margin-top: 0.9rem; }
.empty-state {
  border-top: 1px solid var(--mk-text);
  padding-top: 2rem;
  margin-top: 2rem;
  display: grid;
  gap: 1.3rem;
  max-width: 44rem;
}
.empty-state h2 { font-size: var(--mk-fs-h3); }
.empty-state p { color: var(--mk-muted); }
.empty-links { display: grid; border-top: 1px solid var(--mk-border); }
.empty-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--mk-border);
  color: var(--mk-text);
  text-decoration: none;
  font-weight: 600;
}
.empty-links a:hover { color: var(--mk-accent); }
.empty-links a .icon { color: var(--mk-faint); }

.error-404 { padding-top: clamp(2.5rem, 6vw, 5rem); }
.error-404 .e404-code {
  font-family: var(--mk-font-display);
  font-weight: 800;
  font-size: clamp(5.5rem, 3rem + 16vw, 13rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--mk-text);
}
.error-404 .e404-code span { color: var(--mk-accent); }
.error-404 .flow { max-width: 24rem; margin-top: 1.6rem; }
.error-404 .e404-text { color: var(--mk-muted); max-width: 34rem; margin-top: 1.4rem; font-size: 1.05rem; }
.error-404 .search-form { margin-top: 1.8rem; }
.error-404 .empty-links { margin-top: 2rem; max-width: 34rem; }

/* ---------- STRAN (page) ---------- */
.page-head { padding-top: clamp(1.6rem, 3.5vw, 2.8rem); }
.page-head .page-title { font-size: var(--mk-fs-h1); font-weight: 800; letter-spacing: -0.02em; }

/* ---------- REVEAL / MOTION ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--mk-ease), transform 0.5s var(--mk-ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Widgeti (minimalno) ---------- */
.widget { font-size: 0.95rem; }
.widget ul { list-style: none; display: grid; gap: 0.4rem; }
.widget-title { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mk-faint); }

/* WordPress core razredi */
.alignleft { float: left; margin-right: 1.4rem; margin-bottom: 1rem; max-width: 50%; }
.alignright { float: right; margin-left: 1.4rem; margin-bottom: 1rem; max-width: 50%; }
.aligncenter { margin-inline: auto; display: block; }
.wp-caption { max-width: 100%; }
.sticky-post-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mk-accent-strong);
}
.bypostauthor { /* ohranja WP zahtevo */ }

/* Kazalo: skrij prazno letev, ce JS ni zgradil seznama */
.toc-rail:not(:has(li)) { display: none; }
