/* =========================================================
   Durbin — Redesigned stylesheet
   Pure CSS · light + dark · responsive · accessible
   ========================================================= */

/* ---------- Design tokens (light) ---------- */
:root {
    /* Brand */
    --brand-50:  #f5e8ff;
    --brand-100: #ead0ff;
    --brand-200: #deb7ff;
    --brand-300: #c98aff;
    --brand-400: #a545ed;
    --brand-500: #8e16e9;   /* primary */
    --brand-600: #7a0fd1;
    --brand-700: #6900b2;
    --brand-800: #4a007e;

    /* Neutrals */
    --bg:           #f7f7fb;
    --surface:      #ffffff;
    --surface-2:    #fafafd;
    --border:       #e5e7ef;
    --border-strong:#cfd1dc;

    /* Text */
    --text:         #1b1d29;
    --text-muted:   #5c6072;
    --text-subtle:  #8a8fa3;

    /* Semantic */
    --success-bg:   #dcfce7;
    --success-fg:   #15803d;
    --warning-bg:   #fef3c7;
    --warning-fg:   #92400e;
    --highlight-bg: #fff3b0;
    --highlight-fg: #5c3a00;

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(20, 24, 40, .06);
    --shadow-md: 0 6px 18px rgba(20, 24, 40, .08);
    --shadow-lg: 0 18px 40px rgba(20, 24, 40, .12);
    --ring:      0 0 0 3px rgba(142, 22, 233, .25);

    /* Geometry */
    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    /* Type */
    --font-sans: "OrtoRNIDS", "Inter", system-ui, -apple-system,
                 "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: "OrtoRNIDS", Georgia, "Times New Roman", serif;

    /* Layout */
    --container: 880px;
    --container-wide: 1200px;

    /* Motion */
    --ease: cubic-bezier(.22, .61, .36, 1);
    --dur-fast: 140ms;
    --dur:      220ms;
}

/* ---------- Dark mode ---------- */
@media (prefers-color-scheme: dark) {
    :root {
        --bg:            #0f1117;
        --surface:       #161922;
        --surface-2:     #1c2030;
        --border:        #262a38;
        --border-strong: #353a4d;

        --text:          #e8eaf2;
        --text-muted:    #aab0c2;
        --text-subtle:   #7c829a;

        --success-bg:    #14352b;
        --success-fg:    #6ee7b7;
        --warning-bg:    #3a2c10;
        --warning-fg:    #fcd34d;
        --highlight-bg:  #4a3a00;
        --highlight-fg:  #ffe89a;

        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
        --shadow-md: 0 6px 18px rgba(0, 0, 0, .45);
        --shadow-lg: 0 18px 40px rgba(0, 0, 0, .55);
    }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }

::selection {
    background: var(--brand-500);
    color: #fff;
}

/* ---------- Fonts (preserved from original) ---------- */
@font-face {
    font-family: 'OrtoRNIDS';
    src: url('/stilovi/fontovi/OrtoRNIDS-woff2/OrtoRNIDS-Regular.woff2') format('woff2');
    font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
    font-family: 'OrtoRNIDS';
    src: url('/stilovi/fontovi/OrtoRNIDS-woff2/OrtoRNIDS-Italic.woff2') format('woff2');
    font-style: italic; font-weight: 400; font-display: swap;
}
@font-face {
    font-family: 'OrtoRNIDS';
    src: url('/stilovi/fontovi/OrtoRNIDS-woff2/OrtoRNIDS-Bold.woff2') format('woff2');
    font-style: normal; font-weight: 700; font-display: swap;
}
@font-face {
    font-family: 'OrtoRNIDS';
    src: url('/stilovi/fontovi/OrtoRNIDS-woff2/OrtoRNIDS-BoldItalic.woff2') format('woff2');
    font-style: italic; font-weight: 700; font-display: swap;
}

/* ---------- Skip link (a11y) ---------- */
.skip-link {
    position: absolute;
    top: -100px; left: 8px;
    padding: 10px 16px;
    background: var(--brand-500);
    color: #fff;
    border-radius: var(--radius-sm);
    text-decoration: none;
    z-index: 1000;
    transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 8px; }

