/* =========================================================
   KQXS Ba Miền — components.css
   Ported verbatim from mockup-v3/style.css. Contains:
   live-broadcast, open-today, section-card, block-head, prov-tabs,
   prize-table, mb-stage, dd tables (half + multi + dd-mb),
   kq-result-table, kq-multi, kq controls, digit ribbon, tail2 highlight,
   related-strip, region-prev-next, badges, vietlott grid,
   sidebar widgets, sched-table, FAQ (tinted-faq), seo-prose,
   footer-dense, bottom-tab-nav, breadcrumb, weekday-tabs, kq-related.
   ========================================================= */

/* ============================ SIDEBAR (right rail / tablet grid / mobile accordion) ============================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}

.sb-widget {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.sb-widget-head {
  display: block;
  background: var(--red);
  color: var(--white);
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  list-style: none;
  position: relative;
}
.sb-widget-head::-webkit-details-marker { display: none; }
.sb-widget-head::after {
  content: '\25BE';
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  transition: transform 0.12s;
}
.sb-widget[open] > .sb-widget-head::after { transform: translateY(-50%) rotate(180deg); }

.sb-widget-body {
  display: flex;
  flex-direction: column;
}

.sb-link-list {
  display: flex;
  flex-direction: column;
}
.sb-link-list li + li > a { border-top: 1px solid var(--line-soft); }
.sb-link-list a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
  transition: background 0.12s, color 0.12s;
}
.sb-news-item a {
  font-size: 13px;
  color: var(--body);
  font-weight: 500;
}

.sb-region + .sb-region { border-top: 1px solid var(--line-soft); }
.sb-region-h {
  display: block;
  padding: var(--space-2) var(--space-4) var(--space-1);
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 14px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.sb-day-list {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3) var(--space-3);
}
.sb-day-list a {
  display: block;
  text-align: center;
  padding: var(--space-1) 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

@media (hover: hover) {
  .sb-link-list a:hover,
  .sb-region-h:hover {
    background: var(--rose);
    color: var(--red);
  }
  .sb-day-list a:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
  }
}

@media (max-width: 640px) {
  .sidebar {
    margin-top: var(--space-4);
    gap: var(--space-3);
  }
  .sb-widget:not([open]) > .sb-widget-body,
  .sb-widget:not([open]) > .sb-link-list {
    display: none;
  }
  .sb-widget-head { padding: var(--space-3) var(--space-3); }
  .sb-link-list a { padding: var(--space-2) var(--space-3); }
  .sb-widget[open] > .sb-widget-head::after { transform: translateY(-50%) rotate(180deg); }
}

@media (min-width: 641px) and (max-width: 960px) {
  .sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
  }
  .sb-widget > .sb-widget-body,
  .sb-widget > .sb-link-list { display: flex; flex-direction: column; }
  .sb-widget-head { cursor: default; }
  .sb-widget-head::after { display: none; }
}

@media (min-width: 961px) {
  .sidebar { gap: var(--space-4); }
  .sb-widget > .sb-widget-body,
  .sb-widget > .sb-link-list { display: flex; flex-direction: column; }
  .sb-widget-head { cursor: default; padding: var(--space-3) var(--space-4); }
  .sb-widget-head::after { display: none; }
  .sb-link-list a { padding: var(--space-3) var(--space-4); }
}

/* ============================ LIVE BROADCAST ============================ */
.live-broadcast {
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--soft-red);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--red);
  font-weight: 700;
  max-width: 100%;
  text-align: center;
}
.live-broadcast strong { color: var(--red); font-weight: 800; }

/* ============================ OPEN TODAY ============================ */
.open-today {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}
.open-today-h {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  text-align: center;
}
.open-today-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
}
.open-today-list > li { flex-shrink: 0; }
.open-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  min-width: 44px;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
@media (hover: hover) {
  .open-pill:hover { background: var(--rose); border-color: var(--red); }
}

/* ============================ SECTION CARD ============================ */
.section-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: var(--space-4);
  scroll-margin-top: calc(var(--app-bar-h) + var(--date-strip-h) + var(--space-3));
}
.section-card--orange { border-left-color: var(--orange); }
.section-card--tint-cream { background: var(--cream); }
.section-card--tint-peach { background: var(--peach); }
.section-card--tint-soft-red { background: var(--soft-red); }
@media (min-width: 641px) {
  .section-card { padding: var(--space-5); }
}

/* ============================ SECTION HEADINGS ============================ */
.block-head { margin-bottom: var(--space-3); text-align: center; }
.block-head-center { text-align: center; }
.block-head h1,
.block-head h2 {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(1.15rem, 3.5vw, 1.5rem);
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.block-head h1 .accent,
.block-head h2 .accent { color: var(--red); }
.block-head h1 .accent-orange,
.block-head h2 .accent-orange { color: var(--orange); }
.block-head h1::after,
.block-head h2::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--red);
  margin-top: var(--space-2);
  margin-left: auto;
  margin-right: auto;
}
.block-head .block-sub {
  margin-top: var(--space-1);
  font-size: 0.85rem;
  color: var(--muted);
}
@media (min-width: 961px) {
  .block-head { margin-bottom: var(--space-3); }
  .block-head .block-sub { font-size: 0.9rem; }
  .block-head h1,
  .block-head h2 {
    font-size: 1.375rem;
    line-height: 1.25;
  }
}
@media (min-width: 1280px) {
  .block-head h1,
  .block-head h2 { font-size: 1.5rem; }
}

/* ============================ PROVINCE TABS ============================ */
.prov-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--line-soft);
  -webkit-overflow-scrolling: touch;
}
.prov-tab {
  flex-shrink: 0;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 var(--space-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.prov-tab.is-active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
@media (hover: hover) {
  .prov-tab:hover { background: var(--rose); color: var(--red); border-color: var(--red); }
  .prov-tab.is-active:hover { background: var(--red); color: var(--white); }
}
@media (min-width: 961px) {
  .prov-tabs { padding-bottom: var(--space-2); margin-bottom: var(--space-2); gap: var(--space-1); }
  .prov-tab { font-size: 12px; height: 28px; padding: 0 var(--space-3); }
}

/* ============================ TABLE SCROLL WRAPPER ============================ */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  background: transparent;
}

/* ============================ PRIZE TABLE (Vietlott payouts) ============================ */
.prize-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}
.prize-table thead th {
  background: var(--red);
  color: var(--white);
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-3);
  text-align: left;
}
.prize-table th,
.prize-table td {
  padding: var(--space-2) var(--space-3);
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.prize-table tbody th {
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  font-family: var(--h-font);
  font-weight: 700;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-left: var(--space-1);
  padding-right: var(--space-1);
}
@media (min-width: 641px) {
  .prize-table tbody th { width: 48px; min-width: 48px; max-width: 48px; font-size: 0.78rem; }
}
.prize-table tbody td {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.03em;
  word-spacing: 0.3em;
  word-break: break-word;
}
.prize-table tbody tr:nth-child(even) th,
.prize-table tbody tr:nth-child(even) td { background: #FAFAFA; }
.prize-table tbody tr:last-child th,
.prize-table tbody tr:last-child td { border-bottom: none; }
@media (hover: hover) {
  .prize-table tbody tr:hover th,
  .prize-table tbody tr:hover td { background: var(--rose); }
}

/* Vietlott number balls (Power 6/55, Mega 6/45, Keno, Bingo 18, Power 5/35) */
.vt-balls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  padding: var(--space-4) var(--space-3);
}
.vt-ball {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 18px;
}
@media (min-width: 641px) { .vt-ball { width: 52px; height: 52px; font-size: 20px; } }

/* Max 3D / Max 3D Pro inline-number badges inside prize-table cells */
.vt-num {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 800;
  color: var(--red);
  padding: 2px 6px;
  margin-right: 4px;
}

.prize-table tr.row-hot th,
.prize-table tr.row-hot td {
  background: var(--rose);
  border-left: 2px solid var(--red);
}

.prize-table tr.row-db th {
  color: var(--red);
  font-weight: 800;
  font-size: 0.95rem;
  background: var(--peach);
}
.prize-table tr.row-db td {
  background: var(--peach);
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

@media (min-width: 961px) {
  .prize-table {
    font-size: 0.85rem;
    min-width: 0;
  }
  .prize-table thead th {
    font-size: 11.5px;
    padding: var(--space-2) var(--space-3);
  }
  .prize-table th,
  .prize-table td {
    padding: var(--space-2) var(--space-3);
    line-height: 1.35;
  }
  .prize-table tbody th { width: 54px; font-size: 0.72rem; }
  .prize-table tr.row-db th {
    font-size: 0.9rem;
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
  }
}

/* ============================ DB NUMBER ============================ */
.db-number {
  display: inline-block;
  color: var(--red);
  font-family: var(--mono);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: 0.04em;
  line-height: 1;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.db-number-sm { font-size: clamp(1.4rem, 4vw, 1.8rem); }

.mb-db-stage {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
  margin-bottom: var(--space-3);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
}
.mb-db-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.mb-print {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-2);
  height: 32px;
  padding: 0 var(--space-3);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--red);
  background: var(--white);
  border: 1px solid var(--red);
  border-radius: 999px;
}
@media (hover: hover) { .mb-print:hover { background: var(--rose); } }

/* ============================ DD-TABLE TITLE ============================ */
.dd-title {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  margin: var(--space-4) 0 var(--space-2);
  text-align: center;
}
.dd-title .accent { color: var(--red); }
@media (min-width: 961px) {
  .dd-title { font-size: 0.95rem; margin: var(--space-3) 0 var(--space-2); }
}

/* ============================ RELATED STRIP ============================ */
.related-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
  margin: var(--space-3) 0 var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--rose);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--red);
  font-size: 13px;
}
.related-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: var(--space-1) var(--space-1);
  font-weight: 700;
  color: var(--red);
  border-bottom: 1px solid transparent;
  transition: border-color 0.12s ease;
}
@media (hover: hover) {
  .related-strip a:hover { border-bottom-color: var(--red); }
}
.related-strip .rel-sep { color: var(--muted); font-weight: 800; opacity: 0.5; }

