/*
Theme Name: ZPR Theme
Theme URI: https://zonaprofesionalnograsta.hr
Author: ZPR Tim
Author URI: https://zonaprofesionalnograsta.hr
Description: Tema za ZPR — Zona Profesionalnog Rasta. Neovisna think-tank inicijativa koja analizira organizacijsku transformaciju u doba AI-a.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zpr-theme
Tags: blog, news, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =====================================================
   DESIGN TOKENS
===================================================== */
:root {
  --ink: #111111;
  --ink2: #222;
  --muted: #6B7280;
  --muted2: #9CA3AF;
  --bg: #FFFFFF;
  --bg2: #F9FAFB;
  --bg3: #F3F4F6;
  --border: #E5E7EB;
  --border2: #D1D5DB;
  --blue: #1E3A5F;
  --blue-mid: #2563EB;
  --blue-lt: #DBEAFE;
  --blue-cell: #EFF4FF;
  --nav-h: 64px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --r: 6px;
  --container: 1200px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .07);
  --shadow: 0 4px 14px rgba(0, 0, 0, .08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, .12);
}

/* =====================================================
   RESET & BASE
===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--sans);
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: var(--sans);
}

img {
  max-width: 100%;
  display: block;
}

/* =====================================================
   LAYOUT
===================================================== */
.w {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.w-sm {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.w-md {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* =====================================================
   IMAGE PLACEHOLDERS
===================================================== */
.img-ph {
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(135deg, #C9D4E4 0%, #8FA5BE 45%, #4A6580 100%);
}

.img-ph--warm {
  background: linear-gradient(135deg, #D4D9E4 0%, #909BB5 45%, #4A5580 100%);
}

.img-ph--card {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.img-ph--hero {
  height: 320px;
  width: 100%;
}

.img-ph--sm {
  height: 64px;
  width: 80px;
  flex-shrink: 0;
  border-radius: 4px;
}

/* =====================================================
   TYPOGRAPHY
===================================================== */
.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}

.tag--blue {
  color: var(--blue-mid);
}

.h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -.02em;
}

.h1 em {
  font-style: italic;
  font-weight: 400;
}

.h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.15;
}

.h3 {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.25;
}

.lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 560px;
}

/* =====================================================
   BUTTONS
===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r);
  transition: all .2s;
  white-space: nowrap;
  cursor: pointer;
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover {
  opacity: .84;
}

.btn--out {
  border: 1px solid var(--border2);
  color: var(--ink);
  background: #fff;
}

.btn--out:hover {
  border-color: #999;
}

.btn--ghost {
  color: var(--muted);
  padding: 10px 0;
}

.btn--ghost:hover {
  color: var(--ink);
}

.btn--sm {
  padding: 7px 14px;
  font-size: 12.5px;
}

.btn--danger {
  color: #DC2626;
  border-color: #FECACA;
}

.btn--danger:hover {
  background: #FFF5F5;
}

/* =====================================================
   NAVIGATION
===================================================== */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-in {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-zpr {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--ink);
}

.logo-div {
  width: 1px;
  height: 30px;
  background: var(--border2);
}

.logo-txt {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.logo-txt span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
  transition: color .18s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.on {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.nav-search {
  color: var(--muted);
  display: flex;
  align-items: center;
  padding: 4px;
  cursor: pointer;
  transition: color .18s;
}

.nav-search:hover {
  color: var(--ink);
}

.nav-search svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .28s;
}

.hamburger.open span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.mob-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 290;
  flex-direction: column;
  padding: 12px 24px 20px;
}

.mob-menu.open {
  display: flex;
}

.mob-menu a {
  font-size: 15px;
  font-weight: 500;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}

.mob-menu .btn {
  margin-top: 12px;
  justify-content: center;
}

/* Nav — scrolled shadow */
#nav.nav--scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

/* Inline search box */
.nav-search-box {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 290;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  box-shadow: var(--shadow);
}

.nav-search-box .nav-in {
  height: auto;
}

.nav-search-box form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.nav-search-input {
  flex: 1;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 9px 14px;
  outline: none;
  transition: border-color .18s;
}

.nav-search-input:focus {
  border-color: var(--blue-mid);
}

.nav-search-input::placeholder {
  color: var(--muted2);
}

.nav-search-submit {
  display: flex;
  align-items: center;
  padding: 9px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  transition: color .18s;
}

.nav-search-submit:hover {
  color: var(--ink);
}

.nav-search-submit svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* =====================================================
   HERO (HOME)
===================================================== */
.hero {
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* =====================================================
   MATRIX (hero right + model page)
===================================================== */
.matrix-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.matrix-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
  margin-bottom: 4px;
}

.matrix-sub {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 14px;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.matrix-table th,
.matrix-table td {
  border: 1px solid var(--border);
  padding: 8px 6px;
  text-align: center;
  vertical-align: middle;
}

.matrix-table thead th {
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: .05em;
}

.matrix-table .col-row {
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: .06em;
  text-align: left;
  padding-left: 8px;
  background: var(--bg3);
}

.col-f1 {
  background: #F0F4F8;
  color: var(--muted);
}

.col-f2 {
  background: #D6E4F0;
  color: var(--blue);
}

.col-f3 {
  background: var(--blue);
  color: #fff;
}

.cell-f3 {
  background: var(--blue-cell);
  color: var(--blue);
  font-weight: 500;
}

.row-icon {
  display: flex;
  align-items: center;
  gap: 5px;
}

.row-icon svg {
  width: 13px;
  height: 13px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.matrix-footer {
  margin-top: 10px;
  text-align: center;
}

.matrix-arrow {
  font-size: 10px;
  letter-spacing: .08em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.matrix-arrow::after {
  content: '→';
  font-size: 13px;
}

.matrix-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  font-style: italic;
}

/* =====================================================
   SECTION HEADERS
===================================================== */
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

/* =====================================================
   ARTICLE CARDS (with images)
===================================================== */
.cards-analysis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card-a {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .2s;
  display: flex;
  flex-direction: column;
}

.card-a:hover {
  box-shadow: var(--shadow);
}

.card-a-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

.card-a-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-a-meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: .02em;
}

.card-a h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.card-a p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 14px;
}

.card-a-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-a-link::after {
  content: '→';
}

/* Link reset unutar card-a */
.card-a h3 a {
  color: inherit;
  text-decoration: none;
}

.card-a h3 a:hover {
  text-decoration: underline;
}

.card-a-thumb-link {
  display: block;
  overflow: hidden;
}

/* home-uvid-row kao <a> tag */
a.home-uvid-row {
  color: inherit;
  text-decoration: none;
}

a.home-uvid-row:hover .home-uvid-text {
  color: var(--blue);
}

/* =====================================================
   UVIDI CARDS (home sidebar)
===================================================== */
.uvid-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.uvid-icon svg {
  width: 15px;
  height: 15px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.home-uvidi {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.home-uvid-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.home-uvid-row:first-child {
  border-top: 1px solid var(--border);
}

.home-uvid-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

/* =====================================================
   HOME LAYOUT (analysis + uvidi)
===================================================== */
.home-content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.uvidi-sidebar-box {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
}

.sidebar-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}

/* =====================================================
   NEWSLETTER BAR
===================================================== */
.nl-bar {
  background: var(--ink);
  padding: 64px 0;
}

.nl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.nl-bar h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.nl-bar p {
  font-size: 14px;
  color: rgba(255, 255, 255, .55);
}

.nl-form {
  display: flex;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r);
  overflow: hidden;
}

.nl-input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .08);
  border: none;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.nl-input::placeholder {
  color: rgba(255, 255, 255, .4);
}

.nl-btn {
  background: #fff;
  color: var(--ink);
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .18s;
}

.nl-btn:hover {
  opacity: .88;
}

/* =====================================================
   CTA BAR (various pages)
===================================================== */
.cta-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.cta-bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-bar-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-bar-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.5;
}

