/* ============================================================ */
/* STRAN.SI – style v2                                          */
/* Dodatne komponente za nove ciljne podstrani in razširitve.    */
/* Naloži se ZA style.css; tokens dedujemo iz :root.             */
/* ============================================================ */

/* ====== Section utility variants (uporabljeno v new-silos.php) ====== */
.section-flow,
.section-matrix,
.section-scenarios,
.section-inner-links,
.section-packages {
  padding: 96px 0;
}

.content-grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.content-grid-three article {
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(8, 13, 26, .04);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.content-grid-three article:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 95, 214, .35);
  box-shadow: 0 18px 40px rgba(47, 95, 214, .12);
}
.content-grid-three article strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}

/* ====== Flow row (horizontal numbered) ====== */
.section-flow {
  background: linear-gradient(180deg, var(--bg), var(--paper));
}
.flow-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.flow-row li {
  position: relative;
  padding: 24px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .22s ease, transform .22s ease;
}
.flow-row li:hover {
  border-color: rgba(47, 95, 214, .35);
  transform: translateY(-2px);
}
.flow-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--blue);
  background: rgba(47, 95, 214, .08);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.flow-row li strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}
.flow-row li p {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* ====== Matrix table ====== */
.section-matrix {
  background: var(--paper);
}
.matrix-wrap {
  overflow-x: auto;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}
.matrix {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-family: var(--font-base);
}
.matrix thead th {
  text-align: left;
  padding: 16px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  background: rgba(47, 95, 214, .06);
  border-bottom: 2px solid var(--line);
}
.matrix tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  vertical-align: top;
  line-height: 1.5;
}
.matrix tbody td:first-child {
  background: rgba(47, 95, 214, .03);
  color: var(--ink);
}
.matrix tbody td strong {
  color: var(--blue);
  font-weight: 700;
}
.matrix tbody tr:last-child td {
  border-bottom: none;
}
.matrix tbody tr:hover td {
  background: rgba(47, 95, 214, .04);
}

/* ====== Scenarios ====== */
.section-scenarios {
  background: linear-gradient(180deg, var(--paper), #eef3fb);
}
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 32px;
}
.scenario-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
}
.scenario-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 95, 214, .35);
  box-shadow: 0 22px 50px rgba(47, 95, 214, .12);
}
.scenario-quote {
  padding: 22px 24px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.scenario-body {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.scenario-body h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.scenario-body p {
  font-size: 0.92rem;
  flex: 1;
}
.scenario-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue);
  align-self: flex-start;
  transition: gap .2s ease;
}
.scenario-link:hover {
  gap: 12px;
}
.scenario-link svg {
  transition: transform .2s ease;
}
.scenario-link:hover svg {
  transform: translateX(2px);
}

/* ====== Inner links navigation ====== */
.section-inner-links {
  background: var(--bg);
}
.inner-links-layout h2 {
  margin-bottom: 28px;
  font-size: 1.8rem;
}
.inner-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.inner-links-grid li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.inner-links-grid li a:hover {
  border-color: rgba(47, 95, 214, .4);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(47, 95, 214, .1);
}
.inner-links-grid li a strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.98rem;
}
.inner-links-grid li a span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 2px;
  line-height: 1.4;
}
.inner-links-grid li a > div,
.inner-links-grid li a > div + svg { /* handled below */ }
.inner-links-grid li a svg {
  flex-shrink: 0;
  margin-left: auto;
  color: var(--blue);
  transition: transform .2s ease;
}
.inner-links-grid li a:hover svg {
  transform: translateX(3px);
}

/* ====== Packages grid ====== */
.section-packages {
  background: var(--paper);
}
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  margin-top: 32px;
}
.package-card {
  position: relative;
  padding: 28px 26px 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.package-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 95, 214, .35);
  box-shadow: 0 24px 52px rgba(47, 95, 214, .12);
}
.package-card.is-featured {
  border: 2px solid var(--blue);
  background: linear-gradient(180deg, var(--paper), #f6f9ff);
}
.package-card .tag {
  position: absolute;
  top: -12px;
  left: 26px;
  background: var(--blue);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.package-card h3 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}
.package-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 14px;
}
.package-range {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.package-for {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.55;
}
.package-for strong {
  color: var(--ink);
}
.package-section {
  margin-bottom: 14px;
}
.package-section h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin: 0 0 8px;
}
.package-section .plus-list,
.package-section .minus-list {
  font-size: 0.88rem;
}
.package-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--blue);
  padding-top: 14px;
  transition: gap .2s ease;
}
.package-cta:hover {
  gap: 12px;
}

