/* =================================================================
   DPI Maribor — Drustvo za prometno infrastrukturo Maribor
   Oblikovni sistem: "inzenirski editorial"
   ================================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ---------- Tokens ---------- */
:root {
  --blue:       #1391ce;
  --blue-deep:  #0c6f9f;
  --blue-soft:  #e3f1f9;
  --navy:       #0c2230;
  --navy-700:   #143140;
  --navy-600:   #1c4256;
  --ink:        #16242c;
  --slate:      #586b75;
  --slate-300:  #8a999f;
  --line:       #dde2e2;
  --line-dark:  rgba(255,255,255,.14);
  --paper:      #f5f3ee;
  --paper-2:    #ece9e1;
  --white:      #ffffff;

  --font-display: 'Bricolage Grotesque', Georgia, serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1240px;
  --gut: clamp(1.25rem, 4vw, 3.5rem);
  --radius: 4px;

  --shadow-sm: 0 1px 2px rgba(12,34,48,.06), 0 2px 8px rgba(12,34,48,.05);
  --shadow-md: 0 14px 40px -18px rgba(12,34,48,.35);
  --shadow-lg: 0 40px 80px -30px rgba(12,34,48,.45);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.02em;
  color: var(--navy);
}

p { max-width: 68ch; }
strong { font-weight: 600; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue-deep);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--blue);
  display: inline-block;
}
.eyebrow--light { color: var(--blue); }

/* ---------- Section heading ---------- */
.s-head { max-width: 60ch; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.s-head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-top: 1rem; }
.s-head p { color: var(--slate); margin-top: 1.1rem; font-size: 1.12rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--font-mono);
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  padding: .95rem 1.6rem;
  border-radius: var(--radius);
  transition: transform .35s var(--ease), background .25s, color .25s, box-shadow .35s;
  position: relative;
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px -10px rgba(19,145,206,.7); }
.btn--primary:hover { background: var(--blue-deep); transform: translateY(-2px); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost { border: 1px solid var(--line); color: var(--navy); }
.btn--ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline-light { border: 1px solid var(--line-dark); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,243,238,.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, background .3s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(245,243,238,.95); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a {
  font-size: .94rem; font-weight: 500; color: var(--navy);
  padding: .55rem .9rem; border-radius: var(--radius);
  position: relative; transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .35rem;
  height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--blue-deep); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.lang-switch { display: inline-flex; align-items: center; justify-content: center; height: 38px; min-width: 40px; padding: 0 .72rem; border: 1px solid var(--line); border-radius: var(--radius); font: 600 .8rem/1 var(--font-mono); letter-spacing: .06em; color: var(--navy); text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.lang-switch:hover { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-deep); }
.lang-switch:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 2px; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 300; background: var(--blue); color: #fff; padding: .65rem 1.1rem; border-radius: var(--radius); font: 600 .9rem/1 var(--font-body); text-decoration: none; transition: top .2s var(--ease); }
.skip-link:focus { top: 8px; outline: 3px solid var(--white); outline-offset: 2px; }
.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(3rem, 6vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 5.3rem); letter-spacing: -.035em; }
.hero h1 .accent { color: var(--blue); }
.hero-lead { color: var(--slate); font-size: clamp(1.05rem, 1.6vw, 1.28rem); margin-top: 1.6rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero-since { margin-top: 3rem; display: flex; align-items: center; gap: 1.4rem; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.hero-since b { font-family: var(--font-display); font-size: 2.6rem; color: var(--navy); letter-spacing: -.02em; white-space: nowrap; }

.hero-media { position: relative; }
.hero-media .frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4/5;
}
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .tag {
  position: absolute; left: -1px; bottom: 1.4rem; background: var(--navy); color: #fff;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .7rem 1.1rem; display: flex; align-items: center; gap: .6rem;
}
.hero-media .tag i { width: 7px; height: 7px; background: var(--blue); border-radius: 50%; }

/* decorative arc (bridge motif) */
.arc {
  position: absolute; top: -40px; right: -40px; width: 60%; max-width: 520px; height: auto;
  color: var(--blue); opacity: .16; pointer-events: none; z-index: -1;
}

/* blueprint grid backdrop */
.blueprint {
  position: absolute; inset: 0; pointer-events: none; z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 80% at 80% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(120% 80% at 80% 0%, #000 0%, transparent 70%);
  opacity: .55;
  animation: grid-pan 42s linear infinite;
}
@keyframes grid-pan {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 64px 64px, 64px 64px; }
}

/* ---------- Inženirske silhuete (parallax ozadje) ---------- */
.hero, .page-hero { position: relative; }
.hero::before, .hero::after,
.page-hero::before, .page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  pointer-events: none; z-index: -1; background: var(--navy);
  -webkit-mask: url("../img/skyline.svg") repeat-x bottom;
          mask: url("../img/skyline.svg") repeat-x bottom;
}
/* zadnja plast: večja, svetlejša, počasnejša */
.hero::before, .page-hero::before {
  height: clamp(150px, 24vw, 300px); opacity: .035;
  -webkit-mask-size: 1500px 100%; mask-size: 1500px 100%;
  animation: skyline-back 120s linear infinite;
}
/* sprednja plast: ostrejša, hitrejša */
.hero::after, .page-hero::after {
  height: clamp(120px, 19vw, 240px); opacity: .07;
  -webkit-mask-size: 1100px 100%; mask-size: 1100px 100%;
  animation: skyline-front 75s linear infinite;
}
/* članek ima nizek hero, silhueto skrijemo */
.page-hero--article::before, .page-hero--article::after { display: none; }

@keyframes skyline-front {
  from { -webkit-mask-position: 0 bottom; mask-position: 0 bottom; }
  to   { -webkit-mask-position: -1100px bottom; mask-position: -1100px bottom; }
}
@keyframes skyline-back {
  from { -webkit-mask-position: 0 bottom; mask-position: 0 bottom; }
  to   { -webkit-mask-position: 1500px bottom; mask-position: 1500px bottom; }
}

/* silhueta v nogi (svetla na temnem) */
.site-footer { position: relative; overflow: hidden; }
.site-footer > .wrap { position: relative; z-index: 1; }
.site-footer::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 0;
  height: clamp(110px, 16vw, 200px); pointer-events: none;
  background: #9fc4dd; opacity: .07;
  -webkit-mask: url("../img/skyline.svg") repeat-x bottom;
          mask: url("../img/skyline.svg") repeat-x bottom;
  -webkit-mask-size: 1200px 100%; mask-size: 1200px 100%;
  animation: skyline-front 95s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .blueprint,
  .hero::before, .hero::after,
  .page-hero::before, .page-hero::after,
  .site-footer::after { animation: none; }
}

