:root {
  --red: #D7141A;
  --red-dark: #B30F14;
  --blue: #1F4FD8;
  --blue-dark: #163C8C;
  --navy: #0B1F3A;
  --ink: #0F172A;
  --text: #1F2937;
  --muted: #5B6472;
  --line: #E5E7EB;
  --bg: #F4F5F7;
  --card: #FFFFFF;
  --radius: 14px;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- LOGO ---------- */
.logo { --h: 40px; display: inline-flex; height: var(--h); text-decoration: none; flex-shrink: 0; }
.logo-word {
  display: flex; align-items: center; height: var(--h);
  padding: 0 calc(var(--h) * .222) calc(var(--h) * .083);
  background: var(--red); color: #fff; border-radius: calc(var(--h) * .111);
  font-family: var(--display); font-weight: 800; font-size: calc(var(--h) * .806);
  letter-spacing: -.035em; line-height: 1;
}
.logo-tile {
  width: var(--h); height: var(--h); background: var(--blue); border-radius: calc(var(--h) * .111);
  display: flex; flex-direction: column; align-items: center;
  padding-top: calc(var(--h) * .125); gap: calc(var(--h) * .028);
}
.logo-tile svg { width: calc(var(--h) * .556); height: calc(var(--h) * .514); fill: #fff; }
.logo-net { color: #fff; font-family: var(--display); font-weight: 800; font-size: calc(var(--h) * .264); line-height: 1; letter-spacing: -.02em; }

/* ---------- HEADER ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-top { max-width: 1240px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 24px; }
.search { flex: 1; max-width: 560px; display: flex; align-items: center; background: #F1F3F6; border: 1px solid transparent; border-radius: 999px; padding: 0 6px 0 18px; height: 46px; }
.search:focus-within { border-color: var(--blue); background: #fff; }
.search input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 15px; outline: none; color: var(--ink); min-width: 0; }
.search button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 0; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

.header-nav { max-width: 1240px; margin: 0 auto; padding: 0 20px; display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.header-nav::-webkit-scrollbar { display: none; }
.header-nav a { padding: 10px 0 12px; font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.header-nav a:hover { color: var(--ink); }
.header-nav a.active { color: var(--ink); border-bottom-color: var(--red); }

/* ---------- LAYOUT ---------- */
.layout { max-width: 1240px; margin: 0 auto; padding: 24px 20px 48px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.main-col { flex: 999 1 600px; min-width: 0; }
.sidebar { flex: 1 1 300px; max-width: 340px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 130px; }
@media (max-width: 960px) { .sidebar { max-width: none; position: static; } }

.card { background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.feed { padding: 20px 24px 8px; }
.feed-head { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.feed-head h1, .feed-head h2 { margin: 0; font-size: 20px; font-weight: 800; color: var(--ink); }
.feed-head .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--red); }

.notice { margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; background: #EEF3FF; color: var(--blue-dark); font-size: 14px; }

/* ---------- STORY ---------- */
.story { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.story:first-of-type { border-top: 0; }
.story .thumb { flex: 0 0 260px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #E8EBF0; }
.story .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.story:hover .thumb img { transform: scale(1.04); }
.story-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cat { font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none; }
.story h3 { margin: 0; font-family: var(--sans); font-size: 22px; line-height: 1.3; font-weight: 600; color: #1D2228; letter-spacing: 0; }
.story h3 a { text-decoration: none; }
.story h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.story .sum { margin: 0; color: #464E56; font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }

.story--lead { flex-direction: column; gap: 14px; }
.story--lead .thumb { flex: none; width: 100%; aspect-ratio: 16 / 8; }
.story--lead h3 { font-size: 32px; line-height: 1.15; }
.story--lead .sum { -webkit-line-clamp: 3; font-size: 16px; }

@media (max-width: 640px) {
  .header-top { gap: 12px; padding: 10px 14px; flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; max-width: none; height: 42px; }
  .feed { padding: 14px 16px 4px; }
  .story { gap: 14px; }
  .story .thumb { flex-basis: 120px; aspect-ratio: 1; }
  .story h3 { font-size: 17px; }
  .story .sum { display: none; }
  .story--lead .thumb { aspect-ratio: 16 / 10; }
  .story--lead h3 { font-size: 24px; }
  .story--lead .sum { display: -webkit-box; }
}

.ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #E3E7EE, #CDD4DF); }
.ph svg { width: 22%; fill: #fff; opacity: .9; }

.load-more { display: flex; justify-content: center; padding: 8px 0 20px; }

/* ---------- OGLASI ---------- */
.ad-row { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ad { position: relative; display: grid; place-items: center; background: #F6F7F9; border: 1px dashed #C9CFD8; border-radius: 10px; color: #8A93A0; font-size: 13px; font-weight: 600; text-align: center; overflow: hidden; }
.ad::before { content: "Oglas"; position: absolute; top: 6px; left: 10px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9AA3AF; }
.ad.live { background: none; border: 0; }
.ad.live::before { content: none; }
.ad--wide { flex: 1.6 1 300px; min-height: 200px; }
.ad--small { flex: 1 1 220px; min-height: 200px; }
.ad--box { width: 100%; min-height: 250px; }
.ad--tall { width: 100%; min-height: 600px; }
.ad--article { width: 100%; min-height: 200px; margin: 28px 0; }

/* ---------- SIDEBAR ---------- */
.side-box { padding: 20px; }
.side-box h2 { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: var(--ink); }
.side-box p { margin: 0 0 14px; font-size: 14px; color: #374151; }
.donate-box { background: var(--navy); color: #fff; }
.donate-box h2 { color: #fff; }
.donate-box p { color: #D5DBE3; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.mini-list li:first-child { border-top: 0; padding-top: 4px; }
.mini-list a { font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--ink); text-decoration: none; }
.mini-list a:hover { text-decoration: underline; }

/* ---------- ČLANEK ---------- */
.article { padding: 32px 40px 36px; }
@media (max-width: 640px) { .article { padding: 22px 18px; } }
.article h1 { margin: 8px 0 14px; font-size: clamp(30px, 4.2vw, 42px); line-height: 1.18; letter-spacing: -.01em; color: #1D2228; font-weight: 700; }
.article .lead { font-size: 20px; line-height: 1.5; color: #374151; margin: 0 0 16px; }
.article figure { margin: 24px 0; }
.article figure img { width: 100%; border-radius: 12px; }
.article figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.prose { font-size: 18px; line-height: 1.75; color: #1F2937; }
.prose h2 { font-size: 28px; line-height: 1.25; margin: 36px 0 12px; color: var(--ink); }
.prose h3 { font-size: 22px; margin: 28px 0 10px; color: var(--ink); }
.prose p { margin: 0 0 18px; }
.prose a { color: var(--blue); }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--red); font-size: 22px; line-height: 1.5; font-weight: 600; color: var(--ink); }
.prose img { border-radius: 10px; margin: 24px 0; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 18px; }
.share { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 18px 0; margin-top: 12px; border-top: 1px solid var(--line); }
.share span { font-weight: 700; font-size: 14px; color: var(--muted); margin-right: 4px; }
.share a, .share button { height: 40px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--ink); }
.article-cta { margin-top: 24px; padding: 22px 24px; border-radius: 12px; background: #FDECEC; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.article-cta p { margin: 0; font-weight: 600; color: var(--ink); }

/* ---------- DONACIJE ---------- */
.donate-hero { background: var(--red); color: #fff; }
.donate-hero .inner { max-width: 880px; margin: 0 auto; padding: 56px 20px 64px; text-align: center; }
.donate-hero h1 { margin: 0 0 14px; font-family: var(--display); font-size: clamp(36px, 6vw, 60px); line-height: 1.05; letter-spacing: -.02em; }
.donate-hero p { margin: 0 auto; max-width: 620px; font-size: 18px; color: #FFE3E3; }
.donate-wrap { max-width: 880px; margin: -32px auto 56px; padding: 0 20px; }
.donate-card { padding: 28px; }
.tabs { display: inline-flex; background: #F1F3F6; border-radius: 999px; padding: 4px; margin-bottom: 22px; }
.tabs button { border: 0; background: transparent; padding: 10px 20px; border-radius: 999px; font-weight: 700; color: var(--muted); cursor: pointer; }
.tabs button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.amount { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 96px; border-radius: 12px; border: 2px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-size: 24px; font-weight: 800; transition: border-color .15s, transform .15s; }
.amount:hover { border-color: var(--blue); transform: translateY(-2px); }
.amount small { font-size: 12px; font-weight: 600; color: var(--muted); }
.amount[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.donate-note { margin-top: 20px; font-size: 14px; color: var(--muted); }
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 20px; }
.why .card { padding: 20px; }
.why h3 { margin: 0 0 6px; font-size: 17px; color: var(--ink); }
.why p { margin: 0; font-size: 15px; color: #374151; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--navy); color: #C9D1DD; }
.site-footer .inner { max-width: 1240px; margin: 0 auto; padding: 36px 20px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: #E5E9F0; text-decoration: none; font-size: 14px; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }
.site-footer small { display: block; width: 100%; font-size: 13px; color: #9AA6B8; }

.empty { padding: 48px 0; text-align: center; color: var(--muted); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.prose figure { margin: 24px 0; }
.prose figure img { margin: 0; border: 1px solid var(--line); }
.prose figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ===== izpostavljeno ===== */
.top { max-width: 1240px; margin: 20px auto 0; padding: 0 20px; }
.top-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.top-card { position: relative; display: block; border-radius: 14px; overflow: hidden; color: #fff; text-decoration: none; background: #0B1F3A; min-height: 150px; }
.top-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.top-card:hover img { transform: scale(1.03); }
.top-card--big { min-height: 470px; }
.top-side { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 16px; }
.top-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,10,20,0) 30%, rgba(5,10,20,.88)); }
.top-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.top-cat { align-self: flex-start; background: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; }
.top-title { font-weight: 700; font-size: 17px; line-height: 1.25; }
.top-card--big .top-text { padding: 24px 28px; }
.top-card--big .top-title { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; }
.top-sum { font-size: 16px; color: #E5E9F0; max-width: 680px; }
@media (max-width: 860px) {
  .top-grid { grid-template-columns: 1fr; }
  .top-card--big { min-height: 360px; }
  .top-side { grid-template-rows: none; }
  .top-side .top-card { min-height: 190px; }
}
.top + .layout { padding-top: 20px; }
.ticker--news { background: #fff; border-bottom: 1px solid var(--line); }
.ticker--news .ticker-item { color: var(--ink); }
.ticker--news .ticker-tag { background: var(--blue); color: #fff; }

/* ===== na hitro ===== */
.prose p:first-child:has(> strong:only-child) { margin: 0; padding: 14px 18px 0; background: #F1F5FF; border-radius: 12px 12px 0 0; font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 26px; line-height: 1.2; color: var(--blue-dark); }
.prose p:first-child:has(> strong:only-child) strong { font-weight: 400; }
.prose p:first-child:has(> strong:only-child) + ul { background: #F1F5FF; margin: 0 0 26px; padding: 6px 18px 14px 40px; border-radius: 0 0 12px 12px; font-size: 17px; line-height: 1.6; }

/* ===== kripto donacije ===== */
.coin-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.coin-pick button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.coin-pick button:hover { border-color: #AFC0F0; }
.coin-pick button[aria-selected="true"] { border-color: var(--blue); background: #F1F5FF; }
.coin-pick small { display: block; color: var(--muted); font-size: 12px; }
.coin-ico { width: 40px; height: 40px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 800; flex: none; }
.coin-panel { display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-start; }
.coin-qr { flex: none; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.coin-qr img { width: 220px; height: 220px; display: block; }
.coin-info { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.coin-net { font-size: 14px; color: var(--muted); }
.coin-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.coin-addr code { display: block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; word-break: break-all; background: #F4F5F7; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--ink); user-select: all; }
.coin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.coin-warn { margin: 0; font-size: 13px; color: #7A3A06; background: #FEF3C7; padding: 10px 12px; border-radius: 10px; }
.coin-steps { margin: 0; padding-left: 20px; font-size: 14px; color: #374151; }
.pp-soon { text-align: center; padding: 28px 12px; }
.pp-soon h3 { margin: 0 0 6px; color: var(--ink); }
.pp-soon p { margin: 0 0 16px; color: var(--muted); }
@media (max-width: 600px) { .coin-pick { grid-template-columns: 1fr; } .coin-qr { margin: 0 auto; } }

/* ===== izpostavljeno: manj kartic ===== */
.top-grid--one { grid-template-columns: 1fr; }
.top-side--1 { grid-template-rows: minmax(0, 1fr); }
.top-side--2 { grid-template-rows: repeat(2, minmax(0, 1fr)); }

/* ===== deljenje ===== */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 20px 0 6px; margin-top: 14px; border-top: 1px solid var(--line); }
.share-bar--top { border: 0; padding: 4px 0 0; margin: 14px 0 0; }
.share-title { font-weight: 700; color: var(--ink); font-size: 15px; }
.share-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.sh { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; border: 0; cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.sh:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(15, 23, 42, .18); }
.sh svg { width: 20px; height: 20px; fill: currentColor; }
.sh-copy svg, .sh-native svg, .sh-email svg { fill: none; }
.share-msg { font-size: 14px; color: var(--blue-dark); font-weight: 600; }
.share-admin { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .sh { transition: none; } .sh:hover { transform: none; } }

/* ===== urejevalnik: mesto objave ===== */
.chip.place-banner { background: #FDE2E3; color: #9F1239; }
.chip.place-priority { background: #E0E9FF; color: #1E3A8A; }
.chip.place-normal { background: #F1F3F6; color: #374151; }
.donate-h { margin: 0 0 16px; font-size: 20px; color: var(--ink); }

/* ===== noga vedno na dnu ===== */
body:has(> .site-footer) { min-height: 100vh; display: flex; flex-direction: column; }
body > * { flex-shrink: 0; }
body > .layout, body > .top, body > .donate-wrap { width: 100%; }
body > .site-footer { margin-top: auto; }

/* ===== trak ===== */
.ticker { display: flex; align-items: center; height: 40px; background: var(--navy); color: #fff; overflow: hidden; font-size: 14px; }
.ticker-tag { flex: none; align-self: stretch; display: flex; align-items: center; padding: 0 14px; background: var(--red); font-weight: 800; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.ticker-view { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; }
.ticker-item { color: #fff; text-decoration: none; font-weight: 600; padding: 0 18px; white-space: nowrap; }
.ticker-item:hover { text-decoration: underline; }
.ticker-sep { color: #F0894A; font-size: 10px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .ticker-view { overflow-x: auto; } }

.ticker--news { background: #fff; border-bottom: 1px solid var(--line); }
.ticker--news .ticker-item { color: var(--ink); }
.ticker--news .ticker-tag { background: var(--blue); color: #fff; }
