/* Levski Lukoil — static site (brand colors from original theme) */
:root {
  --blue: #0d4785;
  --blue-dark: #002967;
  --blue-mid: #005499;
  --text: #333333;
  --muted: #939393;
  --bg: #ffffff;
  --bg-alt: #f4f4f4;
  --border: #e0e0e0;
  --max-width: 1110px;
  --font-body: "Lato", system-ui, sans-serif;
  --font-head: "Oswald", "Lato", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.levski-static {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-alt);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  padding: 0.5rem 1rem;
  background: var(--blue);
  color: #fff;
}

.skip-link:focus {
  left: 0;
}

#page.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-wrapper,
.site-main,
.site-footer .footer-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.site-branding .site-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo img {
  display: block;
  height: 72px;
  width: auto;
}

.site-hgroup {
  margin: 0;
}

.site-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.site-title a {
  color: #fff;
  text-decoration: none;
}

.site-title a:hover {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.site-description {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Navigation */
.main-navigation .menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  padding: 0.4rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.main-navigation .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.main-navigation .menu a {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.35rem 0;
  text-decoration: none;
}

.main-navigation .menu a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid #fff;
}

/* Main */
.site-main {
  flex: 1;
  background: var(--bg);
  padding: 2rem 1.25rem 3rem;
  margin: 1.5rem auto;
  width: 100%;
  max-width: var(--max-width);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.entry-content {
  max-width: 100%;
}

.entry-title,
.page-title,
h1 {
  font-family: var(--font-head);
  color: var(--blue-mid);
  font-size: 2rem;
  margin: 0 0 1rem;
  line-height: 1.2;
}

h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--blue-mid);
}

h4.sp-table-caption,
.sp-table-caption,
.sp-heading,
caption,
.widget-title {
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0;
  padding: 0.65rem 1rem;
  border-top: 3px solid var(--blue-dark);
}

.widget {
  margin-bottom: 2rem;
}

.widget-title {
  margin-bottom: 0;
}

/* Homepage layout */
.homepage-widgets {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .homepage-widgets {
    grid-template-columns: 1fr 1fr;
  }

  .homepage-widgets .sp-widget-align-none {
    grid-column: 1 / -1;
  }
}

.sp-widget-align-left,
.sp-widget-align-right,
.sp-widget-align-none {
  min-width: 0;
}

/* Tables */
.sp-table-wrapper {
  overflow-x: auto;
  margin-bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  font-size: 0.95rem;
}

th,
td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

thead th {
  background: var(--bg-alt);
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
}

tbody tr:nth-child(even) {
  background: var(--bg-alt);
}

tbody tr:hover {
  background: #e8eef5;
}

.data-rank {
  width: 3rem;
  text-align: center;
  font-weight: 700;
  color: var(--blue);
}

.sp-league-table .data-name img,
table img {
  vertical-align: middle;
  margin-right: 0.5rem;
  max-height: 28px;
  width: auto;
}

/* Event blocks */
.sp-event-blocks td {
  text-align: center;
  padding: 1.25rem;
}

.sp-event-blocks .team-logo {
  display: inline-block;
  margin: 0 0.5rem;
  vertical-align: middle;
}

.sp-event-blocks .team-logo img {
  max-height: 64px;
  width: auto;
}

.sp-event-date {
  display: block;
  margin: 0.75rem 0 0.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.sp-event-date a {
  color: var(--muted);
}

.sp-event-results {
  margin: 0.25rem 0;
  font-size: 1.1rem;
}

.sp-event-title {
  margin: 0.5rem 0 0;
  font-size: 1.15rem;
}

.sp-event-title a {
  color: var(--blue-mid);
  font-weight: 700;
}

/* Player list / gallery */
.sp-player-list,
.sp-template-player-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.sp-player-list li,
.sp-player-gallery .gallery-item {
  text-align: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 1rem 0.5rem;
  border-radius: 4px;
}

.sp-player-list .number,
.sp-template-player-gallery strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

/* Calendar */
.sp-template-event-calendar table {
  table-layout: fixed;
}

.sp-template-event-calendar #today,
.widget_calendar #today {
  background: var(--blue);
  color: #fff;
}

.sp-template-event-calendar #today a {
  color: #fff;
}

/* Footer */
.site-footer {
  background: var(--blue);
  color: #fff;
  margin-top: auto;
}

.site-footer .footer-wrapper {
  padding: 2rem 1.25rem;
}

.footer-widgets {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-widgets {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.site-footer .widget-title {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.site-footer p,
.site-footer li {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
}

.site-footer a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li {
  margin-bottom: 0.5rem;
}

.site-info {
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--bg-alt);
}

/* Content pages */
.entry-content p {
  margin: 0 0 1rem;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1rem 1.25rem;
}

/* Single event (match) page */
.single-sp_event .sp-template-event-logos {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.sp-template-event-logos .sp-team-logo {
  display: inline-block;
  margin: 0 1.5rem;
  vertical-align: middle;
}

.sp-template-event-logos .sp-team-name {
  display: block;
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--blue-mid);
}

.sp-template-event-logos img {
  max-height: 96px;
  width: auto;
}

.sp-template-event-details dl,
.sp-template-event-performance table {
  margin-bottom: 1.5rem;
}

.sp-template-event-details dt {
  font-weight: 700;
  color: var(--blue);
}

.sp-template-event-details dd {
  margin: 0 0 0.75rem;
}

/* Player profile */
.single-sp_player .entry-header,
.sp-template-player-statistics {
  margin-bottom: 1.5rem;
}

.sp-template-player-photo img {
  border-radius: 4px;
  border: 3px solid var(--border);
}

/* Responsive nav */
@media (max-width: 768px) {
  .main-navigation .menu-toggle {
    display: block;
  }

  .main-navigation .menu-primary-menu-container {
    display: none;
    width: 100%;
  }

  .main-navigation.toggled .menu-primary-menu-container {
    display: block;
  }

  .main-navigation .menu {
    flex-direction: column;
    padding: 0.5rem 0 1rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-menu {
    width: 100%;
  }

  .main-navigation {
    width: 100%;
  }

  .site-logo img {
    height: 56px;
  }

  .site-title {
    font-size: 1.35rem;
  }
}

@media (min-width: 1025px) {
  .site-header .header-wrapper,
  .site-main,
  .site-footer .footer-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}
