:root {
  --gap: 16px;
  --dm-body-bg: #040b18;
  --dm-shell-bg: #050c1c;
  --dm-surface: #0b1324;
  --dm-surface-alt: #131b2b;
  --dm-card: #1c2540;
  --dm-border: rgba(255, 255, 255, 0.08);
  --dm-border-soft: rgba(255, 255, 255, 0.04);
  --dm-text: #f4f7ff;
  --dm-text-muted: #9db2de;
  --dm-heading: #ffffff;
  --dm-chip: #101831;
}
.tenis-skeleton {
  background: linear-gradient(90deg, #1b2233 25%, #232b3f 37%, #1b2233 63%);
  background-size: 400% 100%;
  animation: sk 1.2s ease-in-out infinite;
  border-radius: 6px;
  min-height: 1rem;
}
@keyframes sk {
  0% { background-position: 100% 0 }
  100% { background-position: 0 0 }
}

/* Skip Link Styles */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    left: 12px;
    top: 12px;
    z-index: 10000;
    background: #fff;
    color: #000;
    padding: .5rem .75rem;
    border-radius: .5rem;
}

main#main-content {
    outline: none;
}

/* Focus States */
:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
    border-radius: 6px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Utility Classes */
.stack-xl > * + * {
  margin-top: var(--wp--custom--space--xl)
}

.grid-2\@md {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wp--custom--space--md)
}

@media(min-width:768px) {
  .grid-2\@md {
    grid-template-columns: 1fr 1fr
  }
}

/* Aktualności – kapsuły paginacji */
body.page-id-239 .ktc-page-default__wrapper {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

body.page-id-239 .ktc-page-default {
  padding-top: 0;
}

.kt-blocks-page-nav,
nav.navigation.pagination {
  margin-top: clamp(24px, 3vw, 48px);
}

.kt-blocks-page-nav .nav-links,
nav.navigation.pagination .nav-links {
  display: inline-flex !important;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.kt-blocks-page-nav .page-numbers,
nav.navigation.pagination .page-numbers {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 113, 16, 0.45) !important;
  background: transparent !important;
  color: #2a2017 !important;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  box-shadow: none;
  gap: 6px;
}

.kt-blocks-page-nav .page-numbers svg,
nav.navigation.pagination .page-numbers svg {
  width: 10px;
  height: 10px;
  display: block;
}

.kt-blocks-page-nav .page-numbers.current,
.kt-blocks-page-nav .page-numbers:hover,
.kt-blocks-page-nav .page-numbers:focus-visible,
nav.navigation.pagination .page-numbers.current,
nav.navigation.pagination .page-numbers:hover,
nav.navigation.pagination .page-numbers:focus-visible {
  background: #ff7110 !important;
  color: #fff !important;
  border-color: #ff7110 !important;
  box-shadow: 0 10px 20px rgba(255, 113, 16, 0.25) !important;
  transform: translateY(-1px);
}

.kt-blocks-page-nav .page-numbers:focus-visible,
nav.navigation.pagination .page-numbers:focus-visible {
  outline: 2px solid rgba(255, 113, 16, 0.4);
  outline-offset: 2px;
}

/* Results ticker headings (light + dark) */
body .ktc-results-ticker .ktc-ticker-section .ktc-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0 !important;
  width: auto;
  background: transparent;
  color: inherit;
}

body .ktc-results-ticker .ktc-ticker-section .ktc-section-title span {
  display: inline-flex;
  padding: 0.3rem 1rem;
  border-radius: 10px 10px 0 0;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--ktc-section-accent, #0f172a);
}