.cta-bar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cta-bar h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 2px;
}

.cta-bar p {
  font-size: 13px;
  color: var(--muted);
}

/* =====================================================
   FOOTER
===================================================== */
footer {
  background: #0C0C0C;
  color: #fff;
  padding: 56px 0 0;
}

/* Screen-reader only (WordPress standard) */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 48px;
}

/* Footer brand col — link reset */
.footer-brand a {
  text-decoration: none;
  color: inherit;
}

.footer-logo-zpr {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 2px;
}

.footer-logo-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, .3);
  letter-spacing: .06em;
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, .38);
  line-height: 1.65;
  max-width: 240px;
}

.footer-col h4 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .3);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  transition: color .18s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-nl h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0;
  margin-bottom: 4px;
}

.footer-nl p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 14px;
}

.footer-nl-form {
  display: flex;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--r);
  overflow: hidden;
}

.footer-nl-input {
  flex: 1;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .07);
  border: none;
  color: #fff;
  font-size: 13px;
  outline: none;
}

.footer-nl-input::placeholder {
  color: rgba(255, 255, 255, .3);
}

.footer-nl-btn {
  background: rgba(255, 255, 255, .15);
  color: #fff;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, .22);
}

.footer-legal {
  display: flex;
  gap: 18px;
}

.footer-legal a {
  font-size: 12px;
  color: rgba(255, 255, 255, .3);
  transition: color .18s;
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, .6);
}