/* ============================ REGION PREV/NEXT ============================ */
.region-prev-next {
  margin-top: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-2);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
}
.rpn-arrow {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  font-weight: 800;
  color: var(--red);
  padding: var(--space-1) var(--space-2);
  border-radius: 999px;
  transition: background 0.12s ease;
  text-align: center;
}
@media (hover: hover) { .rpn-arrow:hover { background: var(--rose); } }
.rpn-current {
  font-family: var(--h-font);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  padding: 0 var(--space-1);
}

/* ============================ BADGES ============================ */
.badge {
  display: inline-block;
  padding: 2px var(--space-2);
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge--danger  { background: var(--red);    color: var(--white); }
.badge--warn    { background: var(--orange); color: var(--white); }
.badge--success { background: var(--green);  color: var(--white); }
.badge--muted   { background: var(--line);   color: var(--ink); }

/* ============================ VIETLOTT GRID ============================ */
.vietlott-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.vl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 641px) {
  .vl-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
}
.vl-block-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.vl-block .vl-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}
.vl-block .vl-block-head h3 {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--red);
}
.vl-block .vl-block-head .vl-date {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

/* ============================ NUM TILE ============================ */
.vl-balls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
}
.num-tile {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.num-tile--red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
}
.num-tile-sep {
  color: var(--line);
  font-weight: 800;
  padding: 0 var(--space-1);
}

/* ============================ JACKPOT LINE ============================ */
.jackpot-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}
.jackpot-line-sub { background: var(--rose); border-color: var(--line-soft); }
.jackpot-label {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.jackpot-val {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: 0.03em;
}
.jackpot-val--db {
  color: var(--red);
  font-size: clamp(1.1rem, 4vw, 1.5rem);
}

/* ============================ SCHEDULE TABLE ============================ */
.sched-table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
}
.sched-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 420px;
}
.sched-table thead th {
  background: var(--red);
  color: var(--white);
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-3);
  text-align: left;
}
.sched-table th, .sched-table td {
  padding: var(--space-2) var(--space-3);
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.sched-table tbody th {
  font-family: var(--h-font);
  font-weight: 700;
  color: var(--ink);
}
.sched-table tbody tr:nth-child(even) th,
.sched-table tbody tr:nth-child(even) td { background: #FAFAFA; }
.sched-table tbody tr:last-child th,
.sched-table tbody tr:last-child td { border-bottom: none; }
@media (hover: hover) {
  .sched-table tbody tr:hover td,
  .sched-table tbody tr:hover th { background: var(--rose); }
}
@media (min-width: 961px) {
  .sched-table { font-size: 0.85rem; }
  .sched-table thead th,
  .sched-table th,
  .sched-table td { padding: var(--space-2) var(--space-3); }
}

/* ============================ FAQ ============================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.tinted-faq,
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  transition: border-color 0.18s ease;
}
.tinted-faq[open],
.faq-item[open] {
  border-left: 3px solid var(--red);
}
.tinted-faq summary,
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 40px;
}
.tinted-faq summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker { display: none; }
.tinted-faq summary::after,
.faq-item summary::after {
  content: '+';
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--red);
  line-height: 1;
}
.tinted-faq[open] summary::after,
.faq-item[open] summary::after { content: '\2212'; }
.tinted-faq summary h3,
.faq-item summary h3 {
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  display: inline;
}
.tinted-faq p,
.faq-item p {
  margin-top: var(--space-2);
  font-size: 0.92rem;
  color: var(--body);
  line-height: 1.6;
}
@media (min-width: 961px) {
  .tinted-faq summary h3,
  .faq-item summary h3 { font-size: 0.92rem; }
}

/* ============================ SEO prose ============================ */
.seo-prose {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--body);
}
.seo-prose strong { color: var(--red); font-weight: 800; }

/* ============================ FOOTER ============================ */
.footer-dense {
  background: var(--ink);
  color: #E0E0E0;
  margin-top: var(--space-4);
  padding-bottom: calc(var(--bottom-tab-h) + env(safe-area-inset-bottom));
}
.footer-dense .footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-7) var(--gutter) var(--space-6);
}

.footer-dense .footer-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.footer-dense .footer-col {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0;
}
.footer-dense .footer-col > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-1);
  min-height: 48px;
}
.footer-dense .footer-col > summary::-webkit-details-marker { display: none; }
.footer-dense .footer-col > summary::after {
  content: '+';
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--orange);
  line-height: 1;
}
.footer-dense .footer-col[open] > summary::after { content: '\2212'; }
.footer-dense .footer-col h4 {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 13px;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  display: inline;
}
.footer-dense .footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-1) var(--space-4);
}
.footer-dense .footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  color: var(--white);
  transition: color 0.12s ease;
  line-height: 1.4;
}
@media (hover: hover) {
  .footer-dense .footer-col a:hover { color: var(--orange); }
}

@media (min-width: 641px) and (max-width: 960px) {
  .footer-dense .footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-1) var(--space-4);
  }
}

@media (min-width: 961px) {
  .footer-dense .footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6) var(--space-5);
  }
  .footer-dense .footer-col {
    border-bottom: none;
    padding: 0;
  }
  .footer-dense .footer-col > summary {
    cursor: default;
    padding: 0;
    min-height: 0;
    pointer-events: none;
    margin-bottom: var(--space-2);
  }
  .footer-dense .footer-col > summary::after { content: ''; }
  .footer-dense .footer-col ul { padding: 0; gap: var(--space-2); }
  .footer-dense .footer-col:not([open]) ul { display: flex; }
}
@media (min-width: 1280px) {
  .footer-dense .footer-grid {
    grid-template-columns: repeat(11, 1fr);
    gap: var(--space-6) var(--space-4);
  }
  .footer-dense .footer-col h4 { font-size: 12px; }
  .footer-dense .footer-col a { font-size: 13px; min-height: 0; }
}

.footer-dense .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: #050505;
}
.footer-dense .footer-bottom-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-4) var(--gutter) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #9E9E9E;
  text-align: center;
}
@media (min-width: 641px) {
  .footer-dense .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    font-size: 13px;
  }
}
.footer-bottom-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  justify-content: center;
}
.footer-bottom-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: var(--space-1);
  color: #BDBDBD;
  transition: color 0.12s ease;
}
@media (hover: hover) {
  .footer-bottom-links a:hover { color: var(--orange); }
}
.footer-bottom-sep { color: rgba(255,255,255,0.2); }
.dmca-badge {
  border: 1px solid #555;
  padding: 2px var(--space-2);
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
}

