/* ==========================================================================
   Vesti Portal — frontend stil
   Sve ključne boje dolaze iz backenda kroz CSS varijable (:root ubacuje PHP).
   Tipografija: Archivo (naslovi), Source Serif 4 (telo vesti), Inter (UI/meta).
   ========================================================================== */

:root{
  /* Fallback vrednosti — realne vrednosti ubacuje PHP iz podešavanja */
  --accent:#e02435; --accent-2:#12233b;
  --header-bg:#0e1726; --header-text:#ffffff;
  --page-bg:#f4f5f7;
  --ticker-bg:#e02435; --ticker-text:#ffffff;
  --footer-bg:#0e1726; --footer-text:#c7cfdb;

  --ink:#14181f; --muted:#68727f; --line:#e4e7ec; --card:#ffffff;
  --radius:12px;
  --wrap:1200px;
  --font-head:'Archivo',system-ui,'Segoe UI',sans-serif;
  --font-body:'Source Serif 4',Georgia,serif;
  --font-ui:'Inter',system-ui,'Segoe UI',sans-serif;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--page-bg);color:var(--ink);
  font-family:var(--font-ui);line-height:1.5;
  font-size:16px;
}
html,body{max-width:100%;overflow-x:clip}
.wrap{min-width:0}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 20px}

/* ---------- Utility / top bar ---------- */
.topbar{background:var(--header-bg);color:var(--header-text)}
.topbar__row{display:flex;align-items:center;gap:20px;padding:18px 0;min-width:0;overflow:hidden}
.brand{display:flex;align-items:baseline;gap:10px;font-family:var(--font-head);min-width:0;max-width:100%;
  font-weight:800;font-size:30px;letter-spacing:-.02em;color:var(--header-text)}
.brand__mark{width:12px;height:26px;background:var(--accent);display:inline-block;
  transform:skewX(-10deg);border-radius:2px}
.brand__tag{font-family:var(--font-ui);font-weight:400;font-size:13px;opacity:.7;
  letter-spacing:.02em;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar__spacer{flex:1}
.topbar__meta{font-size:13px;opacity:.75;font-variant-numeric:tabular-nums}
.search{display:flex;align-items:center;background:rgba(255,255,255,.12);
  border-radius:999px;padding:7px 14px}
.search input{background:transparent;border:0;color:var(--header-text);
  font-size:14px;outline:0;width:150px}
.search input::placeholder{color:rgba(255,255,255,.6)}
.search button{background:transparent;border:0;color:var(--header-text);cursor:pointer;font-size:15px}

/* ---------- Ticker ---------- */
.ticker{background:var(--ticker-bg);color:var(--ticker-text);overflow:hidden;
  display:flex;align-items:stretch;font-size:14px;width:100%;max-width:100%;min-width:0;
  height:40px;min-height:40px;max-height:40px;contain:layout paint}
.ticker__label{background:rgba(0,0,0,.22);font-family:var(--font-head);font-weight:800;
  letter-spacing:.08em;padding:0 16px;display:flex;align-items:center;gap:8px;
  white-space:nowrap;flex:0 0 auto;text-transform:uppercase;position:relative;z-index:2;height:40px}
.ticker__dot{width:8px;height:8px;border-radius:50%;background:var(--ticker-text);
  animation:pulse 1.4s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.3}}
.ticker__viewport{overflow:hidden;flex:1 1 0%;min-width:0;max-width:100%;height:40px;position:relative;contain:layout paint}
.ticker__track{position:absolute;left:0;top:0;height:40px;display:flex;align-items:center;width:max-content;max-width:none;white-space:nowrap;padding:0;
  animation:ticker 40s linear infinite;will-change:transform;transform:translate3d(0,0,0)}
.ticker__viewport:hover .ticker__track{animation-play-state:paused}
.ticker__item{height:40px;display:inline-flex;align-items:center;padding:0 28px;position:relative;max-width:min(48rem,70vw);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ticker__item::before{content:'';position:absolute;left:0;top:50%;width:5px;height:5px;
  border-radius:50%;background:currentColor;opacity:.6;transform:translateY(-50%)}
.ticker__item:first-child::before{display:none}
@keyframes ticker{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}

/* ---------- Category nav ---------- */
.nav{background:#fff;border-bottom:2px solid var(--accent);position:sticky;top:0;z-index:40;
  box-shadow:0 1px 0 var(--line)}
.nav__row{display:flex;align-items:center;gap:2px;overflow-x:auto}
.nav a{font-family:var(--font-head);font-weight:600;font-size:14.5px;padding:15px 16px;
  white-space:nowrap;color:var(--ink);position:relative;transition:color .15s}
.nav a:hover{color:var(--accent)}
.nav a.is-active{color:var(--accent)}
.nav a.is-active::after{content:'';position:absolute;left:16px;right:16px;bottom:0;
  height:3px;background:var(--accent)}
.nav__home{color:var(--accent)!important}

/* ---------- Ads ---------- */
.ad{margin:18px 0;text-align:center}
.ad__label{display:block;font-size:10px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--muted);margin-bottom:5px}
.ad img{margin:0 auto}
.ad--header{margin:14px 0}
.ad--sidebar_top,.ad--sidebar_bottom{background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);padding:14px}
.ad--in_article{border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  padding:16px 0;margin:26px 0}

/* ---------- Layout ---------- */
.layout{display:grid;grid-template-columns:1fr 320px;gap:36px;padding:28px 0 50px}
.sidebar{position:sticky;top:70px;align-self:start}

/* ---------- Section heading ---------- */
.eyebrow{font-family:var(--font-head);font-weight:800;font-size:13px;letter-spacing:.1em;
  text-transform:uppercase;color:var(--accent);display:inline-block}
.sec-head{display:flex;align-items:center;gap:14px;margin:34px 0 18px}
.sec-head h2{font-family:var(--font-head);font-weight:800;font-size:22px;margin:0;
  letter-spacing:-.01em}
.sec-head .rule{flex:1;height:2px;background:var(--line)}

/* ---------- Hero ---------- */
.hero{position:relative;border-radius:var(--radius);overflow:hidden;margin-top:24px;
  aspect-ratio:16/8;background:var(--accent-2)}
.hero img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.hero:hover img{transform:scale(1.03)}
.hero__grad{position:absolute;inset:0;
  background:linear-gradient(to top,rgba(6,10,18,.92) 8%,rgba(6,10,18,.15) 55%,transparent)}
.hero__body{position:absolute;left:0;right:0;bottom:0;padding:34px}
.hero__cat{background:var(--accent);color:#fff;font-family:var(--font-head);font-weight:700;
  font-size:12px;letter-spacing:.06em;text-transform:uppercase;padding:5px 11px;
  border-radius:4px;display:inline-block;margin-bottom:14px}
.hero__title{font-family:var(--font-head);font-weight:800;color:#fff;
  font-size:clamp(26px,4vw,42px);line-height:1.08;letter-spacing:-.02em;margin:0;
  max-width:800px;text-shadow:0 2px 20px rgba(0,0,0,.4)}
.hero__meta{color:rgba(255,255,255,.8);font-size:13px;margin-top:12px}

/* ---------- Card grid ---------- */
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:26px}
.card{background:var(--card);border-radius:var(--radius);overflow:hidden;
  border:1px solid var(--line);display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s}
.card:hover{box-shadow:0 12px 28px rgba(15,25,45,.12);transform:translateY(-2px)}
.card__thumb{aspect-ratio:16/9;overflow:hidden;background:#e9edf2}
.card__thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.card:hover .card__thumb img{transform:scale(1.05)}
.card__body{padding:16px 18px 20px;display:flex;flex-direction:column;flex:1}
.card__cat{font-family:var(--font-head);font-weight:700;font-size:11.5px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--accent);margin-bottom:8px}
.card__title{font-family:var(--font-head);font-weight:700;font-size:18.5px;line-height:1.22;
  letter-spacing:-.01em;margin:0 0 10px}
.card:hover .card__title{color:var(--accent)}
.card__excerpt{font-size:14px;color:var(--muted);line-height:1.5;margin:0 0 14px;flex:1}
.card__meta{font-size:12.5px;color:var(--muted);display:flex;gap:8px;align-items:center;
  margin-top:auto}
.card__src{font-weight:600;color:var(--ink)}

