/* ==========================================================
   Apple clean: osnovni oblikovalski sistem za Material for MkDocs
   - samo sistemske pisave (na Apple napravah SF, drugje Helvetica/Arial)
   - veliko praznega prostora, hairline črte, zaobljene ploščice
   - svetla in temna tema prek spremenljivk --ap-*
   ========================================================== */
:root {
  --md-text-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --md-code-font: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ap-blue: #0071e3;
  --ap-blue-hover: #0077ed;
}

[data-md-color-scheme="default"] {
  --ap-bg: #ffffff;
  --ap-bg-alt: #f5f5f7;
  --ap-tile: #f5f5f7;
  --ap-text: #1d1d1f;
  --ap-muted: #6e6e73;
  --ap-line: rgba(0, 0, 0, .1);
  --ap-glass: rgba(255, 255, 255, .72);
  --ap-link: #0066cc;

  --md-default-bg-color: #ffffff;
  --md-default-fg-color: #1d1d1f;
  --md-default-fg-color--light: #6e6e73;
  --md-default-fg-color--lighter: #86868b;
  --md-default-fg-color--lightest: rgba(0, 0, 0, .08);
  --md-primary-fg-color: #fbfbfd;
  --md-primary-bg-color: #1d1d1f;
  --md-primary-bg-color--light: rgba(29, 29, 31, .8);
  --md-accent-fg-color: #0071e3;
  --md-typeset-color: #1d1d1f;
  --md-typeset-a-color: #0066cc;
  --md-typeset-table-color: rgba(0, 0, 0, .1);
  --md-code-bg-color: #f5f5f7;
  --md-code-fg-color: #1d1d1f;
  --md-footer-bg-color: #f5f5f7;
  --md-footer-bg-color--dark: #f5f5f7;
  --md-footer-fg-color: #6e6e73;
  --md-footer-fg-color--light: #6e6e73;
  --md-footer-fg-color--lighter: #86868b;
}

[data-md-color-scheme="slate"] {
  --ap-bg: #000000;
  --ap-bg-alt: #161617;
  --ap-tile: #1d1d1f;
  --ap-text: #f5f5f7;
  --ap-muted: #a1a1a6;
  --ap-line: rgba(255, 255, 255, .14);
  --ap-glass: rgba(22, 22, 23, .8);
  --ap-link: #2997ff;

  --md-default-bg-color: #000000;
  --md-default-fg-color: #f5f5f7;
  --md-default-fg-color--light: #a1a1a6;
  --md-default-fg-color--lighter: #6e6e73;
  --md-default-fg-color--lightest: rgba(255, 255, 255, .12);
  --md-primary-fg-color: #161617;
  --md-primary-bg-color: #f5f5f7;
  --md-primary-bg-color--light: rgba(245, 245, 247, .8);
  --md-accent-fg-color: #2997ff;
  --md-typeset-color: #f5f5f7;
  --md-typeset-a-color: #2997ff;
  --md-typeset-table-color: rgba(255, 255, 255, .14);
  --md-code-bg-color: #1d1d1f;
  --md-code-fg-color: #f5f5f7;
  --md-footer-bg-color: #161617;
  --md-footer-bg-color--dark: #161617;
  --md-footer-fg-color: #a1a1a6;
  --md-footer-fg-color--light: #a1a1a6;
  --md-footer-fg-color--lighter: #6e6e73;
}

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { background: var(--ap-bg); }

/* ---------- Glava: steklena, tanka, brez sence ---------- */
.md-header,
.md-tabs {
  background-color: var(--ap-glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
          backdrop-filter: saturate(180%) blur(20px);
  color: var(--ap-text);
}
.md-header,
.md-header[data-md-state="shadow"] { box-shadow: none; }
.md-header[data-md-state="shadow"] { border-bottom: 1px solid var(--ap-line); }
.md-header__title { font-weight: 600; letter-spacing: -.01em; }
.md-header__button.md-logo { display: none; }
.md-header__title { margin-left: 1rem; }
.md-tabs { border-bottom: 1px solid var(--ap-line); }
.md-tabs__list { justify-content: center; }
.md-tabs__link { font-size: .6rem; opacity: .72; letter-spacing: -.005em; }
.md-tabs__item--active .md-tabs__link,
.md-tabs__link:hover { opacity: 1; }
.md-search__form { border-radius: 10px; background-color: color-mix(in srgb, var(--ap-text) 7%, transparent); }

/* ---------- Postavitev: ožji bralni stolpec, brez stranskih menijev ---------- */
@media screen and (min-width: 76.25em) {
  .md-sidebar--primary:not(.md-sidebar--post),
  .md-sidebar--secondary { display: none; }
}
.md-content__inner { max-width: 700px; margin: 0 auto; padding: 2.5rem 22px 3.5rem; }
.md-content__inner::before { display: none; }

/* ---------- Tipografija ---------- */
.md-typeset { font-size: .85rem; line-height: 1.47; letter-spacing: -.011em; }
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 { color: inherit; }
.md-typeset h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.07;
  margin: 0 0 .5em;
}
.md-typeset h1 + p { font-size: 1.2rem; line-height: 1.35; color: var(--ap-muted); letter-spacing: -.015em; }
.md-typeset h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.15;
  margin: 2.2em 0 .6em;
}
.md-typeset h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -.015em; margin: 1.8em 0 .5em; }
.md-typeset a { text-decoration: none; }
.md-typeset a:hover { text-decoration: underline; }
.md-typeset a.more::after { content: " \203A"; font-size: 1.15em; }
.md-typeset hr { border-bottom: 1px solid var(--ap-line); }
.md-typeset strong { font-weight: 600; }

