/*
 * Sportak 1.9.0 -- component layer.
 *
 * Plain CSS (NOT processed by Tailwind), enqueued right after the compiled
 * assets/css/main.css (see sportak_enqueue_assets() in functions.php), so
 * nothing here depends on Tailwind's class scanning. Everything reads a
 * handful of custom properties:
 *
 *   --color-primary   brand navy (Sportak Opcije > Izgled), existing
 *   --sp-accent       live/breaking red (Sportak Opcije > Izgled)
 *   --sp-radius       card/image radius (Sportak Opcije > Izgled)
 *   --sp-font-heading headline font stack (Sportak Opcije > Izgled)
 *
 * and, per category (generated in inc/category-identity.php on
 * `.sp-cat-{id}` and core's `.cat-item-{id}`):
 *
 *   --cat        the category color (fills: tiles, pills, bars)
 *   --cat-ink    readable text shade on light backgrounds (AA)
 *   --cat-ink-d  readable text shade on dark backgrounds (AA)
 *   --cat-on     text/icon color ON a --cat fill (white or near-black)
 *   --cat-soft   12% tint, --cat-soft-d 22% tint for dark mode
 *   --cat-icon   the category icon as a data-URI (ink), --cat-icon-d (ink-d)
 *
 * Sections:
 *   1. Tokens          8. Category archive hero
 *   2. Icons           9. Article (meta, breadcrumbs, author box, tags)
 *   3. Category marks 10. Widgets & sidebar blocks
 *   4. Header & nav   11. Content blocks (in articles/pages)
 *   5. Mobile drawer  12. Embeds & video
 *   6. Section heads  13. Footer
 *   7. Post lists     14. Utilities (skip link, back-to-top, 404)
 */

/* ================================================================== *
 * 1. Tokens
 * ================================================================== */

:root {
  --sp-accent: #dc2626;
  --sp-radius: 0.375rem;
  --sp-font-heading: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --sp-ink: #111827;
  --sp-muted: #6b7280;
  --sp-line: #e5e7eb;
  --sp-surface: #ffffff;
  --sp-surface-2: #f3f4f6;
  color-scheme: light;
  /* Brand fallback for any element without a category class. */
  --cat: var(--color-primary);
  --cat-ink: var(--color-primary);
  --cat-ink-d: #ffffff;
  --cat-on: #ffffff;
  --cat-soft: rgba(38, 34, 98, 0.1);
  --cat-soft-d: rgba(255, 255, 255, 0.12);
}

.dark {
  color-scheme: dark;
  --sp-ink: #f9fafb;
  --sp-muted: #9ca3af;
  --sp-line: #1f2937;
  --sp-surface: #111827;
  --sp-surface-2: #1f2937;
}

/* Headline font hook: titles of articles, cards, sections. */
.sp-heading,
.entry-title,
article h1,
article h3,
.sp-section-head__title,
.sp-cat-hero__title,
.sp-post-list__title {
  font-family: var(--sp-font-heading);
}

/* ================================================================== *
 * 2. Icons
 * ================================================================== */

.sp-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -0.125em;
}

img.sp-icon {
  object-fit: contain;
}

/* ================================================================== *
 * 3. Category marks: label, tile, chip
 * ================================================================== */

.sp-cat-label {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.sp-cat-label > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-cat-label__icon {
  width: 1.3em;
  height: 1.3em;
}

.sp-cat-label--text {
  color: var(--cat-ink);
}

.dark .sp-cat-label--text {
  color: var(--cat-ink-d);
}

a.sp-cat-label--text:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sp-cat-label--pill {
  padding: 0.28rem 0.6rem 0.28rem 0.5rem;
  border-radius: 999px;
  background: var(--cat);
  color: var(--cat-on);
  font-size: 10px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
}

a.sp-cat-label--pill:hover {
  filter: brightness(1.08);
}

.sp-cat-label--chip {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--cat-soft);
  color: var(--cat-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.dark .sp-cat-label--chip {
  background: var(--cat-soft-d);
  color: var(--cat-ink-d);
}

a.sp-cat-label--chip:hover {
  background: var(--cat);
  color: var(--cat-on);
}

.sp-cat-label--chip.is-current {
  background: var(--cat);
  color: var(--cat-on);
}

/* Tiles: solid by default, --soft = tint. */
.sp-cat-tile {
  --tile: 1.75rem;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--tile);
  height: var(--tile);
  border-radius: calc(var(--tile) * 0.3);
  background: var(--cat);
  color: var(--cat-on);
}

.sp-cat-tile__icon {
  width: 58%;
  height: 58%;
}

.sp-cat-tile--xs { --tile: 1.25rem; }
.sp-cat-tile--sm { --tile: 1.75rem; }
.sp-cat-tile--md { --tile: 2.25rem; }
.sp-cat-tile--lg { --tile: 3.5rem; }
.sp-cat-tile--xl { --tile: 4.5rem; }

.sp-cat-tile--soft {
  background: var(--cat-soft);
  color: var(--cat-ink);
}

.dark .sp-cat-tile--soft {
  background: var(--cat-soft-d);
  color: var(--cat-ink-d);
}

/* Photo overlay for featured cards + slideshow: brand-tinted at the bottom
   (identity), but leaves the top 60% of the photo visible -- the old
   full-height brand gradient washed whole photos navy. */
.sp-overlay {
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--color-primary) 92%, #000) 0%,
    color-mix(in srgb, var(--color-primary) 60%, transparent) 38%,
    transparent 72%
  );
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .sp-overlay {
    background: linear-gradient(to top, rgba(10, 18, 45, 0.92) 0%, rgba(10, 18, 45, 0.5) 38%, transparent 72%);
  }
}

/* ================================================================== *
 * 4. Header & desktop category nav
 * ================================================================== */

/* Header chrome is unchanged from 1.8.0 (white / gray-900 by Tailwind
   classes in header.php). Only the category row inside it is styled here. */

/* 1.10.0 FIX: this rule loads after Tailwind's `.hidden`, so it must not
   set `display` below lg -- in 1.9.0 it did, and the category row (plus
   "Više") showed on phones on top of the logo. Mobile = drawer only. */
.sp-nav {
  position: relative;
  display: none;
  align-items: stretch;
  gap: 0.125rem;
  min-width: 0;
}

@media (min-width: 1024px) {
  .sp-nav {
    display: flex;
  }
}

.sp-nav__list {
  display: flex;
  align-items: stretch;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.sp-nav-item {
  position: relative;
  flex: none;
}

.sp-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 100%;
  padding: 0.55rem 0.55rem;
  border-radius: 0.375rem;
  color: var(--color-primary);
  font-family: var(--sp-font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dark .sp-nav-link {
  color: #ffffff;
}

.sp-nav-link__icon {
  display: inline-flex;
  font-size: 1.2em;
  color: var(--cat-ink);
}

.dark .sp-nav-link__icon {
  color: var(--cat-ink-d);
}

.sp-nav-link::after {
  content: '';
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--cat);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.sp-nav-link:hover,
.sp-nav-item:focus-within > .sp-nav-link {
  background: #f3f4f6;
}

.dark .sp-nav-link:hover,
.dark .sp-nav-item:focus-within > .sp-nav-link {
  background: #1f2937;
}

.sp-nav-link:hover::after,
.sp-nav-item:focus-within > .sp-nav-link::after,
.sp-nav-item.is-current > .sp-nav-link::after {
  transform: scaleX(1);
}


.sp-nav-link__caret {
  width: 0.75rem;
  height: 0.75rem;
  opacity: 0.55;
}

/* Dropdown (subcategories). The old .sportak-nav-dropdown rules in
   src/main.css still drive show/hide; this is the look. */
.sp-nav-dropdown {
  min-width: 13rem;
  padding: 0.4rem;
  border: 1px solid var(--sp-line);
  border-top: 3px solid var(--cat);
  border-radius: 0 0 0.6rem 0.6rem;
  background: var(--sp-surface);
  box-shadow: 0 12px 28px -8px rgb(15 23 42 / 0.25);
  list-style: none;
  margin: 0;
}

.sp-nav-sublink {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.4rem;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.sp-nav-sublink::before {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--cat);
  flex: none;
}

.dark .sp-nav-sublink {
  color: #e5e7eb;
}

.sp-nav-sublink:hover {
  background: var(--cat-soft);
  color: var(--cat-ink);
}

.dark .sp-nav-sublink:hover {
  background: var(--cat-soft-d);
  color: var(--cat-ink-d);
}

/* "Više" overflow menu built by assets/js/theme.js (priority nav). */
.sp-nav-more {
  position: relative;
  flex: none;
  margin-left: auto;
}

.sp-nav-more[hidden] {
  display: none;
}

.sp-nav-more__toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 100%;
  padding: 0.55rem 0.55rem;
  border: 0;
  background: transparent;
  color: var(--color-primary);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.sp-nav-more__panel {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 45;
  display: none;
  min-width: 14rem;
  margin: 0;
  padding: 0.4rem;
  border: 1px solid var(--sp-line);
  border-radius: 0 0 0.6rem 0.6rem;
  background: var(--sp-surface);
  box-shadow: 0 12px 28px -8px rgb(15 23 42 / 0.25);
  list-style: none;
}

.sp-nav-more.is-open .sp-nav-more__panel {
  display: block;
}

.dark .sp-nav-more__toggle {
  color: #ffffff;
}

.sp-nav-more__panel .sp-nav-link {
  height: auto;
  padding: 0.55rem 0.65rem;
}

.sp-nav-more__panel .sp-nav-link::after {
  display: none;
}

.sp-nav-more__panel .sportak-nav-dropdown {
  display: none !important;
}

/* ================================================================== *
 * 5. Mobile drawer
 * ================================================================== */

.sp-drawer-list {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.sp-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.5rem;
  border-radius: 0.6rem;
  color: #111827;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.dark .sp-drawer-link {
  color: #f9fafb;
}

.sp-drawer-link:hover,
.sp-drawer-link:focus-visible {
  background: var(--cat-soft);
}

.dark .sp-drawer-link:hover {
  background: var(--cat-soft-d);
}

.sp-drawer-link.is-current {
  background: var(--cat-soft);
  color: var(--cat-ink);
}

.sp-drawer-link__chevron {
  width: 1rem;
  height: 1rem;
  margin-left: auto;
  opacity: 0.35;
}

.sp-drawer-sublist {
  margin: 0 0 0.35rem 1.4rem;
  padding: 0 0 0 1.2rem;
  border-left: 2px solid var(--cat);
  list-style: none;
}

.sp-drawer-sublink {
  display: block;
  padding: 0.4rem 0.5rem;
  color: #4b5563;
  font-size: 0.875rem;
  text-decoration: none;
}

.dark .sp-drawer-sublink {
  color: #d1d5db;
}

.sp-drawer-sublink:hover {
  color: var(--cat-ink);
}

/* ================================================================== *
 * 6. Section heads (homepage category rows, related, widgets on home)
 * ================================================================== */

.sp-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--sp-line);
}

