/* =========================================================
   Mostbet-like Global CSS for Elementor + Child Theme
   Includes:
   - Header / top navigation / pagehead / footer UI
   - Content article system (.mb-article)
   - Smart rows (reverse / stack)
   - Hero
   - CTA / buttons
   - Grid / cards + orphan-card fix
   - Lists
   - FAQ (details/summary)
   - Tables with mandatory mobile horizontal scroll
   - RTL / Urdu-friendly defaults
========================================================= */

/* =========================
   1) Design tokens
========================= */
:root{
  --mb-bg:#ffffff;
  --mb-card:#ffffff;
  --mb-soft:#f4f7fb;
  --mb-soft-2:#edf3fa;
  --mb-text:#111827;
  --mb-text-2:#374151;
  --mb-heading:#0b3e78;

  --mb-blue-950:#021426;
  --mb-blue-900:#06284a;
  --mb-blue-850:#08335f;
  --mb-blue-800:#0a3f78;
  --mb-blue-700:#114d8f;
  --mb-blue-600:#2a5be8;

  --mb-orange:#ff5a14;
  --mb-orange-2:#ff7a1f;
  --mb-orange-dark:#b72d00;

  --mb-border:#dbe6f3;
  --mb-border-2:#cfdced;

  --mb-radius-sm:10px;
  --mb-radius-md:14px;
  --mb-radius-lg:18px;
  --mb-radius-xl:24px;
  --mb-radius-pill:999px;

  --mb-shadow-sm:0 6px 16px rgba(6, 40, 74, .08);
  --mb-shadow-md:0 12px 28px rgba(6, 40, 74, .12);
  --mb-shadow-lg:0 18px 36px rgba(6, 40, 74, .16);

  --mb-max:1160px;
  --mb-gap:24px;
  --mb-gap-lg:32px;
  --mb-gap-xl:40px;
}

/* =========================
   2) Base scope helpers
========================= */
.mb-site{
  background:var(--mb-bg);
  color:var(--mb-text);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Tahoma,Arial,"Noto Nastaliq Urdu","Noto Naskh Arabic",sans-serif;
}

.mb-content{
  max-width:var(--mb-max);
  margin:0 auto;
  padding:24px 18px;
}

/* =========================
   3) Header UI (Mostbet-like)
========================= */
.mb-topbar{
  background:
    linear-gradient(180deg, rgba(10,70,130,.35) 0%, rgba(0,0,0,0) 55%),
    linear-gradient(180deg, #082d57 0%, #021426 100%);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.mb-topbar__inner{
  max-width:var(--mb-max);
  margin:0 auto;
  min-height:92px;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.mb-logo{
  display:inline-flex;
  align-items:center;
  line-height:1;
  text-decoration:none;
}

.mb-logo img{
  display:block;
  max-height:42px;
  width:auto;
}

.mb-topbar__actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.mb-device-link{
  color:#fff;
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  padding:8px 10px;
  border-radius:10px;
  transition:background-color .2s ease, color .2s ease;
}

.mb-device-link:hover{
  background:rgba(255,255,255,.08);
}

.mb-device-link .icon{
  color:var(--mb-orange);
  margin-inline-end:6px;
  font-style:normal;
}

.mb-reg-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 22px;
  border-radius:var(--mb-radius-pill);
  background:#fff;
  color:#173a67;
  text-decoration:none;
  font-weight:700;
  border:1px solid rgba(255,255,255,.55);
  box-shadow:0 4px 14px rgba(0,0,0,.18);
  transition:transform .15s ease, box-shadow .2s ease;
}

.mb-reg-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(0,0,0,.22);
}

/* =========================
   4) Top menu pill
========================= */
.mb-topnav-wrap{
  background:#fff;
  border-bottom:1px solid #e6e8ec;
}

.mb-topnav{
  max-width:var(--mb-max);
  margin:0 auto;
  padding:10px 18px 14px;
}

