/* ==========================================================================
   style.css – main design. Change values in :root below; everything follows.
   Your own overrides go in user.css (loaded after this file).
   ========================================================================== */

:root {
  /* Colors */
  --color-main:        #d0021b;   /* main theme color: the template's red (a site's own colour: the override block at the top of user.css) */
  --color-breaking:    #d0021b;   /* the breaking news bar under the top bar (the usual alarm red; change it in user.css) */
  --color-dark-grey:   #333333;
  --color-light-grey:  #e5e5e5;
  --color-tag-bg:      #eeeeee;   /* tag buttons (a bit lighter than light grey) */
  --color-tag-text:    #1f1f1f;   /* tag buttons + "Oznake:" (a bit darker than dark grey) */
  --color-meta:        #666666;   /* date, authors, captions (readable contrast on white) */
  --color-share-text:  #8a8a8a;   /* report/share text under the article: light grey (owner choice; 3.4:1 on white, below the 4.5:1 guideline) */
  --color-white:       #ffffff;   /* real white: text and icons on colored backgrounds */
  --color-main-bg:     #ffffff;   /* main background of the whole site and the ticker (pages, menu bar, submenu, banners, content, ticker cards + article layer) */
  --color-black:       #000000;
  --bar-shade:         5%;        /* top bar: darker shade over --color-main, a fade (0% = flat color) */
  --footer-shade:      10%;       /* footer: black over --color-main, even (owner 16 Nov 2026; was the 5% fade; 5% = lighter) */
  --edge-shadow:       0 1px 5px rgb(0 0 0 / .45);    /* shadow under the top bar (owner, 16 Nov 2026) … */
  --edge-shadow-up:    0 -1px 5px rgb(0 0 0 / .45);   /* … the same up, on top of the bottom columns … */
  --edge-shadow-footer: 0 -1px 3px rgb(0 0 0 / .2);   /* … and a small one on top of the footer (owner 16 Nov 2026) */

  /* Fonts */
  --font-1: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;             /* main */
  --font-2: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;                        /* top menu */
  --font-3: "Merriweather", Georgia, "Times New Roman", serif;                             /* h1, h2, h3 */
  --font-4: "Ubuntu", system-ui, Arial, sans-serif;                                       /* text logo */
  --font-5: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;                        /* to test (top menu) */
  --font-6: "Instrument Sans", system-ui, Arial, sans-serif;                              /* to test (top menu) */
  --font-7: "Instrument Sans", "Arial Narrow", Arial, sans-serif;                         /* condensed: use with font-stretch: var(--font-7-stretch) */
  --font-7-stretch: 75%;
  --font-8: "Instrument Sans", "Roboto Condensed", "Arial Narrow", Arial, sans-serif;     /* semi-condensed: use with font-stretch: var(--font-8-stretch).
                                                                                            Instrument Sans has no Cyrillic/Greek: those letters use Roboto Condensed (#2, already loaded) */
  --font-8-stretch: 87.5%;

  /* Article text: used by the article text and the report/share block below it */
  --font-article:            var(--font-1);
  --font-size-article:       var(--font-size-body);

  /* Font sizes */
  --font-size-body:          16px;
  --font-size-small:         13px;
  --font-size-caption:       12px;
  --font-size-pagination:    15px;   /* page numbers (arrows a bit smaller) */
  --font-size-tags:          11px;   /* tag buttons under the article (and the "Oznake:" word) */
  --font-size-h1:            2rem;
  --font-size-h2:            1.6rem;
  --font-size-h3:            1.3rem;
  --font-size-topmenu:       16px;
  --font-size-footer:        15px;
  --font-size-translate:     13px;   /* "TRANSLATE" and its language list */
  --font-size-logo:          1.6rem;
  --font-size-logo-overlay:  2.2rem;   /* site name in the mobile overlay */
  --font-size-bottom3-title: 16px;
  --font-size-bottom3-intro: 16px;
  --font-size-bottom3-meta:  12px;

  /* Layout */
  --max-width:      1200px;
  --side-space:     16px;          /* inner padding on small screens */
  --slot-gap:       24px;          /* space between widgets/banners of one position (one below another) */
  --topbar-height:  60px;
  --topmenu-height: 50px;
  --footer-height:  60px;
  --focus-outline:  3px solid #1a73e8;

  /* Content images */
  --image-radius: 3px;
  /* Layered shadow: several soft layers, light from top-left (looks like real light) */
  --image-shadow:
    0.3px 0.5px 0.7px hsl(0 0% 0% / .10),
    0.8px 1.6px 2px -0.8px hsl(0 0% 0% / .10),
    2.1px 4.1px 5.2px -1.7px hsl(0 0% 0% / .10),
    5px 10px 12.6px -2.5px hsl(0 0% 0% / .10);
}

/* --- Base --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; }
html.menu-is-open { overflow: hidden; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-1);
  font-size: var(--font-size-body);
  line-height: 1.6;
  color: var(--color-dark-grey);
  background: var(--color-main-bg);
}

h1, h2, h3 { font-family: var(--font-3); line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: var(--font-size-h1); font-weight: 400; }
h2 { font-size: var(--font-size-h2); font-weight: 400; }
h3 { font-size: var(--font-size-h3); font-weight: 400; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* Keyboard users always see where they are */
:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 1000;
  padding: 8px 16px; background: var(--color-white); color: var(--color-black); font-weight: 600;
}
.skip-link:focus { top: 8px; }

/* Page-type wrappers (.homepage, .category, .article, .search) – for overrides */
.homepage, .category, .article, .search { margin: 0; padding: 0; }

/* All inner blocks: same width, centered */
[class^="inner_"] {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--side-space);
  padding-right: var(--side-space);
}

/* --- Topbar (sticky) ---------------------------------------------------- */

.outer_topbar {
  position: sticky; top: calc(var(--gt-bar, 0px) + var(--gt-notice, 0px)); z-index: 100;   /* below Google's bar while translated */
  margin: 0; padding: 0;
  background-color: var(--color-main);
  background-image: linear-gradient(to bottom right, transparent, rgb(0 0 0 / var(--bar-shade)));   /* top left original, bottom right darker */
  box-shadow: var(--edge-shadow);
}
.inner_topbar {
  height: var(--topbar-height);
  display: flex; align-items: center; justify-content: space-between;
  color: var(--color-white);
}
.logo { flex: 0 0 33.333%; }
.logo a { display: inline-flex; align-items: center; text-decoration: none; color: var(--color-white); }
.logo img { max-height: calc(var(--topbar-height) - 16px); width: auto; }
.logo-text { font-family: var(--font-4); font-size: var(--font-size-logo); font-weight: 700; line-height: 1; }

.topbar-right { flex: 1 1 66.666%; display: flex; align-items: center; justify-content: flex-end; gap: 4px; }

.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; }
.social a, .search-link, .menu-open, .menu-close {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 6px;                                  /* spacing between icons = 2 × 6px */
  color: var(--color-white); text-decoration: none; font-size: 1.1rem;
  background: none; border: 0; cursor: pointer;
}
.menu-open, .menu-close { min-width: 44px; min-height: 44px; padding: 0; }
.social a:hover, .search-link:hover, .menu-open:hover, .menu-close:hover { opacity: .8; }
.social + .search-link { margin-left: 16px; }   /* extra space between social icons and search (topbar and mobile menu) */
.menu-open { display: none; font-size: 1.4rem; }

/* --- Translation (Google Translate, see TRANSLATE.md) ------------------ */

/* Desktop topbar: "TRANSLATE" + list of languages (in their own language) */
.gt-menu { position: relative; }
.search-link + .gt-menu { margin-left: 16px; }
.gt-toggle {
  display: inline-flex; align-items: center; padding: 8px 6px;
  background: none; border: 0; cursor: pointer;
  color: var(--color-white); font-family: var(--font-1); font-size: var(--font-size-translate); font-weight: 700;
  letter-spacing: .06em;
}
.gt-toggle:hover { opacity: .8; }
.gt-list {
  position: absolute; right: 0; top: 100%; z-index: 150;
  min-width: 180px; margin: 8px 0 0; padding: 8px 0; list-style: none;
  background: var(--color-black); border-radius: 3px;
}
.gt-list[hidden] { display: none; }
.gt-lang {
  display: block; width: 100%; padding: 8px 16px; text-align: left;
  background: none; border: 0; cursor: pointer;
  color: var(--color-white); font-family: var(--font-1); font-size: var(--font-size-translate);
}
.gt-lang:hover { opacity: .8; }
.gt-lang[aria-pressed="true"] { font-weight: 700; }      /* current language */

/* Mobile menu: round flags, spacing like the social icons */
.gt-flags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.gt-flag {
  display: inline-flex; align-items: center; padding: 8px 6px;
  background: none; border: 0; cursor: pointer; line-height: 0;
}
.gt-flag .fi {
  width: 24px; height: 24px; line-height: 24px;
  border-radius: 50%; background-size: cover;
  /* soft white glow (no hard edge): close, medium and wide layers, each fainter */
  box-shadow: 0 0 4px rgba(255, 255, 255, .55), 0 0 10px rgba(255, 255, 255, .3), 0 0 18px rgba(255, 255, 255, .15);
}
.gt-flag:hover .fi { opacity: .8; }

/* Notice under Google's bar: black like it, white text, body font and size */
.gt-notice {
  position: fixed; left: 0; right: 0; top: var(--gt-bar, 0px); z-index: 2147483000;
  margin: 0; padding: 6px var(--side-space);
  background: #000; color: #fff;
  font-family: var(--font-1); font-size: var(--font-size-footer); line-height: 1.4; text-align: center;   /* 15px like the footer */
}
.gt-notice[hidden] { display: none; }

/* Google's bar hidden ($hideGoogleBar in translate.php): no bar and no space reserved for it */
.gt-hide-bar body { top: 0 !important; position: static !important; }
.gt-hide-bar body > .skiptranslate,
.gt-hide-bar iframe.goog-te-banner-frame,
.gt-hide-bar iframe[id$=".container"] { display: none !important; }

/* Google's own extras we don't want */
#goog-gt-tt, .goog-te-balloon-frame, .goog-tooltip, .goog-te-menu-frame { display: none !important; }   /* incl. dropdown option blocks */
.goog-text-highlight { background: none !important; box-shadow: none !important; }
iframe.skiptranslate, .skiptranslate > iframe, iframe[id$=".container"] {
  border: 0 !important; box-shadow: none !important; background: #000;      /* no blue line under Google's bar */
}


/* --- Breaking news bar (header.php, lib.php breaking_bar_html(); owner 18 Nov 2026) ---------------------------
   Under the top bar, first in horizontal1, every page, only while an article flagged "breaking" is younger than 6 h.
   Colour: --color-breaking (change it in user.css). Desktop: label | time + title (one line) | 1/3 ‹ ⏸ ›.
   Phones / portrait tablets: label + buttons on top, the title under it (up to 2 lines). Several articles: one at a time,
   the new one slides up and fades in (body.php script); "reduce motion": no movement. */
.outer_topline { margin: 0; padding: 0; background: var(--color-breaking); color: var(--color-white); }
.inner_topline { display: flex; align-items: center; gap: 16px; min-height: 44px; }
.topline-label {
  flex: 0 0 auto; padding: 4px 8px; border-radius: var(--image-radius);
  background: var(--color-white); color: var(--color-breaking);
  font-family: var(--font-1); font-size: 12px; font-weight: 800; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em;
}
.topline-list { position: relative; flex: 1 1 auto; min-width: 0; height: 44px; margin: 0; padding: 0; list-style: none; overflow: hidden; }
.topline-item {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; transform: translateY(50%); pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
}
.topline-item.is-on { opacity: 1; transform: none; pointer-events: auto; }
.topline-item a, .topline-item a:link, .topline-item a:visited {
  display: block; min-width: 0; max-width: 100%;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  color: var(--color-white); text-decoration: none; font-family: var(--font-1); font-size: 16px; font-weight: 600; line-height: 1.35;
}
.topline-item a:hover .topline-title, .topline-item a:focus-visible .topline-title { text-decoration: underline; }
.topline-item a:focus-visible { outline: 2px solid var(--color-white); outline-offset: -2px; }
.topline-time { margin-right: 6px; font-weight: 800; }
.topline-nav { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; }
.topline-nav[hidden] { display: none; }
.topline-count { margin-right: 6px; font-family: var(--font-1); font-size: 13px; font-weight: 600; opacity: .9; }
.topline-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 50%; background: rgb(255 255 255 / .16); color: var(--color-white); font-size: 13px; cursor: pointer;
}
.topline-btn:hover { background: rgb(255 255 255 / .3); }
.topline-btn:focus-visible { outline: 2px solid var(--color-white); outline-offset: 2px; }
.topline-ico-play, .topline-say-play { display: none; }
.outer_topline.is-paused .topline-ico-pause, .outer_topline.is-paused .topline-say-pause { display: none; }
.outer_topline.is-paused .topline-ico-play { display: inline; }
.outer_topline.is-paused .topline-say-play { display: block; }
@media (prefers-reduced-motion: reduce) { .topline-item { transition: none; transform: none; } }
@media (max-width: 800px), (orientation: portrait) and (max-width: 1024px) {
  .inner_topline { flex-wrap: wrap; gap: 6px 12px; padding-top: 8px; padding-bottom: 8px; }
  .topline-label { order: 1; }
  .topline-nav { order: 2; margin-left: auto; }
  .topline-list { order: 3; flex: 1 1 100%; height: 2.7em; font-size: 16px; }
  .topline-item { align-items: flex-start; }
  .topline-item a, .topline-item a:link, .topline-item a:visited {
    white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  }
}