.sp-section-head__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 -2px;
  padding-bottom: 0.55rem;
  border-bottom: 3px solid var(--cat);
  color: var(--sp-ink);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.sp-section-head__title a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
}

.sp-section-head__title a:hover > span:last-child {
  color: var(--cat-ink);
}

.dark .sp-section-head__title a:hover > span:last-child {
  color: var(--cat-ink-d);
}

.sp-section-head__subs {
  display: none;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding-bottom: 0.7rem;
  margin: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .sp-section-head__subs {
    display: flex;
  }
}

.sp-section-head__subs a {
  color: var(--sp-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.sp-section-head__subs a:hover {
  color: var(--cat-ink);
}

.dark .sp-section-head__subs a:hover {
  color: var(--cat-ink-d);
}

.sp-section-head__more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  padding-bottom: 0.7rem;
  color: var(--cat-ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.dark .sp-section-head__more {
  color: var(--cat-ink-d);
}

.sp-section-head__more svg {
  width: 0.9rem;
  height: 0.9rem;
  transition: transform 0.15s ease;
}

.sp-section-head__more:hover svg {
  transform: translateX(2px);
}

/* Small variant (sidebar/widget titles). */
.sp-section-head--sm {
  margin-bottom: 0.75rem;
}

.sp-section-head--sm .sp-section-head__title {
  font-size: 0.875rem;
  padding-bottom: 0.45rem;
}

.sp-live-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--sp-accent);
  box-shadow: 0 0 0 0 var(--sp-accent);
  animation: sp-pulse 1.8s ease-out infinite;
}

@keyframes sp-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sp-accent) 60%, transparent); }
  80%, 100% { box-shadow: 0 0 0 0.45rem transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .sp-live-dot { animation: none; }
}

/* ================================================================== *
 * 7. Post lists (sportak_render_post_list(): sidebars, widgets, blocks)
 * ================================================================== */

.sp-post-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: sp-rank;
}

.sp-post-list__item {
  display: flex;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--sp-line);
}

.sp-post-list__item:first-child {
  padding-top: 0;
}

.sp-post-list__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.sp-post-list__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.sp-post-list__title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--sp-ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.sp-post-list__title:hover {
  color: var(--cat-ink);
}

.dark .sp-post-list__title:hover {
  color: var(--cat-ink-d);
}

.sp-post-list__meta {
  color: var(--sp-muted);
  font-size: 0.75rem;
}

.sp-post-list__excerpt {
  color: var(--sp-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.sp-post-list__thumb {
  display: block;
  flex: none;
  width: 5.5rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--sp-radius);
  background: var(--sp-surface-2);
}

.sp-post-list__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sp-post-list__item:hover .sp-post-list__thumb img {
  transform: scale(1.05);
}

/* Numbered ("Najčitanije") */
.sp-post-list--numbered .sp-post-list__item {
  counter-increment: sp-rank;
  align-items: flex-start;
}

.sp-post-list--numbered .sp-post-list__item::before {
  content: counter(sp-rank);
  flex: none;
  width: 1.6rem;
  margin-top: -0.15rem;
  color: #d1d5db;
  font-family: var(--sp-font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.dark .sp-post-list--numbered .sp-post-list__item::before {
  color: #374151;
}

.sp-post-list--numbered .sp-post-list__item:nth-child(-n + 3)::before {
  color: var(--sp-accent);
}

/* Cards grid used by the "Sportak kartice" Latest Posts style. */
.sp-block-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr));
  gap: 0.75rem;
}

.sp-block-lead > article {
  margin-bottom: 0.75rem;
  aspect-ratio: 16 / 10;
}

/* ================================================================== *
 * 8. Category archive hero
 * ================================================================== */

.sp-cat-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.25rem 1rem;
  border-radius: calc(var(--sp-radius) * 2);
  background-color: var(--cat);
  /* 1.10.1: the band is darkened a little so white text is always
     readable, whatever color the admin picks (lighter greens/yellows used
     to switch the whole band to dark text). */
  background-color: color-mix(in srgb, var(--cat) 84%, #000);
  background-image: linear-gradient(115deg, rgb(255 255 255 / 0.08) 0%, transparent 45%, rgb(0 0 0 / 0.28) 100%);
  color: #ffffff;
  isolation: isolate;
}

@media (min-width: 768px) {
  .sp-cat-hero {
    padding: 1.75rem 2rem 1.25rem;
  }
}

.sp-cat-hero__mark {
  position: absolute;
  z-index: -1;
  right: -2rem;
  bottom: -3rem;
  width: 15rem;
  height: 15rem;
  opacity: 0.13;
  pointer-events: none;
}

.sp-cat-hero__mark .sp-icon,
.sp-cat-hero__mark img {
  width: 100%;
  height: 100%;
}

.sp-cat-hero .sp-breadcrumbs {
  margin-bottom: 0.9rem;
  color: inherit;
  opacity: 0.85;
}

.sp-cat-hero .sp-breadcrumbs a {
  color: inherit;
}

.sp-cat-hero__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

/* 1.10.2: a long single word ("PREMIJER", "MOTOSPORTOVI") used to run
   under the "Prati" button on phones -- a flex item's default
   `min-width: auto` refuses to shrink below its longest word. */
.sp-cat-hero__text {
  flex: 1 1 10rem;
  min-width: 0;
}

.sp-cat-hero__tile {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.16);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25);
  font-size: 2rem;
}

@media (min-width: 768px) {
  .sp-cat-hero__tile {
    width: 4.5rem;
    height: 4.5rem;
    font-size: 2.6rem;
    border-radius: 1.25rem;
  }
}

.sp-cat-hero__title {
  margin: 0;
  /* Scales with the viewport so even long names fit next to the button. */
  font-size: clamp(1.375rem, 6.5vw, 1.75rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  hyphens: auto;
}

@media (min-width: 768px) {
  .sp-cat-hero__title {
    font-size: 2.5rem;
    overflow-wrap: normal;
  }
}

.sp-cat-hero__desc {
  max-width: 42rem;
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0.9;
}

.sp-cat-hero__count {
  margin-left: auto;
  align-self: flex-end;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
  white-space: nowrap;
}

.sp-cat-hero__subs {
  display: flex;
  gap: 0.4rem;
  margin: 1.1rem -1.25rem 0;
  padding: 0 1.25rem 0.2rem;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.sp-cat-hero__subs::-webkit-scrollbar {
  display: none;
}

.sp-cat-hero__subs a {
  display: inline-flex;
  flex: none;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.14);
  color: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.sp-cat-hero__subs a:hover,
.sp-cat-hero__subs a.is-current {
  background: #ffffff;
  color: color-mix(in srgb, var(--cat) 70%, #000);
}

/* 1.10.1: all subcategories are listed -- wrap on wider screens,
   swipe on phones. */
@media (min-width: 768px) {
  .sp-cat-hero__subs {
    flex-wrap: wrap;
    overflow: visible;
    margin-right: 0;
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

.sp-cat-hero__subs a {
  border: 1px solid rgb(255 255 255 / 0.22);
}

/* ================================================================== *
 * 9. Article bits
 * ================================================================== */

.sp-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  padding: 0;
  color: var(--sp-muted);
  font-size: 0.75rem;
  list-style: none;
}

.sp-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sp-breadcrumbs li + li::before {
  content: '';
  width: 0.35rem;
  height: 0.35rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
}

.sp-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.sp-breadcrumbs a:hover {
  text-decoration: underline;
}

.sp-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
  color: var(--sp-muted);
  font-size: 0.75rem;
}

.sp-article-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.sp-article-meta__item svg {
  width: 0.9rem;
  height: 0.9rem;
  opacity: 0.7;
}

/* Larger reading size option (Sportak Opcije > Članak). */
.sp-prose-lg {
  font-size: 1.125rem;
  line-height: 1.75;
}

.sp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.sp-tags a {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--sp-surface-2);
  color: #374151;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

.dark .sp-tags a {
  color: #d1d5db;
}

.sp-tags a:hover {
  background: var(--cat);
  color: var(--cat-on);
}

.sp-author-box {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--sp-line);
  border-left: 4px solid var(--cat);
  border-radius: var(--sp-radius);
  background: var(--sp-surface);
}

.sp-author-box img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  flex: none;
}

.sp-author-box__name {
  margin: 0;
  color: var(--sp-ink);
  font-weight: 800;
}

.sp-author-box__bio {
  margin: 0.25rem 0 0;
  color: var(--sp-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Social follow buttons (article + footer). */
.sp-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--sp-surface-2);
  color: #4b5563;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dark .sp-social a {
  color: #d1d5db;
}

.sp-social a:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.sp-social svg {
  width: 1.05rem;
  height: 1.05rem;
}

/* ================================================================== *
 * 10. Widgets & sidebar blocks
 *     (Appearance > Widgets: both classic widgets and block widgets)
 * ================================================================== */

/* Widget title: classic before_title AND a Heading block used as a title
   inside a block widget (the usual "Heading + Latest Posts" combo). */
.sp-widget-title,
.widget > .wp-block-heading:first-child,
.widget .wp-block-group > .wp-block-heading:first-child,
.widget .wp-block-group__inner-container > .wp-block-heading:first-child,
.widget > h2:first-child,
.widget > h3:first-child {
  position: relative;
  margin: 0 0 0.85rem;
  padding: 0 0 0.5rem;
  border-bottom: 2px solid var(--sp-line);
  color: var(--sp-ink);
  font-family: var(--sp-font-heading);
  font-size: 0.875rem !important;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.sp-widget-title::after,
.widget > .wp-block-heading:first-child::after,
.widget .wp-block-group > .wp-block-heading:first-child::after,
.widget .wp-block-group__inner-container > .wp-block-heading:first-child::after,
.widget > h2:first-child::after,
.widget > h3:first-child::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 2.5rem;
  height: 3px;
  border-radius: 3px;
  background: var(--color-primary);
}

.dark .sp-widget-title::after,
.dark .widget > .wp-block-heading:first-child::after,
.dark .widget .wp-block-group > .wp-block-heading:first-child::after,
.dark .widget > h2:first-child::after {
  background: #ffffff;
}

.widget {
  color: #374151;
  font-size: 0.875rem;
}

.dark .widget {
  color: #d1d5db;
}

.widget ul,
.widget ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Generic link lists: Archives, Pages, Meta, Nav Menu, RSS, Page List,
   Recent Posts (classic), Categories (see below for icons). */
.widget_archive li,
.widget_pages li,
.widget_meta li,
.widget_nav_menu li,
.widget_rss li,
.widget_recent_entries li,
.widget_recent_comments li,
.wp-block-archives-list li,
.wp-block-page-list li,
.wp-block-rss li,
.wp-block-latest-comments li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--sp-line);
}