/* ---------- Gumbi: pilula ---------- */
.md-typeset .md-button {
  border-radius: 980px;
  font-size: .85rem;
  font-weight: 400;
  padding: .55em 1.3em;
  color: var(--ap-link);
  border: 1px solid var(--ap-link);
  background: transparent;
  transition: background-color .25s, color .25s;
  margin: 0 .4rem .4rem 0;
}
.md-typeset .md-button:hover,
.md-typeset .md-button:focus { background: var(--ap-blue); border-color: var(--ap-blue); color: #fff; text-decoration: none; }
.md-typeset .md-button--primary { background: var(--ap-blue); border-color: var(--ap-blue); color: #fff; }
.md-typeset .md-button--primary:hover,
.md-typeset .md-button--primary:focus { background: var(--ap-blue-hover); border-color: var(--ap-blue-hover); }

/* ---------- Koda, opozorila, tabele, kartice ---------- */
.md-typeset pre > code { border-radius: 14px; }
.md-typeset :not(pre) > code { background-color: color-mix(in srgb, var(--ap-text) 7%, transparent); border-radius: 6px; }
.md-typeset .admonition,
.md-typeset details {
  border: none;
  border-radius: 18px;
  background: var(--ap-bg-alt);
  box-shadow: none;
}
.md-typeset .admonition-title,
.md-typeset summary { background: transparent; font-weight: 600; }
.md-typeset table:not([class]) { border: none; box-shadow: none; font-size: .8rem; }
.md-typeset table:not([class]) th { background: transparent; color: var(--ap-muted); font-weight: 600; }
.md-typeset .grid.cards > ul > li,
.md-typeset .grid > .card {
  border: none;
  border-radius: 22px;
  background: var(--ap-tile);
  box-shadow: none;
  padding: 1.1rem 1.25rem;
}
.md-typeset .grid.cards > ul > li:hover { box-shadow: none; transform: scale(1.012); }

/* ---------- Noga ---------- */
.md-footer { border-top: 1px solid var(--ap-line); }
.md-footer-meta { background: transparent; }
.md-copyright { font-size: .6rem; }

/* ---------- Razkritje ob drsenju (samo, če brskalnik podpira) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: ap-reveal linear both; animation-timeline: view(); animation-range: entry 5% entry 45%; }
    @keyframes ap-reveal { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
  }
}

@media print {
  .md-header, .md-tabs, .md-footer, .md-sidebar, .md-top { display: none !important; }
  .md-content__inner { max-width: none; padding: 0; }
}
/* ===== Sestavni deli za začetne strani ===== */
.band { padding: clamp(64px, 11vw, 120px) 0; }
.band--alt { background: var(--ap-bg-alt); }
.band--dark {
  --ap-text: #f5f5f7;
  --ap-muted: #a1a1a6;
  --ap-tile: #1d1d1f;
  --ap-line: rgba(255, 255, 255, .14);
  --ap-link: #2997ff;
  background: #000;
  color: var(--ap-text);
}
.band--center { text-align: center; }
.band--hero { padding-top: clamp(48px, 9vw, 96px); padding-bottom: clamp(48px, 8vw, 96px); }
.band__inner { max-width: 1024px; margin: 0 auto; padding: 0 22px; }

.md-typeset .eyebrow { font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 600; color: #bf4800; margin: 0 0 .5em; letter-spacing: -.01em; }
.md-typeset .band--dark .eyebrow { color: #ff9f0a; }
.md-typeset h1.display,
.md-typeset h2.display {
  font-size: clamp(2.6rem, 8.5vw, 5.4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
  margin: 0 0 .3em;
}
.md-typeset h2.display { margin-top: 0; }
.md-typeset p.lead {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -.015em;
  color: var(--ap-muted);
  max-width: 34ch;
  margin: 0 auto 1.6em;
}
.gradient-text {
  background: linear-gradient(90deg, #2997ff 0%, #a855f7 50%, #ff375f 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Okno v slogu macOS (okras) */
.window {
  background: #1d1d1f;
  color: #f5f5f7;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
  overflow: hidden;
  text-align: left;
  max-width: 720px;
  margin: 3rem auto 0;
}
.window__bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; background: #2a2a2d; }
.window__bar i { display: block; width: 12px; height: 12px; border-radius: 50%; }
.window__bar i:nth-child(1) { background: #ff5f57; }
.window__bar i:nth-child(2) { background: #febc2e; }
.window__bar i:nth-child(3) { background: #28c840; }
.window__bar span { margin: 0 auto; transform: translateX(-24px); font-size: .6rem; color: #a1a1a6; }
.md-typeset .window pre { color: inherit; margin: 0; padding: 20px 24px 24px; font: .68rem/1.75 var(--md-code-font); background: transparent; }
.md-typeset .window pre > code { background: transparent; color: inherit; padding: 0; font-size: inherit; }
.window .dim { color: #86868b; }
.window .ok { color: var(--accent); }

/* Bento ploščice */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 3rem; }
.tile {
  background: var(--ap-tile);
  border-radius: var(--ap-radius, 28px);
  padding: 44px 40px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  overflow: hidden;
}
.tile--wide { grid-column: 1 / -1; min-height: 320px; }
.tile--dark { --ap-text: #f5f5f7; --ap-muted: #a1a1a6; --ap-link: #2997ff; background: #1d1d1f; color: #f5f5f7; }
.md-typeset .tile p.tile__eyebrow { font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ap-muted); margin: 0 0 .6rem; }
.md-typeset .tile h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; margin: 0 0 .5em; }
.md-typeset .tile p { color: var(--ap-muted); font-size: .9rem; margin: 0 0 1em; max-width: 40ch; }
.md-typeset .tile p.tile__big { font-size: clamp(3.5rem, 9vw, 6rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin: 1rem 0 0; color: var(--ap-text); }

/* Številke */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.stat strong { display: block; font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.stat span { display: block; margin-top: .6rem; color: var(--ap-muted); font-size: .85rem; }

/* Seznam člankov (Newsroom) */
.entry { padding: 2rem 0; border-bottom: 1px solid var(--ap-line); }
.md-typeset .entry .meta { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ap-muted); font-weight: 600; margin: 0; }
.md-typeset .entry h2 { margin: .3em 0 .35em; }
.md-typeset .entry h2 a { color: inherit; }
.md-typeset .entry p { margin: 0 0 .6em; color: var(--ap-muted); }

@media (max-width: 734px) {
  .bento { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .tile { padding: 36px 28px; min-height: 280px; }
  .stats { grid-template-columns: 1fr; }
}

.window .md-code__nav { display: none; }

/* ==========================================================
   BOMBONČKI: gradniki, ki pritegnejo pogled. Samo CSS, brez JavaScripta.
   ========================================================== */

/* 1. Razpoložljivost: utripajoča zelena pika */
.avail {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .3rem .95rem; border-radius: 999px;
  font-size: .7rem; font-weight: 600; letter-spacing: -.005em;
  color: var(--ap-text);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  margin: 0 0 1.4rem;
}
.avail::before {
  content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent);
  animation: ap-pulse 2s infinite;
}
@keyframes ap-pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .55); }
  70% { box-shadow: 0 0 0 .5rem rgba(var(--accent-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
}

/* 2. Terminal, ki se tipka sam (vsaka vrstica ima --n znakov in zamik --d) */
.typed {
  display: inline-block; clip-path: inset(0 100% 0 0);
  animation: ap-type calc(var(--n, 20) * .04s) steps(var(--n, 20), end) var(--d, 0s) forwards;
}
@keyframes ap-type { to { clip-path: inset(0 0 0 0); } }
.caret {
  display: inline-block; width: .55em; height: 1.05em; background: #a1a1a6; vertical-align: -.2em;
  animation: ap-blink 1.1s steps(1) var(--d, 0s) infinite backwards;
}
@keyframes ap-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce), print {
  .typed { clip-path: none; animation: none; }
  .caret, .avail::before { animation: none; }
}

/* 3. Števci, ki štejejo do vrednosti (--to), brez JavaScripta */
@property --num { syntax: "<integer>"; initial-value: 0; inherits: false; }
.count { --num: var(--to, 0); counter-reset: ap-num var(--num); font-variant-numeric: tabular-nums; }
.count::before { content: counter(ap-num); }
@media (prefers-reduced-motion: no-preference) {
  .count { animation: ap-count 1.8s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes ap-count { from { --num: 0; } }
  @supports (animation-timeline: view()) {
    .count { animation: ap-count linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
  }
}

/* 4. Trak z orodji, ki se premika (ustavi se ob miški) */
.marquee {
  overflow: hidden; margin: 2.5rem 0 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; gap: .6rem; width: max-content; animation: ap-marquee 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  padding: .35rem 1rem; border-radius: 999px; font-size: .78rem; font-weight: 500; white-space: nowrap;
  background: var(--ap-tile); color: var(--ap-text); border: 1px solid var(--ap-line);
}
@keyframes ap-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__track .dup { display: none; }
}

/* 5. Preklopnik vlog (samo CSS: radio gumbi + :has) */
.role { margin: 2rem 0; text-align: left; }
.role input { position: absolute; opacity: 0; pointer-events: none; }
.role__tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 999px; background: var(--ap-tile); border: 1px solid var(--ap-line); }
.role__tabs label {
  padding: .45rem 1.15rem; border-radius: 999px; cursor: pointer;
  font-size: .75rem; font-weight: 600; color: var(--ap-muted); transition: background .2s, color .2s;
}
.role__panel { display: block; margin-top: 1.5rem; }
@supports selector(:has(*)) {
  .role__panel { display: none; animation: ap-fade .45s both; }
  .role:has(#r1:checked) .role__panel--1,
  .role:has(#r2:checked) .role__panel--2,
  .role:has(#r3:checked) .role__panel--3,
  .role:has(#r4:checked) .role__panel--4 { display: block; }
  .role:has(#r1:checked) label[for="r1"],
  .role:has(#r2:checked) label[for="r2"],
  .role:has(#r3:checked) label[for="r3"],
  .role:has(#r4:checked) label[for="r4"] { background: var(--ap-bg); color: var(--ap-text); box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
  .role:has(#r1:focus-visible) label[for="r1"],
  .role:has(#r2:focus-visible) label[for="r2"],
  .role:has(#r3:focus-visible) label[for="r3"],
  .role:has(#r4:focus-visible) label[for="r4"] { outline: 2px solid var(--ap-blue); outline-offset: 2px; }
}
@keyframes ap-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.role__panel h4 { margin: 0 0 .3em; }
.role__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.role__card { padding: 1.3rem 1.3rem 1.1rem; border-radius: var(--ap-radius, 20px); background: var(--ap-tile); border: 1px solid var(--ap-line); }
.md-typeset .role__card strong { display: block; font-size: 1.05rem; letter-spacing: -.015em; margin-bottom: .3rem; }
.md-typeset .role__card p { margin: 0; color: var(--ap-muted); font-size: .8rem; }
@media (max-width: 734px) { .role__grid { grid-template-columns: 1fr; } }

/* 6. Veščine s stolpci (raven od 0 do 100, polni se ob drsenju) */
.skill { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; padding: .85rem 0; border-top: 1px solid var(--ap-line); }
.skill__name { font-weight: 600; }
.skill__meta { color: var(--ap-muted); font-size: .72rem; text-align: right; }
.skill__bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--ap-tile); overflow: hidden; }
.skill__bar i {
  display: block; height: 100%; width: calc(var(--lvl) * 1%); border-radius: 3px;
  background: var(--ap-grad, linear-gradient(90deg, #0071e3, #5ac8fa));
  transform-origin: left; animation: ap-grow 1.1s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes ap-grow { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .skill__bar i { animation: none; } }

/* 7. Časovnica kariere */
.timeline { border-left: 2px solid var(--ap-line); margin: 1.5rem 0 1.5rem .4rem; padding-left: 1.6rem; }
.tl-item { position: relative; margin-bottom: 2.4rem; }
.tl-item::before {
  content: ""; position: absolute; left: -2.2rem; top: .35rem; width: .75rem; height: .75rem; border-radius: 50%;
  background: var(--ap-blue); box-shadow: 0 0 0 4px var(--ap-bg);
}
.tl-date { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ap-muted); }
.md-typeset .tl-item h3 { margin-top: .2rem; }
.kpis { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 0; }
.kpi-chip { padding: .2rem .75rem; border-radius: 999px; font-size: .7rem; font-weight: 600; background: color-mix(in srgb, var(--ap-blue) 12%, transparent); color: var(--ap-link); }

/* 8. Man stran: o meni kot Linux priročnik */
.man {
  font: .68rem/1.65 var(--md-code-font); background: var(--ap-tile); color: var(--ap-text);
  border: 1px solid var(--ap-line); border-radius: var(--ap-radius, 14px);
  padding: 1.6rem 1.8rem; margin: 1.5rem 0; overflow-x: auto; white-space: pre;
}
.man b { font-weight: 700; }

/* 9. Topologija (SVG, prilagodi se svetli in temni temi) */
.topo { width: 100%; height: auto; margin: 1.5rem 0; }
.topo .node rect { fill: var(--ap-tile); stroke: var(--ap-line); stroke-width: 1.2; transition: stroke .2s; }
.topo .node:hover rect { stroke: var(--ap-blue); }
.topo .node--core rect { fill: var(--ap-text); }
.topo .node--core text { fill: var(--ap-bg); }
.topo text { fill: var(--ap-text); font: 600 12.5px var(--md-text-font); text-anchor: middle; }
.topo .sub { font-weight: 400; font-size: 10.5px; fill: var(--ap-muted); }
.topo .link { fill: none; stroke: var(--ap-muted); stroke-width: 1.4; stroke-dasharray: 4 5; animation: ap-dash 1.4s linear infinite; }
.topo .link--vpn { stroke: var(--accent); }
@keyframes ap-dash { to { stroke-dashoffset: -18; } }
@media (prefers-reduced-motion: reduce) { .topo .link { animation: none; } }

/* 10. Tiket, oznake in opombe */
.ticket { border: 1px solid var(--ap-line); border-radius: var(--ap-radius, 14px); overflow: hidden; margin: 1.2rem 0; background: var(--ap-bg); text-align: left; }
.ticket__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; padding: .75rem 1.1rem; background: var(--ap-tile); font-size: .72rem; color: var(--ap-muted); }
.ticket__head b { color: var(--ap-text); }
.ticket__body { padding: .9rem 1.2rem 1rem; }
.md-typeset .ticket__body h4 { margin: .2em 0 .3em; }
.md-typeset .ticket__body p { margin: .3em 0; }
.tag { display: inline-block; padding: .08rem .6rem; border-radius: 6px; font-size: .65rem; font-weight: 600; margin-right: .3rem; background: var(--ap-tile); color: var(--ap-text); }
.tag--green { background: #dbeddb; color: #1c3829; }
.tag--blue { background: #d3e5ef; color: #183347; }
.tag--yellow { background: #fdecc8; color: #402c1b; }
.tag--pink { background: #f5e0e9; color: #4c2337; }
.tag--orange { background: #fadec9; color: #49290e; }

/* 11. Tedenski ritem (administrator) */
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 1.5rem 0; }
.week__day { padding: 1rem; border-radius: var(--ap-radius, 14px); background: var(--ap-tile); border: 1px solid var(--ap-line); text-align: left; }
.week__day b { display: block; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ap-muted); margin-bottom: .5rem; }
.week__day ul { margin: 0; padding-left: 1rem; font-size: .75rem; }
@media (max-width: 734px) { .week { grid-template-columns: 1fr; } }

/* 12. Kazalnik poteka branja (CSS scroll-driven) */
@supports (animation-timeline: scroll()) {
  body::before {
    content: ""; position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 10;
    background: var(--ap-blue); transform-origin: left; transform: scaleX(0);
    animation: ap-progress linear both; animation-timeline: scroll(root);
  }
  @keyframes ap-progress { to { transform: scaleX(1); } }
}
@media print { body::before { display: none; } }

.stats--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 734px) { .stats--4 { grid-template-columns: repeat(2, 1fr); } }
.md-typeset .band--center .role { text-align: left; }
.md-typeset .band--center .role__tabs { margin: 0 auto; display: flex; width: max-content; max-width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.2rem; }

/* ==========================================================
   Dodatni gradniki za nove variante (zgodba, metrike, poglavja, status)
   ========================================================== */

/* Zgodba v štirih vrsticah (vzorec: osebne strani, ki se začnejo s kratko časovnico kariere) */
.story { list-style: none; margin: 2.5rem auto 0; padding: 0; max-width: 780px; text-align: left; }
.md-typeset .story li {
  display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.5rem; align-items: baseline;
  margin: 0; padding: 1.25rem 0; border-top: 1px solid var(--ap-line);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem); letter-spacing: -.02em; line-height: 1.25;
}
.md-typeset .story li:last-child { border-bottom: 1px solid var(--ap-line); }
.md-typeset .story b { font-size: .6em; letter-spacing: .08em; text-transform: uppercase; color: var(--ap-muted); font-weight: 600; }
@media (max-width: 734px) { .md-typeset .story li { grid-template-columns: 1fr; gap: .2rem; } }

/* Metrike (velike številke) */
.metrics { display: flex; flex-wrap: wrap; gap: 1.2rem 2.6rem; margin: 1.2rem 0 0; }
.metrics div { display: flex; flex-direction: column; }
.metrics strong { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.metrics span { font-size: .7rem; color: var(--ap-muted); margin-top: .35rem; }

/* Oznaka »zamenjaj« (pymdownx.mark): rumena, da je ne spregledaš */
.md-typeset mark { background: #fff3b0; color: #222; padding: .05em .3em; border-radius: 4px; }
@media print { .md-typeset mark { background: none; } }
.muted { color: var(--ap-muted); font-size: .8rem; }

/* Urednička poglavja z obrobljenimi številkami */
.chapters { counter-reset: chapter; max-width: 1024px; margin: 0 auto; padding: 0 22px; }
.chapter {
  counter-increment: chapter; display: grid; grid-template-columns: minmax(6rem, 24%) 1fr; gap: 2rem;
  padding: clamp(40px, 8vw, 88px) 0; border-top: 1px solid var(--ap-line);
}
.chapter::before {
  content: counter(chapter, decimal-leading-zero);
  font-size: clamp(4rem, 12vw, 8.5rem); font-weight: 800; line-height: .85; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1.5px var(--ap-text);
}
.md-typeset .chapter h2 { margin: 0 0 .5em; font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.chapter p { max-width: 52ch; font-size: 1rem; }
@media (max-width: 734px) { .chapter { grid-template-columns: 1fr; gap: .8rem; } }

/* Status stran: pas, komponente, doba delovanja, incidenti */
.statusbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem;
  padding: 1.15rem 1.4rem; border-radius: var(--ap-radius, 12px); background: #16a34a; color: #fff; font-weight: 600;
}
.statusbar small { font-weight: 400; opacity: .9; }
.comp { padding: 1.1rem 0; border-top: 1px solid var(--ap-line); }
.comp__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; }
.comp__name { font-weight: 600; font-size: 1rem; }
.pill-st { font-size: .66rem; font-weight: 700; padding: .12rem .7rem; border-radius: 999px; letter-spacing: .01em; }
.pill-st--ok { color: #16a34a; background: color-mix(in srgb, #16a34a 15%, transparent); }
.pill-st--learn { color: #d97706; background: color-mix(in srgb, #d97706 16%, transparent); }
.pill-st--plan { color: #6b7280; background: color-mix(in srgb, #6b7280 16%, transparent); }
.uptime { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; margin: .7rem 0 .25rem; }
.uptime i { display: block; height: 26px; border-radius: 3px; background: #22c55e; }
.uptime i.m { background: #f59e0b; }
.uptime i.o { background: color-mix(in srgb, var(--ap-text) 16%, transparent); }
.uptime__axis { display: flex; justify-content: space-between; font-size: .62rem; color: var(--ap-muted); }
.incident { border: 1px solid var(--ap-line); border-radius: var(--ap-radius, 12px); padding: 1.2rem 1.4rem; margin: 1.2rem 0; background: var(--ap-tile); }
.incident h3 { margin: 0 0 .2em; }
.incident__meta { font-size: .7rem; color: var(--ap-muted); margin-bottom: .8rem; }
.incident ol { list-style: none; padding: 0; margin: .5rem 0 0; }
.incident li { padding: .55rem 0 .55rem 1.1rem; border-left: 2px solid var(--ap-line); margin: 0; font-size: .85rem; position: relative; }
.incident li b { display: inline-block; min-width: 6.5rem; }
.incident li::before { content: ""; position: absolute; left: -5px; top: 1rem; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; }

/* ==========================================================
   MOTION KIT: napredne animacije (po zgledu nagrajenih portfeljev).
   Vse je neobvezno in se izklopi ob »zmanjšaj gibanje«. Kar brskalnik ne podpira, se preprosto ne zgodi.
   ========================================================== */

/* 1. Prehodi med stranmi (cross-document view transitions: Chrome 126+, Safari 18.2+) */
@view-transition { navigation: auto; }
.md-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .25s ease both; }
::view-transition-new(root) { animation: vt-in .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* 2. Aurora ozadje (utripajoče barvne lise) */
.aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%; filter: blur(70px); opacity: .5; animation: ap-aurora 24s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: var(--au1, #6d73ff); left: -15vmax; top: -28vmax; }
.aurora i:nth-child(2) { background: var(--au2, #22d3ee); right: -22vmax; top: -12vmax; animation-duration: 30s; animation-delay: -8s; }
.aurora i:nth-child(3) { background: var(--au3, #f472b6); left: 18vmax; top: 6vmax; opacity: .32; animation-duration: 36s; animation-delay: -15s; }
@keyframes ap-aurora { to { transform: translate(8vmax, 6vmax) rotate(40deg) scale(1.15); } }
.hero-fx { position: relative; overflow: hidden; isolation: isolate; }

/* 3. Kartica z vrtečim se robom (conic gradient) */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.glow { position: relative; isolation: isolate; }
.glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
  background: conic-gradient(from var(--ang), transparent 0 55%, var(--glow, #a78bfa) 78%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ap-spin 7s linear infinite;
}
@keyframes ap-spin { to { --ang: 360deg; } }

/* 4. Žaromet, nagib in magnetni gumbi (JavaScript nastavi --mx, --my, --rx, --ry, --tx, --ty) */
[data-spot] { position: relative; overflow: hidden; }
[data-spot]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--ap-blue) 24%, transparent), transparent 60%);
}
[data-spot]:hover::after { opacity: 1; }
[data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .18s ease-out; will-change: transform; }
[data-magnetic] { transform: translate(var(--tx, 0), var(--ty, 0)); transition: transform .22s ease-out; }

/* 5. Razkritje besedila ob drsenju (besede so ločene ob gradnji; samo CSS) */
.words { font-size: clamp(1.5rem, 4.2vw, 2.9rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.18; max-width: 22em; }
@supports (animation-timeline: view()) {
  .words .w { opacity: .18; animation: ap-word linear both; animation-timeline: view(); animation-range: entry 25% cover 38%; }
  @keyframes ap-word { to { opacity: 1; } }
}

/* 6. Kartice, ki se zlagajo (sticky) */
.stack { display: grid; gap: 1.6rem; padding-bottom: 8vh; }
.stack__card {
  position: sticky; top: calc(4.6rem + var(--i, 0) * 1.3rem); padding: 2rem 2rem 1.6rem; text-align: left;
  border-radius: var(--ap-radius, 24px); background: var(--ap-tile); border: 1px solid var(--ap-line); box-shadow: 0 -12px 40px rgba(0, 0, 0, .1);
}
.stack__card h3 { margin-top: 0; }
@supports (animation-timeline: view()) {
  .stack__card { animation: ap-stack linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  @keyframes ap-stack { from { transform: translateY(46px) scale(.96); opacity: .35; } }
}

/* 7. Vodoravni drsnik z izpostavljeno središčno kartico */
.snap { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 22px 28px; scroll-padding: 0 22px; text-align: left; }
.snap > * { flex: 0 0 min(84%, 400px); scroll-snap-align: center; }
@supports (animation-timeline: view()) {
  .snap > * { animation: ap-focus linear both; animation-timeline: view(inline); animation-range: cover; }
  @keyframes ap-focus { 0%, 100% { transform: scale(.94); opacity: .55; } 50% { transform: scale(1); opacity: 1; } }
}

/* 8. Ogromen trak z besedami in črke, ki poskočijo ob miški */
.ticker { overflow: hidden; margin: 2rem 0; border-block: 1px solid var(--ap-line); }
.ticker .marquee__track { gap: 0; animation-duration: 40s; }
.ticker .marquee__track span {
  font-size: clamp(3rem, 11vw, 8.5rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.1; padding: 0 1.4rem;
  background: none; border: none; color: transparent; -webkit-text-stroke: 1.5px var(--ap-text);
}
.ticker .marquee__track span:nth-child(even) { color: var(--ap-text); -webkit-text-stroke: 0; }
.hl span { display: inline-block; transition: transform .38s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 16ms); }
.hl:hover span { transform: translateY(-.14em); }
.shimmer {
  background: linear-gradient(90deg, var(--ap-text) 0%, var(--ap-blue) 40%, var(--ap-text) 80%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: ap-shimmer 7s linear infinite;
}
@keyframes ap-shimmer { to { background-position: -220% 0; } }

/* 9. Kurzor po meri (kazalec ostane viden; obroč ga samo spremlja) */
.cursor, .cursor-ring { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 100; mix-blend-mode: difference; opacity: 0; transition: opacity .2s; }
.cursor { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; }
.cursor-ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1.5px solid #fff; transition: opacity .2s, width .2s, height .2s, margin .2s, background .2s; }
.has-cursor .cursor, .has-cursor .cursor-ring { opacity: 1; }
.cursor-ring.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 255, 255, .25); }
@media (hover: none), print { .cursor, .cursor-ring { display: none; } }

/* 10. Omrežni hero (canvas ustvari JavaScript) in paketki v SVG shemi */
.netfx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.topo .packet { fill: var(--ap-blue); }
@media (prefers-reduced-motion: reduce) { .topo .packet { display: none; } }

/* 11. Gladek odpiralnik (FAQ): višina se animira */
:root { interpolate-size: allow-keywords; }
.md-typeset details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s ease, content-visibility .35s allow-discrete; }
.md-typeset details[open]::details-content { block-size: auto; }

/* 12. Zamenjava barve (gumb ustvari JavaScript) */
.accent-btn {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 30; width: 2.7rem; height: 2.7rem; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--ap-line); background: var(--ap-glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  display: grid; place-items: center; transition: transform .2s;
}
.accent-btn:hover { transform: scale(1.1) rotate(20deg); }
.accent-btn i { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--ap-blue); display: block; }
@media print { .accent-btn { display: none; } }

/* 13. Vzporedni pomik (parallax) ob drsenju */
@supports (animation-timeline: scroll()) {
  .parallax { animation: ap-par linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  @keyframes ap-par { to { transform: translateY(var(--py, -70px)); } }
}

/* 14. Scena: lepljiv naslov na levi, vsebina drsi desno */
.scene { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; max-width: 1024px; margin: 0 auto; padding: 0 22px; text-align: left; }
.scene__sticky { position: sticky; top: 6.5rem; align-self: start; }
.scene__body > * + * { margin-top: 2rem; }
@media (max-width: 734px) { .scene { grid-template-columns: 1fr; gap: 1.2rem; } .scene__sticky { position: static; } }

/* Ravni znanja (čipi) */
.chip.lv-3 { border-color: var(--ap-blue); background: color-mix(in srgb, var(--ap-blue) 14%, transparent); font-weight: 600; }
.chip.lv-2 { border-color: var(--ap-line); }
.chip.lv-1 { border-style: dashed; color: var(--ap-muted); background: transparent; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .72rem; color: var(--ap-muted); margin: .5rem 0 1.5rem; }
.legend .chip { margin-right: .4rem; }
.cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 1.2rem 0; text-align: left; }
.cardgrid > div { padding: 1.2rem 1.3rem; border-radius: var(--ap-radius, 18px); background: var(--ap-tile); border: 1px solid var(--ap-line); }
.md-typeset .cardgrid h4 { margin: 0 0 .3em; font-size: 1rem; }
.md-typeset .cardgrid p { margin: .2em 0; font-size: .8rem; color: var(--ap-muted); }
.md-typeset .cardgrid ul { margin: .4em 0 0; padding-left: 1.1em; font-size: .8rem; color: var(--ap-muted); }

/* ==========================================================
   Obrazec za sporočila (floating labels, stanja pošiljanja, animacija uspeha)
   ========================================================== */
.cf { position: relative; max-width: 640px; margin: 1.5rem 0 2rem; text-align: left; }
.cf__fields { display: grid; gap: 1rem; }
.cf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .cf__row { grid-template-columns: 1fr; } }
.cf__field { position: relative; }
.cf__field input, .cf__field select, .cf__field textarea {
  width: 100%; box-sizing: border-box; padding: 1.4rem 1rem .55rem; font: inherit; font-size: .85rem; color: var(--ap-text);
  background: var(--ap-tile); border: 1px solid var(--ap-line); border-radius: calc(var(--ap-radius, 20px) * .55); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.cf__field textarea { min-height: 9.5rem; resize: vertical; line-height: 1.5; }
.cf__field label {
  position: absolute; left: 1rem; top: 1rem; font-size: .85rem; color: var(--ap-muted); pointer-events: none;
  transform-origin: left top; transition: transform .2s, color .2s;
}
.cf__field input:focus + label, .cf__field input:not(:placeholder-shown) + label,
.cf__field textarea:focus + label, .cf__field textarea:not(:placeholder-shown) + label,
.cf__field select + label { transform: translateY(-.62rem) scale(.78); }
.cf__field :is(input, select, textarea):focus { border-color: var(--ap-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ap-blue) 26%, transparent); }
.cf__field :is(input, textarea):user-invalid { border-color: #ef4444; }
.cf__count { position: absolute; right: .8rem; bottom: .5rem; font-size: .62rem; color: var(--ap-muted); pointer-events: none; }
.cf__consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .72rem; line-height: 1.45; color: var(--ap-muted); }
.cf__consent input { margin-top: .15rem; accent-color: var(--ap-blue); width: 1rem; height: 1rem; flex: none; }
.cf__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.cf__btn {
  display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; border: none; border-radius: 980px;
  padding: .75em 1.6em; font: inherit; font-size: .85rem; font-weight: 600; color: #fff; background: var(--ap-blue); transition: background .2s, transform .2s;
}
.cf__btn:hover { background: var(--ap-blue-hover); }
.cf__btn[disabled] { opacity: .7; cursor: progress; }
.cf__btn .spin { display: none; width: .9rem; height: .9rem; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: cf-spin .7s linear infinite; }
.cf[data-state="sending"] .cf__btn .spin { display: inline-block; }
@keyframes cf-spin { to { transform: rotate(360deg); } }
.cf__status { min-height: 1.2rem; font-size: .8rem; color: var(--ap-muted); }
.cf[data-state="error"] .cf__status { color: #ef4444; animation: cf-shake .4s; }
@keyframes cf-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.cf__done { display: none; padding: 2rem; text-align: center; border-radius: var(--ap-radius, 20px); background: var(--ap-tile); border: 1px solid var(--ap-line); }
.cf[data-state="ok"] .cf__fields { display: none; }
.cf[data-state="ok"] .cf__done { display: grid; justify-items: center; gap: .6rem; animation: ap-fade .5s both; }
.cf__done svg { width: 3.4rem; height: 3.4rem; }
.cf__done circle { fill: none; stroke: var(--ap-blue); stroke-width: 3; stroke-dasharray: 160; stroke-dashoffset: 160; animation: cf-draw .7s ease forwards; }
.cf__done path { fill: none; stroke: var(--ap-blue); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: cf-draw .5s .45s ease forwards; }
@keyframes cf-draw { to { stroke-dashoffset: 0; } }
.cf__done p { margin: 0; font-size: .95rem; }
.cf__done button { margin-top: .4rem; background: none; border: none; color: var(--ap-link); cursor: pointer; font: inherit; font-size: .8rem; }
@media (prefers-reduced-motion: reduce) { .cf__done circle, .cf__done path { animation: none; stroke-dashoffset: 0; } .cf[data-state="error"] .cf__status { animation: none; } }
@media print { .cf { display: none; } }

/* ===== NOC / terminal: temno, fosforno zelena, mono naslovi (vzorec: sysadmin portfolio s terminalom in omrežno vizualizacijo) ===== */
:root {
  --md-text-font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ap-radius: 8px;
  --ap-blue: var(--accent);
  --ap-blue-hover: var(--accent-hover);
  --ap-grad: linear-gradient(90deg, var(--accent), #22d3ee);
}
[data-md-color-scheme="slate"] {
  --ap-bg: #080b09; --ap-bg-alt: #0c110e; --ap-tile: #0f1511; --ap-text: #d5ded7; --ap-muted: #7d8c80;
  --ap-line: rgba(var(--accent-rgb), .17); --ap-glass: rgba(8, 11, 9, .8); --ap-link: var(--accent-soft);
  --md-default-bg-color: #080b09; --md-default-fg-color: #d5ded7; --md-default-fg-color--light: #7d8c80;
  --md-default-fg-color--lighter: #56635a; --md-default-fg-color--lightest: rgba(var(--accent-rgb), .14);
  --md-primary-fg-color: #0c110e; --md-accent-fg-color: var(--accent-soft); --md-typeset-color: #d5ded7; --md-typeset-a-color: var(--accent-soft);
  --md-code-bg-color: #0f1511; --md-footer-bg-color: #080b09; --md-footer-bg-color--dark: #080b09;
}
.md-typeset h1, .md-typeset h2, .md-typeset h3, .md-typeset .eyebrow, .md-typeset .tile__eyebrow, .md-header__title {
  font-family: var(--md-code-font); letter-spacing: -.02em;
}
.md-typeset h1.display, .md-typeset h2.display { font-weight: 700; letter-spacing: -.04em; }
.md-typeset .eyebrow { color: var(--accent); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }
.md-typeset h2::before { content: "## "; color: var(--accent); font-weight: 400; }
.band--hero { position: relative; overflow: hidden; isolation: isolate; }
.band--hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 50% at 50% 0%, rgba(var(--accent-rgb), .2), transparent 70%),
    linear-gradient(var(--ap-line) 1px, transparent 1px), linear-gradient(90deg, var(--ap-line) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 30%, transparent 78%);
}
.md-typeset .md-button { border-radius: 6px; font-family: var(--md-code-font); font-size: .75rem; color: var(--ap-text); border-color: var(--ap-line); background: transparent; }
.md-typeset .md-button:hover, .md-typeset .md-button:focus { border-color: var(--accent); background: rgba(var(--accent-rgb), .1); color: var(--accent); }
.md-typeset .md-button--primary { background: var(--accent); border-color: var(--accent); color: #04130a; }
.md-typeset .md-button--primary:hover, .md-typeset .md-button--primary:focus { background: var(--accent-hover); border-color: var(--accent-hover); color: #04130a; }
.window { background: #0a0f0c; box-shadow: 0 0 0 1px var(--ap-line), 0 24px 70px rgba(0, 0, 0, .6); border-radius: 8px; }
.window__bar { background: #0f1511; }
.window .ok { color: var(--accent); }
.band--dark { background: var(--ap-bg-alt); border-block: 1px solid var(--ap-line); }
.tile, .week__day, .incident { background: var(--ap-tile); border: 1px solid var(--ap-line); }
.kpi-chip { background: rgba(var(--accent-rgb), .1); color: var(--accent-soft); font-family: var(--md-code-font); }
.topo .node--core rect { fill: var(--accent); }
.topo .link { stroke: var(--accent); opacity: .75; }
.topo .node:hover rect { stroke: var(--accent); }
.md-typeset .admonition, .md-typeset details { border: 1px solid var(--ap-line); background: var(--ap-tile); }
body::after {
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .18;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .5) 0 1px, transparent 1px 3px);
}
@media print, (prefers-reduced-motion: reduce) { body::after { display: none; } }

/* ==========================================================
   MOBILNE NAPRAVE (telefon in tablica) in berljivost.
   Preizkušeno z scripts/mobile-test.py (okno 390 px in 1440 px).
   ========================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: clip; }
.nb { white-space: nowrap; }
.md-typeset .admonition, .md-typeset details { font-size: .78rem; }

/* sheme (SVG): večje črke; na ozkem zaslonu se shema drsi vstran namesto da se pomanjša */
.topo text { font-size: 14px; }
.topo .sub { font-size: 12px; }
.topo-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.topo-wrap + p.muted { margin-top: -.6rem; }

@media (max-width: 734px) {
  .topo { min-width: 640px; }
  .band { padding: 56px 0; }
  .band--hero { padding-top: 40px; padding-bottom: 48px; }
  .band__inner { padding: 0 18px; }
  .md-content__inner { padding: 1.6rem 18px 2.6rem; }
  .md-typeset h1.display { font-size: clamp(2rem, 10.2vw, 2.8rem); }
  .md-typeset h2.display { font-size: clamp(1.6rem, 8vw, 2.1rem); }
  .md-typeset h1 { font-size: clamp(1.9rem, 9vw, 2.5rem); }
  .md-typeset p.lead { font-size: 1.02rem; }
  .avail { font-size: .66rem; }

  /* gumbi: daljši dotik (vsaj 44 px), v ozkem zaslonu čez vso širino */
  .md-typeset .md-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: .55em 1.5em; }
  .band__inner > p > a.md-button { display: flex; width: 100%; max-width: 420px; margin: 0 auto .6rem; }
  .band:not(.band--center) .band__inner > p > a.md-button { margin-left: 0; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .md-button { margin: 0; }

  /* terminal in man stran */
  .md-typeset .window pre { font-size: .56rem; padding: 14px 14px 18px; }
  .md-typeset .window pre > code { white-space: pre-wrap; }
  .window__bar span { display: none; }
  .man { font-size: .62rem; padding: 1rem; -webkit-overflow-scrolling: touch; }

  /* ploščice, številke, kartice */
  .tile { padding: 28px 22px; min-height: 0; }
  .tile--wide { min-height: 0; }
  .md-typeset .tile p.tile__big { font-size: 3.4rem; }
  .stat strong { font-size: 2.3rem; }
  .stack__card { top: calc(3.7rem + var(--i, 0) * .9rem); padding: 1.3rem; }
  .snap > * { flex-basis: 86%; }
  .ticker .marquee__track span { font-size: 3.2rem; padding: 0 .9rem; }

  /* preklopnik vlog: ena vrstica čez vso širino */
  .role__tabs, .md-typeset .band--center .role__tabs { display: flex; width: 100%; max-width: 100%; border-radius: 16px; }
  .role__tabs label { flex: 1 1 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: .7rem .25rem; font-size: .66rem; line-height: 1.2; border-radius: 12px; }

  /* obrazec */
  .cf__btn { width: 100%; justify-content: center; min-height: 50px; }
  .cf__actions { flex-direction: column; align-items: stretch; }
  .cf__status { text-align: center; }
  .cf__consent input { width: 1.25rem; height: 1.25rem; }

  /* zmogljivost na telefonu: manj zameglitve */
  .tile, .role__card, .cardgrid > div, .stack__card, .cf__done { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .aurora i { filter: blur(42px); }
  .aurora i:nth-child(3) { display: none; }
  .accent-btn { width: 2.4rem; height: 2.4rem; right: max(.8rem, env(safe-area-inset-right)); bottom: max(.8rem, env(safe-area-inset-bottom)); }
}

/* ==========================================================
   MOBILNE NAPRAVE: popravki za ozke zaslone, dotik in zmogljivost
   ========================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.md-main { overflow-x: clip; }
.md-typeset { overflow-wrap: break-word; }
.md-typeset h1.display, .md-typeset h2.display { overflow-wrap: anywhere; hyphens: auto; }
.hl { white-space: nowrap; }

/* Velikosti: manjši najmanjši naslovi, da dolge besede ne prelivajo ozkih zaslonov */
.md-typeset h1.display { font-size: clamp(2.05rem, 9vw, 5.4rem); }
.md-typeset h2.display { font-size: clamp(1.7rem, 7vw, 4rem); }
.stat strong { font-size: clamp(2.1rem, 6.5vw, 4.6rem); }
.tile__big { font-size: clamp(3rem, 12vw, 6rem); }

/* Sheme in SVG: na telefonu se drsijo vodoravno, namesto da bi bile drobne */
.topo-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1rem 0; }
.topo { min-width: 620px; }
.topo-wrap::after { content: ""; display: block; }
@media (min-width: 735px) { .topo { min-width: 0; } }

/* Terminal: vrstice se drsijo, ne režejo */
.window pre { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 734px) {
  .md-typeset .window pre { font-size: .58rem; padding: 16px 16px 20px; }
  .window__bar span { display: none; }
  .band { padding-block: clamp(48px, 14vw, 72px); }
  .md-typeset .md-button { margin-bottom: .5rem; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .md-button { text-align: center; }
  .md-typeset .role__tabs { width: 100%; justify-content: center; }
  .band--center .role__tabs { width: 100% !important; }
  .md-typeset table:not([class]) { font-size: .7rem; }
  .marquee__track span { font-size: .7rem; }
  .ticker .marquee__track span { font-size: clamp(2.6rem, 14vw, 4rem); }

  /* Težke učinke na telefonu zmanjšamo (zmogljivost, baterija) */
  .aurora i { filter: blur(40px); animation: none; opacity: .4; }
  .tile, .role__card, .cardgrid > div, .stack__card, .cf__done { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .stack__card { position: static; box-shadow: none; }
  .glow::before { animation-duration: 12s; }
  .scene { margin-block: 40px; }
}

/* Dotik: večje tarče, brez lepljivih hover stanj */
@media (pointer: coarse) {
  .md-typeset .md-button, .cf__btn, .role__tabs label { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .md-typeset .md-button { padding-inline: 1.4em; }
  .cf__field input, .cf__field select { min-height: 48px; }
  .md-nav__link { padding-block: .35rem; }
  .accent-btn { width: 3rem; height: 3rem; bottom: calc(1rem + env(safe-area-inset-bottom)); }
}
@media (hover: none) {
  .md-typeset .grid.cards > ul > li:hover, [data-tilt], [data-magnetic] { transform: none; }
  [data-spot]::after { display: none; }
}

/* Pisave obrazcev vsaj 16 px, da iOS ne povečuje zaslona ob vnosu */
.cf__field input, .cf__field select, .cf__field textarea, .md-search__input { font-size: max(16px, .85rem); }

/* Zelo ozki telefoni */
@media (max-width: 360px) {
  .md-content__inner { padding-inline: 16px; }
  .band__inner { padding-inline: 16px; }
  .tile { padding: 28px 22px; }
}

/* ==========================================================
   UI: moderno iskanje, preklopnik jezika, obvestilo o piškotkih, spodnja navigacija
   ========================================================== */

/* ---------- Iskanje: tablica v obliki tabletke, plošča z rezultati kot paleta ukazov ---------- */
.md-search__form { height: 2rem; border-radius: 999px; box-shadow: none; background: color-mix(in srgb, var(--ap-text) 7%, transparent); transition: background .2s, box-shadow .2s; }
.md-search__form:hover { background: color-mix(in srgb, var(--ap-text) 11%, transparent); }
.md-search__input { font-size: .72rem; }
.md-search__input::placeholder, .md-search__icon { color: var(--ap-muted); }
.md-search__form::after {
  content: "/"; position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); pointer-events: none;
  font: 600 .6rem var(--md-code-font); color: var(--ap-muted); border: 1px solid var(--ap-line); border-radius: 6px; padding: .05rem .4rem;
}
.md-search__form:focus-within::after { display: none; }
@media (hover: none) { .md-search__form::after { display: none; } }
[data-md-toggle="search"]:checked ~ .md-header .md-search__form { background: var(--ap-bg); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ap-blue) 40%, transparent); }
.md-search__overlay { background-color: color-mix(in srgb, var(--ap-bg) 55%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.md-search__output { border-radius: 18px; margin-top: .4rem; border: 1px solid var(--ap-line); background: var(--ap-bg); box-shadow: 0 28px 80px rgba(0, 0, 0, .28); overflow: hidden; }
.md-search-result__meta { background: var(--ap-bg-alt); color: var(--ap-muted); font-size: .62rem; letter-spacing: .04em; }
.md-search-result__item { box-shadow: none; border-bottom: 1px solid var(--ap-line); }
.md-search-result__link { border-radius: 0; }
.md-search-result__link:hover, .md-search-result__link:focus { background: var(--ap-tile); }
.md-search-result__title { font-weight: 650; letter-spacing: -.01em; }
.md-search-result__teaser { color: var(--ap-muted); }
.md-search-result mark, .md-search-result__teaser mark { background: color-mix(in srgb, var(--ap-blue) 24%, transparent); color: inherit; border-radius: 3px; padding: 0 .1em; }
.md-search__suggest { color: var(--ap-muted); }
@media (max-width: 76.1875em) { .md-search__output { border-radius: 0; margin: 0; border: none; box-shadow: none; } }

/* ---------- Obvestilo o piškotkih ---------- */
.md-consent { z-index: 60; }
.md-consent__overlay { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); background-color: color-mix(in srgb, #000 38%, transparent); }
.md-consent__inner { background: transparent; box-shadow: none; padding: 0; }
.md-consent__form {
  margin: 0 auto 1rem; max-width: 640px; padding: 1.2rem 1.4rem; border-radius: 22px; background: var(--ap-bg); color: var(--ap-text);
  border: 1px solid var(--ap-line); box-shadow: 0 28px 90px rgba(0, 0, 0, .35);
}
.md-consent__form h4 { margin: 0 0 .4rem; font-size: 1.05rem; letter-spacing: -.015em; }
.md-consent__form p { font-size: .75rem; color: var(--ap-muted); margin: .3rem 0 1rem; }
.md-consent__controls { display: flex; flex-wrap: wrap; gap: .5rem; }
.md-consent__controls .md-button { margin: 0; }
@media (max-width: 734px) { .md-consent__form { margin: 0 .6rem calc(.6rem + env(safe-area-inset-bottom)); padding: 1.1rem; border-radius: 20px; } }

/* ---------- Spodnja navigacija na telefonu (po želji; varianta »aplikacija«) ---------- */
.bottomnav { display: none; }
@media (max-width: 76.1875em) {
  .bottomnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: .3rem .4rem calc(.3rem + env(safe-area-inset-bottom)); background: var(--ap-glass);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--ap-line);
  }
  .bottomnav a, .bottomnav label {
    display: grid; justify-items: center; align-content: center; gap: .1rem; min-height: 46px; padding: .25rem 0; cursor: pointer;
    font-size: .56rem; font-weight: 650; color: var(--ap-muted); text-decoration: none; -webkit-tap-highlight-color: transparent;
  }
  .bottomnav svg { width: 1.45rem; height: 1.45rem; fill: currentColor; }
  .bottomnav a[aria-current="page"] { color: var(--ap-blue); }
  body.has-bottomnav { padding-bottom: calc(4.2rem + env(safe-area-inset-bottom)); }
}
@media print { .bottomnav { display: none; } }

/* Povezava do nastavitev piškotkov (v nogi) */
.cookie-link { text-align: center; margin: 0; padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom, 0px)); font-size: .62rem; background: var(--md-footer-bg-color--dark, transparent); }
.cookie-link a { color: var(--md-footer-fg-color--light, var(--ap-muted)); text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 734px) { .has-bottomnav .cookie-link { padding-bottom: 5rem; } }

/* ap-a11y-motion: pri »zmanjšaj gibanje« ostane vse polno vidno */
@media (prefers-reduced-motion: reduce) {
  .words .w, .stack__card, .snap > *, .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
}


/* Diskretni gumbi za iskanje in jezik: možnosti se pokažejo šele ob aktivaciji. */
.md-header__button { opacity: .78; transition: opacity .18s ease, background-color .18s ease; }
.md-header__button:hover, .md-header__button:focus-visible, .md-header__button[aria-expanded="true"] { opacity: 1; }
.md-header__button:focus-visible { outline: 2px solid var(--md-accent-fg-color); outline-offset: 2px; border-radius: .35rem; }
/* Material za MkDocs sam upravlja odpiranje iskalnega polja in izbirnika jezika;
   ti dodatki ohranijo gumbe umirjene in ne prikazujejo dodatnih vrstic vnaprej. */
@media (max-width: 734px) {
  .md-header__button { padding: .45rem; }
  .md-header__button .md-icon { width: 1.15rem; height: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) { .md-header__button { transition: none; } }


/* ==========================================================
   Posodobitev: značke, ikone kartic, lupa in globus iz iste družine
   ========================================================== */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .9rem 0 0; }
.chip { display: inline-block; padding: .2rem .7rem; border: 1px solid rgba(var(--accent-rgb), .2); border-radius: 999px; background: rgba(var(--accent-rgb), .08); color: var(--accent-soft); font-family: var(--md-code-font); font-size: .66rem; font-weight: 600; line-height: 1.5; }
.ico { flex: none; width: 1.1em; height: 1.1em; margin-right: .5em; vertical-align: -.16em; fill: var(--accent); }
/* Kartice: brez dodatnega zgornjega roba pred prvim naslovom (enak zamik v vseh karticah) */
.cardgrid > div > :first-child, .card > :first-child { margin-top: 0; }


/* ==========================================================
   Posodobitev 4: ime v dveh barvah, prosojna glava, kazalo, načrtovana vozlišča
   ========================================================== */
.display .nm-first { color: var(--name-first, #f2f7f3); }
.display .nm-last { color: var(--name-last, #2ed47a); text-shadow: 0 0 32px rgba(var(--accent-rgb), .28); }
.md-header { background-color: rgba(8, 11, 9, .5); background-color: color-mix(in srgb, var(--ap-bg) 40%, transparent); -webkit-backdrop-filter: saturate(160%) blur(24px); backdrop-filter: saturate(160%) blur(24px); }
.md-tabs { background-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.md-nav--secondary > .md-nav__list { padding-left: .5rem; }
.md-nav--secondary .md-nav__link { transition: color .2s, transform .2s; }
.md-nav--secondary .md-nav__link--active { color: var(--ap-blue); font-weight: 700; transform: translateX(4px); }
.topo .node--plan rect { stroke-dasharray: 5 4; }
.topo .node--plan text { opacity: .85; }
.topo .link--plan { stroke-dasharray: 4 4; }
.md-sidebar--secondary { opacity: .6; transition: opacity .25s; }
.md-sidebar--secondary:hover, .md-sidebar--secondary:focus-within { opacity: 1; }

/* Meni na telefonu: brez privzete ikone Material, dokler ni izbran logotip */
.md-nav__title .md-logo { display: none; }