/* --- Banners 1–3 -------------------------------------------------------- */

.outer_banner1, .outer_banner2, .outer_banner3 { margin: 0; padding: 0; background: var(--color-main-bg); }
.inner_banner1, .inner_banner2, .inner_banner3 { text-align: center; }
.place-box { display: flex; justify-content: center; }   /* banner place (17 Nov 2026: was .ad-slot, a name ad blockers hide) */
.place-box:empty { display: none; }

/* A position (banner rows, bottom rows, each bottom column): widgets and banners one below another,
   in the admin order. Empty banner places take no room. */
.slot-stack { display: flex; flex-direction: column; gap: var(--slot-gap); }
.slot-item { min-width: 0; }

/* --- Main menu ---------------------------------------------------------- */

.outer_topmenu {
  margin: 0; padding: 0;
  background: var(--color-main-bg);
  border-bottom: 1px solid var(--color-light-grey);
}
/* the same line on top of the main menu, only when the breaking news bar or banner1 / banner2 (horizontal1/2) show something
   above it (owner, 18 Nov 2026; they exist only then; the main menu is desktop only) */
.outer_topline + .outer_topmenu, .outer_banner1 + .outer_topmenu, .outer_banner2 + .outer_topmenu { border-top: 1px solid var(--color-light-grey); }
/* --topmenu-gap / -stretch / -size are lowered by a script in body.php only when the menu
   doesn't fit on one line (e.g. longer translations): first smaller gaps, then narrower letters,
   then at most 1px smaller. If it still doesn't fit, it wraps to a second line. */
.inner_topmenu {
  font-family: var(--font-8); font-stretch: var(--topmenu-stretch, var(--font-8-stretch));
  font-size: var(--topmenu-size, var(--font-size-topmenu)); color: var(--color-dark-grey); text-transform: uppercase; font-weight: 500;
}
.inner_topmenu > ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--topmenu-gap, 24px);
}
.inner_topmenu > ul > li { white-space: nowrap; }      /* one item never breaks inside */
.inner_topmenu li { position: relative; }
.inner_topmenu a {
  display: flex; align-items: center; min-height: var(--topmenu-height);
  text-decoration: none; color: var(--color-dark-grey);
  border-bottom: 1px solid transparent;
}
/* Line on hover, while clicking, and on the current section. Visited looks like a normal link. */
.inner_topmenu a:link, .inner_topmenu a:visited { color: var(--color-dark-grey); }
/* Menu separator (admin type "Separator"): looks exactly like a menu link, but has no link (no hand cursor) */
.inner_topmenu a.menu-sep { color: var(--color-dark-grey); }
a.menu-sep { cursor: default; }
.inner_topmenu a:hover, .inner_topmenu a:active, .inner_topmenu .active > a { border-bottom-color: var(--color-main); }

.inner_topmenu .submenu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 90;
  min-width: 220px; list-style: none; margin: 0; padding: 8px 16px;
  background: var(--color-main-bg); border: 1px solid var(--color-light-grey);
  text-align: left;
}
.inner_topmenu .submenu a { min-height: 36px; }
.inner_topmenu li:hover > .submenu,
.inner_topmenu li:focus-within > .submenu { display: block; }
.inner_topmenu .submenu .submenu { top: 0; left: 100%; }

/* The last (far right) main-menu item: its dropdown and every deeper level open toward the left,
   so they are never cut off on the right (e.g. 13" screens, ~1300px) */
.inner_topmenu > ul > li:last-child > .submenu { left: auto; right: 0; }
.inner_topmenu > ul > li:last-child .submenu .submenu { left: auto; right: 100%; }

/* --- Mobile overlay menu ------------------------------------------------ */

.menu-overlay {
  position: fixed; z-index: 200;
  top: calc(var(--gt-bar, 0px) + var(--gt-notice, 0px)); right: 0; bottom: 0; left: 0;   /* below Google's bars while translated */
  background: var(--color-black); color: var(--color-white);
  overflow-y: auto; padding: 8px 32px 32px;          /* left/right: 32px */
}
.menu-overlay[hidden] { display: none; }
.overlay-flags { margin: 4px 0 24px -6px; }     /* flags on top, 24px to the logo */
.overlay-top { display: flex; align-items: center; min-height: var(--topbar-height); }
.overlay-top .logo { flex: 1 1 auto; }
.overlay-top .logo-text { font-size: var(--font-size-logo-overlay); }
.overlay-top .logo img { max-height: 56px; }
.overlay-top .menu-close { margin-left: auto; }
/* Icons flow like words: many icons continue in the next row, the search icon follows the last one
   (and moves to the next row only when there is no room). 24px space before the menu. */
.overlay-icons { display: block; margin: 4px 0 24px -6px; font-size: 0; line-height: 0; }
.overlay-icons .social { display: inline; }
.overlay-icons .social li { display: inline-block; vertical-align: middle; }
.overlay-icons .search-link { vertical-align: middle; }
.overlay-menu { font-family: var(--font-2); }
/* The menu = a tree like the news ticker's menu (owner 22 Oct 2026; own class names "om-…"): one row per item,
   the round › button opens the sub-items below (they slide out, with a line in the main color). */
.om-tree, .om-sub-list { list-style: none; margin: 0; padding: 0; }
.om-tree { border-top: 1px solid rgb(255 255 255 / .14); }
.om-row { display: flex; align-items: center; gap: 10px; padding-right: 4px; border-bottom: 1px solid rgb(255 255 255 / .14); transition: background .2s ease; }
.om-node.open > .om-row { background: rgb(255 255 255 / .06); }          /* open group: lighter row */
.om-item {
  flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0;
  padding: 15px 4px; background: none; border: 0; text-align: left; cursor: pointer; overflow-wrap: anywhere;
  font-family: var(--font-2); color: var(--color-white); text-decoration: none;
  font-size: max(.95rem, calc(1.25rem - var(--depth, 0) * .12rem));    /* each level a little smaller */
}
span.om-item { cursor: default; }
.om-item:hover .om-name { opacity: .8; }                                  /* same as icon hover */
.om-item[aria-current] { font-weight: 700; }
.om-toggle { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.om-circle {                                                    /* the round arrow: 34px circle (tap area 44px) */
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: rgb(255 255 255 / .10); color: var(--color-white); font-size: 13px;
  transition: background .2s ease;
}
.om-sep .om-circle { margin: -5px 0; }                           /* inside the separator's row button */
.om-toggle:hover .om-circle, .om-sep:hover .om-circle { background: rgb(255 255 255 / .22); }
.om-circle i { transition: transform .25s ease; }
.om-node.open > .om-row .om-circle { background: var(--color-main); }
.om-node.open > .om-row .om-circle i { transform: rotate(90deg); }      /* › turns to ⌄ */
.om-sub { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .3s ease, visibility 0s linear .3s; }
.om-node.open > .om-sub { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .3s ease, visibility 0s; }
.om-sub-list { min-height: 0; overflow: hidden; margin-left: 18px; padding-left: 14px; border-left: 2px solid var(--color-main); }
.overlay-menu :focus-visible { outline-color: var(--color-white); }
@media (prefers-reduced-motion: reduce) { .om-sub, .om-node.open > .om-sub, .om-circle i { transition: none; } }

/* --- Content ------------------------------------------------------------ */

/* Content images: article image and images inside article text */
.article-image img, .article-content img {
  border-radius: var(--image-radius);
  box-shadow: var(--image-shadow);
}

/* Card images: the frame keeps radius and shadow, the photo moves inside it on hover */
.card-image a {
  display: block; overflow: hidden;
  border-radius: var(--image-radius);
  box-shadow: var(--image-shadow);
}
.card-image img { transition: transform .45s ease; }
.card:hover .card-image img,
.card:focus-within .card-image img { transform: scale(1.05) rotate(1deg); }   /* zoom 5% + slight turn */
.card-image .label:first-of-type { border-top-left-radius: var(--image-radius); }
.card-image .label.label-category { top: auto; bottom: 0; border-radius: 0 0 0 var(--image-radius); }   /* category: bottom-left */

main { display: block; outline: none; }
[class^="outer_content_"] { margin: 0; padding: 0; background: var(--color-main-bg); }
[class^="inner_content_"] { padding-top: 24px; padding-bottom: 40px; color: var(--color-dark-grey); }
.inner_content_article { padding-top: 40px; }                  /* article page, desktop: more space under the main menu (mobile: 32px, below) */

.meta { font-size: var(--font-size-small); margin: 0 0 8px; color: var(--color-meta); }
.meta a { text-decoration: none; }
.meta a:hover { text-decoration: underline; }
.meta-read { white-space: nowrap; }                       /* reading time: clock + "3 min" never split */
.meta-read .fa-clock { font-size: .9em; margin-right: 2px; opacity: .85; }   /* thin, quiet icon in the meta colour */

.label {
  display: inline-block; padding: 2px 8px;
  font-size: var(--font-size-small); font-weight: 600;
  background: var(--color-main); color: var(--color-white);
}
.label-sponsored { background: var(--color-dark-grey); }
.label-category { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; background: var(--cat-color, var(--color-main)); }   /* category color from the admin */
.label-custom {                                   /* custom label: before the card title, same line, main color, no box */
  font-family: var(--font-1); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  color: var(--color-main); margin-right: 4px; vertical-align: .1em;
}
/* Category block ABOVE the title (owner 14 Nov 2026; lib.php cat_label_above): a card without a photo (not a link),
   and always on the article page (a link to the category, tap area 24px) */
.label-above { margin-bottom: 8px; }
a.label-above-link { padding: 4px 8px; line-height: 16px; text-decoration: none; color: var(--color-white); }
a.label-above-link:hover, a.label-above-link:focus-visible { text-decoration: underline; color: var(--color-white); }
.article-main > .label-above { margin-bottom: 12px; border-radius: var(--image-radius); }   /* article page: corners like the photos */
span.label-above { border-radius: var(--image-radius); }   /* cards without a photo (14 Nov 2026): rounded like the photos; the label ON a photo stays sharp */
/* Category labels are LINKS to their category's page (owner 20 Nov 2026: every card of the website; the ticker never; a
   category without a page, e.g. footer-only "Razglas", keeps the plain label). lib.php cat_label_photo() / cat_label_above(),
   class label-link. On a photo: never the photo frame's look; above the whole-card link of phones (z-index 2 over 1). */
.card-image a.label-link { display: inline-block; overflow: visible; box-shadow: none; border-radius: 0 0 0 var(--image-radius); }
a.label-link { z-index: 2; }
.card a.label-link, .card a.label-link:link, .card a.label-link:visited, .article-main a.label-link:visited { color: var(--color-white); text-decoration: none; }
.card a.label-link:hover, .card a.label-link:focus-visible { text-decoration: underline; }
a.label-link.label-above { position: relative; }
.card a.label-link.label-above { border-radius: var(--image-radius); }   /* a card without a photo: rounded like the plain label was */
/* Homepage + category page on phones / portrait tablets (owner 17 Nov 2026): on the cards that sit TWO SIDE BY SIDE there
   (the other featured: .cat-more / .home-more; the "all articles" list after its first article: .cat-row / .home-row) the
   category name is coloured text on its own line above the title (12px, 800, capitals): under the photo instead of on it,
   and the block of a card without a photo too. Full-width cards (rotator, column 2, the first big article) unchanged.
   Desktop, tag / author pages, related articles, search and the article page unchanged. */
@media (max-width: 800px), (orientation: portrait) and (max-width: 1024px) {
  :is(.cat-more .cat-card, .cat-row, .home-more .home-card, .home-row, .spider-row) .label.label-category {
    position: static; display: block; padding: 0; border-radius: 0; background: none;
    font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
    color: var(--cat-color, var(--color-main));
  }
  :is(.cat-more .cat-card, .cat-row, .home-more .home-card, .home-row, .spider-row) .card-image > .label-category { margin-top: 16px; }
  :is(.cat-more .cat-card, .cat-row, .home-more .home-card, .home-row, .spider-row) .card-image:has(> .label-category) { margin-bottom: 8px; }
  :is(.cat-more .cat-card, .cat-row, .home-more .home-card, .home-row, .spider-row) .label-category.label-above { margin-bottom: 8px; }
  :is(.cat-more .cat-card, .cat-row, .home-more .home-card, .home-row) a.label-link.label-category { position: relative; color: var(--cat-color, var(--color-main)); }   /* the label as text, a link (20 Nov 2026): its colour, above the whole-card link */
  a.label-link::before { content: ""; position: absolute; inset: -4px -2px; }   /* a tap area of at least 24px, nothing moves */
}
/* Homepage + category page on DESKTOP (owner 17 Nov 2026): the small cards of the bottom list (.cat-row / .home-row, every
   article after the big first one): the category name is coloured text (12px, 700, capitals) on its own line ABOVE THE
   TITLE, 6px over it, in the right column, the top of its capitals level with the top of the photo; the photo alone on the left. A card without a photo: the same text above the
   title instead of the coloured block. The media rule = exactly the opposite of the site's mobile rule. Phones / portrait
   tablets, the big first article, every other card, tag / author pages and the ticker unchanged. */
@media (min-width: 801px) and (orientation: landscape), (min-width: 1025px) {
  :is(.cat-row, .home-row, .spider-row):not(.card-nophoto) { grid-template-rows: auto 1fr; row-gap: 0; }
  :is(.cat-row, .home-row, .spider-row):not(.card-nophoto) .card-image { display: contents; }               /* photo and label become cells */
  :is(.cat-row, .home-row, .spider-row):not(.card-nophoto) .card-image > a { grid-column: 1; grid-row: 1 / span 2; }
  :is(.cat-row, .home-row, .spider-row):not(.card-nophoto) .card-image > .label-category { grid-column: 2; grid-row: 1; margin: -5px 0 6px; }   /* -5px: the top of the capitals level with the top of the photo (Inter 12px, line height 1.6) */
  :is(.cat-row, .home-row, .spider-row):not(.card-nophoto) .card-text { grid-column: 2; grid-row: 2; }
  :is(.cat-row, .home-row, .spider-row) .label.label-category {
    position: static; display: block; justify-self: start; padding: 0; border-radius: 0; background: none;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
    color: var(--cat-color, var(--color-main));
  }
  :is(.cat-row, .home-row, .spider-row) .label-category.label-above { margin-bottom: 6px; }
  :is(.cat-row, .home-row) a.label-link.label-category { color: var(--cat-color, var(--color-main)); }   /* the label as text, a link (20 Nov 2026): its colour */
}

/* Article card grid (base) */
.article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px 24px; }
/* Masonry (category, tag, author lists; script in body.php): same gaps, cards placed by the script */
.article-list.masonry { row-gap: 44px; }                       /* vertical gap between cards (the script reads it) */
.article-list.is-masonry { display: block; position: relative; }
.article-list.is-masonry > .card { position: absolute; top: 0; left: 0; }
.card-image { position: relative; margin-bottom: 12px; }
.card-image .label { position: absolute; left: 0; top: 0; }
.card-image .label + .label { top: auto; bottom: 0; }
.card-title { font-size: var(--font-size-h3); margin-bottom: 2px; }        /* date line close to the title */
.card .meta { margin: 0 0 18px; }                                          /* space before the intro text */
.card-title a { text-decoration: none; }
/* Card links: image, title and intro all open the article.
   Same color in every state. Title and intro: main color on hover/keyboard focus (no underline);
   author links: underline on hover. */
