/*
 * Theme Name:  Spotlight — Алфа Вести
 * Theme URI:   https://vesti.alfa.mk/
 * Description: Spotlight child theme for vesti.alfa.mk (Алфа news portal), styled after dnevnik.hr / index.hr.
 * Author:      Alfa Team
 * Template:    spotlight
 * Version:     0.11.0
 * Text Domain: spotlight-vesti
 */

/* ============================================================
   1. Tokens
   ============================================================ */
:root {
  --vesti-primary: #ee2f35;
  --vesti-primary-dark: #c8081e;
  --vesti-accent: #c8081e;
  --vesti-ink: #111418;
  --vesti-ink-muted: #5b6168;
  --vesti-divider: #e6e8eb;
  --vesti-surface: #ffffff;
  --vesti-surface-alt: #f4f5f7;
  --vesti-surface-alt-2: #eceef1;

  /* Category accents — Makedonija + Најново (default) stay brand red,
     the rest get vibrant, well-separated hues that read confidently
     against the white surface. */
  --vesti-cat-default:   #ee2f35; /* brand red — Најново / fallback */
  --vesti-cat-makedonija:#ee2f35; /* brand red                      */
  --vesti-cat-ekonomija: #f97316; /* vivid orange                   */
  --vesti-cat-svet:      #2563eb; /* royal blue                     */
  --vesti-cat-vo-fokus:  #db2777; /* magenta pink                   */
  --vesti-cat-kolumni:   #16a34a; /* vivid green                    */

  /* The active accent — overridden inline by `.has-accent-{slug}`. */
  --vesti-cat-accent: var(--vesti-cat-default);
  --vesti-shadow-sm: 0 1px 2px rgba(17,20,24,0.06);
  --vesti-shadow-md: 0 8px 24px rgba(17,20,24,0.10);
  --vesti-font-body: 'Stobi Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --vesti-font-head: 'Stobi Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  /* Spacing rhythm — consistent gaps across cards, sections, columns. */
  --vesti-gap-xs: 8px;
  --vesti-gap-sm: 12px;
  --vesti-gap-md: 16px;
  --vesti-gap-lg: 24px;
  --vesti-gap-xl: 32px;
  --vesti-page-pad-y: 24px;
}
@media (min-width: 992px) {
  :root { --vesti-page-pad-y: 32px; }
}

/* ============================================================
   2. Base
   ============================================================ */
body {
  font-family: var(--vesti-font-body);
  color: var(--vesti-ink);
  background: var(--vesti-surface-alt);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.title-block,
.widget-title,
.site-title {
  font-family: var(--vesti-font-head);
  letter-spacing: -0.005em;
  color: var(--vesti-ink);
}

a { color: var(--vesti-ink); text-decoration: none; }
a:hover { color: var(--vesti-primary); }

/* ============================================================
   2b. Container overrides
   The parent's .cs-container caps at 1200px and .content-area shrinks
   by 340px when the parent's "sidebar-right" class is applied — both
   make the news-grid feel cramped on desktop. Widen the container and
   neutralize the reserved sidebar gutter (Vesti uses its own aside).
   ============================================================ */
.cs-container { max-width: 1260px; padding-inline: 20px; margin-inline: auto; }
@media (min-width: 1200px) {
  .cs-container,
  .navbar-container { max-width: 1260px; }
}
.site-content > .cs-container { padding-inline: 0; max-width: none; }
.site-content > .cs-container > .main-content { margin: 0; }

/* Make #primary fill the available width and own the horizontal padding —
   the parent assumes a 340px sidebar reservation that doesn't exist here. */
@media (min-width: 1020px) {
  .sidebar-right #primary.content-area,
  .sidebar-left #primary.content-area,
  .sidebar-disabled #primary.content-area,
  #primary.content-area { flex: 0 0 100% !important; }
}
/* Cap and align with .navbar-container so the content edges line up
   with the header/topbar/ticker on wide viewports. Matches the parent
   theme's navbar — max-width 1260px, 20px side padding. */
#primary.content-area {
  width: 100%;
  max-width: 1260px !important;
  margin-inline: auto;
  padding-inline: 20px !important;
}
@media (max-width: 599px) {
  #primary.content-area { padding-inline: 14px !important; }
}

/* ============================================================
   3. Ticker
   ============================================================ */
.vesti-ticker {
  background: var(--vesti-surface);
  color: var(--vesti-ink);
  border-bottom: 1px solid var(--vesti-divider);
}
.vesti-ticker-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 42px;
}
.vesti-ticker-label {
  flex: 0 0 auto;
  font-family: var(--vesti-font-head);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, var(--vesti-primary) 0%, #c8081e 60%, #ff6b8e 100%);
  color: #fff;
  padding: 5px 12px;
  text-transform: uppercase;
  box-shadow: var(--vesti-shadow-sm);
}
.vesti-ticker-track {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.vesti-ticker-list {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
  animation: vesti-ticker-scroll 60s linear infinite;
}
.vesti-ticker-list:hover { animation-play-state: paused; }
.vesti-ticker-list li { flex: 0 0 auto; }
.vesti-ticker-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  color: var(--vesti-ink);
  font-weight: 500;
}
.vesti-ticker-list a:hover { color: var(--vesti-primary); }
.vesti-ticker-time {
  font-family: var(--vesti-font-head);
  font-weight: 700;
  color: var(--vesti-primary);
  font-variant-numeric: tabular-nums;
}
@keyframes vesti-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   3b. Topbar (utility row above the main navbar)
   ============================================================ */
.vesti-topbar {
  background: var(--vesti-surface-alt);
  color: var(--vesti-ink-muted);
  font-size: 12.5px;
  border-bottom: 1px solid var(--vesti-divider);
}
.vesti-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  gap: 14px;
}
.vesti-topbar-date {
  text-transform: capitalize;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.vesti-topbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.vesti-topbar-nav a {
  color: var(--vesti-ink-muted);
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  padding: 4px 0;
}
.vesti-topbar-nav a:hover { color: var(--vesti-primary); }
.vesti-topbar-nav a.is-current { color: var(--vesti-primary); }
.vesti-topbar-sep { color: var(--vesti-divider); margin: 0 6px; }
.vesti-topbar-live {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--vesti-primary);
  padding: 3px 8px !important;
  color: #fff !important;
}
.vesti-live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
  animation: vesti-live-pulse 1.6s ease-out infinite;
}
@keyframes vesti-live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(238,47,53,0.7); }
  70%  { box-shadow: 0 0 0 6px rgba(238,47,53,0); }
  100% { box-shadow: 0 0 0 0 rgba(238,47,53,0); }
}
@media (max-width: 599px) {
  .vesti-topbar-date { display: none; }
  .vesti-topbar-inner { justify-content: center; }
}

/* ============================================================
   4. Header / Navbar
   ============================================================ */
