/**
 * w88.icu domain-scoped editorial UI safeguards.
 * Tokens follow K:/Agent/webo-design-system/sites/w88.icu/tokens.json.
 */

.w88-site {
  --w88-color-primary: #2f8fc2;
  --w88-color-primary-dark: #247dae;
  --w88-color-accent: #c93636;
  --w88-color-gold: #d7b75f;
  --w88-color-ink: #111827;
  --w88-color-text: #1f2933;
  --w88-color-muted: #f3f6f8;
  --w88-color-border: rgba(17, 24, 39, 0.14);
  --w88-color-surface-dark: #151515;
  --w88-color-focus: #f4c95d;
  --w88-radius-control: 8px;
  --w88-radius-media: 12px;
  --w88-shadow-card: 0 8px 24px rgba(17, 24, 39, 0.08);
  color: var(--w88-color-text);
}

.w88-site .header-logo img {
  display: block;
  height: auto;
  max-height: 69px;
  object-fit: contain;
}

.w88-site .header-main .nav > li > a,
.w88-site .header-bottom .nav > li > a,
.w88-site .bookies-boxed-cta,
.w88-site .bookies-sidebar-cta-button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 44px;
}

.w88-site .header-main .nav > li > a,
.w88-site .header-bottom .nav > li > a {
  letter-spacing: 0;
  padding-inline: 8px;
}

.w88-site .bookies-boxed-cta,
.w88-site .bookies-sidebar-cta-button {
  padding-block: 8px;
}

.w88-site .mobile-nav .nav-icon,
.w88-site .wpml-ls-legacy-dropdown-click a,
.w88-site .wpml-ls-legacy-dropdown a {
  align-items: center;
  display: inline-flex;
  min-height: 44px;
  min-width: 44px;
}

.w88-site a:focus-visible,
.w88-site button:focus-visible,
.w88-site input:focus-visible,
.w88-site select:focus-visible,
.w88-site textarea:focus-visible,
.w88-site [tabindex="0"]:focus-visible {
  outline: 3px solid var(--w88-color-focus);
  outline-offset: 3px;
}

.w88-site .bookies-sitewide-sidebar-main {
  min-width: 0;
}

.w88-site .entry-content {
  font-size: 18px;
  line-height: 1.65;
}

.w88-site .entry-content h1 {
  color: var(--w88-color-ink);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.16;
  margin-bottom: 20px;
  text-wrap: balance;
}

.w88-site .entry-content h2 {
  border-left: 4px solid var(--w88-color-primary);
  color: var(--w88-color-ink);
  font-size: clamp(24px, 2.1vw, 32px);
  line-height: 1.25;
  margin-top: 44px;
  padding-left: 14px;
  scroll-margin-top: 112px;
  text-wrap: balance;
}

.w88-site .entry-content h3 {
  color: var(--w88-color-ink);
  scroll-margin-top: 112px;
}

.w88-site .entry-content p,
.w88-site .entry-content li {
  overflow-wrap: anywhere;
}

.w88-site .entry-content figure {
  margin-block: 24px 16px;
}

.w88-site .entry-content figure img {
  border-radius: var(--w88-radius-media);
  box-shadow: var(--w88-shadow-card);
  height: auto;
  max-width: 100%;
}

.w88-site .w88-quick-nav {
  background: var(--w88-color-muted);
  border: 1px solid var(--w88-color-border);
  border-left: 5px solid var(--w88-color-primary);
  border-radius: var(--w88-radius-control);
  margin: 24px 0 28px;
  padding: 18px 20px 20px;
}

.w88-site .w88-quick-nav__label {
  color: var(--w88-color-ink);
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.w88-site .w88-quick-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.w88-site .w88-quick-nav li {
  margin: 0;
}

.w88-site .w88-quick-nav a {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(47, 143, 194, 0.4);
  border-radius: 999px;
  color: #1d648a;
  display: inline-flex;
  font-size: 15px;
  font-weight: 600;
  min-height: 44px;
  padding: 8px 14px;
  text-decoration: none;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.w88-site .w88-quick-nav a:hover {
  background: var(--w88-color-primary-dark);
  border-color: var(--w88-color-primary-dark);
  color: #fff;
}

.w88-site .w88-table-scroll {
  border: 1px solid var(--w88-color-border);
  border-radius: var(--w88-radius-control);
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.06);
  margin: 20px 0 28px;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--w88-color-primary) #e8edf0;
}

.w88-site .w88-table-scroll table,
.w88-site .entry-content table {
  border: 0;
  font-size: 16px;
  margin: 0;
  min-width: 560px;
  width: 100%;
}

.w88-site .w88-table-scroll th,
.w88-site .w88-table-scroll td {
  padding: 12px 14px;
  vertical-align: top;
}

.w88-site .w88-table-scroll thead th {
  background: var(--w88-color-ink);
  color: #fff;
  font-weight: 700;
}

.w88-site .w88-table-scroll tbody tr:nth-child(even) {
  background: #f7f9fa;
}

.w88-site .w88-table-scroll tbody tr:hover {
  background: #eef6fa;
}

.w88-site .w88-related-guides {
  background: var(--w88-color-muted);
  border: 1px solid var(--w88-color-border);
  border-radius: var(--w88-radius-control);
  margin: 36px 0 8px;
  padding: 2px 22px 22px;
}

.w88-site .entry-content .w88-related-guides h2 {
  margin-top: 24px;
}

.w88-site .w88-related-guides ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.w88-site .w88-related-guides a {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(47, 143, 194, 0.3);
  border-radius: var(--w88-radius-control);
  color: #1d648a;
  display: flex;
  font-weight: 650;
  min-height: 48px;
  padding: 10px 14px;
  text-decoration: none;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.w88-site .w88-related-guides a:hover {
  background: var(--w88-color-primary-dark);
  border-color: var(--w88-color-primary-dark);
  color: #fff;
}

@media (min-width: 850px) {
  .w88-site .bookies-sitewide-sidebar-layout {
    gap: 28px;
  }

  .w88-site .bookies-sitewide-sidebar {
    position: sticky;
    top: 104px;
  }
}

@media (max-width: 849px) {
  .w88-site .bookies-sitewide-sidebar-layout {
    display: block;
  }

  .w88-site .bookies-sitewide-sidebar {
    margin-top: 36px;
  }

  .w88-site .entry-content {
    font-size: 16px;
    line-height: 1.65;
  }

  .w88-site .entry-content h1 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .w88-site .bookies-sitewide-sidebar a,
  .w88-site .footer-wrapper a {
    align-items: center;
    display: flex;
    min-height: 44px;
    padding-block: 8px;
  }
}

@media (max-width: 549px) {
  .w88-site .header-logo img {
    max-height: 58px;
  }

  .w88-site .entry-content h2 {
    margin-top: 36px;
    scroll-margin-top: 88px;
  }

  .w88-site .w88-quick-nav {
    padding: 16px;
  }

  .w88-site .w88-quick-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .w88-site .w88-quick-nav a {
    justify-content: center;
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 360px) {
  .w88-site .w88-quick-nav ul {
    grid-template-columns: 1fr;
  }
}

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