.card a, .card a:link, .card a:visited, .card a:active { color: inherit; text-decoration: none; }
.card .meta a:hover { text-decoration: underline; }
.card .card-title a, .card .card-intro a { transition: color .2s ease; }
.card .card-title a:hover, .card .card-title a:focus-visible,
.card .card-intro a:hover, .card .card-intro a:focus-visible { color: var(--color-main); text-decoration: none; }
.card-intro { margin: 0; }

.list-header { margin-bottom: 40px; }                          /* space before the cards */
.list-header h1 { margin-bottom: 0; }
.list-header .list-description { margin: 6px 0 0; }            /* close under the heading */
.list-header .avatar { border-radius: 50%; margin-bottom: 12px; }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; font-size: var(--font-size-pagination); }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--color-light-grey); border-radius: var(--image-radius); text-decoration: none;   /* same small rounding as photos */
}
.pagination [aria-current] { background: var(--color-main); border-color: var(--color-main); color: var(--color-white); }
.pagination a[href]:hover { background: color-mix(in srgb, var(--color-main) 10%, transparent); }   /* mouse-over: main color, 90% transparent */
.pagination .is-off { opacity: .35; cursor: default; }                     /* arrow that can't go anywhere (first / last page) */
@media (max-width: 800px), (orientation: portrait) and (max-width: 1024px) {
  .pagination { justify-content: center; }                                 /* mobile / portrait: centered */
}
@media (max-width: 600px) {                                                /* phones: one row – 3 numbers instead of 5, boxes 40px */
  .pagination { gap: 6px; }
  .pagination a, .pagination span { min-width: 40px; min-height: 40px; }
  .pagination .page-wide { display: none; }                                /* the 2 outer numbers of the 5 */
}
.pagination .page-arrow { padding: 0; font-size: .85em; }                   /* « ‹ › » icons: same box, quiet size */
.pagination .page-gap { border-color: transparent; min-width: 24px; padding: 0; }   /* "…": no box */

/* Sidebar standard – the same on every page that shows one:
   350px wide, vertical line on the left, 24px space to its content.
   On narrow screens: full width, no line (placed under the content by the page layout). */
.sidebar {
  flex: 0 0 350px; width: 350px; min-width: 0;
  border-left: 1px solid var(--color-light-grey); padding-left: 24px;   /* same line as under the top menu */
}
.sidebar-block { margin-bottom: 32px; }
.sidebar-title { font-size: var(--font-size-h3); }
.sidebar-list { list-style: none; margin: 0; padding: 0; }
.sidebar-list li { padding: 8px 0; border-bottom: 1px solid var(--color-light-grey); }
.sidebar-list a { text-decoration: none; }
.sidebar-list a:hover { text-decoration: underline; }

@media (max-width: 1000px) {
  .sidebar { width: auto; flex-basis: auto; margin-top: 40px; border-left: 0; padding-left: 0; }
}

/* Article page: article up to 850px + sidebar */
.article-layout { display: flex; justify-content: space-between; gap: 32px; }
.article-layout > .article-main { flex: 1 1 auto; max-width: 850px; min-width: 0; }
.article-layout > .sidebar { flex-basis: 250px; width: 250px; }          /* article page: narrower sidebar on desktop */
@media (min-width: 1001px) {                                             /* desktop: article max 850px, the sidebar takes the rest; */
  .article-layout { gap: 24px; }                                          /* 24px left of the sidebar line, as on its right */
  .article-layout > .article-main { flex: 0 1 850px; }
  .article-layout > .sidebar { flex: 1 0 250px; width: auto; }
}
@media (max-width: 1000px) {
  .article-layout { flex-direction: column; gap: 0; }
  .article-layout > .sidebar { width: auto; max-width: none; }          /* under the article: full width */
}
/* Footer pages without a sidebar (admin → Menus → Footer menu pages, 15 Nov 2026): the article takes the sidebar's place */
.article-layout.article-wide > .article-main { flex: 1 1 auto; max-width: none; }
/* Block headings on the article page: "IZDVOJENO" (sidebar), "POVEZANI ČLANCI" (under the article): pale grey, thin grey line */
.block-title {
  margin: 0 0 20px; padding-bottom: 6px; border-bottom: 1px solid var(--color-light-grey);   /* same line as the sidebar divider */
  font-family: var(--font-1); font-size: 12px; font-weight: 700; line-height: 1.3;
  text-transform: uppercase; letter-spacing: .03em; color: var(--color-share-text);           /* same grey as the text above the share icons */
}

/* Sidebar "Izdvojeno": round photo left (64px), title right (body size, bold), date line under it */
.featured-list { list-style: none; margin: 0; padding: 0; }
.featured-list li {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 12px 0;                                                  /* no line between the articles */
}
.featured-list li:first-child { padding-top: 0; }
.featured-list li[hidden] { display: none; }
.featured-thumb {
  display: block; width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  background: var(--cat-color, var(--color-main));                 /* no photo: a circle in the category color */
}
.featured-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.featured-title {
  display: block; font-size: var(--font-size-body); font-weight: 700; line-height: 1.35;
  color: var(--color-dark-grey); text-decoration: none; transition: color .2s ease;
}
.featured-title:hover, .featured-title:focus-visible { color: var(--color-main); text-decoration: none; }
.featured-list .meta { margin: 4px 0 0; }
.sidebar .featured-title { font-weight: 600; }                          /* article sidebar "Izdvojeni članci": 600, desktop + mobile */
/* Desktop: no photos in Izdvojeno, only title + date line (mobile/portrait: photos shown, see below) */
.featured-list li { grid-template-columns: minmax(0, 1fr); }
.featured-thumb { display: none; }
/* Desktop: title at most 2 lines, then "…" (only on screen: the whole title stays in the page
   for screen readers, translation and search engines) */
.featured-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }

/* --- Category page (content_category.php; tag and author pages are not affected) ---------------
   block 1: rotator (important, 2 columns wide) | 2 featured | "Najnoviji članci" (like the article sidebar)
   block 2: the other featured, 4 in a row (same columns as block 1)
   horizontal5 between block 1 and 2, horizontal6 between block 2 and 5
   block 5: all articles: the 1st big (left half), 3 beside it, the rest in 2 columns; photo left + text right; page numbers
   Mobile/portrait: everything one below another, left on top. */
/* Heading (admin → Categories → "Show on the website" → Category page, 14 Nov 2026): the category's own image under the
   title (200px wide, own proportion, nothing cut), the description beside it; phones/portrait: the description under it.
   Title off = only for screen readers; nothing visible in the heading = no space for it. */
.cat-head-body { display: flex; align-items: flex-start; gap: 20px; margin-top: 16px; }
.list-header h1.visually-hidden + .cat-head-body { margin-top: 0; }
.cat-head-image { flex: 0 0 200px; width: 200px; border-radius: var(--image-radius); box-shadow: var(--image-shadow); }
.cat-head-body .list-description { flex: 1 1 auto; min-width: 0; margin: 0; }
.list-header.cat-head-hidden { margin-bottom: 0; }
.list-header.cat-head-notext { margin-top: 16px; }              /* title + description off: 40px under the menu / top bar (24 + 16) */
@media (max-width: 800px), (orientation: portrait) and (max-width: 1024px) {
  .cat-head-body { flex-direction: column; gap: 12px; }
  .cat-head-image { flex: none; }
}
.cat-block { margin-bottom: 48px; }
.cat-block:last-child { margin-bottom: 0; }
.cat-empty { margin: 0; color: var(--color-meta); }                    /* empty block: "Još nema članaka." */
.cat-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: start; }
.cat-important { grid-column: span 2; min-width: 0; }
.cat-featured { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.cat-latest { min-width: 0; border-left: 1px solid var(--color-light-grey); padding-left: 24px; }   /* same line and space as the article sidebar */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.cat-card .meta { margin: 0; }                                          /* no intro under it */
.cat-featured .card-title { font-family: var(--font-1); font-size: 17px; }   /* column 2, desktop: like block 3 (17px, body font, regular) */
.cat-latest .featured-title { font-weight: 400; font-size: 14px; }     /* column 3, desktop: regular titles, 14px … */
.cat-latest .featured-list .meta { display: none; }                     /* … without the date line (mobile: as before, below) … */
.cat-latest .latest-date { font-size: var(--font-size-small); color: var(--color-meta); }   /* … the date at the start of the title, in the date style … */
.cat-latest .featured-list li { padding: 8px 0; }                        /* … 16px between the articles (sidebar: 24px) */
.cat-latest .featured-list li:first-child { padding-top: 0; }           /* space under the heading line unchanged */

/* Block 5 (all articles of the page): 1st big on the left half (like the rotator card), CATEGORY_LIST_SIDE (lib.php)
   beside it one below another, the rest below in 2 columns, left to right. All but the 1st: photo left (1/3), text right.
   Intro only on the 1st. Titles on desktop: big 22px (Merriweather), the others 17px in the body font.
   Mobile/portrait: the 1st as a normal card, the rest as regular cards (photo on top) in 2 columns, left to right. */
.cat-list-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.cat-list-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.cat-list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; align-items: start; }
.cat-lead .card-title { font-size: 22px; }
.cat-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.cat-row .card-image { margin-bottom: 0; }
.cat-row .card-title { font-family: var(--font-1); font-size: 17px; }   /* desktop: body font, normal weight (mobile: below) */
.cat-row .meta { margin-bottom: 8px; }

/* Photos in the category view: always whole, in their own proportion (width 100%, height automatic), never cut.
   No photo: a block in the category color, default shape 1200 x 630. */
.card-noimage { display: block; aspect-ratio: 1200 / 630; background: var(--cat-color, var(--color-main)); }
.cat-more .card-title { font-family: var(--font-1); font-size: 17px; }   /* block 3, desktop: like the small cards of block 5 */

/* Rotator: all articles are in the page (screen readers read them as a list); only the active one is seen.
   They lie on top of each other, so the height is the tallest one and nothing jumps. */
