/* =============================================
   1WIN AFFILIATE SITE – CLEAN CSS
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #04090f;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* -----------------------------------------------
   CENTERED PAGE WRAPPER
   Outer body = very dark #04090f
   Inner content strip capped at --max-w = 1200px
   Gives a "boxed / not full-width" feel
----------------------------------------------- */
.topbar,
.header__inner,
.main,
.footer__inner {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

/* Header & footer strips are full-width bg, content inside is capped */
.site-header {
  background: var(--bg-head);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 24px rgba(0,0,0,.45);
}
footer {
  background: #06101f;
  border-top: 1px solid var(--border);
}

/* Visible "card" edge on large screens — subtle side shadows */
@media (min-width: 1260px) {
  .site-header::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  }
  .main {
    background: var(--bg);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 0 60px rgba(0,0,0,.6);
  }
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; outline: none; }

/* --- CSS Variables --- */
:root {
  --bg:       #090f1e;
  --bg-card:  #111929;
  --bg-head:  #0c1528;
  --blue:     #1464e8;
  --grad:     linear-gradient(255deg, #00b7ff, #8d53e9);
  --grad-btn: linear-gradient(255deg, #00b7ff 0%, #8d53e9 100%);
  --green:    #17c964;
  --muted:    rgba(255,255,255,0.55);
  --border:   rgba(255,255,255,0.08);
  --radius:   10px;
  --max-w:    1200px;
}

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: rgba(217,217,217,.25) transparent; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: rgba(217,217,217,.25); border-radius: 5px; }

/* =============================================
   TOP BAR  (desktop only)
   ============================================= */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 24px;
  height: 48px;
}
.topbar__icons { display: flex; gap: 8px; align-items: center; }
.topbar__icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: rgba(78,93,134,.3);
  border-radius: 6px;
}
.topbar__icon-btn svg { width: 18px; height: 18px; }
.topbar__apps { display: flex; align-items: center; gap: 12px; }
.topbar__app-win {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer;
  font-size: 11px; line-height: 1.2;
}
.topbar__app-win p { display: flex; flex-direction: column; }
.topbar__app-win p span { color: var(--muted); font-size: 10px; }
.topbar__app-win svg { width: 28px; height: 28px; }
.topbar__app-mob {
  display: flex; align-items: center; gap: 6px;
  cursor: pointer;
  background: none;
}
.topbar__app-mob svg { width: 24px; height: 24px; }
@media (max-width: 1199px) { .topbar { display: none; } }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-head);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 24px; height: 60px;
}
.header__logo img { height: 38px; width: auto; }
.header__nav { flex: 1; display: flex; }
.header__nav ul { display: flex; flex-wrap: wrap; gap: 4px 0; }
.header__nav a {
  display: block; padding: 6px 12px;
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: 6px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.header__nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.header__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 0 18px; height: 36px;
  border-radius: 8px; font-size: 14px; font-weight: 600;
  white-space: nowrap; cursor: pointer; transition: opacity .15s;
}
.btn:hover { opacity: .88; }
.btn--ghost {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff;
}
.btn--grad {
  background: var(--grad-btn);
  color: #fff; border: none;
}
.btn--green { background: var(--green); color: #fff; border: none; }
.btn--plus .icon-plus { font-size: 16px; font-weight: 700; }

/* Mobile hamburger */
.header__burger {
  display: none; flex-direction: column; gap: 5px;
  width: 30px; padding: 5px; cursor: pointer; background: none;
}
.header__burger span {
  display: block; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
@media (max-width: 1024px) {
  .header__nav { display: none; }
  .header__burger { display: flex; }
}
@media (max-width: 600px) {
  .btn--signin { display: none; }
}

/* Mobile menu overlay */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(9,15,30,.97); flex-direction: column;
  padding: 20px;
  overflow-y: auto;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav__close {
  align-self: flex-end; background: none;
  width: 36px; height: 36px; font-size: 22px; color: #fff; cursor: pointer;
}
.mobile-nav ul { margin-top: 20px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  display: block; padding: 12px 16px;
  font-size: 16px; font-weight: 500;
  border-radius: 8px; color: #fff;
}
.mobile-nav a:hover { background: rgba(255,255,255,.08); }

/* =============================================
   DISCLOSURE BAR
   ============================================= */
.disclosure {
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid var(--border);
  font-size: 12px; color: rgba(255,255,255,.55);
  text-align: center; padding: 6px 20px;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--muted);
  padding: 6px 0 0;
}

/* =============================================
   MAIN WRAPPER
   ============================================= */
.main { padding: 0 24px 40px; }

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  margin: 16px 0;
}
/* Slider */
.hero__slider {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  min-height: 280px;
  background: #111929;
}
.hero__slider img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
}
.slider-arrows {
  position: absolute; bottom: 14px; right: 14px;
  display: flex; gap: 8px;
}
.slider-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; color: #fff; font-size: 14px;
  transition: background .15s;
}
.slider-arrow:hover { background: rgba(255,255,255,.32); }