.site-header { background: var(--vesti-surface); border-bottom: 3px solid var(--vesti-primary); }
.navbar-primary {
  background: var(--vesti-surface);
  box-shadow: 0 1px 0 var(--vesti-divider);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-wrap.cs-bg-navbar-dark,
.navbar-wrap { background: var(--vesti-surface) !important; }
.navbar-container { padding-block: 10px; }

/* Brand lockup: the master alfa-mk logo is a white "A" intended for a dark
   plate. Wrap it in a red brand badge so it reads on the white navbar and
   matches the network's primary color. */
.navbar-brand.vesti-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  line-height: 1;
  color: var(--vesti-ink) !important;
}
/* Brand badge — circular red disc with the white "А" PNG centered. */
.vesti-brand-img {
  width: 40px;
  height: 40px;
  display: inline-block;
  object-fit: contain;
  object-position: center;
  background: var(--vesti-primary);
  padding: 7px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(238,47,53,0.25);
  box-sizing: border-box;
  vertical-align: middle;
}
.vesti-brand-sep {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: var(--vesti-divider);
}
.vesti-brand-sub {
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vesti-ink);
}
@media (min-width: 768px) {
  .vesti-brand-img { width: 44px; height: 44px; padding: 8px; }
  .vesti-brand-sub { font-size: 22px; }
  .vesti-brand-sep { height: 26px; }
}

/* Footer brand: stack vertically so the badge has room to breathe and
   the wordmark sits on its own line. No separator on this variant. */
.vesti-footer-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.vesti-footer-brand .vesti-brand-sep { display: none; }
.vesti-footer-brand .vesti-brand-img { width: 56px; height: 56px; padding: 10px; }
.vesti-footer-brand .vesti-brand-sub { font-size: 20px; }

/* Primary nav */
.menu-primary > .menu-item > a,
.navbar .menu > li > a,
.navbar-nav > .menu-item > a {
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vesti-ink) !important;
  padding: 12px 14px;
  position: relative;
  transition: color 140ms ease;
}
/* Hover and current state — red text + 3px red underline that animates in */
.menu-primary > .menu-item > a::after,
.navbar .menu > li > a::after,
.navbar-nav > .menu-item > a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 0;
  height: 3px;
  background: var(--vesti-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}
.menu-primary > .menu-item:hover > a,
.menu-primary > .menu-item:focus-within > a,
.menu-primary > .menu-item.current-menu-item > a,
.navbar .menu > li:hover > a,
.navbar .menu > li:focus-within > a,
.navbar .menu > li.current-menu-item > a,
.navbar-nav > .menu-item:hover > a,
.navbar-nav > .menu-item.current-menu-item > a {
  color: var(--vesti-primary) !important;
}
.menu-primary > .menu-item:hover > a::after,
.menu-primary > .menu-item:focus-within > a::after,
.menu-primary > .menu-item.current-menu-item > a::after,
.navbar .menu > li:hover > a::after,
.navbar .menu > li.current-menu-item > a::after,
.navbar-nav > .menu-item:hover > a::after,
.navbar-nav > .menu-item.current-menu-item > a::after {
  transform: scaleX(1);
}

/* Header controls */
.header-search-button,
.header-offcanvas-button,
.header-dropdown-follow .dropdown-toggle { color: var(--vesti-ink) !important; }
.header-search-button:hover,
.header-offcanvas-button:hover { color: var(--vesti-primary) !important; }
.navbar .header-dropdown-follow { display: none; }

/* Icon glyphs — ensure they render at a usable size regardless of where
   the parent placed them. Some buttons (toggle-offcanvas, toggle-search)
   only style their wrapper, leaving the <i> too small to notice. */
.navbar .cs-icon,
.toggle-offcanvas .cs-icon,
.toggle-search .cs-icon,
.offcanvas-header .cs-icon,
.button-round .cs-icon { font-size: 22px; line-height: 1; color: inherit; }
.navbar .toggle-offcanvas,
.navbar .toggle-search {
  width: 40px; height: 40px;
  color: var(--vesti-ink);
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 8px;
}
.navbar .toggle-offcanvas { margin-right: 12px; }
.navbar .toggle-search { margin-left: auto; }
.navbar .toggle-offcanvas:hover,
.navbar .toggle-search:hover {
  background: var(--vesti-surface-alt);
  color: var(--vesti-primary);
}
.offcanvas-header .toggle-offcanvas { color: var(--vesti-ink); }

/* ============================================================
   5. Home layout
   ============================================================ */
/* Site-content margin from the parent is too tall for a news portal —
   the ticker should sit just above the lead. */
.site-content { margin-top: 0 !important; }

.vesti-home { padding-block: var(--vesti-page-pad-y); }
.vesti-home > .site-main { display: block; }

.vesti-home-grid {
  display: grid;
  gap: var(--vesti-gap-xl);
  grid-template-columns: 1fr;
  margin-top: var(--vesti-gap-lg);
}
@media (min-width: 992px) {
  .vesti-home-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
}
.vesti-home-main { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.vesti-home-side { display: flex; flex-direction: column; gap: var(--vesti-gap-lg); }
/* The last sidebar promo sticks so a tall main column doesn't leave a
   blank rail. Sticky only when the viewport can clearly fit it. */
@media (min-width: 992px) {
  .vesti-home-side > .vesti-promo:last-child,
  .vesti-article-side > .vesti-promo:last-child {
    position: sticky;
    top: 88px;
    align-self: start;
  }
}
/* Don't sticky the sidebar — long sidebar widgets shouldn't clip on shorter viewports. */

/* ============================================================
   6. Hero row
   ============================================================ */
.vesti-hero {
  display: grid;
  gap: var(--vesti-gap-md);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .vesti-hero { grid-template-columns: 2fr 1fr; gap: var(--vesti-gap-md); }
}
.vesti-hero-secondary {
  display: grid;
  gap: var(--vesti-gap-md);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .vesti-hero-secondary { grid-template-rows: 1fr 1fr; }
}

/* ============================================================
   7. Cards
   ============================================================ */
.vesti-card {
  background: var(--vesti-surface);
  overflow: hidden;
  box-shadow: var(--vesti-shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.vesti-card:hover { transform: translateY(-2px); box-shadow: var(--vesti-shadow-md); }
.vesti-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}
.vesti-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--vesti-surface-alt-2);
  overflow: hidden;
}
.vesti-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 400ms ease;
}
.vesti-card:hover .vesti-card-media img { transform: scale(1.04); }
.vesti-card-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--vesti-ink-muted);
}
.vesti-card-cat {
  position: absolute;
  top: 12px; left: 12px;
  display: inline-block;
  padding: 5px 9px;
  font-family: var(--vesti-font-head);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  background: var(--vesti-cat-accent);
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.vesti-card:hover .vesti-card-title { color: var(--vesti-cat-accent); }
.vesti-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.vesti-card-title {
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  margin: 0;
  color: var(--vesti-ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vesti-card-hero .vesti-card-title,
.vesti-card-medium .vesti-card-title { -webkit-line-clamp: 4; }
.vesti-card-excerpt {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--vesti-ink-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vesti-card-meta {
  margin: auto 0 0;
  font-size: 12px;
  color: var(--vesti-ink-muted);
  padding-top: 4px;
}

/* Hero card */
.vesti-card-hero .vesti-card-media { aspect-ratio: 16 / 9; }
.vesti-card-hero .vesti-card-title { font-size: 30px; line-height: 1.1; }
@media (min-width: 992px) {
  .vesti-card-hero .vesti-card-title { font-size: 36px; }
  .vesti-card-hero .vesti-card-media { aspect-ratio: 16 / 10; }
}
.vesti-card-hero .vesti-card-excerpt { font-size: 15px; -webkit-line-clamp: 3; }

/* Medium card */
.vesti-card-medium .vesti-card-title { font-size: 18px; }

/* Secondary hero cards: image on top, then category + headline + meta —
   same vertical stack as the rest, just denser. */
.vesti-hero-secondary .vesti-card-link { display: flex; flex-direction: column; }
.vesti-hero-secondary .vesti-card-media { aspect-ratio: 16 / 9; }
.vesti-hero-secondary .vesti-card-body { padding: 10px 12px 12px; gap: 4px; }
.vesti-hero-secondary .vesti-card-title { font-size: 16px; line-height: 1.22; }
.vesti-hero-secondary .vesti-card-excerpt { display: none; }
.vesti-hero-secondary .vesti-card-cat {
  top: 8px; left: 8px;
  font-size: 10px; padding: 3px 6px;
}

/* Small card */
.vesti-card-small .vesti-card-title { font-size: 16px; }

/* ============================================================
   8. Sections
   ============================================================ */
.vesti-section { display: flex; flex-direction: column; gap: var(--vesti-gap-md); }
.vesti-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--vesti-divider);
  padding-bottom: 8px;
  margin-bottom: 4px;
  position: relative;
}
/* index.hr-style: red section name + underline accent under just the title */
.vesti-section-title {
  font-family: var(--vesti-font-head);
  font-weight: 900;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-bottom: 8px;
  margin-bottom: -9px;
  border-bottom: 3px solid var(--vesti-cat-accent);
  color: var(--vesti-cat-accent);
}
.vesti-section-title span { color: var(--vesti-cat-accent); }
.vesti-section-more:hover { color: var(--vesti-cat-accent); }
.vesti-section-more {
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--vesti-ink-muted);
}
.vesti-section-more:hover { color: var(--vesti-primary); }

.vesti-grid { display: grid; gap: var(--vesti-gap-md); grid-template-columns: 1fr; }
@media (min-width: 560px) { .vesti-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .vesti-grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* index.hr-style category section: hero on the left, vertical headline
   list on the right. All headline rows share an image + title baseline. */
.vesti-cat-split {
  display: grid;
  gap: var(--vesti-gap-md);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .vesti-cat-split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--vesti-gap-lg); }
}
.vesti-cat-hero { min-width: 0; }
.vesti-cat-hero .vesti-card-title { font-size: 22px; line-height: 1.18; }
.vesti-cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.vesti-cat-list > li {
  border-bottom: 1px solid var(--vesti-divider);
}
.vesti-cat-list > li:last-child { border-bottom: none; }

