/*
Theme Name: Pinnacle Affiliate Basic
Theme URI: https://example-pinnacle.test/
Author: Codex OpenAI
Description: Sportsbook-style WordPress block theme for independent Pinnacle-related affiliate and content sites.
Version: 0.1.3
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: pinnacle-affiliate-basic
*/

:root {
  --pab-navy-950: #06172a;
  --pab-navy-900: #08213c;
  --pab-navy-800: #0c3156;
  --pab-muted-blue: #173f66;
  --pab-orange: #ff5a14;
  --pab-green: #13a816;
  --pab-green-dark: #0b7f11;
  --pab-bg: #eef2f6;
  --pab-surface: #ffffff;
  --pab-line: #d9e1ea;
  --pab-soft: #f5f7fa;
  --pab-soft-green: #edf9ed;
  --pab-text: #09233d;
  --pab-muted: #627286;
  --pab-danger: #c93030;
  --pab-radius: 8px;
  --pab-shadow: 0 10px 24px rgba(7, 25, 45, 0.08);
}

html {
  background: var(--pab-bg);
  scroll-behavior: smooth;
}

body {
  color: var(--pab-text);
  background: var(--pab-bg);
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.pab-site-header {
  background: linear-gradient(180deg, var(--pab-navy-950), var(--pab-navy-900));
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pab-header-shell {
  min-height: 86px;
  padding-left: 16px;
  padding-right: 16px;
}

.pab-brand {
  min-width: 210px;
}

.pab-logo-link {
  align-items: center;
  display: inline-flex;
  max-width: 100%;
  text-decoration: none;
}

.pab-site-header .pab-logo-link {
  margin-left: 16px;
}

.pab-brand-logo {
  display: block;
  height: auto;
  max-width: 100%;
}

.pab-brand-logo--header {
  max-height: 52px;
  width: min(260px, 64vw);
}

.pab-brand-logo--footer {
  max-height: 44px;
  width: min(220px, 70vw);
}

.pab-logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.pab-logo-mark span {
  color: var(--pab-orange);
}

.pab-logo-caption {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  margin-top: 2px;
}

.pab-top-cta {
  margin-right: 16px;
  white-space: nowrap;
}

.pab-top-cta .pab-secondary .wp-block-button__link {
  background: #fff !important;
  border-color: rgba(255, 255, 255, 0.85) !important;
  color: var(--pab-text) !important;
}

.pab-sports-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 48px;
}

.pab-sports-nav .wp-block-navigation__container {
  gap: 2px;
}

.pab-sports-nav a {
  align-items: center;
  border-bottom: 3px solid transparent;
  color: #fff;
  display: flex;
  font-size: 0.82rem;
  font-weight: 800;
  min-height: 48px;
  padding: 0 14px;
  text-decoration: none;
  text-transform: uppercase;
}

.pab-sports-nav a:hover,
.pab-sports-nav .current-menu-item > a,
.pab-sports-nav .current-menu-ancestor > a {
  border-bottom-color: var(--pab-orange);
  color: #fff;
}

.pab-info-strip {
  border-left: 4px solid var(--pab-orange);
}

.pab-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: 280px minmax(0, 1fr);
}

.pab-sidebar {
  align-self: start;
  position: sticky;
  top: 150px;
}

.pab-sidebar-nav a,
.pab-chip-link a {
  text-decoration: none;
}

.pab-sidebar-nav .wp-block-navigation__container {
  width: 100%;
}

.pab-sidebar-nav .wp-block-navigation-item {
  width: 100%;
}

.pab-sidebar-nav a {
  border-left: 3px solid transparent;
  display: flex;
  justify-content: space-between;
  min-height: 40px;
  padding: 10px 12px;
  width: 100%;
}

.pab-sidebar-nav a:hover,
.pab-sidebar-nav .current-menu-item > a {
  background: #e8edf4;
  border-left-color: var(--pab-orange);
  color: var(--pab-text);
}

.pab-card,
.pab-offer-card,
.pab-panel {
  background: var(--pab-surface);
  border: 1px solid var(--pab-line);
  border-radius: var(--pab-radius);
  box-shadow: var(--pab-shadow);
}

.pab-offer-card {
  border-top: 4px solid var(--pab-orange);
}

.pab-section-title {
  border-bottom: 3px solid var(--pab-orange);
  display: inline-block;
  padding-bottom: 6px;
}

.pab-event-card {
  min-height: 132px;
}

.pab-event-card strong {
  color: #0068e6;
}

.pab-table {
  border-collapse: collapse;
  width: 100%;
}