/* =====================================================
   PAGE HEADER (inner pages)
===================================================== */
.pg-header {
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.pg-header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.pg-header-img {
  border-radius: 8px;
  overflow: hidden;
}

.pg-header-img-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pg-header.centered {
  text-align: center;
}

.pg-header.centered .lead {
  margin: 0 auto 20px;
}

.art-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 12px;
}

.art-subtitle {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
  margin-top: 8px;
}

.art-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 16px;
  flex-wrap: wrap;
}

.art-meta svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.art-meta .sep {
  color: var(--border2);
}

.art-meta-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.art-meta-actions svg {
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.8;
  cursor: pointer;
  transition: stroke .18s;
}

.art-meta-actions svg:hover {
  stroke: var(--ink);
}

/* =====================================================
   SUMMARY BOX (analysis page)
===================================================== */
.summary-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
  margin: 28px 0;
  margin-top: 0;
  align-self: start;
}

.summary-box-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 16px;
}

.summary-box-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.summary-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--blue-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.summary-item-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.summary-item h5 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.summary-item p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* =====================================================
   ARTICLE LAYOUT
===================================================== */
.art-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  padding: 48px 0 80px;
  align-items: start;
}

.art-body {
  max-width: 660px;
}

.art-body h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 12px;
}

.art-body h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 28px 0 10px;
}

.art-body p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink2);
  margin-bottom: 14px;
}

.art-body ul {
  margin: 8px 0 14px 18px;
}

.art-body li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink2);
  margin-bottom: 6px;
}

/* Callout box — custom klasa i Gutenberg pullquote */
.zpr-callout {
  border-left: 3px solid var(--blue-mid);
  background: var(--blue-lt);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 16px 20px;
  margin: 28px 0;
}

.zpr-callout p {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 0;
}

.zpr-callout cite {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
  margin-top: 6px;
}

.zpr-callout.zpr-quote p {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--blue);
  font-weight: 500;
  margin: 0;
}

.art-body .wp-block-pullquote {
  border-left: 3px solid var(--blue-mid);
  background: var(--blue-lt);
  padding: 20px 24px;
  border-radius: var(--r);
  margin: 32px 0;
  border-top: none;
  border-right: none;
  border-bottom: none;
}

.art-body .wp-block-pullquote p,
.art-body .wp-block-pullquote blockquote p,
.art-body figure.wp-block-pullquote blockquote p,
.single-analiza .wp-block-pullquote blockquote p {
  font-family: var(--sans) !important;
  font-size: 16px !important;
  font-style: normal !important;
  font-weight: 500 !important;
  line-height: 1.6;
  color: var(--ink) !important;
  margin: 0;
  text-align: left !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.art-body .wp-block-pullquote cite {
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.art-body .phase-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0;
}

.phase-mini-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  font-size: 12.5px;
}

