:root {
  --sb-navy: #102a43;
  --sb-blue: #2563eb;
  --sb-blue-dark: #1d4ed8;
  --sb-ink: #172033;
  --sb-muted: #64748b;
  --sb-line: #dce3ec;
  --sb-bg: #f4f7fb;
  --sb-surface: #fff;
  --sb-radius: 14px;
  --sb-shadow: 0 10px 28px rgba(16, 42, 67, .08);
}

html { overflow-x: hidden; }
body { background: var(--sb-bg); color: var(--sb-ink); }
a { text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .45);
  outline-offset: 3px;
}

/* Header and brand. */
.site-header {
  background: var(--sb-surface) !important;
  border-bottom: 1px solid var(--sb-line);
  box-shadow: 0 3px 18px rgba(16, 42, 67, .06);
  color: var(--sb-ink) !important;
}
.site-header-inner {
  align-items: center;
  display: flex;
  margin: 0 auto;
  max-width: 1200px;
  min-height: 76px;
  padding: 10px 20px;
}
.site-branding { flex: 0 0 auto; }
.site-logotype { max-width: 230px !important; }
.site-logotype img { display: block; height: auto; max-height: 52px; width: auto; }
.site-header a, .site-header .pseudo-link,
.top-menu, .top-menu ul li > a, .top-menu ul li > span { color: var(--sb-ink) !important; }
.top-menu { margin-left: auto; }
.top-menu > ul { align-items: center; display: flex; gap: 4px; }
.top-menu > ul > li > a, .top-menu > ul > li > span {
  border-radius: 9px;
  font-weight: 650;
  padding: 12px 14px;
}
.top-menu > ul > li > a:hover, .top-menu > ul > li > a:focus,
.top-menu > ul > li > span:hover, .top-menu > ul > li.current-menu-item > span,
.top-menu > ul > li.current-menu-item > a { background: #eff6ff; color: var(--sb-blue-dark) !important; }
.top-menu > ul > li > a::before, .top-menu > ul > li > span::before { display: none; }
.humburger span { background: var(--sb-ink) !important; }
.header-separator { display: none; }

/* Shared layout. */
.site-content.fixed, .site-footer-inner.fixed { max-width: 1200px; }
.site-content { padding-bottom: 48px; padding-top: 24px; }
.site-content-inner { gap: 32px; }
.section-block { margin-bottom: 46px; }
.section-block__header { align-items: end; border: 0; display: flex; margin-bottom: 20px; padding: 0; }
.section-block__title, .section-block__title h2 {
  color: var(--sb-ink);
  font-size: clamp(24px, 3vw, 34px) !important;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
}
.zagnews, .vydznews { color: inherit; }

/* Uniform card grid and full-card click target. */
.post-cards--grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-card--grid {
  background: var(--sb-surface);
  border: 1px solid var(--sb-line);
  border-radius: var(--sb-radius);
  box-shadow: var(--sb-shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  position: relative;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  flex: none !important;
  margin: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  width: 100% !important;
}
.post-card--grid:hover { border-color: #b9c9dd; box-shadow: 0 14px 34px rgba(16, 42, 67, .13); transform: translateY(-3px); }
.post-card--grid:focus-within { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 3px; }
.post-card--grid .post-card__thumbnail { aspect-ratio: 16 / 9; inset: auto !important; margin: 0; overflow: hidden; position: relative !important; width: 100% !important; }
.post-card--grid .post-card__thumbnail img { border-radius: 0; height: 100%; object-fit: cover; transition: transform .35s ease; width: 100%; }
.post-card--grid:hover .post-card__thumbnail img { transform: scale(1.025); }
.post-card--grid .post-card__body { display: flex; flex: 1; flex-direction: column; inset: auto !important; justify-content: flex-start !important; padding: 18px 18px 20px; position: relative !important; width: 100% !important; }
.post-card--grid .post-card__title { font-size: 19px; font-weight: 750; height: auto !important; line-height: 1.35; margin: 0 0 12px; padding: 0 !important; }
.post-card--grid .post-card__title, .post-card--grid .post-card__title a { color: var(--sb-ink) !important; }
.post-card--grid .post-card__title a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.post-card--grid .post-card__title a::after { content: ""; inset: 0; position: absolute; z-index: 2; }
.post-card--grid .post-card__title a:focus { outline: none; }
.post-card--grid .post-card__meta { color: var(--sb-muted); font-size: 13px; margin-top: auto; order: 3; }
.post-card--grid .post-card__description { color: var(--sb-muted) !important; display: -webkit-box !important; font-size: 14px; line-height: 1.55; margin: 0 0 16px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.post-card--grid .hrdlych, .post-card--grid .dlych { display: none !important; }

/* News/biography archives: content-wide grid, no legacy sidebar. */
body.archive.category .site-content-inner { display: block; }
body.archive.category .content-area { max-width: none; width: 100%; }
body.archive.category .widget-area { display: none !important; }
body.archive.category .post-cards--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sportobook-news-filter__item { border-color: var(--sb-line) !important; color: var(--sb-ink) !important; }
.post-cards--grid > .sportobook-news-filter { grid-column: 1 / -1; margin-bottom: 0; width: 100%; }
a.sportobook-news-filter__item:hover, a.sportobook-news-filter__item:focus-visible,
.sportobook-news-filter__item.is-active { background: var(--sb-blue) !important; border-color: var(--sb-blue) !important; color: #fff !important; }

/* Homepage hero. */
.b-r--before_site_content { margin: 0 0 42px; }
.sportobook-section-heading { align-items: end; display: flex; justify-content: space-between; margin: 0 0 18px; }
.sportobook-section-heading h1 { color: var(--sb-ink); font-size: clamp(28px, 3.4vw, 40px) !important; letter-spacing: -.035em; line-height: 1; margin: 0; }
.sportobook-section-heading > a { color: var(--sb-blue-dark); font-size: 14px; font-weight: 750; }
.sportobook-hero__grid { display: grid; gap: 16px; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); min-height: 520px; }
.sportobook-hero__story { border-radius: 16px; box-shadow: var(--sb-shadow); min-height: 0; overflow: hidden; position: relative; }
.sportobook-hero__story--main { grid-row: 1 / span 2; }
.sportobook-hero__story > a { color: #fff; display: block; height: 100%; position: relative; text-decoration: none; }
.sportobook-hero__image, .sportobook-hero__placeholder { background: var(--sb-navy); display: block; height: 100%; object-fit: cover; transition: transform .35s ease; width: 100%; }
.sportobook-hero__story:hover .sportobook-hero__image { transform: scale(1.025); }
.sportobook-hero__shade { background: linear-gradient(180deg, transparent 24%, rgba(4, 14, 28, .9) 100%); inset: 0; position: absolute; }
.sportobook-hero__content { bottom: 0; display: grid; gap: 7px; left: 0; padding: 26px; position: absolute; right: 0; }
.sportobook-hero__topic { background: var(--sb-blue); border-radius: 999px; font-size: 11px; font-weight: 800; justify-self: start; letter-spacing: .06em; padding: 5px 9px; text-transform: uppercase; }
.sportobook-hero time { color: rgba(255, 255, 255, .78); font-size: 12px; }
.sportobook-hero__title { display: -webkit-box; font-size: 21px; font-weight: 800; line-height: 1.22; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.sportobook-hero__story--main .sportobook-hero__title { font-size: clamp(27px, 3vw, 42px); max-width: 760px; }
.sportobook-topics { display: flex; gap: 10px; margin-top: 16px; max-width: 100%; overflow-x: auto; padding: 2px 2px 6px; }
.sportobook-topics a, .sportobook-topics span { background: var(--sb-surface); border: 1px solid var(--sb-line); border-radius: 999px; color: var(--sb-ink); flex: 0 0 auto; font-size: 14px; font-weight: 700; padding: 10px 16px; text-decoration: none; }
.sportobook-topics a.is-active { background: var(--sb-navy); border-color: var(--sb-navy); color: #fff; }
.sportobook-topics span { color: var(--sb-muted); }
.sportobook-topics small { font-size: 9px; margin-left: 4px; text-transform: uppercase; }

/* Advertising remains outside the visual cards and keeps its own interaction. */
.sportobook-ad { max-width: 1200px; }
.sportobook-ad--header { margin-top: 22px; }

/* Compact legal footer. */
.site-footer-container { background: var(--sb-navy); }
.site-footer { background: var(--sb-navy) !important; color: rgba(255, 255, 255, .78); }
.site-footer-inner { padding-bottom: 26px; padding-top: 36px; }
.footer-widgets { gap: 28px; padding-bottom: 24px; }
.footer-widget .widget-header { color: #fff; font-size: 16px; font-weight: 750; margin-bottom: 12px; }
.footer-widget, .footer-widget p, .footer-info { color: rgba(255, 255, 255, .72); font-size: 13px; line-height: 1.55; }
.footer-widget a, .footer-info a { color: #fff; }
.footer-widget:first-child .custom-html-widget > p:first-child { display: none; }
.footer-bottom { border-top-color: rgba(255, 255, 255, .16); padding-top: 20px; }

@media (max-width: 991px) {
  .site-header-inner { min-height: 64px; padding: 8px 16px; }
  .site-logotype { margin: 0 auto; max-width: 190px !important; }
  .site-logotype img { max-height: 44px; }
  .top-menu { display: none; }
  .humburger { left: 16px; }
  .main-navigation { background: var(--sb-navy) !important; }
  .main-navigation ul li, .main-navigation ul li a, .main-navigation ul li span { background: var(--sb-navy) !important; color: #fff !important; }
  .post-cards--grid, body.archive.category .post-cards--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sportobook-hero__grid { min-height: 450px; }
  .sportobook-hero__content { padding: 20px; }
  .footer-widgets { display: flex; flex-wrap: wrap; }
  .footer-widgets > .footer-widget { flex: 0 0 calc(50% - 14px); max-width: calc(50% - 14px); }
}

@media (max-width: 767px) {
  .site-content { padding: 16px 14px 32px; }
  .sportobook-ad--header { margin-top: 12px; }
  .b-r--before_site_content { margin-bottom: 30px; }
  .sportobook-hero__grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 290px 205px; min-height: 0; }
  .sportobook-hero__story--main { grid-column: 1 / -1; grid-row: auto; }
  .sportobook-hero__story--secondary { grid-row: 2; }
  .sportobook-hero__story--main .sportobook-hero__title { font-size: 25px; }
  .sportobook-hero__story--secondary .sportobook-hero__content { gap: 5px; padding: 14px; }
  .sportobook-hero__story--secondary .sportobook-hero__title { font-size: 15px; -webkit-line-clamp: 4; }
  .sportobook-hero__story--secondary .sportobook-hero__topic { display: none; }
  .post-cards--grid, body.archive.category .post-cards--grid { gap: 16px; grid-template-columns: 1fr; }
  .post-card--grid .post-card__description { -webkit-line-clamp: 2; }
  .section-block { margin-bottom: 34px; }
  .footer-widgets { display: block; }
  .footer-widgets > .footer-widget { flex-basis: auto; margin-bottom: 24px; max-width: none; width: 100%; }
}

@media (max-width: 420px) {
  .site-logotype { max-width: 165px !important; }
  .sportobook-hero__grid { grid-template-columns: 1fr; grid-template-rows: 280px 190px 190px; }
  .sportobook-hero__story--secondary { grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