/* Signup panel */
.hero__panel {
  border-radius: var(--radius);
  background: #131d32 url('wp-content/uploads/2023/04/1win-deposit-bonus-min-150x150.webp') right bottom / cover no-repeat;
  padding: 24px 20px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 280px;
}
.hero__panel-title {
  font-size: 22px; font-weight: 700; line-height: 1.25;
}
.hero__panel-sub { font-size: 14px; color: rgba(255,255,255,.75); }
.hero__cta {
  display: inline-flex; align-items: center; justify-content: center;
  width: 140px; height: 42px;
  background: var(--grad-btn);
  border-radius: 8px; font-size: 15px; font-weight: 700;
  cursor: pointer; border: none; color: #fff;
  transition: opacity .15s;
}
.hero__cta:hover { opacity: .85; }
.promo-box {
  margin-top: auto;
  background: rgba(0,0,0,.35);
  border-radius: 8px; padding: 10px 12px;
}
.promo-box__label { font-size: 12px; color: rgba(255,255,255,.65); margin-bottom: 6px; }
.promo-box__row {
  display: flex; gap: 6px; align-items: center;
}
.promo-box__input {
  flex: 1; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px; padding: 6px 10px;
  color: #fff; font-size: 13px; font-family: inherit;
  cursor: default; outline: none;
}
.promo-box__copy {
  padding: 6px 12px; border-radius: 6px;
  background: var(--grad-btn);
  color: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: opacity .15s;
}
.promo-box__copy:hover { opacity: .85; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__panel { min-height: 200px; }
}

/* =============================================
   CATEGORY BAR (TVBET / Casino / Live / Poker)
   ============================================= */