/* Horizontal "list" card row */
.vesti-card-list {
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.vesti-card-list:hover { transform: none; box-shadow: none; }
.vesti-card-list .vesti-card-link {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
}
.vesti-card-list .vesti-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.vesti-card-list .vesti-card-body {
  padding: 0;
  gap: 4px;
  justify-content: flex-start;
}
.vesti-card-list .vesti-card-eyebrow {
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vesti-cat-accent);
}
.vesti-card-list .vesti-card-title {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vesti-card-list .vesti-card-meta { font-size: 11.5px; padding-top: 2px; }

/* ============================================================
   9. Sidebar widgets
   ============================================================ */
.vesti-side-widget {
  background: var(--vesti-surface);
  padding: 18px 18px 14px;
  border-top: 3px solid var(--vesti-primary);
  box-shadow: var(--vesti-shadow-md);
}
.vesti-side-title {
  font-family: var(--vesti-font-head);
  font-weight: 900;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  color: var(--vesti-ink);
}
.vesti-rubric-list { list-style: none; margin: 0; padding: 0; }
.vesti-rubric-list li { padding: 0; border-bottom: 1px solid var(--vesti-divider); }
.vesti-rubric-list li:last-child { border-bottom: none; }
.vesti-rubric-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0 10px 14px;
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vesti-ink);
  position: relative;
}
/* Tiny accent square at the left of each rubric — gives the list a
   color-coded section vibe like index.hr's rubrika row. */
.vesti-rubric-list a::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 16px;
  background: var(--vesti-cat-accent);
}
.vesti-rubric-list a:hover { color: var(--vesti-cat-accent); }
.vesti-rubric-count {
  background: var(--vesti-surface-alt);
  color: var(--vesti-ink-muted);
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
}

/* Timeline tabs (Најново / Најчитано) — index.hr-style */
.vesti-side-widget.vesti-timeline { padding-top: 0; }
.vesti-timeline-tabs {
  list-style: none;
  margin: 0 -18px 14px;
  padding: 0 18px;
  display: flex;
  gap: 18px;
  border-bottom: 2px solid var(--vesti-divider);
  position: relative;
}
.vesti-timeline-tabs li { padding: 12px 0; position: relative; }
.vesti-timeline-tabs button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vesti-ink-muted);
  position: relative;
  transition: color 140ms ease;
}
.vesti-timeline-tabs button:hover { color: var(--vesti-primary); }
.vesti-timeline-tabs li.is-active button { color: var(--vesti-primary); }
.vesti-timeline-tabs li.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--vesti-primary);
}
.vesti-timeline-panel[hidden] { display: none; }
.vesti-timeline-list {
  list-style: none; margin: 0; padding: 0;
}
.vesti-timeline-list > li {
  border-bottom: 1px solid var(--vesti-divider);
  padding: 10px 0;
}
.vesti-timeline-list > li:last-child { border-bottom: none; }
.vesti-timeline-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}
.vesti-tl-side {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--vesti-primary);
  font-family: var(--vesti-font-head);
  line-height: 1;
  padding-top: 1px;
}
.vesti-tl-num { font-weight: 700; font-size: 18px; }
.vesti-tl-unit { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.vesti-tl-title {
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--vesti-ink);
  display: block;
}
.vesti-tl-title:hover { color: var(--vesti-primary); }
.vesti-tl-titlewrap { display: flex; flex-direction: column; gap: 6px; }
.vesti-tl-bar {
  display: block;
  height: 3px;
  background: var(--vesti-primary);
  opacity: 0.35;
}
.vesti-timeline-list-mostread .vesti-tl-num { font-size: 22px; }
.vesti-tl-more {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vesti-ink-muted);
  padding: 8px 0;
  border-top: 1px solid var(--vesti-divider);
}
.vesti-tl-more:hover { color: var(--vesti-primary); }

/* Editor's picks (thumb + headline) */
.vesti-side-picklist { list-style: none; margin: 0; padding: 0; }
.vesti-side-picklist li {
  border-bottom: 1px solid var(--vesti-divider);
}
.vesti-side-picklist li:last-child { border-bottom: none; }
.vesti-side-pick {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  color: var(--vesti-ink);
}
.vesti-side-pick:hover { color: var(--vesti-primary); }
.vesti-side-pick-media {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--vesti-surface-alt-2);
  overflow: hidden;
}
.vesti-side-pick-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.vesti-side-pick-title {
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.3;
}

/* ============================================================
   10. Ad slots
   ============================================================ */
.vesti-promo {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: var(--vesti-surface-alt);
  border: 1px dashed var(--vesti-divider);
  color: var(--vesti-ink-muted);
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-height: 90px;
  position: relative;
}
.vesti-promo::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg,
    transparent 0 14px, rgba(17,20,24,0.025) 14px 28px);
  pointer-events: none;
}
.vesti-promo-label {
  background: var(--vesti-primary);
  color: #fff;
  padding: 3px 8px;
  font-size: 10px;
  letter-spacing: 0.1em;
}
.vesti-promo-size { opacity: 0.65; font-size: 11px; }

.vesti-promo.is-leaderboard { min-height: 110px; margin-block: 4px; }
@media (min-width: 992px) {
  .vesti-promo.is-leaderboard { min-height: 100px; }
}
.vesti-promo.is-infeed { min-height: 110px; }
@media (min-width: 992px) {
  .vesti-promo.is-infeed { min-height: 100px; }
}
.vesti-promo.is-mpu { min-height: 260px; aspect-ratio: 300/250; max-width: 300px; margin-inline: auto; }
.vesti-promo.is-mpu.is-tall { aspect-ratio: 300/600; min-height: 600px; }