.widget_archive li:last-child,
.widget_pages li:last-child,
.widget_meta li:last-child,
.widget_nav_menu li:last-child,
.widget_rss li:last-child,
.widget_recent_entries li:last-child,
.wp-block-archives-list li:last-child,
.wp-block-page-list li:last-child,
.wp-block-rss li:last-child {
  border-bottom: 0;
}

.widget li a,
.wp-block-archives-list a,
.wp-block-page-list a,
.wp-block-rss a {
  color: var(--sp-ink);
  font-weight: 600;
  text-decoration: none;
}

.widget li a:hover {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dark .widget li a:hover {
  color: #93c5fd;
}

.widget_recent_entries .post-date,
.wp-block-rss__item-publish-date,
.wp-block-rss__item-author {
  display: block;
  margin-top: 0.15rem;
  color: var(--sp-muted);
  font-size: 0.75rem;
}

/* Categories (block + classic widget + any wp_list_categories()):
   each item gets its category's icon tile via the generated
   .cat-item-{id} custom properties. */
.wp-block-categories-list,
.widget_categories ul,
.wp-block-categories {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wp-block-categories-list li.cat-item,
.widget_categories li.cat-item,
.sp-cat-list li.cat-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.5rem;
  padding: 0.3rem 0;
  border: 0;
  color: var(--sp-muted);
  font-size: 0.75rem;
}

.wp-block-categories-list li.cat-item > a,
.widget_categories li.cat-item > a,
.sp-cat-list li.cat-item > a {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.6rem;
  padding: 0.25rem 0.35rem 0.25rem 0.25rem;
  border-radius: 0.55rem;
  color: var(--sp-ink);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.wp-block-categories-list li.cat-item > a::before,
.widget_categories li.cat-item > a::before,
.sp-cat-list li.cat-item > a::before {
  content: '';
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: var(--cat-soft) var(--cat-icon) center / 1rem 1rem no-repeat;
}

.dark .wp-block-categories-list li.cat-item > a::before,
.dark .widget_categories li.cat-item > a::before,
.dark .sp-cat-list li.cat-item > a::before {
  background: var(--cat-soft-d) var(--cat-icon-d) center / 1rem 1rem no-repeat;
}

.wp-block-categories-list li.cat-item > a:hover,
.widget_categories li.cat-item > a:hover,
.sp-cat-list li.cat-item > a:hover {
  background: var(--cat-soft);
  color: var(--cat-ink);
  text-decoration: none;
}

.wp-block-categories-list .children,
.widget_categories .children {
  flex-basis: 100%;
  margin: 0.15rem 0 0.25rem 1.1rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--cat, var(--sp-line));
}

.wp-block-categories-list .children li.cat-item > a::before,
.widget_categories .children li.cat-item > a::before {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--cat);
}

.wp-block-categories-list .children li.cat-item > a,
.widget_categories .children li.cat-item > a {
  font-weight: 600;
}

/* Category dropdown + archive dropdown + any select in a widget. */
.widget select,
.wp-block-categories__dropdown select,
.wp-block-archives-dropdown select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: var(--sp-radius);
  background: var(--sp-surface);
  color: var(--sp-ink);
  font-size: 0.875rem;
}

.dark .widget select {
  border-color: #374151;
}

/* Tag cloud: uniform pills (core prints inline font sizes). */
.wp-block-tag-cloud,
.tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.wp-block-tag-cloud a,
.tagcloud a {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--sp-surface-2);
  color: #374151;
  font-size: 0.75rem !important;
  font-weight: 600;
  text-decoration: none;
}

.dark .wp-block-tag-cloud a,
.dark .tagcloud a {
  color: #d1d5db;
}

.wp-block-tag-cloud a:hover,
.tagcloud a:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* Search (block + classic). */
.wp-block-search__inside-wrapper,
.widget_search form {
  display: flex;
  gap: 0.4rem;
}

.wp-block-search__label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.wp-block-search__input,
.widget_search input[type='search'],
.widget_search input[type='text'] {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: var(--sp-radius);
  background: var(--sp-surface);
  color: var(--sp-ink);
  font-size: 0.875rem;
}

.dark .wp-block-search__input,
.dark .widget_search input[type='search'] {
  border-color: #374151;
}

.wp-block-search__input:focus,
.widget_search input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.wp-block-search__button,
.widget_search button,
.widget_search input[type='submit'] {
  padding: 0.55rem 0.9rem;
  border: 0;
  border-radius: var(--sp-radius);
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}

/* Social Links block. */
.wp-block-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wp-block-social-links .wp-social-link {
  margin: 0;
  padding: 0;
  border: 0;
}

.wp-block-social-links .wp-block-social-link-anchor,
.wp-block-social-links .wp-social-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 999px;
  background: var(--sp-surface-2);
  color: #4b5563;
}

.wp-block-social-links svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.wp-block-social-links .wp-block-social-link-anchor:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* Calendar block / widget. */
.wp-block-calendar table,
.widget_calendar table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  text-align: center;
}

.wp-block-calendar th,
.wp-block-calendar td,
.widget_calendar th,
.widget_calendar td {
  padding: 0.35rem 0;
  border: 1px solid var(--sp-line);
}

.wp-block-calendar caption,
.widget_calendar caption {
  padding-bottom: 0.4rem;
  font-weight: 800;
  text-transform: uppercase;
}

.wp-block-calendar a,
.widget_calendar a {
  color: var(--color-primary);
  font-weight: 800;
}

/* Core "Latest Posts" fallback (only seen if the render_block override in
   inc/blocks.php is disabled through its filter). */
.wp-block-latest-posts.wp-block-latest-posts__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wp-block-latest-posts__list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--sp-line);
}

.wp-block-latest-posts__post-title {
  color: var(--sp-ink);
  font-weight: 600;
  text-decoration: none;
}

.wp-block-latest-posts__post-date {
  display: block;
  color: var(--sp-muted);
  font-size: 0.75rem;
}

/* Image / text widgets. */
.widget img {
  max-width: 100%;
  height: auto;
  border-radius: var(--sp-radius);
}

.widget p {
  margin: 0 0 0.75rem;
  line-height: 1.55;
}

/* ================================================================== *
 * 11. Content blocks inside articles/pages (.prose)
 * ================================================================== */

.prose a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.dark .prose a {
  color: #93c5fd;
}

/* Buttons block. */
.prose .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5em 0;
}

.prose .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--sp-radius);
  background: var(--color-primary);
  color: #ffffff !important;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none !important;
}

.prose .is-style-outline .wp-block-button__link {
  border: 2px solid currentColor;
  background: transparent;
  color: var(--color-primary) !important;
}

/* Quote: brand rule + no auto quote marks fighting Typography's. */
.prose blockquote.wp-block-quote {
  margin: 1.75em 0;
  padding: 0.25em 0 0.25em 1.1em;
  border-left: 4px solid var(--cat, var(--color-primary));
  color: var(--sp-ink);
  font-size: 1.15em;
  font-style: normal;
  font-weight: 600;
  line-height: 1.5;
}

.prose blockquote.wp-block-quote cite {
  display: block;
  margin-top: 0.5em;
  color: var(--sp-muted);
  font-size: 0.8em;
  font-style: normal;
  font-weight: 500;
}

/* Details (accordion). */
.prose details {
  margin: 1em 0;
  padding: 0.75em 1em;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
}

.prose details summary {
  cursor: pointer;
  font-weight: 700;
}

/* File block. */
.prose .wp-block-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
}

.prose .wp-block-file__button {
  padding: 0.45rem 0.9rem;
  border-radius: var(--sp-radius);
  background: var(--color-primary);
  color: #ffffff !important;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
}

/* Media & Text. */
.prose .wp-block-media-text {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  margin: 1.5em 0;
}

@media (min-width: 640px) {
  .prose .wp-block-media-text {
    grid-template-columns: 1fr 1fr;
  }

  .prose .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
    order: 2;
  }
}

/* Latest Posts / Categories blocks dropped INTO an article: no prose
   bullets/margins. */
.prose .sp-post-list,
.prose .sp-post-list li,
.prose .wp-block-categories-list,
.prose .wp-block-categories-list li {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

.prose .sp-post-list li::marker,
.prose .wp-block-categories-list li::marker {
  content: none;
}

.prose .sp-post-list a {
  color: var(--sp-ink);
  text-decoration: none;
}

.prose .sp-post-list img {
  margin: 0;
  border-radius: 0;
}

/* "Section heading" block style (Heading > Styles > Naslov sekcije). */
.is-style-sportak-section {
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--color-primary);
  font-family: var(--sp-font-heading);
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* ================================================================== *
 * 12. Embeds & video
 *     Replaces the old blanket `.prose iframe { aspect-ratio: 16/9 }` and
 *     `.prose video { aspect-ratio: 16/9; object-fit: cover }` rules,
 *     which cropped Instagram reels, TikToks and portrait uploads.
 * ================================================================== */

.prose .wp-block-embed,
.prose .sp-embed {
  width: 100%;
  margin: 1.75em auto;
}

.prose .wp-block-embed__wrapper {
  position: relative;
  width: 100%;
}

/* Default for any iframe: never wider than the column, never forced into a
   ratio. Its own width/height attributes (or its script) decide. */
.prose iframe {
  display: block;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  border: 0;
}

/* Real video players: fixed ratio, full width. Covers the Embed block
   (wp-has-aspect-ratio + wp-embed-aspect-*), oEmbeds via our wrapper
   (.sp-embed--video), and raw pasted iframes by src. */
.prose .sp-embed--video iframe,
.prose .wp-embed-aspect-16-9 iframe,
.prose iframe[src*='youtube.com/embed'],
.prose iframe[src*='youtube-nocookie.com/embed'],
.prose iframe[src*='player.vimeo.com'],
.prose iframe[src*='dailymotion.com/embed'],
.prose iframe[src*='player.twitch.tv'] {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--sp-radius);
  background: #000;
}

.prose .wp-embed-aspect-4-3 iframe { aspect-ratio: 4 / 3; }
.prose .wp-embed-aspect-1-1 iframe { aspect-ratio: 1 / 1; }
.prose .wp-embed-aspect-21-9 iframe { aspect-ratio: 21 / 9; }

/* Portrait video players: YouTube Shorts, 9:16 embeds. */
.prose .sp-embed--video-portrait iframe,
.prose .wp-embed-aspect-9-16 iframe {
  width: min(100%, 22.5rem);
  height: auto;
  aspect-ratio: 9 / 16;
}

/* Social embeds: centred, natural width, height owned by their script.
   (No height / aspect-ratio here, on purpose.) */
.prose .sp-embed--social,
.prose .wp-block-embed.is-type-rich {
  display: flex;
  justify-content: center;
}

.prose .sp-embed--social > *,
.prose .wp-block-embed.is-type-rich .wp-block-embed__wrapper {
  width: 100%;
  max-width: 100%;
}

.prose .wp-block-embed.is-type-rich .wp-block-embed__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Instagram: 326–540px per Instagram's own guidance. */
.prose blockquote.instagram-media,
.prose iframe.instagram-media {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 540px !important;
  margin: 0 auto !important;
  aspect-ratio: auto !important;
}