/* ============================ BOTTOM TAB NAV ============================ */
.bottom-tab-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  height: var(--bottom-tab-h);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}
.bottom-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 44px;
  min-height: 44px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-top: 2px solid transparent;
  text-decoration: none;
  transition: color 0.12s ease;
  padding-top: var(--space-1);
}
.bottom-tab-icon {
  font-size: 22px;
  line-height: 1;
}
.bottom-tab-label {
  line-height: 1.1;
  white-space: nowrap;
}
.bottom-tab.is-active {
  color: var(--red);
  border-top-color: var(--red);
}
@media (hover: hover) {
  .bottom-tab:hover { color: var(--red); }
}

@media (min-width: 961px) {
  .bottom-tab-nav { display: none; }
  main.page { padding-bottom: var(--space-7); }
}

/* =========================================================
   XOSOTHANTAI-COMPACT KQ result + Đầu/Đuôi tables
   ========================================================= */

/* ---------- KQ result table (XSMB) ---------- */
.kq-result-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  table-layout: fixed;
  font-family: var(--mono);
}

.kq-result-table td {
  padding: 0;
  vertical-align: middle;
  border: 0;
}

.kq-result-table .kq-tier-label {
  padding: var(--space-2) 2px;
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--body);
  text-align: center;
  background: transparent;
  border-right: 1px solid var(--line);
}

.kq-result-table .kq-numbers {
  padding: 0;
  font-weight: 700;
  text-align: center;
  line-height: 1;
}

.kq-result-table .kq-num {
  display: inline-block;
  box-sizing: border-box;
  padding: var(--space-2) 0;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1;
  vertical-align: middle;
  text-align: center;
}

.kq-numbers--1 .kq-num { width: 100%; }
.kq-numbers--2 .kq-num { width: 50%; }
.kq-numbers--3 .kq-num { width: 33.333%; }
.kq-numbers--4 .kq-num { width: 25%; }
.kq-numbers--6 .kq-num { width: 33.333%; }
.kq-numbers--7 .kq-num { width: 25%; }

.kq-numbers .kq-num + .kq-num { border-left: 1px solid var(--line-soft); }
.kq-numbers--6 .kq-num:nth-child(-n+3) { border-bottom: 1px solid var(--line-soft); }
.kq-numbers--7 .kq-num:nth-child(-n+4) { border-bottom: 1px solid var(--line-soft); }
.kq-numbers--6 .kq-num:nth-child(4) { border-left: 0; }
.kq-numbers--7 .kq-num:nth-child(5) { border-left: 0; }

.kq-result-table .kq-num--db {
  font-size: 28px;
  color: var(--red);
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: var(--space-3) 0;
}
.kq-result-table .kq-num--g7,
.kq-result-table .kq-num--g8 {
  font-size: 24px;
  color: var(--red);
  font-weight: 900;
}

.kq-result-table tbody tr:nth-child(even) td { background: #FAFAFA; }

.kq-result-table tr.kq-row-db td {
  background: var(--peach);
}
.kq-result-table tr.kq-row-db .kq-tier-label {
  color: var(--red);
  font-weight: 800;
  font-size: 13px;
  border-right-color: var(--red);
}

.kq-result-table .kq-madb {
  padding: var(--space-2);
  text-align: center;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  background: var(--line-soft);
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
}

.kq-result-table--mb .kq-num--db { font-size: 30px; }

@media (min-width: 961px) {
  .kq-result-table .kq-tier-label {
    font-size: 14px;
    padding: var(--space-2) var(--space-1);
  }
  .kq-result-table .kq-num { font-size: 22px; padding: var(--space-3) 0; }
  .kq-result-table .kq-num--db { font-size: 32px; }
  .kq-result-table--mb .kq-num--db { font-size: 36px; }
  .kq-result-table .kq-num--g7,
  .kq-result-table .kq-num--g8 { font-size: 26px; }
}

@media (hover: hover) {
  .kq-result-table tbody tr:hover td { background: var(--rose); }
  .kq-result-table tr.kq-row-db:hover td { background: var(--peach); }
}

/* XSMB single-province colgroup */
.kq-result-table .kq-col-tier-label { width: 48px; }
.kq-result-table .kq-col-numbers { width: auto; }
@media (min-width: 641px) {
  .kq-result-table .kq-col-tier-label { width: 56px; }
}
@media (min-width: 961px) {
  .kq-result-table .kq-col-tier-label { width: 64px; }
}

/* ---------- DD-MB: 2 tables side-by-side (XSMB Đầu/Đuôi) ---------- */
.dd-mb {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.dd-half {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-family: var(--mono);
  table-layout: fixed;
}
.dd-half th,
.dd-half td {
  padding: var(--space-1) var(--space-2);
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  text-align: center;
  vertical-align: middle;
  line-height: 1.2;
}
.dd-half thead th {
  background: var(--red);
  color: var(--white);
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-1);
  border-bottom: 0;
}
.dd-half tbody tr:last-child td { border-bottom: 0; }
.dd-half tbody tr:nth-child(even) td { background: #FAFAFA; }

.dd-half .dd-digit {
  width: 24px;
  min-width: 24px;
  max-width: 24px;
  background: var(--peach);
  color: var(--red);
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 13px;
  text-align: center;
}
.dd-half tbody tr:nth-child(even) .dd-digit { background: var(--peach); }

.dd-half .dd-list {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.02em;
  padding-left: var(--space-2);
  padding-right: var(--space-2);
  text-align: center;
}
.dd-half .dd-list sup {
  font-size: 9px;
  color: var(--red);
  font-weight: 700;
  margin-left: 1px;
}

@media (hover: hover) {
  .dd-half tbody tr:hover td { background: var(--rose); }
  .dd-half tbody tr:hover .dd-digit { background: var(--soft-red); }
}

@media (max-width: 359px) {
  .dd-half th, .dd-half td { font-size: 12px; padding: var(--space-1); }
  .dd-half .dd-digit { width: 22px; font-size: 12px; }
  .dd-half .dd-list { font-size: 12px; }
}

.dd-half .dd-col-digit { width: 36px; }
.dd-half .dd-col-list { width: auto; }
@media (min-width: 641px) { .dd-half .dd-col-digit { width: 42px; } }

/* ---------- KQ-multi (MT/MN multi-province) ---------- */
.kq-multi {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--white);
  font-family: var(--mono);
  font-weight: 700;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}
.kq-multi .kq-col-label { width: 42px; }
.kq-multi .kq-col-city { width: auto; }
@media (min-width: 641px) {
  .kq-multi .kq-col-label { width: 52px; }
}
@media (min-width: 961px) {
  .kq-multi .kq-col-label { width: 60px; }
}

.kq-multi th,
.kq-multi td {
  padding: 0;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  text-align: center;
}
.kq-multi th:last-child,
.kq-multi td:last-child { border-right: none; }

.kq-multi-head {
  background: var(--red);
}
.kq-multi-head th {
  color: var(--white);
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 13px;
  padding: var(--space-2) var(--space-1);
  border-right-color: var(--red-dark);
}
.kq-multi-head th a {
  color: var(--white);
  text-decoration: none;
}

.kq-multi-label {
  background: rgba(255, 243, 224, 0.5);
  color: var(--red);
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 13px;
  padding: var(--space-2) 2px;
  text-transform: uppercase;
}
@media (min-width: 641px) {
  .kq-multi-label { font-size: 14px; padding: var(--space-2) var(--space-1); }
}
@media (min-width: 961px) {
  .kq-multi-label { font-size: 15px; }
}

.kq-multi td:not(.kq-multi-label) {
  padding: 2px;
  font-weight: 800;
  color: var(--ink);
  font-family: var(--mono);
}
.kq-multi .kq-num {
  display: block;
  padding: 0;
  line-height: 1.35;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.kq-multi-3 .kq-num { font-size: 15px; }
@media (min-width: 641px) {
  .kq-multi .kq-num { font-size: 19px; line-height: 1.4; }
  .kq-multi-3 .kq-num { font-size: 16px; }
}
@media (min-width: 961px) {
  .kq-multi .kq-num { font-size: 21px; }
  .kq-multi-3 .kq-num { font-size: 18px; }
}

.kq-multi tr.gdb { background: var(--rose); }
.kq-multi tr.gdb .kq-multi-label { background: var(--peach); color: var(--red); }
.kq-multi tr.gdb .kq-num--db {
  color: var(--red);
  font-size: 20px;
  font-weight: 900;
}
.kq-multi-3 tr.gdb .kq-num--db { font-size: 17px; }
@media (min-width: 641px) {
  .kq-multi tr.gdb .kq-num--db { font-size: 24px; }
  .kq-multi-3 tr.gdb .kq-num--db { font-size: 20px; }
}

.kq-multi tr.g8 .kq-num,
.kq-multi .kq-num--g7 {
  color: var(--red);
}

@media (hover: hover) {
  .kq-multi tbody tr:hover:not(.kq-multi-head) {
    background: var(--rose);
  }
}

/* ---------- DD-multi (MT/MN merged Đầu-Đuôi) ---------- */
.dd-multi {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: var(--space-2);
  font-family: var(--mono);
}
.dd-multi th,
.dd-multi td {
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: var(--space-1) var(--space-1);
  text-align: center;
  font-size: 13px;
}
.dd-multi th:last-child,
.dd-multi td:last-child { border-right: none; }
.dd-multi-head { background: var(--red); }
.dd-multi-head th {
  color: var(--white);
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 12px;
  padding: var(--space-1) var(--space-1);
  border-right-color: var(--red-dark);
}
.dd-multi .dd-col-digit { width: 36px; }
.dd-multi .dd-col-city { width: auto; }
@media (min-width: 641px) { .dd-multi .dd-col-digit { width: 44px; } }

.dd-multi .dd-multi-label { width: 24px; min-width: 24px; max-width: 24px; font-size: 11px; }
.dd-multi .dd-digit {
  background: var(--peach);
  color: var(--red);
  font-weight: 900;
  width: 24px;
  min-width: 24px;
  max-width: 24px;
  font-size: 13px;
  font-family: var(--h-font);
}
@media (min-width: 641px) {
  .dd-multi .dd-multi-label { width: 32px; min-width: 32px; max-width: 32px; font-size: 12px; }
  .dd-multi .dd-digit { width: 32px; min-width: 32px; max-width: 32px; font-size: 14px; }
}
.dd-multi .dd-list {
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  padding-left: var(--space-2);
  text-align: left;
}
.dd-multi tbody tr:nth-child(even) { background: #FAFAFA; }
@media (hover: hover) {
  .dd-multi tbody tr:hover:not(.dd-multi-head) { background: var(--rose); }
}

/* ============================ BREADCRUMB header ============================ */
.kq-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--white);
  border-bottom: 2px solid var(--red);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) var(--space-3);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--h-font);
  text-align: center;
}
.section-card--tint-soft-red .kq-breadcrumb,
.section-card--tint-cream .kq-breadcrumb,
.section-card--tint-peach .kq-breadcrumb { background: rgba(255,255,255,0.85); }
.kq-bc-link {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
@media (hover: hover) { .kq-bc-link:hover { color: var(--red-dark); } }
.kq-bc-sep {
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}
.kq-bc-date {
  color: var(--ink);
  font-weight: 700;
}

/* ============================ PAGE INTRO (H1 + H2) — weekday pages ============================ */
.page-intro {
  text-align: center;
  margin: 0 0 var(--space-3);
  padding: var(--space-3) var(--space-3);
  background: var(--white);
  border-radius: var(--radius-md);
  border-bottom: 2px solid var(--red);
}
.page-h1 {
  font-family: var(--h-font);
  font-size: 22px;
  font-weight: 800;
  color: var(--red);
  line-height: 1.3;
  margin: 0 0 var(--space-1);
  text-transform: none;
}
.page-h2 {
  font-family: var(--h-font);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin: 0;
}
@media (max-width: 640px) {
  .page-h1 { font-size: 18px; }
  .page-h2 { font-size: 14px; }
}

/* Draw section title (H2 replacing per-draw breadcrumb) */
.draw-section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--white);
  border-bottom: 2px solid var(--red);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) var(--space-3);
  font-family: var(--h-font);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  text-align: center;
}
.draw-section-title .dst-link {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-weight: 700;
}
@media (hover: hover) { .draw-section-title .dst-link:hover { color: var(--red-dark); } }
.draw-section-title .dst-sep {
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}