/* Sticky mobile ad */
.vesti-sticky-ad-wrap {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  display: flex; justify-content: center;
  padding: 6px 6px env(safe-area-inset-bottom, 6px);
  background: rgba(20,23,28,0.94);
  backdrop-filter: blur(6px);
  pointer-events: auto;
}
.vesti-sticky-ad-wrap .vesti-promo {
  min-height: 50px;
  width: 100%;
  max-width: 320px;
  background: rgba(255,255,255,0.95);
}
@media (min-width: 992px) {
  .vesti-sticky-ad-wrap { display: none; }
}

/* ============================================================
   11. Archive (parent's archive list)
   ============================================================ */
.archive-wrap { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 992px) {
  .archive-wrap { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
}
.archive-main { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .archive-main { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .archive-main { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) {
  .archive-main > article:first-child { grid-column: span 3; }
  .archive-main > article:first-child .entry-thumbnail .cs-overlay-ratio { padding-bottom: 40% !important; }
  .archive-main > article:first-child .entry-title { font-size: 34px; line-height: 1.12; }
}

article.post {
  background: var(--vesti-surface);
  overflow: hidden;
  box-shadow: var(--vesti-shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
article.post:hover { transform: translateY(-2px); box-shadow: var(--vesti-shadow-md); }
.entry-thumbnail .cs-overlay-ratio { padding-bottom: 56.25% !important; }
.entry-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-overlay-content { padding: 12px 14px !important; align-items: flex-start; }
.cs-overlay-content .post-cat,
.cs-overlay-content .category,
.cs-overlay-content a[rel~="category"] {
  display: inline-block;
  padding: 4px 8px;
  font-family: var(--vesti-font-head);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: #fff !important;
  background: var(--vesti-primary);
}
.entry-inner { padding: 14px 16px 18px; }
.entry-title, .entry-title a {
  font-family: var(--vesti-font-head);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.22;
  color: var(--vesti-ink);
  margin: 0 0 6px;
}
.entry-excerpt p, .entry-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--vesti-ink-muted);
  margin: 0;
}
.entry-meta, .entry-meta a {
  font-family: var(--vesti-font-body);
  font-size: 12px;
  color: var(--vesti-ink-muted);
  margin-top: 8px;
}

/* ============================================================
   12. Single post — index.hr-style article layout
   ============================================================ */
.vesti-single { padding-block: var(--vesti-page-pad-y); }
.vesti-article-grid {
  display: grid;
  gap: var(--vesti-gap-xl);
  grid-template-columns: 1fr;
}
/* The single-post <article> element gets post_class(), which inherits
   the `article.post` archive-card treatment (white bg + shadow + hover
   lift). On single posts that wraps both grid columns in one envelope
   and lifts on hover — undo it so only .vesti-article-card carries the
   card chrome. */
article.vesti-article {
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
article.vesti-article:hover { transform: none; box-shadow: none; }
@media (min-width: 992px) {
  /* Reserve 320px for the sidebar. Wider column gap so the gray
     page surface clearly shows between the article white card and
     the sidebar's white widget cards — otherwise the two columns
     read as one continuous white slab. */
  .vesti-article-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    column-gap: 36px;
  }
  .vesti-article-side {
    padding: 0;
    margin: 0;
    border-left: 0;
  }
}
/* Main column = flex stack of standalone cards (article body, TV promo,
   related posts) sitting on the gray page surface — mirrors how
   .vesti-home-main composes its sections so the sidebar widgets read
   as discrete cards alongside, not as widgets nested in one big white
   article envelope. */
.vesti-article-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}
.vesti-article-card {
  background: var(--vesti-surface);
  padding: 28px clamp(16px, 4vw, 40px) 32px;
  box-shadow: var(--vesti-shadow-md);
}
.vesti-article-side { display: flex; flex-direction: column; gap: var(--vesti-gap-lg); }

/* Breadcrumb */
.vesti-breadcrumb {
  font-family: var(--vesti-font-body);
  font-size: 12.5px;
  color: var(--vesti-ink-muted);
  margin-bottom: 12px;
  display: flex; flex-wrap: wrap; gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.vesti-breadcrumb a { color: var(--vesti-ink-muted); }
.vesti-breadcrumb a:hover { color: var(--vesti-cat-accent); }
.vesti-breadcrumb a:last-of-type { color: var(--vesti-cat-accent); }
.vesti-breadcrumb-sep { opacity: 0.4; }

/* Headline area */
.vesti-article-head { margin-bottom: 20px; }
.vesti-article-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--vesti-font-head);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vesti-primary);
  margin-bottom: 10px;
}
.vesti-article-bullet {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--vesti-primary);
}
.vesti-article-title {
  font-family: var(--vesti-font-head);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--vesti-ink);
  margin: 0 0 14px;
}
.vesti-article-lede {
  font-family: var(--vesti-font-body);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.5;
  color: var(--vesti-ink);
  font-weight: 500;
  margin: 0 0 18px;
  max-width: 72ch;
}

/* Byline + share row sits between lede and image */
.vesti-article-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--vesti-ink-muted);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--vesti-divider);
}
.vesti-article-meta-author { font-weight: 700; color: var(--vesti-ink); }
.vesti-article-meta-rel { color: var(--vesti-cat-accent); font-weight: 600; }
.vesti-article-meta-sep { opacity: 0.5; }
.vesti-article-meta-abs { margin-left: auto; font-size: 12.5px; }