body .ktc-results-ticker .ktc-section-divider {
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: var(--ktc-section-accent, #0f172a);
  margin-top: 0;
  margin-bottom: 0.85rem;
}

body .ktc-results-ticker .ktc-ticker-section-atp {
  --ktc-section-accent: #2563eb;
}

body .ktc-results-ticker .ktc-ticker-section-wta {
  --ktc-section-accent: #dc2626;
}

body .ktc-results-ticker .ktc-ticker-section-mixed {
  --ktc-section-accent: #0f172a;
}

.kt-blocks-page-nav .page-numbers.dots,
nav.navigation.pagination .page-numbers.dots {
  cursor: default;
  padding-left: 12px;
  padding-right: 12px;
  border-color: rgba(255, 113, 16, 0.25) !important;
  text-transform: none;
  letter-spacing: 0.1em;
}

@media (max-width: 640px) {
  .kt-blocks-page-nav .nav-links,
  nav.navigation.pagination .nav-links {
    gap: 8px;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .kt-blocks-page-nav .page-numbers,
nav.navigation.pagination .page-numbers {
    flex: 0 0 auto;
  }
}

/* Dark mode overrides driven by html[data-theme="dark"] */
html[data-theme='dark'],
html[data-theme='dark'] body {
  background-color: var(--dm-body-bg);
  color: var(--dm-text);
}

html[data-theme='dark'] .site,
html[data-theme='dark'] .wp-site-blocks,
html[data-theme='dark'] main,
html[data-theme='dark'] .entry-content {
  background-color: rgb(17 24 39);
  color: var(--dm-text);
}

html[data-theme='dark'] .site-header,
html[data-theme='dark'] header.site-header--kadence-element {
  background: linear-gradient(135deg, #050c1c, #071734);
  border-bottom: 1px solid var(--dm-border);
  color: var(--dm-text);
}

html[data-theme='dark'] h1,
html[data-theme='dark'] h2,
html[data-theme='dark'] h3,
html[data-theme='dark'] h4,
html[data-theme='dark'] h5,
html[data-theme='dark'] h6 {
  color: var(--dm-heading);
}

html[data-theme='dark'] p,
html[data-theme='dark'] li,
html[data-theme='dark'] .wp-block-post-date,
html[data-theme='dark'] .wp-block-latest-posts__post-date,
html[data-theme='dark'] .wp-block-post-excerpt {
  color: var(--dm-text-muted);
}

html[data-theme='dark'] a {
  color: #8fd8ff;
}

html[data-theme='dark'] a:hover,
html[data-theme='dark'] a:focus {
  color: #c3eaff;
}

html[data-theme='dark'] .wp-block-group,
html[data-theme='dark'] .wp-block-kadence-rowlayout,
html[data-theme='dark'] .kt-row-column-wrap,
html[data-theme='dark'] .wp-block-post,
html[data-theme='dark'] .wp-block-query .wp-block-post,
html[data-theme='dark'] .wp-block-kadence-column {
  background: var(--dm-surface) !important;
  border-color: var(--dm-border) !important;
  color: var(--dm-text);
  box-shadow: 0 20px 45px rgba(2, 6, 15, 0.55);
}

html[data-theme='dark'] .wp-block-kadence-rowlayout,
html[data-theme='dark'] .kt-row-column-wrap {
  background-color: transparent !important;
}

html[data-theme='dark'] .ktc-results-ticker {
  background-color: rgb(31 41 55) !important;
}

html[data-theme='dark'] .wp-block-kadence-column {
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme='dark'] .wp-block-kadence-rowlayout {
  background-color: rgb(31 41 55) !important;
}

html[data-theme='dark'] .wp-block-group.has-background,
html[data-theme='dark'] .wp-block-kadence-rowlayout.has-background,
html[data-theme='dark'] .wp-block-cover,
html[data-theme='dark'] .wp-block-columns.has-background {
  background: var(--dm-surface-alt) !important;
  color: var(--dm-text);
  border-color: var(--dm-border);
}

html[data-theme='dark'] .wp-block-column,
html[data-theme='dark'] .wp-block-kadence-column .kt-inside-inner-col {
  background: transparent;
  color: inherit;
}

html[data-theme='dark'] .wp-block-kadence-column > div,
html[data-theme='dark'] .wp-block-group > div {
  color: inherit;
}

html[data-theme='dark'] .kt-blocks-page-nav .page-numbers,
html[data-theme='dark'] nav.navigation.pagination .page-numbers {
  border-color: rgba(99, 207, 255, 0.45) !important;
  color: #cdefff !important;
  box-shadow: none;
  background: transparent !important;
}

html[data-theme='dark'] .kt-blocks-page-nav .page-numbers.current,
html[data-theme='dark'] .kt-blocks-page-nav .page-numbers:hover,
html[data-theme='dark'] .kt-blocks-page-nav .page-numbers:focus-visible,
html[data-theme='dark'] nav.navigation.pagination .page-numbers.current,
html[data-theme='dark'] nav.navigation.pagination .page-numbers:hover,
html[data-theme='dark'] nav.navigation.pagination .page-numbers:focus-visible {
  background: linear-gradient(135deg, #ffb347, #ff7b00) !important;
  border-color: transparent !important;
  color: #110403 !important;
  box-shadow: 0 14px 32px rgba(255, 123, 0, 0.35) !important;
}

html[data-theme='dark'] .ktc-ranking-widget,
html[data-theme='dark'] .ktc-results-ticker,
html[data-theme='dark'] .ktc-calendar,
html[data-theme='dark'] .ktc-home-news-card,
html[data-theme='dark'] .ktc-live-card,
html[data-theme='dark'] .ktc-news-card,
html[data-theme='dark'] .ktc-calendar-home,
html[data-theme='dark'] .ktc-calendar-home__panel,
html[data-theme='dark'] .ktc-calendar-home__details {
  background: var(--dm-card);
  border-color: var(--dm-border);
  color: var(--dm-text);
  box-shadow: 0 18px 36px rgba(4, 6, 17, 0.65);
}

html[data-theme='dark'] .ktc-results-ticker {
  background-color: rgb(31 41 55);
}

html[data-theme='dark'] .zkortu-grid__right {
  --tw-bg-opacity: 1;
  background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1)) !important;
  border-color: var(--dm-border);
  box-shadow: 0 20px 45px rgba(4, 6, 17, 0.55);
}

html[data-theme='dark'] .zkortu-side {
  background: transparent;
  border: 1px solid transparent;
}

html[data-theme='dark'] .zkortu-side:hover {
  background-color: #374151;
}

html[data-theme='dark'] .zkortu-side__kategoria {
  color: rgb(156 163 175 / 1);
}

html[data-theme='dark'] .zkortu-side__tytul,
html[data-theme='dark'] .zkortu-side__tytul a {
  color: rgb(229 231 235 / 1);
}

html[data-theme='dark'] .zkortu-hero__tytul,
html[data-theme='dark'] .zkortu-hero__tytul a,
html[data-theme='dark'] .zkortu-hero__btn {
  color: #fff;
}

html[data-theme='dark'] .ktc-live-card__header,
html[data-theme='dark'] .ktc-live-card__footer {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
  color: inherit;
}

html[data-theme='dark'] .ktc-live-card__title,
html[data-theme='dark'] .ktc-live-card__score,
html[data-theme='dark'] .ktc-live-card__meta {
  color: inherit;
}

html[data-theme='dark'] .ktc-live-card__badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--dm-text);
  border: 1px solid var(--dm-border-soft);
}