/* TikTok. */
.prose blockquote.tiktok-embed,
.prose .tiktok-embed iframe {
  width: 100%;
  min-width: 0 !important;
  max-width: 605px !important;
  margin: 0 auto !important;
  aspect-ratio: auto !important;
}

/* X / Twitter. */
.prose .twitter-tweet,
.prose .twitter-tweet-rendered {
  margin-left: auto !important;
  margin-right: auto !important;
}

.prose .twitter-tweet iframe {
  aspect-ratio: auto !important;
}

/* Facebook post/video plugin iframes keep their own pixel size. */
.prose iframe[src*='facebook.com/plugins'] {
  width: auto;
  aspect-ratio: auto;
}

/* Spotify / SoundCloud: full width, fixed player height from attributes. */
.prose .sp-embed--audio iframe,
.prose iframe[src*='open.spotify.com'],
.prose iframe[src*='soundcloud.com'] {
  width: 100%;
  aspect-ratio: auto;
  border-radius: 0.75rem;
}

/* Before the provider script runs, Tailwind Typography styles these
   blockquotes like quotes (italic, rule, curly quotes) -- undo it. */
.prose blockquote.instagram-media,
.prose blockquote.tiktok-embed,
.prose blockquote.twitter-tweet,
.prose blockquote.text-post-media {
  padding: 0;
  border: 0;
  font-style: normal;
  font-weight: 400;
  quotes: none;
}

.prose blockquote.instagram-media p::before,
.prose blockquote.instagram-media p::after,
.prose blockquote.tiktok-embed p::before,
.prose blockquote.tiktok-embed p::after,
.prose blockquote.twitter-tweet p::before,
.prose blockquote.twitter-tweet p::after {
  content: none;
}

/* Iframes resized by assets/js/embeds.js from their own attributes. */
.prose iframe.sp-iframe--portrait {
  margin-left: auto;
  margin-right: auto;
}

/* Self-hosted video: show the WHOLE frame, whatever its shape. */
.prose .wp-video,
.prose .wp-block-video {
  width: 100% !important;
  max-width: 100%;
  margin: 1.75em auto;
}

.prose .wp-video video,
.prose .wp-block-video video,
.prose video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
  margin: 0 auto;
  border: 0;
  border-radius: var(--sp-radius);
  background: #000;
  object-fit: contain;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  accent-color: var(--color-primary);
}

/* Portrait (9:16, reels/shorts uploaded directly): narrow + centred. */
.prose video.sp-video--portrait,
.prose .sp-video--portrait video {
  width: auto;
  max-width: min(100%, 26rem);
}

.prose video.sp-video--square {
  max-width: min(100%, 36rem);
}

.prose .wp-block-video figcaption {
  text-align: center;
}

.prose video:fullscreen,
.prose video:-webkit-full-screen {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

/* ================================================================== *
 * 13. Footer
 * ================================================================== */

.sp-footer {
  --sp-footer-bg: color-mix(in srgb, var(--color-primary) 88%, #000);
  --sp-footer-fg: rgba(255, 255, 255, 0.72);
  --sp-footer-strong: #ffffff;
  --sp-footer-line: rgba(255, 255, 255, 0.12);
  --sp-footer-chip: rgba(255, 255, 255, 0.08);
  margin-top: 2.5rem;
  background: var(--color-primary);
  background: var(--sp-footer-bg);
  color: var(--sp-footer-fg);
  font-size: 0.875rem;
}

.sp-footer--light {
  --sp-footer-bg: #ffffff;
  --sp-footer-fg: #4b5563;
  --sp-footer-strong: var(--color-primary);
  --sp-footer-line: #e5e7eb;
  --sp-footer-chip: #f3f4f6;
  border-top: 1px solid #e5e7eb;
}

.dark .sp-footer--light {
  --sp-footer-bg: #111827;
  --sp-footer-fg: #9ca3af;
  --sp-footer-strong: #f9fafb;
  --sp-footer-line: #1f2937;
  --sp-footer-chip: #1f2937;
}

.dark .sp-footer--light {
  border-top-color: #1f2937;
}

.dark .sp-footer--dark {
  --sp-footer-bg: #0b1120;
}

.sp-footer a {
  color: inherit;
  text-decoration: none;
}

.sp-footer a:hover {
  color: var(--sp-footer-strong);
}

.sp-footer__strip {
  border-bottom: 1px solid var(--sp-footer-line);
}

.sp-footer__strip-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-top: 1rem;
  padding-bottom: 1rem;
  scrollbar-width: none;
}

.sp-footer__strip-inner::-webkit-scrollbar {
  display: none;
}

.sp-footer__strip a {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem 0.3rem 0.3rem;
  border-radius: 999px;
  background: var(--sp-footer-chip);
  color: var(--sp-footer-strong);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

.sp-footer__strip a:hover {
  background: var(--cat);
  color: var(--cat-on);
}

.sp-footer__strip a:hover .sp-cat-tile {
  background: var(--cat-on);
  color: var(--cat);
}

.sp-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .sp-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .sp-footer__grid {
    grid-template-columns: 1.4fr 1.2fr 1fr 1fr;
    gap: 2.5rem;
  }
}

.sp-footer__logo {
  display: inline-flex;
  color: var(--sp-footer-strong);
}

.sp-footer--dark .sp-footer__logo img {
  filter: brightness(0) invert(1);
}

.sp-footer__about {
  margin: 0.9rem 0 1.1rem;
  max-width: 22rem;
  line-height: 1.6;
}

.sp-footer__title,
.sp-footer .sp-widget-title,
.sp-footer .widget > .wp-block-heading:first-child,
.sp-footer .widget .wp-block-group > .wp-block-heading:first-child {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  color: var(--sp-footer-strong);
  font-family: var(--sp-font-heading);
  font-size: 0.75rem !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sp-footer .sp-widget-title::after,
.sp-footer .widget > .wp-block-heading:first-child::after,
.sp-footer .widget .wp-block-group > .wp-block-heading:first-child::after {
  display: none;
}

.sp-footer__links {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-footer__links--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
}

.sp-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.sp-footer__contact {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-footer__contact li {
  display: flex;
  gap: 0.6rem;
  line-height: 1.45;
}

.sp-footer__contact svg {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  opacity: 0.7;
}

.sp-footer .sp-social a {
  background: var(--sp-footer-chip);
  color: var(--sp-footer-strong);
}

.sp-footer .sp-social a:hover {
  background: var(--sp-footer-strong);
  color: var(--sp-footer-bg);
}

/* Widgets dropped into the footer columns. */
.sp-footer .widget {
  color: var(--sp-footer-fg);
}

.sp-footer .widget li {
  border-color: var(--sp-footer-line);
}

.sp-footer .widget li a,
.sp-footer .sp-post-list__title {
  color: var(--sp-footer-strong);
}

.sp-footer .sp-post-list__item {
  border-color: var(--sp-footer-line);
}

.sp-footer .sp-post-list__meta {
  color: var(--sp-footer-fg);
}

.sp-footer .wp-block-categories-list li.cat-item > a,
.sp-footer .widget_categories li.cat-item > a {
  color: var(--sp-footer-strong);
}

.sp-footer .wp-block-categories-list li.cat-item > a::before,
.sp-footer .widget_categories li.cat-item > a::before {
  background: var(--cat) var(--cat-icon-d) center / 1rem 1rem no-repeat;
}

.sp-footer__wide {
  padding-bottom: 2rem;
}

.sp-footer__bottom {
  border-top: 1px solid var(--sp-footer-line);
}

.sp-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  font-size: 0.75rem;
  text-align: center;
}

@media (min-width: 768px) {
  .sp-footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.sp-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-footer__credit {
  opacity: 0.8;
}

/* ================================================================== *
 * 14. Utilities
 * ================================================================== */

.sp-skip-link {
  position: absolute;
  left: 0.75rem;
  top: -10rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.sp-skip-link:focus {
  top: 0.75rem;
}

.sp-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--sp-footer-line, #e5e7eb);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.sp-back-to-top svg {
  width: 0.85rem;
  height: 0.85rem;
}

/* Consistent keyboard focus for everything the theme renders. */
.sp-nav-link:focus-visible,
.sp-drawer-link:focus-visible,
.sp-cat-label:focus-visible,
.sp-post-list a:focus-visible,
.sp-footer a:focus-visible,
.sp-section-head a:focus-visible {
  outline: 2px solid var(--cat, var(--color-primary));
  outline-offset: 2px;
  border-radius: 0.35rem;
}

/* Card radius option: cards/images rendered by the theme read this. */
.sp-radius {
  border-radius: var(--sp-radius) !important;
}

/* 404 */
.sp-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 1rem;
  text-align: center;
}

.sp-404__code {
  color: var(--color-primary);
  font-family: var(--sp-font-heading);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
}

.dark .sp-404__code {
  color: #ffffff;
}

/* ================================================================== *
 * 15. WordPress core elements (1.9.0)
 *     Core's own block-library CSS is still loaded (layout of Columns,
 *     Gallery, Cover, Group, Media & Text, Navigation...); this section
 *     only adds the theme's look and the classic-editor classes WordPress
 *     expects every theme to style.
 * ================================================================== */

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  position: fixed !important;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  border-radius: 0.5rem;
  background: #ffffff;
  color: var(--color-primary);
  font-weight: 700;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.2);
}

/* Classic + block alignments inside article text. */
.prose .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .prose .alignleft {
    float: left;
    max-width: 50%;
    margin: 0.35em 1.5em 1em 0;
  }

  .prose .alignright {
    float: right;
    max-width: 50%;
    margin: 0.35em 0 1em 1.5em;
  }
}

.prose::after {
  content: '';
  display: table;
  clear: both;
}

/* Wide / full alignment break out only in the "Puna širina" template;
   in the normal article column they simply use the full column. */
.sp-prose-wide > * {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.sp-prose-wide > .alignwide {
  max-width: 100%;
}

.sp-prose-wide > .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
}

/* Classic [gallery] shortcode. */
.prose .gallery {
  display: grid;
  gap: 0.5rem;
  margin: 1.5em 0;
}

.prose .gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.prose .gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.prose .gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.prose .gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }

.prose .gallery-item {
  margin: 0;
}

.prose .gallery-item img {
  margin: 0;
  aspect-ratio: 1;
}

.prose .gallery-caption {
  margin-top: 0.3rem;
  color: var(--sp-muted);
  font-size: 0.75rem;
  text-align: center;
}

/* Group / Cover with a background color from the palette. */
.prose .wp-block-group.has-background {
  padding: 1.25rem 1.5rem;
  border-radius: var(--sp-radius);
}

.prose .wp-block-group.has-background > :first-child {
  margin-top: 0;
}

.prose .wp-block-group.has-background > :last-child {
  margin-bottom: 0;
}