/* ====== Reference filter (na /reference) ====== */
.reference-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 28px;
}
.reference-filter button {
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .18s ease;
}
.reference-filter button:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.reference-filter button.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.reference-filter button:focus-visible {
  outline: 3px solid rgba(47, 95, 214, .3);
  outline-offset: 2px;
}
.reference[data-hidden="1"],
.reference-link[data-hidden="1"] {
  display: none;
}

/* ====== Featured references (top 8) na /reference ====== */
.featured-references {
  margin-bottom: 36px;
  padding: 32px;
  background: linear-gradient(135deg, #f6f9ff, #eef3fb);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.featured-references > h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 18px;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.featured-grid a {
  display: block;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: transform .2s ease, border-color .2s ease;
}
.featured-grid a:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
}
.featured-grid strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.featured-grid span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ====== Mega footer dodatki ====== */
.footer-silos {
  padding: 48px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer-silos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.footer-silos-grid h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, .55);
  margin: 0 0 12px;
}
.footer-silos-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-silos-grid a {
  color: rgba(255, 255, 255, .82);
  font-size: 0.92rem;
  transition: color .15s ease, padding-left .15s ease;
  display: inline-block;
  padding-left: 0;
}
.footer-silos-grid a:hover {
  color: #fff;
  padding-left: 4px;
}

/* ====== Home page – nove sekcije ====== */
.section-target-projects {
  padding: 96px 0;
  background: var(--paper);
}
.target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.target-card {
  padding: 26px 22px;
  background: linear-gradient(180deg, var(--paper), #f6f9ff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.target-card:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 95, 214, .4);
  box-shadow: 0 16px 36px rgba(47, 95, 214, .1);
}
.target-card .target-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(47, 95, 214, .1);
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 6px;
}
.target-card strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.target-card span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Najpogostejši začetki projekta */
.section-starts {
  padding: 96px 0;
  background: linear-gradient(180deg, #eef3fb, var(--paper));
}
.starts-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.starts-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  transition: border-color .22s ease, transform .22s ease;
}
.starts-list a:hover {
  border-color: var(--blue);
  transform: translateX(3px);
}
.starts-list a svg {
  margin-left: auto;
  color: var(--blue);
}

/* Tech stack pills (na novi sekciji "Tehnično znanje") */
.section-tech-stack {
  padding: 96px 0;
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-tech-stack::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 95, 214, .15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 95, 214, .15) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .35;
  pointer-events: none;
}
.section-tech-stack .container {
  position: relative;
  z-index: 1;
}
.section-tech-stack h2,
.section-tech-stack h3 { color: #fff; }
.section-tech-stack p,
.section-tech-stack span { color: rgba(255, 255, 255, .75); }
.section-tech-stack .section-label {
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .85);
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 32px;
}
.stack-pill {
  padding: 18px 20px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  transition: background .22s ease, border-color .22s ease, transform .22s ease;
  backdrop-filter: blur(8px);
}
.stack-pill:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(47, 95, 214, .5);
  transform: translateY(-2px);
}
.stack-pill strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.stack-pill span {
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Integration flow diagram (na ERP / home) */
.integration-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 28px 0;
  position: relative;
}
.integration-flow .ifo {
  position: relative;
  padding: 22px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: transform .22s ease, border-color .22s ease;
}
.integration-flow .ifo:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
}
.integration-flow .ifo strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 4px;
  color: var(--ink);
}
.integration-flow .ifo span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ====== Mobile responsive ====== */
@media (max-width: 920px) {
  .section-flow,
  .section-matrix,
  .section-scenarios,
  .section-inner-links,
  .section-packages,
  .section-target-projects,
  .section-starts,
  .section-tech-stack {
    padding: 64px 0;
  }
  .content-grid-three {
    grid-template-columns: 1fr;
  }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.8rem; }
  .package-range { font-size: 1.4rem; }
  .scenario-quote { font-size: 0.98rem; }
  .matrix { min-width: 600px; }
}