/* Share row */
.vesti-share {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px;
  margin: 0 0 4px;
}
.vesti-share-foot { margin: 22px 0 4px; padding-top: 18px; border-top: 1px solid var(--vesti-divider); }
.vesti-share-label {
  font-family: var(--vesti-font-head);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vesti-ink-muted);
  margin-right: 4px;
}
.vesti-share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: var(--vesti-surface-alt);
  color: var(--vesti-ink-muted);
  transition: background 160ms ease, color 160ms ease;
}
.vesti-share-btn:hover { background: var(--vesti-primary); color: #fff; }
.vesti-share-btn svg { width: 16px; height: 16px; }

/* Featured image */
.vesti-article-figure {
  margin: 8px 0 22px;
  background: var(--vesti-surface-alt-2);
  overflow: hidden;
}
.vesti-article-figure img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.vesti-article-figure figcaption {
  font-size: 12.5px;
  color: var(--vesti-ink-muted);
  padding: 8px 12px 12px;
  background: var(--vesti-surface);
  border-top: 1px solid var(--vesti-divider);
}

/* Article body */
.vesti-article-body {
  font-family: var(--vesti-font-body);
  font-size: 17px;
  line-height: 1.65;
  color: #1b1f24;
  max-width: 72ch;
}
.vesti-article-body > * { margin-block: 14px; }
.vesti-article-body > p:first-child::first-line { font-weight: 600; }
.vesti-article-body h2 {
  font-family: var(--vesti-font-head);
  font-weight: 900;
  font-size: 24px;
  line-height: 1.2;
  margin-top: 32px;
  color: var(--vesti-ink);
}
.vesti-article-body h3 {
  font-family: var(--vesti-font-head);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.25;
  margin-top: 24px;
  color: var(--vesti-ink);
}
.vesti-article-body a { color: var(--vesti-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.vesti-article-body a:hover { color: var(--vesti-primary-dark); }
.vesti-article-body blockquote {
  border-left: 4px solid var(--vesti-primary);
  margin: 28px 0;
  padding: 6px 0 6px 22px;
  font-style: italic;
  color: var(--vesti-ink);
  font-size: 18px;
  line-height: 1.5;
}
.vesti-article-body img,
.vesti-article-body figure { max-width: 100%; height: auto; }
.vesti-article-body ul,
.vesti-article-body ol { padding-left: 22px; }
.vesti-article-body li { margin-block: 4px; }
.vesti-article-body .vesti-promo { margin: 26px 0; }

/* Article footer (tags + share) */
.vesti-article-foot { margin-top: 24px; }
.vesti-article-tags {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin-top: 4px;
}
.vesti-article-tags-label {
  font-family: var(--vesti-font-head);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vesti-ink-muted);
  margin-right: 4px;
}
.vesti-tag {
  display: inline-block;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 600;
  background: var(--vesti-surface-alt);
  color: var(--vesti-ink);
}
.vesti-tag:hover { background: var(--vesti-primary); color: #fff; }

/* Related posts block */
.vesti-related { margin-top: 36px; }
/* Inside the article main flex stack, the column's `gap` already
   separates the article card, TV promo, and related sections — drop
   the legacy top/bottom margins so spacing stays even. */
.vesti-article-main > .vesti-tv-promo,
.vesti-article-main > .vesti-related { margin: 0; }
.vesti-related .vesti-section-head { margin-bottom: 22px; }
.vesti-related .vesti-section-title { font-size: 17px; }
.vesti-grid-4 { display: grid; gap: var(--vesti-gap-md); grid-template-columns: 1fr; }
@media (min-width: 560px) { .vesti-grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .vesti-grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   13. Pagination
   ============================================================ */
.posts-pagination, .pagination {
  margin-block: 28px;
  display: flex; justify-content: center;
}
.posts-pagination .nav-links,
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
}
/* Parent theme injects icon-font arrows via :before on the first and
   :after on the last .nav-links child — we already supply prev/next
   text in PHP, so the icons double up. Kill them. */
.posts-pagination .nav-links a:first-child:before,
.posts-pagination .nav-links a:last-child:after,
.pagination .nav-links a:first-child:before,
.pagination .nav-links a:last-child:after {
  content: none;
  margin: 0;
}
.pagination .page-numbers,
.nav-links .page-numbers {
  font-family: var(--vesti-font-head);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  background: var(--vesti-surface);
  color: var(--vesti-ink);
  box-shadow: var(--vesti-shadow-sm);
  transition: background 140ms ease, color 140ms ease;
}
.pagination .page-numbers:hover,
.nav-links .page-numbers:hover {
  background: var(--vesti-primary);
  color: #fff;
}
.pagination .page-numbers.current,
.nav-links .page-numbers.current {
  background: var(--vesti-primary);
  color: #fff;
}
.pagination .page-numbers.dots,
.nav-links .page-numbers.dots {
  background: transparent;
  box-shadow: none;
  color: var(--vesti-ink-muted);
  padding: 10px 4px;
}
.pagination .page-numbers.dots:hover,
.nav-links .page-numbers.dots:hover {
  background: transparent;
  color: var(--vesti-ink-muted);
}

/* Vesti-custom archive */
.vesti-archive { padding-block: 24px 40px; }
.vesti-archive-head {
  background: linear-gradient(180deg, #fff 0%, var(--vesti-surface-alt) 100%);
  border-left: 6px solid var(--vesti-cat-accent);
  padding: 22px 22px 20px;
  box-shadow: var(--vesti-shadow-sm);
  margin-bottom: 22px;
}
.vesti-archive-eyebrow {
  display: inline-block;
  font-family: var(--vesti-font-head);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vesti-cat-accent);
}
.vesti-archive-title {
  font-family: var(--vesti-font-head);
  font-weight: 900;
  font-size: 34px;
  letter-spacing: -0.01em;
  margin: 4px 0 0;
  text-transform: uppercase;
  color: var(--vesti-ink);
}
.vesti-archive-desc {
  margin-top: 6px;
  color: var(--vesti-ink-muted);
  font-size: 15px;
}
/* ============================================================
   14. Archive header (category pages)
   ============================================================ */
.page-header {
  background: var(--vesti-surface);
  padding: 26px 22px;
  border-left: 6px solid var(--vesti-primary);
  margin-bottom: 22px;
  box-shadow: var(--vesti-shadow-sm);
}
.page-header .page-title,
.page-header .entry-title {
  font-family: var(--vesti-font-head);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: uppercase;
}

/* ============================================================
   15. Footer (light index.hr-style)
   ============================================================ */
.site-footer.vesti-footer {
  background: var(--vesti-surface);
  color: var(--vesti-ink);
  border-top: 4px solid var(--vesti-primary);
  margin-top: 32px;
}
.vesti-footer-inner {
  max-width: 1260px;
  margin-inline: auto;
  padding: 36px 24px 22px;
}
@media (min-width: 1200px) {
  .vesti-footer-inner { padding-inline: 32px; }
}

/* Top brand row */
.vesti-footer-top {
  display: flex; flex-direction: column;
  gap: 10px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--vesti-divider);
}
.vesti-footer-tagline {
  margin: 0;
  font-size: 13.5px;
  color: var(--vesti-ink-muted);
  line-height: 1.55;
  max-width: 70ch;
}

/* Column grid — vertical rules between columns on desktop. */
.vesti-footer-cols {
  display: grid;
  gap: 28px 0;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 28px;
}
@media (min-width: 640px) { .vesti-footer-cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .vesti-footer-cols { grid-template-columns: repeat(5, 1fr); } }

.vesti-footer-col {
  list-style: none;
  margin: 0;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vesti-footer-col:first-child { padding-left: 0; }
.vesti-footer-col:last-child  { padding-right: 0; }
@media (min-width: 640px) {
  .vesti-footer-col + .vesti-footer-col {
    border-left: 1px solid #d6d9dd;
  }
}
.vesti-footer-col li { font-size: 13.5px; line-height: 1.4; }
.vesti-footer-col a {
  color: var(--vesti-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.vesti-footer-col a:hover { color: var(--vesti-primary); }
.vesti-footer-head {
  font-family: var(--vesti-font-head);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.vesti-footer-head a,
.vesti-footer-head span { color: var(--vesti-primary); }
.vesti-footer-head a:hover { color: var(--vesti-primary-dark); }
.vesti-footer-social-col a svg { color: var(--vesti-ink-muted); }
.vesti-footer-social-col a:hover svg { color: var(--vesti-primary); }

/* Impressum bar */
.vesti-footer-impressum {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--vesti-divider);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 12.5px;
  color: var(--vesti-ink-muted);
  align-items: center;
}
.vesti-footer-impressum a { color: var(--vesti-ink-muted); }
.vesti-footer-impressum a:hover { color: var(--vesti-primary); }
.vesti-footer-impressum li:last-child { margin-left: auto; }

/* Hide the Spotlight credit line */
.colophon .copyright,
.site-info .credits-supply,
a[href*="codesupply.co"],
.cs-credits { display: none !important; }

/* ============================================================
   16. Search overlay + results
   ============================================================ */
.searchwp-live-search-input,
.search-field {
  font-family: var(--vesti-font-body);
  border: 1px solid var(--vesti-divider);
}

/* Full-screen overlay: fixed to the viewport so scrolling the page
   doesn't shift it; no colored border — relies on shadow + scrim for
   contrast. */
.site-search {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: rgba(17, 20, 24, 0.55);
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}
.site-search.search-open {
  opacity: 1;
  visibility: visible;
  left: 0;
  transition: opacity 180ms ease;
}
.site-search > .cs-container {
  background: var(--vesti-surface);
  width: 100%;
  max-width: 860px;
  margin-top: 6vh;
  padding: 48px clamp(20px, 5vw, 56px) 56px;
  min-height: 360px;
  box-shadow: 0 24px 56px rgba(0,0,0,0.25);
  transform: translateY(-8px);
  transition: transform 200ms ease;
  position: relative;
}
.site-search.search-open > .cs-container { transform: translateY(0); }
.site-search .search-form-wrap {
  position: relative;
  border-bottom: 2px solid var(--vesti-ink);
  display: flex;
  align-items: center;
  padding: 4px 0 8px;
}
.site-search input[type="search"] {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: var(--vesti-font-body);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  padding: 14px 56px 14px 44px;
  outline: none;
  color: var(--vesti-ink);
}
.site-search input[type="search"]::placeholder { color: var(--vesti-ink-muted); }
.site-search .search-submit { font-size: 0; }
.site-search .search-submit:after { color: var(--vesti-ink); }
.site-search .search-close {
  width: 36px; height: 36px;
}
.site-search .search-close:after { color: var(--vesti-ink-muted); font-size: 22px; }

/* Suggested rubrics + tip below the search input */
.vesti-search-suggest { margin-top: 28px; }
.vesti-search-suggest-head {
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vesti-ink-muted);
  margin-bottom: 10px;
  margin-top: 22px;
}
.vesti-search-suggest-head:first-child { margin-top: 0; }
.vesti-search-suggest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vesti-search-suggest-list a {
  display: inline-block;
  padding: 8px 14px;
  background: var(--vesti-surface-alt);
  color: var(--vesti-ink);
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: background 140ms ease, color 140ms ease;
}
.vesti-search-suggest-list a:hover { background: var(--vesti-primary); color: #fff; }
.vesti-search-tip {
  font-size: 13px;
  color: var(--vesti-ink-muted);
  margin: 0;
}

/* Suppress body scroll while the overlay is open. */
body:has(.site-search.search-open) { overflow: hidden; }

/* ============================================================
   16b. Offcanvas drawer (Vesti override)
   ============================================================ */
.offcanvas {
  width: 320px !important;
  background: var(--vesti-surface) !important;
  display: flex !important;
  flex-direction: column;
}
.offcanvas-header {
  padding: 14px 18px !important;
  border-bottom: 1px solid var(--vesti-divider) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.offcanvas-header .toggle-offcanvas.button-round {
  width: 36px; height: 36px;
  border: 0;
  background: transparent;
  color: var(--vesti-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.offcanvas-header .toggle-offcanvas.button-round:hover { color: var(--vesti-primary); }
.offcanvas-header .cs-icon { font-size: 20px; }
.offcanvas-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--vesti-ink);
}
.offcanvas-header .vesti-brand-img { width: 36px; height: 36px; padding: 7px; }
.offcanvas-header .vesti-brand-sub { font-size: 16px; }
.offcanvas-header .vesti-brand-sep { display: none; }

.offcanvas-inner { padding: 0 !important; }
.vesti-oc-section { padding: 18px 18px 8px; border-bottom: 1px solid var(--vesti-divider); }
.vesti-oc-section:last-of-type { border-bottom: none; }
.vesti-oc-head {
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--vesti-primary);
}
.vesti-oc-list { list-style: none; margin: 0; padding: 0; }
.vesti-oc-list li { margin: 0; }
.vesti-oc-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--vesti-ink);
  border-bottom: 1px solid var(--vesti-divider);
}
.vesti-oc-list li:last-child a { border-bottom: none; }
.vesti-oc-list a:hover { color: var(--vesti-cat-accent); }
.vesti-oc-count {
  font-family: var(--vesti-font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--vesti-ink-muted);
  background: var(--vesti-surface-alt);
  padding: 2px 8px;
  min-width: 24px;
  text-align: center;
}
.vesti-oc-social-row { display: flex; gap: 8px; padding-bottom: 8px; }
.vesti-oc-social-row a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--vesti-surface-alt);
  color: var(--vesti-ink-muted);
  transition: background 140ms ease, color 140ms ease;
}
.vesti-oc-social-row a:hover { background: var(--vesti-primary); color: #fff; }
.vesti-oc-impressum {
  list-style: none;
  margin: 0;
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1px solid var(--vesti-divider);
  font-size: 12px;
  color: var(--vesti-ink-muted);
}
.vesti-oc-impressum a { color: var(--vesti-ink-muted); }
.vesti-oc-impressum a:hover { color: var(--vesti-primary); }

/* Search empty-state */
.vesti-search-empty {
  background: var(--vesti-surface);
  padding: 28px;
  color: var(--vesti-ink);
  font-size: 15px;
  line-height: 1.5;
}
.vesti-search-empty .search-form { margin-top: 14px; }
.vesti-search-empty input[type="search"] {
  width: 100%; max-width: 480px;
  padding: 10px 14px;
  border: 1px solid var(--vesti-divider);
  font-size: 15px;
}
.vesti-search-empty .search-submit {
  padding: 10px 16px;
  background: var(--vesti-primary);
  color: #fff;
  border: 0;
  font-family: var(--vesti-font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

/* ============================================================
   17. Mobile niceties
   ============================================================ */
@media (max-width: 767px) {
  .vesti-home { padding-block: 16px 28px; }
  .vesti-card-hero .vesti-card-title { font-size: 22px; }
  .vesti-section-title { font-size: 16px; }
  .vesti-ticker-inner { gap: 10px; height: 36px; }
  .vesti-ticker-label { font-size: 11px; padding: 4px 8px; }
}

/* ============================================================
   19b. TV cross-promo card
   ============================================================ */
.vesti-tv-promo {
  margin: 32px 0;
  background: linear-gradient(135deg, #111418 0%, #2a5b9b 100%);
  box-shadow: var(--vesti-shadow-sm);
  color: #fff;
  padding: 22px clamp(18px, 3vw, 28px);
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 720px) {
  .vesti-tv-promo { grid-template-columns: auto 1fr; gap: 24px; }
}
.vesti-tv-promo::before {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(238,47,53,0.4) 0%, transparent 70%);
  pointer-events: none;
}
.vesti-tv-promo-eyebrow {
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1;
}
.vesti-tv-promo-pill {
  display: inline-block;
  background: var(--vesti-primary);
  color: #fff;
  font-family: var(--vesti-font-head);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px;
  align-self: flex-start;
  width: max-content;
}
.vesti-tv-promo-lede {
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 16px;
  color: rgba(255,255,255,0.92);
}
.vesti-tv-promo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: rgba(255,255,255,0.12);
  grid-template-columns: 1fr;
  z-index: 1;
}
@media (min-width: 560px) {
  .vesti-tv-promo-list { grid-template-columns: repeat(3, 1fr); }
}
.vesti-tv-promo-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.18);
  color: #fff;
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 140ms ease;
}
.vesti-tv-promo-list a:hover { background: rgba(238, 47, 53, 0.4); color: #fff; }
.vesti-tv-promo-arrow {
  font-family: var(--vesti-font-body);
  font-weight: 400;
  opacity: 0.6;
  transition: transform 140ms ease, opacity 140ms ease;
}
.vesti-tv-promo-list a:hover .vesti-tv-promo-arrow { transform: translateX(3px); opacity: 1; }

/* ============================================================
   20. 404 page
   ============================================================ */
.vesti-404 { padding-block: var(--vesti-page-pad-y); }
.vesti-404 > .site-main { display: flex; flex-direction: column; gap: 32px; }

.vesti-404-card {
  background: var(--vesti-surface);
  padding: 40px clamp(20px, 4vw, 56px) 36px;
  border-top: 4px solid var(--vesti-primary);
  box-shadow: var(--vesti-shadow-sm);
}
.vesti-404-glyph {
  font-family: var(--vesti-font-head);
  font-weight: 900;
  font-size: clamp(80px, 14vw, 140px);
  line-height: 0.9;
  color: var(--vesti-primary);
  letter-spacing: -0.02em;
  opacity: 0.18;
  margin-bottom: -20px;
  user-select: none;
}
.vesti-404-title {
  font-family: var(--vesti-font-head);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--vesti-ink);
}
.vesti-404-lede {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.55;
  color: var(--vesti-ink-muted);
  max-width: 64ch;
  margin: 0 0 22px;
}
.vesti-404-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 26px;
}
.vesti-404-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--vesti-surface-alt);
  color: var(--vesti-ink);
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}
.vesti-404-btn:hover { background: var(--vesti-surface-alt-2); color: var(--vesti-primary); }
.vesti-404-btn.is-primary { background: var(--vesti-primary); color: #fff; }
.vesti-404-btn.is-primary:hover { background: var(--vesti-primary-dark); color: #fff; }

.vesti-404-search {
  padding-top: 22px;
  border-top: 1px solid var(--vesti-divider);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.vesti-404-label {
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vesti-ink-muted);
}
.vesti-404-search .search-form { flex: 1; min-width: 240px; }
/* The searchform.php wraps input+button in .cs-input-group — make it
   a flex row so the button sits flush against the input edge at the
   same height instead of wrapping below. */
.vesti-404-search .cs-input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}
.vesti-404-search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--vesti-divider);
  background: var(--vesti-surface);
  font-family: var(--vesti-font-body);
  font-size: 15px;
  outline: none;
  border-radius: 0;
  box-sizing: border-box;
}
.vesti-404-search input[type="search"]:focus { border-color: var(--vesti-primary); }
.vesti-404-search .search-submit {
  flex: 0 0 auto;
  padding: 0 18px;
  background: var(--vesti-primary);
  color: #fff;
  border: 0;
  border-left: 0;
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 0;
  line-height: 1;
}
.vesti-404-search .search-submit:hover { background: var(--vesti-primary-dark); }