.rotator { position: relative; }
.rot-list { list-style: none; display: grid; overflow: hidden; padding: 0 8px 12px; margin: 0 -8px -12px; }   /* slides move inside; room for the photo shadow */
.rot-slide { grid-area: 1 / 1; min-width: 0; transform: translateX(calc(100% + 24px)); pointer-events: none; transition: transform .6s ease; }   /* waiting on the right */
.rot-slide.is-active { transform: none; pointer-events: auto; z-index: 1; }
.rot-list:focus-within .rot-slide { transform: translateX(calc(100% + 24px)); pointer-events: none; }        /* keyboard: the article that has focus is seen */
.rot-list .rot-slide:focus-within { transform: none; pointer-events: auto; z-index: 1; }
.rot-card .card-title { font-size: var(--font-size-h2); }
.rot-card .meta { margin-bottom: 12px; }
.rot-card .card-intro { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }   /* on screen max 3 lines; the whole intro stays in the page */

/* Controls over the photo: ‹ left, pause/play in the middle, › right; round white buttons */
.rot-controls {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3; height: var(--rot-photo-h, 0px);   /* = photo of the shown article (script) */
  display: flex; align-items: center; justify-content: space-between; padding: 0 12px; pointer-events: none;
}
.rot-controls[hidden] { display: none; }
.rot-btn {
  pointer-events: auto; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--color-dark-grey); font-size: 16px;
  box-shadow: var(--image-shadow); transition: opacity .25s ease, background-color .2s ease, color .2s ease;
}
.rot-btn:hover { background: var(--color-main); color: var(--color-white); }
.rot-toggle { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.rot-ico-play, .rot-say-play { display: none; }
.rotator.is-paused .rot-ico-pause, .rotator.is-paused .rot-say-pause { display: none; }
.rotator.is-paused .rot-ico-play { display: inline-block; }
.rotator.is-paused .rot-say-play { display: block; }
.rot-ico-play { margin-left: 2px; }                                     /* the play triangle looks centered */
/* With a mouse: buttons appear when the pointer or the keyboard is on the rotator; "play" stays while it is stopped.
   Touch screens: always visible. */
@media (hover: hover) {
  .rotator .rot-btn { opacity: 0; }
  .rotator:hover .rot-btn, .rotator.is-kb .rot-btn, .rot-btn:focus-visible, .rotator.is-paused .rot-toggle { opacity: 1; }
}
@media (hover: none) {                                                  /* touch screens (always visible): 50% transparent */
  .rot-btn { background: rgba(255, 255, 255, .5); }
}

@media (max-width: 800px), (orientation: portrait) and (max-width: 1024px) {
  .cat-top { grid-template-columns: 1fr; gap: 40px; }
  .cat-important { grid-column: auto; }
  .cat-latest { border-left: 0; padding-left: 0; }
  .cat-latest .featured-title { font-weight: 600; font-size: var(--font-size-body); }   /* column 3 on mobile/portrait: like block 3 (16px, 600) */
  .cat-latest .featured-list .meta { display: block; }
  .cat-latest .latest-date { display: none; }                          /* mobile: the date stays in the date line */
  .cat-latest .featured-list li { padding: 12px 0; }                   /* mobile: space between the articles as before */
  .cat-latest .featured-list li:first-child { padding-top: 0; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }   /* block 3: regular cards, 2 columns */
  .cat-more .card-title { font-size: 16px; font-weight: 600; line-height: 1.35; }   /* like block 5 on mobile */
  .cat-featured .card-title { font-size: 16px; font-weight: 600; line-height: 1.35; }   /* column 2 on mobile: like block 3 */
  .cat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }   /* block 5: one grid … */
  .cat-list-top, .cat-list-side, .cat-list-grid { display: contents; }  /* … so the cards flow left to right without gaps */
  .cat-lead { grid-column: 1 / -1; }                                    /* the 1st: full width, as before */
  .cat-row { display: block; }                                          /* the others: regular cards, photo on top */
  .cat-row .card-image { margin-bottom: 12px; }
  .cat-row .meta { margin-bottom: 0; }
  .cat-lead .card-title { font-size: 20px; }                           /* block 5, mobile: the 1st */
  .cat-row .card-title { font-family: var(--font-1); font-size: 16px; font-weight: 600; line-height: 1.35; }   /* the others: body font, semibold */
}

/* --- Homepage (content_homepage.php): own copy of the category page's look, own class names "home-…" ------
   Nothing is shared with the category page on purpose, so each can be changed alone.
   One "cat's position" per main category: title (link) + description, block 1 (rotator | 2 featured | Najnoviji članci),
   block 3 (the other featured); horizontal7–19 between them, horizontal20 after the last; then the newest articles
   (like the category page's block 5). Values = the category page's on 21 Oct 2026. */
.home-section { margin-bottom: 56px; }
.home-slot { margin-bottom: 56px; }
.home-head { margin-bottom: 40px; }                                       /* like the category page header */
.home-head h2 { font-size: var(--font-size-h1); margin: 0; }
.home-head h2 a { color: inherit; text-decoration: none; transition: color .2s ease; }
.home-head h2 a:hover, .home-head h2 a:focus-visible { color: var(--color-main); }
.home-description { margin: 6px 0 0; }
/* Section head (admin → Categories → "Show on the website" → Homepage, 14 Nov 2026): own copy of the category page's
   heading look. The category's own image under the title (200px, own proportion), the description beside it;
   phones/portrait: under it. Title off = only for screen readers, no link; nothing visible = no space for it. */
.home-head-body { display: flex; align-items: flex-start; gap: 20px; margin-top: 16px; }
.home-head h2.visually-hidden + .home-head-body { margin-top: 0; }
.home-head-image { flex: 0 0 200px; width: 200px; border-radius: var(--image-radius); box-shadow: var(--image-shadow); }
.home-head-body .home-description { flex: 1 1 auto; min-width: 0; margin: 0; }
.home-head.home-head-hidden { margin-bottom: 0; }
.home-section:first-of-type > .home-head-notext { margin-top: 16px; }   /* 1st section, title + description off: 40px under the menu / top bar */
@media (max-width: 800px), (orientation: portrait) and (max-width: 1024px) {
  .home-head-body { flex-direction: column; gap: 12px; }
  .home-head-image { flex: none; }
}
.home-block { margin-bottom: 48px; }
.home-block:last-child { margin-bottom: 0; }
.home-empty { margin: 0; color: var(--color-meta); }
.home-section .card-title, .home-all .card-title { font-family: var(--font-3); font-weight: 400; line-height: 1.3; margin: 0 0 2px; }   /* h3/h4 like the category cards */
.home-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: start; }
.home-important { grid-column: span 2; min-width: 0; }
.home-featured { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.home-latest { min-width: 0; border-left: 1px solid var(--color-light-grey); padding-left: 24px; }
.home-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.home-card .meta { margin: 0; }
.home-featured .card-title { font-family: var(--font-1); font-size: 17px; }
.home-more .card-title { font-family: var(--font-1); font-size: 17px; }
.home-noimage { display: block; aspect-ratio: 1200 / 630; background: var(--cat-color, var(--color-main)); }

/* "Najnoviji članci" of a cat's position (own copy of the list look) */
.home-latest-list { list-style: none; margin: 0; padding: 0; }
.home-latest-list li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; padding: 8px 0; }
.home-latest-list li:first-child { padding-top: 0; }
.home-latest-thumb { display: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--cat-color, var(--color-main)); }
.home-latest-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-latest-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  font-size: 14px; font-weight: 400; line-height: 1.35; color: var(--color-dark-grey); text-decoration: none; transition: color .2s ease;
}
.home-latest-title:hover, .home-latest-title:focus-visible { color: var(--color-main); text-decoration: none; }
.home-latest-date { font-size: var(--font-size-small); color: var(--color-meta); }
.home-latest-list .meta { display: none; margin: 4px 0 0; }

/* Rotators (only the most visible one moves; script in content_homepage.php) */
.home-rotator { position: relative; }
.home-rot-list { list-style: none; display: grid; overflow: hidden; padding: 0 8px 12px; margin: 0 -8px -12px; }   /* slides move inside; room for the photo shadow */
.home-rot-slide { grid-area: 1 / 1; min-width: 0; transform: translateX(calc(100% + 24px)); pointer-events: none; transition: transform .6s ease; }   /* waiting on the right */
.home-rot-slide.is-active { transform: none; pointer-events: auto; z-index: 1; }
.home-rot-list:focus-within .home-rot-slide { transform: translateX(calc(100% + 24px)); pointer-events: none; }
.home-rot-list .home-rot-slide:focus-within { transform: none; pointer-events: auto; z-index: 1; }
.home-rot-card .card-title { font-size: var(--font-size-h2); }
.home-rot-card .meta { margin-bottom: 12px; }
.home-rot-card .card-intro { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.home-rot-controls {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3; height: var(--rot-photo-h, 0px);
  display: flex; align-items: center; justify-content: space-between; padding: 0 12px; pointer-events: none;
}
.home-rot-controls[hidden] { display: none; }
.home-rot-btn {
  pointer-events: auto; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--color-dark-grey); font-size: 16px;
  box-shadow: var(--image-shadow); transition: opacity .25s ease, background-color .2s ease, color .2s ease;
}
.home-rot-btn:hover { background: var(--color-main); color: var(--color-white); }
.home-rot-toggle { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.home-rot-ico-play, .home-rot-say-play { display: none; }
.home-rotator.is-paused .home-rot-ico-pause, .home-rotator.is-paused .home-rot-say-pause { display: none; }
.home-rotator.is-paused .home-rot-ico-play { display: inline-block; }
.home-rotator.is-paused .home-rot-say-play { display: block; }
.home-rot-ico-play { margin-left: 2px; }
@media (hover: hover) {
  .home-rotator .home-rot-btn { opacity: 0; }
  .home-rotator:hover .home-rot-btn, .home-rotator.is-kb .home-rot-btn, .home-rot-btn:focus-visible, .home-rotator.is-paused .home-rot-toggle { opacity: 1; }
}
@media (hover: none) {                                                  /* touch screens (always visible): 50% transparent */
  .home-rot-btn { background: rgba(255, 255, 255, .5); }
}

/* Newest articles of the whole site (like the category page's block 5) */
.home-list-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.home-list-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.home-list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; align-items: start; }
.home-lead .card-title { font-size: 22px; }
.home-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.home-row .card-image { margin-bottom: 0; }
.home-row .card-title { font-family: var(--font-1); font-size: 17px; }
.home-row .meta { margin-bottom: 8px; }

@media (max-width: 800px), (orientation: portrait) and (max-width: 1024px) {
  .home-top { grid-template-columns: 1fr; gap: 40px; }
  .home-important { grid-column: auto; }
  .home-latest { border-left: 0; padding-left: 0; }
  .home-latest-list li { grid-template-columns: 64px minmax(0, 1fr); padding: 12px 0; }
  .home-latest-list li:first-child { padding-top: 0; }
  .home-latest-thumb { display: block; }
  .home-latest-title { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; font-size: var(--font-size-body); font-weight: 600; }
  .home-latest-date { display: none; }
  .home-latest-list .meta { display: block; }
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .home-more .card-title, .home-featured .card-title { font-size: 16px; font-weight: 600; line-height: 1.35; }
  .home-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .home-list-top, .home-list-side, .home-list-grid { display: contents; }
  .home-lead { grid-column: 1 / -1; }
  .home-row { display: block; }
  .home-row .card-image { margin-bottom: 12px; }
  .home-row .meta { margin-bottom: 0; }
  .home-lead .card-title { font-size: 20px; }
  .home-row .card-title { font-family: var(--font-1); font-size: 16px; font-weight: 600; line-height: 1.35; }
}

/* --- Spider (content_spider.php; owner 20 Nov 2026, update spider): own copy of the homepage's block 1 and list look, own
   class names "spider-…": nothing is shared with the category page or the homepage on purpose, so each can be changed alone.
   The header (title / description / image), the Choose box (in block 1 above the rotator), block 1 (rotator | 2 featured | Najnoviji članci), then blocks of 1 big + 4 small with
   horizontal7… between them, page numbers. Card labels are links (to their category). The small cards' label as text:
   the shared rules above (.spider-row). */
/* The Choose box (owner 20 Nov 2026, spider-choose): a dropdown with expansion. Desktop: as wide as the rotator (page 1: in
   block 1's grid above it, the columns beside it start at the top); phone: full width. Sublevels: closed by the script, all open
   without it. */