/* ---------- Activity cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem 1.9rem; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card .num { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; color: var(--slate-300); }
.card .ic { width: 46px; height: 46px; color: var(--blue); margin: 1.2rem 0 1.3rem; }
.card .ic svg { width: 100%; height: 100%; }
.card h3 { font-size: 1.4rem; }
.card p { color: var(--slate); font-size: .98rem; margin-top: .7rem; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 5/4; position: relative; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.split-body p { color: var(--slate); margin-top: 1.2rem; }
.tagline { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--blue-deep); margin-top: 1.4rem; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--paper); padding: 2.2rem 1.6rem; }
.stat b { display: block; white-space: nowrap; font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--navy); letter-spacing: -.03em; line-height: 1; }
.stat span { display: block; margin-top: .6rem; font-size: .9rem; color: var(--slate); }
.stat b .u { color: var(--blue); font-size: 1.3em; font-weight: 700; vertical-align: -0.02em; margin-left: .02em; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.post {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s;
}
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-media { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover .post-media img { transform: scale(1.05); }
.post-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.post .date { font-family: var(--font-mono); font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-deep); }
.post h3 { font-size: 1.2rem; margin: .7rem 0 .8rem; line-height: 1.18; }
.post p { font-size: .93rem; color: var(--slate); }
.post .more { margin-top: auto; padding-top: 1.1rem; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); display: inline-flex; gap: .5rem; align-items: center; }
.post:hover .more { color: var(--blue-deep); }
.post-media.placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy), var(--navy-600)); position: relative; overflow: hidden; }
.post-media.placeholder::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px); background-size: 32px 32px; opacity: .6; }
.post-media.placeholder span { position: relative; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.85); z-index: 1; }
.post-tag { position: absolute; top: .9rem; left: .9rem; z-index: 2; background: rgba(12,34,48,.82); color: #fff; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 2px; }
.post-media { position: relative; }

/* ---------- Dark section ---------- */
.dark { background: var(--navy); color: #d6e2e9; position: relative; overflow: hidden; }
.dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: var(--blue); }
.dark p { color: #9fb4c0; }
.dark .blueprint { background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px); opacity: 1; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); }
.contact-list { display: grid; gap: 1.4rem; margin-top: 2rem; }
.contact-list .row { display: flex; gap: 1rem; align-items: flex-start; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line-dark); }
.contact-list .ic { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; margin-top: .2rem; }
.contact-list .k { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-300); }
.contact-list .v { color: #fff; font-size: 1.05rem; }
.contact-list a.v:hover { color: var(--blue); }

.form { display: grid; gap: 1.1rem; }
.form .field { display: grid; gap: .5rem; }
.form label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-300); }
.form input, .form textarea {
  background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: .9rem 1rem; color: #fff; font: inherit; font-size: .98rem; transition: border-color .2s, background .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: rgba(255,255,255,.08); }
.form textarea { resize: vertical; min-height: 130px; }
.form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: .6rem; }
.form legend { padding: 0; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-300); }
.form .radio-row { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.form .radio, .form .checkbox { display: flex; gap: .55rem; align-items: center; cursor: pointer; color: var(--slate); font-size: .95rem; }
.form .checkbox { align-items: flex-start; line-height: 1.45; }
.form .radio input, .form .checkbox input {
  width: 18px; height: 18px; flex-shrink: 0; margin: 0; padding: 0; border-radius: 4px;
  accent-color: var(--blue); background: none;
}
.form .checkbox input { margin-top: .15rem; }
.form .form-note { margin: 0; min-height: 1.3em; font-size: .94rem; line-height: 1.5; }
.form .form-note.is-ok { color: #58d0a0; }
.form .form-note.is-err { color: #ff9d8c; }
.form button[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
@media (max-width: 520px) { .form .form-row { grid-template-columns: 1fr; } }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); position: relative; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin-top: 1rem; }
.page-hero p { color: var(--slate); font-size: 1.18rem; margin-top: 1.3rem; }
.crumbs { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-300); display: flex; gap: .6rem; }
.crumbs a:hover { color: var(--blue-deep); }

/* ---------- Prose ---------- */
.prose h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 2.6rem 0 1rem; }
.prose h3 { font-size: 1.3rem; margin: 2rem 0 .8rem; color: var(--blue-deep); }
.prose p { color: var(--slate); margin-bottom: 1.1rem; }
.prose ul.ticks { display: grid; gap: .85rem; margin: 1.2rem 0 1.6rem; }
.prose ul.ticks li { position: relative; padding-left: 2rem; color: var(--ink); }
.prose ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 11px; height: 11px;
  border: 2px solid var(--blue); border-radius: 2px;
}
.layout-2 { display: grid; grid-template-columns: 1fr 320px; gap: clamp(2rem,5vw,4rem); align-items: start; }
.aside-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; position: sticky; top: 110px; }
.aside-card h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.aside-card .kv { display: grid; gap: .9rem; }
.aside-card .kv .k { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-300); }
.aside-card .kv .v { color: var(--ink); font-size: .98rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 1.5rem; border-left: 2px solid var(--line); padding-left: 2rem; display: grid; gap: 1.8rem; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: calc(-2rem - 6px); top: .4em; width: 11px; height: 11px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--paper); }
.tl-item .yr { font-family: var(--font-mono); font-weight: 600; color: var(--blue-deep); font-size: .92rem; letter-spacing: .04em; }
.tl-item .txt { color: var(--slate); margin-top: .15rem; }

/* ---------- Portfolio (kaj-delamo) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.filter {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .6rem 1.1rem; border: 1px solid var(--line); border-radius: 100px; color: var(--slate);
  transition: all .25s;
}
.filter:hover { border-color: var(--navy); color: var(--navy); }
.filter.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.pf {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.pf:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pf .yr { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; color: var(--blue-deep); }
.pf .kind { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-300); margin-top: auto; }
.pf h3 { font-size: 1.08rem; line-height: 1.22; }
.pf.is-hidden { display: none; }

/* Galerija — pregled */
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.gal-card { display: flex; flex-direction: column; transition: transform .4s var(--ease); }
.gal-card:hover { transform: translateY(-5px); }
.gal-cover { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); }
.gal-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gal-card:hover .gal-cover img { transform: scale(1.06); }
.gal-count { position: absolute; bottom: .7rem; right: .7rem; background: rgba(12,34,48,.82); color: #fff; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; padding: .3rem .6rem; border-radius: 2px; }
.gal-meta { display: flex; gap: .8rem; align-items: center; margin: .95rem 0 .35rem; }
.gal-card .yr { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; color: var(--blue-deep); }
.gal-card .kind { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-300); }
.gal-card h3 { font-size: 1.05rem; line-height: 1.25; }
.gal-card.is-hidden { display: none; }

/* Galerija — posamezna stran */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.ph { display: block; aspect-ratio: 1/1; border-radius: calc(var(--radius) - 4px); overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); cursor: zoom-in; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ph:hover img { transform: scale(1.07); }
.photo-grid .ph.is-hidden { display: none; }

/* Galerija — paginacija */
.gal-pager { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: center; margin-top: clamp(1.8rem, 4vw, 2.6rem); }
.gal-pager button { min-width: 42px; height: 42px; padding: 0 .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--navy); font: 600 .85rem/1 var(--font-mono); letter-spacing: .04em; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.gal-pager button:hover:not(:disabled) { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-deep); }
.gal-pager button[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.gal-pager button:disabled { opacity: .4; cursor: default; }
.gal-pager button:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 2px; }
.gal-pager .gal-pager-info { font: 500 .8rem/1 var(--font-mono); color: var(--slate); margin: 0 .3rem; }

.back-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: 2.6rem; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); transition: color .3s; }
.back-link:hover { color: var(--blue-deep); }