/* Popular rubrics grid */
.vesti-404-rubrics .vesti-section-title { margin-bottom: 14px; }
.vesti-404-cat-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 640px) { .vesti-404-cat-list { grid-template-columns: repeat(4, 1fr); } }
.vesti-404-cat-list li { margin: 0; }
.vesti-404-cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  background: var(--vesti-surface);
  border-left: 4px solid var(--vesti-cat-accent);
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vesti-ink);
  transition: background 140ms ease, color 140ms ease;
}
.vesti-404-cat-list a:hover { background: var(--vesti-surface-alt); color: var(--vesti-cat-accent); }
.vesti-404-cat-count {
  background: var(--vesti-surface-alt);
  color: var(--vesti-ink-muted);
  font-size: 11px;
  padding: 2px 8px;
  font-family: var(--vesti-font-body);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.vesti-404-latest { margin-top: 8px; }
.vesti-404-latest .vesti-section-title { margin-bottom: 22px; }

/* Reserve room for sticky mobile ad on small screens */
@media (max-width: 991px) {
  body { padding-bottom: 64px; }
}

/* ============================================================
   18. Live events — public feed (index.hr style)
   ============================================================ */
.vesti-live { margin: 8px 0 28px; }
.vesti-live br { display: none; }  /* defensive: wpautop sometimes still sneaks one in */

/* Section title — "Уживо · Развој на настанот" + red underline */
.vesti-live-head {
  border-bottom: 1px solid var(--vesti-divider);
  padding-bottom: 0;
  margin-bottom: 0;
}
.vesti-live-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0 0 10px;
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--vesti-primary);
  position: relative;
  flex-wrap: wrap;
}
.vesti-live-title::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: var(--vesti-primary);
  width: 40%;
  max-width: 280px;
}
.vesti-live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--vesti-primary);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
}
.vesti-live .vesti-live-dot {
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: vesti-live-pulse-w 1.6s ease-out infinite;
}
@keyframes vesti-live-pulse-w {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
  70%  { box-shadow: 0 0 0 6px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.vesti-live-status {
  font-family: var(--vesti-font-head);
  font-weight: 500;
  font-size: 14px;
  color: var(--vesti-ink-muted);
  text-transform: none;
  letter-spacing: 0;
}
.vesti-live-count {
  margin-left: auto;
  font-family: var(--vesti-font-body);
  font-weight: 600;
  font-size: 12px;
  color: var(--vesti-ink-muted);
  text-transform: none;
  letter-spacing: 0;
}

/* Tabs row (Уживо / Коментари) */
.vesti-live-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--vesti-divider);
  margin-top: 16px;
}
.vesti-live-tabs button {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 14px 16px;
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vesti-ink-muted);
  cursor: pointer;
  position: relative;
  transition: color 140ms ease;
}
.vesti-live-tabs button:hover:not(:disabled) { color: var(--vesti-ink); }
.vesti-live-tabs button.is-active {
  color: var(--vesti-primary);
}
.vesti-live-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--vesti-primary);
}
.vesti-live-tabs button:disabled { opacity: 0.45; cursor: not-allowed; }
.vesti-live-tab-count {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  background: var(--vesti-surface-alt);
  color: var(--vesti-ink-muted);
  padding: 1px 6px;
}
.vesti-live-tabs button.is-active .vesti-live-tab-count {
  background: rgba(238, 47, 53, 0.12);
  color: var(--vesti-primary);
}