.phase-mini-card.hl {
  border-color: var(--blue-mid);
  background: var(--blue-lt);
}

.phase-mini-card .pn {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.phase-mini-card .pt {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
}

.pull-quote {
  border-left: 3px solid var(--ink);
  padding: 4px 0 4px 18px;
  margin: 32px 0;
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
}

.pull-quote cite {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-top: 8px;
  font-style: normal;
}

/* =====================================================
   ARTICLE SIDEBAR
===================================================== */
.art-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-box {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px;
  margin-bottom: 16px;
}

.sidebar-box h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-list a {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  transition: color .15s;
}

.toc-list a:hover {
  color: var(--ink);
}

.key-insight {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.key-insight:last-child {
  border-bottom: none;
}

.ki-icon {
  width: 28px;
  height: 28px;
  background: var(--blue-lt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ki-icon svg {
  width: 13px;
  height: 13px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 2;
}

.ki-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink2);
}

.dl-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
}

.dl-box:hover {
  background: var(--bg2);
}

.dl-icon {
  width: 32px;
  height: 36px;
  background: #FFE4E4;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dl-icon svg {
  width: 16px;
  height: 16px;
  stroke: #DC2626;
  fill: none;
  stroke-width: 1.8;
}

.dl-text {
  font-size: 12.5px;
  font-weight: 500;
}

.dl-size {
  font-size: 11px;
  color: var(--muted);
}

.dl-arrow svg {
  width: 15px;
  height: 15px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
  margin-left: auto;
}

.rel-card {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.rel-card:last-child {
  border-bottom: none;
}

.rel-card-img {
  width: 64px;
  height: 48px;
  border-radius: 4px;
  flex-shrink: 0;
}

.rel-card-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 3px;
}

.rel-card-date {
  font-size: 11px;
  color: var(--muted);
}

/* =====================================================
   MODEL PAGE
===================================================== */
.model-how {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 40px;
  margin: 40px 0;
}

.model-full-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  margin: 0 0 40px;
  overflow-x: auto;
}

.model-full-box .matrix-table {
  font-size: 13px;
}

.model-full-box .matrix-table th,
.model-full-box .matrix-table td {
  padding: 12px 10px;
}

.model-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.model-3sections-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
  margin: 40px 0;
}