/* Kompaktni red (lista) */
.mini{display:flex;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}
.mini:last-child{border-bottom:0}
.mini__thumb{width:96px;height:70px;flex-shrink:0;border-radius:8px;overflow:hidden;background:#e9edf2}
.mini__thumb img{width:100%;height:100%;object-fit:cover}
.mini__title{font-family:var(--font-head);font-weight:600;font-size:15px;line-height:1.25;margin:0 0 6px}
.mini:hover .mini__title{color:var(--accent)}
.mini__meta{font-size:12px;color:var(--muted)}

/* Most-read numerisana lista */
.widget{background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:18px;margin-bottom:22px}
.widget__head{font-family:var(--font-head);font-weight:800;font-size:15px;letter-spacing:.02em;
  margin:0 0 12px;padding-bottom:12px;border-bottom:2px solid var(--accent);display:inline-block}
.ranked{list-style:none;margin:0;padding:0;counter-reset:r}
.ranked li{counter-increment:r;display:flex;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}
.ranked li:last-child{border-bottom:0}
.ranked li::before{content:counter(r);font-family:var(--font-head);font-weight:800;font-size:20px;
  color:var(--accent);min-width:24px;line-height:1}
.ranked a{font-family:var(--font-head);font-weight:600;font-size:14.5px;line-height:1.25}
.ranked a:hover{color:var(--accent)}

/* ---------- Single article ---------- */
.article{background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:34px;overflow:hidden}
@media(max-width:620px){.article{padding:22px 18px}}
.article__cat{margin-bottom:14px}
.article__title{font-family:var(--font-head);font-weight:800;font-size:clamp(26px,3.4vw,38px);
  line-height:1.12;letter-spacing:-.02em;margin:0 0 16px}
.article__meta{display:flex;flex-wrap:wrap;gap:14px;align-items:center;font-size:13.5px;
  color:var(--muted);padding-bottom:20px;margin-bottom:24px;border-bottom:1px solid var(--line)}
.article__hero{margin:0 0 26px;border-radius:var(--radius);overflow:hidden}
.article__hero img{width:100%;max-height:520px;object-fit:cover}
.article__body{font-family:var(--font-body);font-size:19px;line-height:1.72;color:#232a33}
.article__body p{margin:0 0 20px}
.article__body h2,.article__body h3{font-family:var(--font-head);letter-spacing:-.01em;margin:30px 0 12px}
.article__body a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.article__body img{border-radius:8px;margin:22px 0}
.article__body blockquote{border-left:4px solid var(--accent);margin:24px 0;padding:6px 0 6px 20px;
  font-style:italic;color:#3a434e}
.source-link{display:inline-flex;align-items:center;gap:8px;margin-top:10px;
  font-family:var(--font-ui);font-size:14px;font-weight:600;color:var(--accent)}
.source-note{margin-top:30px;padding-top:20px;border-top:1px solid var(--line);
  font-size:13px;color:var(--muted)}

/* ---------- Pagination ---------- */
.pager{display:flex;gap:8px;justify-content:center;margin:36px 0 10px;flex-wrap:wrap}
.pager a,.pager span{font-family:var(--font-head);font-weight:600;font-size:14px;
  padding:9px 15px;border-radius:8px;border:1px solid var(--line);background:#fff;color:var(--ink)}
.pager .is-active{background:var(--accent);color:#fff;border-color:var(--accent)}
.pager a:hover{border-color:var(--accent);color:var(--accent)}

/* ---------- Empty state ---------- */
.empty{background:#fff;border:1px dashed var(--line);border-radius:var(--radius);
  padding:50px 30px;text-align:center;color:var(--muted)}
.empty h3{font-family:var(--font-head);color:var(--ink);margin:0 0 8px}

/* ---------- Footer ---------- */
.footer{background:var(--footer-bg);color:var(--footer-text);margin-top:40px;
  padding:44px 0 30px;font-size:14px}
.footer__grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:36px}
.footer h4{font-family:var(--font-head);font-weight:700;color:#fff;font-size:15px;margin:0 0 14px;
  letter-spacing:.02em}
.footer a{color:var(--footer-text);opacity:.85}
.footer a:hover{opacity:1;color:#fff}
.footer__cats{display:flex;flex-wrap:wrap;gap:8px 16px}
.footer__brand{font-family:var(--font-head);font-weight:800;font-size:24px;color:#fff;margin-bottom:8px}
.footer__bottom{margin-top:34px;padding-top:20px;border-top:1px solid rgba(255,255,255,.12);
  opacity:.65;font-size:13px}

/* ---- Video ugrađen (YouTube) ---- */
.video-embed{position:relative;width:100%;aspect-ratio:16/9;margin:0 0 18px;border-radius:12px;overflow:hidden;background:#000}
.video-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.card__thumb{position:relative;display:block}
.card__play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:46px;height:46px;display:flex;align-items:center;justify-content:center;
  background:rgba(0,0,0,.62);color:#fff;border-radius:50%;font-size:16px;padding-left:3px}

/* ---- Push dugme ---- */
.push-btn{display:inline-flex;align-items:center;gap:6px;background:transparent;
  border:1px solid rgba(255,255,255,.35);color:var(--header-text,#fff);
  padding:7px 12px;border-radius:999px;cursor:pointer;font:inherit;font-size:13px;font-weight:600;white-space:nowrap}
.push-btn:hover{background:rgba(255,255,255,.12)}
.push-btn.is-on{background:var(--accent);border-color:var(--accent);color:#fff}
.push-btn__bell{font-size:14px}
@media(max-width:640px){.push-btn__txt{display:none}}

/* ---- Header/footer prilagođeni blokovi ---- */
.header-custom{background:var(--accent-2,#12233b);color:#fff}
.header-custom .wrap{padding:8px 20px;font-size:14px}
.footer__custom{margin:18px 0 0;padding-top:16px;border-top:1px solid rgba(255,255,255,.12);font-size:14px;opacity:.9}
.footer__bottom{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:center;justify-content:space-between}
.footer__credit a{color:var(--footer-text,#c7cfdb);text-decoration:underline}
.nav__page{opacity:.95}
.page__body{font-size:17px}

/* ---- Popup reklama (fold/scale animacija) ---- */
.np-popup{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center}
.np-popup[hidden]{display:none}
.np-popup__overlay{position:absolute;inset:0;background:rgba(8,12,20,.6);opacity:0;transition:opacity .35s ease}
.np-popup__box{position:relative;background:#fff;border-radius:16px;max-width:520px;width:calc(100% - 40px);
  max-height:82vh;overflow:auto;box-shadow:0 30px 80px rgba(0,0,0,.4);
  transform:perspective(1200px) rotateX(-90deg) scale(.9);transform-origin:top center;opacity:0;
  transition:transform .42s cubic-bezier(.2,.8,.25,1),opacity .3s ease}
.np-popup.is-open .np-popup__overlay{opacity:1}
.np-popup.is-open .np-popup__box{transform:perspective(1200px) rotateX(0) scale(1);opacity:1}
.np-popup.is-closing .np-popup__overlay{opacity:0}
.np-popup.is-closing .np-popup__box{transform:perspective(1200px) rotateX(-90deg) scale(.9);opacity:0}
.np-popup__close{position:absolute;top:10px;right:12px;z-index:2;width:34px;height:34px;border:0;
  background:rgba(0,0,0,.06);border-radius:50%;font-size:22px;line-height:1;cursor:pointer;color:#333}
.np-popup__close:hover{background:rgba(0,0,0,.12)}
.np-popup__content{padding:26px}
.np-popup__content .ad{margin:0;border:0;padding:0}
.np-popup__content .ad__label{display:none}
.np-popup__content img{max-width:100%;height:auto;border-radius:8px}

/* ---- Toast (push status) ---- */
.np-toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);z-index:10000;
  background:#0e1726;color:#fff;padding:12px 18px;border-radius:10px;font-size:14px;
  box-shadow:0 12px 40px rgba(0,0,0,.35);opacity:0;transition:opacity .3s ease,transform .3s ease;max-width:90vw}
.np-toast.is-on{opacity:1;transform:translate(-50%,0)}

/* ---- Admin dijagnostika ---- */

/* ============ v1.5: header baner, mobilni meni, responsive ============ */

/* Baner u header traci */
.topbar__ad{flex:1 1 auto;display:flex;justify-content:center;align-items:center;
  max-width:760px;overflow:hidden;padding:4px 0}
.topbar__ad .ad{margin:0;border:0;padding:0;background:transparent}
.topbar__ad .ad__label{display:none}
.topbar__ad img{max-width:100%;height:auto;display:block}
.topbar__ad iframe{max-width:100%}

/* Hamburger */
/* Hamburger živi u navigaciji (bela pozadina!) — vidljiv samo na mobilnom.
   Boje se nasleđuju od navigacije: crte i natpis su tamni, ne beli. */
.nav__bar{display:none;border-bottom:1px solid var(--line)}
.nav-toggle{display:flex;align-items:center;width:100%;height:48px;
  background:transparent;border:0;padding:0;cursor:pointer;position:relative;
  color:var(--ink);
  font:600 14px/1 var(--font-head),Inter,system-ui,sans-serif}
.nav-toggle span{position:absolute;left:2px;display:block;width:22px;height:2px;
  background:currentColor;border-radius:2px;
  transition:transform .25s ease,opacity .2s ease}
.nav-toggle span:nth-child(1){top:17px}
.nav-toggle span:nth-child(2){top:23px}
.nav-toggle span:nth-child(3){top:29px}
.nav-toggle__txt{font-style:normal;margin-left:34px;color:inherit}
.nav-toggle:hover{color:var(--accent)}
.nav-toggle.is-open span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.nav-toggle.is-open span:nth-child(2){opacity:0}
.nav-toggle.is-open span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

/* Zona iznad footera */
.above-footer{background:var(--page-bg,#f4f5f7);border-top:1px solid rgba(0,0,0,.07);
  padding:26px 0}
.above-footer__custom{font-size:15px}
.above-footer .ad{margin:0 auto}

/* ---------- RESPONSIVE ---------- */

/* Veliki tableti */
@media (max-width:1100px){
  .wrap{padding-left:18px;padding-right:18px}
  .layout{grid-template-columns:1fr 300px;gap:26px}
  .grid{grid-template-columns:repeat(2,1fr)}
}

/* Tablet — sidebar ide ispod */
@media (max-width:900px){
  .layout{grid-template-columns:1fr;gap:30px}
  .sidebar{position:static;max-width:none}
  .hero{grid-template-columns:1fr}
  .hero__thumb img{max-height:340px;width:100%;object-fit:cover}
  .hero__title{font-size:29px}
  .topbar__ad{max-width:420px}
}

/* Mobilni — meni na klik */
@media (max-width:760px){
  .topbar__row{flex-wrap:wrap;gap:10px;padding-top:10px;padding-bottom:10px}
  .topbar__meta{display:none}
  .brand{font-size:19px}
  .brand__tag{display:none}
  .nav__bar{display:block}
  .nav__row{display:none;flex-direction:column;align-items:stretch;gap:0;padding:6px 0}
  .nav.is-open .nav__row{display:flex}
  .nav__row a{padding:13px 2px;border-bottom:1px solid var(--line);width:100%}
  .nav__row a:last-child{border-bottom:0}
  .topbar__ad{order:3;flex-basis:100%;max-width:none;margin-top:4px}
  .search{order:4;flex-basis:100%}
  .search input{width:100%}
  .grid{grid-template-columns:1fr;gap:18px}
  .hero__title{font-size:24px}
  .article__title{font-size:26px;line-height:1.22}
  .article__body{font-size:17px}
  .footer__grid{grid-template-columns:1fr;gap:26px}
  .footer__bottom{flex-direction:column;align-items:flex-start;gap:8px}
  .card{display:grid;grid-template-columns:112px 1fr;gap:12px;align-items:start}
  .card__thumb img{height:82px;border-radius:8px}
  .card__body{padding:0}
  .card__excerpt{display:none}
  .card__title{font-size:15.5px;line-height:1.32}
  .np-popup__content{padding:20px}
  .video-embed{border-radius:8px}
}

/* Mali telefoni */
@media (max-width:420px){
  .wrap{padding-left:14px;padding-right:14px}
  .hero__title{font-size:21px}
  .article__title{font-size:22px}
  .card{grid-template-columns:92px 1fr}
  .card__thumb img{height:68px}
  .ticker__label{font-size:10px;padding:0 9px}
  .push-btn__txt{display:none}
}

/* Slike nikad ne prelaze okvir */
img{max-width:100%;height:auto}
.article__body img{border-radius:10px;margin:14px 0}
.article__body table{width:100%;overflow-x:auto;display:block}

/* Štampa */
@media print{
  .topbar,.nav,.ticker,.sidebar,.footer,.np-popup,.ad,.above-footer,.push-btn{display:none!important}
  .layout{grid-template-columns:1fr}
}

/* ---- Deljenje ---- */
.share{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:22px 0;
  padding:14px 0;border-top:1px solid rgba(0,0,0,.08);border-bottom:1px solid rgba(0,0,0,.08)}
.share__label{font-family:Inter,system-ui,sans-serif;font-size:13px;font-weight:600;
  text-transform:uppercase;letter-spacing:.06em;color:#6b7280}
.share__btns{display:flex;gap:8px;flex-wrap:wrap}
.share__btn{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border-radius:8px;
  border:1px solid rgba(0,0,0,.1);background:#fff;color:#1f2937;cursor:pointer;
  font:600 13px/1 Inter,system-ui,sans-serif;text-decoration:none;transition:all .18s ease}
.share__btn:hover{transform:translateY(-1px);box-shadow:0 4px 14px rgba(0,0,0,.12);color:#fff}
.share__btn--facebook:hover{background:#1877f2;border-color:#1877f2}
.share__btn--x:hover{background:#000;border-color:#000}
.share__btn--whatsapp:hover{background:#25d366;border-color:#25d366}
.share__btn--viber:hover{background:#7360f2;border-color:#7360f2}
.share__btn--linkedin:hover{background:#0a66c2;border-color:#0a66c2}
.share__btn--email:hover{background:#6b7280;border-color:#6b7280}
.share__btn--copy:hover,.share__btn--native:hover{background:var(--accent);border-color:var(--accent)}
@media(max-width:760px){
  .share{gap:9px}
  .share__label{width:100%;margin-bottom:-2px}
  .share__btn{padding:9px 11px}
  .share__btn span{display:none}
  .share__btn{min-width:42px;justify-content:center}
}

/* Baner sam u header traci — zauzima desnu stranu */
.topbar__ad--solo{flex:1 1 auto;justify-content:flex-end;max-width:none}
.topbar__ad--solo .ad{width:auto;max-width:100%}
@media(max-width:760px){.topbar__ad--solo{justify-content:center}}

/* Bez JavaScript-a meni mora ostati vidljiv */
.no-js .nav__row{display:flex!important;flex-wrap:wrap}
.no-js .nav__bar{display:none!important}

/* ============ Placeholder za prazna mesta za reklamu ============ */
.ad-ph{display:flex;align-items:center;justify-content:center;text-align:center;
  border:2px dashed rgba(0,0,0,.16);border-radius:10px;background:
    repeating-linear-gradient(45deg,rgba(0,0,0,.02) 0 12px,transparent 12px 24px);
  color:#8a94a3;min-height:90px;padding:16px}
.ad-ph__text{font-family:Inter,system-ui,sans-serif;font-weight:700;font-size:13px;
  letter-spacing:.12em;text-transform:uppercase;line-height:1.5}
.ad-ph__link{text-decoration:none;color:inherit}
.ad-ph__link:hover .ad-ph__text{color:var(--accent)}
.ad-ph--header_bar{min-height:60px;border-color:rgba(255,255,255,.28);color:rgba(255,255,255,.72);
  background:repeating-linear-gradient(45deg,rgba(255,255,255,.05) 0 12px,transparent 12px 24px)}
.ad-ph--header{min-height:90px}
.ad-ph--sidebar_top,.ad-ph--sidebar_bottom{min-height:250px}
.ad-ph--in_article,.ad-ph--between_articles{min-height:110px;margin:22px 0}
.ad-ph--above_footer{min-height:110px}
.ad-ph--footer{min-height:90px;border-color:rgba(255,255,255,.22);color:rgba(255,255,255,.6);
  background:repeating-linear-gradient(45deg,rgba(255,255,255,.04) 0 12px,transparent 12px 24px)}
.ad img{max-width:100%;height:auto;display:block;margin:0 auto}
.ad a{display:block}

/* ============ Popup: RAZVIJA SE (unfold) sa dna ============ */
.np-popup--bottom{align-items:flex-end;justify-content:center}
.np-popup--bottom .np-popup__box{
  width:min(760px,calc(100% - 24px));max-width:none;margin-bottom:0;max-height:72vh;
  opacity:1;                     /* vidljivost kontroliše clip-path, ne prozirnost */
  border-radius:14px 14px 0 0;
  transform-origin:bottom center;
  /* Razvijanje: sadržaj se otkriva odozdo nagore, bez skakanja */
  clip-path:inset(100% 0 0 0);
  transform:scaleY(.94);
  transition:clip-path .62s cubic-bezier(.22,.75,.28,1),
             transform .62s cubic-bezier(.22,.75,.28,1);
  will-change:clip-path,transform}
.np-popup--bottom.is-open .np-popup__box{clip-path:inset(0 0 0 0);transform:scaleY(1)}
.np-popup--bottom.is-closing .np-popup__box{clip-path:inset(100% 0 0 0);transform:scaleY(.94)}
.np-popup--bottom .np-popup__overlay{background:rgba(8,12,20,.32);
  opacity:0;transition:opacity .45s ease}
.np-popup--bottom.is-open .np-popup__overlay{opacity:1}
.np-popup--bottom .np-popup__content{padding:20px}

/* Uska ručica na vrhu — vizuelno nagoveštava razvijanje */
.np-popup--bottom .np-popup__box::before{
  content:"";position:absolute;top:9px;left:50%;transform:translateX(-50%);
  width:42px;height:4px;border-radius:3px;background:rgba(0,0,0,.16)}
.np-popup--bottom .np-popup__content{padding-top:26px}

/* Centrirani stil (alternativa) */
.np-popup--center{align-items:center;justify-content:center}

/* Ko ne želi animacije */
@media (prefers-reduced-motion:reduce){
  .np-popup--bottom .np-popup__box{transition-duration:.01ms;clip-path:none;transform:none}
}

@media(max-width:620px){
  .np-popup--bottom .np-popup__box{width:100%;max-height:78vh}
  .np-popup--bottom .np-popup__content{padding:16px;padding-top:24px}
  .ad-ph{min-height:70px}
  .ad-ph__text{font-size:11.5px;letter-spacing:.09em}
  .ad-ph--sidebar_top,.ad-ph--sidebar_bottom{min-height:140px}
}

/* ============ Soft-ask: "Želite li da primate obaveštenja?" ============ */
.np-ask{position:fixed;z-index:9600;display:flex;align-items:center;gap:14px;
  background:#fff;border:1px solid rgba(0,0,0,.1);border-radius:14px;padding:16px 18px;
  box-shadow:0 18px 50px rgba(8,12,20,.22);opacity:0;pointer-events:none;
  transition:transform .42s cubic-bezier(.16,.84,.32,1),opacity .3s ease}
.np-ask.is-open{opacity:1;pointer-events:auto;transform:none}
.np-ask__icon{font-size:26px;line-height:1;flex:0 0 auto}
.np-ask__body{flex:1 1 auto;min-width:0}
.np-ask__title{font-family:var(--font-head),Inter,system-ui,sans-serif;font-weight:700;
  font-size:15px;color:#111827;margin-bottom:3px}
.np-ask__text{font-size:13px;line-height:1.45;color:#6b7280}
.np-ask__btns{display:flex;gap:8px;flex:0 0 auto}
.np-ask__yes,.np-ask__no{border-radius:9px;padding:9px 15px;cursor:pointer;
  font:600 13.5px/1 Inter,system-ui,sans-serif;transition:all .18s ease;border:1px solid transparent}
.np-ask__yes{background:var(--accent);color:#fff}
.np-ask__yes:hover{filter:brightness(1.08);transform:translateY(-1px)}
.np-ask__no{background:transparent;color:#6b7280;border-color:rgba(0,0,0,.14)}
.np-ask__no:hover{background:#f3f4f6;color:#111827}

/* Iskače odozdo */
.np-ask--bottom{left:50%;bottom:18px;width:min(620px,calc(100% - 24px));
  transform:translate(-50%,140%)}
.np-ask--bottom.is-open{transform:translate(-50%,0)}

/* Iz gornjeg desnog ugla */
.np-ask--top{right:18px;top:18px;width:min(420px,calc(100% - 24px));transform:translateY(-140%)}
.np-ask--top.is-open{transform:translateY(0)}

@media(max-width:620px){
  .np-ask{flex-wrap:wrap;padding:14px;gap:10px}
  .np-ask__icon{font-size:22px}
  .np-ask__title{font-size:14px}
  .np-ask__text{font-size:12.5px}
  .np-ask__btns{width:100%}
  .np-ask__yes,.np-ask__no{flex:1;text-align:center;justify-content:center}
  .np-ask--bottom{bottom:10px;width:calc(100% - 16px)}
  .np-ask--top{top:10px;right:8px;width:calc(100% - 16px)}
}

/* ============ Traka za obaveštenja (u footeru) ============ */
.pushbar{background:var(--page-bg,#f4f5f7);border-top:1px solid rgba(0,0,0,.08)}
.pushbar__row{display:flex;align-items:center;gap:16px;padding:20px 0}
.pushbar__bell{font-size:28px;line-height:1;flex:0 0 auto}
.pushbar__txt{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.pushbar__txt strong{font-family:var(--font-head),Inter,system-ui,sans-serif;font-size:16px;color:#111827}
.pushbar__txt span{font-size:13.5px;color:#6b7280}
.push-btn--bar{flex:0 0 auto;background:var(--accent);color:#fff;border:0;border-radius:9px;
  padding:11px 18px;cursor:pointer;font:600 14px/1 Inter,system-ui,sans-serif;
  transition:filter .18s ease,transform .18s ease}
.push-btn--bar:hover{filter:brightness(1.08);transform:translateY(-1px)}
.push-btn--bar:disabled{opacity:.55;cursor:not-allowed;transform:none}
.push-btn--bar.is-on{background:#12a150}
@media(max-width:620px){
  .pushbar__row{flex-wrap:wrap;gap:12px;padding:16px 0}
  .pushbar__bell{font-size:23px}
  .pushbar__txt strong{font-size:15px}
  .pushbar__txt span{font-size:12.5px}
  .push-btn--bar{width:100%;text-align:center}
}


/* Webs News Platform 2.0 — theme presets, dark mode, popup variants */
body{transition:background-color .25s ease,color .25s ease}
body.theme-editorial .hero__title,body.theme-editorial .card h2,body.theme-editorial .card__title{font-family:"Source Serif 4",serif}
body.theme-editorial .card{border-radius:2px;box-shadow:none;border-bottom:1px solid #d9d3c8}
body.theme-tech .card{border:1px solid rgba(124,58,237,.18);box-shadow:0 10px 34px rgba(15,23,42,.08)}
body.theme-business .hero{border-radius:4px}body.theme-business .card{border-radius:6px}
body.theme-magazine .grid{gap:22px}body.theme-magazine .card__thumb img{aspect-ratio:4/3;object-fit:cover}body.theme-magazine .card{border-radius:18px}
body.mode-dark{--page-bg:#0b1020;--header-bg:#070b14;--header-text:#f8fafc;--footer-bg:#070b14;--footer-text:#cbd5e1;color:#e5e7eb}
body.mode-dark .card,body.mode-dark .panel,body.mode-dark .search input{background:#111827;color:#e5e7eb;border-color:#263244}
body.mode-dark .card__title,body.mode-dark .hero__title,body.mode-dark h1,body.mode-dark h2,body.mode-dark h3{color:#f8fafc}
body.mode-dark .muted,body.mode-dark .hint{color:#9ca3af}
@media (prefers-color-scheme:dark){body.mode-system{--page-bg:#0b1020;--header-bg:#070b14;--header-text:#f8fafc;--footer-bg:#070b14;--footer-text:#cbd5e1;color:#e5e7eb}body.mode-system .card{background:#111827;color:#e5e7eb;border-color:#263244}}
.horoscope-grid{margin:20px 0 40px}.horoscope-card .card__body{padding:22px}.horoscope-card h2{margin:5px 0 12px}
.np-popup--pos-bottom-left{align-items:flex-end;justify-content:flex-start}.np-popup--pos-bottom-right{align-items:flex-end;justify-content:flex-end}.np-popup--pos-bottom-center{align-items:flex-end;justify-content:center}.np-popup--pos-center{align-items:center;justify-content:center}
.np-popup--pos-bottom-left .np-popup__box,.np-popup--pos-bottom-right .np-popup__box{width:min(460px,calc(100% - 28px));margin:14px;border-radius:16px}
.np-popup--slide-up .np-popup__box{clip-path:none!important;transform:translateY(120%)!important;opacity:0!important;transition:transform .5s cubic-bezier(.2,.8,.2,1),opacity .3s ease!important}.np-popup--slide-up.is-open .np-popup__box{transform:translateY(0)!important;opacity:1!important}
.np-popup--fade-scale .np-popup__box{clip-path:none!important;transform:scale(.78)!important;opacity:0!important;transition:transform .38s ease,opacity .38s ease!important}.np-popup--fade-scale.is-open .np-popup__box{transform:scale(1)!important;opacity:1!important}
.np-popup--drawer .np-popup__box{clip-path:none!important;transform:translateX(110%)!important;opacity:1!important;transition:transform .48s cubic-bezier(.2,.8,.2,1)!important}.np-popup--drawer.is-open .np-popup__box{transform:translateX(0)!important}
@keyframes npSoftBounce{0%{transform:translateY(80px) scale(.92);opacity:0}70%{transform:translateY(-8px) scale(1.01);opacity:1}100%{transform:translateY(0) scale(1);opacity:1}}
.np-popup--soft-bounce .np-popup__box{clip-path:none!important;opacity:0}.np-popup--soft-bounce.is-open .np-popup__box{animation:npSoftBounce .55s ease forwards}

/* ========================================================================
   Webs News Platform RC4 — tri dodatna news layout preseta
   Vizuelno prate savremene domaće news obrasce, bez tuđeg brendinga.
   ======================================================================== */

/* Daily Pulse — jaka naslovna, crveno/crni akcent, kompaktna lista */
body.theme-daily-pulse{--radius:8px;--wrap:1240px;--font-head:'Archivo',system-ui,sans-serif}
body.theme-daily-pulse .topbar{background:#fff;color:#111;border-bottom:1px solid #e7e7e7}
body.theme-daily-pulse .brand{color:#111;font-size:34px}
body.theme-daily-pulse .brand__tag{color:#5f6368}
body.theme-daily-pulse .search{background:#f2f3f5;border:1px solid #e2e5e9}
body.theme-daily-pulse .search input,body.theme-daily-pulse .search button{color:#111}
body.theme-daily-pulse .search input::placeholder{color:#747b84}
body.theme-daily-pulse .nav{border-bottom:3px solid var(--accent);box-shadow:none}
body.theme-daily-pulse .nav a{font-weight:800;text-transform:uppercase;font-size:13px}
body.theme-daily-pulse .hero{aspect-ratio:16/7.4;border-radius:4px}
body.theme-daily-pulse .hero__body{padding:30px 34px}
body.theme-daily-pulse .hero__title{max-width:900px;font-size:clamp(30px,4.4vw,50px);text-transform:none}
body.theme-daily-pulse .layout{grid-template-columns:minmax(0,1fr) 340px;gap:28px}
body.theme-daily-pulse .grid{gap:18px}
body.theme-daily-pulse .card{border-radius:4px;box-shadow:none;border:0;border-bottom:1px solid #dfe2e6}
body.theme-daily-pulse .card__body{padding:14px 4px 18px}
body.theme-daily-pulse .card__title{font-size:20px;font-weight:800}
body.theme-daily-pulse .widget{border-radius:4px;border-top:4px solid var(--accent)}
body.theme-daily-pulse .widget__head{border-bottom:0;font-size:18px}

/* Breaking Red — vrlo naglašena breaking hijerarhija i guste kartice */
body.theme-breaking-red{--radius:6px;--wrap:1260px;--font-head:'Archivo',system-ui,sans-serif}
body.theme-breaking-red .topbar{background:var(--header-bg);border-bottom:4px solid #8e0000}
body.theme-breaking-red .brand{font-size:36px;text-transform:uppercase;letter-spacing:-.045em}
body.theme-breaking-red .brand__mark{background:#fff}
body.theme-breaking-red .ticker{font-weight:800;border-bottom:2px solid #7a0000}
body.theme-breaking-red .ticker__label{background:#750000}
body.theme-breaking-red .nav{border-bottom:0;background:#171717}
body.theme-breaking-red .nav a{color:#fff;font-size:13.5px;font-weight:800;text-transform:uppercase}
body.theme-breaking-red .nav a:hover,body.theme-breaking-red .nav a.is-active,body.theme-breaking-red .nav__home{color:#fff!important;background:var(--accent)}
body.theme-breaking-red .nav a.is-active::after{display:none}
body.theme-breaking-red .hero{aspect-ratio:16/7;border-radius:0;border-bottom:6px solid var(--accent)}
body.theme-breaking-red .hero__cat{border-radius:0;font-size:13px;font-weight:900}
body.theme-breaking-red .hero__title{font-size:clamp(32px,4.8vw,54px);font-weight:900;line-height:1.02;text-shadow:0 3px 18px rgba(0,0,0,.7)}
body.theme-breaking-red .layout{grid-template-columns:minmax(0,1fr) 330px;gap:22px}
body.theme-breaking-red .grid{gap:14px}
body.theme-breaking-red .card{border-radius:0;box-shadow:none;border:1px solid #dedede}
body.theme-breaking-red .card__body{padding:13px 14px 16px}
body.theme-breaking-red .card__cat{font-weight:900;background:var(--accent);color:#fff;display:inline-block;align-self:flex-start;padding:3px 7px;margin-top:-26px;position:relative}
body.theme-breaking-red .card__title{font-size:20px;line-height:1.12;font-weight:900}
body.theme-breaking-red .card__excerpt{display:none}
body.theme-breaking-red .sec-head{margin-top:24px}
body.theme-breaking-red .sec-head .eyebrow{font-size:18px;letter-spacing:0;color:#111;border-left:6px solid var(--accent);padding-left:10px}
body.theme-breaking-red .widget{border-radius:0;border:2px solid #1a1a1a;padding:15px}
body.theme-breaking-red .widget__head{display:block;background:#1a1a1a;color:#fff;margin:-15px -15px 10px;padding:11px 14px;border:0;text-transform:uppercase}
body.theme-breaking-red .ranked li::before{font-size:24px}

/* Clean Report — redakcijski, plavo-beli, fokus na čitljivosti */
body.theme-clean-report{--radius:4px;--wrap:1220px;--font-head:'Inter',system-ui,sans-serif}
body.theme-clean-report .topbar{background:#fff;color:#101828;border-bottom:1px solid #dfe4ea}
body.theme-clean-report .brand{color:#123c8c;font-size:32px;letter-spacing:-.04em}
body.theme-clean-report .brand__mark{width:8px;height:30px;transform:none;border-radius:0}
body.theme-clean-report .brand__tag{color:#667085}
body.theme-clean-report .search{background:#f5f7fa;border:1px solid #e0e5eb}
body.theme-clean-report .search input,body.theme-clean-report .search button{color:#1d2939}
body.theme-clean-report .search input::placeholder{color:#98a2b3}
body.theme-clean-report .ticker{background:#0d2d6c}
body.theme-clean-report .nav{border-bottom:1px solid #dbe2ea;box-shadow:none}
body.theme-clean-report .nav a{font-weight:650;padding-top:14px;padding-bottom:14px}
body.theme-clean-report .hero{border-radius:2px;aspect-ratio:16/8.5}
body.theme-clean-report .hero__grad{background:linear-gradient(to top,rgba(5,24,57,.9),rgba(5,24,57,.08) 62%,transparent)}
body.theme-clean-report .hero__cat{background:#fff;color:var(--accent);border-radius:2px}
body.theme-clean-report .hero__title{font-size:clamp(29px,4vw,46px);font-weight:750;max-width:880px}
body.theme-clean-report .layout{grid-template-columns:minmax(0,1fr) 300px;gap:42px}
body.theme-clean-report .grid{grid-template-columns:1fr;gap:0}
body.theme-clean-report .card{display:grid;grid-template-columns:260px minmax(0,1fr);border-radius:0;border:0;border-bottom:1px solid #dfe4ea;box-shadow:none;padding:18px 0;background:transparent}
body.theme-clean-report .card:hover{transform:none;box-shadow:none}
body.theme-clean-report .card__thumb{aspect-ratio:16/10;border-radius:2px}
body.theme-clean-report .card__body{padding:2px 0 2px 20px}
body.theme-clean-report .card__title{font-size:21px;line-height:1.2;font-weight:750}
body.theme-clean-report .card__excerpt{font-size:14.5px;line-height:1.48}
body.theme-clean-report .widget{border:0;border-top:4px solid var(--accent);border-radius:0;padding:16px 0;background:transparent}
body.theme-clean-report .widget__head{font-size:17px;border:0;padding:0}
body.theme-clean-report .ranked li{padding:13px 0}
body.theme-clean-report .ranked li::before{color:#98a2b3;font-size:18px}
body.theme-clean-report .article{border-radius:2px;box-shadow:none}

@media(max-width:760px){
  body.theme-daily-pulse .hero,body.theme-breaking-red .hero,body.theme-clean-report .hero{aspect-ratio:4/3}
  body.theme-daily-pulse .hero__body,body.theme-breaking-red .hero__body,body.theme-clean-report .hero__body{padding:20px}
  body.theme-daily-pulse .hero__title,body.theme-breaking-red .hero__title,body.theme-clean-report .hero__title{font-size:clamp(25px,8vw,36px)}
  body.theme-clean-report .card{grid-template-columns:132px minmax(0,1fr);gap:0;padding:14px 0}
  body.theme-clean-report .card__body{padding:0 0 0 14px}
  body.theme-clean-report .card__excerpt{display:none}
  body.theme-clean-report .card__title{font-size:17px}
  body.theme-breaking-red .brand,body.theme-daily-pulse .brand{font-size:28px}
}

/* Dark varijante za tri nova preseta */
body.mode-dark.theme-daily-pulse .topbar,body.mode-dark.theme-clean-report .topbar{background:#0f172a;color:#f8fafc;border-color:#263244}
body.mode-dark.theme-daily-pulse .brand,body.mode-dark.theme-clean-report .brand{color:#f8fafc}
body.mode-dark.theme-daily-pulse .brand__tag,body.mode-dark.theme-clean-report .brand__tag{color:#cbd5e1}
body.mode-dark.theme-daily-pulse .nav,body.mode-dark.theme-clean-report .nav{background:#111827;border-color:#263244}
body.mode-dark.theme-daily-pulse .nav a,body.mode-dark.theme-clean-report .nav a{color:#e5e7eb}
body.mode-dark.theme-clean-report .card{border-color:#263244;background:transparent}

/* ================================================================
   Webs News Platform RC5 — studio theme system
   Svaki preset ima sopstvenu tipografiju, geometriju i ritam.
   ================================================================ */
:root{--studio-radius:16px;--studio-shadow:0 14px 40px rgba(15,23,42,.08);--studio-border:rgba(15,23,42,.10)}
body{background:var(--page-bg);text-rendering:optimizeLegibility}
.topbar,.nav,.ticker,.card,.hero,.widget,.article,.ad,.np-popup__box{transition:background-color .25s,border-color .25s,box-shadow .25s,color .25s,transform .25s}
.card__thumb img,.hero>img{transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.card:hover .card__thumb img{transform:scale(1.035)}

/* News Modern — premium newsroom */
.theme-news-modern .topbar{background:#0d1625;border-bottom:1px solid rgba(255,255,255,.08)}
.theme-news-modern .brand{letter-spacing:-.025em}.theme-news-modern .brand__mark{border-radius:5px;transform:rotate(8deg)}
.theme-news-modern .nav{background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.06)}
.theme-news-modern .hero{border-radius:22px;box-shadow:0 20px 60px rgba(15,23,42,.18);min-height:500px}
.theme-news-modern .hero__title{max-width:850px;font-size:clamp(32px,5vw,64px);line-height:.98;letter-spacing:-.045em}
.theme-news-modern .grid{gap:24px}.theme-news-modern .card{border-radius:18px;border:1px solid #e8ebef;box-shadow:0 10px 32px rgba(15,23,42,.06);overflow:hidden}
.theme-news-modern .card__title{font-size:21px;line-height:1.18}.theme-news-modern .widget{border-radius:18px}

/* Editorial — print magazine / serif */
.theme-editorial{--studio-border:#d7d0c2}
.theme-editorial .topbar{background:#faf8f2;color:#171717;border-bottom:1px solid #d7d0c2}
.theme-editorial .brand,.theme-editorial h1,.theme-editorial h2,.theme-editorial h3,.theme-editorial .hero__title,.theme-editorial .card__title{font-family:"Source Serif 4",Georgia,serif}
.theme-editorial .brand{font-size:31px;font-weight:600}.theme-editorial .brand__mark{display:none}
.theme-editorial .nav{background:#faf8f2;border-block:1px solid #d7d0c2}.theme-editorial .nav__row{justify-content:center}
.theme-editorial .ticker{background:#171717}.theme-editorial .hero{border-radius:0;box-shadow:none;min-height:560px;border-bottom:7px solid var(--accent)}
.theme-editorial .hero__title{font-size:clamp(40px,5.6vw,72px);line-height:.96;font-weight:600}
.theme-editorial .grid{gap:34px}.theme-editorial .card{border:0;border-top:1px solid #d7d0c2;border-radius:0;background:transparent;box-shadow:none;padding-top:18px}
.theme-editorial .card__thumb{border-radius:0}.theme-editorial .card__title{font-size:25px;font-weight:600}.theme-editorial .card__cat{letter-spacing:.16em}
.theme-editorial .article__title{font-family:"Source Serif 4",Georgia,serif;font-weight:600;font-size:clamp(42px,6vw,76px);line-height:.98}

/* Tech — digital dark glass */
.theme-tech .topbar,.theme-tech .nav{background:#08111f;color:#e8f0ff;border-color:#1d2a3b}.theme-tech .nav a{color:#cfe0ff}.theme-tech .nav a.is-active{color:#fff}
.theme-tech .ticker{background:linear-gradient(90deg,#6d28d9,#2563eb)}
.theme-tech .hero{border-radius:24px;border:1px solid rgba(124,58,237,.35);box-shadow:0 30px 80px rgba(59,37,130,.24)}
.theme-tech .hero__grad{background:linear-gradient(0deg,rgba(3,7,18,.96),rgba(3,7,18,.06) 78%)}
.theme-tech .card,.theme-tech .widget,.theme-tech .article{border:1px solid rgba(124,58,237,.14);border-radius:18px;box-shadow:0 12px 36px rgba(30,41,59,.10)}
.theme-tech .card__cat,.theme-tech .eyebrow{font-family:Archivo,Inter,sans-serif;letter-spacing:.13em}.theme-tech .card__title{letter-spacing:-.025em}
.theme-tech .share__btn{border-radius:999px}

/* Business — financial newspaper */
.theme-business .topbar{background:#0c2746}.theme-business .nav{background:#fff;border-bottom:3px solid #0f2747}
.theme-business .brand{font-family:Georgia,"Source Serif 4",serif;font-size:29px}.theme-business .brand__mark{width:6px;border-radius:0}
.theme-business .ticker{background:#0f2747}.theme-business .ticker__label{background:#1565c0}
.theme-business .hero{border-radius:4px;min-height:480px;box-shadow:0 10px 28px rgba(15,39,71,.15)}
.theme-business .hero__title,.theme-business .article__title{font-family:"Source Serif 4",Georgia,serif}
.theme-business .grid{gap:20px}.theme-business .card{border-radius:4px;border:1px solid #d9e0e8;box-shadow:none}.theme-business .card__thumb{border-radius:0}.theme-business .card__title{font-size:20px}
.theme-business .sec-head{border-bottom:2px solid #0f2747;padding-bottom:9px}.theme-business .sec-head .rule{display:none}

/* Magazine — editorial lifestyle */
.theme-magazine .topbar{background:#2e1429}.theme-magazine .brand{font-size:30px;letter-spacing:.01em}.theme-magazine .nav{background:#fff7fa}
.theme-magazine .ticker{background:linear-gradient(90deg,#ff4f5e,#a62f71)}
.theme-magazine .hero{border-radius:32px;min-height:570px;box-shadow:0 26px 70px rgba(91,33,72,.20)}
.theme-magazine .hero__title{font-size:clamp(38px,6vw,74px);line-height:.95}.theme-magazine .hero__cat{border-radius:999px;padding:7px 12px;background:#fff;color:#32132a}
.theme-magazine .grid{gap:28px}.theme-magazine .card{border:0;border-radius:24px;box-shadow:0 16px 45px rgba(91,33,72,.09);overflow:hidden}.theme-magazine .card__thumb{aspect-ratio:4/3}.theme-magazine .card__title{font-size:23px}
.theme-magazine .card:nth-child(5n+1){transform:translateY(10px)}

/* Daily Pulse — dense national portal */
.theme-daily-pulse .topbar{background:#fff;color:#101010;border-top:5px solid #d71920;border-bottom:1px solid #ddd}.theme-daily-pulse .brand{font-size:34px;font-weight:800}.theme-daily-pulse .brand__tag{color:#555}.theme-daily-pulse .nav{background:#111}.theme-daily-pulse .nav a{color:#fff}.theme-daily-pulse .nav a.is-active{background:#d71920;color:#fff}
.theme-daily-pulse .ticker{background:#d71920}.theme-daily-pulse .hero{border-radius:3px;min-height:520px}.theme-daily-pulse .hero__title{font-size:clamp(40px,5vw,68px);font-weight:800;line-height:.96}
.theme-daily-pulse .layout{grid-template-columns:minmax(0,1fr) 330px}.theme-daily-pulse .grid{gap:14px}.theme-daily-pulse .card{border-radius:3px;border:1px solid #ddd;box-shadow:none}.theme-daily-pulse .card__body{padding:14px}.theme-daily-pulse .card__title{font-size:20px;font-weight:800}.theme-daily-pulse .widget{border-radius:3px;border-top:5px solid #d71920}

/* Breaking Red — urgent / high energy */
.theme-breaking-red{--studio-shadow:0 8px 24px rgba(70,0,0,.12)}
.theme-breaking-red .topbar{background:#c90000}.theme-breaking-red .brand{font-size:35px;font-weight:800;text-transform:uppercase}.theme-breaking-red .brand__mark{background:#fff}.theme-breaking-red .nav{background:#850000}.theme-breaking-red .nav a{color:#fff;text-transform:uppercase;font-size:13px;font-weight:800}.theme-breaking-red .ticker{background:#111}.theme-breaking-red .ticker__label{background:#ed1c24}
.theme-breaking-red .hero{border-radius:0;min-height:540px;border-bottom:8px solid #ed1c24;box-shadow:0 16px 42px rgba(92,0,0,.2)}.theme-breaking-red .hero__title{text-transform:none;font-size:clamp(42px,6vw,76px);line-height:.92;font-weight:800}
.theme-breaking-red .grid{gap:12px}.theme-breaking-red .card{border-radius:0;border:0;border-bottom:4px solid #e4e4e4;box-shadow:none}.theme-breaking-red .card__thumb{border-radius:0}.theme-breaking-red .card__cat{display:inline-block;background:#ed1c24;color:#fff;padding:4px 7px}.theme-breaking-red .card__title{font-size:22px;font-weight:800}.theme-breaking-red .sec-head .eyebrow{background:#ed1c24;color:#fff;padding:7px 11px}

/* Clean Report — broadcast newsroom */
.theme-clean-report .topbar{background:#fff;color:#101828;border-bottom:1px solid #e6eaf0}.theme-clean-report .brand{font-size:28px;font-weight:700}.theme-clean-report .brand__mark{border-radius:50%}.theme-clean-report .nav{background:#fff;border-bottom:1px solid #dce3ed}.theme-clean-report .nav a{color:#1c3159}.theme-clean-report .nav a.is-active{color:#123c8c;border-bottom:3px solid #123c8c}
.theme-clean-report .ticker{background:#0d2d6c}.theme-clean-report .hero{border-radius:12px;min-height:490px;box-shadow:none}.theme-clean-report .hero__title{max-width:820px;font-size:clamp(36px,5vw,64px);line-height:1.02;font-weight:700}
.theme-clean-report .layout{grid-template-columns:minmax(0,1fr) 300px;gap:40px}.theme-clean-report .grid{gap:28px 22px}.theme-clean-report .card{border:0;border-radius:0;box-shadow:none;background:transparent}.theme-clean-report .card__thumb{border-radius:8px}.theme-clean-report .card__body{padding:14px 0}.theme-clean-report .card__title{font-size:21px}.theme-clean-report .widget{border-radius:10px;box-shadow:none;border:1px solid #e2e8f0}

/* Horoscope studio components */
.horoscope-hero{margin:32px 0 28px;padding:32px;border-radius:24px;background:linear-gradient(135deg,var(--accent-2),var(--accent));color:#fff;display:flex;align-items:center;justify-content:space-between;gap:24px;overflow:hidden;position:relative;box-shadow:0 20px 55px rgba(15,23,42,.16)}
.horoscope-hero h1{margin:5px 0 8px;font:800 clamp(30px,5vw,54px)/1 Archivo,Inter,sans-serif}.horoscope-hero p{margin:0;opacity:.86}.horoscope-wheel{width:190px;min-width:190px;display:grid;grid-template-columns:repeat(4,1fr);gap:7px;opacity:.9}.horoscope-wheel span{display:grid;place-items:center;aspect-ratio:1;border-radius:50%;background:rgba(255,255,255,.12);font-size:25px}
.horoscope-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.horoscope-card{border-radius:20px;overflow:hidden}.zodiac-head{display:flex;align-items:center;gap:14px;margin-bottom:16px}.zodiac-head h2{margin:3px 0 0;font-size:25px}.zodiac-head h2 a{color:inherit;text-decoration:none}.zodiac-icon{width:62px;height:62px;display:grid;place-items:center;flex:0 0 62px;border-radius:18px;background:linear-gradient(145deg,var(--accent),var(--accent-2));color:#fff;text-decoration:none;font-size:34px;box-shadow:0 10px 24px rgba(15,23,42,.14)}
.horoscope-summary{font-size:16px;line-height:1.65}.horoscope-facts{display:grid;gap:10px;margin-top:17px}.horoscope-facts p{margin:0;padding:11px 12px;border-radius:12px;background:rgba(127,127,127,.07)}.horoscope-facts strong{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--accent);margin-bottom:4px}.horoscope-facts span{display:block;line-height:1.5}.horoscope-facts .lucky{display:flex;align-items:center;justify-content:space-between}.horoscope-facts .lucky strong{margin:0}.horoscope-facts .lucky span{font:800 24px/1 Archivo,sans-serif;color:var(--accent)}.horoscope-card .share{border-top:1px solid rgba(127,127,127,.16);padding-top:15px;margin-bottom:0}.horoscope-card .share__label{display:none}.horoscope-card .share__btn span{display:none}.horoscope-card .share__btn{padding:8px;min-width:36px;justify-content:center;border-radius:10px}

/* Dark/system quality pass */
.mode-dark,.mode-system{color-scheme:light dark}
.mode-dark{--page-bg:#0c1119;color:#e5e7eb}.mode-dark .card,.mode-dark .widget,.mode-dark .article{background:#121923;color:#e8edf5;border-color:#283241}.mode-dark .nav{border-color:#273142}.mode-dark .card__excerpt,.mode-dark .muted,.mode-dark .card__meta{color:#aeb8c7}.mode-dark .share__btn{color:#dce3ec;border-color:#394555;background:#151d28}.mode-dark .horoscope-facts p{background:#18212d}
@media (prefers-color-scheme:dark){.mode-system{--page-bg:#0c1119;color:#e5e7eb}.mode-system .card,.mode-system .widget,.mode-system .article{background:#121923;color:#e8edf5;border-color:#283241}.mode-system .card__excerpt,.mode-system .muted{color:#aeb8c7}}

@media(max-width:980px){.horoscope-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-daily-pulse .layout,.theme-clean-report .layout{grid-template-columns:1fr}.theme-magazine .card:nth-child(5n+1){transform:none}}
@media(max-width:640px){.horoscope-hero{padding:24px 20px;border-radius:18px}.horoscope-wheel{display:none}.horoscope-grid{grid-template-columns:1fr}.zodiac-icon{width:54px;height:54px;flex-basis:54px;font-size:30px}.theme-news-modern .hero,.theme-editorial .hero,.theme-tech .hero,.theme-magazine .hero,.theme-daily-pulse .hero,.theme-breaking-red .hero,.theme-clean-report .hero{min-height:390px;border-radius:10px}.theme-editorial .hero,.theme-breaking-red .hero{border-radius:0}.theme-news-modern .hero__title,.theme-editorial .hero__title,.theme-breaking-red .hero__title{font-size:38px}}

/* RC7 — kontrast i stabilnost kontrola kroz sve teme */
:root{--control-bg:#fff;--control-text:#111827;--control-border:#cbd5e1}
body[class*="theme-"] .btn,
body[class*="theme-"] button.btn,
body[class*="theme-"] a.btn{background:var(--accent);color:#fff!important;border-color:var(--accent);text-decoration:none}
body[class*="theme-"] .btn--ghost,
body[class*="theme-"] a.btn--ghost,
body[class*="theme-"] button.btn--ghost{background:var(--control-bg);color:var(--control-text)!important;border:1px solid var(--control-border)}
body[class*="theme-"] input,
body[class*="theme-"] select,
body[class*="theme-"] textarea{background:var(--control-bg);color:var(--control-text);border-color:var(--control-border)}
body[class*="theme-"] input::placeholder,
body[class*="theme-"] textarea::placeholder{color:#6b7280;opacity:1}
body.mode-dark{--control-bg:#111827;--control-text:#f9fafb;--control-border:#475569}
body.mode-dark .btn--ghost,body.mode-dark a.btn--ghost,body.mode-dark button.btn--ghost{background:#111827;color:#f9fafb!important;border-color:#475569}
body.mode-dark input,body.mode-dark select,body.mode-dark textarea{background:#111827;color:#f9fafb;border-color:#475569}
body.mode-dark input::placeholder,body.mode-dark textarea::placeholder{color:#94a3b8}
.card,.widget,.hero,.np-popup,.share{isolation:isolate}
.card__body,.hero__body,.widget{min-width:0}
.card__title,.hero__title,.article h1,.article h2,.article h3{overflow-wrap:anywhere}
.btn,.share__btn,.nav a{position:relative;z-index:1}
@media(max-width:760px){.layout{grid-template-columns:1fr!important}.hero__body{padding-left:18px!important;padding-right:18px!important}.card__title{font-size:clamp(18px,5vw,24px)!important}.nav{overflow:hidden}.nav__row{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.nav__row>*{flex:0 0 auto}}

/* RC12 — stabilan dark/system režim za sve frontend teme.
   Ovaj blok je namerno poslednji: sprečava da theme preset pregazi dark varijante. */
body.mode-dark[class*="theme-"]{
  color-scheme:dark;
  --page-bg:#0b1017;
  --header-bg:#0b111b;
  --header-text:#f8fafc;
  --footer-bg:#080d14;
  --footer-text:#cbd5e1;
  --control-bg:#111827;
  --control-text:#f8fafc;
  --control-border:#3a4759;
  background:var(--page-bg)!important;
  color:#e5e7eb;
}
body.mode-dark[class*="theme-"] .topbar,
body.mode-dark[class*="theme-"] .nav,
body.mode-dark[class*="theme-"] .header-custom{
  background:#0f1722!important;
  color:#f8fafc!important;
  border-color:#283548!important;
}
body.mode-dark[class*="theme-"] .brand,
body.mode-dark[class*="theme-"] .brand__tag,
body.mode-dark[class*="theme-"] .topbar__meta,
body.mode-dark[class*="theme-"] .nav a,
body.mode-dark[class*="theme-"] .nav__page,
body.mode-dark[class*="theme-"] .nav-toggle,
body.mode-dark[class*="theme-"] .nav-toggle__txt{
  color:#eaf0f7!important;
}
body.mode-dark[class*="theme-"] .nav a:hover,
body.mode-dark[class*="theme-"] .nav a.is-active{color:#fff!important}
body.mode-dark[class*="theme-"] .card,
body.mode-dark[class*="theme-"] .widget,
body.mode-dark[class*="theme-"] .article,
body.mode-dark[class*="theme-"] .panel,
body.mode-dark[class*="theme-"] .horoscope-card{
  background:#121a25!important;
  color:#e8edf5!important;
  border-color:#2a3748!important;
}
body.mode-dark[class*="theme-"] .card__title,
body.mode-dark[class*="theme-"] .card__title a,
body.mode-dark[class*="theme-"] .widget__head,
body.mode-dark[class*="theme-"] .article h1,
body.mode-dark[class*="theme-"] .article h2,
body.mode-dark[class*="theme-"] .article h3,
body.mode-dark[class*="theme-"] .sec-head,
body.mode-dark[class*="theme-"] .sec-head .eyebrow,
body.mode-dark[class*="theme-"] .zodiac-head h2,
body.mode-dark[class*="theme-"] .zodiac-head h2 a{color:#f8fafc!important}
body.mode-dark[class*="theme-"] .card__excerpt,
body.mode-dark[class*="theme-"] .card__meta,
body.mode-dark[class*="theme-"] .muted,
body.mode-dark[class*="theme-"] .hint,
body.mode-dark[class*="theme-"] .article__meta{color:#aeb9c8!important}
body.mode-dark[class*="theme-"] input,
body.mode-dark[class*="theme-"] select,
body.mode-dark[class*="theme-"] textarea,
body.mode-dark[class*="theme-"] .search,
body.mode-dark[class*="theme-"] .search input{
  background:var(--control-bg)!important;
  color:var(--control-text)!important;
  border-color:var(--control-border)!important;
}
body.mode-dark[class*="theme-"] input::placeholder,
body.mode-dark[class*="theme-"] textarea::placeholder{color:#94a3b8!important}
body.mode-dark[class*="theme-"] .search button{color:#f8fafc!important}
body.mode-dark[class*="theme-"] .btn--ghost,
body.mode-dark[class*="theme-"] a.btn--ghost,
body.mode-dark[class*="theme-"] button.btn--ghost,
body.mode-dark[class*="theme-"] .share__btn{
  background:#151e2a!important;
  color:#eef2f7!important;
  border-color:#3a4759!important;
}
body.mode-dark[class*="theme-"] .horoscope-facts p{background:#17212e!important}
body.mode-dark.theme-clean-report .card,
body.mode-dark.theme-clean-report .widget{background:#101822!important}
body.mode-dark.theme-daily-pulse .card{background:#121a25!important}
body.mode-dark.theme-breaking-red .nav{background:#101010!important}
body.mode-dark.theme-editorial .card{border-bottom-color:#334155!important}

/* "System" dobija dark stilove samo kada je sam OS/pregledač u dark režimu. */
body.mode-system[class*="theme-"]{color-scheme:light}
@media (prefers-color-scheme:dark){
  body.mode-system[class*="theme-"]{
    color-scheme:dark;
    --page-bg:#0b1017;--header-bg:#0b111b;--header-text:#f8fafc;--footer-bg:#080d14;--footer-text:#cbd5e1;
    --control-bg:#111827;--control-text:#f8fafc;--control-border:#3a4759;
    background:var(--page-bg)!important;color:#e5e7eb;
  }
  body.mode-system[class*="theme-"] .topbar,
  body.mode-system[class*="theme-"] .nav,
  body.mode-system[class*="theme-"] .header-custom{background:#0f1722!important;color:#f8fafc!important;border-color:#283548!important}
  body.mode-system[class*="theme-"] .brand,
  body.mode-system[class*="theme-"] .brand__tag,
  body.mode-system[class*="theme-"] .topbar__meta,
  body.mode-system[class*="theme-"] .nav a,
  body.mode-system[class*="theme-"] .nav__page,
  body.mode-system[class*="theme-"] .nav-toggle,
  body.mode-system[class*="theme-"] .nav-toggle__txt{color:#eaf0f7!important}
  body.mode-system[class*="theme-"] .nav a:hover,
  body.mode-system[class*="theme-"] .nav a.is-active{color:#fff!important}
  body.mode-system[class*="theme-"] .card,
  body.mode-system[class*="theme-"] .widget,
  body.mode-system[class*="theme-"] .article,
  body.mode-system[class*="theme-"] .panel,
  body.mode-system[class*="theme-"] .horoscope-card{background:#121a25!important;color:#e8edf5!important;border-color:#2a3748!important}
  body.mode-system[class*="theme-"] .card__title,
  body.mode-system[class*="theme-"] .card__title a,
  body.mode-system[class*="theme-"] .widget__head,
  body.mode-system[class*="theme-"] .article h1,
  body.mode-system[class*="theme-"] .article h2,
  body.mode-system[class*="theme-"] .article h3,
  body.mode-system[class*="theme-"] .sec-head,
  body.mode-system[class*="theme-"] .sec-head .eyebrow,
  body.mode-system[class*="theme-"] .zodiac-head h2,
  body.mode-system[class*="theme-"] .zodiac-head h2 a{color:#f8fafc!important}
  body.mode-system[class*="theme-"] .card__excerpt,
  body.mode-system[class*="theme-"] .card__meta,
  body.mode-system[class*="theme-"] .muted,
  body.mode-system[class*="theme-"] .hint,
  body.mode-system[class*="theme-"] .article__meta{color:#aeb9c8!important}
  body.mode-system[class*="theme-"] input,
  body.mode-system[class*="theme-"] select,
  body.mode-system[class*="theme-"] textarea,
  body.mode-system[class*="theme-"] .search,
  body.mode-system[class*="theme-"] .search input{background:var(--control-bg)!important;color:var(--control-text)!important;border-color:var(--control-border)!important}
  body.mode-system[class*="theme-"] input::placeholder,
  body.mode-system[class*="theme-"] textarea::placeholder{color:#94a3b8!important}
  body.mode-system[class*="theme-"] .search button{color:#f8fafc!important}
  body.mode-system[class*="theme-"] .btn--ghost,
  body.mode-system[class*="theme-"] a.btn--ghost,
  body.mode-system[class*="theme-"] button.btn--ghost,
  body.mode-system[class*="theme-"] .share__btn{background:#151e2a!important;color:#eef2f7!important;border-color:#3a4759!important}
  body.mode-system[class*="theme-"] .horoscope-facts p{background:#17212e!important}
  body.mode-system.theme-breaking-red .nav{background:#101010!important}
}


/* RC15 — Tech/header containment. */
body.theme-tech{overflow-x:hidden}
body.theme-tech .topbar,body.theme-tech .ticker,body.theme-tech .nav,body.theme-tech main,body.theme-tech footer{width:100%;max-width:100%;overflow-x:clip}
body.theme-tech .topbar__row,body.theme-tech .nav__row,body.theme-tech .ticker__viewport{min-width:0;max-width:100%}
body.theme-tech .ticker,body.theme-tech .ticker__viewport,body.theme-tech .ticker__track{height:40px!important;min-height:40px!important;max-height:40px!important}
body.theme-tech .ticker{overflow:hidden!important;contain:layout paint!important}
body.theme-tech .ticker__viewport{overflow:hidden!important;contain:layout paint!important}
body.theme-tech .ticker__track{position:absolute!important;left:0!important;top:0!important;display:flex!important;align-items:center!important;writing-mode:horizontal-tb!important;text-orientation:mixed!important;line-height:1.2!important}
body.theme-tech .ticker__item{display:inline-flex!important;align-items:center!important;height:40px!important;max-width:min(48rem,70vw)!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.theme-tech .brand{min-width:0;max-width:100%;overflow:hidden}
body.theme-tech .brand__tag{display:block;max-width:min(32vw,420px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.theme-tech .topbar__ad{min-width:0;max-width:50vw;overflow:hidden}
@media(max-width:760px){body.theme-tech .brand__tag{display:none}body.theme-tech .topbar__row{gap:10px}body.theme-tech .ticker__item{max-width:78vw!important}body.theme-tech .topbar__ad{max-width:45vw}}

/* ================================================================
   RC16 — cross-theme layout hardening
   Prevent any theme component from expanding the document viewport.
   ================================================================ */
html,body{max-width:100%;overflow-x:hidden}
.wrap,.topbar__row,.nav__bar,.nav__row,.layout,.content,.sidebar,.grid,.card,.card__body,.hero,.hero__body,.article,.widget,.footer__grid{min-width:0;max-width:100%}
img,video,iframe,svg{max-width:100%}
.topbar,.nav,.ticker,main,.footer{max-width:100vw}
.topbar__row{display:flex;min-width:0}
.brand{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.brand__tag{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar__spacer{min-width:0}
.topbar__ad{min-width:0;max-width:48vw;overflow:hidden}
.nav{overflow:hidden}
.nav__row{min-width:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;scrollbar-width:thin}
.nav__row>a{flex:0 0 auto;max-width:min(320px,72vw);overflow:hidden;text-overflow:ellipsis}
.ticker{display:flex;width:100%;max-width:100vw;overflow:hidden;contain:layout paint}
.ticker__label{flex:0 0 auto}
.ticker__viewport{position:relative;flex:1 1 0;min-width:0;width:0;max-width:100%;height:40px;overflow:hidden;contain:strict}
.ticker__track{position:absolute;inset:0 auto auto 0;height:40px;width:max-content;max-width:none;display:flex;align-items:center;white-space:nowrap;line-height:1.2;writing-mode:horizontal-tb;text-orientation:mixed}
.ticker__item{flex:0 0 auto;min-width:0;max-width:min(48rem,70vw);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hero{isolation:isolate;min-width:0}
.hero__body{min-width:0;max-width:100%}
.hero__title,.card__title,.article__title,.article__body,.widget,.sec-head{min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:normal}
.grid>*{min-width:0}
.card{transform:none}
.card:hover{transform:translateY(-2px)}
/* Magazine stagger no longer changes document geometry. */
.theme-magazine .card:nth-child(5n+1){transform:none!important}
/* Breaking category label stays inside its card instead of using negative flow offsets. */
.theme-breaking-red .card__cat{margin-top:0!important;position:static!important}
/* Tech is deliberately strict: no decorative element may affect page geometry. */
body.theme-tech .topbar,body.theme-tech .nav,body.theme-tech .ticker,body.theme-tech main,body.theme-tech footer{overflow-x:hidden!important}
body.theme-tech .topbar__row{align-items:center;flex-wrap:nowrap}
body.theme-tech .brand{flex:0 1 auto;max-width:min(52vw,620px)}
body.theme-tech .brand__tag{max-width:min(26vw,320px)}
body.theme-tech .topbar__ad{flex:0 1 auto;max-width:min(40vw,520px)}
body.theme-tech .ticker__viewport{width:0!important;min-width:0!important;max-width:100%!important;overflow:hidden!important}
body.theme-tech .ticker__track{position:absolute!important;inset:0 auto auto 0!important;width:max-content!important;max-width:none!important;transform:translate3d(0,0,0);writing-mode:horizontal-tb!important;text-orientation:mixed!important}
body.theme-tech .ticker__item{max-width:min(42rem,64vw)!important}
@media(max-width:980px){
  .topbar__ad{max-width:42vw}
  .layout,.theme-daily-pulse .layout,.theme-clean-report .layout{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:760px){
  .topbar__row{flex-wrap:wrap}
  .brand{max-width:100%!important;flex:1 1 100%}
  .brand__tag{display:none!important}
  .topbar__ad{max-width:100%!important;flex:1 1 100%}
  .ticker__item{max-width:76vw!important}
  .hero__body{padding:20px}
  .hero__title{font-size:clamp(24px,8vw,38px)!important;line-height:1.05!important}
  .grid{grid-template-columns:minmax(0,1fr)!important}
  .card{min-width:0}
  .theme-clean-report .card{grid-template-columns:minmax(110px,36vw) minmax(0,1fr)!important}
}


/* RC17 — Tech ticker hard isolation: nikada ne sme preći preko hero sadržaja */
body.theme-tech .ticker{position:relative!important;z-index:30!important;height:40px!important;overflow:hidden!important;contain:strict!important}
body.theme-tech .ticker__label{height:40px!important;z-index:2!important}
body.theme-tech .ticker__viewport{position:relative!important;display:block!important;flex:1 1 0!important;width:auto!important;min-width:0!important;height:40px!important;overflow:hidden!important;contain:strict!important}
body.theme-tech .ticker__track{position:static!important;inset:auto!important;display:block!important;width:100%!important;max-width:100%!important;height:40px!important;overflow:hidden!important;animation:none!important;transform:none!important;will-change:auto!important;white-space:normal!important}
body.theme-tech .ticker__item{display:none!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;height:40px!important;padding:0 18px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;line-height:40px!important}
body.theme-tech .ticker__item:first-child{display:block!important}
body.theme-tech .nav{z-index:40!important;isolation:isolate}
body.theme-tech .hero{position:relative!important;z-index:1!important;isolation:isolate}


/* RC18 — stable header/ticker architecture for all themes.
   No animated max-content/absolute ticker is allowed to affect page layout. */
html,body{overflow-x:hidden!important}
.topbar,.ticker,.nav{position:relative;max-width:100%;width:100%;box-sizing:border-box}
.topbar__row{min-width:0;max-width:100%;box-sizing:border-box}
.ticker{display:flex!important;align-items:stretch!important;height:40px!important;min-height:40px!important;max-height:40px!important;overflow:hidden!important;contain:none!important;z-index:20!important}
.ticker__label{display:flex!important;align-items:center!important;height:40px!important;min-height:40px!important;position:relative!important;flex:0 0 auto!important}
.ticker__viewport{position:relative!important;display:block!important;flex:1 1 auto!important;width:auto!important;min-width:0!important;max-width:100%!important;height:40px!important;overflow:hidden!important;contain:none!important}
.ticker__track{position:static!important;inset:auto!important;display:flex!important;align-items:center!important;gap:0!important;width:100%!important;max-width:100%!important;height:40px!important;overflow-x:auto!important;overflow-y:hidden!important;animation:none!important;transform:none!important;will-change:auto!important;white-space:nowrap!important;scrollbar-width:none!important;-ms-overflow-style:none!important}
.ticker__track::-webkit-scrollbar{display:none!important}
.ticker__item{position:relative!important;display:flex!important;align-items:center!important;flex:0 0 auto!important;height:40px!important;max-width:min(520px,65vw)!important;padding:0 22px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;line-height:40px!important;transform:none!important;writing-mode:horizontal-tb!important;text-orientation:mixed!important}
.ticker__item::before{top:50%!important;transform:translateY(-50%)!important}
.nav{z-index:30!important;isolation:isolate!important}
.hero{z-index:1!important}
/* Remove all previous Tech-only ticker experiments; global rules above win. */
body.theme-tech .ticker,body.theme-tech .ticker__viewport,body.theme-tech .ticker__track,body.theme-tech .ticker__item{contain:none!important;animation:none!important;transform:none!important}
body.theme-tech .ticker__track{position:static!important;display:flex!important;width:100%!important;overflow-x:auto!important;white-space:nowrap!important}
body.theme-tech .ticker__item{display:flex!important;max-width:min(520px,65vw)!important;line-height:40px!important}
@media(max-width:760px){
  .ticker{height:38px!important;min-height:38px!important;max-height:38px!important}
  .ticker__label,.ticker__viewport,.ticker__track,.ticker__item{height:38px!important;min-height:38px!important;max-height:38px!important}
  .ticker__item{max-width:72vw!important;padding:0 14px!important;line-height:38px!important}
}


/* RC19 — stable header/nav/ticker across all themes */
.nav{position:relative!important;top:auto!important;z-index:20!important;overflow:hidden!important}
.nav__row{min-width:0!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin}
.ticker{position:relative!important;z-index:15!important;overflow:hidden!important;isolation:isolate!important}
.ticker__viewport{position:relative!important;display:block!important;flex:1 1 auto!important;min-width:0!important;width:auto!important;height:40px!important;overflow-x:hidden!important;overflow-y:hidden!important;contain:layout paint!important;scroll-behavior:auto!important}
.ticker__track{position:static!important;display:inline-flex!important;align-items:center!important;width:max-content!important;max-width:none!important;height:40px!important;white-space:nowrap!important;animation:none!important;transform:none!important;will-change:auto!important}
.ticker__item{display:inline-flex!important;flex:0 0 auto!important;max-width:min(520px,65vw)!important;height:40px!important;line-height:40px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;writing-mode:horizontal-tb!important;transform:none!important}
.hero{clear:both!important;isolation:isolate!important;z-index:1!important}
@media(max-width:760px){.ticker__viewport,.ticker__track,.ticker__item{height:38px!important}.ticker__item{max-width:74vw!important;line-height:38px!important}.nav{position:relative!important}}


/* RC20 — authoritative ticker containment & motion fix */
.ticker{
  display:grid!important;
  grid-template-columns:max-content minmax(0,1fr)!important;
  align-items:stretch!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:40px!important;
  min-height:40px!important;
  max-height:40px!important;
  overflow:hidden!important;
  position:relative!important;
  contain:layout paint!important;
}
.ticker__label{
  min-width:0!important;
  height:40px!important;
  max-height:40px!important;
  overflow:hidden!important;
  white-space:nowrap!important;
}
.ticker__viewport{
  grid-column:2!important;
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  height:40px!important;
  overflow:hidden!important;
  position:relative!important;
  contain:strict!important;
}
.ticker__track,
body.theme-tech .ticker__track{
  position:relative!important;
  inset:auto!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:0!important;
  width:max-content!important;
  min-width:100%!important;
  max-width:none!important;
  height:40px!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  white-space:nowrap!important;
  animation:none!important;
  transform:none!important;
  will-change:auto!important;
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
}
.ticker__item,
body.theme-tech .ticker__item{
  flex:0 0 auto!important;
  display:flex!important;
  align-items:center!important;
  width:auto!important;
  max-width:min(520px,62vw)!important;
  height:40px!important;
  line-height:40px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  writing-mode:horizontal-tb!important;
}
.hero{position:relative!important;clear:both!important;z-index:1!important}
@media(max-width:760px){
  .ticker{grid-template-columns:max-content minmax(0,1fr)!important;height:38px!important;min-height:38px!important;max-height:38px!important}
  .ticker__label,.ticker__viewport,.ticker__track,.ticker__item{height:38px!important;max-height:38px!important}
  .ticker__item{max-width:72vw!important;line-height:38px!important;padding-left:14px!important;padding-right:14px!important}
}


/* ============================================================
   RC21 — structural hero + ticker stabilization
   Root cause: .hero is an <a> and must be a block containing block.
   ============================================================ */
.hero,
body.theme-tech .hero,
body.theme-news-modern .hero,
body.theme-editorial .hero,
body.theme-business .hero,
body.theme-magazine .hero,
body.theme-daily-pulse .hero,
body.theme-breaking-red .hero,
body.theme-clean-report .hero{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  position:relative!important;
}
.hero__body{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  left:0!important;
  right:0!important;
}
.hero__title{
  display:block!important;
  width:auto!important;
  min-width:0!important;
  max-width:min(800px,100%)!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
  white-space:normal!important;
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
}

/* Ticker: viewport owns horizontal scrolling; track stays in normal flow. */
.ticker{
  display:grid!important;
  grid-template-columns:max-content minmax(0,1fr)!important;
  align-items:stretch!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:40px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.ticker__viewport,
body.theme-tech .ticker__viewport{
  grid-column:2!important;
  display:block!important;
  position:relative!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:40px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
  contain:none!important;
}
.ticker__viewport::-webkit-scrollbar{display:none!important}
.ticker__track,
body.theme-tech .ticker__track{
  position:static!important;
  inset:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  width:max-content!important;
  min-width:100%!important;
  max-width:none!important;
  height:40px!important;
  overflow:visible!important;
  animation:none!important;
  transform:none!important;
  white-space:nowrap!important;
  writing-mode:horizontal-tb!important;
}
.ticker__item,
body.theme-tech .ticker__item{
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  width:auto!important;
  max-width:min(520px,62vw)!important;
  height:40px!important;
  line-height:40px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  writing-mode:horizontal-tb!important;
}
@media(max-width:760px){
  .ticker,.ticker__viewport,.ticker__track,.ticker__item{height:38px!important;max-height:38px!important}
  .ticker__item{line-height:38px!important;max-width:74vw!important}
  .hero__title{max-width:100%!important}
}