.mb-topnav__list{
  list-style:none;
  margin:0;
  padding:8px 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:2px;
  border-radius:var(--mb-radius-pill);
  background:
    linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 35%),
    linear-gradient(180deg, #ff5d18 0%, #cb3506 48%, #140804 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2), 0 10px 24px rgba(0,0,0,.18);
}

.mb-topnav__list a{
  color:#fff;
  text-decoration:none;
  font-size:13px;
  font-weight:600;
  line-height:1.2;
  padding:8px 12px;
  border-radius:var(--mb-radius-pill);
  white-space:nowrap;
  transition:background-color .2s ease;
}

.mb-topnav__list a:hover{
  background:rgba(255,255,255,.10);
}

/* =========================
   5) Page title stripe
========================= */
.mb-pagehead{
  background:#efefef;
  border-top:1px solid #e3e3e3;
  border-bottom:1px solid #e3e3e3;
}

.mb-pagehead__inner{
  max-width:var(--mb-max);
  margin:0 auto;
  padding:28px 18px 20px;
}

.mb-pagehead h1{
  margin:0;
  font-size:56px;
  line-height:1;
  font-weight:600;
  color:#2f343c;
  letter-spacing:.2px;
}

/* =========================
   6) Footer UI (Mostbet-like)
========================= */
.mb-footer{
  color:#fff;
  background:
    radial-gradient(1200px 280px at 50% -40%, rgba(255,98,0,.10), rgba(255,98,0,0) 60%),
    linear-gradient(180deg, #041a31 0%, #0b376e 70%, #103f78 100%);
  border-top:1px solid rgba(255,255,255,.06);
}

.mb-footer__inner{
  max-width:var(--mb-max);
  margin:0 auto;
  padding:20px 18px 10px;
}

.mb-footer__brand{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin-bottom:14px;
}

.mb-footer__brand img{
  max-height:54px;
  width:auto;
  display:block;
  filter:drop-shadow(0 2px 8px rgba(0,0,0,.25));
}

.mb-footer-nav{
  border:1px solid rgba(255,90,20,.9);
  border-radius:22px;
  padding:6px;
  background:linear-gradient(180deg, rgba(7,33,61,.95), rgba(9,40,72,.95));
  box-shadow:0 12px 24px rgba(0,0,0,.20);
}

.mb-footer-nav__list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:2px;
}

.mb-footer-nav__list a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 14px;
  border-radius:var(--mb-radius-pill);
  color:#fff;
  text-decoration:none;
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
  transition:background-color .2s ease, color .2s ease;
}

.mb-footer-nav__list a:hover{
  background:rgba(255,255,255,.08);
}

.mb-footer-nav__list a.is-active{
  background:var(--mb-orange);
  color:#fff;
  box-shadow:0 4px 12px rgba(255,90,20,.35);
}

.mb-license{
  margin:16px 0 0;
  text-align:center;
  color:rgba(255,255,255,.92);
  font-size:12px;
  line-height:1.45;
  padding:10px 8px 0;
  border-top:1px solid rgba(255,255,255,.08);
}

/* =========================
   7) Content article scope (Elementor HTML widget)
   Works for:
   - .mb-article
   - .mbpk-article
   - .mbpk-page .mb-article
========================= */
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article){
  width:100%;
  max-width:var(--mb-max);
  margin:0 auto;
  padding:20px 18px 28px;
  color:var(--mb-text);
  background:transparent;
  line-height:1.75;
  text-align:right;
  direction:rtl;
  overflow-wrap:anywhere;
  -webkit-text-size-adjust:100%;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) *{
  box-sizing:border-box;
}

/* Prevent overflow inside flex/grid children */
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-row > *,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-copy,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-media,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-section,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-card,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-grid > *,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-slot-grid > *{
  min-width:0;
}