.model-3sections {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.ph-illustration {
  height: 36px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.phase-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.ph-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.ph-icon-mini {
  flex-shrink: 0;
  opacity: 0.55;
  margin-top: 2px;
}

.ph-icon-mini svg {
  width: 36px;
  height: 28px;
}

.m3-card {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 110px;
}

.m3-card h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.m3-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.m3-card-icon {
  width: 34px;
  height: 34px;
  background: var(--blue-lt);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.m3-card-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.m3-phase-card {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.m3-phase-card .ph-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.m3-phase-card .ph-num {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.m3-phase-card .ph-title {
  font-weight: 700;
  font-size: 15px;
}

.m3-phase-card .ph-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

.m3-phase-card.hl {
  border-color: var(--blue-mid);
  background: var(--blue-cell);
}

.m3-phase-card.hl .ph-num {
  color: var(--blue-mid);
}

.usecase-n {
  display: flex;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg2);
  border-radius: var(--r);
  min-height: 110px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.phase-stack,
.phase-grid,
.model-3sections > div:nth-child(2) > div {
  gap: 8px;
}

.un-num {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-mid);
  opacity: .6;
  line-height: 1;
  width: 32px;
  flex-shrink: 0;
}

.un-h {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.un-p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.related-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.related-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: background .15s;
}

.related-card:hover {
  background: var(--bg2);
}

.related-card-img {
  width: 60px;
  height: 45px;
  border-radius: 4px;
  flex-shrink: 0;
}

.related-card-cat {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--blue-mid);
  margin-bottom: 3px;
}

.related-card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.related-card-date {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

/* =====================================================
   UVIDI PAGE
===================================================== */
.uvidi-header-pills {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.uvidi-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
}

.uvidi-pill svg {
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.uvidi-featured {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  padding: 28px;
  margin: 32px 0;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: center;
}

.uvidi-featured-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 10px;
}

.uvidi-featured h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.uvidi-featured p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.uvidi-featured-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.uvidi-featured-meta svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.filter-tab {
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 16px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .18s;
  margin-bottom: -1px;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.filter-tab.on,
.filter-tab:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.filter-sort {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.uvidi-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.uvidi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.uvid-card {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px;
  cursor: pointer;
  transition: box-shadow .18s;
  display: flex;
  flex-direction: column;
}

.uvid-card:hover {
  box-shadow: var(--shadow-sm);
}

.uvid-card-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.uvid-card-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.8;
}

.uvid-card-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.uvid-card h4 {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  flex: 1;
}

.uvid-card p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.uvid-card-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.uvid-card-date,
.uvid-card-time {
  display: flex;
  align-items: center;
  gap: 4px;
}
.uvid-card-footer svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}
.uvid-card-arrow {
  margin-left: auto;
  color: var(--blue-mid);
  font-size: 16px;
  text-decoration: none;
  line-height: 1;
}
.uvid-card-arrow:hover {
  opacity: .7;
}

.load-more {
  text-align: center;
  margin: 28px 0;
}

/* =====================================================
   UVIDI SIDEBAR
===================================================== */
.sdb-box {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px;
  margin-bottom: 16px;
}

.sdb-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}

.sdb-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sdb-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.sdb-row:last-child {
  border-bottom: none;
}

.sdb-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  width: 20px;
  flex-shrink: 0;
}

.sdb-text {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink);
}

.sdb-date {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.sdb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sdb-tag {
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
}

.sdb-tag:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.sdb-nl-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.sdb-nl-input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 13px;
  outline: none;
  transition: border-color .15s;
}

.sdb-nl-input:focus {
  border-color: var(--ink);
}

/* =====================================================
   ABOUT PAGE
===================================================== */
.about-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.about-card {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
}

.about-card-icon {
  width: 36px;
  height: 36px;
  background: var(--blue-lt);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.about-card-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.about-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.about-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.about-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.about-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.how-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
}

.how-card-icon {
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.how-card-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.how-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.how-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.how-card-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-mid);
  display: flex;
  align-items: center;
  gap: 4px;
}

.how-card-link::after {
  content: '→';
}

.transp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 32px 0;
  align-items: start;
}

.transp-h {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.transp-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.report-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 8px;
  cursor: pointer;
  transition: background .15s;
}

.report-row:hover {
  background: var(--bg2);
}

.rr-icon {
  width: 36px;
  height: 40px;
  background: #FEE2E2;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rr-icon svg {
  width: 16px;
  height: 16px;
  stroke: #DC2626;
  fill: none;
  stroke-width: 1.8;
}

.rr-title {
  font-size: 13.5px;
  font-weight: 600;
}

.rr-size {
  font-size: 11.5px;
  color: var(--muted);
}

.rr-dl {
  margin-left: auto;
  color: var(--muted);
}

.rr-dl svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.fn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.fn-logo {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg2);
}

.fn-name {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 2px;
}

.fn-prog {
  font-size: 12px;
  color: var(--muted);
}

.fn-year {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
  text-align: right;
}

.fn-amount {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-left: 16px;
}

.about-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 40px 0;
  align-items: stretch;
}

.about-info-box {
  padding: 24px;
  background: var(--bg2);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
}

.about-info-icon {
  width: 40px;
  height: 40px;
  background: var(--blue-lt);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.about-info-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.about-info-box h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.about-info-box p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 10px;
}

.about-info-box blockquote {
  font-size: 13px;
  color: var(--muted);
  background: #fff;
  border-left: 3px solid var(--border2);
  padding: 8px 12px;
  border-radius: 0 4px 4px 0;
  line-height: 1.6;
}