.spider-choose {                                                   /* the photos' shadow at half its darkness (owner: stood out too much) */
  --spider-dd-shadow: 0.3px 0.5px 0.7px hsl(0 0% 0% / .05), 0.8px 1.6px 2px -0.8px hsl(0 0% 0% / .05),
    2.1px 4.1px 5.2px -1.7px hsl(0 0% 0% / .05), 5px 10px 12.6px -2.5px hsl(0 0% 0% / .05);
}
.spider-choose { position: relative; z-index: 20; width: calc((100% - 24px) / 2); margin: 0 0 32px; }
.spider-top > .spider-choose { width: auto; margin: 0; grid-column: 1 / span 2; grid-row: 1; }
.spider-top > .spider-important { grid-row: 2; }
.spider-top > .spider-featured, .spider-top > .spider-latest { grid-row: 1 / span 2; }
.spider-dd-btn {
  display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; cursor: pointer; list-style: none; user-select: none;
  background: var(--color-main-bg); color: var(--color-dark-grey); font-weight: 600;
  border: 1px solid var(--color-light-grey); border-left: 4px solid var(--color-main); border-radius: var(--image-radius); box-shadow: var(--spider-dd-shadow);
}
.spider-dd-btn::-webkit-details-marker { display: none; }
.spider-dd-btn::marker { content: ''; }
.spider-dd-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spider-dd-arrow {                                                 /* a chevron drawn in CSS (no icon font needed) */
  flex: 0 0 auto; width: 9px; height: 9px; margin-top: -5px; border-right: 2px solid var(--color-main); border-bottom: 2px solid var(--color-main);
  transform: rotate(45deg); transition: transform .2s ease;
}
.spider-dd-btn:hover, .spider-choose[open] > .spider-dd-btn { border-color: var(--color-main); }
.spider-choose[open] > .spider-dd-btn .spider-dd-arrow { transform: rotate(225deg); margin-top: 4px; }
.spider-dd-btn:focus-visible { outline: 2px solid var(--color-main); outline-offset: 2px; }
.spider-dd-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; max-height: 60vh; overflow: auto; padding: 6px 0;
  background: var(--color-main-bg); border: 1px solid var(--color-light-grey); border-radius: var(--image-radius); box-shadow: var(--spider-dd-shadow);
}
.spider-dd-up {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px; color: var(--color-meta); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid var(--color-light-grey); margin-bottom: 4px;
}
.spider-dd-uparrow { color: var(--color-main); }
.spider-dd-list { list-style: none; margin: 0; padding: 0; }
.spider-dd-list .spider-dd-list { margin-left: 16px; border-left: 1px solid var(--color-light-grey); }
.spider-choose.is-js li:not(.is-open) > .spider-dd-list { display: none; }
.spider-dd-row { display: flex; align-items: stretch; }
.spider-dd-link { flex: 1 1 auto; min-width: 0; padding: 10px 16px; color: var(--color-dark-grey); text-decoration: none; }
.spider-dd-exp {
  flex: 0 0 44px; display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0; cursor: pointer;
  background: none; border: 0; border-left: 1px solid var(--color-light-grey); color: inherit;
}
.spider-dd-exp[hidden] { display: none; }
.spider-dd-exp[aria-expanded="true"] .spider-dd-arrow { transform: rotate(225deg); margin-top: 4px; }
:is(.spider-dd-up, .spider-dd-link, .spider-dd-exp):hover, :is(.spider-dd-up, .spider-dd-link, .spider-dd-exp):focus-visible {
  background: color-mix(in srgb, var(--color-main) 10%, transparent); color: var(--color-main); outline: none;
}
/* The header (update spider-head, owner 20 Nov 2026): an own copy of the category page's (.list-header / .cat-head-…):
   title, description, the image (200px wide) with the description beside it; title + description off = the content 40px under
   the menu (24 + 16), nothing visible = no space for it. */
.spider-head { margin-bottom: 40px; }
.spider-head h1 { margin-bottom: 0; }
.spider-head .spider-description { margin: 6px 0 0; }
.spider-head-body { display: flex; align-items: flex-start; gap: 20px; margin-top: 16px; }
.spider-head h1.visually-hidden + .spider-head-body { margin-top: 0; }
.spider-head-image { flex: 0 0 200px; width: 200px; border-radius: var(--image-radius); box-shadow: var(--image-shadow); }
.spider-head-body .spider-description { flex: 1 1 auto; min-width: 0; margin: 0; }
.spider-head.spider-head-hidden { margin-bottom: 0; }
.spider-head.spider-head-notext { margin-top: 16px; }

/* card labels are links (to their category): never the photo frame's look, above the whole-card link of phones */
.spider .card-image a.spider-label { overflow: visible; box-shadow: none; }
.spider :is(.spider-lead, .spider-card, .spider-rot-card) .card-image a.spider-label { display: inline-block; border-radius: 0 0 0 var(--image-radius); color: var(--color-white); }
.spider a.spider-label { z-index: 2; text-decoration: none; }
.spider a.spider-label:hover, .spider a.spider-label:focus-visible { text-decoration: underline; }

.spider-block { margin-bottom: 48px; }
.spider-empty { margin: 0; color: var(--color-meta); }
.spider-top .card-title, .spider-all .card-title { font-family: var(--font-3); font-weight: 400; line-height: 1.3; margin: 0 0 2px; }
.spider-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: start; }
.spider-important { grid-column: span 2; min-width: 0; }
.spider-featured { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.spider-latest { min-width: 0; border-left: 1px solid var(--color-light-grey); padding-left: 24px; }
.spider-card .meta { margin: 0; }
.spider-featured .card-title { font-family: var(--font-1); font-size: 17px; }
.spider-noimage { display: block; aspect-ratio: 1200 / 630; background: var(--cat-color, var(--color-main)); }

/* "Najnoviji članci" (own copy of the list look) */
.spider-latest-list { list-style: none; margin: 0; padding: 0; }
.spider-latest-list li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; padding: 8px 0; }
.spider-latest-list li:first-child { padding-top: 0; }
.spider-latest-thumb { display: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--cat-color, var(--color-main)); }
.spider-latest-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.spider-latest-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  font-size: 14px; font-weight: 400; line-height: 1.35; color: var(--color-dark-grey); text-decoration: none; transition: color .2s ease;
}
.spider-latest-title:hover, .spider-latest-title:focus-visible { color: var(--color-main); text-decoration: none; }
.spider-latest-date { font-size: var(--font-size-small); color: var(--color-meta); }
.spider-latest-list .meta { display: none; margin: 4px 0 0; }

/* The rotator (script in content_spider.php) */
.spider-rotator { position: relative; }
.spider-rot-list { list-style: none; display: grid; overflow: hidden; padding: 0 8px 12px; margin: 0 -8px -12px; }
.spider-rot-slide { grid-area: 1 / 1; min-width: 0; transform: translateX(calc(100% + 24px)); pointer-events: none; transition: transform .6s ease; }
.spider-rot-slide.is-active { transform: none; pointer-events: auto; z-index: 1; }
.spider-rot-list:focus-within .spider-rot-slide { transform: translateX(calc(100% + 24px)); pointer-events: none; }
.spider-rot-list .spider-rot-slide:focus-within { transform: none; pointer-events: auto; z-index: 1; }
.spider-rot-card .card-title { font-size: var(--font-size-h2); }
.spider-rot-card .meta { margin-bottom: 12px; }
.spider-rot-card .card-intro { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.spider-rot-controls {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3; height: var(--rot-photo-h, 0px);
  display: flex; align-items: center; justify-content: space-between; padding: 0 12px; pointer-events: none;
}
.spider-rot-controls[hidden] { display: none; }
.spider-rot-btn {
  pointer-events: auto; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--color-dark-grey); font-size: 16px;
  box-shadow: var(--image-shadow); transition: opacity .25s ease, background-color .2s ease, color .2s ease;
}
.spider-rot-btn:hover { background: var(--color-main); color: var(--color-white); }
.spider-rot-toggle { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.spider-rot-ico-play, .spider-rot-say-play { display: none; }
.spider-rotator.is-paused .spider-rot-ico-pause, .spider-rotator.is-paused .spider-rot-say-pause { display: none; }
.spider-rotator.is-paused .spider-rot-ico-play { display: inline-block; }
.spider-rotator.is-paused .spider-rot-say-play { display: block; }
.spider-rot-ico-play { margin-left: 2px; }
@media (hover: hover) {
  .spider-rotator .spider-rot-btn { opacity: 0; }
  .spider-rotator:hover .spider-rot-btn, .spider-rotator.is-kb .spider-rot-btn, .spider-rot-btn:focus-visible, .spider-rotator.is-paused .spider-rot-toggle { opacity: 1; }
}
@media (hover: none) {
  .spider-rot-btn { background: rgba(255, 255, 255, .5); }
}

/* Blocks of articles: 1 big (left half) + 4 small beside it; horizontal7… between blocks */
.spider-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; margin-bottom: 48px; }
.spider-list-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.spider-slot { margin-bottom: 48px; }
.spider-lead .card-title { font-size: 22px; }
.spider-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.spider-row .card-image { margin-bottom: 0; }
.spider-row .card-title { font-family: var(--font-1); font-size: 17px; }
.spider-row .meta { margin-bottom: 8px; }

@media (max-width: 800px), (orientation: portrait) and (max-width: 1024px) {
  .spider-choose { width: auto; }
  .spider-head-body { flex-direction: column; gap: 12px; }
  .spider-head-image { flex: none; }
  .spider-dd-panel { max-height: 70vh; }
  .spider-top > :is(.spider-choose, .spider-important, .spider-featured, .spider-latest) { grid-column: auto; grid-row: auto; }
  .spider-top { grid-template-columns: 1fr; gap: 40px; }
  .spider-important { grid-column: auto; }
  .spider-latest { border-left: 0; padding-left: 0; }
  .spider-latest-list li { grid-template-columns: 64px minmax(0, 1fr); padding: 12px 0; }
  .spider-latest-list li:first-child { padding-top: 0; }
  .spider-latest-thumb { display: block; }
  .spider-latest-title { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; font-size: var(--font-size-body); font-weight: 600; }
  .spider-latest-date { display: none; }
  .spider-latest-list .meta { display: block; }
  .spider-featured .card-title { font-size: 16px; font-weight: 600; line-height: 1.35; }
  .spider-list { gap: 32px 16px; }
  .spider-list-side { display: contents; }
  .spider-lead { grid-column: 1 / -1; }
  .spider-row { display: block; }
  .spider-row .card-image { margin-bottom: 12px; }
  .spider-row .meta { margin-bottom: 0; }
  .spider-lead .card-title { font-size: 20px; }
  .spider-row .card-title { font-family: var(--font-1); font-size: 16px; font-weight: 600; line-height: 1.35; }
  .spider .spider-row a.spider-label.label-category { position: relative; }   /* the label as text: above the whole-card link (beats the shared position: static) */
}

/* --- Tag page list (content_tag.php): own copy of the category page's block 5 look, own class names "tag-…",
   so it can be changed on its own later. 1st big (left half) + TAG_LIST_SIDE (lib.php) beside it + the rest in 2 columns;
   all but the 1st: photo left (1/3), title + date line right; intro only on the 1st. Mobile/portrait: the 1st as a
   normal card, the rest as regular cards in 2 columns. Photos always whole (own proportion). */
.tag-list-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.tag-list-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.tag-list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; align-items: start; }
.tag-lead .card-title { font-size: 22px; }
.tag-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.tag-row .card-image { margin-bottom: 0; }
.tag-row .card-title { font-family: var(--font-1); font-size: 17px; }
.tag-row .meta { margin-bottom: 8px; }
.tag-noimage { display: block; aspect-ratio: 1200 / 630; background: var(--cat-color, var(--color-main)); }
@media (max-width: 800px), (orientation: portrait) and (max-width: 1024px) {
  .tag-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .tag-list-top, .tag-list-side, .tag-list-grid { display: contents; }
  .tag-lead { grid-column: 1 / -1; }
  .tag-row { display: block; }
  .tag-row .card-image { margin-bottom: 12px; }
  .tag-row .meta { margin-bottom: 0; }
  .tag-lead .card-title { font-size: 20px; }
  .tag-row .card-title { font-family: var(--font-1); font-size: 16px; font-weight: 600; line-height: 1.35; }
}

/* --- Author page list (content_author.php): own copy of the category page's block 5 look, own class names "author-…",
   so it can be changed on its own later. 1st big (left half) + AUTHOR_LIST_SIDE (lib.php) beside it + the rest in 2 columns;
   all but the 1st: photo left (1/3), title + date line right; intro only on the 1st. Mobile/portrait: the 1st as a
   normal card, the rest as regular cards in 2 columns. Photos always whole (own proportion). */
.author-list-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.author-list-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.author-list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; align-items: start; }
.author-lead .card-title { font-size: 22px; }
.author-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.author-row .card-image { margin-bottom: 0; }
.author-row .card-title { font-family: var(--font-1); font-size: 17px; }
.author-row .meta { margin-bottom: 8px; }
.author-noimage { display: block; aspect-ratio: 1200 / 630; background: var(--cat-color, var(--color-main)); }
@media (max-width: 800px), (orientation: portrait) and (max-width: 1024px) {
  .author-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .author-list-top, .author-list-side, .author-list-grid { display: contents; }
  .author-lead { grid-column: 1 / -1; }
  .author-row { display: block; }
  .author-row .card-image { margin-bottom: 12px; }
  .author-row .meta { margin-bottom: 0; }
  .author-lead .card-title { font-size: 20px; }
  .author-row .card-title { font-family: var(--font-1); font-size: 16px; font-weight: 600; line-height: 1.35; }
}

/* "Povezani članci" under the article (inside the 850px column): 3 in a row, 2 columns on mobile/portrait */
.related-block { margin-top: 40px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; row-gap: 32px; }
.card-related .card-title { font-family: var(--font-1); font-size: var(--font-size-body); font-weight: 600; line-height: 1.35; }   /* 16px, 600, desktop + mobile */
.card-related .meta { margin: 0; }
@media (max-width: 800px), (orientation: portrait) and (max-width: 1024px) {
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }   /* mobile/portrait: 2 columns */
}