@media (max-width: 560px) {
  .section-flow,
  .section-matrix,
  .section-scenarios,
  .section-inner-links,
  .section-packages,
  .section-target-projects,
  .section-starts,
  .section-tech-stack {
    padding: 48px 0;
  }
  .featured-references { padding: 22px 18px; }
  .package-card { padding: 24px 20px; }
}

/* ====== FAQ categorized tabs ====== */
.faq-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 26px;
}
.faq-categories button {
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .18s ease;
}
.faq-categories button:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.faq-categories button.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.faq-item[data-cat-hidden="1"] {
  display: none;
}

/* ====== Subtle hero animations (additive) ====== */
@keyframes nu-pulse {
  0%, 100% { opacity: 0.55; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}
.hero .ai-flow-card span,
.hero .integrations-card span,
.hero .browser-services span {
  animation: nu-pulse 4.5s ease-in-out infinite;
}
.hero .ai-flow-card span:nth-child(2) { animation-delay: 0.4s; }
.hero .ai-flow-card span:nth-child(3) { animation-delay: 0.8s; }
.hero .ai-flow-card span:nth-child(4) { animation-delay: 1.2s; }
.hero .integrations-card span:nth-child(3) { animation-delay: 0.3s; }
.hero .integrations-card span:nth-child(4) { animation-delay: 0.6s; }
.hero .integrations-card span:nth-child(5) { animation-delay: 0.9s; }
.hero .integrations-card span:nth-child(6) { animation-delay: 1.2s; }

@media (prefers-reduced-motion: reduce) {
  .hero .ai-flow-card span,
  .hero .integrations-card span,
  .hero .browser-services span {
    animation: none;
  }
}

/* ====== Accessibility: focus visible ====== */
.scenario-link:focus-visible,
.package-cta:focus-visible,
.starts-list a:focus-visible,
.target-card:focus-visible,
.inner-links-grid li a:focus-visible {
  outline: 3px solid rgba(47, 95, 214, .35);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* ====== Section page detail tweaks for narrow content ====== */
.section-page-detail .split {
  align-items: start;
}
.section-page-detail .feature-panel {
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: 0 14px 32px rgba(8, 13, 26, .05);
}

/* ====== Service hub navigation visibility ====== */
.nav .nav-services-toggle {
  position: relative;
}

/* ============================================================ */
/* Blog (/znanje) + dodatne komponente za drugi cikel            */
/* ============================================================ */

/* Blog hub */
.section-blog-hub { padding: 96px 0; background: var(--paper); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 32px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 95, 214, .35);
  box-shadow: 0 20px 44px rgba(47, 95, 214, .12);
}
.blog-card .blog-cat {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  background: rgba(47, 95, 214, .08);
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: 12px;
}
.blog-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.blog-card p {
  flex: 1;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-display);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.blog-card[data-blog-cat][data-hidden="1"] { display: none; }

/* Blog filter (reuses .reference-filter) */
[data-blog-filter] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 4px;
}
[data-blog-filter] button {
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .18s ease;
}
[data-blog-filter] button:hover { border-color: var(--blue); color: var(--blue); }
[data-blog-filter] button.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Article shell */
.blog-article {
  background: var(--paper);
}
.blog-article-head {
  padding: 56px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--blue);
  margin-bottom: 22px;
  transition: gap .2s ease;
}
.blog-back:hover { gap: 12px; }
.blog-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--muted);
}
.blog-meta .blog-cat {
  padding: 4px 12px;
  background: rgba(47, 95, 214, .1);
  color: var(--blue);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.blog-meta time, .blog-meta .blog-read {
  font-weight: 600;
}
.blog-lead {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  max-width: 800px;
  font-weight: 500;
}
.blog-article-body {
  max-width: 780px;
  padding-bottom: 72px;
}
.blog-article-body h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
  margin: 44px 0 16px;
}
.blog-article-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 12px;
}
.blog-article-body p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--soft-ink);
  margin: 0 0 18px;
}
.blog-article-body strong { color: var(--ink); }
.blog-article-body ul.signal-list { margin: 14px 0 22px; }
.blog-article-body ul.signal-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--soft-ink);
  line-height: 1.55;
}
.blog-article-body ul.signal-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}
.blog-article-body ol {
  margin: 14px 0 22px;
  padding-left: 24px;
  list-style: decimal;
}
.blog-article-body ol li {
  margin-bottom: 8px;
  color: var(--soft-ink);
  line-height: 1.55;
}
.blog-article-body pre {
  background: #0f1729;
  color: #d4e1f5;
  padding: 18px 22px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 18px 0 22px;
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.55;
}
.blog-article-body pre code { background: transparent; color: inherit; padding: 0; }
.blog-article-body code {
  background: rgba(47, 95, 214, .08);
  color: var(--blue);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
}