/* ============================ KQ CONTROLS (radio + digit ribbon + tail2 highlight) ============================ */
.kq-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.kq-radio {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  min-height: 32px;
  user-select: none;
}
.kq-radio input { position: absolute; opacity: 0; pointer-events: none; }
.kq-radio-dot {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--red);
  background: var(--white);
  position: relative;
  transition: background 0.12s ease;
}
.kq-radio input:checked + .kq-radio-dot {
  background: var(--red);
  box-shadow: inset 0 0 0 3px var(--white);
}
@media (hover: hover) {
  .kq-radio:hover .kq-radio-dot { border-color: var(--red-dark); }
}

.kq-tail2 {
  display: inline-block;
  padding: 0 1px;
  border-radius: 3px;
  transition: border-color 0.08s ease, color 0.08s ease;
}
.kq-tail2.is-highlight {
  border: 1.5px solid var(--red);
  color: var(--red);
  background: rgba(255, 235, 238, 0.4);
  font-weight: 900;
}

.kq-digit-ribbon {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  margin: var(--space-2) 0;
  list-style: none;
}
.kq-digit-ribbon li { margin: 0; }
.kq-digit-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  background: var(--white);
  color: var(--red);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.1s, color 0.1s, transform 0.1s;
}
@media (hover: hover) { .kq-digit-btn:hover { background: var(--orange); color: var(--white); } }
.kq-digit-btn.is-active {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.25);
}
.kq-digit-btn:active { transform: scale(0.92); }

.kq-action-row {
  display: flex;
  justify-content: center;
  padding: var(--space-3) 0;
}
.kq-action-btn {
  padding: var(--space-2) var(--space-4);
  background: var(--white);
  border: 1.5px solid var(--red);
  border-radius: var(--radius-sm);
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--h-font);
}
@media (hover: hover) { .kq-action-btn:hover { background: var(--red); color: var(--white); } }

.kq-related {
  border-top: 1px dashed var(--line);
  padding: var(--space-3) var(--space-2) var(--space-2);
  font-size: 13.5px;
  line-height: 1.6;
}
.kq-related p {
  margin: 0 0 var(--space-2);
  color: var(--muted);
  font-weight: 600;
}
.kq-related ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.kq-related li {
  padding: 2px 0;
}
.kq-related li::before {
  content: '\203A';
  color: var(--red);
  margin-right: var(--space-1);
  font-weight: 700;
}
.kq-related a { color: var(--ink); text-decoration: none; }
@media (hover: hover) { .kq-related a:hover { color: var(--red); text-decoration: underline; } }

.weekday-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-1);
  padding: var(--space-2) 0;
  margin-bottom: var(--space-3);
  border-bottom: 2px solid var(--red);
}
.weekday-tab {
  padding: var(--space-2) var(--space-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  min-width: 44px;
  text-align: center;
}
.weekday-tab.is-active { background: var(--red); color: var(--white); border-color: var(--red); }
@media (hover: hover) { .weekday-tab:hover { background: var(--rose); color: var(--red); } .weekday-tab.is-active:hover { background: var(--red); color: var(--white); } }

.kq-prose { font-size: 14px; line-height: 1.6; padding: 0 var(--space-3); color: var(--ink); }

/* Đầu/Đuôi digit cells become hoverable triggers (used by script.js if loaded) */
.dd-half .dd-digit,
.dd-multi .dd-digit,
.dd-half .dd-list,
.dd-multi .dd-list { cursor: pointer; }

.dd-half .dd-digit.is-hover,
.dd-multi .dd-digit.is-hover,
.dd-half .dd-digit.is-active,
.dd-multi .dd-digit.is-active {
  background: var(--red);
  color: var(--white);
}
.dd-half .dd-list.is-hover,
.dd-multi .dd-list.is-hover {
  background: var(--rose);
  color: var(--red);
  font-weight: 800;
}

/* ============================ PHASE 3 — REGION PAGE EXPANSION ============================ */

/* In vé dò print button */
.kq-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 var(--space-3);
}
.kq-actions--top { margin-top: var(--space-2); }
.in-ve-do-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 0.85rem;
  min-height: 36px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.in-ve-do-btn:hover,
.in-ve-do-btn:focus-visible {
  background: var(--red);
  color: var(--white);
  outline: none;
}
@media print {
  .kq-actions,
  .related-strip,
  .related-strip-rich,
  .kqxs-date-form,
  .weekday-tabs,
  .db30-tabs,
  .kq-digit-ribbon,
  .kq-controls,
  .prov-tabs,
  .sidebar,
  .section-divider {
    display: none !important;
  }
}