.cat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
}
.cat-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  background: var(--bg-card);
  cursor: pointer; transition: background .15s;
  text-decoration: none; color: #fff;
}
.cat-card:hover { background: #182240; }
.cat-card__text strong {
  display: block; font-size: 17px; font-weight: 700;
}
.cat-card__text span { font-size: 12px; color: var(--muted); }
.cat-card__img { width: 52px; height: 52px; flex-shrink: 0; }

@media (max-width: 700px) {
  .cat-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .cat-bar { grid-template-columns: 1fr; }
}

/* =============================================
   GAMES GRID  (Casino + Live side by side)
   ============================================= */
.games-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.games-panel {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
}
.games-panel__bar {
  height: 3px;
}
.games-panel--casino .games-panel__bar {
  background: linear-gradient(90deg, #e01fff 0%, #3b82f6 100%);
}
.games-panel--live .games-panel__bar {
  background: linear-gradient(90deg, #3b82f6 0%, transparent 100%);
}
.games-panel__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 8px;
}
.games-panel__title {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 16px; font-weight: 700;
}
.games-panel__title span {
  font-size: 13px; color: var(--muted); font-weight: 400;
}
.games-panel__all {
  font-size: 13px; color: #5faeff;
  text-decoration: none;
}
.games-panel__all:hover { text-decoration: underline; }
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 0 8px 12px;
}
.game-card {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.game-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s;
}
.game-card:hover img { transform: scale(1.04); }

@media (max-width: 900px) {
  .games-wrap { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 500px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   ARTICLE / CONTENT
   ============================================= */
.article-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 16px;
}
.article-section h1 {
  font-size: 26px; font-weight: 700;
  margin-bottom: 16px; line-height: 1.3;
}
.article-section h2 {
  font-size: 20px; font-weight: 700;
  margin: 24px 0 10px; line-height: 1.3;
}
.article-section h3 {
  font-size: 17px; font-weight: 600;
  margin: 18px 0 8px;
}
.article-section p { margin-bottom: 12px; color: rgba(255,255,255,.88); }
.article-section ul, .article-section ol {
  margin: 0 0 12px 20px;
  color: rgba(255,255,255,.88);
}
.article-section li { margin-bottom: 4px; list-style: disc; }
.article-section a { color: #5faeff; }
.article-section a:hover { text-decoration: underline; }
/* CTA links inside article must NOT inherit link color */
.article-section a.cta-button,
.article-section .cta-button-wrapper a { color: #fff; text-decoration: none; }
.article-section a.cta-button:hover,
.article-section .cta-button-wrapper a:hover { text-decoration: none; }

/* TOC */
.home-toc {
  background: rgba(255,255,255,.05);
  border-radius: 8px; padding: 12px 16px; margin-bottom: 20px;
}
.home-toc summary {
  cursor: pointer; font-weight: 600; font-size: 14px;
  user-select: none;
}
.home-toc nav { margin-top: 10px; }
.home-toc nav ul { margin: 0; }
.home-toc nav li { list-style: none; margin: 4px 0; }
.home-toc nav a { color: #5faeff; font-size: 13px; }
.home-toc nav ul ul { margin-left: 16px; }

/* Image + text blocks (new clean markup) */
.img-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px; align-items: center;
  margin: 16px 0;
}
.img-block--right .img-block__img { order: 2; }
.img-block--right .img-block__text { order: 1; }
.img-block--left .img-block__img { order: 1; }
.img-block--left .img-block__text { order: 2; }
.img-block__img img {
  border-radius: 10px;
  width: 100%; height: auto;
  display: block;
  object-fit: contain;
}

/* WordPress image__block classes (old content) */
.image__block.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px; align-items: center;
  margin: 20px 0;
}
.image__block.row.right .image__block_img { order: 2; }
.image__block.row.right .image__block_descr { order: 1; }
.image__block.row.left .image__block_img { order: 1; }
.image__block.row.left .image__block_descr { order: 2; }
.image__block_imagebox img {
  width: 100%; height: auto;
  display: block;
  border-radius: 10px;
  object-fit: contain;
}
.image__block_imagebox {
  line-height: 0;
  border-radius: 10px;
  overflow: hidden;
}

@media (max-width: 700px) {
  .img-block,
  .image__block.row {
    grid-template-columns: 1fr;
  }
  .img-block--right .img-block__img,
  .img-block--right .img-block__text,
  .img-block--left .img-block__img,
  .img-block--left .img-block__text,
  .image__block.row.right .image__block_img,
  .image__block.row.right .image__block_descr,
  .image__block.row.left .image__block_img,
  .image__block.row.left .image__block_descr { order: unset; }
  .article-section { padding: 18px 16px; }
}

/* -----------------------------------------------
   CTA button — gradient pill, always white text
   Works on both <a> and <button> inside articles
----------------------------------------------- */
.cta-button-wrapper {
  margin: 20px 0; text-align: center;
}
.cta-button,
a.cta-button,
.article-section a.cta-button,
.article-section .cta-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px 40px !important;
  border-radius: 12px !important;
  background: var(--grad-btn) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: opacity .2s, transform .15s !important;
  box-shadow: 0 4px 20px rgba(100, 60, 220, 0.35) !important;
  border: none !important;
  letter-spacing: .01em;
  min-width: 220px;
  text-align: center;
}
.cta-button:hover,
a.cta-button:hover,
.article-section a.cta-button:hover {
  opacity: .88 !important;
  transform: translateY(-2px) !important;
  text-decoration: none !important;
}

/* =============================================
   POKER / BONUS CTA BAR
   ============================================= */
.bonus-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px 24px; margin-bottom: 16px;
  gap: 12px;
}
.bonus-bar__left { display: flex; align-items: center; gap: 14px; }
.bonus-bar__left img { width: 52px; height: 52px; flex-shrink: 0; }
.bonus-bar__title { font-size: 16px; font-weight: 700; }
.bonus-bar__sub { font-size: 13px; color: var(--muted); }
.bonus-bar .btn { flex-shrink: 0; padding: 0 28px; height: 44px; font-size: 15px; }

@media (max-width: 600px) {
  .bonus-bar { flex-direction: column; align-items: flex-start; }
}

/* =============================================
   SOCIAL / APP BAR
   ============================================= */
.social-bar {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px 24px; margin-bottom: 16px;
  gap: 16px; flex-wrap: wrap;
}
.social-bar__left { display: flex; align-items: center; gap: 16px; }
.social-bar__label strong { display: block; font-size: 15px; font-weight: 700; }
.social-bar__label span { font-size: 13px; color: var(--muted); }
.social-icons { display: flex; gap: 10px; }
.social-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s;
}
.social-icon:hover { background: rgba(255,255,255,.2); }
.social-icon svg { width: 20px; height: 20px; }
.social-bar__app { display: flex; flex-direction: column; gap: 4px; }
.social-bar__app strong { font-size: 15px; font-weight: 700; }
.social-bar__app span { font-size: 13px; color: var(--muted); }
.app-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 8px;
  background: rgba(255,255,255,.1);
  font-size: 13px; font-weight: 600; color: #fff;
  cursor: pointer; margin-top: 6px; transition: background .15s;
}
.app-btn:hover { background: rgba(255,255,255,.18); }
.app-btn svg { width: 20px; height: 20px; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: #06101f;
  border-top: 1px solid var(--border);
  padding: 32px 20px 20px;
}
.footer__inner {
  padding: 0 4px;
}
.footer__top {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 24px; margin-bottom: 28px;
}
.footer__logo img { height: 36px; margin-bottom: 12px; }
.footer__tagline { font-size: 13px; color: var(--muted); max-width: 260px; }
.footer__cols {
  display: flex; gap: 40px; flex-wrap: wrap;
}
.footer__col h4 {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  color: rgba(255,255,255,.5); letter-spacing: .06em; margin-bottom: 10px;
}
.footer__col li { margin-bottom: 6px; }
.footer__col a { font-size: 13px; color: rgba(255,255,255,.7); }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  align-items: center;
}
.footer__copy { font-size: 12px; color: var(--muted); }
.footer__nav-bot { display: flex; gap: 16px; flex-wrap: wrap; }
.footer__nav-bot a { font-size: 12px; color: var(--muted); }
.footer__nav-bot a:hover { color: #fff; }
.footer__age {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,.6);
  flex-shrink: 0;
}