.article-title { margin-bottom: 2px; }                     /* date line close to the title */
.article-title, .article-content h2, .article-content h3 { color: var(--color-main); }   /* article page: title + subheadings */
.article-main > .meta { margin: 0 0 24px; }                /* space before the intro */
.article-intro { margin: 0 0 24px; }
.article-body { margin-bottom: 24px; }
.article-body::after { content: ""; display: block; clear: both; }
/* Image keeps its own proportions: width up to 500px, height follows.
   Caption centered under the image. */
.article-image { float: left; max-width: 500px; margin: 4px 28px 16px 0; }   /* space between image and text */
.article-image img { max-width: 100%; height: auto; margin: 0 auto; }
.article-image figcaption {
  margin-top: 8px; text-align: center;
  font-size: var(--font-size-small); color: var(--color-meta);
}
.article-content { font-family: var(--font-article); font-size: var(--font-size-article); }
.article-content > :first-child { margin-top: 0; }
.article-content > :last-child { margin-bottom: 0; }      /* no hidden extra space before the tags (Chrome kept it, Firefox didn't) */
.article-content h2 { padding-top: 26px; }                 /* subheadings: more air above */
.article-content > h2:first-child { padding-top: 0; }      /* not when the text starts with one */
/* Images added inside the article text: automatically styled like the main image */
.article-content figure,
.article-content img:not(figure img) {
  float: left; clear: left;                     /* several images stack on the left */
  max-width: min(500px, 100%);
  margin: 4px 28px 16px 0;
}
.article-content figure img { max-width: 100%; height: auto; margin: 0 auto; }
.article-content figcaption {
  margin-top: 8px; text-align: center;
  font-size: var(--font-size-small); color: var(--color-meta);
}
.article-content::after { content: ""; display: block; clear: both; }
/* Links and videos in the article text (admin → Articles → "Insert links" / "Insert video", 14 Nov 2026; also in the
   news ticker's article view, .tk-article-body). Links: one <p class="article-links"> per link, link icon in front,
   indent 25px, semi-bold, main color; several in a row = a tight block. */
.article-content p.article-links, .tk-article-body p.article-links { padding-left: 25px; font-weight: 600; color: var(--color-main); }
.article-content p.article-links:has(+ p.article-links), .tk-article-body p.article-links:has(+ p.article-links) { margin-bottom: 4px; }
.article-content p.article-links + p.article-links, .tk-article-body p.article-links + p.article-links { margin-top: 4px; }
.article-links > i { margin-right: .4em; }
.article-links a, .article-links a:link, .article-links a:visited, .article-links a:active { color: var(--color-main); text-decoration: none; }
.article-links a:hover { color: var(--color-main); text-decoration: underline; }
/* Video: placed just like an image (left, text around it; phones: full width, see below), Landscape / Square up to 500px,
   Portrait up to 375px; the caption under it like under images. Cover until a click (script in body.php / rss/app.js):
   picture (YouTube's and Google Drive's own), title top left, round play button (main color, see-through triangle),
   the platform's logo bottom right (opens the original in a new tab). Then the platform's player.
   Facebook and TikTok (.video-native): their own player right away, nothing of ours over it. */
.article-content figure.article-video, .tk-article-body figure.article-video { width: min(500px, 100%); }
.article-content figure.article-video.video-portrait, .tk-article-body figure.article-video.video-portrait { width: min(375px, 100%); }
/* Desktop only (owner, 19 Nov 2026): every photo and video floated in the article text has its top level with the top of
   the letters of the text beside it (the text's first line has a little empty space above its letters). The text stays
   where it is; only the photo / video moves down. .39em = that space (text font, line height 1.6); after a heading its
   smaller bottom margin is made up (1em = the paragraph's top margin). A photo right under another photo keeps 4px; the
   first thing of the text stays at 0 (".article-content > :first-child"); gallery items are not touched (own rule).
   Phones / portrait tablets and the ticker unchanged. */