/* Separator. */
.prose hr,
.prose .wp-block-separator {
  height: 0;
  margin: 2em auto;
  border: 0;
  border-top: 2px solid var(--sp-line);
}

.prose .wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
  max-width: 6rem;
  border-top-color: var(--color-primary);
}

.dark .prose .wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
  border-top-color: #ffffff;
}

.prose .wp-block-separator.is-style-dots {
  border: 0;
  text-align: center;
}

.prose .wp-block-separator.is-style-dots::before {
  content: '···';
  color: var(--sp-muted);
  font-size: 1.5rem;
  letter-spacing: 1em;
  padding-left: 1em;
}

/* Tables: striped style in brand neutrals. */
.prose .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background: var(--sp-surface-2);
}

.prose .wp-block-table.is-style-stripes {
  border-bottom: 0;
}

.prose .wp-block-table thead {
  border-bottom: 2px solid var(--color-primary);
}

.dark .prose .wp-block-table thead {
  border-bottom-color: #ffffff;
}

/* Code / preformatted / verse. */
.prose .wp-block-code,
.prose pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: var(--sp-radius);
}

.prose .wp-block-verse {
  font-family: inherit;
  white-space: pre-wrap;
}

/* Audio. */
.prose .wp-block-audio audio,
.prose audio {
  width: 100%;
}

/* Footnotes block. */
.prose .wp-block-footnotes {
  margin-top: 2.5em;
  padding-top: 1em;
  border-top: 1px solid var(--sp-line);
  font-size: 0.85em;
}

/* Query Loop block (lists of posts placed in a page). */
.prose .wp-block-post-template {
  margin: 0;
  padding: 0;
  list-style: none;
}

.prose .wp-block-post-template > li {
  margin: 0 0 1.25rem;
  padding: 0 0 1.25rem;
  border-bottom: 1px solid var(--sp-line);
}

.prose .wp-block-post-title {
  margin: 0.4rem 0;
  font-family: var(--sp-font-heading);
  font-size: 1.15rem;
  line-height: 1.3;
}

.prose .wp-block-post-title a {
  color: var(--sp-ink);
  text-decoration: none;
}

.prose .wp-block-post-date {
  color: var(--sp-muted);
  font-size: 0.75rem;
}

.prose .wp-block-query-pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

/* Password-protected posts. */
.post-password-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  padding: 1.25rem;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  background: var(--sp-surface);
}

.post-password-form p {
  margin: 0;
}

.post-password-form input[type='password'] {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: var(--sp-radius);
  background: var(--sp-surface);
  color: var(--sp-ink);
}

.post-password-form input[type='submit'],
.sp-button,
.comment-form .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border: 0;
  border-radius: var(--sp-radius);
  background: var(--color-primary);
  color: #ffffff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.dark .post-password-form input[type='submit'],
.dark .sp-button,
.dark .comment-form .submit {
  background: #ffffff;
  color: var(--color-primary);
}

/* Multi-page article links. */
.sp-page-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 2rem 0 0;
  font-size: 0.875rem;
}

.sp-page-links__label {
  margin-right: 0.25rem;
  color: var(--sp-muted);
  font-weight: 700;
}

.sp-page-links a span,
.sp-page-links > span:not(.sp-page-links__label) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.6rem;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
}

.sp-page-links > span:not(.sp-page-links__label) {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #ffffff;
}

.sp-page-links a {
  color: var(--sp-ink);
  text-decoration: none;
}

/* Previous / next article. */
.sp-post-nav .nav-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .sp-post-nav .nav-links {
    grid-template-columns: 1fr 1fr;
  }

  .sp-post-nav .nav-next {
    grid-column: 2;
    text-align: right;
  }
}

.sp-post-nav a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  height: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  background: var(--sp-surface);
  text-decoration: none;
}

.sp-post-nav a:hover {
  border-color: var(--color-primary);
}

.sp-post-nav__dir {
  color: var(--sp-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sp-post-nav__title {
  color: var(--sp-ink);
  font-family: var(--sp-font-heading);
  font-weight: 700;
  line-height: 1.35;
}

/* Comments. */
.sp-comment-list,
.sp-comment-list .children {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-comment-list .children {
  margin-left: 1.25rem;
  padding-left: 1rem;
  border-left: 2px solid var(--sp-line);
}

.sp-comment-list .comment-body {
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  background: var(--sp-surface);
}

.sp-comment-list .comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: var(--sp-muted);
}

.sp-comment-list .comment-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--sp-ink);
  font-size: 0.875rem;
}

.sp-comment-list .comment-author .avatar {
  border-radius: 999px;
}

.sp-comment-list .says {
  display: none;
}

.sp-comment-list .comment-metadata a {
  color: inherit;
  text-decoration: none;
}

.sp-comment-list .comment-content {
  color: var(--sp-ink);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.sp-comment-list .reply a {
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
}

.dark .sp-comment-list .reply a {
  color: #ffffff;
}

.sp-comment-list .bypostauthor > .comment-body {
  border-left: 4px solid var(--color-primary);
}

.sp-comment-list .bypostauthor > .comment-body .fn::after {
  content: 'Autor';
  margin-left: 0.4rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  vertical-align: middle;
}

.sp-comment-list .comment-awaiting-moderation {
  display: block;
  margin-top: 0.4rem;
  color: var(--sp-accent);
  font-size: 0.75rem;
  font-style: normal;
}

.sp-comments-pagination .nav-links {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin: 1rem 0;
  font-size: 0.875rem;
  font-weight: 700;
}

.sp-comments__closed {
  color: var(--sp-muted);
  font-size: 0.875rem;
}

.sp-comment-respond {
  margin-top: 2rem;
}

.comment-form {
  display: grid;
  gap: 0.9rem;
}

.comment-form p {
  margin: 0;
}

.comment-form label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--sp-ink);
  font-size: 0.8125rem;
  font-weight: 700;
}

.comment-form input[type='text'],
.comment-form input[type='email'],
.comment-form input[type='url'],
.comment-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: var(--sp-radius);
  background: var(--sp-surface);
  color: var(--sp-ink);
  font: inherit;
  font-size: 0.9375rem;
}

.dark .comment-form input,
.dark .comment-form textarea {
  border-color: #374151;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.comment-form .comment-form-cookies-consent {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.8125rem;
}

.comment-form .comment-form-cookies-consent label {
  display: inline;
  font-weight: 400;
}

.comment-notes,
.logged-in-as {
  color: var(--sp-muted);
  font-size: 0.8125rem;
}

#cancel-comment-reply-link {
  margin-left: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* searchform.php */
.sp-search-form {
  display: flex;
  gap: 0.4rem;
}

.sp-search-form__input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: var(--sp-radius);
  background: var(--sp-surface);
  color: var(--sp-ink);
  font-size: 0.875rem;
}

.dark .sp-search-form__input {
  border-color: #374151;
}

.sp-search-form__button {
  padding: 0.55rem 0.9rem;
  border: 0;
  border-radius: var(--sp-radius);
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}

.dark .sp-search-form__button {
  background: #ffffff;
  color: var(--color-primary);
}

/* ================================================================== *
 * 16. Newsroom patterns (inc/patterns.php)
 * ================================================================== */

.prose .sp-score {
  margin: 1.75em 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--sp-line);
  border-top: 4px solid var(--cat, var(--color-primary));
  border-radius: var(--sp-radius);
  background: var(--sp-surface);
  text-align: center;
}

.prose .sp-score p {
  margin: 0;
}