/* Past-day collapsible cards */
.past-day-card {
  margin-bottom: var(--space-3);
}
.past-day-card > summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) 0;
  min-height: 40px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: var(--space-3);
}
.past-day-card > summary::-webkit-details-marker { display: none; }
.past-day-card > summary::after {
  content: '+';
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--red);
  margin-left: var(--space-2);
  line-height: 1;
}
.past-day-card[open] > summary::after { content: '\2212'; }
.past-day-card .past-day-title { flex: 1; font-size: inherit; font-weight: inherit; margin: 0; display: inline; }
.so-kq-day-title { font-size: 0.95rem; font-weight: 700; margin: var(--space-1) 0 var(--space-2); color: var(--red); }
.past-day-card .past-day-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
@media (min-width: 961px) {
  .past-day-card > summary { font-size: 0.92rem; }
}

/* Stat-mini sections (Lô gan / Tần suất) */
.stat-mini-table { min-width: 320px; }
.stat-mini-pair {
  font-family: var(--h-font);
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.04em;
}
.stat-mini-more {
  margin: var(--space-3) 0 0;
  text-align: right;
  font-size: 0.88rem;
}
.stat-mini-more a {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dotted var(--red);
}
.stat-mini-more a:hover { border-bottom-style: solid; }

/* ĐB by weekday + 30-day table emphasis */
.db-cell {
  font-family: var(--h-font);
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.02em;
}
.db-weekday-table { min-width: 360px; }
.db30-table { min-width: 360px; }

/* ĐB 30-day tabbed nav */
.db30-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.db30-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--body);
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  min-height: 36px;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.db30-tab.is-active,
.db30-tab[aria-current='page'] {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.db30-tab:not(.is-active):hover {
  background: var(--rose);
  color: var(--red);
  border-color: var(--red);
}

/* Section divider title between region block and past-day blocks */
.section-divider {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 2px solid var(--soft-red);
}

/* Prize structure */
.prize-structure-table { min-width: 360px; }
.prize-structure-table .prize-value {
  font-family: var(--h-font);
  font-weight: 800;
  color: var(--red);
  white-space: nowrap;
}
.prize-note {
  margin: var(--space-2) 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Hướng dẫn dò vé / lĩnh thưởng */
.huong-dan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 720px) {
  .huong-dan-grid { grid-template-columns: 1fr 1fr; }
}
.huong-dan-col .dd-title { margin-top: 0; }
.huong-dan-list {
  margin: 0;
  padding-left: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--body);
}
.huong-dan-list li::marker { color: var(--red); font-weight: 800; }
.huong-dan-ol { padding-left: var(--space-5); }

/* SEO intro */
.seo-intro .seo-prose { margin-top: var(--space-2); }

/* Enriched related-strip */
.related-strip-rich {
  flex-wrap: wrap;
  gap: var(--space-2);
}
.related-strip-rich a {
  white-space: nowrap;
}

/* Mobile tightening */
@media (max-width: 480px) {
  .in-ve-do-btn { font-size: 0.8rem; padding: 4px 10px; min-height: 32px; }
  .db30-tab { font-size: 0.8rem; padding: 4px 10px; min-height: 32px; }
}

/* =========================================================
   PHASE 4 — XOSOTHANTAI-STYLE RESULT TABLES
   HTML structure ported verbatim from xosothantai.mobi.
   Styled with KQXS red/orange palette (NO yellow).
   ========================================================= */