@media (min-width: 801px) and (orientation: landscape), (min-width: 1025px) {
  .article-content figure, .article-content img:not(figure img) { margin-top: .39em; }
  .article-content h2 + :is(figure, img) { margin-top: calc(1.39em - var(--font-size-h2) / 2); }
  .article-content h3 + :is(figure, img) { margin-top: calc(1.39em - var(--font-size-h3) / 2); }
  .article-content figure + figure { margin-top: 4px; }
}
.video-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; cursor: pointer;
  background: #16181d; border-radius: var(--image-radius); box-shadow: var(--image-shadow);
}
.video-portrait .video-frame { aspect-ratio: 9 / 16; }
.video-square .video-frame { aspect-ratio: 1 / 1; }
.article-video .video-frame img.video-cover {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0;
  object-fit: cover; border-radius: 0; box-shadow: none;
}
.video-title {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1; padding: 12px 16px 32px;
  color: #fff; font-family: var(--font-1); font-size: var(--font-size-body); font-weight: 600; line-height: 1.3;
  background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
  pointer-events: none;
}
.video-play {
  position: absolute; top: 50%; left: 50%; z-index: 2; width: 72px; height: 72px; padding: 0; border: 0; border-radius: 50%;
  transform: translate(-50%, -50%); background: none; cursor: pointer; transition: transform .2s ease;
}
.video-play::before {
  content: ""; position: absolute; inset: 0; background: var(--color-main);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill-rule='evenodd' d='M50 0a50 50 0 1 0 0 100A50 50 0 1 0 50 0zM40 29v42l33-21z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill-rule='evenodd' d='M50 0a50 50 0 1 0 0 100A50 50 0 1 0 50 0zM40 29v42l33-21z'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .45));
}
.video-frame:hover .video-play, .video-play:focus-visible { transform: translate(-50%, -50%) scale(1.08); }
.article-video a.video-source, .article-video a.video-source:link, .article-video a.video-source:visited {
  position: absolute; right: 10px; bottom: 8px; z-index: 2; padding: 4px; line-height: 1;
  color: #fff; font-size: 22px; opacity: .85; text-decoration: none; text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
  transition: opacity .2s ease;
}
.article-video a.video-source:hover, .article-video a.video-source:focus-visible { opacity: 1; color: #fff; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article-video.is-playing .video-frame, .article-video.video-native .video-frame { cursor: auto; }   /* native (Facebook, TikTok): their player right away */
@media (prefers-reduced-motion: reduce) { .video-play { transition: none; } }
.tags { clear: both; margin: 32px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }   /* "Oznake:" + tag buttons, centered; wrapped rows centered too */
.tags-label {
  margin-right: 4px; color: var(--color-tag-text);
  font-size: var(--font-size-tags); text-transform: uppercase; letter-spacing: .03em; line-height: 1.3;
}
.tags a, .tags a:link, .tags a:visited {
  display: inline-block; padding: 8px 12px; border-radius: var(--image-radius);
  background: var(--color-tag-bg); color: var(--color-tag-text); text-decoration: none;
  font-size: var(--font-size-tags); text-transform: uppercase; letter-spacing: .03em; line-height: 1.3;
  transition: background-color .2s ease, color .2s ease;
}
.tags a:hover, .tags a:focus-visible { background: var(--color-main); color: var(--color-white); text-decoration: none; }

/* Report / share block: same font as the article text, light grey (text, link and its hover) */
.article-share {
  font-family: var(--font-article); font-size: var(--font-size-article);
  color: var(--color-share-text); margin-top: 24px;
}
.article-share p { margin: 0 0 8px; }
.article-share a, .article-share a:link, .article-share a:visited, .article-share a:active { color: inherit; text-decoration: none; }
.article-share p a:hover { text-decoration: underline; }
.share-links { list-style: none; margin: 0 0 0 -6px; padding: 0; display: flex; flex-wrap: wrap; }
.share-links a, .share-links a:link, .share-links a:visited { display: inline-flex; padding: 8px 6px; font-size: 1.4rem; color: var(--color-main); }
.share-links a:hover, .share-links a:active { color: var(--color-share-text); }   /* light grey like the text */

/* Small screens: image full width, text below it */
@media (max-width: 600px) {
  .article-image { float: none; margin: 0 auto 16px; }
  .article-content figure,
  .article-content img:not(figure img) { float: none; max-width: 100%; margin: 0 auto 16px; }
}

/* --- Search page (content_search.php + search.php): own class names "search-…" -------------------------
   Form, "Rezultati za: …", then the results one below another: photo left (whole, own proportion; no photo = a block
   in the category color), right: title, date | author(s), intro. Searched words marked. Page numbers at the bottom. */
.search-form {                                                             /* box + button = one bar, 44px high */
  display: flex; max-width: 600px; margin-bottom: 16px; overflow: hidden;
  background: var(--color-white); border: 1px solid #c8c8c8; border-radius: var(--image-radius);   /* corners like the photos */
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search-form:focus-within {                                                /* typing: main-color outline, soft glow, a bit more depth */
  border-color: var(--color-main);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-main) 18%, transparent), 0 4px 16px rgba(0, 0, 0, .08);
}
.search-form input {
  flex: 1; min-width: 0; min-height: 42px; padding: 0 14px; font: inherit; color: var(--color-dark-grey);
  background: transparent; border: 0;
}
.search-form input:focus-visible { outline: none; }                        /* the bar's outline + glow above show the focus */
.search-form button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 20px; cursor: pointer;
  font-family: var(--font-1); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;   /* like TRANSLATE */
  background: var(--color-main); color: var(--color-white); border: 0;
  transition: background-color .2s ease;
}
.search-form button:hover { background: color-mix(in srgb, var(--color-main) 82%, #000); }   /* a bit darker */
.search-form button:focus-visible { outline-offset: -5px; outline-color: var(--color-white); }   /* inside the bar (the bar cuts off what is outside) */
.search-for { margin: 24px 0 48px; }                                     /* "Rezultati za: …"; 48px above the 1st result (all screens) */
.search-none { margin: 24px 0 0; color: var(--color-meta); }
.search-list { display: flex; flex-direction: column; gap: 32px; margin-bottom: 48px; }   /* 48px below the last one (all screens) */
.search-item { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }   /* desktop: photo 200px wide */
.search-item .card-image { margin-bottom: 0; }
.search-noimage { display: block; aspect-ratio: 1200 / 630; background: var(--cat-color, var(--color-main)); }
.search-title { font-family: var(--font-1); font-size: 16px; font-weight: 600; }   /* desktop */
.search-item .meta { margin-bottom: 8px; }
.search-intro { margin: 0; }
.search-item mark { background: #fff3a3; color: inherit; padding: 0 1px; }   /* searched words */
@media (max-width: 800px), (orientation: portrait) and (max-width: 1024px) {
  .search-item { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; }
  .search-title { font-size: 16px; font-weight: 600; line-height: 1.35; }
}
@media (max-width: 600px) {                                               /* phones: a card, one per row */
  .search-item { display: block; }                                       /* photo on top, full width … */
  .search-item .card-image { margin-bottom: 20px; }                      /* … then title, date line, intro */
  .search-item .meta { margin-bottom: 16px; }                            /* space above the intro */
  .search-list { gap: 48px; }                                            /* space above the next card */
}

/* Advanced search (owner, 20 Nov 2026; content_search.php + search.php, PROJECT.md 7.4): suggestions under the bar, the filters
   (desktop: one row under the bar; phones / portrait tablets: behind the button "Filteri"), "Tražim…", "Jeste li mislili". */
.search-area [hidden] { display: none !important; }                         /* the script shows what it uses */
.search-box { position: relative; max-width: 600px; margin-bottom: 16px; }
.search-box .search-form { margin-bottom: 0; }
.search-suggest {                                                            /* suggestions: article titles */
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  list-style: none; margin: 0; padding: 6px 0;
  background: var(--color-white); border: 1px solid #dcdcdc; border-radius: var(--image-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.search-suggest a {
  display: block; padding: 9px 14px; color: var(--color-dark-grey); text-decoration: none;
  font-size: 15px; line-height: 1.35;
}
.search-suggest li.is-active a, .search-suggest a:hover { background: color-mix(in srgb, var(--color-main) 8%, transparent); color: var(--color-main); }
.search-suggest mark { background: none; color: inherit; font-weight: 700; padding: 0; }
.search-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin: 0 0 8px; }
.search-filter { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.search-filter-name {                                                        /* small label above each list */
  font-family: var(--font-1); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--color-meta);
}
.search-filter select {
  appearance: none; -webkit-appearance: none; max-width: 240px; min-height: 38px; padding: 0 34px 0 12px; cursor: pointer;
  font: inherit; font-size: 14px; color: var(--color-dark-grey);
  background-color: var(--color-white); border: 1px solid #c8c8c8; border-radius: var(--image-radius);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search-filter select:focus-visible {
  outline: none; border-color: var(--color-main);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-main) 18%, transparent);
}
.search-filter.is-set select { border-color: var(--color-main); color: var(--color-main); font-weight: 600; }   /* a filter in use */
.search-clear, .search-filters-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; cursor: pointer;
  font-family: var(--font-1); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--color-main); background: none; border: 0; border-radius: var(--image-radius);
}
@media (hover: hover) { .search-clear:hover, .search-filters-toggle:hover { background: color-mix(in srgb, var(--color-main) 8%, transparent); } }   /* not stuck on touch */
.search-filters-toggle { display: none; border: 1px solid #c8c8c8; background: var(--color-white); }   /* phones only */
.search-status { margin: 24px 0 0; color: var(--color-meta); }
.search-status:empty { display: none; }
.search-status.is-wait::before {                                         /* a small pulsing dot while the results load */
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; vertical-align: 1px;
  border-radius: 50%; background: var(--color-main); animation: search-pulse 1s ease-in-out infinite alternate;
}
@keyframes search-pulse { from { opacity: .25; } to { opacity: 1; } }
.search-results { transition: opacity .2s ease; }
.search-results.is-loading { opacity: .45; }                               /* the old results fade while the new ones load */
.search-found { color: var(--color-meta); }
.search-for:has(+ .search-dym) { margin-bottom: 12px; }
.search-dym { margin: 0 0 48px; }
.search-dym a { color: var(--color-main); font-weight: 600; text-decoration: none; }
.search-dym a:hover { text-decoration: underline; }
@media (max-width: 800px), (orientation: portrait) and (max-width: 1024px) {
  .search-filters-toggle { display: inline-flex; margin-bottom: 8px; }
  .search-filters { display: none; }                                         /* behind the button "Filteri" */
  .search-filters.is-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
  .search-filter select { max-width: none; width: 100%; }
  .search-clear { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 359px) {                                               /* very narrow phones: one list per row */
  .search-filters.is-open { grid-template-columns: minmax(0, 1fr); }
}

/* --- Bottom 2: widget row (horizontal4) --------------------------------- */

.outer_widget1 { position: relative; z-index: 1; margin: 0; padding: 0; background: var(--color-main); box-shadow: var(--edge-shadow-up); }   /* top shadow like the bottom columns (owner 16 Nov 2026) */
.inner_widget1 { text-align: center; color: var(--color-white); padding-top: 16px; padding-bottom: 0; }
/* Dotted line at the bottom of bottom 2, only as wide as the content (owner 16 Nov 2026): the main color 30% darker */
.inner_widget1 > .slot-stack { padding-bottom: 16px; border-bottom: 1px dotted var(--bottom2-line, color-mix(in srgb, var(--color-main) 70%, #000)); }

/* --- Bottom 3: columns (vertical1–5) ------------------------------------ */

.outer_widget2 { position: relative; z-index: 1; margin: 0; padding: 0; background: var(--color-main); box-shadow: var(--edge-shadow-up); }   /* no line on top: a shadow (16 Nov 2026) */
.outer_widget1 + .outer_widget2 { box-shadow: none; }   /* bottom 2 right above: no shadow, its dotted line separates them (owner 16 Nov 2026) */
.inner_widget2 {
  display: grid; grid-template-columns: repeat(var(--columns, 3), minmax(0, 1fr)); gap: 32px 48px;   /* 48px between the columns (owner 16 Nov 2026) */
  text-align: left; color: var(--color-white); padding-top: 32px; padding-bottom: 32px;
}
.column-title { font-size: var(--font-size-h3); color: var(--color-white); }
.column-list { list-style: none; margin: 0; padding: 0; }
.column-list li { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.column-link { font-size: var(--font-size-bottom3-title); font-weight: 600; color: var(--color-white); text-decoration: none; }
.column-link:hover { text-decoration: underline; }
.column-intro { font-size: var(--font-size-bottom3-intro); margin: 4px 0 0; }
.column-meta { font-size: var(--font-size-bottom3-meta); margin: 4px 0 0; }

/* Category articles widgets in the bottom columns (owner, 16 Nov 2026): .inner_widget2 = the bottom columns,
   .widget-category = the widget type (lib.php slot_html()); every other widget type and every other place unchanged.
   Like "Izdvojeni članci" on phones, in white: round photo 64px left, title right (16px, regular), the date line under it
   (13px, date | reading time); 32px between the articles, no lines, 28px under the heading. Heading = the widget's name ("Widget name" switch),
   16px, 600, capitals (owner, 16 Nov 2026). */
.inner_widget2 .widget-category .column-name {
  margin: 0 0 28px; font-family: var(--font-1); font-size: 16px; font-weight: 600; line-height: 1.3;
  text-transform: uppercase; letter-spacing: .03em; color: var(--color-white);
}
.inner_widget2 .widget-category .column-list li { position: relative; min-height: 96px; padding: 16px 0 16px 76px; border-bottom: 0; }   /* 16 + 64 + 16: 32px between the articles */
.inner_widget2 .widget-category .column-list li:first-child { min-height: 80px; padding-top: 0; }
.inner_widget2 .widget-category .column-list li.no-thumb { min-height: 0; padding-left: 0; }    /* no photo: the text from the left */
.inner_widget2 .widget-category .column-image { position: absolute; left: 0; top: 16px; width: 64px; margin: 0; }
.inner_widget2 .widget-category .column-list li:first-child .column-image { top: 0; }
.inner_widget2 .widget-category .column-image a { display: block; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; }
.inner_widget2 .widget-category .column-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.inner_widget2 .widget-category .column-link { display: block; font-size: var(--font-size-body); font-weight: 400; line-height: 1.35; }
.inner_widget2 .widget-category .column-meta { margin: 4px 0 0; font-size: var(--font-size-small); color: var(--color-white); }
.inner_widget2 :focus-visible, .inner_widget1 :focus-visible,
.outer_footerbar :focus-visible, .outer_topbar :focus-visible { outline-color: var(--color-white); }

/* --- Footer ------------------------------------------------------------- */

.outer_footerbar {
  position: relative; z-index: 1; margin: 0; padding: 0;                                              /* no line on top: a shadow (16 Nov 2026) */
  background-color: var(--color-main);
  background-image: linear-gradient(rgb(0 0 0 / var(--footer-shade)), rgb(0 0 0 / var(--footer-shade)));   /* evenly darker */
  box-shadow: var(--edge-shadow-footer);
}
.inner_footerbar {
  min-height: var(--footer-height);
  display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "copy top menu";
  align-items: center; gap: 8px 16px;
  color: var(--color-white); font-size: var(--font-size-footer);
}
.copyright { grid-area: copy; margin: 0; text-align: left; }
.to-top {
  grid-area: top; min-width: 44px; min-height: 44px;
  background: none; border: 0; color: var(--color-white);
  font-size: 1rem; cursor: pointer;
}
.to-top:hover { background: rgba(255, 255, 255, .15); }
.footer-menu { grid-area: menu; }
.footer-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 20px; }
.footer-menu a { color: var(--color-white); text-decoration: none; }
.footer-menu a:hover { text-decoration: underline; }

/* --- Mobile / portrait -------------------------------------------------- */

@media (max-width: 800px), (orientation: portrait) and (max-width: 1024px) {
  .topbar-right .social, .topbar-right .search-link, .topbar-right .gt-menu { display: none; }
  .menu-open { display: inline-flex; background: var(--color-main); }   /* solid original color: contrast on the darker right end */
  .logo { flex: 1 1 auto; min-width: 0; }                      /* the logo gets all the room left of the buttons (website + ticker) … */
  .topbar-right { flex: 0 0 auto; }                             /* … the buttons only what they need */
  .outer_topmenu { display: none; }

  .inner_widget2 { grid-template-columns: 1fr; }
  .inner_widget2 { row-gap: 48px; }                            /* bottom columns one under another: 48px between them (owner 16 Nov 2026) */
  .inner_content_article { padding-top: 32px; }                /* article page on mobile/portrait (owner 14 Nov 2026: 24 → 32px) */
  .featured-list li { grid-template-columns: 64px minmax(0, 1fr); }   /* Izdvojeno: round photo left */
  .featured-thumb { display: block; }
  .featured-title { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }   /* whole title */

  /* Footer order: menu, copyright, arrow */
  .inner_footerbar {
    grid-template-columns: 1fr; grid-template-areas: "menu" "copy" "top";
    justify-items: center; text-align: center; padding-top: 16px; padding-bottom: 16px;
  }
  .copyright { text-align: center; }
  .footer-menu ul { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .card:hover .card-image img, .card:focus-within .card-image img { transform: none; }
}

/* --- Added 8 Oct 2026 (new backend) ------------------------------------- */

/* Intro is editor HTML now (paragraphs, links) */
.article-intro > :first-child { margin-top: 0; }
.article-intro > :last-child { margin-bottom: 0; }

/* Current language in the TRANSLATE list / flags (custom translations: links) */
a.gt-lang { text-decoration: none; }
.gt-lang[aria-current="true"] { font-weight: 700; }
a.gt-flag { text-decoration: none; }
.gt-flag[aria-current="true"] .fi { outline: 2px solid var(--color-white); outline-offset: 2px; }
.fi-none { display: inline-flex; align-items: center; justify-content: center; color: var(--color-white); font-size: 18px; }

/* Social icon from a local SVG (networks Font Awesome lacks, e.g. Rumble); takes the text color like the font icons */
.icon-svg {
  display: inline-block; width: 1em; height: 1em; vertical-align: -.125em;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}

/* Gallery inside the article text ([gallery-N]); a gallery with one image is a normal floated image */
.article-content .gallery {
  float: none; clear: both; max-width: 100%; margin: 8px 0 24px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px;
}
.article-content .gallery .gallery-item { float: none; clear: none; max-width: none; margin: 0; }
.article-content .gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--image-radius); box-shadow: var(--image-shadow);
}

/* Links to other articles inside the article text ([articles:1,2]) */
.article-content .inline-articles {
  clear: both; margin: 8px 0 24px; padding: 12px 16px;
  border-left: 3px solid var(--color-main); background: #f7f7f7;
}
.article-content .inline-articles ul { margin: 0; padding-left: 18px; }
.article-content .inline-articles li { margin: 4px 0; }
.article-content .inline-articles a { text-decoration: none; }
.article-content .inline-articles a:hover { text-decoration: underline; }

/* Widget lists: description, image, caption (display options from admin) */
.sidebar-description, .column-description { margin: 0 0 12px; font-size: var(--font-size-small); }
.sidebar-image, .column-image { margin: 0 0 8px; }
.sidebar-image img, .column-image img { width: 100%; border-radius: var(--image-radius); }
.sidebar-image figcaption, .column-image figcaption { margin-top: 4px; font-size: var(--font-size-caption); }
.sidebar-image figcaption { color: var(--color-meta); }
.sidebar-meta { margin: 4px 0 0; font-size: var(--font-size-small); color: var(--color-meta); }
.sidebar-intro { margin: 4px 0 0; }
.inner_widget1 .column-list { text-align: left; }

/* Maintenance page (/offline/): topbar + message + footer */
.offline { min-height: 100vh; display: flex; flex-direction: column; }
.offline .outer_topbar { position: static; }
.offline-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px var(--side-space); }
.offline-box { max-width: 640px; text-align: center; }
.offline-title { margin-bottom: 16px; }
.offline-message { font-size: 1.125rem; }
.offline-message > :last-child { margin-bottom: 0; }
.offline .inner_footerbar { grid-template-columns: 1fr; grid-template-areas: "copy"; justify-items: center; }
.offline .copyright { text-align: center; }

/* Articles without a photo (owner 14 Nov 2026): no colored block or circle, the text takes the whole width
   (rotators keep a picture: the category's image or the colored block) */
.home-row.card-nophoto, .cat-row.card-nophoto, .tag-row.card-nophoto, .author-row.card-nophoto,
.search-item.card-nophoto { display: block; }
.featured-list li.no-thumb, .home-latest-list li.no-thumb { grid-template-columns: minmax(0, 1fr); }
/* Mobile/portrait: the whole card opens the article (the title's link covers the card; desktop: photo, title, intro) */
@media (max-width: 800px), (orientation: portrait) and (max-width: 1024px) {
  .card { position: relative; }
  .card .card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
}

/* ======================================================================
   NEWS TICKER (/rss/, "ticket system") – see public/rss/README.txt
   One page with all news, newest first: masonry wall of cards, category filter,
   article layer. Everything here uses the site's variables (:root above):
   change --color-main, fonts, image style … once and the ticker follows.
   The ticker also reuses the site's own parts unchanged: top bar (.outer_topbar, shade,
   logo), mobile menu layer look (.menu-overlay, .overlay-flags/-top/-icons, .social),
   TRANSLATE list and flags, share block (.article-share, .share-links), .skip-link.
   Only layout numbers that make up the ticker's own "feel" are set here:
   ====================================================================== */
.ticker {
  --tk-width: var(--max-width);   /* width of the wall = the site's width (4 columns on wide screens) */
  --tk-gap: 22px;             /* space between cards (app.js reads this value) */
  --tk-article-width: 680px;  /* text column of the article layer */
  --tk-lift: -6px;            /* card moves up on hover */
  /* card shadows (soft, from the original ticker design): resting / on hover */
  --tk-card-shadow: 0 1px 2px rgb(20 22 27 / .04), 0 6px 16px -10px rgb(20 22 27 / .10);
  --tk-card-shadow-hover: 0 4px 8px rgb(20 22 27 / .05), 0 28px 52px -20px rgb(20 22 27 / .30);
}

/* Top bar extras: filter chip + menu/filter button (always visible here, solid main-color box) */
.tk-chip {                     /* same logic as the menu button: solid main-color box on the shaded bar */
  display: inline-flex; align-items: center; gap: 8px; height: 44px; max-width: 46vw; padding: 0 14px;
  background: var(--color-main); color: var(--color-white); border: 0; cursor: pointer;
  font-family: var(--font-1); font-size: var(--font-size-translate); font-weight: 700; letter-spacing: .03em; white-space: nowrap;
}
.tk-chip-text { overflow: hidden; text-overflow: ellipsis; }
.tk-chip i { flex-shrink: 0; font-size: 14px; }
.tk-chip:hover { opacity: .8; }
.tk-chip[hidden] { display: none; }
.tk-menu-btn {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; margin-left: 6px; padding: 0; border: 0; cursor: pointer;
  background: var(--color-main);
}
.tk-burger { position: relative; width: 20px; height: 14px; }
.tk-burger span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--color-white);
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.tk-burger span:nth-child(1) { top: 0; }
.tk-burger span:nth-child(2) { top: 6px; }
.tk-burger span:nth-child(3) { top: 12px; }
.tk-menu-btn:hover .tk-burger span { opacity: .8; }
.tk-menu-btn.is-open .tk-burger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.tk-menu-btn.is-open .tk-burger span:nth-child(2) { opacity: 0; }
.tk-menu-btn.is-open .tk-burger span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Wall */
.tk-feed { max-width: var(--tk-width); margin: 0 auto; padding: 40px var(--side-space) 40px; }
.tk-feed:focus { outline: none; }
.tk-feed-header { margin-bottom: 40px; }
.tk-eyebrow {
  margin-bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--color-main);
}
.tk-feed-title { margin: 0; font-family: var(--font-3); font-weight: 400; font-size: 42px; line-height: 1.1; color: var(--color-dark-grey); }
.tk-empty { display: none; padding: 48px 0; text-align: center; font-family: var(--font-3); font-style: italic; color: var(--color-meta); }
.tk-empty.visible { display: block; }
.tk-loading {
  margin: 30px 0 4px; text-align: center; font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--color-meta);
}
/* Cards are placed by app.js (absolute top/left) so the reading order stays strictly
   left → right, newest first, whatever the card heights. */