.prose .sp-score__meta {
  color: var(--sp-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prose .sp-score__row {
  align-items: center !important;
  margin: 0.75rem 0 !important;
  gap: 0.5rem !important;
}

.prose .sp-score__team {
  color: var(--sp-ink);
  font-family: var(--sp-font-heading);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.prose .sp-score__result {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 0.5rem;
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--sp-font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dark .prose .sp-score__result {
  background: #ffffff;
  color: var(--color-primary);
}

.prose .sp-score__scorers {
  color: var(--sp-muted);
  font-size: 0.8125rem;
}

.prose .sp-infobox {
  margin: 1.75em 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--color-primary);
  border-radius: var(--sp-radius);
  background: var(--sp-surface-2);
}

.dark .prose .sp-infobox {
  border-left-color: #ffffff;
}

.prose .sp-infobox > :first-child {
  margin-top: 0;
}

.prose .sp-infobox > :last-child {
  margin-bottom: 0;
}

.prose .sp-readmore {
  padding: 0.75rem 1rem;
  border-top: 2px solid var(--color-primary);
  border-bottom: 1px solid var(--sp-line);
  font-size: 0.95em;
}

.dark .prose .sp-readmore {
  border-top-color: #ffffff;
}

.prose .sp-readmore strong {
  color: var(--color-primary);
  text-transform: uppercase;
  font-size: 0.8em;
  letter-spacing: 0.04em;
}

.dark .prose .sp-readmore strong {
  color: #ffffff;
}

.prose blockquote.sp-statement {
  font-size: 1.3em;
  font-weight: 700;
}

.prose blockquote.sp-statement::before {
  content: '“';
  display: block;
  height: 0.6em;
  color: var(--cat, var(--color-primary));
  font-size: 2.5em;
  line-height: 1;
}

.prose .sp-standings td:first-child,
.prose .sp-standings th:first-child,
.prose .sp-standings td:last-child,
.prose .sp-standings th:last-child {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.prose .sp-standings td:last-child {
  font-weight: 800;
}

/* ================================================================== *
 * 17. Print (articles print as clean text: no header chrome, rails, ads)
 * ================================================================== */

@media print {
  .sp-header,
  header.sticky,
  .sp-footer,
  aside,
  .sportak-mobile-menu,
  [data-sportak-ad-slot],
  .sp-post-nav,
  .sp-comments,
  .sp-social,
  .sp-back-to-top,
  .sp-skip-link {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .prose a::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #555555;
  }

  .prose img,
  .prose figure {
    break-inside: avoid;
  }
}

/* ================================================================== *
 * 1.10.0 additions
 * 18. Block styles   19. Breaking bar & live   20. Brand (skew) heads
 * 21. Panels / mobile home   22. Prev/next   23. Follow & notifications
 * 24. Sport blocks   25. Hub   26. Plugin compat (SportsPress)
 * ================================================================== */

/* -- 18. Block styles (editor > Styles) ------------------------------ */

.is-style-sportak-skew:not(hr) {
  display: inline-block;
  padding: 0.4em 1.15em;
  background: var(--color-primary);
  color: #ffffff !important;
  font-family: var(--sp-font-heading);
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  clip-path: polygon(0.6em 0, 100% 0, calc(100% - 0.6em) 100%, 0 100%);
}

.dark .is-style-sportak-skew:not(hr) {
  background: #ffffff;
  color: var(--color-primary) !important;
}

.prose p.is-style-sportak-lead {
  color: var(--sp-ink);
  font-size: 1.2em;
  font-weight: 500;
  line-height: 1.55;
}

.prose p.is-style-sportak-kicker {
  margin-bottom: 0.3em;
  color: var(--cat-ink, var(--color-primary));
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dark .prose p.is-style-sportak-kicker {
  color: var(--cat-ink-d, #ffffff);
}

.prose .is-style-sportak-note {
  padding: 0.9rem 1.1rem;
  border-left: 4px solid var(--color-primary);
  border-radius: var(--sp-radius);
  background: rgba(38, 34, 98, 0.06);
}

.dark .prose .is-style-sportak-note {
  border-left-color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.prose .wp-block-group.is-style-sportak-card,
.prose .wp-block-media-text.is-style-sportak-card,
.prose .wp-block-columns.is-style-sportak-cards > .wp-block-column {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--sp-line);
  border-radius: 0.875rem;
  background: var(--sp-surface);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.06);
}

.prose .wp-block-media-text.is-style-sportak-card {
  overflow: hidden;
  padding: 0;
}

.prose .wp-block-media-text.is-style-sportak-card .wp-block-media-text__content {
  padding: 1.1rem 1.25rem;
}

.prose .wp-block-group.is-style-sportak-highlight {
  padding: 1.25rem 1.5rem;
  border-radius: 0.875rem;
  background: var(--color-primary);
  color: #ffffff;
}

.prose .wp-block-group.is-style-sportak-highlight :where(h1, h2, h3, h4, p, li, a, strong) {
  color: #ffffff;
}

.prose .wp-block-group.is-style-sportak-card > :first-child,
.prose .wp-block-group.is-style-sportak-highlight > :first-child,
.prose .is-style-sportak-note > :first-child {
  margin-top: 0;
}

.prose .wp-block-group.is-style-sportak-card > :last-child,
.prose .wp-block-group.is-style-sportak-highlight > :last-child,
.prose .is-style-sportak-note > :last-child {
  margin-bottom: 0;
}

.prose .wp-block-image.is-style-sportak-rounded img {
  border-radius: 1rem;
}

.prose .wp-block-image.is-style-sportak-framed {
  overflow: hidden;
  border: 1px solid var(--sp-line);
  border-radius: 0.875rem;
  background: var(--sp-surface);
}

.prose .wp-block-image.is-style-sportak-framed img {
  margin: 0;
  border-radius: 0;
}

.prose .wp-block-image.is-style-sportak-framed figcaption {
  margin: 0;
  padding: 0.55rem 0.85rem;
  background: var(--color-primary);
  color: #ffffff;
  font-style: normal;
  text-align: left;
}

.prose .wp-block-gallery.is-style-sportak-mosaic {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px !important;
}

.prose .wp-block-gallery.is-style-sportak-mosaic > .wp-block-image {
  width: auto !important;
  margin: 0 !important;
  aspect-ratio: 1;
}

.prose .wp-block-gallery.is-style-sportak-mosaic > .wp-block-image:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.prose .wp-block-gallery.is-style-sportak-mosaic img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.prose ul.is-style-sportak-checks,
.prose ol.is-style-sportak-numbers {
  padding-left: 0;
  list-style: none;
}

.prose ul.is-style-sportak-checks > li,
.prose ol.is-style-sportak-numbers > li {
  position: relative;
  padding-left: 2rem;
}

.prose ul.is-style-sportak-checks > li::marker,
.prose ol.is-style-sportak-numbers > li::marker {
  content: none;
}

.prose ul.is-style-sportak-checks > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  background: var(--cat, var(--color-primary)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}

.prose ol.is-style-sportak-numbers {
  counter-reset: sp-num;
}

.prose ol.is-style-sportak-numbers > li {
  counter-increment: sp-num;
}

.prose ol.is-style-sportak-numbers > li::before {
  content: counter(sp-num);
  position: absolute;
  left: 0;
  top: 0.15em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
}

.dark .prose ol.is-style-sportak-numbers > li::before {
  background: #ffffff;
  color: var(--color-primary);
}

.prose blockquote.is-style-sportak-statement {
  padding-left: 1.1em;
  border-left: 4px solid var(--cat, var(--color-primary));
  font-size: 1.3em;
  font-style: normal;
  font-weight: 700;
}

.prose .wp-block-pullquote.is-style-sportak-big {
  padding: 1.5rem 0;
  border-top: 4px solid var(--color-primary);
  border-bottom: 4px solid var(--color-primary);
  text-align: center;
}

.prose .wp-block-pullquote.is-style-sportak-big blockquote {
  margin: 0;
  border: 0;
  padding: 0;
}

.prose .wp-block-pullquote.is-style-sportak-big p {
  color: var(--sp-ink);
  font-family: var(--sp-font-heading);
  font-size: 1.6em;
  font-style: normal;
  font-weight: 800;
  line-height: 1.3;
}

.prose .wp-block-table.is-style-sportak-standings table,
.prose .wp-block-table.is-style-sportak-clean table {
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.prose .wp-block-table.is-style-sportak-standings thead th {
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prose .wp-block-table.is-style-sportak-standings td,
.prose .wp-block-table.is-style-sportak-standings th {
  padding: 0.5rem 0.6rem;
  border: 0;
  border-bottom: 1px solid var(--sp-line);
}

.prose .wp-block-table.is-style-sportak-standings tbody tr:nth-child(-n + 3) td:first-child {
  box-shadow: inset 3px 0 0 #16a34a;
}

.prose .wp-block-table.is-style-sportak-standings td:last-child {
  font-weight: 800;
}

.prose .wp-block-table.is-style-sportak-clean td,
.prose .wp-block-table.is-style-sportak-clean th {
  border: 0;
  border-bottom: 1px solid var(--sp-line);
}

.prose details.is-style-sportak-faq {
  padding: 0;
  overflow: hidden;
  border-radius: 0.75rem;
}

.prose details.is-style-sportak-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  list-style: none;
}

.prose details.is-style-sportak-faq summary::-webkit-details-marker {
  display: none;
}

.prose details.is-style-sportak-faq summary::after {
  content: '+';
  flex: none;
  color: var(--color-primary);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease;
}

.prose details.is-style-sportak-faq[open] summary::after {
  transform: rotate(45deg);
}

.prose details.is-style-sportak-faq > :not(summary) {
  margin: 0;
  padding: 0 1rem 1rem;
}

.prose .wp-block-button.is-style-sportak-pill .wp-block-button__link {
  border-radius: 999px;
}

.prose hr.is-style-sportak-skew,
.prose .wp-block-separator.is-style-sportak-skew {
  width: 7rem;
  max-width: 7rem;
  height: 0.6rem;
  border: 0 !important;
  background: repeating-linear-gradient(-60deg, var(--color-primary) 0 6px, transparent 6px 12px);
}

.dark .prose .wp-block-separator.is-style-sportak-skew {
  background: repeating-linear-gradient(-60deg, #ffffff 0 6px, transparent 6px 12px);
}

.prose .wp-block-cover.is-style-sportak-overlay .wp-block-cover__background {
  opacity: 1 !important;
  background: linear-gradient(to top, color-mix(in srgb, var(--color-primary) 92%, #000) 0%, transparent 75%) !important;
}

/* -- 19. Breaking bar & live badge ---------------------------------- */

.sp-breaking {
  background: var(--sp-accent);
  color: #ffffff;
}

.sp-breaking__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  font-size: 0.8125rem;
}

.sp-breaking__label {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sp-breaking .sp-live-dot,
.sp-live-badge .sp-live-dot {
  background: #ffffff;
  box-shadow: none;
  animation: sp-blink 1.4s ease-in-out infinite;
}

@keyframes sp-blink {
  50% { opacity: 0.35; }
}

.sp-breaking__title {
  overflow: hidden;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sp-breaking__title:hover {
  text-decoration: underline;
}

.sp-live-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--sp-accent);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.sp-live-badge .sp-live-dot {
  width: 0.4rem;
  height: 0.4rem;
}

/* -- 20. Brand section heads ("ZA INFORMACIJU VIŠE." label) --------- */

.sp-section-head--brand {
  border-bottom-color: var(--color-primary);
}

.dark .sp-section-head--brand {
  border-bottom-color: #ffffff;
}

.sp-section-head--brand .sp-section-head__title {
  margin-bottom: 0;
  padding: 0.42rem 1.15rem 0.38rem;
  border-bottom: 0;
  background: var(--color-primary);
  color: #ffffff;
  clip-path: polygon(0.55rem 0, 100% 0, calc(100% - 0.55rem) 100%, 0 100%);
}

.sp-section-head--brand .sp-section-head__title a,
.sp-section-head--brand .sp-section-head__title a:hover > span:last-child {
  color: #ffffff;
}

.dark .sp-section-head--brand .sp-section-head__title {
  background: #ffffff;
  color: var(--color-primary);
}

.dark .sp-section-head--brand .sp-section-head__title a,
.dark .sp-section-head--brand .sp-section-head__title a:hover > span:last-child {
  color: var(--color-primary);
}

.sp-section-head--brand .sp-live-dot {
  background: #ff4d4d;
}

.sp-section-head--brand.sp-section-head--sm .sp-section-head__title {
  padding: 0.32rem 0.95rem 0.3rem;
  font-size: 0.8125rem;
}

/* -- 21. Panels: mobile homepage, hub cards ------------------------- */

.sp-panel {
  min-width: 0;
  overflow: hidden;
  padding: 0.9rem;
  border: 1px solid #edf0f3;
  border-radius: 0.875rem;
  background: #ffffff;
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.06);
}

.dark .sp-panel {
  border-color: #273244;
  background: #1a2231;
}

.sp-panel > .sp-section-head {
  margin-bottom: 0.85rem;
}

.sp-panel > article.group:first-of-type,
.sp-panel > .sp-panel__lead {
  margin-bottom: 0.75rem;
  border-radius: 0.6rem;
}

/* 1.10.1 FIX: `display` only below md. In 1.10.0 this rule (loaded after
   Tailwind) overrode `md:hidden`, so the phone-only panels -- with their
   full-width lead photo -- also rendered on desktop on top of the layout.
   Rule of thumb for this file: never set `display` on an element that also
   carries a Tailwind visibility class (hidden / md:hidden / lg:flex ...)
   unless it's inside the matching media query. */
.sp-mobile-home {
  display: none;
}

@media (max-width: 767px) {
  .sp-mobile-home {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 1rem;
  }

  .sp-mobile-home > * {
    min-width: 0;
  }
}

@media (max-width: 767px) {
  /* Each homepage category section becomes its own card, same style. */
  .sp-home-section {
    padding: 0.9rem;
    border: 1px solid #edf0f3;
    border-radius: 0.875rem;
    background: #ffffff;
    box-shadow: 0 1px 3px rgb(15 23 42 / 0.06);
  }

  .dark .sp-home-section {
    border-color: #273244;
    background: #1a2231;
  }

  .sp-home-section .sp-section-head {
    margin-bottom: 0.75rem;
  }

  /* On phones the grid cards are list rows: drop the last row border. */
  .sp-home-section article:last-child,
  .sp-panel .sp-post-list__item:last-child {
    border-bottom: 0;
  }

  .sp-home-section article.group[class*='aspect-'] {
    margin-bottom: 0.35rem;
    border-radius: 0.6rem;
  }

  /* Slideshow: rounded like the cards. */
  .sportak-slideshow,
  [data-sportak-slideshow] {
    overflow: hidden;
    border-radius: 0.875rem;
  }
}

/* -- 22. Previous / next article ------------------------------------ */

.sp-adjacent {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-width: 48rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .sp-adjacent {
    grid-template-columns: 1fr 1fr;
  }
}

.sp-adjacent__spacer {
  display: none;
}

@media (min-width: 640px) {
  .sp-adjacent__spacer {
    display: block;
  }
}

.sp-adjacent__card {
  display: flex;
  gap: 0.85rem;
  align-items: stretch;
  padding: 0.7rem;
  border: 1px solid var(--sp-line);
  border-radius: 0.875rem;
  background: var(--sp-surface);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.sp-adjacent__card:hover {
  border-color: var(--cat);
  box-shadow: 0 8px 20px -8px rgb(15 23 42 / 0.25);
  transform: translateY(-1px);
}

@media (min-width: 640px) {
  .sp-adjacent__card--next {
    flex-direction: row-reverse;
    text-align: right;
  }

  .sp-adjacent__card--next .sp-adjacent__body {
    align-items: flex-end;
  }

  .sp-adjacent__card--next .sp-cat-label {
    align-self: flex-end;
  }
}

.sp-adjacent__thumb {
  position: relative;
  display: block;
  flex: none;
  width: 6.5rem;
  overflow: hidden;
  border-radius: 0.6rem;
  background: var(--cat-soft);
}

.sp-adjacent__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sp-adjacent__card:hover .sp-adjacent__thumb img {
  transform: scale(1.05);
}

.sp-adjacent__thumb-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cat-ink);
  font-size: 2rem;
}

.sp-adjacent__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  padding: 0.15rem 0;
}

.sp-adjacent__dir {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--sp-muted);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sp-adjacent__dir svg {
  width: 0.85rem;
  height: 0.85rem;
}

.sp-adjacent__title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--sp-ink);
  font-family: var(--sp-font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.sp-adjacent__time {
  margin-top: auto;
  color: var(--sp-muted);
  font-size: 0.75rem;
}

/* -- 23. Follow buttons, follow card, notifications panel ----------- */

.sp-follow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.9rem;
  border: 1.5px solid var(--cat);
  border-radius: 999px;
  background: transparent;
  color: var(--cat-ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dark .sp-follow {
  color: var(--cat-ink-d);
}

.sp-follow:hover,
.sp-follow.is-following {
  background: var(--cat);
  color: var(--cat-on);
}

.sp-follow__icon {
  width: 1rem;
  height: 1rem;
}

.sp-follow.is-following .sp-follow__icon:not(.sp-icon) {
  fill: currentColor;
}

.sp-follow--hero {
  border-color: rgb(255 255 255 / 0.45);
  background: rgb(255 255 255 / 0.14);
  color: inherit;
}

.dark .sp-follow--hero {
  color: inherit;
}

.sp-follow--hero:hover,
.sp-follow--hero.is-following {
  border-color: #ffffff;
  background: #ffffff;
  color: color-mix(in srgb, var(--cat) 70%, #000);
}

.sp-cat-hero__aside {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  margin-left: auto;
  align-self: center;
}

/* Phones: the button sits on its own line under the title, full width of
   whatever space is left, instead of competing with it. */
@media (max-width: 480px) {
  .sp-cat-hero__aside {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin-left: 0;
  }

  .sp-cat-hero__aside .sp-cat-hero__count {
    margin-left: auto;
    display: inline !important;
  }
}

.sp-cat-hero__aside .sp-cat-hero__count {
  margin-left: 0;
  align-self: flex-end;
}

.sp-follow-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.25rem;
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--sp-line);
  border-left: 4px solid var(--cat);
  border-radius: 0.875rem;
  background: var(--sp-surface);
}

.sp-follow-card__text {
  flex: 1 1 16rem;
}

.sp-follow-card__title {
  margin: 0;
  color: var(--sp-ink);
  font-family: var(--sp-font-heading);
  font-weight: 800;
}

.sp-follow-card__desc {
  margin: 0.2rem 0 0;
  color: var(--sp-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.sp-follow-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.sp-follow-card__more {
  border: 0;
  background: none;
  color: var(--color-primary);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.dark .sp-follow-card__more {
  color: #ffffff;
}

/* 1.10.2: plain fixed overlay instead of <dialog> -- on iOS the dialog
   painted its backdrop but no content. No ::backdrop, no backdrop-filter,
   no `max-height: inherit`, no :has() dependency: only layout primitives
   every engine renders the same. */
.sp-push-modal[hidden] {
  display: none;
}

.sp-push-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-top: max(1rem, env(safe-area-inset-top, 0px));
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}

.sp-push-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(15 14 45 / 0.6);
}

.sp-push-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 36rem;
  /* Fixed-position ancestor, so these percentages resolve against the
     overlay box -- no viewport-unit guesswork on mobile Safari. */
  max-height: 100%;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--sp-surface);
  color: var(--sp-ink);
  box-shadow: 0 25px 60px -15px rgb(0 0 0 / 0.45);
}

/* Background must not scroll behind the panel (what <dialog> did for us). */
html.sp-modal-open,
html.sp-modal-open body {
  overflow: hidden;
}

/* Bottom sheet on phones: easier to reach, no clipping on short screens. */
@media (max-width: 640px) {
  .sp-push-modal {
    align-items: flex-end;
    padding: 0;
  }

  .sp-push-modal__panel {
    max-width: none;
    max-height: 88%;
    border-radius: 1rem 1rem 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

.sp-push-dialog__head {
  flex: none;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.1rem 1.25rem 0.85rem;
  border-bottom: 1px solid var(--sp-line);
}

.sp-push-dialog__title {
  margin: 0;
  font-family: var(--sp-font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sp-push-dialog__lead {
  margin: 0.25rem 0 0;
  color: var(--sp-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.sp-push-dialog__close {
  display: inline-flex;
  flex: none;
  padding: 0.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--sp-surface-2);
  color: inherit;
  cursor: pointer;
}

.sp-push-dialog__close svg {
  width: 1.1rem;
  height: 1.1rem;
}

.sp-push-dialog__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 1.25rem 1rem;
}

.sp-push-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  cursor: pointer;
}

.sp-push-row__name {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
}

.sp-push-row--breaking {
  border-bottom: 1px solid var(--sp-line);
}

.sp-push-group {
  padding: 0.2rem 0 0.75rem;
  border-bottom: 1px solid var(--sp-line);
}

.sp-push-group:last-child {
  border-bottom: 0;
}

.sp-push-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-left: 2.35rem;
}

.sp-push-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--sp-line);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.sp-push-chip input {
  margin: 0;
  accent-color: var(--cat);
}

/* `.is-on` is set by assets/js/push.js; :has() is only a progressive
   enhancement here, so older Safari still shows the selected state. */
.sp-push-chip.is-on,
.sp-push-chip:has(input:checked) {
  border-color: var(--cat);
  background: var(--cat-soft);
  color: var(--cat-ink);
}

.dark .sp-push-chip.is-on,
.dark .sp-push-chip:has(input:checked) {
  background: var(--cat-soft-d);
  color: var(--cat-ink-d);
}

.sp-switch {
  position: relative;
  flex: none;
  width: 2.6rem;
  height: 1.5rem;
  margin: 0;
  border-radius: 999px;
  background: #d1d5db;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dark .sp-switch {
  background: #374151;
}

.sp-switch::before {
  content: '';
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
  transition: transform 0.2s ease;
}

.sp-switch:checked {
  background: var(--cat, var(--color-primary));
}

.sp-push-row--breaking .sp-switch:checked {
  background: var(--sp-accent);
}

.sp-switch:checked::before {
  transform: translateX(1.1rem);
}

.sp-switch:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.sp-push-dialog__foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--sp-line);
}

.sp-push-dialog__status {
  margin: 0;
  color: var(--sp-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.sp-toast {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  max-width: min(28rem, calc(100% - 2rem));
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.875rem;
  box-shadow: 0 12px 30px -10px rgb(0 0 0 / 0.45);
  transform: translateX(-50%);
  animation: sp-toast-in 0.2s ease-out;
  transition: opacity 0.4s ease;
}

.sp-toast.is-leaving {
  opacity: 0;
}

@keyframes sp-toast-in {
  from { transform: translate(-50%, 0.5rem); opacity: 0; }
}

/* -- 24. Sport blocks ------------------------------------------------ */

.sp-block-empty {
  padding: 1rem;
  border: 2px dashed var(--sp-line);
  border-radius: 0.75rem;
  color: var(--sp-muted);
  font-size: 0.875rem;
  text-align: center;
}

.sp-match {
  margin: 1.75em 0;
  overflow: hidden;
  border: 1px solid var(--sp-line);
  border-top: 4px solid var(--cat);
  border-radius: 0.875rem;
  background: var(--sp-surface);
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.06);
  font-size: 0.9375rem;
}

.sp-match__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  color: var(--sp-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sp-match__status {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--sp-surface-2);
  color: var(--sp-ink);
  font-size: 0.6875rem;
  font-weight: 800;
}

.sp-match.is-live .sp-match__status {
  background: var(--sp-accent);
  color: #ffffff;
}

.sp-match.is-live .sp-match__status .sp-live-dot {
  background: #ffffff;
}

.sp-match.is-half .sp-match__status {
  background: #f59e0b;
  color: #111827;
}

.sp-match.is-scheduled .sp-match__status {
  background: var(--color-primary);
  color: #ffffff;
}

.sp-match__board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem 1rem;
}

.sp-match__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  text-align: center;
}

.sp-match__crest {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 !important;
  object-fit: contain;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.sp-match__crest--mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  background: var(--cat-soft);
  color: var(--cat-ink);
  font-family: var(--sp-font-heading);
  font-size: 1.05rem;
  font-weight: 900;
}

.dark .sp-match__crest--mono {
  background: var(--cat-soft-d);
  color: var(--cat-ink-d);
}

.sp-match__name {
  color: var(--sp-ink);
  font-family: var(--sp-font-heading);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.sp-match__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.sp-match__result {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 0.6rem;
  background: var(--color-primary);
  color: #ffffff;
  font-family: var(--sp-font-heading);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.dark .sp-match__result {
  background: #ffffff;
  color: var(--color-primary);
}

.sp-match__colon {
  opacity: 0.6;
}

.sp-match__vs {
  color: var(--sp-ink);
  font-family: var(--sp-font-heading);
  font-size: 1.6rem;
  font-weight: 900;
}

.sp-match__date,
.sp-match__note {
  color: var(--sp-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.sp-match__events {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--sp-line);
  color: var(--sp-muted);
  font-size: 0.8125rem;
}

.sp-match__events ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.sp-match__events li {
  margin: 0 0 0.2rem !important;
  padding: 0 !important;
}

.sp-match__events li::marker {
  content: none;
}

.sp-match__events ul:first-child {
  text-align: right;
}

.sp-match__events-icon {
  color: var(--cat-ink);
  font-size: 1rem;
}

.sp-match__stats {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--sp-line);
}

.sp-match__stat dt {
  margin: 0 0 0.25rem;
  color: var(--sp-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.sp-match__stat dd {
  display: grid;
  grid-template-columns: 3rem 1fr 3rem;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}

.sp-match__stat-val {
  color: var(--sp-ink);
  font-size: 0.8125rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sp-match__stat-val:last-child {
  text-align: right;
}

.sp-match__bar {
  display: block;
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cat) var(--share, 50%), var(--color-primary) var(--share, 50%));
  opacity: 0.9;
}

.dark .sp-match__bar {
  background: linear-gradient(90deg, var(--cat) var(--share, 50%), #9ca3af var(--share, 50%));
}

.sp-match__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--sp-line);
  background: var(--sp-surface-2);
  color: var(--sp-muted);
  font-size: 0.75rem;
}

.sp-match__link {
  color: var(--color-primary) !important;
  font-weight: 800;
  text-decoration: none !important;
}

.dark .sp-match__link {
  color: #ffffff !important;
}

@media (max-width: 480px) {
  .sp-match__crest {
    width: 2.6rem;
    height: 2.6rem;
  }

  .sp-match__name {
    font-size: 0.875rem;
  }

  .sp-match__result {
    font-size: 1.6rem;
  }
}

.sp-standings-block {
  margin: 1.75em 0;
  overflow: hidden;
  border: 1px solid var(--sp-line);
  border-radius: 0.875rem;
  background: var(--sp-surface);
}

.sp-standings-block__title {
  margin: 0 !important;
  padding: 0.7rem 1rem;
  background: var(--color-primary);
  color: #ffffff !important;
  font-family: var(--sp-font-heading);
  font-size: 0.8125rem !important;
  font-style: normal !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: left !important;
  text-transform: uppercase;
}

.sp-standings-block__scroll {
  overflow-x: auto;
}

.prose .sp-standings-block table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.prose .sp-standings-block thead {
  border: 0;
}

.prose .sp-standings-block th,
.prose .sp-standings-block td {
  padding: 0.5rem 0.55rem;
  border-bottom: 1px solid var(--sp-line);
  text-align: center;
  white-space: nowrap;
}

.prose .sp-standings-block thead th {
  color: var(--sp-muted);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prose .sp-standings-block .is-team {
  width: 100%;
  color: var(--sp-ink);
  font-weight: 700;
  text-align: left;
  white-space: normal;
}

.prose .sp-standings-block tbody tr > :first-child {
  width: 2.25rem;
  color: var(--sp-muted);
  font-weight: 700;
}

.prose .sp-standings-block tbody tr > :last-child {
  color: var(--sp-ink);
  font-weight: 900;
}

.prose .sp-standings-block tbody tr:last-child > * {
  border-bottom: 0;
}

.sp-standings-block .is-zone-top > :first-child { box-shadow: inset 4px 0 0 #16a34a; }
.sp-standings-block .is-zone-mid > :first-child { box-shadow: inset 4px 0 0 #2563eb; }
.sp-standings-block .is-zone-bottom > :first-child { box-shadow: inset 4px 0 0 #dc2626; }

.prose .sp-standings-block tr.is-highlight > * {
  background: var(--cat-soft);
}

.dark .prose .sp-standings-block tr.is-highlight > * {
  background: var(--cat-soft-d);
}

.prose .sp-standings-block.is-compact th,
.prose .sp-standings-block.is-compact td {
  padding: 0.32rem 0.45rem;
  font-size: 0.8125rem;
}

.sp-standings-block__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--sp-line);
  background: var(--sp-surface-2);
  color: var(--sp-muted);
  font-size: 0.75rem;
}

.sp-standings-block__legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sp-standings-block__legend .is-zone-top::before,
.sp-standings-block__legend .is-zone-mid::before,
.sp-standings-block__legend .is-zone-bottom::before {
  content: '';
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 3px;
}

.sp-standings-block__legend .is-zone-top::before { background: #16a34a; }
.sp-standings-block__legend .is-zone-mid::before { background: #2563eb; }
.sp-standings-block__legend .is-zone-bottom::before { background: #dc2626; }

.sp-standings-block__source {
  margin-left: auto;
  font-style: italic;
}

.sp-results {
  margin: 1.75em 0;
  overflow: hidden;
  border: 1px solid var(--sp-line);
  border-radius: 0.875rem;
  background: var(--sp-surface);
}

.prose .sp-results__title {
  margin: 0;
  padding: 0.7rem 1rem;
  border-bottom: 3px solid var(--cat);
  color: var(--sp-ink);
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
}

.prose .sp-results__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.prose .sp-results__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--sp-line);
}

.prose .sp-results__row::marker {
  content: none;
}

.prose .sp-results__row:last-child {
  border-bottom: 0;
}

.sp-results__team {
  min-width: 0;
  color: var(--sp-ink);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.sp-results__team--home {
  text-align: right;
}

.sp-results__team.is-winner {
  font-weight: 800;
}

.sp-results__score {
  min-width: 3.6rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--sp-line);
  border-radius: 0.45rem;
  color: var(--sp-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sp-results__score.is-played {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 900;
}

.dark .sp-results__score.is-played {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--color-primary);
}

.sp-results__note {
  grid-column: 1 / -1;
  color: var(--sp-muted);
  font-size: 0.75rem;
  text-align: center;
}

/* -- 25. "BiH sport" hub -------------------------------------------- */

.sp-hub-hero {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background-color: var(--color-primary);
  background-image: repeating-linear-gradient(-60deg, rgb(255 255 255 / 0.07) 0 18px, transparent 18px 52px);
  color: #ffffff;
}

.sp-hub-hero__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.sp-hub-hero__intro {
  margin-top: 0.5rem;
  color: rgb(255 255 255 / 0.85);
}

.sp-hub-hero__intro :where(p, a, strong) {
  color: inherit;
}

.sp-hub-group {
  margin-bottom: 2.5rem;
}

.sp-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
}

.sp-hub-card__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.sp-hub-card__head .sp-follow {
  margin-left: auto;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
}

.sp-hub-card__sport {
  display: block;
  color: var(--sp-muted);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sp-hub-card__title {
  margin: 0;
  font-family: var(--sp-font-heading);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.sp-hub-card__title a {
  color: var(--sp-ink);
  text-decoration: none;
}

.sp-hub-card > article {
  margin-bottom: 0.6rem;
  border-radius: 0.6rem;
}

/* -- 26. Plugin compatibility: SportsPress tables ------------------- */

.sp-template .sp-data-table,
table.sp-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.sp-template .sp-table-caption,
.sp-table-caption {
  padding: 0.6rem 0.9rem !important;
  border-radius: 0.6rem 0.6rem 0 0;
  background: var(--color-primary) !important;
  color: #ffffff !important;
  font-weight: 800;
  text-transform: uppercase;
}

table.sp-data-table thead th {
  background: var(--sp-surface-2) !important;
  color: var(--sp-muted) !important;
  font-size: 0.6875rem;
  text-transform: uppercase;
}

table.sp-data-table td,
table.sp-data-table th {
  padding: 0.5rem 0.55rem !important;
  border-bottom: 1px solid var(--sp-line) !important;
}

table.sp-data-table tbody tr:hover > * {
  background: var(--cat-soft);
}

/* -- 27. Header search field colors (1.10.1) ------------------------- */
/* Typed text must stay readable in both modes regardless of what a cache
   or build step does to the Tailwind dark: variants on the input. */
.sportak-search-form input[type='search'],
#sportak-search-input {
  color: #111827;
  caret-color: var(--color-primary);
}

.sportak-search-form input[type='search']::placeholder {
  color: #9ca3af;
}

.dark .sportak-search-form input[type='search'],
.dark #sportak-search-input {
  border-color: #374151;
  background-color: #1f2937;
  color: #ffffff;
  caret-color: #ffffff;
}

.dark .sportak-search-form input[type='search']::placeholder {
  color: #9ca3af;
}

/* The searched term in the results heading. */
.dark .sp-search-term {
  color: #ffffff;
}

/* -- 28. Drawer accordion (1.10.1) ----------------------------------- */

.sp-drawer-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.sp-drawer-row > .sp-drawer-link {
  flex: 1;
  min-width: 0;
}

.sp-drawer-toggle {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 0.6rem;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
}

.sp-drawer-toggle:hover,
.sp-drawer-toggle[aria-expanded='true'] {
  background: var(--cat-soft);
  color: var(--cat-ink);
}

.dark .sp-drawer-toggle {
  color: #9ca3af;
}

.dark .sp-drawer-toggle:hover,
.dark .sp-drawer-toggle[aria-expanded='true'] {
  background: var(--cat-soft-d);
  color: var(--cat-ink-d);
}

.sp-drawer-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.2s ease;
}

.sp-drawer-toggle[aria-expanded='true'] svg {
  transform: rotate(180deg);
}

.sp-drawer-sublist[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .sp-drawer-toggle svg {
    transition: none;
  }
}

/* -- 29. iOS "add to home screen" sheet (web push needs it; see push.js) - */

/* Plain fixed overlay, same reasoning as .sp-push-modal above (see
   inc/push.php): a <dialog> here hit the same iOS painting bug. Always a
   bottom sheet, phone or not -- this only ever shows on iOS. */
.sp-ios-sheet[hidden] {
  display: none;
}

.sp-ios-sheet {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sp-ios-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(15 14 45 / 0.55);
}

.sp-ios-sheet__panel {
  position: relative;
  z-index: 1;
  width: min(26rem, 100%);
  max-height: min(26rem, 88%);
  overflow: hidden auto;
  border-radius: 1rem 1rem 0 0;
  background: var(--sp-surface);
  color: var(--sp-ink);
  box-shadow: 0 25px 60px -15px rgb(0 0 0 / 0.45);
}

.sp-ios-sheet__inner {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
}

.sp-ios-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.sp-ios-sheet__title {
  margin: 0;
  font-family: var(--sp-font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}

.sp-ios-sheet__close {
  display: inline-flex;
  flex: none;
  padding: 0.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--sp-surface-2);
  color: inherit;
  cursor: pointer;
}

.sp-ios-sheet__close svg {
  width: 1.1rem;
  height: 1.1rem;
}

.sp-ios-sheet__steps {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-ios-sheet__steps li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

.sp-ios-sheet__steps svg {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--color-primary);
}

.sp-ios-sheet__num {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
}

.sp-ios-sheet__note {
  margin: 0;
  padding-top: 0.65rem;
  border-top: 1px solid var(--sp-line);
  color: var(--sp-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}