/* --- XSMT / XSMN merged table ---------------------------- */
.colgiai.extendable {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--mono);
  table-layout: fixed;
}
.colgiai.extendable td,
.colgiai.extendable th {
  border: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

/* Header row — WHITE bg with RED underlined province links (matches xosothantai live) */
.colgiai.extendable tr.gr-yellow th {
  background: var(--white);
  color: var(--red);
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
}
.colgiai.extendable tr.gr-yellow th.first {
  background: var(--white);
  width: 36px;
}
.colgiai.extendable tr.gr-yellow th a.underline.bold {
  color: var(--red);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (min-width: 641px) {
  .colgiai.extendable tr.gr-yellow th { font-size: 15px; padding: 10px 6px; }
  .colgiai.extendable tr.gr-yellow th.first { width: 48px; }
}

/* Tier label column (G8/G7/.../ĐB) — cream-tint bg + RED bold text (parity with .kqmb) */
.colgiai.extendable td.txt-giai {
  background: rgba(255, 243, 224, 0.5);
  color: var(--red);
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 13px;
  width: 44px;
  padding: 6px 2px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
@media (min-width: 641px) {
  .colgiai.extendable td.txt-giai { font-size: 14px; width: 56px; padding: 8px; }
}

/* Zebra striping — G2/G4/G6 rows (same pattern as .kqmb) */
.colgiai.extendable tr.bg_ef td { background: rgba(250, 250, 250, 0.7); }
.colgiai.extendable tr.bg_ef td.txt-giai { background: rgba(255, 243, 224, 0.55); }

/* Number cells — tight, no inner dividers */
.colgiai.extendable td.v-giai {
  padding: 2px 2px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}
.colgiai.extendable td.v-giai > div {
  display: block;
  font-size: 15px;
  padding: 1px 0;
  letter-spacing: 0.02em;
}
@media (min-width: 641px) {
  .colgiai.extendable td.v-giai > div { font-size: 17px; padding: 2px 0; }
}
@media (min-width: 961px) {
  .colgiai.extendable td.v-giai > div { font-size: 19px; }
}

/* 3-city table — slightly smaller numbers (fits 3 columns on mobile) */
.colthreecity td.v-giai > div { font-size: 14px; }
@media (min-width: 641px) { .colthreecity td.v-giai > div { font-size: 16px; } }
@media (min-width: 961px) { .colthreecity td.v-giai > div { font-size: 18px; } }

/* 4-city table — even tighter */
.colfourcity td.v-giai > div { font-size: 13px; }
@media (min-width: 641px) { .colfourcity td.v-giai > div { font-size: 15px; } }
@media (min-width: 961px) { .colfourcity td.v-giai > div { font-size: 17px; } }

/* G8 row — small red number (top of table) */
.colgiai.extendable tr.g8 td.v-giai > div {
  color: var(--red);
  font-weight: 900;
  font-size: 17px;
}
@media (min-width: 641px) { .colgiai.extendable tr.g8 td.v-giai > div { font-size: 19px; } }
.colthreecity tr.g8 td.v-giai > div { font-size: 15px; }
@media (min-width: 641px) { .colthreecity tr.g8 td.v-giai > div { font-size: 17px; } }

/* ĐB row — rose bg + peach label + large red bold number (parity with .kqmb) */
.colgiai.extendable tr.gdb { background: var(--rose); }
.colgiai.extendable tr.gdb td.txt-giai {
  background: var(--peach);
  color: var(--red);
  border-top: 1px solid var(--line);
}
.colgiai.extendable tr.gdb td.v-giai {
  border-top: 1px solid var(--line);
}
.colgiai.extendable tr.gdb td.v-giai > div {
  color: var(--red);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.04em;
}
@media (min-width: 641px) { .colgiai.extendable tr.gdb td.v-giai > div { font-size: 26px; } }
@media (min-width: 961px) { .colgiai.extendable tr.gdb td.v-giai > div { font-size: 30px; } }
.colthreecity tr.gdb td.v-giai > div { font-size: 18px; }
@media (min-width: 641px) { .colthreecity tr.gdb td.v-giai > div { font-size: 22px; } }
.colfourcity tr.gdb td.v-giai > div { font-size: 16px; }
@media (min-width: 641px) { .colfourcity tr.gdb td.v-giai > div { font-size: 20px; } }

/* --- XSMB single-region table ---------------------------- */
.kqmb.extendable {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--mono);
}
.kqmb.extendable td {
  border: 1px solid var(--line);
  padding: 4px 2px;
  vertical-align: middle;
}

/* Label column (Giải 1 / Giải 2 / ... / ĐB) */
.kqmb.extendable td.txt-giai {
  background: rgba(255, 243, 224, 0.5);
  color: var(--red);
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 13px;
  width: 56px;
  padding: 6px 4px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
@media (min-width: 641px) {
  .kqmb.extendable td.txt-giai { font-size: 14px; width: 72px; }
}

/* Number cell wraps multiple spans inline */
.kqmb.extendable td.v-giai.number {
  text-align: center;
  font-weight: 800;
  color: var(--ink);
  padding: 6px 4px;
}
.kqmb.extendable td.v-giai.number > span {
  display: inline-block;
  font-size: 16px;
  padding: 0 8px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  min-width: 60px;
}
@media (min-width: 641px) {
  .kqmb.extendable td.v-giai.number > span { font-size: 19px; padding: 0 10px; min-width: 76px; }
}
@media (min-width: 961px) {
  .kqmb.extendable td.v-giai.number > span { font-size: 22px; padding: 0 12px; }
}

/* Zebra striping (xosothantai uses .bg_ef on G2/G4/G6) */
.kqmb.extendable tr.bg_ef td { background: rgba(250, 250, 250, 0.7); }
.kqmb.extendable tr.bg_ef td.txt-giai { background: rgba(255, 243, 224, 0.55); }

/* ĐB row — peach + large red number */
.kqmb.extendable tr.db { background: var(--rose); }
.kqmb.extendable tr.db td.txt-giai { background: var(--peach); }
.kqmb.extendable tr.db td.v-giai.number > span {
  color: var(--red);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.06em;
}
@media (min-width: 641px) {
  .kqmb.extendable tr.db td.v-giai.number > span { font-size: 32px; }
}
@media (min-width: 961px) {
  .kqmb.extendable tr.db td.v-giai.number > span { font-size: 38px; }
}

/* G7 row — red text */
.kqmb.extendable tr.g7 td.v-giai.number > span {
  color: var(--red);
  font-weight: 900;
  font-size: 18px;
}
@media (min-width: 641px) { .kqmb.extendable tr.g7 td.v-giai.number > span { font-size: 22px; } }

/* Mã quay row (top of XSMB) — currently not emitted; CSS reserved if we add later */
.kqmb.extendable tr td.madb {
  background: var(--cream);
  color: var(--red);
  font-weight: 800;
  font-size: 12px;
  padding: 6px;
  text-align: center;
  letter-spacing: 0.04em;
}
.kqmb.extendable tr td.madb .v-madb { color: var(--red); }

/* =========================================================
   PHASE 4b — "Bộ số 30 lần quay" combined section
   Layout matches xosothantai live: cream-bg headings, sub-tab strip,
   5×2 grid of number pills with red number + meta.
   ========================================================= */
.section-card.bo-so-30 {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  padding: 0;
  overflow: hidden;
}
.bo-so-head {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 15px;
  text-align: center;
  padding: 10px 12px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.bo-so-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.bo-so-tab {
  display: block;
  text-align: center;
  padding: 10px 4px;
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
  border-right: 1px solid var(--line);
  text-decoration: none;
}
.bo-so-tab:last-child { border-right: 0; }
.bo-so-tab.is-active { background: var(--white); color: var(--red); border-bottom: 2px solid var(--red); }
@media (hover: hover) {
  .bo-so-tab:hover { background: var(--rose); }
}
.bo-so-sub-head {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  padding: 8px 12px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.bo-so-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.bo-so-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink);
  gap: 2px;
}
.bo-so-cell:nth-child(5n) { border-right: 0; }
.bo-so-cell:nth-last-child(-n+5) { border-bottom: 0; }
.bo-so-num {
  font-family: var(--mono);
  font-weight: 900;
  font-size: 18px;
  color: var(--red);
  letter-spacing: 0.04em;
}
.bo-so-meta { color: var(--muted); font-size: 12px; }
@media (min-width: 641px) {
  .bo-so-grid { grid-template-columns: repeat(5, 1fr); }
  .bo-so-num { font-size: 20px; }
}
@media (max-width: 420px) {
  .bo-so-num { font-size: 16px; }
  .bo-so-cell { padding: 8px 2px; }
}

/* =========================================================
   PHASE 4b — Horizontal ĐB by weekday × week table
   Layout matches xosothantai: 7 weekday columns × ~5 week rows.
   ========================================================= */
.db-weekday-table.xst-weekday {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  font-family: var(--mono);
  table-layout: fixed;
}
.db-weekday-table.xst-weekday th {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--h-font);
  font-weight: 800;
  font-size: 13px;
  text-align: center;
  padding: 8px 2px;
  border: 1px solid var(--line);
}
.db-weekday-table.xst-weekday td.db-cell {
  text-align: center;
  padding: 8px 2px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
}
.db-weekday-table.xst-weekday td.db-cell .kq-tail2 {
  color: var(--red);
  font-weight: 900;
}
@media (min-width: 641px) {
  .db-weekday-table.xst-weekday th { font-size: 14px; padding: 10px 4px; }
  .db-weekday-table.xst-weekday td.db-cell { font-size: 16px; padding: 10px 4px; }
}

/* =========================================================
   Quay thử (lottery simulator) — pages /quay-thu-*/
   ========================================================= */

.qt-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-4) 0;
  padding: var(--space-3);
  background: linear-gradient(180deg, rgba(255,243,224,0.45) 0%, rgba(255,255,255,0) 100%);
  border-radius: var(--radius-md);
  text-align: center;
}
.qt-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  width: 100%;
  max-width: 520px;
}
.qt-spin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 0;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-family: var(--h-font);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s, filter 0.15s;
  min-height: 64px;
  color: var(--white);
}
.qt-btn-label {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
}
.qt-btn-sub {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.92;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.qt-spin-slow {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  box-shadow: 0 6px 16px rgba(198, 40, 40, 0.30);
}
.qt-spin-fast {
  background: linear-gradient(135deg, var(--orange) 0%, #E65100 100%);
  box-shadow: 0 6px 16px rgba(251, 140, 0, 0.32);
}
@media (hover: hover) {
  .qt-spin:hover  { transform: translateY(-2px); filter: brightness(1.05); }
}
.qt-spin:active { transform: translateY(0); filter: brightness(0.95); }
.qt-spin:disabled {
  background: var(--muted);
  cursor: progress;
  box-shadow: none;
  filter: none;
  transform: none;
}
.qt-spin.qt-spinning { animation: qt-pulse 0.5s infinite ease-in-out; }
@keyframes qt-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@media (max-width: 480px) {
  .qt-buttons { grid-template-columns: 1fr; gap: var(--space-2); }
  .qt-btn-label { font-size: 16px; }
}
@media (min-width: 641px) {
  .qt-spin { min-height: 72px; padding: 16px 20px; }
  .qt-btn-label { font-size: 19px; }
  .qt-btn-sub   { font-size: 12px; }
}
.qt-hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  max-width: 520px;
  line-height: 1.4;
}

/* Cycling state — applied implicitly while interval is running (no class needed;
   JS writes textContent every 50-80ms which is enough motion). We just style
   un-revealed cells differently so the spin phase is visually distinct from the
   final locked state. */
.qt-result .kq-num,
.qt-result .vt-ball,
.qt-result .vt-num {
  transition: transform 0.15s ease-out, color 0.15s, background-color 0.15s;
}

/* Spinning (not yet locked) — slight blur + dim to convey motion */
.qt-result .kq-num:not(.qt-revealed),
.qt-result .vt-ball:not(.qt-revealed),
.qt-result .vt-num:not(.qt-revealed) {
  color: var(--muted);
  opacity: 0.85;
  filter: blur(0.4px);
}

/* Locked — final value, sharp + flip-in pop */
.qt-result .kq-num.qt-revealed,
.qt-result .vt-ball.qt-revealed,
.qt-result .vt-num.qt-revealed {
  animation: qt-lock 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: none;
  opacity: 1;
}
@keyframes qt-lock {
  0%   { transform: scale(0.55) rotateX(-90deg); opacity: 0.3; }
  60%  { transform: scale(1.2) rotateX(15deg);   opacity: 1;   }
  100% { transform: scale(1) rotateX(0);         opacity: 1;   }
}

/* Hub grid */
.qt-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 641px) {
  .qt-hub-grid { grid-template-columns: 1fr 1fr; }
}
.qt-hub-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-md);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
@media (hover: hover) {
  .qt-hub-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border-left-color: var(--orange);
  }
}
.qt-hub-card-title {
  margin: 0;
  font-family: var(--h-font);
  font-size: 18px;
  font-weight: 800;
  color: var(--red);
}
.qt-hub-card-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.qt-hub-card-cta {
  align-self: flex-end;
  font-weight: 700;
  color: var(--orange);
  font-size: 14px;
}

/* Vietlott block spacing for simulator */
.qt-vietlott .vt-balls { padding: var(--space-2) 0; }

/* ---------------------------------------------------------------------- */
/* #go-top — scroll-to-top floating button                                */
/* ---------------------------------------------------------------------- */
#go-top {
  position: fixed;
  bottom: 80px; /* clear of bottom-tab-nav on mobile */
  right: 16px;
  z-index: 9000;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s, background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
}
#go-top:hover,
#go-top:focus { background: var(--red-dark, #B71C1C); outline: none; }
#go-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s, background 0.15s ease;
}
@media (min-width: 769px) {
  #go-top {
    width: 48px;
    height: 48px;
    bottom: 24px;
    right: 24px;
    font-size: 22px;
  }
}