/* =========================
   8) Typography
========================= */
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) h1,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) h2,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) h3,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) h4{
  margin:0 0 12px;
  color:var(--mb-heading);
  line-height:1.35;
  font-weight:800;
  letter-spacing:0;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) h1{
  font-size:clamp(28px, 4vw, 40px);
  margin-bottom:14px;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) h2{
  font-size:clamp(22px, 3vw, 30px);
  margin-top:4px;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) h3{
  font-size:clamp(18px, 2.2vw, 24px);
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) h4{
  font-size:clamp(16px, 2vw, 20px);
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) p{
  margin:0 0 12px;
  color:var(--mb-text-2);
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) p:last-child{
  margin-bottom:0;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) a{
  color:var(--mb-blue-700);
  text-decoration:none;
  transition:color .2s ease;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) a:hover{
  color:var(--mb-orange);
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) strong{
  color:#0f315a;
  font-weight:800;
}

/* =========================
   9) Sections and blocks
========================= */
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-section,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-block{
  margin:0 0 22px;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-section:last-child,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-block:last-child{
  margin-bottom:0;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-note{
  margin-top:10px;
  padding:10px 12px;
  border:1px solid rgba(255,90,20,.25);
  border-radius:12px;
  background:linear-gradient(180deg, rgba(255,90,20,.08), rgba(255,90,20,.04));
  color:#7a3a10;
  font-size:14px;
  line-height:1.55;
}

/* =========================
   10) Smart row layout (short/long, reverse, stack)
========================= */
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-row{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
  gap:var(--mb-gap);
  align-items:center;
  margin:0;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-row--reverse > .mb-copy{
  order:2;
}
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-row--reverse > .mb-media{
  order:1;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-row--stack,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-row--long{
  grid-template-columns:minmax(0, 1fr);
  align-items:start;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-row--stack > .mb-media,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-row--long > .mb-media{
  order:1;
}
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-row--stack > .mb-copy,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-row--long > .mb-copy{
  order:2;
}

/* Progressive enhancement: auto-stack rows with heavy content */
@supports selector(.x:has(.y)){
  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-row:not(.mb-row--stack):not(.mb-row--long):not(.mb-row--no-auto):has(.mb-table-wrap),
  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-row:not(.mb-row--stack):not(.mb-row--long):not(.mb-row--no-auto):has(ol li:nth-child(4)),
  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-row:not(.mb-row--stack):not(.mb-row--long):not(.mb-row--no-auto):has(ul li:nth-child(5)){
    grid-template-columns:minmax(0, 1fr);
    align-items:start;
  }
}

/* Copy column vertical centering for short blocks */
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-self:stretch;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-row--stack .mb-copy,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-row--long .mb-copy{
  justify-content:flex-start;
}

/* Media column */
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-media{
  display:block;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-media > a{
  display:block;
  text-decoration:none;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-media img{
  display:block;
  width:100%;
  height:auto;
  border-radius:var(--mb-radius-lg);
  box-shadow:var(--mb-shadow-md);
  background:#fff;
}

/* =========================
   11) Hero block
========================= */
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-hero{
  margin:0 0 24px;
  padding:16px;
  border:1px solid var(--mb-border);
  border-radius:var(--mb-radius-xl);
  background:
    radial-gradient(1200px 200px at 50% -20%, rgba(10,63,120,.07), rgba(10,63,120,0) 60%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow:var(--mb-shadow-sm);
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-hero .mb-row{
  gap:var(--mb-gap-lg);
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-hero-badge,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:fit-content;
  max-width:100%;
  margin:0 0 10px auto;
  padding:8px 12px;
  border-radius:var(--mb-radius-pill);
  border:1px solid rgba(255,90,20,.18);
  background:linear-gradient(180deg, rgba(255,90,20,.12), rgba(255,90,20,.07));
  color:#8b350a;
  font-size:13px;
  font-weight:700;
  line-height:1.2;
  text-align:center;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-hero h1{
  margin-bottom:10px;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-hero .mb-copy p{
  font-size:15px;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-hero .mb-media img{
  border-radius:20px;
}

/* =========================
   12) CTA and buttons
========================= */
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-cta{
  margin:14px 0 16px;
  padding:14px;
  border:1px solid var(--mb-border);
  border-radius:16px;
  background:
    linear-gradient(180deg, rgba(10,63,120,.04), rgba(10,63,120,.02)),
    #fff;
  box-shadow:var(--mb-shadow-sm);
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-cta__title{
  margin:0 0 8px;
  color:var(--mb-heading);
  font-size:16px;
  font-weight:800;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-cta__text{
  margin:0 0 10px;
  color:var(--mb-text-2);
  font-size:14px;
  line-height:1.6;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-btns,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-cta__buttons{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:flex-start;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 16px;
  border-radius:var(--mb-radius-pill);
  border:1px solid transparent;
  background:linear-gradient(180deg, var(--mb-blue-700), var(--mb-blue-900));
  color:#fff;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  line-height:1;
  box-shadow:0 8px 18px rgba(10,63,120,.22);
  transition:transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
  white-space:nowrap;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 22px rgba(10,63,120,.28);
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-btn--accent{
  background:linear-gradient(180deg, var(--mb-orange-2), var(--mb-orange-dark));
  box-shadow:0 8px 18px rgba(255,90,20,.25);
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-btn--ghost{
  background:#fff;
  color:var(--mb-heading);
  border-color:var(--mb-border-2);
  box-shadow:none;
}

/* =========================
   13) Grids and cards
========================= */
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-grid,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-slot-grid,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-mini-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
  margin:14px 0 18px;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-grid > *,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-slot-grid > *,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-mini-grid > *{
  min-width:0;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-card,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-slot-card{
  background:var(--mb-card);
  border:1px solid var(--mb-border);
  border-radius:16px;
  padding:12px;
  box-shadow:var(--mb-shadow-sm);
  display:flex;
  flex-direction:column;
  gap:10px;
  height:100%;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-card__media,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-slot-card__media{
  display:block;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-card__media img,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-slot-card__media img{
  display:block;
  width:100%;
  height:auto;
  object-fit:cover;
  border-radius:0;
  box-shadow:none;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-card h3,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-card h4,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-slot-card h3,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-slot-card h4{
  margin:0;
  line-height:1.35;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-card p,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-slot-card p{
  margin:0;
  font-size:14px;
  line-height:1.6;
}

/* Orphan-card fix for 2-column grids */
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-grid > :last-child:nth-child(odd),
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-slot-grid > :last-child:nth-child(odd),
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-mini-grid > :last-child:nth-child(odd){
  grid-column:1 / -1;
}

/* =========================
   14) Lists
========================= */
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) ul,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) ol{
  margin:0 0 14px;
  padding-inline-start:22px;
  color:var(--mb-text-2);
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) li{
  margin:0 0 6px;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) li:last-child{
  margin-bottom:0;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) li > ul,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) li > ol{
  margin-top:6px;
  margin-bottom:0;
}

/* =========================
   15) Tables (mandatory mobile scroll)
========================= */
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-table-wrap{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  display:block;
  direction:ltr; /* Scroll behaves better, content stays RTL inside table */
  touch-action:pan-x;
  margin:18px 0 22px;
  border-radius:14px;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) p + .mb-table-wrap{
  margin-top:10px;
}
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-table-wrap + p{
  margin-top:10px;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-table-wrap > table.mb-table{
  width:100%;
  min-width:560px;
  border-collapse:separate;
  border-spacing:0;
  direction:rtl;
  background:#fff;
  color:#163454;
  border:1px solid var(--mb-border);
  border-radius:14px;
  overflow:hidden;
  box-shadow:var(--mb-shadow-sm);
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) table.mb-table caption{
  caption-side:top;
  text-align:right;
  color:var(--mb-heading);
  font-weight:800;
  padding:10px 12px 8px;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) table.mb-table thead th{
  background:linear-gradient(180deg, rgba(10,63,120,.08), rgba(10,63,120,.03));
  color:var(--mb-heading);
  font-weight:800;
  border-bottom:1px solid var(--mb-border);
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) table.mb-table th,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) table.mb-table td{
  padding:10px 12px;
  vertical-align:top;
  text-align:right;
  line-height:1.45;
  border-left:1px solid var(--mb-border);
  border-bottom:1px solid var(--mb-border);
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) table.mb-table th:last-child,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) table.mb-table td:last-child{
  border-left:none;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) table.mb-table tbody tr:last-child td{
  border-bottom:none;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) table.mb-table tbody tr:nth-child(even) td{
  background:rgba(10,63,120,.02);
}

/* Optional fallback for plain tables (if any slipped through) */
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-copy table:not(.mb-table){
  width:100%;
  border-collapse:collapse;
  margin:14px 0;
}

/* =========================
   16) FAQ (details/summary)
========================= */
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-faq{
  margin:18px 0 0;
  padding:14px;
  border:1px solid var(--mb-border);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--mb-shadow-sm);
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-faq > h2,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-faq > h3{
  margin-bottom:10px;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-faq details{
  border:1px solid var(--mb-border);
  border-radius:12px;
  background:#fff;
  margin:0 0 10px;
  overflow:hidden;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-faq details:last-child{
  margin-bottom:0;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-faq summary{
  list-style:none;
  cursor:pointer;
  position:relative;
  padding:12px 42px 12px 14px;
  color:var(--mb-heading);
  font-weight:700;
  line-height:1.4;
  background:linear-gradient(180deg, rgba(10,63,120,.03), rgba(10,63,120,.01));
  transition:background-color .2s ease;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-faq summary::-webkit-details-marker{
  display:none;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-faq summary:hover{
  background:linear-gradient(180deg, rgba(10,63,120,.06), rgba(10,63,120,.02));
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-faq summary::after{
  content:"+";
  position:absolute;
  inset-inline-start:14px;
  top:50%;
  transform:translateY(-50%);
  width:20px;
  height:20px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(255,90,20,.12);
  color:var(--mb-orange-dark);
  font-weight:800;
  line-height:1;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-faq details[open] > summary::after{
  content:"−";
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-faq .mb-faq__answer,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-faq details > div{
  padding:12px 14px;
  border-top:1px solid var(--mb-border);
  color:var(--mb-text-2);
  line-height:1.7;
}

/* =========================
   17) Utility helpers (optional)
========================= */
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-center{
  text-align:center;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-muted{
  color:#6b7280;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-divider{
  height:1px;
  background:var(--mb-border);
  margin:16px 0;
}

:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-spacer-sm{ margin-top:8px; }
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-spacer-md{ margin-top:12px; }
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-spacer-lg{ margin-top:18px; }

/* =========================
   18) Focus states and motion safety
========================= */
.mb-reg-btn:focus-visible,
.mb-topnav__list a:focus-visible,
.mb-footer-nav__list a:focus-visible,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) a:focus-visible,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-btn:focus-visible,
:where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-faq summary:focus-visible{
  outline:2px solid rgba(42,91,232,.5);
  outline-offset:2px;
  border-radius:10px;
}

@media (prefers-reduced-motion: reduce){
  *{
    scroll-behavior:auto !important;
  }
  .mb-reg-btn,
  .mb-topnav__list a,
  .mb-footer-nav__list a,
  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) a,
  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-btn,
  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-faq summary{
    transition:none !important;
  }
}

/* =========================
   19) RTL helpers for header/footer UI
========================= */
[dir="rtl"] .mb-topbar__inner,
[dir="rtl"] .mb-footer__brand{
  flex-direction:row-reverse;
}

[dir="rtl"] .mb-topbar__actions{
  justify-content:flex-start;
}

[dir="rtl"] .mb-device-link .icon{
  margin-inline-end:0;
  margin-inline-start:6px;
}

/* =========================
   20) Responsive
========================= */
@media (max-width: 980px){
  .mb-pagehead h1{
    font-size:46px;
  }

  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article){
    padding-inline:16px;
  }

  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-row{
    gap:18px;
  }

  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-table-wrap > table.mb-table{
    min-width:520px;
  }
}

@media (max-width: 767px){
  /* Header */
  .mb-topbar__inner{
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding-top:12px;
    padding-bottom:12px;
    min-height:auto;
  }

  .mb-topbar__actions{
    justify-content:center;
    gap:6px;
  }

  .mb-device-link{
    font-size:13px;
    padding:6px 8px;
  }

  .mb-reg-btn{
    min-height:38px;
    padding:0 16px;
    font-size:14px;
  }

  /* Top navigation becomes horizontal scroll */
  .mb-topnav{
    padding-top:8px;
    padding-bottom:10px;
  }

  .mb-topnav__list{
    border-radius:18px;
    padding:6px;
    justify-content:flex-start;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    flex-wrap:nowrap;
  }

  .mb-topnav__list a{
    flex:0 0 auto;
    font-size:12px;
    padding:8px 10px;
  }

  /* Page title */
  .mb-pagehead__inner{
    padding-top:20px;
    padding-bottom:16px;
  }

  .mb-pagehead h1{
    font-size:34px;
  }

  /* Footer nav becomes horizontal scroll */
  .mb-footer__inner{
    padding-top:16px;
  }

  .mb-footer__brand{
    justify-content:center;
  }

  .mb-footer-nav{
    border-radius:16px;
  }

  .mb-footer-nav__list{
    justify-content:flex-start;
    flex-wrap:nowrap;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    padding-bottom:2px;
  }

  .mb-footer-nav__list a{
    flex:0 0 auto;
    min-height:34px;
    padding:0 12px;
    font-size:12px;
  }

  .mb-license{
    font-size:11px;
  }

  /* Content article */
  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article){
    padding:16px 14px 22px;
    line-height:1.7;
  }

  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) h1{
    font-size:26px;
  }
  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) h2{
    font-size:22px;
  }
  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) h3{
    font-size:18px;
  }

  /* All content rows become single-column on mobile */
  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-row{
    grid-template-columns:minmax(0, 1fr);
    gap:14px;
    align-items:start;
  }

  /* Mobile image-first for hero and regular rows */
  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-row > .mb-media{
    order:1 !important;
  }
  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-row > .mb-copy{
    order:2 !important;
  }

  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-copy{
    justify-content:flex-start;
  }

  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-hero{
    padding:12px;
    border-radius:18px;
  }

  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-hero-badge,
  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-badge{
    margin-inline:auto 0;
    font-size:12px;
  }

  /* CTA buttons full width on mobile */
  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-btns,
  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-cta__buttons{
    flex-direction:column;
    align-items:stretch;
  }

  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-btn{
    width:100%;
    justify-content:center;
    min-height:40px;
  }

  /* Grid cards collapse to one column */
  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-grid,
  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-slot-grid,
  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-mini-grid{
    grid-template-columns:minmax(0, 1fr);
    gap:12px;
  }

  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-grid > :last-child,
  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-slot-grid > :last-child,
  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-mini-grid > :last-child{
    grid-column:auto;
  }

  /* Mandatory mobile table scroll */
  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-table-wrap > table.mb-table{
    min-width:560px;
  }

  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) table.mb-table th,
  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) table.mb-table td{
    white-space:nowrap;
    font-size:13px;
    padding:9px 10px;
  }

  /* FAQ spacing */
  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-faq{
    padding:10px;
    border-radius:14px;
  }

  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-faq summary{
    padding:10px 38px 10px 12px;
    font-size:14px;
  }

  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-faq .mb-faq__answer,
  :where(.mb-article, .mbpk-article, .mbpk-page .mb-article) .mb-faq details > div{
    padding:10px 12px;
    font-size:14px;
  }
}