/* =====================================================
   CONTACT FORM SECTION
   ===================================================== */

.zpr-contact-section {
  display: none;
}

/* Modal overlay */
.zpr-contact-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.zpr-contact-modal-overlay.open {
  display: flex;
}

.zpr-contact-modal {
  background: #fff;
  border-radius: var(--r);
  padding: 40px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.zpr-contact-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

.zpr-contact-modal-close:hover {
  color: var(--ink);
}

.zpr-contact-modal h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.zpr-contact-modal p.modal-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

.zpr-cf7-wrap {
  max-width: 600px;
}

.zpr-cf7-row {
  margin-bottom: 20px;
}

.zpr-cf7-row label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.zpr-cf7-row input,
.zpr-cf7-row select,
.zpr-cf7-row textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg2);
  font-family: var(--sans);
}

.zpr-cf7-row textarea {
  min-height: 140px;
  resize: vertical;
}

.zpr-cf7-row input:focus,
.zpr-cf7-row select:focus,
.zpr-cf7-row textarea:focus {
  outline: none;
  border-color: var(--blue-mid);
}

.zpr-cf7-consent {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.zpr-cf7-consent a {
  color: var(--blue-mid);
  text-decoration: underline;
}

.wpcf7-submit {
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r);
  cursor: pointer;
  font-family: var(--sans);
  transition: opacity .2s;
}

.wpcf7-submit:hover {
  opacity: .85;
}

.wpcf7-acceptance .wpcf7-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

.wpcf7-acceptance input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--blue-mid);
  cursor: pointer;
}

.wpcf7-acceptance .wpcf7-list-item-label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* =====================================================
   SEARCH RESULTS
   ===================================================== */

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.search-result-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.search-result-item:last-child {
  border-bottom: none;
}

.sri-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.sri-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.sri-title a {
  color: var(--ink);
  text-decoration: none;
}

.sri-title a:hover {
  color: var(--blue-mid);
}

.sri-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.sri-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-mid);
  text-decoration: none;
}

.search-empty {
  max-width: 480px;
  padding: 48px 0;
}

/* =====================================================
   ADMIN
===================================================== */
.admin-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
  padding-top: var(--nav-h);
}

.admin-aside {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 28px 0;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}

.aside-section {
  margin-bottom: 6px;
}

.aside-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 18px;
  margin-bottom: 6px;
  display: block;
}

.aside-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: all .15s;
}

.aside-item:hover,
.aside-item.on {
  color: var(--ink);
  background: rgba(0, 0, 0, .02);
  border-left-color: var(--ink);
}

.aside-item.on {
  font-weight: 500;
}

.aside-item .ai {
  font-size: 14px;
  width: 18px;
  text-align: center;
}

.aside-sep {
  height: 1px;
  background: var(--border);
  margin: 12px 18px;
}

.admin-main {
  padding: 36px 40px;
}

.admin-sec {
  display: none;
}

.admin-sec.on {
  display: block;
}

.a-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.a-h1 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.stat-b {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px;
}

