/* Вести.срб - portalski stil (gust raspored, jak sans, ravne ivice, tamna navigacija).
   Mobile-first, bez spoljnih fontova i bez JavaScript-a. */
:root {
  --red: #c8102e;
  --red-dark: #9e0c24;
  --navy: #0b1f3a;
  --navy-2: #12305a;
  --ink: #111417;
  --ink-soft: #3d434c;
  --muted: #7a818c;
  --bg: #f2f3f5;
  --card: #ffffff;
  --line: #dfe2e7;
  --comment-bg: #fff6ec;
  --sans: "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", "Noto Serif", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
a:focus-visible, .btn:focus-visible { outline: 3px solid #2f7fe0; outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.18; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* gornja traka */
.topbar { background: var(--ink); color: #aeb4bd; font-size: 12px; }
.topbar-row { display: flex; justify-content: space-between; align-items: center; height: 30px; }
.topbar-date::first-letter { text-transform: uppercase; }
.topbar-links a { margin-left: 16px; }
.topbar-links a:hover { color: #fff; }

/* zaglavlje */
.site-head { background: var(--card); }
.head-row { padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand:hover { color: inherit; }
.brand-mark { width: 52px; height: 52px; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 36px; font-weight: 900; line-height: 1; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 30px; font-weight: 900; letter-spacing: .01em; line-height: 1; }
.brand-dot { color: var(--red); }
.brand-tag { font-size: 12px; color: var(--muted); margin-top: 5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.site-nav { background: var(--navy); border-bottom: 3px solid var(--red); }
.nav-row { display: flex; overflow-x: auto; scrollbar-width: none; }
.nav-row::-webkit-scrollbar { display: none; }
.nav-row a { padding: 12px 14px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; color: #dfe6f0; }
.nav-row a:hover { background: var(--navy-2); color: #fff; }
.nav-row a.on { background: var(--red); color: #fff; }

main.wrap { padding-top: 18px; padding-bottom: 40px; min-height: 50vh; }

/* zajednicko */
.meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.src-count::before { content: "|"; margin-right: 10px; color: var(--line); }
.tag { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--red); margin-bottom: 5px; }
.btn { display: inline-block; background: var(--red); color: #fff; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; padding: 11px 18px; border: 0; cursor: pointer; }
.btn:hover { background: var(--red-dark); color: #fff; }
.sec-h { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--ink); margin-bottom: 12px; }
.sec-h span { display: inline-block; background: var(--ink); color: #fff; padding: 7px 14px; }
.sec-h a:hover span { background: var(--red); }

/* naslovna: udarna | sredina | najnovije */
.front { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 26px; }
.hero { background: linear-gradient(160deg, var(--navy) 0%, #071326 70%); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red); }
.hero::after { content: "В"; position: absolute; right: -18px; bottom: -70px; font-size: 300px; font-weight: 900; line-height: 1; color: rgba(255, 255, 255, .04); pointer-events: none; }
.hero-link { display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; padding: 22px 20px 20px 26px; position: relative; z-index: 1; height: 100%; }
.hero-link:hover { color: #fff; }
.hero-link:hover .hero-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hero-tag { align-self: flex-start; background: var(--red); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 5px 10px; margin-bottom: 14px; }
.hero-title { font-size: 27px; font-weight: 900; margin-bottom: 10px; }
.hero-sub { font-size: 16px; color: #c9d3e2; margin-bottom: 14px; }
.hero-meta { font-size: 12px; color: #93a2b8; }

.mid { background: var(--card); padding: 4px 16px; }
.mid-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.mid-item:last-child { border-bottom: 0; }
.mid-item h2 { font-size: 18px; margin-bottom: 6px; }

.rail { background: var(--card); padding: 14px 16px; align-self: start; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 46px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.35; }
.timeline li:last-child { border-bottom: 0; }
.timeline time { color: var(--red); font-weight: 700; font-size: 12px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.timeline a { font-weight: 600; }

/* blokovi po rubrikama i kartice */
.sec { margin-bottom: 26px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.card { background: var(--card); padding: 16px; display: flex; flex-direction: column; border-top: 3px solid var(--navy); }
.card:hover { border-top-color: var(--red); }
.card-title { font-size: 18px; margin-bottom: 8px; }
.card-sub { font-size: 14px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; }

.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 22px 0 0; font-size: 13px; color: var(--muted); }
.pager a { font-weight: 700; color: #fff; background: var(--navy); padding: 8px 14px; }
.pager a:hover { background: var(--red); color: #fff; }

.how { margin-top: 10px; background: var(--navy); color: #dfe6f0; padding: 22px 20px; border-left: 6px solid var(--red); }
.how h2 { font-size: 20px; margin-bottom: 12px; color: #fff; }
.how ol { margin: 0 0 16px; padding-left: 20px; }
.how li { margin-bottom: 6px; color: #b9c6d8; }
.how strong { color: #fff; }

.empty { text-align: center; padding: 60px 0; }
.empty h1, .empty h2 { font-size: 28px; margin-bottom: 12px; }
.empty p { color: var(--ink-soft); }
.empty a:not(.btn) { color: var(--red); text-decoration: underline; }

/* dvokolonski raspored (tekst / rubrika + traka) */
.layout { display: grid; grid-template-columns: 1fr; gap: 18px; }
.layout-main { min-width: 0; }
.rub-head { background: var(--card); padding: 18px 20px; margin-bottom: 14px; border-left: 6px solid var(--red); }
.rub-head h1 { font-size: 30px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .02em; }
.rub-head p { color: var(--ink-soft); margin: 0; }

/* tekst */
.story { background: var(--card); padding: 20px 18px 26px; }
.story-head { margin-bottom: 22px; }
.story-head .tag { font-size: 12px; margin-bottom: 10px; }
.story-head h1 { font-size: 29px; font-weight: 900; margin-bottom: 12px; }
.story-sub { font-size: 18px; font-weight: 600; color: var(--ink-soft); line-height: 1.45; margin-bottom: 12px; }
.ai-note { font-size: 12.5px; color: var(--muted); background: var(--bg); border-left: 3px solid var(--navy); padding: 8px 12px; margin: 14px 0 0; }
.ai-note a { text-decoration: underline; }
.block { margin-bottom: 28px; }
.block h2, .prose h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--ink); margin: 0 0 14px; padding-bottom: 0; }
.block h2::before, .prose h2::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--red); margin-right: 8px; }
.block h2, .prose h2 { padding-bottom: 8px; }
.block p, .prose p { font-size: 17.5px; line-height: 1.7; color: #1c2026; }
.prose h2 { margin-top: 30px; }
.prose a { color: var(--red); text-decoration: underline; }
.ticks, .qs { list-style: none; margin: 0; padding: 0; }
.ticks li, .qs li { position: relative; padding: 9px 0 9px 30px; border-bottom: 1px solid var(--line); }
.ticks li::before { content: "\2713"; position: absolute; left: 4px; color: #1d7a46; font-weight: 800; }
.qs li::before { content: "?"; position: absolute; left: 7px; color: var(--red); font-weight: 900; }
.angles { display: grid; gap: 10px; }
.angle { background: var(--bg); border-left: 4px solid var(--navy); padding: 14px 16px; }
.angle p { font-size: 16px; line-height: 1.6; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { font-size: 11.5px; font-weight: 800; background: var(--navy); color: #fff; padding: 3px 9px; text-transform: uppercase; letter-spacing: .04em; }

.comment { background: var(--comment-bg); border-top: 4px solid var(--red); padding: 20px 18px; margin: 34px 0; }
.comment-label { display: inline-block; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 5px 10px; margin-bottom: 14px; }
.comment h2 { font-size: 24px; font-weight: 900; margin-bottom: 14px; }
.comment p { font-family: var(--serif); font-size: 18px; line-height: 1.7; }
.comment-foot { font-family: var(--sans) !important; font-size: 12.5px !important; color: var(--muted); margin: 16px 0 0; padding-top: 12px; border-top: 1px solid #edd9c2; }

.sources ol { margin: 0; padding-left: 22px; font-size: 14.5px; }
.sources li { margin-bottom: 8px; }
.sources a { color: var(--navy-2); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.sources a:hover { color: var(--red); }

.related { background: var(--card); padding: 18px; margin-top: 16px; }
.related h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 4px; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.related li:last-child { border-bottom: 0; }
.related a { font-weight: 700; }
.related time { display: block; font-size: 12px; color: var(--muted); }

/* podnozje */
.site-foot { background: var(--ink); color: #a9afb8; font-size: 14px; padding: 32px 0 18px; border-top: 4px solid var(--red); }
.foot-grid { display: grid; gap: 24px; }
.foot-brand { font-size: 24px; font-weight: 900; color: #fff; margin-bottom: 8px; letter-spacing: .01em; }
.foot-h { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot a:hover { color: #fff; }
.foot-note { margin-top: 24px; padding-top: 14px; border-top: 1px solid #2a2f37; font-size: 12.5px; color: #7f858e; }
.foot-note p { margin: 0 0 6px; }

@media (min-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr; }
  .hero-title { font-size: 34px; }
  .story { padding: 28px 30px 32px; }
  .story-head h1 { font-size: 36px; }
  .comment { padding: 26px 28px; }
}
@media (min-width: 1000px) {
  .brand-name { font-size: 36px; }
  .front { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) 300px; }
  .hero-link { min-height: 430px; padding: 30px 30px 28px 36px; }
  .hero-title { font-size: 38px; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .layout .rail { position: sticky; top: 14px; }
}