/* Toolbar: "Само клучни настани" toggle + sort selector */
.vesti-live-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--vesti-divider);
}
.vesti-live-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--vesti-ink);
  user-select: none;
}
.vesti-live-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.vesti-live-toggle-track {
  position: relative;
  display: inline-block;
  width: 34px; height: 18px;
  background: var(--vesti-surface-alt-2);
  transition: background 160ms ease;
}
.vesti-live-toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: var(--vesti-surface);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transition: left 160ms ease;
}
.vesti-live-toggle input:checked + .vesti-live-toggle-track {
  background: var(--vesti-primary);
}
.vesti-live-toggle input:checked + .vesti-live-toggle-track .vesti-live-toggle-thumb {
  left: 18px;
}
.vesti-live-sort { margin-left: auto; }
.vesti-live-sort select {
  font-family: var(--vesti-font-body);
  font-size: 13.5px;
  border: 1px solid var(--vesti-divider);
  background: var(--vesti-surface);
  padding: 6px 28px 6px 10px;
  color: var(--vesti-ink);
  cursor: pointer;
}

/* Update list */
.vesti-live-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.vesti-live-list.is-key-only .vesti-live-item:not(.is-pinned) { display: none; }

.vesti-live-item {
  padding: 16px 0 16px 18px;
  border-bottom: 1px solid var(--vesti-divider);
  position: relative;
}
.vesti-live-item::before {
  content: "";
  position: absolute;
  left: 2px; top: 20px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--vesti-ink-muted);
  opacity: 0.35;
}
.vesti-live-item.is-pinned {
  padding-left: 22px;
  background: rgba(238, 47, 53, 0.03);
  border-left: 3px solid var(--vesti-primary);
  margin-left: -3px;
}
.vesti-live-item.is-pinned::before {
  background: var(--vesti-primary);
  opacity: 1;
  left: 9px;
  width: 7px; height: 7px;
  box-shadow: 0 0 0 0 rgba(238,47,53,0.6);
  animation: vesti-live-pulse 1.6s ease-out infinite;
}
.vesti-live-item:last-child { border-bottom: none; }