.stat-n {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.stat-l {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.quick-act {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.quick-act span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-right: 4px;
}

.data-tbl {
  width: 100%;
  border-collapse: collapse;
}

.data-tbl th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  text-align: left;
  padding: 9px 12px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.data-tbl td {
  font-size: 13.5px;
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-tbl tr:hover td {
  background: var(--bg2);
}

.tbl-title {
  font-weight: 500;
  max-width: 320px;
  line-height: 1.4;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 3px;
}

.b-green {
  background: #DCFCE7;
  color: #15803D;
}

.b-amber {
  background: #FEF3C7;
  color: #92400E;
}

.b-gray {
  background: #F3F4F6;
  color: #6B7280;
}

.row-acts {
  display: flex;
  gap: 6px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 700px;
}

.fld {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fld.full {
  grid-column: span 2;
}

.fld label {
  font-size: 12.5px;
  font-weight: 500;
}

.fld input,
.fld select,
.fld textarea {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
  width: 100%;
  background: #fff;
}

.fld input:focus,
.fld select:focus,
.fld textarea:focus {
  border-color: var(--ink);
}

.fld textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

.fld .hint {
  font-size: 11.5px;
  color: var(--muted);
}

.icon-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.icon-opt {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s;
}

.icon-opt:hover,
.icon-opt.on {
  border-color: var(--blue-mid);
  background: var(--blue-lt);
}

.icon-opt svg {
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.8;
}

.icon-opt.on svg {
  stroke: var(--blue);
}

.img-upload {
  border: 2px dashed var(--border);
  border-radius: var(--r);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s;
}

.img-upload:hover {
  border-color: var(--border2);
}

.img-upload svg {
  width: 28px;
  height: 28px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.5;
  margin: 0 auto 8px;
}

.img-upload p {
  font-size: 13px;
  color: var(--muted);
}

.img-preview {
  border-radius: var(--r);
  overflow: hidden;
  height: 120px;
  margin-top: 8px;
  display: none;
}

.fn-admin-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 8px;
}

.fn-admin-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  cursor: pointer;
  background: var(--bg2);
}

.fn-admin-content {
  flex: 1;
}

.fn-admin-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.fn-admin-detail {
  font-size: 12px;
  color: var(--muted);
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

/* =====================================================
   MODAL
===================================================== */
.modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, .42);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-bg.open {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 10px;
  padding: 32px;
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.modal-head h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
}

.modal-close {
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
}

/* =====================================================
   TOAST
===================================================== */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 600;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  padding: 11px 18px;
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  transform: translateY(16px);
  opacity: 0;
  transition: all .28s;
  pointer-events: none;
}

#toast.on {
  transform: translateY(0);
  opacity: 1;
}


/* =====================================================
   RESPONSIVE — TABLET ≤ 960px
===================================================== */
@media (max-width: 960px) {
  .nav-links,
  .nav-cta-d {
    display: none !important;
  }

  .hamburger {
    display: flex;
  }

  .hero-grid,
  .pg-header-grid,
  .nl-grid,
  .home-content-grid,
  .transp-grid,
  .about-2col,
  .uvidi-featured,
  .uvidi-layout,
  .art-layout,
  .model-how {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .art-sidebar,
  .uvidi-sidebar {
    display: none;
  }

  .cards-analysis,
  .model-3col,
  .about-3col,
  .about-how-grid,
  .stat-row,
  .related-cards {
    grid-template-columns: 1fr 1fr;
  }

  .uvidi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-aside {
    display: none;
  }

  .admin-main {
    padding: 24px 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .fld.full {
    grid-column: span 1;
  }

  .summary-box-grid {
    grid-template-columns: 1fr 1fr;
  }

  .art-body .phase-mini {
    grid-template-columns: 1fr;
  }

  .pg-header-grid .pg-header-img {
    display: none;
  }
}

/* =====================================================
   RESPONSIVE — MOBILE ≤ 600px
===================================================== */
@media (max-width: 600px) {
  :root {
    --nav-h: 58px;
  }

  .w,
  .w-sm,
  .w-md {
    padding: 0 16px;
  }

  section {
    padding: 52px 0;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 40px;
  }

  .h1 {
    font-size: 32px;
  }

  .hero-btns {
    flex-direction: column;
  }

  .hero-btns .btn {
    justify-content: center;
  }

  .cards-analysis,
  .model-3col,
  .about-3col,
  .about-how-grid,
  .stat-row,
  .related-cards,
  .summary-box-grid,
  .uvidi-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nl-grid {
    gap: 20px;
  }

  .nl-form {
    flex-direction: column;
    border-radius: var(--r);
  }

  .nl-input {
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--r);
    padding: 11px 14px;
  }

  .nl-btn {
    border-radius: var(--r);
    padding: 11px;
  }

  .matrix-wrap {
    padding: 14px;
  }

  .matrix-table {
    font-size: 10px;
  }

  .matrix-table th,
  .matrix-table td {
    padding: 5px 3px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-bar-in {
    flex-direction: column;
    align-items: flex-start;
  }

  .fn-row {
    flex-wrap: wrap;
  }

  .fn-amount {
    margin-left: 0;
  }
}

/* =====================================================
   ANIMATIONS
===================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim {
  opacity: 0;
  animation: fadeUp .5s ease forwards;
}

.d1 { animation-delay: .06s; }
.d2 { animation-delay: .14s; }
.d3 { animation-delay: .22s; }

.card-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 8px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.d4 { animation-delay: .3s; }

/* ── Article CTA bar ── */
.art-cta-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 64px 0;
  margin-top: 64px;
  text-align: center;
}
.art-cta-inner { max-width: 600px; margin: 0 auto; }
.art-cta-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--blue-mid);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.art-cta-title {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 32px;
}
.art-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   SINGLE UVID — editorial layout
   ══════════════════════════════════════════════════════════════ */