/* ==========================================================
 * Sổ mơ — giải mã giấc mơ
 * ========================================================== */

/* Search form (used on /so-mo/ hero + sidebar widget) */
.so-mo-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 560px;
  margin: 0 auto;
}
.so-mo-form-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  text-align: center;
}
.so-mo-form-row {
  display: flex;
  gap: var(--space-2);
  width: 100%;
}
.so-mo-form input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 16px;
  background: var(--white);
  color: var(--ink, #111);
  -webkit-appearance: none;
  appearance: none;
}
.so-mo-form input[type="search"]:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.18);
}
.so-mo-form button {
  background: var(--red);
  color: var(--white);
  border: 0;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
}
.so-mo-form button:hover,
.so-mo-form button:focus {
  background: var(--red-dark, #B71C1C);
  outline: none;
}

/* Hero (intro + form) */
.so-mo-hero { text-align: center; }
.so-mo-hero .seo-prose {
  text-align: left;
  margin-top: var(--space-4);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Result summary line */
.so-mo-result-summary {
  margin: 0 0 var(--space-3);
  font-size: 14px;
  color: var(--ink, #333);
}

/* Results table */
.so-mo-results-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.so-mo-results-caption {
  font-size: 13px;
  color: var(--muted, #666);
  margin-bottom: var(--space-2);
}
.so-mo-results {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.so-mo-results thead th {
  background: var(--soft-red, #FFE9E9);
  color: var(--red);
  font-weight: 800;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--red);
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.so-mo-results tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line, #EEE);
  vertical-align: middle;
}
.so-mo-results tbody tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.015);
}
.so-mo-results tbody tr:hover td {
  background: var(--peach, #FFF1E5);
}
.so-mo-col-stt {
  width: 56px;
  text-align: center;
  color: var(--muted, #777);
  font-weight: 700;
}
.so-mo-col-kw {
  font-weight: 700;
  color: var(--ink, #222);
}
.so-mo-col-nums {
  white-space: nowrap;
}
.so-mo-col-cat {
  font-size: 13px;
  color: var(--muted, #666);
  text-transform: lowercase;
}

/* Number badge — pill style, match palette */
.so-mo-number {
  display: inline-block;
  min-width: 44px;
  padding: 4px 10px;
  margin: 2px 4px 2px 0;
  background: var(--red);
  color: var(--white);
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  text-align: center;
  letter-spacing: 0.04em;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
.so-mo-number + .so-mo-number {
  margin-left: 0;
}

/* Browse by category */
.so-mo-categories {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.so-mo-category-block {
  border: 1px solid var(--line, #EEE);
  border-left: 4px solid var(--orange, #FB8C00);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
}
.so-mo-category-block[open] {
  border-left-color: var(--red);
}
.so-mo-category-head {
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 800;
  color: var(--red);
  background: var(--peach, #FFF1E5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  user-select: none;
}
.so-mo-category-head::-webkit-details-marker { display: none; }
.so-mo-category-head::after {
  content: "+";
  font-size: 22px;
  color: var(--red);
  font-weight: 700;
  margin-left: var(--space-2);
}
.so-mo-category-block[open] .so-mo-category-head::after {
  content: "−";
}
.so-mo-category-name {
  text-transform: capitalize;
  font-size: 15px;
}
.so-mo-category-count {
  font-size: 13px;
  color: var(--muted, #666);
  font-weight: 600;
  margin-left: var(--space-2);
}
.so-mo-category-body {
  padding: var(--space-3) var(--space-3) var(--space-4);
}

/* Top 30 — same table style; add a subtle accent background */
.so-mo-top30 {
  border-left: 4px solid var(--red);
}

/* Full A-Z toggle */
.so-mo-full-toggle {
  border: 1px solid var(--line, #EEE);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.so-mo-full-head {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  background: var(--soft-red, #FFE9E9);
  color: var(--red);
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  user-select: none;
}
.so-mo-full-head::-webkit-details-marker { display: none; }
.so-mo-full-head::after {
  content: "▼";
  font-size: 12px;
  margin-left: var(--space-2);
}
.so-mo-full-toggle[open] .so-mo-full-head::after {
  content: "▲";
}
.dd-title-inline { display: inline-flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; }
.dd-title-inline .accent { color: var(--red); font-weight: 700; }
.so-mo-full-hint {
  font-size: 12px;
  color: var(--muted, #666);
  font-weight: 600;
}
.so-mo-full-body {
  padding: var(--space-3);
}

/* Sidebar widget version */
.sb-widget-so-mo .sb-widget-body {
  padding: var(--space-3);
}
.sb-widget-so-mo .so-mo-form {
  max-width: 100%;
  margin: 0;
}
.sb-widget-so-mo .so-mo-form-row {
  flex-direction: column;
  gap: var(--space-2);
}
.sb-widget-so-mo .so-mo-form input[type="search"],
.sb-widget-so-mo .so-mo-form button {
  width: 100%;
}
.sb-widget-hint {
  margin: var(--space-2) 0 0;
  font-size: 13px;
  text-align: center;
}
.sb-widget-hint a {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}
.sb-widget-hint a:hover { text-decoration: underline; }

/* Mobile tweaks */
@media (max-width: 600px) {
  .so-mo-form-row { flex-direction: column; }
  .so-mo-form button { width: 100%; }
  .so-mo-results { font-size: 14px; }
  .so-mo-results thead th,
  .so-mo-results tbody td {
    padding: 8px 8px;
  }
  .so-mo-col-stt { width: 36px; }
  .so-mo-col-cat { display: none; }
  .so-mo-number {
    min-width: 38px;
    font-size: 14px;
    padding: 3px 8px;
  }
}

/* ============================================================
 * Vietlott per-game pages (Batch 3)
 * Game meta grid + prize-structure tables + related games strip
 * ============================================================ */
.vt-game-intro {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #424242;
  margin-top: 8px;
}
.vt-game-meta {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.vt-game-meta li {
  background: #FFF3E0;
  border-left: 4px solid #FB8C00;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vt-meta-label {
  font-size: 0.78rem;
  color: #6D4C41;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.vt-meta-value {
  font-size: 0.98rem;
  color: #BF360C;
  font-weight: 700;
}
.vt-prize-structure .prize-structure-table .prize-value {
  font-weight: 700;
  color: #C62828;
  white-space: nowrap;
}
.vt-how-to-play .seo-prose p {
  font-size: 0.97rem;
  line-height: 1.7;
  color: #333;
}
.vt-related-games {
  background: #FFF8E1;
}
.vt-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.vt-related-list li {
  display: inline-block;
}
.vt-related-list a {
  display: inline-block;
  padding: 8px 14px;
  background: #FFF;
  border: 1px solid #FFB74D;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #C62828;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.vt-related-list a:hover,
.vt-related-list a:focus {
  background: #C62828;
  color: #FFF;
  border-color: #C62828;
}
@media (max-width: 600px) {
  .vt-game-meta {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Quay thử v2 — Lucky loto + Xem ngay */
.qt-lucky .qt-lucky-result {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-3);
  background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}
.qt-lucky-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--white);
  border: 2px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(198,40,40,0.15);
}
@media (min-width: 641px) {
  .qt-lucky-ball { width: 80px; height: 80px; font-size: 32px; }
}
.qt-lucky-ball.qt-revealed {
  animation: qt-lock 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qt-xem-ngay .qt-xem-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  padding: var(--space-3);
}
@media (min-width: 641px) {
  .qt-xem-ngay .qt-xem-buttons { grid-template-columns: repeat(3, 1fr); }
}
.qt-xem-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-md);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
@media (hover: hover) {
  .qt-xem-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    border-left-color: var(--red);
  }
}
.qt-xem-icon {
  font-size: 24px;
}
.qt-xem-label {
  font-weight: 700;
  font-size: 14px;
}

/* ============================================================ */
/* Batch 5 — TK split page shell                                 */
/* ============================================================ */
.tk-page-shell { margin-bottom: var(--space-4); }
.tk-region-tabs { display: flex; gap: var(--space-2); margin: var(--space-2) 0; flex-wrap: wrap; }
.tk-region-tab { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; }
.tk-region-tab.is-active { background: var(--red); color: var(--white); border-color: var(--red); }
.tk-n-form { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-2) 0 var(--space-3); }
.tk-n-form label { font-weight: 600; color: var(--ink); }
.tk-n-select { padding: 8px 12px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.tk-placeholder { padding: var(--space-4); background: var(--cream); border-radius: var(--radius-md); text-align: center; color: var(--ink); }
.tk-placeholder p { margin: 0 0 var(--space-2); }
.tk-placeholder p:last-child { margin-bottom: 0; }
.tk-how-to-use { padding: var(--space-3); background: var(--white); border-left: 4px solid var(--orange); border-radius: var(--radius-md); margin: var(--space-3) 0; }
.tk-how-to-use h3 { margin: 0 0 var(--space-2); font-size: 16px; color: var(--red); }
.tk-how-to-use p { margin: 0; line-height: 1.6; color: var(--ink); }
.tk-related-pills { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-3); }
.tk-related-pills strong { color: var(--ink); font-weight: 700; }
.tk-related-pills a { padding: 6px 12px; background: var(--cream); border-radius: 999px; color: var(--red); text-decoration: none; font-size: 14px; font-weight: 600; }
@media (hover: hover) {
  .tk-related-pills a:hover { background: var(--red); color: var(--white); }
}

/* ============================================================ */
/* Batch 6 — Footer social + legal nav, legal stub pages         */
/* ============================================================ */
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line);
  margin-top: var(--space-3);
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--white);
  transition: transform 0.15s, filter 0.15s;
}
.footer-social-link svg { width: 22px; height: 22px; fill: currentColor; }
.footer-social-yt { background: #FF0000; }
.footer-social-fb { background: #1877F2; }
.footer-social-zalo { background: #0068FF; }
@media (hover: hover) {
  .footer-social-link:hover { transform: translateY(-2px); filter: brightness(1.1); }
}

.footer-legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  font-size: 14px;
}
.footer-legal a {
  color: var(--muted);
  text-decoration: none;
}
.footer-legal a:hover {
  color: var(--red);
  text-decoration: underline;
}

/* Legal / About / Contact stub pages */
.legal-page { max-width: 760px; margin: 0 auto; }
.legal-page h2 {
  color: var(--red);
  border-bottom: 2px solid var(--red);
  padding-bottom: 4px;
  margin-top: var(--space-4);
  font-size: 20px;
}
.legal-page p {
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: var(--space-3);
}
.legal-page ul {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 var(--space-3);
}
.legal-page ul li {
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: var(--space-2);
}
.legal-page a {
  color: var(--red);
  text-decoration: underline;
}

.gioi-thieu-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin: var(--space-4) 0;
}
.gioi-thieu-stat-box {
  padding: var(--space-3);
  background: var(--cream);
  border-radius: var(--radius);
  text-align: center;
}
.gioi-thieu-stat-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--red);
  font-family: var(--mono);
  line-height: 1.1;
}
.gioi-thieu-stat-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}
@media (max-width: 640px) {
  .gioi-thieu-stats { grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
  .gioi-thieu-stat-num { font-size: 24px; }
  .gioi-thieu-stat-label { font-size: 12px; }
}

.lien-he-form {
  padding: var(--space-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.lien-he-form label {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  color: var(--ink);
}
.lien-he-form input,
.lien-he-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
}
.lien-he-form button {
  background: var(--red);
  color: var(--white);
  border: 0;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
}
@media (hover: hover) {
  .lien-he-form button:hover { background: var(--red-dark); }
}
.lien-he-form-note {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin-top: var(--space-2);
}

/* =====================================================================
 * Stat widgets (GDB tần suất / chạm / gan, lo-gan-group, gan cực đại,
 * GDB ngày này năm xưa, Vietlott history) — used on /tk-giai-dac-biet/,
 * /lo-gan/, /quay-thu-mb/, /vietlott/.
 * ===================================================================== */
.stat-widget-stack > .stat-widget + .stat-widget {
  margin-top: var(--space-3);
}
.stat-widget .block-head {
  margin-bottom: var(--space-2);
}
.stat-widget-empty {
  padding: 14px;
  text-align: center;
  color: var(--muted);
  background: #FAFAFA;
  border-radius: var(--radius);
  font-size: 14px;
}
.stat-widget-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 var(--space-2);
}
.stat-widget-twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
@media (max-width: 640px) {
  .stat-widget-twocol {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
}
.stat-widget-col h3 {
  font-size: 14px;
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--text);
}
.stat-widget .is-pair {
  font-weight: 700;
  font-feature-settings: "tnum" 1;
}
.stat-widget .is-num {
  text-align: center;
  font-feature-settings: "tnum" 1;
}
.stat-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #F0F0F0;
  color: var(--muted);
}
.stat-badge.is-ongoing {
  background: #FFEBEE;
  color: var(--red, #C62828);
}
.stat-mini-more {
  margin: var(--space-2) 0 0;
  text-align: right;
  font-size: 13px;
}
.stat-mini-more a {
  color: var(--red, #C62828);
  font-weight: 600;
  text-decoration: none;
}

/* Vietlott history table */
.vt-history-table .vt-history-result {
  font-feature-settings: "tnum" 1;
}
.vt-history-result .vt-balls {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
.vt-history-result .vt-ball {
  display: inline-block;
  min-width: 28px;
  padding: 2px 6px;
  text-align: center;
  background: #FFF3E0;
  border: 1px solid #FFCC80;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}
.vt-history-result .vt-row-grp {
  display: inline-block;
  margin-right: 8px;
}
.vt-history-result .vt-row-lbl {
  color: var(--muted);
  font-size: 12px;
  margin-right: 4px;
}
.vt-history-result .vt-num {
  display: inline-block;
  padding: 2px 6px;
  background: #FFF3E0;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
}
.vt-history-result .vt-empty {
  color: var(--muted);
}

/* ============================ SOI CẦU ============================ */
.soi-cau-page .soi-cau-table { margin: var(--space-3) 0; }
.soi-cau-disclaimer { margin-top: var(--space-4); padding: var(--space-3); background: #FFF8E1; border-left: 4px solid #F59E0B; border-radius: var(--radius-md); }
.soi-cau-disclaimer h2 { color: #92400E; font-size: 1rem; margin-bottom: var(--space-2); }
.soi-cau-disclaimer p { color: #78350F; font-size: 0.92rem; margin: 0; }
.soi-cau-related { margin-top: var(--space-4); }
.soi-cau-related h2 { font-size: 1.05rem; margin-bottom: var(--space-3); }
.soi-cau-related-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.soi-cau-related-item { display: flex; flex-direction: column; gap: 4px; padding: var(--space-3); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.soi-cau-related-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(198,40,40,0.12); border-color: var(--red); }
.soi-cau-related-item strong { color: var(--red); font-size: 0.95rem; }
.soi-cau-related-item span { color: #6B7280; font-size: 0.85rem; }

/* ============================ THẢO LUẬN + DIỄN ĐÀN ============================ */
.thao-luan-intro ul { padding-left: 1.2rem; }
.thao-luan-intro li { margin-bottom: var(--space-2); }
.thao-luan-comments { margin-top: var(--space-4); }
.forum-topics { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: var(--space-3) 0 var(--space-4); }
.forum-topic { display: flex; gap: var(--space-3); padding: var(--space-3); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.forum-topic:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(198,40,40,0.12); border-color: var(--red); }
.forum-topic-icon { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.forum-topic-body { display: flex; flex-direction: column; gap: 4px; }
.forum-topic-body strong { color: var(--red); font-size: 1rem; }
.forum-topic-desc { color: #4B5563; font-size: 0.88rem; line-height: 1.4; }
.forum-recent-list { list-style: none; padding: 0; margin: 0; }
.forum-recent-item { padding: var(--space-3); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto auto 1fr; grid-template-rows: auto auto; gap: 4px 8px; align-items: baseline; }
.forum-recent-item:last-child { border-bottom: none; }
.forum-recent-author { color: var(--red); font-weight: 700; font-size: 0.9rem; }
.forum-recent-arrow { color: #9CA3AF; }
.forum-recent-post { color: #1F2937; font-weight: 600; text-decoration: none; }
.forum-recent-post:hover { color: var(--red); text-decoration: underline; }
.forum-recent-text { grid-column: 1 / -1; color: #4B5563; font-size: 0.88rem; margin: 0; }
.forum-recent-date { grid-column: 1 / -1; color: #9CA3AF; font-size: 0.78rem; }
.forum-rules ol { padding-left: 1.4rem; }
.forum-rules li { margin-bottom: var(--space-2); }