.vesti-live-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
  line-height: 1;
}
.vesti-live-eyebrow {
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vesti-primary);
  line-height: 1;
}
.vesti-live-eyebrow::after {
  content: "·";
  margin-left: 10px;
  color: var(--vesti-divider);
  font-weight: 400;
}
.vesti-live-abs {
  font-family: var(--vesti-font-body);
  font-size: 12px;
  color: var(--vesti-ink-muted);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.vesti-live-headline {
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 6px;
  color: var(--vesti-ink);
}
.vesti-live-body {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--vesti-ink);
  margin: 0;
}
.vesti-live-empty {
  color: var(--vesti-ink-muted);
  font-style: italic;
  padding: 16px 0;
}

/* Flash newly arrived updates */
.vesti-live-item.is-new {
  animation: vesti-live-new 1.8s ease-out;
}
@keyframes vesti-live-new {
  0%   { background-color: rgba(238, 47, 53, 0.14); }
  100% { background-color: transparent; }
}
.vesti-live-item.is-new.is-pinned {
  animation: vesti-live-new-pinned 1.8s ease-out;
}
@keyframes vesti-live-new-pinned {
  0%   { background-color: rgba(238, 47, 53, 0.18); }
  100% { background-color: rgba(238, 47, 53, 0.025); }
}

/* ============================================================
   19. Reporter composer (/report/<id>/)
   ============================================================ */
.vesti-reporter-page {
  margin: 0;
  background: var(--vesti-surface-alt);
  font-family: var(--vesti-font-body);
  color: var(--vesti-ink);
  min-height: 100vh;
}
.vesti-reporter-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px 80px;
}
.vesti-reporter-head { margin-bottom: 18px; }
.vesti-reporter-eyebrow {
  display: inline-block;
  background: var(--vesti-primary);
  color: #fff;
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
}
.vesti-reporter-title {
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  margin: 8px 0 0;
}
.vesti-reporter-card {
  background: var(--vesti-surface);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--vesti-shadow-sm);
}
.vesti-reporter-label {
  display: block;
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vesti-ink-muted);
  margin-bottom: 8px;
}
.vesti-reporter-label small {
  font-family: var(--vesti-font-body);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--vesti-ink-muted);
  font-weight: 500;
  margin-left: 6px;
}
.vesti-reporter-textarea {
  width: 100%;
  border: 2px solid var(--vesti-divider);
  background: var(--vesti-surface);
  padding: 12px 14px;
  font-family: var(--vesti-font-body);
  font-size: 16px;             /* >= 16px to suppress mobile-zoom */
  line-height: 1.5;
  color: var(--vesti-ink);
  resize: vertical;
  min-height: 140px;
  outline: none;
  transition: border-color 140ms ease;
  box-sizing: border-box;
}
.vesti-reporter-textarea:focus { border-color: var(--vesti-primary); }

.vesti-reporter-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 14px;
}
.vesti-reporter-btn {
  flex: 1 1 auto;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  font-family: var(--vesti-font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--vesti-surface-alt);
  color: var(--vesti-ink);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 140ms ease;
}
.vesti-reporter-btn:hover:not(:disabled) { background: var(--vesti-surface-alt-2); }
.vesti-reporter-btn.is-primary { background: var(--vesti-primary); color: #fff; }
.vesti-reporter-btn.is-primary:hover:not(:disabled) { background: var(--vesti-primary-dark); }
.vesti-reporter-btn.is-link { background: transparent; color: var(--vesti-ink-muted); text-decoration: underline; }
.vesti-reporter-btn:disabled { opacity: 0.6; cursor: wait; }

.vesti-reporter-hint {
  font-size: 12.5px;
  color: var(--vesti-ink-muted);
  margin: 10px 0 0;
}
.vesti-reporter-orig {
  margin: 12px 0 4px;
  font-size: 13px;
  color: var(--vesti-ink-muted);
}
.vesti-reporter-orig summary { cursor: pointer; }
.vesti-reporter-orig pre {
  margin: 8px 0 0;
  padding: 10px;
  background: var(--vesti-surface-alt);
  white-space: pre-wrap;
  font-family: var(--vesti-font-body);
  font-size: 13px;
}

.vesti-reporter-card-done h2 { margin: 0 0 8px; font-size: 20px; }
.vesti-reporter-card-mine h2 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--vesti-ink-muted); }
.vesti-reporter-history { list-style: none; margin: 0; padding: 0; }
.vesti-reporter-history-item {
  display: grid; grid-template-columns: 48px 1fr; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--vesti-divider);
  font-size: 14px;
}
.vesti-reporter-history-item:last-child { border-bottom: none; }
.vesti-reporter-history-item time {
  font-family: var(--vesti-font-head);
  font-weight: 700;
  color: var(--vesti-primary);
  font-variant-numeric: tabular-nums;
}
.vesti-reporter-history-empty { color: var(--vesti-ink-muted); font-style: italic; }

.vesti-reporter-toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  background: var(--vesti-ink);
  color: #fff;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  max-width: 90vw;
  z-index: 50;
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}
.vesti-reporter-toast[data-kind="warn"]  { background: #b45a00; }
.vesti-reporter-toast[data-kind="error"] { background: #b00020; }

/* ============================================================
   Cookie consent — sticky bottom bar, dismissed after a choice.
   ============================================================ */
.vesti-cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 400;
  background: #111418;
  color: #fff;
  border-top: 3px solid var(--vesti-primary);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.25);
  animation: vesti-cookie-in 220ms ease both;
}
.vesti-cookie.is-dismissed {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}
@keyframes vesti-cookie-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.vesti-cookie-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
@media (min-width: 720px) {
  .vesti-cookie-inner {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 16px 24px;
  }
}
.vesti-cookie-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  color: #fff;
  display: none;
}
@media (min-width: 720px) {
  .vesti-cookie-icon { display: block; }
}
.vesti-cookie-copy { flex: 1 1 auto; min-width: 0; }
.vesti-cookie-title {
  display: block;
  font-family: var(--vesti-font-head);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 4px;
}
.vesti-cookie-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255,255,255,0.82);
}
.vesti-cookie-text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.vesti-cookie-text a:hover { color: var(--vesti-primary); }
.vesti-cookie-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  width: 100%;
}
@media (min-width: 720px) {
  .vesti-cookie-actions { width: auto; }
}
.vesti-cookie-btn {
  flex: 1 1 auto;
  padding: 10px 18px;
  border: 0;
  font-family: var(--vesti-font-head);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 1;
  transition: background 140ms ease, color 140ms ease;
}
.vesti-cookie-btn.is-reject {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.vesti-cookie-btn.is-reject:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
}
.vesti-cookie-btn.is-accept {
  background: var(--vesti-primary);
  color: #fff;
}
.vesti-cookie-btn.is-accept:hover { background: var(--vesti-primary-dark); }