/* Novica — članek */
.page-hero--article { padding-bottom: clamp(1.4rem, 3vw, 2.4rem); }
.article { max-width: 760px; margin: 0 auto; }
.article-media { border-radius: var(--radius); overflow: hidden; margin-bottom: 2.4rem; background: var(--paper-2); border: 1px solid var(--line); }
.article-media img { width: 100%; height: auto; display: block; }
.article-body { font-size: 1.06rem; line-height: 1.75; color: var(--slate); }
.article-body p { margin-bottom: 1.2rem; }
.article-body p:last-child { margin-bottom: 0; }
.article-body a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.doc-list { margin-top: 2.2rem; display: flex; flex-direction: column; gap: .7rem; }
.doc { display: inline-flex; align-items: center; gap: .7rem; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-family: var(--font-mono); font-size: .85rem; transition: border-color .3s, transform .3s; }
.doc:hover { border-color: var(--navy); transform: translateY(-2px); color: var(--blue-deep); }
.doc svg { flex: none; color: var(--blue-deep); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,20,28,.94); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease); }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-btn { position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 1.4rem; right: 1.4rem; }
.lb-prev { left: 1.4rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.4rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; }
@media (max-width: 600px) { .lb-btn { width: 42px; height: 42px; } .lb-prev { left: .6rem; } .lb-next { right: .6rem; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--blue); color: #fff; border-radius: var(--radius); padding: clamp(2.5rem,5vw,4rem); display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem,3.5vw,2.6rem); max-width: 20ch; }
.cta-band .arc { color: #fff; opacity: .2; top: auto; bottom: -60px; right: -30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #9fb4c0; padding-top: clamp(3.5rem,6vw,5rem); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-dark); }
.site-footer .flogo { height: 50px; width: auto; background: #fff; padding: .55rem .7rem; border-radius: var(--radius); }
.site-footer h4 { color: #fff; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; margin-bottom: 1.2rem; }
.footer-links { display: grid; gap: .7rem; }
.footer-links a:hover { color: var(--blue); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding-block: 1.8rem; font-size: .85rem; font-family: var(--font-mono); letter-spacing: .04em; }
.footer-bottom a:hover { color: var(--blue); }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 420px; }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; max-width: 560px; }
  .contact-grid { grid-template-columns: 1fr; }
  .layout-2 { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { position: fixed; inset: 84px 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 1.2rem var(--gut) 2rem; transform: translateY(-110%); transition: transform .4s var(--ease); z-index: 99; box-shadow: var(--shadow-md); }
  .mobile-menu.is-open { transform: translateY(0); }
  .mobile-menu a { display: block; padding: 1rem .2rem; font-size: 1.15rem; font-weight: 500; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { display: inline-flex; margin-top: 1.4rem; }
}
@media (max-width: 760px) {
  .cards, .news-grid, .pf-grid { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero-since { flex-wrap: wrap; }
  .gal-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
}
.mobile-menu { display: none; }
@media (max-width: 860px) { .mobile-menu { display: block; } }

/* ===== POSVETI: kazalo ===== */
.pv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.pv-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
}
.pv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.pv-cover { position: relative; aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--navy-600)); }
.pv-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pv-card:hover .pv-cover img { transform: scale(1.05); }
.pv-year {
  position: absolute; left: 0; bottom: .9rem; background: var(--blue-deep); color: #fff;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 600; letter-spacing: .1em;
  padding: .4rem .85rem; border-radius: 0 2px 2px 0;
}
.pv-body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.pv-date { font-family: var(--font-mono); font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-300); }
.pv-body h3 { font-size: 1.12rem; line-height: 1.3; color: var(--navy); }
.pv-count { margin-top: auto; padding-top: .8rem; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-deep); }

/* ===== POSVET: referati + vgrajen PDF pregledovalnik ===== */
.talk-list { display: flex; flex-direction: column; gap: 1.4rem; max-width: 880px; }
.talk { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.8rem; }
.talk-info h3 { font-size: 1.18rem; line-height: 1.35; color: var(--navy); letter-spacing: -.01em; }
.talk-speakers { margin-top: .6rem; color: var(--slate); font-size: .96rem; line-height: 1.6; }
.talk-decks { margin-top: 1.3rem; display: flex; flex-direction: column; gap: .8rem; }

.deck { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.deck-head {
  width: 100%; display: flex; align-items: center; gap: 1rem; padding: .7rem .9rem;
  background: var(--paper); border: 0; cursor: pointer; text-align: left;
  transition: background .25s;
}
.deck-head:hover { background: var(--paper-2); }
.deck-thumb {
  flex: 0 0 auto; width: 76px; height: 52px; border-radius: 3px; overflow: hidden;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
}
.deck-thumb img { width: 100%; height: 100%; object-fit: cover; }
.deck-thumb svg { width: 22px; height: 22px; color: rgba(255,255,255,.7); }
.deck-label { flex: 1; display: flex; flex-direction: column; gap: .2rem; font-weight: 600; color: var(--navy); font-size: .98rem; }
.deck-label small { font-family: var(--font-mono); font-size: .68rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-300); }
.deck-chev { flex: 0 0 auto; color: var(--slate); transition: transform .35s var(--ease); }
.deck-head[aria-expanded="true"] .deck-chev { transform: rotate(180deg); }
.deck-head[aria-expanded="true"] { background: var(--navy); }
.deck-head[aria-expanded="true"] .deck-label,
.deck-head[aria-expanded="true"] .deck-label small,
.deck-head[aria-expanded="true"] .deck-chev { color: #fff; }

.deck-panel { border-top: 1px solid var(--line); padding: 1rem; background: var(--paper-2); }
.deck-panel[hidden] { display: none; }
.pdf-frame { width: 100%; height: clamp(440px, 72vh, 780px); background: var(--navy); border-radius: 3px; overflow: hidden; }
.pdf-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.deck-open {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: .9rem;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy); transition: color .25s;
}
.deck-open:hover { color: var(--blue-deep); }

/* Spremno besedilo + program posveta */
.posvet-lead { max-width: 880px; }
.posvet-intro {
  font-size: 1.06rem; line-height: 1.75; color: var(--ink);
  margin: 0; padding: 1.6rem 0 0; border-top: 1px solid var(--line);
}
.doc-link {
  display: inline-flex; align-items: center; gap: .9rem; margin-top: 1.6rem;
  padding: .85rem 1.1rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; transition: border-color .25s, background .25s, transform .25s;
}
.doc-link:hover { border-color: var(--blue); background: var(--paper-2); transform: translateY(-1px); }
.doc-ic { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto;
  color: var(--blue-deep); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.doc-txt { display: flex; flex-direction: column; color: var(--navy); font-weight: 600; line-height: 1.25; }
.doc-txt small { font-family: var(--font-mono); font-size: .72rem; font-weight: 400; letter-spacing: .04em;
  text-transform: uppercase; color: var(--slate); margin-top: .2rem; }
.doc-arr { color: var(--blue-deep); flex: 0 0 auto; transition: transform .25s; }
.doc-link:hover .doc-arr { transform: translateX(3px); }
.doc-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 760px; margin-top: clamp(1.6rem, 3vw, 2.2rem); }
.doc-row .doc-link { display: flex; margin-top: 0; }
.doc-row .doc-txt { margin-right: auto; }
@media (max-width: 640px) { .doc-row { grid-template-columns: 1fr; } }

/* ---- Kdo smo: predsednik, organi, partnerji ---- */
.person-feature { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.person-photo { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow-md); }
.person-photo::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(12, 34, 48, .08); border-radius: var(--radius); pointer-events: none; }
.person-photo img { display: block; width: 100%; height: auto; }
.person-text { padding-top: .4rem; }
.person-text h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.person-text p { color: var(--slate); line-height: 1.75; margin-top: 1rem; }
.person-role { color: var(--ink) !important; font-size: 1.04rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }

/* ---- Publikacija: Zbornik ---- */
.publication { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.publication-cover { display: block; position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--paper-2); box-shadow: var(--shadow-md); transition: transform .25s, box-shadow .25s; }
.publication-cover::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(12, 34, 48, .1);
  border-radius: var(--radius); pointer-events: none; }
.publication-cover img { display: block; width: 100%; height: auto; }
.publication-cover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.publication-text h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.publication-text p { color: var(--slate); line-height: 1.75; margin-top: 1rem; }
.publication-text .doc-link { margin-top: 1.6rem; max-width: 360px; }

.organ-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.organ-chip { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .02em; color: var(--navy);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.1rem; }