/* ── Footer network block ── */
.footer-network {
  border-top: 1px solid var(--border);
  padding: 14px 0;
  background: rgba(0,0,0,.15);
}
.footer-network .footer__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.footer-network__title {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.footer-network__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-network__list a {
  font-size: 12.5px;
  color: rgba(100,160,255,.75);
  text-decoration: none;
  transition: color .18s;
}
.footer-network__list a:hover { color: #fff; }

/* =============================================
   VPN / STICKY BOTTOM BAR
   ============================================= */
.sticky-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px 24px; margin-bottom: 16px;
}
.sticky-bar__left { display: flex; align-items: center; gap: 12px; }
.sticky-bar__left img { width: 48px; height: 48px; }
.sticky-bar__title { font-size: 16px; font-weight: 700; }

/* =============================================
   TABLES
   ============================================= */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  margin: 20px 0;
  background: #0d1628;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
/* Auto-wrap bare <table> in article */
.article-section table,
.article-section .table-container table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 420px;
}

/* Wrap any raw table in a scroll container */
.article-section .table-container { overflow-x: auto; margin: 20px 0; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }

/* Header row */
thead tr {
  background: linear-gradient(135deg, #1a2a50 0%, #0f1d3a 100%);
  border-bottom: 2px solid rgba(100,140,255,.25);
}
th {
  padding: 13px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
  position: relative;
}

/* Sort arrows — added by JS */
th.sortable {
  cursor: pointer;
  padding-right: 30px;
}
th.sortable::after {
  content: '↕';
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: .35;
  transition: opacity .15s;
}
th.sortable:hover::after { opacity: .75; }
th.sort-asc::after  { content: '↑'; opacity: .9; color: #7db8ff; }
th.sort-desc::after { content: '↓'; opacity: .9; color: #7db8ff; }
th.sortable:hover   { background: rgba(100,140,255,.12); }

/* Body rows */
tbody tr {
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .15s;
}
tbody tr:last-child { border-bottom: none; }
tbody tr:nth-child(even) { background: rgba(255,255,255,.025); }
tbody tr:hover {
  background: rgba(100,140,255,.1);
  cursor: default;
}

td {
  padding: 11px 16px;
  color: rgba(255,255,255,.82);
  vertical-align: middle;
  line-height: 1.45;
}

/* Highlight first column */
td:first-child {
  font-weight: 600;
  color: #fff;
}

/* Green / accent values */
td.td-green { color: #22d47e; font-weight: 600; }
td.td-blue  { color: #7db8ff; font-weight: 600; }

/* Search / filter bar — injected by JS */
.table-search {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.table-search input {
  flex: 1;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 8px 14px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}
.table-search input:focus { border-color: rgba(100,140,255,.5); }
.table-search input::placeholder { color: rgba(255,255,255,.3); }

/* Row count badge */
.table-count {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  white-space: nowrap;
}

/* No-results row */
tr.no-results td {
  text-align: center;
  color: rgba(255,255,255,.35);
  padding: 20px;
  font-style: italic;
}

@media (max-width: 600px) {
  th, td { padding: 9px 10px; font-size: 13px; }
}

/* =============================================
   UTILITIES
   ============================================= */
.section-gap { margin-bottom: 16px; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }

/* Hide default details/summary marker — we use text label */
.home-toc > summary { list-style: none; }
.home-toc > summary::-webkit-details-marker { display: none; }

/* ── Language Switcher v2 (ls*) ── */
.ls { position: relative; list-style: none; }
.ls__btn {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22);
  border-radius: 7px; padding: 5px 11px; cursor: pointer;
  color: #fff; font-size: 13px; font-weight: 600; user-select: none;
  font-family: inherit; white-space: nowrap;
}
.ls__btn::-webkit-details-marker, .ls__btn::marker { display: none; }
.ls__caret { transition: transform .2s; flex-shrink: 0; opacity: .7; }
.ls[open] .ls__caret { transform: rotate(180deg); }
.ls__menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 175px;
  background: #1c2d4f;
  border: 1px solid rgba(255,255,255,.22);
  border-top: 2px solid #38a8fa;
  border-radius: 9px;
  box-shadow: 0 20px 60px rgba(0,0,0,.95), 0 4px 16px rgba(0,0,0,.6);
  padding: 6px 0; z-index: 999999;
  list-style: none; margin: 0;
}
.ls__item a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; text-decoration: none;
  color: #cdd6f4; font-size: 14px; line-height: 1;
  transition: background .15s;
}
.ls__item a:hover { background: rgba(255,255,255,.09); color: #fff; }
.ls__item--active a { color: #38a8fa; font-weight: 700; }
.ls__item--active a::after { content: '✓'; margin-left: auto; font-size: 12px; color: #38a8fa; }
.ls__code-sm { font-size: 11px; color: rgba(205,214,244,.4); }
@media (max-width: 600px) { .ls__menu { right: auto; left: 0; } }

/* ── Language Switcher (legacy, kept for compat) ── */
.lang-sw { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  color: #fff; border-radius: 6px; padding: 5px 10px;
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  transition: background .2s, border-color .2s; white-space: nowrap;
}
.lang-btn:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); }
.lang-flag { font-size: 1rem; line-height: 1; }
.lang-code { letter-spacing: .04em; }
.lang-caret { transition: transform .2s; flex-shrink: 0; }
.lang-btn[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.lang-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 160px; background: #1e2f50;
  border: 1px solid rgba(255,255,255,.28); border-top: 2px solid #38a8fa;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,.85), 0 0 0 1px rgba(56,168,250,.15);
  padding: 6px 0; z-index: 99999;
  list-style: none; margin: 0;
}
.lang-dropdown--open { display: block; animation: langFade .15s ease; }
@keyframes langFade { from { opacity:0; transform: translateY(-6px); } to { opacity:1; transform: translateY(0); } }
.lang-option {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; text-decoration: none; color: #e0e6f0; font-size: .85rem;
  transition: background .15s;
}
.lang-option:hover { background: rgba(255,255,255,.08); }
.lang-option--active { color: #38a8fa; font-weight: 600; }
.lang-option--active::after { content: '✓'; margin-left: auto; font-size: .75rem; color: #38a8fa; }
.lang-option__flag { font-size: 1.05rem; }
.lang-option__label { flex: 1; white-space: nowrap; }
.lang-option__code { font-size: .72rem; color: rgba(224,230,240,.4); margin-left: 8px; }
.lang-option--active .lang-option__code { display: none; }
@media (max-width: 600px) { .lang-dropdown { right: auto; left: 0; } }