/* ---------- Top navigation ---------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    background: color-mix(in srgb, var(--surface) 80%, transparent);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Brand — Aurora Glow */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 1.55rem;
    letter-spacing: .08em;
    line-height: 1;
}
.brand:focus-visible { outline: none; box-shadow: var(--ring); }

/* The wordmark itself: gradient text + animated shimmer + soft bloom */
.brand > span:not(.brand-mark) {
    background: linear-gradient(110deg,
                #4a007e 0%,
                #8e16e9 30%,
                #e916db 50%,
                #8e16e9 70%,
                #4a007e 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter:
        drop-shadow(0 0 14px rgba(142, 22, 233, .35))
        drop-shadow(0 2px 4px  rgba(233, 22, 219, .22));
    animation: aurora-shift 6s ease-in-out infinite;
    transition: filter var(--dur) var(--ease);
}
.brand:hover > span:not(.brand-mark) {
    filter:
        drop-shadow(0 0 18px rgba(142, 22, 233, .55))
        drop-shadow(0 2px 6px  rgba(233, 22, 219, .35));
    animation-duration: 3s;
}

@keyframes aurora-shift {
    0%, 100% { background-position:   0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* Brand mark — same telescope SVG as a.veza::before, scaled up,
   with a gradient fill that mirrors the Aurora wordmark */
.brand-mark {
    width: 40px; height: 40px;
    flex-shrink: 0;
    background: linear-gradient(135deg,
                #4a007e 0%,
                #8e16e9 40%,
                #e916db 75%,
                #a545ed 100%);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'><path d='M3 11 H9 V10 H15 V9 H21 V15 H15 V14 H9 V13 H3 Z' transform='rotate(-45 12 12)'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'><path d='M3 11 H9 V10 H15 V9 H21 V15 H15 V14 H9 V13 H3 Z' transform='rotate(-45 12 12)'/></svg>") center/contain no-repeat;
    filter:
        drop-shadow(0 0 10px rgba(142, 22, 233, .40))
        drop-shadow(0 2px 4px  rgba(233, 22, 219, .25));
    transition: transform var(--dur) var(--ease),
                filter var(--dur) var(--ease);
}
/* Hover: counter the -45° tilt of the SVG so the spyglass
   "extends" to horizontal — like deploying it to look through */
.brand:hover .brand-mark {
    transform: rotate(45deg) scale(1.08);
    filter:
        drop-shadow(0 0 16px rgba(142, 22, 233, .60))
        drop-shadow(0 2px 6px  rgba(233, 22, 219, .40));
}

.nav-spacer { flex: 1; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0; padding: 0;
}
.nav-links a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: background var(--dur-fast) var(--ease),
                color var(--dur-fast) var(--ease);
}
.nav-links a:hover { background: var(--surface-2); color: var(--text); }
.nav-links a:focus-visible { outline: none; box-shadow: var(--ring); }

.menu-toggle {
    display: none;
    width: 44px; height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: background var(--dur-fast) var(--ease),
                border-color var(--dur-fast) var(--ease);
}
.menu-toggle:hover { background: var(--surface-2); border-color: var(--border-strong); }
.menu-toggle:focus-visible { outline: none; box-shadow: var(--ring); }
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 800px) {
    .nav-links { display: none; }
    .menu-toggle { display: inline-flex; }
}

/* ---------- Sliding drawer ---------- */
.drawer-backdrop {
    position: fixed; inset: 0;
    background: rgba(10, 12, 20, .45);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease);
    z-index: 90;
}
.drawer {
    position: fixed;
    top: 0; right: 0;
    width: min(360px, 86vw);
    height: 100%;
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 18px;
}
.drawer-open .drawer { transform: translateX(0); }
.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }

.drawer-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}
.drawer-close {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: background var(--dur-fast) var(--ease);
}
.drawer-close:hover { background: var(--surface-2); }
.drawer-close:focus-visible { outline: none; box-shadow: var(--ring); }
.drawer-close svg { width: 20px; height: 20px; }

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}
.drawer-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 1.05rem;
    transition: background var(--dur-fast) var(--ease),
                color var(--dur-fast) var(--ease);
}
.drawer-nav a:hover { background: var(--brand-50); color: var(--brand-700); }
.drawer-nav a:focus-visible { outline: none; box-shadow: var(--ring); }