/* ---- Upravni odbor: organigram ---- */
.org-chart { margin-top: 1.8rem; display: flex; flex-direction: column; align-items: center; }
.org-node { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  text-align: center; transition: border-color .2s, box-shadow .2s, transform .2s; }
.org-node b { display: block; font-family: var(--font-display); font-weight: 700; color: var(--navy); }
.org-node span { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--slate); margin-top: .3rem; }
.org-node--lead { position: relative; padding: 1.2rem 2.4rem 1.3rem; border-top: 3px solid var(--blue);
  box-shadow: var(--shadow-sm); }
.org-node--lead .org-tag { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-deep); margin-bottom: .35rem; }
.org-node--lead b { font-size: 1.18rem; }
.org-connector { width: 2px; height: clamp(28px, 5vw, 44px); background: var(--line); }
.org-branch { position: relative; width: 100%; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); padding: clamp(1.4rem, 3vw, 2.2rem); }
.org-branch-label { display: block; font-family: var(--font-mono); font-size: .76rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--slate); text-align: center; margin-bottom: 1.4rem; }
.org-members { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.7rem, 1.6vw, 1.1rem); }
.org-members .org-node { padding: 1rem 1rem 1.1rem; }
.org-members .org-node b { font-size: 1rem; }
.org-members .org-node:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.partner-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 1.8rem;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.partner-wall .logo { display: flex; align-items: center; justify-content: center; background: var(--white);
  padding: 1.6rem 1.4rem; min-height: 116px; margin: 0 1px 1px 0; transition: background .2s; }
.partner-wall .logo:hover { background: var(--paper); }
.partner-wall .logo img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain;
  filter: saturate(.15) opacity(.78); transition: filter .25s; }
.partner-wall .logo:hover img { filter: saturate(1) opacity(1); }

@media (max-width: 900px) {
  .person-feature { grid-template-columns: 1fr; }
  .person-photo { max-width: 300px; }
  .publication { grid-template-columns: 1fr; }
  .publication-cover { max-width: 240px; }
  .org-members { grid-template-columns: repeat(3, 1fr); }
  .partner-wall { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .org-members { grid-template-columns: repeat(2, 1fr); }
  .partner-wall { grid-template-columns: repeat(2, 1fr); }
  .partner-wall .logo { min-height: 96px; padding: 1.2rem; }
}

/* ---- Posvet: pokrovitelji / sponzorji ---- */
.pok-group { margin-top: clamp(2rem, 4vw, 3rem); }
.pok-label { font-family: var(--font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--slate); margin-bottom: 1rem; }
.pok-strip { display: flex; flex-direction: column; gap: 1rem; }
.pok-strip .pok-logo { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 2.2rem); display: flex; justify-content: center; }
.pok-strip .pok-logo img { width: 100%; max-width: 1000px; height: auto; }
.pok-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.pok-grid .pok-logo { display: flex; align-items: center; justify-content: center; background: var(--white);
  padding: 1.6rem 1.4rem; min-height: 116px; margin: 0 1px 1px 0; transition: background .2s; }
.pok-grid .pok-logo:hover { background: var(--paper); }
.pok-grid .pok-logo img { max-width: 100%; max-height: 60px; width: auto; height: auto; object-fit: contain;
  filter: saturate(.15) opacity(.78); transition: filter .25s; }
.pok-grid .pok-logo:hover img { filter: saturate(1) opacity(1); }
@media (max-width: 900px) { .pok-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) {
  .pok-grid { grid-template-columns: repeat(2, 1fr); }
  .pok-grid .pok-logo { min-height: 96px; padding: 1.2rem; }
}

/* ---- Posvet: V novicah (odmevi v medijih) ---- */
.news-refs { display: flex; flex-direction: column; gap: 1rem; margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.news-ref { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .4rem 1.2rem;
  background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--blue);
  border-radius: var(--radius); padding: 1.1rem 1.4rem; text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s; }
.news-ref:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-ref-meta { grid-column: 1; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue-deep); }
.news-ref-title { grid-column: 1; font-family: var(--font-display); font-weight: 700; font-size: 1.04rem;
  line-height: 1.4; color: var(--navy); }
.news-ref-arr { grid-column: 2; grid-row: 1 / span 2; color: var(--slate); flex: none; transition: color .2s, transform .2s; }
.news-ref:hover .news-ref-arr { color: var(--blue); transform: translate(2px, -2px); }

@media (max-width: 760px) { .pv-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .pv-grid { grid-template-columns: 1fr; }
  .talk { padding: 1.3rem 1.2rem; }
  .deck-thumb { width: 56px; height: 40px; }
  .pdf-frame { height: 60vh; }
}

/* =================================================================
   Dostopnost (a11y): temni nacin, velikost pisave, poudarjene povezave
   ================================================================= */