.pab-table th {
  background: #e5ebf3;
  color: #334b66;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.pab-table td,
.pab-table th {
  border: 1px solid var(--pab-line);
  padding: 12px;
  vertical-align: top;
}

.pab-table tr:nth-child(even) td {
  background: #f8fafc;
}

.pab-table .is-highlight td,
.pab-table tr.is-highlight td {
  background: var(--pab-soft-green);
}

.pab-odds-table td:last-child,
.pab-odds-table th:last-child {
  font-weight: 800;
  text-align: right;
}

.pab-cta-button .wp-block-button__link,
.pab-primary .wp-block-button__link {
  min-height: 44px;
}

.pab-cta-button .wp-block-button__link:hover,
.pab-primary .wp-block-button__link:hover {
  background: var(--pab-green-dark) !important;
}

.pab-secondary .wp-block-button__link:hover {
  background: var(--pab-navy-900) !important;
  color: #fff !important;
}

.pab-pros li,
.pab-cons li {
  margin-bottom: 8px;
}

.pab-pros li::marker {
  color: var(--pab-green);
}

.pab-cons li::marker {
  color: var(--pab-danger);
}

.pab-steps {
  counter-reset: pab-step;
}

.pab-step {
  counter-increment: pab-step;
  position: relative;
}

.pab-step::before {
  align-items: center;
  background: var(--pab-orange);
  border-radius: 50%;
  color: #fff;
  content: counter(pab-step);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 800;
  height: 26px;
  justify-content: center;
  margin-right: 8px;
  width: 26px;
}

.pab-faq details {
  background: var(--pab-surface);
  border: 1px solid var(--pab-line);
  border-radius: var(--pab-radius);
  margin-bottom: 10px;
  padding: 14px 16px;
}

.pab-faq summary {
  cursor: pointer;
  font-weight: 800;
}

.pab-disclaimer {
  border-left: 4px solid var(--pab-orange);
}

.pab-sticky-mobile-cta {
  display: none;
}

.pab-footer {
  background: var(--pab-navy-950);
  color: rgba(255, 255, 255, 0.82);
}

.pab-footer a {
  color: #fff;
}

@media (max-width: 900px) {
  body {
    padding-bottom: 74px;
  }

  .pab-site-header {
    position: static;
  }

  .pab-header-shell {
    min-height: auto;
  }

  .pab-brand {
    min-width: 0;
  }

  .pab-brand-logo--header {
    max-height: 42px;
    width: min(210px, 58vw);
  }

  .pab-logo-mark {
    font-size: 1.35rem;
  }

  .pab-sports-nav {
    overflow-x: auto;
  }

  .pab-sports-nav .wp-block-navigation__container {
    flex-wrap: nowrap;
    min-width: max-content;
  }

  .pab-sports-nav a {
    min-height: 44px;
    padding: 0 12px;
  }

  .pab-layout {
    display: block;
  }

  .pab-sidebar {
    margin-bottom: 16px;
    position: static;
  }

  .pab-sidebar-nav {
    display: flex;
    overflow-x: auto;
  }

  .pab-sidebar-nav .wp-block-navigation__container {
    flex-direction: row;
    flex-wrap: nowrap;
    min-width: max-content;
  }

  .pab-sidebar-nav .wp-block-navigation-item {
    width: auto;
  }

  .pab-sidebar-nav a {
    border-bottom: 3px solid transparent;
    border-left: 0;
    flex: 0 0 auto;
    min-height: 44px;
    white-space: nowrap;
    width: auto;
  }

  .pab-sidebar-nav a:hover,
  .pab-sidebar-nav .current-menu-item > a {
    border-bottom-color: var(--pab-orange);
    border-left-color: transparent;
  }

  .pab-table,
  .pab-table tbody,
  .pab-table tr,
  .pab-table td {
    display: block;
    width: 100%;
  }

  .pab-table thead {
    display: none;
  }

  .pab-table tr {
    border: 1px solid var(--pab-line);
    border-radius: var(--pab-radius);
    margin-bottom: 10px;
    overflow: hidden;
  }

  .pab-table td {
    border: 0;
    border-bottom: 1px solid var(--pab-line);
    min-height: 44px;
  }

  .pab-table td::before {
    color: var(--pab-muted);
    content: attr(data-label);
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 4px;
    text-transform: uppercase;
  }

  .pab-sticky-mobile-cta {
    background: #fff;
    border-top: 1px solid var(--pab-line);
    bottom: 0;
    box-shadow: 0 -8px 22px rgba(7, 25, 45, 0.14);
    display: block;
    left: 0;
    padding: 10px 16px;
    position: fixed;
    right: 0;
    z-index: 60;
  }
}

@media (max-width: 560px) {
  .pab-desktop-only {
    display: none !important;
  }

  .pab-event-card {
    min-height: auto;
  }

  .wp-block-buttons {
    width: 100%;
  }

  .wp-block-button,
  .wp-block-button__link {
    width: 100%;
  }
}