.uvid-single {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

/* Header */
.uvid-header-category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 16px;
}
.uvid-header-title {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 115%;
  margin-bottom: 20px;
}
.uvid-header-lead {
  font-size: 20px;
  line-height: 160%;
  color: var(--muted);
  margin-bottom: 20px;
}
.uvid-meta {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 40px;
}
.uvid-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 40px;
  display: block;
}

/* Quote block */
.uvid-quote-block {
  background: #F7F7F5;
  border-left: 4px solid var(--ink);
  padding: 24px;
  border-radius: 8px;
  margin: 40px 0;
}
.uvid-quote-block p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  line-height: 135%;
  color: var(--ink);
  margin: 0;
}

/* Body */
.uvid-body {
  font-size: 18px;
  line-height: 170%;
}
.uvid-body p {
  margin-bottom: 16px;
}

/* Implikacija box — Gutenberg blok s klasom .uvid-implication */
.uvid-implication {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin: 40px 0;
}
.uvid-implication h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Povezano sa ZPR modelom */
.uvid-model-ref {
  margin: 40px 0;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.uvid-model-ref h3 {
  font-family: var(--serif);
  font-size: 24px;
  margin-bottom: 12px;
}

/* Povezana analiza kartica */
.uvid-related-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
  text-decoration: none;
  display: block;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.uvid-related-card:hover {
  border-color: var(--border2);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.uvid-related-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.uvid-related-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.uvid-related-card__exc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 8px;
}
.uvid-related-card__date {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* CTA gumbi */
.uvid-cta-block {
  display: flex;
  gap: 16px;
  margin: 32px 0 48px;
  flex-wrap: wrap;
}

/* btn--outline alias (ako ne postoji globalno) */
.btn--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s, color .18s, border-color .18s;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--ink);
}
.btn--outline:hover {
  background: var(--bg2);
  border-color: var(--ink);
}

/* Newsletter blok */
.uvid-newsletter {
  background: var(--bg2);
  border-radius: 12px;
  padding: 32px;
  margin-top: 48px;
  text-align: center;
  border: 1px solid var(--border);
}
.uvid-newsletter-title {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 8px;
}
.uvid-newsletter-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
}
.uvid-newsletter-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.uvid-newsletter-form .nl-input {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  min-width: 260px;
}

/* Responzivnost */
@media (max-width: 600px) {
  .uvid-header-title { font-size: 32px; }
  .uvid-quote-block p { font-size: 22px; }
  .uvid-cta-block { flex-direction: column; }
  .uvid-newsletter-form { flex-direction: column; align-items: stretch; }
  .uvid-newsletter-form .nl-input { min-width: 0; width: 100%; }
}

/* ── Featured uvid — vizual (slika iz stranice "uvidi") ── */
.featured-uvid-visual {
  flex-shrink: 0;
  width: 300px;
  min-height: 180px;
  overflow: hidden;
  border-radius: 8px;
  align-self: stretch;
  margin: 0;
}
.featured-uvid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
}
@media (max-width: 768px) {
  .featured-uvid-visual {
    width: 100%;
    height: 200px;
  }
}