@media (prefers-color-scheme: dark) {
    .drawer-nav a:hover { background: rgba(142, 22, 233, .15); color: var(--brand-200); }
}

/* ---------- Hero ---------- */
.hero {
    padding: 56px 20px 24px;
    text-align: center;
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 4.5vw, 2.7rem);
    line-height: 1.15;
    letter-spacing: -.01em;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    margin: 0 0 4px;
    color: var(--text-muted);
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    font-weight: 400;
}
.hero-sub strong, .hero-sub em {
    color: var(--text);
    font-weight: 600;
    font-style: normal;
}

/* ---------- Search composer ---------- */
.search-composer {
    margin: 28px auto 16px;
    max-width: 720px;
    display: flex;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md);
    padding: 6px;
    transition: box-shadow var(--dur) var(--ease),
                border-color var(--dur) var(--ease),
                transform var(--dur) var(--ease);
}
.search-composer:focus-within {
    border-color: var(--brand-400);
    box-shadow: var(--shadow-lg), 0 0 0 4px rgba(142, 22, 233, .15);
    transform: translateY(-1px);
}

.search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px 0 14px;
    color: var(--text-subtle);
    pointer-events: none;
    flex-shrink: 0;
}
.search-icon svg { width: 22px; height: 22px; }

input.search {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 1.1rem;
    padding: 14px 8px;
    font-family: var(--font-sans);
}
input.search::placeholder { color: var(--text-subtle); }

button.search {
    flex-shrink: 0;
    border: none;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0 24px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: filter var(--dur-fast) var(--ease),
                transform var(--dur-fast) var(--ease),
                box-shadow var(--dur-fast) var(--ease);
    box-shadow: 0 4px 12px rgba(142, 22, 233, .3);
}
button.search:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 18px rgba(142, 22, 233, .42);
}
button.search:active { transform: translateY(1px); }
button.search:focus-visible { outline: none; box-shadow: var(--ring); }

/* helper notes */
.search-note {
    color: var(--text-muted);
    font-size: .92rem;
    line-height: 1.7;
    max-width: 640px;
    margin: 18px auto 0;
    text-align: center;
}
.search-note strong { color: var(--text); font-weight: 700; }

/* ---------- Search results section ---------- */
.search-results {
    width: 100%;
    max-width: var(--container);
    margin: 24px auto 80px;
    padding: 0 20px;
}

.results-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: .92rem;
    margin-bottom: 16px;
}
.results-meta .meta-label {
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .75rem;
    font-weight: 700;
    color: var(--text-subtle);
}
.results-meta .meta-value {
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.results-meta .divider {
    width: 1px; height: 18px;
    background: var(--border);
}

img.puls {
    width: 18px; height: 18px;
    visibility: hidden;
    margin-left: auto;
}

/* ---------- Result cards (built by JS) ---------- */
#dynamicResults > ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

li.rezultat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--dur) var(--ease),
                transform var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
    position: relative;
}
li.rezultat:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

/* Domain link (a.veza) */
a.veza {
    display: inline-block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--brand-600);
    text-decoration: none;
    margin-right: 10px;
    word-break: break-all;
    transition: color var(--dur-fast) var(--ease);
}
a.veza::before {
    content: "";
    display: inline-block;
    width: 16px; height: 16px;
    margin-right: 8px;
    vertical-align: -2px;
    background: var(--brand-500);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'><path d='M3 11 H9 V10 H15 V9 H21 V15 H15 V14 H9 V13 H3 Z' transform='rotate(-45 12 12)'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'><path d='M3 11 H9 V10 H15 V9 H21 V15 H15 V14 H9 V13 H3 Z' transform='rotate(-45 12 12)'/></svg>") center/contain no-repeat;
    transition: transform var(--dur-fast) var(--ease);
}
a.veza:hover::before {
    transform: rotate(-8deg);
}
a.veza:hover { color: var(--brand-700); text-decoration: underline; text-underline-offset: 4px; }
a.veza:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }

/* Tag chips (cir-indeks, naslov, opis, etc.) */
span.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .03em;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-muted);
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}

span.cir-indeks {
    background: var(--success-bg);
    color: var(--success-fg);
    border-color: transparent;
}
span.cir-indeks::before {
    content: "✓";
    font-size: .9em;
    margin-right: 2px;
}

span.necir-indeks {
    background: var(--surface-2);
    color: var(--text-muted);
    border-color: var(--border);
}

/* Inner list with naslov / opis / citat */
ul.poduvlaka {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
ul.poduvlaka > li {
    color: var(--text);
    font-size: .98rem;
    line-height: 1.55;
}

/* Title row should look more prominent */
ul.poduvlaka > li:first-child {
    font-size: 1.05rem;
    font-weight: 600;
}
ul.poduvlaka > li:first-child span:not(.tag) {
    color: var(--text);
}

/* Opis & Citat secondary */
ul.poduvlaka > li:not(:first-child) {
    color: var(--text-muted);
    font-size: .94rem;
}

span.naslov,
span.opis {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text-subtle);
    margin-right: 8px;
}

/* Citation highlight */
span.citat-teksta em {
    background: var(--highlight-bg);
    color: var(--highlight-fg);
    font-style: normal;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
}

/* "Back to top" link after results */
#dynamicResults > a {
    display: inline-block;
    margin: 24px 0 0;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--brand-600);
    background: var(--surface);
    text-decoration: none;
    font-weight: 600;
    transition: background var(--dur-fast) var(--ease),
                border-color var(--dur-fast) var(--ease),
                color var(--dur-fast) var(--ease);
}
#dynamicResults > a:hover {
    background: var(--brand-50);
    border-color: var(--brand-200);
    color: var(--brand-700);
}
@media (prefers-color-scheme: dark) {
    #dynamicResults > a:hover {
        background: rgba(142, 22, 233, .15);
        border-color: rgba(142, 22, 233, .35);
        color: var(--brand-200);
    }
}

/* =========================================================
   Content pages (Упутство · Функционалности · О Дурбину · Ћирилички сајтови)
   ========================================================= */

.kolona,
.centralna-kolona {
    width: 100%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 24px 20px 56px;
}