html[data-theme='dark'] .wp-block-button__link,
html[data-theme='dark'] .ktc-chip,
html[data-theme='dark'] .ktc-ranking-chip--link > a {
  background: linear-gradient(135deg, #ffb347, #ff7b00) !important;
  color: #fff !important;
  border: 0;
  box-shadow: 0 15px 32px rgba(255, 123, 0, 0.35);
}

html[data-theme='dark'] .tenis-skeleton {
  background: linear-gradient(90deg, #0b1324 25%, #151d33 37%, #0b1324 63%);
}

html[data-theme='dark'] .wp-block-kadence-advancedbtn .kt-button,
html[data-theme='dark'] .kt-blocks-page-nav .page-numbers,
html[data-theme='dark'] .site .kt-button {
  color: #071628 !important;
}

html[data-theme='dark'] .wp-block-separator {
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme='dark'] .site-footer {
  background-color: rgb(31 41 55);
  color: var(--dm-text-muted);
  border-top: 1px solid var(--dm-border);
}

html[data-theme='dark'] .ktc-calendar-tour,
html[data-theme='dark'] .ktc-calendar-type,
html[data-theme='dark'] .ktc-calendar-grid,
html[data-theme='dark'] .ktc-calendar-weekdays,
html[data-theme='dark'] .ktc-calendar-days {
  background: var(--dm-surface);
  color: var(--dm-text-muted);
  border-color: var(--dm-border);
}

html[data-theme='dark'] .ktc-calendar-nav {
  background: var(--dm-surface-alt);
  color: var(--dm-text);
  box-shadow: 0 10px 28px rgba(4, 6, 17, 0.45);
}

html[data-theme='dark'] .ktc-calendar-tour button {
  color: var(--dm-text-muted);
}

html[data-theme='dark'] .ktc-calendar-tour button.is-active {
  color: #fff;
}

html[data-theme='dark'] .ktc-calendar-day {
  background: var(--dm-surface-alt);
  color: var(--dm-text);
  border: 1px solid var(--dm-border-soft);
}

html[data-theme='dark'] .ktc-calendar-day.is-outside {
  color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme='dark'] .ktc-calendar-day.has-events::after {
  background: rgba(255, 111, 50, 0.22);
  color: #ff8740;
}

html[data-theme='dark'] .ktc-calendar-home__details,
html[data-theme='dark'] .ktc-calendar-details__list,
html[data-theme='dark'] .ktc-calendar-event {
  background: var(--dm-surface);
  border-color: var(--dm-border-soft);
  color: var(--dm-text);
}

html[data-theme='dark'] .ktc-calendar-event__name,
html[data-theme='dark'] .ktc-calendar-event__info,
html[data-theme='dark'] .ktc-calendar-event__tour,
html[data-theme='dark'] .ktc-calendar-event__meta {
  color: inherit;
}

html[data-theme='dark'] .ktc-ticker-section {
  border: none;
  background: transparent;
  padding-top: 0.75rem;
}

html[data-theme='dark'] .ktc-ticker-section .ktc-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  width: auto;
  background: transparent;
  color: inherit;
}

html[data-theme='dark'] .ktc-ticker-section .ktc-section-title span {
  display: inline-flex;
  padding: 0.3rem 1rem;
  border-radius: 10px 10px 0 0;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--ktc-section-accent, rgba(148, 163, 184, 1));
}

html[data-theme='dark'] .ktc-ticker-section-atp {
  --ktc-section-accent: rgb(37 99 235 / 1);
}

html[data-theme='dark'] .ktc-ticker-section-wta {
  --ktc-section-accent: rgb(220 38 38 / 1);
}

html[data-theme='dark'] .ktc-ticker-section-mixed {
  --ktc-section-accent: rgba(148, 163, 184, 1);
}

html[data-theme='dark'] .ktc-section-divider {
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: var(--ktc-section-accent, rgba(148, 163, 184, 1));
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.ktc-news__layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

.ktc-news__aside {
  min-width: 0;
}

@media (max-width: 960px) {
  .ktc-news__layout {
    grid-template-columns: 1fr;
  }
}

.ktc-related-card--external {
  background: #f3f4f6;
  padding: 30px 16px;
  border-radius: 12px;
}

.ktc-related-card--external .ktc-card__body {
  padding-top: 12px;
}

.ktc-social-embed {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.ktc-social-embed iframe {
  max-width: 100%;
}

.ktc-news__tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.ktc-news__tag.kt-blocks-post-readmore {
  margin: 0;
}