.tk-grid { position: relative; width: 100%; }

/* Card */
.tk-card {
  position: absolute; top: 0; left: 0; display: block; overflow: hidden;
  background: var(--color-main-bg); color: inherit; text-decoration: none;
  border: 1px solid var(--color-light-grey); border-radius: var(--image-radius); box-shadow: var(--tk-card-shadow);
  cursor: pointer; opacity: 1;
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), box-shadow .32s cubic-bezier(.2, .8, .2, 1), opacity .35s ease;
}
.tk-card.tk-enter { opacity: 0; }
.tk-card:hover { transform: translateY(var(--tk-lift)); box-shadow: var(--tk-card-shadow-hover); }
.tk-card:focus-visible { outline: var(--focus-outline); outline-offset: 3px; }
.tk-card-photo { position: relative; }                          /* photo at the very top of the card */
.tk-card-photo .label { position: absolute; left: 0; bottom: 0; }  /* category label bottom-left, like the main site */
.tk-eyebrow-left {
  display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--color-meta);
}
.tk-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--cat-color, var(--color-main)); }   /* ticker article: category color */
.tk-card-date { margin: -6px 0 18px; font-size: 11px; font-weight: 500; color: var(--color-meta); font-variant-numeric: tabular-nums; }   /* under the title */
.tk-card-image { display: block; width: 100%; max-width: 100%; height: auto; }
.tk-card-body { padding: 14px 20px 22px; }
.tk-card-title {
  margin-bottom: 13px; font-family: var(--font-3); font-weight: 400; font-size: 19.5px;
  line-height: 1.34; color: var(--color-dark-grey);
}
.tk-card-intro { font-size: 13.5px; line-height: 1.6; color: var(--color-meta); }
.tk-card-cat {                                    /* no photo (owner 14 Nov 2026): the category above the title, the label's letters, its color */
  margin-bottom: 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  color: var(--cat-color, var(--color-main));
}
.tk-card-intro a { color: inherit; }
.tk-ad .tk-card-image { border-radius: 0; }   /* ad = one image filling the card */

/* Layers (article, filter menu, selection): full screen, below Google's bars while translated */
.tk-overlay {
  display: none; position: fixed; z-index: 1000;
  top: calc(var(--gt-bar, 0px) + var(--gt-notice, 0px)); right: 0; bottom: 0; left: 0;
  overflow-y: auto; padding: 40px 20px; background: var(--color-main-bg);
}
/* Article layer: the site's red top bar on top, sticky while reading (owner 22 Oct 2026); "✕ Zatvori" in the menu button's style */
.tk-article-overlay { padding-top: 0; }                                    /* the bar sits at the very top … */
.tk-article-bar { position: sticky; top: 0; z-index: 2; margin: 0 -20px; }   /* … full width (the layer's side padding is cancelled) */
.tk-close {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; height: 44px; padding: 0 16px;
  border: 0; cursor: pointer; background: var(--color-main); color: var(--color-white);
  font-family: var(--font-1); font-weight: 700; font-size: 14px; letter-spacing: .03em; white-space: nowrap;
}
.tk-close:hover { opacity: .8; }

/* Article layer */
.tk-article { max-width: var(--tk-article-width); margin: 48px auto 0; }
.tk-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 28px;   /* space above the title */
  font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--color-meta);
}
.tk-breadcrumb a { color: var(--color-meta); text-decoration: none; }
.tk-breadcrumb a:hover { color: var(--color-main); }
.tk-article > .tk-eyebrow-left { margin-bottom: 28px; font-size: 12px; }   /* category — date | authors, under the title; same space to the photo as breadcrumb → title */
.tk-article h1 { margin: 0 0 6px; font-family: var(--font-3); font-weight: 400; font-size: 32px; line-height: 1.15; }
.tk-article-figure { margin: 0 0 30px; }
.tk-article-imgbox { margin: 0; }                                      /* photo + category label (bottom-left), like the wall cards */
.tk-article-image { display: block; width: 100%; height: auto; border-radius: var(--image-radius); box-shadow: var(--image-shadow); }
.tk-article-figure figcaption { margin-top: 8px; text-align: center; font-size: var(--font-size-small); color: var(--color-meta); }
.tk-article-body { font-family: var(--font-article); font-size: var(--font-size-article); line-height: 1.7; }
.tk-article-body h2 { margin: 34px 0 14px; font-size: 25px; }
.tk-article h1, .tk-article-body h2, .tk-article-body h3 { color: var(--color-main); }   /* ticker article: title + subheadings */
.tk-article-body p { margin: 0 0 18px; }
.tk-article-body a { color: var(--color-main); }
.tk-article-body figure.article-video { margin: 0 auto 24px; }                     /* videos (see "Links and videos in the article text") */
.tk-article-body figure.article-video figcaption { margin-top: 8px; text-align: center; font-size: var(--font-size-small); color: var(--color-meta); }
/* "Read more" + share icons: the article page's share block, 20px above */
.tk-article-body .rss-share { margin-top: 20px; }
.tk-article-body .rss-share p { margin: 0 0 8px; }
.tk-article-body .rss-share p a { color: inherit; text-decoration: underline; }

/* Filter menu layer: the site's dark mobile-menu layer + the category list */
.tk-overlay.menu-overlay { background: var(--color-black); color: var(--color-white); padding: 8px 32px 32px; }
.tk-menu-col { max-width: 480px; margin: 0 auto; }      /* one narrow centered column, also on wide screens */
.tk-layer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 4px 0 24px; min-height: 44px; }
.tk-layer-top .overlay-flags { flex: 1; margin: 0 0 0 -6px; }
.tk-x { margin-left: auto; flex-shrink: 0; }          /* close × next to the logo, like the website's mobile menu (22 Oct 2026) */
/* Category list = a tree: the name selects a filter; the round arrow button opens/closes the
   subcategories (they slide out, with a tree line in the main color). */
.tk-category-list { border-top: 1px solid rgb(255 255 255 / .14); }
.tk-tree, .tk-sub-list { list-style: none; margin: 0; padding: 0; }
.tk-row {
  display: flex; align-items: center; gap: 10px; padding-right: 4px;
  border-bottom: 1px solid rgb(255 255 255 / .14); transition: background .2s ease;
}
.tk-node.open > .tk-row { background: rgb(255 255 255 / .06); }           /* open group: lighter row */
.tk-category-option {
  flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0;
  padding: 15px 4px; background: none; border: 0; text-align: left; cursor: pointer; overflow-wrap: anywhere;
  font-family: var(--font-2); color: var(--color-white);
  font-size: max(.95rem, calc(1.25rem - var(--depth, 0) * .12rem));     /* each level a little smaller */
  transition: opacity .15s ease;
}
.tk-category-option:hover .tk-name { opacity: .8; }
.tk-category-option.active { font-weight: 700; }
.tk-check {                                                    /* check mark in a small main-color circle */
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--color-main); color: var(--color-white);
  font-size: 11px; opacity: 0; transform: scale(.6); transition: opacity .15s ease, transform .15s ease;
}
.tk-category-option.active .tk-check { opacity: 1; transform: scale(1); }
.tk-category-option.implied .tk-check { opacity: .45; transform: scale(1); }   /* covered by a selected parent */
.tk-toggle {                                                   /* the arrow button: round, 34px circle in a 44px tap area */
  flex: 0 0 44px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: 5px; background-clip: content-box;                  /* the circle is 34px, the button stays 44px */
  border: 0; border-radius: 50%; cursor: pointer;
  background-color: rgb(255 255 255 / .10); color: var(--color-white); font-size: 13px;
  transition: background .2s ease;
}
.tk-toggle:hover { background-color: rgb(255 255 255 / .22); }
.tk-toggle i { transition: transform .25s ease; }
.tk-node.open > .tk-row > .tk-toggle { background-color: var(--color-main); }
.tk-node.open > .tk-row > .tk-toggle i { transform: rotate(90deg); }   /* › turns to ⌄ */
.tk-sub {                                                      /* slides open (height 0 → content) */
  display: grid; grid-template-rows: 0fr; visibility: hidden;
  transition: grid-template-rows .3s ease, visibility 0s linear .3s;
}
.tk-node.open > .tk-sub { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .3s ease, visibility 0s; }
.tk-sub-list { min-height: 0; overflow: hidden; margin-left: 18px; padding-left: 14px; border-left: 2px solid var(--color-main); }
.tk-menu :focus-visible { outline-color: var(--color-white); }

/* Selection layer ("Vaš odabir"): the same dark layer, column and rows as the filter menu */
.tk-review-head { margin-bottom: 22px; }
.tk-review .tk-eyebrow { color: rgb(255 255 255 / .65); }
.tk-review-title { margin: 0; font-family: var(--font-3); font-weight: 400; font-size: 30px; color: var(--color-white); }
.tk-hint { margin: 10px 0 0; font-size: 13px; color: rgb(255 255 255 / .7); }
.tk-clear-all {                 /* a main-color box, like the chip and the menu button */
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 18px; padding: 0 14px;
  background: var(--color-main); color: var(--color-white); border: 0; cursor: pointer;
  font-family: var(--font-1); font-size: var(--font-size-translate); font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.tk-clear-all:hover { opacity: .8; }
.tk-review-list { border-top: 1px solid rgb(255 255 255 / .14); }
.tk-review-option {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 4px 5px 4px;
  border-bottom: 1px solid rgb(255 255 255 / .14);
}
.tk-review-option-label { padding: 10px 0; font-family: var(--font-2); font-size: 1.25rem; color: var(--color-white); overflow-wrap: anywhere; }
.tk-review-remove-btn {          /* round button, like the arrow buttons of the tree */
  flex: 0 0 44px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; cursor: pointer; background: rgb(255 255 255 / .10); color: var(--color-white); font-size: 15px;
  transition: background .2s ease;
}
.tk-review-remove-btn:hover { background: var(--color-main); }

@media (max-width: 640px) {
  .tk-feed-title { font-size: 32px; }
  .tk-article h1 { font-size: 24px; }
}
@media (max-width: 800px), (orientation: portrait) and (max-width: 1024px) {   /* ticker, mobile / portrait */
  .tk-chip { width: 44px; max-width: none; padding: 0; justify-content: center; }   /* chosen categories: a square like the menu button … */
  .tk-chip-text { display: none; }                                                   /* … only the X (screen readers hear the categories) */
  .tk-chip i { font-size: 20px; }
  .tk-card-title { font-size: 20px; }                                               /* wall cards: title … */
  .tk-card-intro { font-size: 16px; }                                               /* … and intro (= the article text size) */
}
@media (prefers-reduced-motion: reduce) {
  .tk-card:hover { transform: none; }
}