.kolona > h1,
.centralna-kolona > h1 {
    font-size: clamp(1.7rem, 3.6vw, 2.4rem);
    text-align: center;
    margin: 24px 0 36px;
    letter-spacing: -.01em;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* h3 used as section header on funkcionalnosti page (timeline-style) */
.kolona > h3,
.centralna-kolona > h3 {
    text-align: left;
    margin: 36px 0 14px;
    color: var(--brand-700);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 12px 16px;
    background: linear-gradient(90deg, var(--brand-50), transparent 70%);
    border-left: 4px solid var(--brand-500);
    border-radius: 0 var(--radius) var(--radius) 0;
    letter-spacing: .02em;
}
@media (prefers-color-scheme: dark) {
    .kolona > h3,
    .centralna-kolona > h3 {
        color: var(--brand-200);
        background: linear-gradient(90deg, rgba(142, 22, 233, .18), transparent 70%);
        border-left-color: var(--brand-400);
    }
}

/* Two-column responsive layout */
section.dve-kolone {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}
@media (max-width: 800px) {
    section.dve-kolone { grid-template-columns: 1fr; }
}
section.dve-kolone .kolona-1,
section.dve-kolone .kolona-2 {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* Content card */
.prostor-za-tekst {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--dur) var(--ease),
                transform var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
}
.prostor-za-tekst:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

/* Tinted variants — preserve the left/right column distinction */
.prostor-za-tekst.boja-dorotej-primarna-podloga {
    background: linear-gradient(180deg, #faf3ff 0%, var(--surface) 70%);
    border-color: rgba(142, 22, 233, .18);
}
.prostor-za-tekst.boja-vostok-plava-svetla-rgb-0-3 {
    background: linear-gradient(180deg, #eef3ff 0%, var(--surface) 70%);
    border-color: rgba(41, 102, 244, .18);
}
@media (prefers-color-scheme: dark) {
    .prostor-za-tekst.boja-dorotej-primarna-podloga {
        background: linear-gradient(180deg, rgba(142, 22, 233, .14) 0%, var(--surface) 80%);
        border-color: rgba(142, 22, 233, .3);
    }
    .prostor-za-tekst.boja-vostok-plava-svetla-rgb-0-3 {
        background: linear-gradient(180deg, rgba(41, 102, 244, .14) 0%, var(--surface) 80%);
        border-color: rgba(41, 102, 244, .3);
    }
}

/* Heading inside a card */
.prostor-za-tekst h3.regularni,
.prostor-za-tekst h3 {
    text-align: left;
    margin: 0 0 12px;
    padding: 0;
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 700;
    background: none;
    border: none;
}

/* Card body text */
.prostor-za-tekst p {
    margin: 8px 0;
    line-height: 1.65;
    color: var(--text);
    font-size: .98rem;
}
.prostor-za-tekst ul {
    margin: 8px 0;
    padding-left: 22px;
}
.prostor-za-tekst ul li {
    margin: 4px 0;
    line-height: 1.55;
    color: var(--text);
}
.prostor-za-tekst strong {
    color: var(--text);
    font-weight: 700;
}
.prostor-za-tekst a {
    color: var(--brand-600);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--dur-fast) var(--ease);
}
.prostor-za-tekst a:hover { color: var(--brand-700); }

/* Email/contact icon — subtle pill behind the icon */
img.emphasis {
    vertical-align: middle;
    margin-right: 8px;
    width: 28px; height: 28px;
    padding: 4px;
    background: var(--brand-50);
    border-radius: 50%;
    box-sizing: content-box;
}
@media (prefers-color-scheme: dark) {
    img.emphasis { background: rgba(142, 22, 233, .15); }
}

/* Vertical spacer between timeline blocks */
.h40 { height: 32px; }

/* "Back to top" link in content pages */
.kolona > p:last-child a,
.centralna-kolona > p:last-child a {
    display: inline-block;
    margin-top: 24px;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--brand-600);
    background: var(--surface);
    text-decoration: none;
    font-weight: 600;
    transition: background var(--dur-fast) var(--ease),
                border-color var(--dur-fast) var(--ease),
                color var(--dur-fast) var(--ease);
}
.kolona > p:last-child a:hover,
.centralna-kolona > p:last-child a:hover {
    background: var(--brand-50);
    border-color: var(--brand-200);
    color: var(--brand-700);
}
@media (prefers-color-scheme: dark) {
    .kolona > p:last-child a:hover,
    .centralna-kolona > p:last-child a:hover {
        background: rgba(142, 22, 233, .15);
        border-color: rgba(142, 22, 233, .35);
        color: var(--brand-200);
    }
}

/* Plain paragraphs at the top level of content pages */
.centralna-kolona > p,
.kolona > p {
    margin: 8px 0;
    line-height: 1.65;
    color: var(--text);
}
.centralna-kolona > p strong { color: var(--text); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
    margin-top: auto;
    padding: 24px 20px;
    border-top: 1px solid var(--border);
    color: var(--text-subtle);
    text-align: center;
    font-size: .9rem;
}
.site-footer a { color: var(--brand-600); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Generic links ---------- */
a {
    color: var(--brand-600);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
a:hover { color: var(--brand-700); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 1ms !important;
        animation-duration: 1ms !important;
    }
    html { scroll-behavior: auto; }
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 600px) {
    .hero { padding: 32px 16px 16px; }
    .search-composer { padding: 5px; }
    button.search { padding: 0 16px; font-size: .95rem; }
    input.search { font-size: 1rem; padding: 12px 6px; }
    .search-icon { padding-left: 10px; }
    li.rezultat { padding: 14px 16px; }
    .search-results { padding: 0 14px; }
    a.veza { font-size: 1rem; }
    .brand { font-size: 1.3rem; letter-spacing: .06em; }
    .brand-mark { width: 36px; height: 36px; }
}