/* Related articles */
.section-blog-related {
  padding: 72px 0;
  background: linear-gradient(180deg, var(--bg), var(--paper));
  border-top: 1px solid var(--line);
}
.section-blog-related h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.blog-related-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.blog-related-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 16px 32px rgba(47, 95, 214, .12);
}
.blog-related-card .blog-cat {
  align-self: flex-start;
  padding: 3px 10px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  background: rgba(47, 95, 214, .08);
  border-radius: 999px;
}
.blog-related-card strong {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 700;
}
.blog-related-card .blog-related-lead {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Mobile blog */
@media (max-width: 760px) {
  .blog-article-body h2 { font-size: 1.5rem; }
  .blog-article-body h3 { font-size: 1.12rem; }
  .blog-lead { font-size: 1.15rem; }
  .blog-article-head { padding: 36px 0 18px; margin-bottom: 28px; }
  .blog-article-body { padding-bottom: 48px; }
  .blog-article-body pre { font-size: 0.78rem; padding: 14px; }
}

/* Featured grid (already exists) tweak for new pages */
.featured-grid a { transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }

/* ============================================================ */
/* Reference logo placeholder (lasten brand brez slike logotipa) */
/* ============================================================ */
.reference-logo.reference-logo-placeholder {
  position: relative;
  background: linear-gradient(135deg, var(--rlp-c1, #2f5fd6) 0%, var(--rlp-c2, #17b8d2) 100%);
  border: 1px solid rgba(255, 255, 255, .14);
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(8, 13, 26, .08), inset 0 1px 0 rgba(255, 255, 255, .18);
  isolation: isolate;
}
.reference-logo.reference-logo-placeholder::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 255, 255, .35), transparent 45%),
    radial-gradient(circle at 78% 78%, rgba(255, 255, 255, .18), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.reference-logo.reference-logo-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
.reference-logo.reference-logo-placeholder .rlp-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.005em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
  padding: 0 6px;
  white-space: nowrap;
}
.reference-logo.reference-logo-placeholder .rlp-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, .25), transparent 60%);
  opacity: .8;
  z-index: 0;
  pointer-events: none;
}

/* Featured grid: tudi tu naj uporabi placeholder za nove brande */
.featured-grid a.is-placeholder {
  background: linear-gradient(135deg, var(--rlp-c1, #2f5fd6), var(--rlp-c2, #17b8d2));
  color: #fff;
  border-color: transparent;
}
.featured-grid a.is-placeholder strong,
.featured-grid a.is-placeholder span { color: #fff; }
.featured-grid a.is-placeholder:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(47, 95, 214, .25); }

/* Hover micro-animacija na placeholderju */
.reference-link:hover .reference-logo-placeholder::before {
  inset: -30%;
  transition: inset .35s ease;
}
.reference-link .reference-logo-placeholder::before {
  transition: inset .35s ease;
}

/* Manjši padding placeholderja, da je label vedno viden */
.reference-logo.reference-logo-placeholder {
  padding: 12px 14px;
  min-height: 56px;
}

/* Case-hero placeholder (za /reference/<slug> hero pri nepovezanih) */
.section-case-intro .case-hero-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 56px;
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--rlp-c1, #2f5fd6), var(--rlp-c2, #17b8d2));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.005em;
  margin-bottom: 18px;
  box-shadow: 0 12px 28px rgba(47, 95, 214, .22);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.section-case-intro .case-hero-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, .35), transparent 50%),
    linear-gradient(135deg, rgba(255, 255, 255, .18), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.section-case-intro .case-hero-placeholder span {
  position: relative;
  z-index: 1;
}

/* Case hero tagline (pod placeholder logom) */
.section-case-intro .case-hero-tagline {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: -0.005em;
}

@media (max-width: 560px) {
  .section-case-intro .case-hero-placeholder {
    width: 100%;
    max-width: 320px;
    height: 64px;
    font-size: 1.4rem;
  }
}