/* ---- Temni nacin: prevrnemo povrsinske in tekstovne zetone ---- */
[data-theme="dark"] {
  --navy:      #e9f1f4;
  --ink:       #dde6ea;
  --slate:     #a4b5bd;
  --slate-300: #87999f;
  --paper:     #0d1920;
  --paper-2:   #16242d;
  --white:     #16242d;
  --line:      rgba(255,255,255,.13);
  --blue-soft: #12303d;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5), 0 2px 8px rgba(0,0,0,.4);
  --shadow-md: 0 14px 40px -18px rgba(0,0,0,.75);
  --shadow-lg: 0 40px 80px -30px rgba(0,0,0,.85);
  color-scheme: dark;
}
/* povrsine, ki morajo ostati temne tudi ko se --navy prevrne v svetlo */
[data-theme="dark"] .dark,
[data-theme="dark"] .site-footer,
[data-theme="dark"] .deck-thumb,
[data-theme="dark"] .deck-head[aria-expanded="true"],
[data-theme="dark"] .pdf-frame,
[data-theme="dark"] .hero-media .tag { background: #0a141b; }
[data-theme="dark"] .filter.active { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
[data-theme="dark"] .site-header { background: rgba(11,20,27,.82); }
[data-theme="dark"] .site-header.is-scrolled { background: rgba(11,20,27,.95); }
/* logotipi ostanejo na svetli podlagi, da so vidni */
[data-theme="dark"] .partner-wall .logo,
[data-theme="dark"] .pok-grid .pok-logo,
[data-theme="dark"] .pok-strip .pok-logo { background: #fff; }

/* ---- Velikost pisave ---- */
html[data-fontscale="lg"] { font-size: 112.5%; }
html[data-fontscale="xl"] { font-size: 125%; }

/* ---- Poudarjene povezave ---- */
html[data-underline="1"] main a:not(.btn):not(.doc-link):not(.news-ref):not(.pv-card):not(.gal-card):not(.ph):not(.back-link):not(.organ-chip) {
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}

/* ---- Gumb in plosca za dostopnost ---- */
.a11y-fab { position: fixed; left: clamp(12px,2.5vw,24px); bottom: clamp(12px,2.5vw,24px); z-index: 200;
  width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-md); transition: transform .2s, background .2s; }
.a11y-fab:hover { transform: translateY(-2px); background: var(--blue-deep); }
.a11y-fab:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 3px; }
.a11y-fab svg { width: 26px; height: 26px; }
.a11y-panel { position: fixed; left: clamp(12px,2.5vw,24px); bottom: calc(clamp(12px,2.5vw,24px) + 64px); z-index: 200;
  width: min(300px, calc(100vw - 28px)); background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 1.3rem 1.3rem 1.4rem; transform: translateY(8px) scale(.98); opacity: 0; visibility: hidden;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
.a11y-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.a11y-panel h2 { font-size: .8rem; font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 1.1rem; font-weight: 500; }
.a11y-group { margin-bottom: 1.1rem; }
.a11y-group .lbl { display: block; font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: .55rem; }
.a11y-seg { display: flex; gap: .4rem; }
.a11y-seg button { flex: 1; padding: .55rem .3rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); font-size: .86rem; font-weight: 500; transition: background .15s, color .15s, border-color .15s; }
.a11y-seg button:hover { border-color: var(--blue); }
.a11y-seg button[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.a11y-reset { width: 100%; margin-top: .3rem; padding: .55rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: transparent; color: var(--slate); font-size: .8rem; font-family: var(--font-mono); letter-spacing: .04em;
  text-transform: uppercase; transition: color .15s, border-color .15s; }
.a11y-reset:hover { color: var(--blue-deep); border-color: var(--blue); }
@media print { .a11y-fab, .a11y-panel { display: none !important; } }


/* =====================================================================
   POSVETI — photo-less "engineering poster" cover
   Append to END of assets/css/style.css (file currently ends at the
   @media print block ~line 796; appending wins the cascade over the
   existing .pv-* rules at lines 526-544 without editing them).

   Scoped to .pv-card--poster / .pv-cover--poster, so the 3 photo cards
   (Letalisce 2025 cover, Trajnostna 2026 + JPP 2023 + ... galleries)
   are 100% untouched.

   The cover title IS the single semantic <h3> (relocated into the
   cover). No .pv-body on poster cards -> exactly one heading, no
   aria-hidden twin, no double-title. EN auto-renders via pv_title(pt).

   DARK MODE: built from LITERAL hex, never var(--navy) (which flips to
   #e9f1f4 at style.css:731). Explicit [data-theme="dark"] override pins
   the floor to #0a141b to match restored dark surfaces (style.css:746).
   ===================================================================== */

/* ---- the poster cover surface (overrides .pv-cover's navy gradient) ---- */
.pv-cover--poster {
  /* STABLE dark field — literal, theme-invariant */
  background:
    radial-gradient(125% 100% at 84% -8%, #1a4660 0%, rgba(26,70,96,0) 56%),
    linear-gradient(152deg, #103044 0%, #0c2230 46%, #0a141b 100%);
  background-color: #0c2230;            /* fallback */
  display: block;
  /* aspect-ratio is a FLOOR, not a ceiling: long titles grow the card
     rather than clip. .pv-card is flex-column so siblings stay aligned. */
  aspect-ratio: 4 / 3;
  min-height: 13.5rem;
  isolation: isolate;
}

/* layer 1: faint blueprint grid INSIDE the cover (echoes site .blueprint,
   self-contained so it works in any theme + respects motion) */
.pv-cover--poster::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(159,196,221,.085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,196,221,.085) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(135% 105% at 16% 2%, #000 0%, transparent 76%);
          mask-image: radial-gradient(135% 105% at 16% 2%, #000 0%, transparent 76%);
}

/* layer 2: skyline silhouette echo along the bottom (brand signature,
   reuses the real assets/img/skyline.svg mask) */
.pv-cover--poster::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 0;
  height: 44%; pointer-events: none;
  background: #9fc4dd; opacity: .09;
  -webkit-mask: url("../img/skyline.svg") repeat-x bottom;
          mask: url("../img/skyline.svg") repeat-x bottom;
  -webkit-mask-size: 460px 100%; mask-size: 460px 100%;
}

/* ---- inline engineering SVG: registration ticks + route arc (echoes
   .arc). Sits above grid/skyline, below the title. aria-hidden in markup. */
.pv-poster__draw {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  pointer-events: none; color: #4ea6d6;
}
.pv-poster__draw .pv-arc {
  stroke: #4ea6d6; fill: none; stroke-width: 1.4; opacity: .42;
  stroke-dasharray: 560; stroke-dashoffset: 560;
  animation: pv-arc-draw 1.3s var(--ease) .12s forwards;
}
.pv-poster__draw .pv-ticks { stroke: rgba(159,196,221,.5); stroke-width: 1.2; fill: none; }
.pv-poster__draw .pv-node  { fill: #1391ce; }
@keyframes pv-arc-draw { to { stroke-dashoffset: 0; } }

/* ---- giant ghosted YEAR numeral (decorative graphic, aria-hidden) ---- */
.pv-poster__ghost {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  right: -.05em; bottom: -.2em;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(5rem, 16vw, 8.6rem);
  line-height: .8; letter-spacing: -.04em;
  color: #ffffff; opacity: .07;
}

/* ---- foreground content stack ---- */
.pv-poster {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  padding: clamp(1.2rem, 3vw, 1.5rem) clamp(1.25rem, 3.2vw, 1.55rem)
           clamp(1.25rem, 3vw, 1.5rem);
  gap: .5rem;
}
/* mono eyebrow with the exact .eyebrow hairline tick (grafted from P1) */
.pv-poster__kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-mono); font-size: .64rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: #8fc4e6;
  max-width: 100%; min-width: 0;
}
.pv-poster__kicker::before {
  content: ""; flex: none; width: 20px; height: 1px; background: var(--blue);
}
/* the ONE accent hairline rule */
.pv-poster__rule {
  width: 34px; height: 2px; background: var(--blue);
  border: 0; margin: .15rem 0 .1rem; border-radius: 1px; flex: none;
}
/* the REAL semantic heading, set as oversized display type.
   This IS the <h3> link title — no second title anywhere. */
.pv-poster__title {
  margin: 0;
  font-family: var(--font-display); font-weight: 700;
  color: #f3f8fb;                       /* literal — survives dark flip */
  letter-spacing: -.02em; line-height: 1.12;
  /* fluid: bold for short titles, shrinks for long ones at narrow 3-col */
  font-size: clamp(1.04rem, .72rem + 1vw, 1.55rem);
  text-wrap: balance;
  hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word;
  /* guard the extreme 85-char 2021 title: clamp to 5 lines, fade not clip */
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden;
}
/* metadata pinned to the floor (real text — preserves date + count that
   the suppressed .pv-body/.pv-year would otherwise have carried) */
.pv-poster__meta {
  margin-top: auto;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .7rem;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase;
}
.pv-poster__date  { color: rgba(220,234,242,.62); }
.pv-poster__count { color: #8fc4e6; }
.pv-poster__count::before {
  content: ""; display: inline-block; width: 5px; height: 5px;
  margin-right: .5rem; border-radius: 50%; background: var(--blue);
  vertical-align: middle;
}

/* poster cards drop .pv-body entirely (title moved into cover); make the
   cover fill the card for a clean flush bottom + kill the duplicate chip */
.pv-card--poster .pv-cover--poster { flex: 1; }
.pv-card--poster .pv-year { display: none; }
/* photo-card img hover-zoom rule never applies here (no <img>); ensure
   our pseudo layers are not transformed */

/* hover: widen the rule + lift the ghost a hair, in system rhythm */
.pv-card--poster:hover .pv-poster__rule  { width: 52px; }
.pv-card--poster:hover .pv-poster__ghost { opacity: .1; }
.pv-poster__rule  { transition: width .4s var(--ease); }
.pv-poster__ghost { transition: opacity .4s var(--ease); }

/* ===== DARK MODE — already dark by construction; deepen the floor to
   match the restored #0a141b surfaces and add a hairline border because
   var(--line) becomes a faint white in dark. ===== */
[data-theme="dark"] .pv-cover--poster {
  background:
    radial-gradient(125% 100% at 84% -8%, #163c54 0%, rgba(22,60,84,0) 56%),
    linear-gradient(152deg, #0e2636 0%, #0a141b 100%);
  background-color: #0a141b;
}
[data-theme="dark"] .pv-cover--poster::before {
  background-image:
    linear-gradient(rgba(159,196,221,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,196,221,.11) 1px, transparent 1px);
}
[data-theme="dark"] .pv-cover--poster::after { opacity: .12; }
[data-theme="dark"] .pv-card--poster { border-color: rgba(255,255,255,.10); }

/* ===== RESPONSIVE: 3-col narrowest -> smaller ghost + tighter clamp;
   1-col (mobile) wide -> let the title breathe, bigger ghost ===== */
@media (max-width: 760px) {            /* 2-col */
  .pv-poster__ghost { font-size: clamp(4.6rem, 20vw, 6.6rem); }
  .pv-poster__title { -webkit-line-clamp: 4; line-clamp: 4; }
}
@media (max-width: 560px) {            /* 1-col, full width */
  .pv-cover--poster { aspect-ratio: 16 / 10; }
  .pv-poster { padding: 1.5rem 1.6rem 1.65rem; }
  .pv-poster__title {
    font-size: clamp(1.45rem, 5.6vw, 2rem);
    -webkit-line-clamp: 4; line-clamp: 4;
  }
  .pv-poster__ghost { font-size: clamp(6.5rem, 28vw, 10rem); }
}

/* ===== REDUCED MOTION: poster fully static (arc snaps to drawn) ===== */
@media (prefers-reduced-motion: reduce) {
  .pv-poster__draw .pv-arc { animation: none; stroke-dashoffset: 0; }
  .pv-card--poster:hover .pv-poster__rule  { width: 34px; }
  .pv-card--poster:hover .pv-poster__ghost { opacity: .07; }
  .pv-poster__rule, .pv-poster__ghost { transition: none; }
}

/* =====================================================================
   SITE-WIDE BACKGROUNDS — "drawing table" depth (subtle, contrast-safe)
   Append to END of assets/css/style.css, AFTER the cover block.

   Strategy (per judges' verified correction):
   - ALWAYS-ON, no-markup depth via body pseudo-layers: fractal-noise
     paper grain + a soft top radial light. Both fixed, both behind
     content, neither touches text contrast.
   - OPT-IN section rhythm via .section--alt (paper-2 tint) and
     .section--seam (hairline rule), applied deliberately in the
     generators. NO :nth-of-type(even) tinting (the posveti index is a
     single .section--tight block, and section tags are mixed/irregular
     site-wide, so parity tinting would paint seams mid-block / tint
     .hero/.dark by accident).
   - NO .s-head::before glow (that wrapper is absent/asymmetric across
     pages, so it would apply almost nowhere).
   Dark mode: tokens flip automatically; only the grain blend and the
   radial light need explicit dark handling.
   ===================================================================== */

/* 1) Paper grain — one tiny inline SVG fractalNoise tile, no raster asset.
   Fixed so it paints once and doesn't scroll-tile. ~0.035 alpha = tooth,
   not visible noise. Sits behind .blueprint (z-index:-2). */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: multiply;
}

/* 2) Soft top radial light — lifts the flat paper without a hard band.
   Cool blue tint top-right echoes the brand accent. */
body::after {
  content: "";
  position: fixed; inset: 0 0 auto 0; height: 70vh; z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(70% 55% at 92% 2%, rgba(19,145,206,.045) 0%, rgba(19,145,206,0) 55%);
}

/* 3) OPT-IN section tint (paper-2). Gradient (not flat) so the body grain
   still reads through edges. Token-driven -> flips correctly in dark. */
.section--alt { background: linear-gradient(var(--paper-2), var(--paper-2)); }

/* 3b) OPT-IN faint blueprint grid bleed at the TOP of a tinted band —
   the lightest nod to .blueprint, masked so it fades before body text. */
.section--alt { position: relative; isolation: isolate; }
.section--alt::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(#000, transparent 220px);
          mask-image: linear-gradient(#000, transparent 220px);
  opacity: .45;
}

/* 4) OPT-IN hairline seam between stacked light sections */
.section--seam { border-top: 1px solid var(--line); }

/* ===== DARK MODE ===== */
/* grain: multiply -> screen so the speckle lightens the dark paper
   instead of vanishing/muddying; pull opacity down a touch */
[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: .04; }
/* radial light must not glow on a dark page -> near-zero cool tint */
[data-theme="dark"] body::after {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(140,190,220,.06) 0%, rgba(140,190,220,0) 60%),
    radial-gradient(70% 55% at 92% 2%, rgba(19,145,206,.06) 0%, rgba(19,145,206,0) 55%);
}
/* tint band: --paper-2 (#16242d) is already one step off --paper
   (#0d1920); grid bleed uses --line (faint white) — trim opacity */
[data-theme="dark"] .section--alt::before { opacity: .55; }

/* ===== PERF / REDUCED MOTION =====
   Nothing here animates (grain/light are static), so reduced-motion is
   inherently satisfied. position:fixed pseudo-layers (not
   background-attachment:fixed on body) avoid iOS repaint jank. Cheapen
   the grain on the smallest screens. */
@media (max-width: 560px) {
  body::before { mix-blend-mode: normal; opacity: .025; }
}


/* =====================================================================
   ZADNJI DOGODKI — "editorial-split" latest-events carousel  (HOME)
   Append to END of assets/css/style.css.
   Family = the shipped "engineering poster" cards (style.css:818-988):
   a real landscape photo welded to a dark engineering-poster CAPTION
   PANEL. Poster tokens are byte-identical to .pv-cover--poster so the
   carousel reads as the same system, just opened into a horizontal spread.
   DARK-FLIP TRAP: the dark panel uses LITERAL hex (#103044/#0c2230/#0a141b
   etc.), never var(--navy) (which flips to #e9f1f4 at style.css:731); an
   explicit [data-theme="dark"] block only deepens the floor, mirroring
   style.css:952-964. The route-arc reuses the EXISTING @keyframes
   pv-arc-draw (style.css:870) — no duplicate keyframe.
   ===================================================================== */

/* screen-reader-only util — NONE exists in style.css today; define once.
   (If a global .sr-only is later added, this scoped rule is harmless.) */
.le-live.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.le-section { position: relative; overflow: hidden; }
.le-section > .wrap { position: relative; z-index: 1; }
.le-section .blueprint { opacity: .4; }

/* ---- carousel region shell ---- */
.le { position: relative; margin-top: clamp(1.4rem, 3vw, 2.2rem); }

/* ---- track: NO-JS fallback = readable vertical stack of all 3 spreads.
   JS adds .is-enhanced on .le to switch to the overlay/fader layout. ---- */
.le-track { display: grid; gap: clamp(1.4rem, 3vw, 2rem); margin: 0; }

/* ---- one slide = editorial split (photo | dark engineering panel) ---- */
.le-slide {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 0;
}

/* ---- photo side ---- */
.le-photo { position: relative; background: var(--paper-2); aspect-ratio: 4 / 3; }
.le-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; display: block; }

/* ---- dark engineering-poster panel (LITERAL hex, theme-invariant) ----
   Byte-identical gradient + grid + skyline to .pv-cover--poster. */
.le-panel {
  position: relative; isolation: isolate; display: flex;
  background:
    radial-gradient(125% 100% at 84% -8%, #1a4660 0%, rgba(26,70,96,0) 56%),
    linear-gradient(152deg, #103044 0%, #0c2230 46%, #0a141b 100%);
  background-color: #0c2230;
}
/* layer 1: blueprint grid (echo of .pv-cover--poster::before) */
.le-panel::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(159,196,221,.085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,196,221,.085) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(135% 105% at 16% 2%, #000 0%, transparent 76%);
          mask-image: radial-gradient(135% 105% at 16% 2%, #000 0%, transparent 76%);
}
/* layer 2: skyline silhouette echo at the bottom (brand signature mask) */
.le-panel::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 0;
  height: 44%; pointer-events: none;
  background: #9fc4dd; opacity: .09;
  -webkit-mask: url("../img/skyline.svg") repeat-x bottom;
          mask: url("../img/skyline.svg") repeat-x bottom;
  -webkit-mask-size: 460px 100%; mask-size: 460px 100%;
}
/* inline engineering SVG: route arc + 2 registration ticks + nodes.
   non-scaling-stroke keeps line weight true under the slice crop. */
.le-draw { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.le-draw .le-arc {
  stroke: #4ea6d6; fill: none; stroke-width: 1.4; opacity: .42;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 560; stroke-dashoffset: 560;
}
.le-draw .le-ticks { stroke: rgba(159,196,221,.5); stroke-width: 1.2; fill: none; vector-effect: non-scaling-stroke; }
.le-draw .le-node { fill: #1391ce; }
/* arc draws in via the EXISTING pv-arc-draw keyframe (no duplicate):
   always in the no-JS stack; in enhanced mode only when its slide is active */
.le:not(.is-enhanced) .le-arc,
.le.is-enhanced .le-slide.is-active .le-arc {
  animation: pv-arc-draw 1.3s var(--ease) .12s forwards;
}

/* giant ghosted mono index numeral (echoes .pv-poster__ghost) */
.le-ghost {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  right: .04em; top: -.14em;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(4.4rem, 11vw, 7rem); line-height: .8; letter-spacing: -.04em;
  color: #ffffff; opacity: .06;
}

/* foreground content */
.le-panel-in {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  padding: clamp(1.6rem, 4vw, 2.8rem); gap: .7rem; width: 100%;
}
/* mono kicker with the exact .pv-poster__kicker 20px blue hairline tick */
.le-kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: #8fc4e6;
}
.le-kicker::before { content: ""; flex: none; width: 20px; height: 1px; background: var(--blue); }
.le-rule {
  width: 34px; height: 2px; background: var(--blue); border: 0;
  margin: .25rem 0 .15rem; border-radius: 1px; transition: width .4s var(--ease);
}
.le.is-enhanced .le-slide.is-active .le-rule { width: 52px; }
.le-ev-title {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  color: #f3f8fb;                       /* literal — survives the dark flip */
  letter-spacing: -.02em; line-height: 1.1;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  text-wrap: balance; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto;
}
.le-link { color: inherit; text-decoration: none; }
.le-link:hover { color: #cfe8f7; }
.le-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 2px; }
.le-meta {
  margin-top: auto; padding-top: 1rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.le-date {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(220,234,242,.66);
}
.le-date time { color: inherit; }
.le-idx {
  font-family: var(--font-mono); font-weight: 600; letter-spacing: .14em;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem);
  color: rgba(255,255,255,.16); line-height: 1; user-select: none;
}
/* CTA pill — aria-hidden visual twin of the title link (NOT a tab stop) */
.le-cta { margin-top: 1.2rem; align-self: flex-start; }
.le-cta svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.le.is-enhanced .le-slide.is-active:hover .le-cta svg { transform: translateX(4px); }

/* =====================================================================
   ENHANCED MODE (JS on): one slide visible, cross-fade overlay.
   The ACTIVE slide is position:relative (it defines track height) and
   inactive slides get the [hidden] attribute (display:none) -> NO height
   collapse and removed from the AT tree + tab order.
   ===================================================================== */
.le.is-enhanced .le-track { display: block; position: relative; }
.le.is-enhanced .le-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s var(--ease);
  pointer-events: none;
}
.le.is-enhanced .le-slide.is-active {
  position: relative;            /* active anchors the track height — no CLS */
  opacity: 1; visibility: visible; pointer-events: auto;
}
.le.is-enhanced .le-slide[hidden] { display: none; }  /* belt + braces with JS */

/* ---- controls ---- */
.le-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-top: clamp(1.3rem, 3vw, 1.9rem);
}
.le-arrow {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--white); color: var(--navy);
  transition: transform .3s var(--ease), border-color .25s, background .25s, color .25s;
}
.le-arrow svg { width: 20px; height: 20px; }
.le-arrow:hover { border-color: var(--blue); color: var(--blue-deep); transform: translateY(-2px); }
.le-arrow:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 3px; }
.le-arrow[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.le-arrow[disabled]:hover { border-color: var(--line); color: var(--navy); }

.le-dots { display: flex; align-items: center; gap: .55rem; }
.le-dot {
  width: 30px; height: 6px; padding: 0; border-radius: 3px;
  background: var(--line); border: 1px solid transparent; cursor: pointer;
  transition: background .25s, width .3s var(--ease);
}
.le-dot:hover { background: var(--slate-300); }
.le-dot[aria-selected="true"] { background: var(--blue); width: 44px; }
.le-dot:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 3px; }

/* =====================================================================
   DARK MODE — panel already dark by construction; deepen the floor to
   match restored #0a141b surfaces + lift faint-line alpha (mirrors
   style.css:952-964). White .le-slide card uses var(--white) which
   correctly flips to #16242d; pinned again here for clarity.
   ===================================================================== */
[data-theme="dark"] .le-slide { background: #16242d; border-color: rgba(255,255,255,.10); }
[data-theme="dark"] .le-panel {
  background:
    radial-gradient(125% 100% at 84% -8%, #163c54 0%, rgba(22,60,84,0) 56%),
    linear-gradient(152deg, #0e2636 0%, #0a141b 100%);
  background-color: #0a141b;
}
[data-theme="dark"] .le-panel::before {
  background-image:
    linear-gradient(rgba(159,196,221,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,196,221,.11) 1px, transparent 1px);
}
[data-theme="dark"] .le-panel::after { opacity: .12; }
[data-theme="dark"] .le-draw .le-ticks { stroke: rgba(159,196,221,.4); }
[data-theme="dark"] .le-ghost { opacity: .07; }
[data-theme="dark"] .le-arrow { background: #16242d; color: var(--navy); }
[data-theme="dark"] .le-dot { background: rgba(255,255,255,.16); }
[data-theme="dark"] .le-dot[aria-selected="true"] { background: var(--blue); }

/* =====================================================================
   RESPONSIVE — stack photo over panel; let the title breathe.
   ===================================================================== */
@media (max-width: 860px) {
  .le-slide { grid-template-columns: 1fr; }
  .le-photo { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .le-photo { aspect-ratio: 16 / 10; object-position: 50% 38%; }
  .le-meta { padding-top: .8rem; }
  .le-arrow { width: 42px; height: 42px; }
  .le-dot { width: 24px; }
  .le-dot[aria-selected="true"] { width: 36px; }
  .le-ev-title { font-size: clamp(1.4rem, 6vw, 1.95rem); }
}

/* =====================================================================
   REDUCED MOTION — instant slide swaps, arc snaps drawn, no autoplay anim.
   (JS also gates autoplay off under the same query.)
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .le.is-enhanced .le-slide { transition: none; }
  .le-arrow, .le-dot, .le-rule, .le-cta svg { transition: none; }
  .le:not(.is-enhanced) .le-arc,
  .le.is-enhanced .le-slide.is-active .le-arc { animation: none; stroke-dashoffset: 0; }
}


/* =====================================================================
   CGP — logotip / prenosi  (kdo-smo)
   ===================================================================== */
.cgp { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.cgp-logo { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(2rem, 6vw, 4rem); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.cgp-logo img { width: 100%; max-width: 440px; height: auto; }
.cgp-dl-label { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-300); }
.cgp-formats { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1rem; }
.cgp-fmt { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--navy); transition: border-color .2s, background .2s, transform .2s; }
.cgp-fmt small { font-family: var(--font-body); font-weight: 400; font-size: .72rem; color: var(--slate); letter-spacing: 0; text-transform: none; }
.cgp-fmt:hover { border-color: var(--blue); background: var(--blue-soft); transform: translateY(-2px); }
.cgp-fmt:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 2px; }
[data-theme="dark"] .cgp-logo { background: #fff; border-color: rgba(255,255,255,.12); }
@media (max-width: 760px) { .cgp { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .cgp-formats { grid-template-columns: 1fr; } }


/* =====================================================================
   PROJEKTI — kazalo kartic  (po vzoru .gal-card / .pv-card)
   ===================================================================== */
.prj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.prj-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.prj-card.is-hidden { display: none; }
.prj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.prj-cover { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); }
.prj-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.prj-card:hover .prj-cover img { transform: scale(1.05); }
.prj-kind { position: absolute; left: 0; bottom: .9rem; background: var(--blue-deep); color: #fff; font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: .38rem .8rem; border-radius: 0 2px 2px 0; }
.prj-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.prj-body h3 { font-size: 1.12rem; line-height: 1.28; color: var(--navy); }
.prj-author { margin-top: auto; padding-top: .6rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; color: var(--slate); }
@media (max-width: 860px) { .prj-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .prj-grid { grid-template-columns: 1fr; } }


/* =====================================================================
   PROJEKTI — opomba povzetka + figure galerija z napisi
   ===================================================================== */
.prj-summary-note { background: var(--blue-soft); border-left: 3px solid var(--blue); padding: .85rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); font-size: .95rem; margin-bottom: 1.5rem; max-width: 68ch; }
.prj-summary-note b { color: var(--blue-deep); }
.fig-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem); }
.fig { margin: 0; }
.fig-link { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); cursor: zoom-in; }
.fig-link img { width: 100%; height: auto; display: block; transition: transform .5s var(--ease); }
.fig-link:hover img { transform: scale(1.03); }
.fig figcaption { margin-top: .55rem; font-size: .82rem; line-height: 1.45; color: var(--slate); }
@media (max-width: 680px) { .fig-grid { grid-template-columns: 1fr; } }


/* =====================================================================
   PROSE povezave + ARHIV POSVETOV (zgodovinski seznam s povezavami na galerije)
   ===================================================================== */
.prose a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 2px; transition: color .2s; }
.prose a:hover { color: var(--blue); }

.parch { display: flex; flex-direction: column; gap: .7rem; margin-top: clamp(1.8rem, 4vw, 2.6rem); }
.parch-item { display: grid; grid-template-columns: 4.5rem 1fr auto; align-items: center; gap: .15rem 1.2rem; padding: 1rem 1.35rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.parch-item .pa-yr { grid-row: 1 / span 2; font-family: var(--font-mono); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; color: var(--blue-deep); }
.parch-item .pa-title { grid-column: 2; font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; line-height: 1.32; color: var(--navy); }
.parch-item .pa-meta { grid-column: 2; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-300); margin-top: .15rem; }
.parch-item .pa-desc { display: block; font-family: var(--font-body); font-weight: 400; font-size: .88rem; line-height: 1.55; letter-spacing: 0; text-transform: none; color: var(--slate); margin-top: .4rem; max-width: 64ch; }
.parch-item .pa-tag { grid-column: 3; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-deep); white-space: nowrap; }
.parch-item .pa-tag svg { flex: none; transition: transform .2s; }
a.parch-item { transition: border-color .2s, box-shadow .2s, transform .2s; }
a.parch-item:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
a.parch-item:hover .pa-tag svg { transform: translateX(3px); }
.parch-item--plain { background: var(--paper); }
.parch-item--note { grid-template-columns: 4.5rem 1fr; }
.parch-item--note .pa-note { grid-column: 2; font-size: .86rem; line-height: 1.5; color: var(--slate); margin-top: .25rem; }
@media (max-width: 560px) {
  .parch-item { grid-template-columns: 1fr auto; }
  .parch-item .pa-yr { grid-row: auto; grid-column: 1; }
  .parch-item .pa-title, .parch-item .pa-meta { grid-column: 1 / -1; }
  .parch-item .pa-tag { grid-row: auto; grid-column: 1 / -1; margin-top: .3rem; }
}

/* =====================================================================
   ZEMLJEVID PROJEKTOV (Leaflet) — projekti.html
   ===================================================================== */
.prj-map { height: clamp(380px, 55vh, 540px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); z-index: 1; }
.prj-map-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: .9rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.prj-map-legend span { display: inline-flex; align-items: center; gap: .5rem; }
.prj-map-legend i { width: 20px; height: 3px; border-radius: 2px; display: inline-block; }
.prj-map .leaflet-popup-content-wrapper { border-radius: 4px; box-shadow: var(--shadow-md); font-family: var(--font-body); }
.prj-map .leaflet-popup-content { margin: .9rem 1.05rem; line-height: 1.4; }
.prj-map .leaflet-popup-content b { display: block; font-family: var(--font-display); font-weight: 700; font-size: .96rem; color: #16242c; margin-bottom: .35rem; }
.prj-map .leaflet-popup-content a { font-family: var(--font-mono); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-deep); text-decoration: none; }
.prj-map .leaflet-popup-content a:hover { text-decoration: underline; }
[data-theme="dark"] .prj-map .leaflet-tile { filter: brightness(.8) saturate(.8); }
[data-theme="dark"] .prj-map .leaflet-popup-content-wrapper,
[data-theme="dark"] .prj-map .leaflet-popup-tip { background: #16242d; }
[data-theme="dark"] .prj-map .leaflet-popup-content b { color: #e9f1f4; }

/* =====================================================================
   CASOVNICA (kdo-smo)
   ===================================================================== */
.tl { position: relative; margin-top: 2.4rem; max-width: 70ch; }
.tl::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 2.1rem 2.5rem; }
.tl-item:last-child { padding-bottom: .2rem; }
.tl-item::before { content: ""; position: absolute; left: 0; top: .3rem; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.tl-yr { font-family: var(--font-mono); font-weight: 600; font-size: .8rem; letter-spacing: .08em; color: var(--blue-deep); }
.tl-item h3 { font-size: 1.08rem; line-height: 1.3; margin: .3rem 0 .35rem; color: var(--navy); }
.tl-item p { margin: 0; font-size: .92rem; line-height: 1.6; color: var(--slate); }

/* =====================================================================
   SORODNA VSEBINA (Preberite tudi)
   ===================================================================== */
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1.6rem; }
.rel-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.rel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.rel-cover { aspect-ratio: 16/9; overflow: hidden; background: var(--paper-2); }
.rel-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.rel-card:hover .rel-cover img { transform: scale(1.04); }
.rel-body { padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.rel-tag { font-family: var(--font-mono); font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-deep); }
.rel-card h3 { font-size: .98rem; line-height: 1.32; color: var(--navy); }
.rel-yr { margin-top: auto; padding-top: .5rem; font-family: var(--font-mono); font-size: .72rem; color: var(--slate-300); }
@media (max-width: 860px) { .rel-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   ALI STE VEDELI?
   ===================================================================== */
.dyk { display: grid; grid-template-columns: auto 1fr; gap: 1.15rem; align-items: start; background: var(--blue-soft); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 1.35rem 1.6rem; margin-top: 2.8rem; }
.dyk-ic { width: 2.2rem; height: 2.2rem; display: flex; align-items: center; justify-content: center; background: var(--blue); color: #fff; border-radius: 50%; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; flex: none; }
.dyk-eyebrow { display: block; font-family: var(--font-mono); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: .35rem; }
.dyk p { margin: 0; font-size: .98rem; line-height: 1.62; color: var(--ink); max-width: 72ch; }
@media (max-width: 520px) { .dyk { grid-template-columns: 1fr; padding: 1.2rem 1.25rem; } }
.prj-map-legend i.lc-cesta { background: #1391ce; }
.prj-map-legend i.lc-zel { background: #0c2230; }
.prj-map-legend i.lc-kol { background: #2e9e5b; }
.prj-map-legend i.lc-geo { background: #586b75; }
[data-theme="dark"] .prj-map-legend i.lc-zel { background: #cfdce2; }
