/* ============================================================
   theidf.org — mustaqil oʻzbekcha qoʻllanma
   Archetype: nav-rail · Theme: tinted · Shape: moderate
   Density: airy · Persona: luxe · Hero: mirror-split
   ============================================================ */

:root{
  /* surfaces (tinted light base) */
  --bg:#EDF2F8;
  --surface:#FFFFFF;
  --bg-card:#FFFFFF;
  --surface-alt:#DFE7F1;
  --surface-tint:#D9E6F6;
  --border:#C9D4E0;

  /* ink */
  --ink:#0F1B2B;
  --ink-2:#3C4B5C;
  --ink-3:#54657A;

  /* structure */
  --navy-900:#022244;
  --navy-700:#073362;
  --blue-600:#094B95;
  --blue-300:#428CDC;

  /* conversion */
  --cta:#FA4D00;
  --cta-hover:#D93F00;
  --cta-press:#BC3600;
  --cta-ink:#FFFFFF;

  /* evidence tiers — always paired with a word, never colour alone */
  --ok:#356B11;
  --ok-fill:#72C132;
  --ok-100:#EAF6E0;
  --attr:#7A5709;
  --attr-100:#FBF0D9;
  --unknown:#5A6B7C;
  --unknown-100:#E8ECF1;
  --warn:#B3261E;
  --warn-100:#FBE9E7;

  /* metrics */
  --wrap:1160px;
  --gutter:clamp(1.15rem,3.6vw,2.25rem);
  --rail-w:252px;
  --sec-pad:clamp(3.25rem,6vw,5.25rem);
  --sp-1:.7rem;
  --sp-2:1.35rem;
  --sp-3:2.25rem;

  /* shape: moderate */
  --r-sm:6px;
  --r:8px;
  --r-lg:10px;

  --shadow:0 1px 2px rgba(2,34,68,.05),0 14px 32px -22px rgba(2,34,68,.45);
  --shadow-sm:0 1px 2px rgba(2,34,68,.06);

  --font-head:ui-serif,"Iowan Old Style","Palatino Linotype",Palatino,Georgia,"Times New Roman",serif;
  --font-body:ui-sans-serif,system-ui,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --font-num:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
}

/* ---------- base ---------- */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  overflow-x:clip;
  background:var(--bg);
  color:var(--ink-2);
  font-family:var(--font-body);
  font-size:1.0625rem;
  line-height:1.72;
  overflow-wrap:anywhere;
}
img{max-width:100%}
a{color:var(--blue-600)}
a:hover{color:var(--navy-700)}
:focus-visible{outline:3px solid var(--blue-300);outline-offset:2px;border-radius:2px}

h1,h2,h3,h4{
  font-family:var(--font-head);
  color:var(--navy-900);
  font-weight:600;
  line-height:1.14;
  letter-spacing:-.012em;
  margin:0 0 var(--sp-1);
  text-wrap:balance;
}
h1{font-size:clamp(2rem,4.4vw,3.15rem)}
h2{font-size:clamp(1.55rem,3vw,2.25rem)}
h3{font-size:clamp(1.2rem,2vw,1.45rem)}
h4{font-size:1.05rem}
p{margin:0 0 var(--sp-2)}
p:last-child{margin-bottom:0}
strong{color:var(--ink)}
small,.mbu-fine{font-size:.875rem;line-height:1.6;color:var(--ink-3)}

/* utility: numerals, dates, sums */
.mbu-num,.mbu-date{font-family:var(--font-num);font-variant-numeric:tabular-nums;letter-spacing:-.02em}

.mbu-container{
  width:100%;
  max-width:var(--wrap);
  margin-inline:auto;
  padding-inline:var(--gutter);
}
.mbu-section{padding-block:var(--sec-pad)}
.mbu-section--alt{background:var(--surface-alt)}
.mbu-section--tint{background:var(--surface-tint)}
.mbu-section__head{max-width:none;margin-bottom:var(--sp-3)}
.mbu-section__head p{max-width:70ch}
.mbu-container>.mbu-fine{max-width:80ch}
.mbu-eyebrow{
  display:block;
  font-family:var(--font-body);
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--blue-600);
  margin:0 0 .55rem;
}
.mbu-rule{
  border:0;
  height:1px;
  background:var(--border);
  margin-block:var(--sp-3);
}

/* ---------- icons (sprite) ---------- */
.mbu-icon{
  width:1.5em;height:1.5em;
  display:inline-block;
  vertical-align:middle;
  flex-shrink:0;
  color:var(--blue-600);
  stroke:currentColor;
  fill:none;
}
.mbu-icon--lg{width:2rem;height:2rem}
.mbu-icon--ok{color:var(--ok)}
.mbu-icon--attr{color:var(--attr)}
.mbu-icon--warn{color:var(--warn)}

/* ---------- buttons ---------- */
.mbu-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  min-height:50px;
  padding:.85rem 1.6rem;
  border:1px solid transparent;
  border-radius:var(--r);
  background:var(--cta);
  color:var(--cta-ink);
  font-family:var(--font-body);
  font-size:1.125rem;
  font-weight:700;
  line-height:1.2;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
  transition:background .18s ease,transform .18s ease;
}
.mbu-btn:hover{background:var(--cta-hover);color:var(--cta-ink);transform:translateY(-1px)}
.mbu-btn:active{background:var(--cta-press);transform:none}
.mbu-btn--ghost{
  background:transparent;
  color:var(--blue-600);
  border-color:var(--border);
  font-size:1rem;
}
.mbu-btn--ghost:hover{background:var(--surface);color:var(--navy-700);border-color:var(--blue-300)}
.mbu-btn--sm{min-height:42px;padding:.5rem 1rem;font-size:1rem;background:var(--cta-hover)}
.mbu-btn--sm:hover{background:var(--cta-press)}

/* ============================================================
   HEADER — vertical nav rail (desktop) / top bar + burger (mobile)
   Logo tone is DARK → both header and footer surfaces stay LIGHT.
   ============================================================ */
.mbu-header{
  position:fixed;
  inset-block:0;
  inset-inline-start:0;
  width:var(--rail-w);
  z-index:100;
  background:var(--surface);
  border-inline-end:1px solid var(--border);
  box-shadow:var(--shadow-sm);
}
.mbu-header__inner{
  display:flex;
  flex-direction:column;
  height:100%;
  padding:1.6rem 1.15rem 1.4rem;
  gap:1.4rem;
  overflow-y:auto;
}
.mbu-logo{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  flex-shrink:0;
}
.mbu-logo__img{
  display:block;
  height:40px;
  width:auto;
  object-fit:contain;
}
.mbu-header__note{
  margin:-.9rem 0 0;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink-3);
}

/* nav */
.mbu-nav{display:flex;flex-direction:column}
.mbu-nav__list{
  list-style:none;
  margin:0;padding:0;
  display:flex;
  flex-direction:column;
  gap:.2rem;
}
.mbu-nav__list>li{min-width:0}
.mbu-nav a:not(.mbu-btn){
  display:block;
  padding:.7rem .85rem;
  border-radius:var(--r);
  border-inline-start:2px solid transparent;
  color:var(--ink-2);
  font-size:1rem;
  font-weight:600;
  text-decoration:none;
  transition:background .15s ease,color .15s ease,border-color .15s ease;
}
.mbu-nav a:not(.mbu-btn):hover{
  background:var(--surface-alt);
  color:var(--navy-900);
  border-inline-start-color:var(--cta);
}
.mbu-nav a:not(.mbu-btn)[aria-current="page"]{
  background:var(--surface-tint);
  color:var(--navy-900);
  border-inline-start-color:var(--cta);
}
/* guard: a CTA copy inside <nav> never shows on desktop */
.mbu-nav>.mbu-btn{display:none}

.mbu-header__cta{margin-block-start:auto;width:100%}

/* burger */
.mbu-burger{
  display:none;
  flex-shrink:0;
  width:44px;height:44px;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  padding:0;
  background:transparent;
  border:1px solid var(--border);
  border-radius:var(--r);
  cursor:pointer;
}
.mbu-burger span{
  display:block;
  width:22px;
  height:2px;
  background:var(--navy-900);
  border-radius:2px;
  transition:transform .2s ease,opacity .2s ease;
}
.mbu-header.is-open .mbu-burger span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.mbu-header.is-open .mbu-burger span:nth-child(2){opacity:0}
.mbu-header.is-open .mbu-burger span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* rail reserved on the BODY itself (pages are header + body + footer fragments) */
@media (min-width:960px){
  body{padding-inline-start:var(--rail-w)}
}

/* burger breakpoint */
@media (max-width:959px){
  body{padding-inline-start:0}
  .mbu-header{
    position:sticky;
    inset:0 auto auto 0;
    width:100%;
    height:auto;
    border-inline-end:0;
    border-block-end:1px solid var(--border);
  }
  .mbu-header__inner{
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    gap:.35rem .5rem;
    height:auto;
    padding:.6rem var(--gutter) .5rem;
    overflow:visible;
  }
  .mbu-logo__img{height:32px;max-width:min(45vw,150px)}
  .mbu-header__note{
    display:block;
    order:9;
    flex-basis:100%;
    margin:0;
    font-size:.62rem;
    letter-spacing:.12em;
    line-height:1.1;
  }
  .mbu-burger{display:flex}
  .mbu-header__cta{
    margin-block-start:0;
    margin-inline-start:auto;
    width:auto;
    min-height:42px;
    padding:.5rem .95rem;
    font-size:1rem;
    white-space:nowrap;
    background:var(--cta-hover);
  }
  .mbu-header__cta:hover{background:var(--cta-press)}
  .mbu-nav{
    display:none;
    position:absolute;
    inset-inline:0;
    top:100%;
    background:var(--surface);
    border-block-end:1px solid var(--border);
    box-shadow:var(--shadow);
    padding:.75rem var(--gutter) 1.1rem;
    max-height:calc(100dvh - 84px);
    overflow-y:auto;
  }
  .mbu-header.is-open .mbu-nav{display:flex}
  .mbu-nav .mbu-btn{width:100%;margin-top:.6rem}
}
@media (max-width:400px){
  .mbu-header__cta{padding:.5rem .55rem;font-size:.875rem}
  .mbu-logo__img{max-width:min(36vw,104px)}
  .mbu-burger{width:40px;height:40px}
}

/* ============================================================
   HERO — home: mirror-split (visual LEFT, text RIGHT)
   ============================================================ */
.mbu-hero{position:relative}
.mbu-hero__img{
  display:block;
  width:100%;
  height:auto;
  max-height:70vh;
  aspect-ratio:3/2;
  object-fit:cover;
  border-radius:var(--r-lg);
}
.mbu-hero__inner{position:relative}
.mbu-hero__text,.mbu-hero__content{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:var(--sp-2);
  min-width:0;
}
.mbu-hero__media,.mbu-hero__visual{min-width:0}
.mbu-hero__media:empty,.mbu-hero__visual:empty{
  aspect-ratio:3/2;
  border-radius:var(--r-lg);
  background:linear-gradient(135deg,var(--navy-700),var(--blue-600) 55%,var(--blue-300));
}
.mbu-hero__actions{
  display:flex;
  flex-wrap:wrap;
  gap:var(--sp-1) var(--sp-2);
  align-items:center;
}

.mbu-hero--home{
  background:linear-gradient(180deg,var(--surface-tint),var(--bg));
  border-block-end:1px solid var(--border);
  padding-block:clamp(2.5rem,5.5vw,4.5rem);
}
.mbu-hero--home .mbu-hero__inner{
  display:grid;
  grid-template-columns:1fr;
  gap:clamp(1.75rem,4vw,3rem);
  align-items:center;
}
.mbu-hero--home .mbu-hero__inner>*{min-width:0}
.mbu-hero--home h1{font-size:clamp(2.1rem,4.6vw,3.35rem)}
.mbu-hero--home .mbu-hero__sub{font-size:clamp(1.05rem,1.5vw,1.2rem);color:var(--ink-2);margin:0;max-width:56ch}
@media (min-width:1180px){
  .mbu-hero--home .mbu-hero__inner{grid-template-columns:.92fr 1.08fr}
  .mbu-hero--home .mbu-hero__media,
  .mbu-hero--home .mbu-hero__visual,
  .mbu-hero--home .mbu-hero__inner>.mbu-hero__img{grid-column:1;grid-row:1}
  .mbu-hero--home .mbu-hero__text,
  .mbu-hero--home .mbu-hero__content{grid-column:2;grid-row:1}
}

/* inner pages: compact band ---------------------------------- */
.mbu-hero--inner,.mbu-page-header{
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg,var(--surface-tint),var(--surface));
  border-block-end:1px solid var(--border);
  border-end-start-radius:var(--r-lg);
  border-end-end-radius:var(--r-lg);
}
.mbu-hero--inner .mbu-hero__inner,
.mbu-page-header .mbu-hero__inner,
.mbu-page-header__inner{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:.7rem;
  min-height:190px;
  padding-block:clamp(1.6rem,3vw,2.4rem);
  padding-inline:max(var(--gutter),calc((100% - var(--wrap))/2 + var(--gutter)));
  max-width:none;
}
.mbu-hero--inner h1,.mbu-page-header h1{font-size:clamp(1.8rem,3.4vw,2.6rem);margin:0}
.mbu-hero--inner .mbu-hero__sub,.mbu-page-header .mbu-hero__sub{margin:0;color:var(--ink-2);max-width:62ch}
.mbu-hero--inner .mbu-hero__img,.mbu-page-header .mbu-hero__img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  max-height:none;
  aspect-ratio:auto;
  object-fit:cover;
  border-radius:0;
  z-index:0;
}
.mbu-hero--inner:has(.mbu-hero__img) .mbu-hero__inner::after,
.mbu-page-header:has(.mbu-hero__img) .mbu-hero__inner::after,
.mbu-page-header:has(.mbu-hero__img) .mbu-page-header__inner::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(90deg,rgba(2,34,68,.9) 0%,rgba(2,34,68,.74) 50%,rgba(2,34,68,.55) 100%);
}
/* lift EVERY non-background child above the photo */
:where(.mbu-hero--inner .mbu-hero__inner > :not(.mbu-hero__img)),
:where(.mbu-page-header .mbu-hero__inner > :not(.mbu-hero__img)),
:where(.mbu-page-header .mbu-page-header__inner > :not(.mbu-hero__img)){
  position:relative;
  z-index:2;
}
.mbu-hero--inner:has(.mbu-hero__img) h1,
.mbu-page-header:has(.mbu-hero__img) h1{color:#fff}
.mbu-hero--inner:has(.mbu-hero__img) .mbu-hero__sub,
.mbu-hero--inner:has(.mbu-hero__img) .mbu-breadcrumb,
.mbu-hero--inner:has(.mbu-hero__img) .mbu-breadcrumb a,
.mbu-page-header:has(.mbu-hero__img) .mbu-breadcrumb,
.mbu-page-header:has(.mbu-hero__img) .mbu-breadcrumb a,
.mbu-hero--inner:has(.mbu-hero__img) .mbu-fine,
.mbu-hero--inner:has(.mbu-hero__img) .mbu-date,
.mbu-page-header:has(.mbu-hero__img) .mbu-fine,
.mbu-page-header:has(.mbu-hero__img) .mbu-date,
.mbu-page-header:has(.mbu-hero__img) .mbu-hero__sub{color:#EAF1F9}
.mbu-hero--inner:has(.mbu-hero__img) .mbu-eyebrow,
.mbu-page-header:has(.mbu-hero__img) .mbu-eyebrow{color:#FFC9AE}

/* ---------- breadcrumb ---------- */
.mbu-breadcrumb{
  font-size:.85rem;
  color:var(--ink-3);
  margin:0;
}
.mbu-breadcrumb ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.35rem .55rem}
.mbu-breadcrumb li{display:flex;align-items:center;gap:.55rem}
.mbu-breadcrumb li+li::before{content:"/";color:currentColor;opacity:.55}
.mbu-breadcrumb a{color:inherit;text-decoration:none;border-bottom:1px solid var(--border)}
.mbu-breadcrumb a:hover{color:var(--blue-600)}

/* ---------- evidence chips (site signature) ---------- */
.mbu-tag{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.2rem .6rem;
  border-radius:var(--r-sm);
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  background:var(--surface-alt);
  color:var(--ink-2);
  border:1px solid var(--border);
}
.mbu-tag--ok{background:var(--ok-100);color:var(--ok);border-color:#CBE7B4}
.mbu-tag--attr{background:var(--attr-100);color:var(--attr);border-color:#EBD6A6}
.mbu-tag--unknown{background:var(--unknown-100);color:var(--unknown)}
.mbu-tag--warn{background:var(--warn-100);color:var(--warn);border-color:#F3C6C1}
.mbu-tag--dot::before{content:"";width:.5rem;height:.5rem;border-radius:50%;background:var(--ok-fill)}

/* ---------- overview / prose ---------- */
.mbu-overview,.mbu-prose{max-width:70ch}
.mbu-overview p,.mbu-prose p{margin-bottom:var(--sp-2)}
.mbu-prose ul,.mbu-prose ol{margin:0 0 var(--sp-2);padding-inline-start:1.35rem}
.mbu-prose li{margin-bottom:.5rem}

/* ---------- quick facts (top of every page) ---------- */
.mbu-quick-facts{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));
  gap:var(--sp-2);
  margin:0;
  padding:var(--sp-2);
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow-sm);
}
.mbu-quick-facts>*{min-width:0}
.mbu-quick-facts>*{
  padding-inline-start:.8rem;
  border-inline-start:2px solid var(--border);
}
.mbu-quick-facts dt{
  font-size:.74rem;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--ink-3);
  margin-bottom:.3rem;
}
.mbu-quick-facts dd{margin:0;color:var(--ink);font-weight:600}

/* ---------- feature cards (pattern: grid) ---------- */
.mbu-features{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));
  gap:var(--sp-2);
}
.mbu-features>*{min-width:0}
.mbu-feature{
  display:flex;
  flex-direction:column;
  gap:.65rem;
  padding:clamp(1.25rem,2.2vw,1.75rem);
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow-sm);
}
.mbu-feature .mbu-icon{width:2rem;height:2rem;color:var(--cta-hover)}
.mbu-feature h3{margin:0;font-size:1.15rem}
.mbu-feature p{margin:0;font-size:.98rem}

/* ---------- cards grid ---------- */
.mbu-cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));
  gap:var(--sp-2);
}
.mbu-cards>*{min-width:0}
.mbu-card{
  display:flex;
  flex-direction:column;
  gap:.7rem;
  padding:clamp(1.25rem,2.2vw,1.75rem);
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow-sm);
}
.mbu-card h3{margin:0}
.mbu-card p{margin:0}
.mbu-card__meta{font-family:var(--font-num);font-size:.82rem;color:var(--ink-3)}

/* ---------- stats bar (pattern: tiles) ---------- */
.mbu-stats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(170px,100%),1fr));
  gap:var(--sp-2);
}
.mbu-stats>*{min-width:0}
/* 4 tiles never fit in the rail-reduced content box → avoid the 3+1 orphan row */
@media (min-width:600px) and (max-width:1120px){
  .mbu-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.mbu-stat{
  display:flex;
  flex-direction:column;
  gap:.35rem;
  padding:1.35rem 1.25rem;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow-sm);
}
.mbu-stat__value{
  font-family:var(--font-num);
  font-variant-numeric:tabular-nums;
  font-size:clamp(1.5rem,3vw,2rem);
  font-weight:700;
  color:var(--navy-900);
  line-height:1.1;
}
.mbu-stat__label{
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--ink-3);
}

/* ---------- two columns + content panel ---------- */
.mbu-two-cols{
  display:grid;
  grid-template-columns:1fr;
  gap:clamp(1.5rem,3.5vw,2.75rem);
  align-items:start;
}
.mbu-two-cols>*{min-width:0}
@media (min-width:1180px){
  .mbu-two-cols{grid-template-columns:1.3fr .95fr}
}
.mbu-panel{
  display:flex;
  flex-direction:column;
  gap:var(--sp-2);
  padding:clamp(1.35rem,2.4vw,1.9rem);
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow);
  container-type:inline-size;
}
.mbu-panel__title{
  margin:0;
  font-family:var(--font-body);
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--blue-600);
}
.mbu-facts{margin:0;display:flex;flex-direction:column}
.mbu-facts__row{
  display:flex;
  flex-wrap:wrap;
  gap:.35rem 1rem;
  justify-content:space-between;
  padding-block:.7rem;
  border-block-end:1px solid var(--border);
}
.mbu-facts__row:last-child{border-block-end:0;padding-block-end:0}
.mbu-facts dt{color:var(--ink-3);font-size:.92rem}
.mbu-facts dd{margin:0;color:var(--ink);font-weight:600;text-align:start}
.mbu-facts__row:has(.mbu-num) dd{text-align:end}
/* узкая колонка панели: dt над dd, без рваного «коридора» по центру */
@container (max-width:380px){
  .mbu-facts__row{flex-direction:column;gap:.15rem}
  .mbu-facts__row dd,.mbu-facts__row:has(.mbu-num) dd{text-align:start}
}
.mbu-checklist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.7rem}
.mbu-checklist li{display:flex;gap:.65rem;align-items:flex-start;min-width:0}
.mbu-checklist .mbu-icon{width:1.25rem;height:1.25rem;margin-top:.28rem;color:var(--ok)}
.mbu-tiles{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(120px,100%),1fr));
  gap:.75rem;
}
.mbu-tiles>*{min-width:0}
.mbu-tile{
  padding:.9rem;
  background:var(--surface-alt);
  border-radius:var(--r);
}
.mbu-tile b{display:block;font-family:var(--font-num);font-size:1.2rem;color:var(--navy-900)}
.mbu-tile span{font-size:.76rem;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
.mbu-score{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}
.mbu-score__value{font-family:var(--font-num);font-size:2.1rem;font-weight:700;color:var(--navy-900);line-height:1}
.mbu-score__stars{display:inline-flex;gap:.15rem;color:var(--ok-fill)}
.mbu-score__label{font-size:.85rem;color:var(--ink-3)}

/* ---------- numbered list (real sequences only) ---------- */
.mbu-steps{
  counter-reset:mbu-step;
  list-style:none;
  margin:0 0 var(--sp-2);
  padding:0;
  display:flex;
  flex-direction:column;
  gap:var(--sp-2);
}
.mbu-steps>li{
  counter-increment:mbu-step;
  position:relative;
  min-width:0;
  padding-inline-start:3.1rem;
}
.mbu-steps>li::before{
  content:counter(mbu-step,decimal-leading-zero);
  position:absolute;
  inset-inline-start:0;
  inset-block-start:.12rem;
  font-family:var(--font-num);
  font-size:.9rem;
  font-weight:700;
  color:var(--cta-hover);
  padding-inline-start:.7rem;
  border-inline-start:2px solid var(--cta);
}
.mbu-steps>li h3{margin-bottom:.3rem}

/* ---------- tables ---------- */
.mbu-table-wrap{
  overflow-x:auto;
  max-width:100%;
  margin-block:1.5rem;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
}
.mbu-table-wrap table,.mbu-table{
  width:100%;
  border-collapse:collapse;
  font-size:.98rem;
}
.mbu-table-wrap th,.mbu-table th{
  white-space:nowrap;
  text-align:start;
  padding:.85rem 1rem;
  background:var(--surface-alt);
  color:var(--navy-900);
  font-size:.76rem;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  border-block-end:1px solid var(--border);
}
.mbu-table-wrap td,.mbu-table td{
  padding:.9rem 1rem;
  border-block-end:1px solid var(--border);
  vertical-align:top;
}
.mbu-table-wrap tr:last-child td,.mbu-table tr:last-child td{border-block-end:0}
.mbu-table-wrap tbody tr:hover{background:#F7FAFD}
.mbu-table caption{
  caption-side:bottom;
  padding:.8rem 1rem;
  font-size:.82rem;
  color:var(--ink-3);
  text-align:start;
}

/* bonus + payments tables share the base table look */
.mbu-bonus-table td:first-child,.mbu-payments-table td:first-child{color:var(--ink);font-weight:600}
.mbu-payments-table .mbu-icon{color:var(--navy-700);margin-inline-end:.5rem}

/* payments strip */
.mbu-payments-strip{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
  padding:0;
  margin:0;
  list-style:none;
}
.mbu-payments-strip li{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.5rem .85rem;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r);
  font-size:.9rem;
  font-weight:600;
  color:var(--ink-2);
}
.mbu-payments-strip .mbu-icon{width:1.15rem;height:1.15rem}

/* ---------- categories bar (pills) ---------- */
.mbu-categories{
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
  list-style:none;
  margin:0;
  padding:0;
}
.mbu-categories a,.mbu-categories li>span{
  display:inline-block;
  padding:.45rem .9rem;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--ink-2);
  font-size:.9rem;
  font-weight:600;
  text-decoration:none;
}
.mbu-categories a:hover{border-color:var(--blue-300);color:var(--navy-700);background:var(--surface-tint)}

/* ---------- pros & cons (never red) ---------- */
.mbu-pros-cons{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));
  gap:var(--sp-2);
}
.mbu-pros-cons>*{min-width:0}
.mbu-pros,.mbu-cons{
  padding:clamp(1.2rem,2.2vw,1.6rem);
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
}
.mbu-pros{border-block-start:3px solid var(--ok-fill)}
.mbu-cons{border-block-start:3px solid var(--unknown)}
.mbu-pros ul,.mbu-cons ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.6rem}
.mbu-pros li,.mbu-cons li{display:flex;gap:.6rem;align-items:flex-start;min-width:0}
.mbu-pros .mbu-icon{color:var(--ok)}
.mbu-cons .mbu-icon{color:var(--unknown)}

/* ---------- verdict box ---------- */
.mbu-verdict{
  display:flex;
  flex-direction:column;
  gap:var(--sp-1);
  padding:clamp(1.35rem,2.6vw,2rem);
  background:var(--surface);
  border:1px solid var(--border);
  border-inline-start:4px solid var(--navy-700);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow-sm);
}
.mbu-verdict h2,.mbu-verdict h3{margin:0}
.mbu-verdict p{max-width:70ch}
.mbu-verdict__date{font-family:var(--font-num);font-size:.82rem;color:var(--ink-3)}

/* ---------- methodology / support blocks ---------- */
.mbu-methodology,.mbu-support{
  display:flex;
  flex-direction:column;
  gap:var(--sp-1);
  padding:clamp(1.25rem,2.4vw,1.8rem);
  background:var(--surface-alt);
  border-radius:var(--r-lg);
}
.mbu-support ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.55rem}
.mbu-support li{display:flex;gap:.6rem;align-items:center;min-width:0}

/* ---------- table of contents ---------- */
.mbu-toc{
  padding:clamp(1.15rem,2.2vw,1.6rem);
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
}
.mbu-toc__title{
  font-size:.76rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink-3);
  margin:0 0 .8rem;
}
.mbu-toc ol,.mbu-toc ul{
  list-style:none;
  margin:0;padding:0;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));
  gap:.5rem 1.5rem;
}
.mbu-toc li{min-width:0}
.mbu-toc a{
  text-decoration:none;
  color:var(--ink-2);
  border-block-end:1px solid transparent;
  font-weight:600;
}
.mbu-toc a:hover{color:var(--blue-600);border-block-end-color:var(--blue-300)}

/* ---------- FAQ (pattern: single column) ---------- */
.mbu-faq{display:flex;flex-direction:column}
.mbu-faq details{border-top:1px solid var(--border)}
.mbu-faq details:last-child{border-bottom:1px solid var(--border)}
.mbu-faq summary,summary.mbu-faq__q{
  cursor:pointer;
  padding:1rem 0;
  font-weight:600;
  list-style:none;
  color:var(--navy-900);
  font-family:var(--font-head);
  font-size:1.1rem;
}
.mbu-faq summary::-webkit-details-marker{display:none}
.mbu-faq summary::before{
  content:'+';
  display:inline-block;
  width:1em;
  margin-right:.5rem;
  color:var(--cta-hover);
  font-family:var(--font-num);
}
.mbu-faq details[open] summary::before{content:'−'}
.mbu-faq details>:not(summary){padding:.5rem 0 1rem}

/* ---------- rtp / game tiles ---------- */
.mbu-rtp{
  display:grid;
  gap:clamp(.6rem,1.5vw,1rem);
  grid-template-columns:repeat(2,minmax(0,1fr));
}
@media (min-width:640px){.mbu-rtp{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:960px){.mbu-rtp{grid-template-columns:repeat(4,minmax(0,1fr))}}
.mbu-rtp-item{
  position:relative;
  overflow:hidden;
  min-width:0;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
}
.mbu-rtp-item__thumb{
  display:block;
  aspect-ratio:3/2;
  position:relative;
  background:linear-gradient(135deg,var(--navy-700),var(--blue-600));
}
.mbu-rtp-item__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.mbu-rtp-item__name{
  display:block;
  padding:.6rem .75rem;
  font-size:.9rem;
  font-weight:600;
  color:var(--ink);
}
.mbu-rtp-item__prov{display:block;padding:0 .75rem .7rem;font-size:.78rem;color:var(--ink-3)}
.mbu-rtp-tooltip{
  position:absolute;
  bottom:0;
  inset-inline:0;
  opacity:0;
  transition:opacity .2s;
  padding:.55rem .75rem;
  background:rgba(2,34,68,.92);
  color:#fff;
  font-size:.82rem;
}
.mbu-rtp-item:hover .mbu-rtp-tooltip,
.mbu-rtp-item:focus-within .mbu-rtp-tooltip{opacity:1}

/* ---------- CTA block ---------- */
.mbu-cta-block{
  padding-block:var(--sec-pad);
  background:linear-gradient(135deg,var(--navy-900),var(--navy-700) 60%,var(--blue-600));
  color:#E7EEF7;
  text-align:center;
}
.mbu-cta-block__inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:var(--sp-2);
}
.mbu-cta-block h2,.mbu-cta-block h3{color:#fff;margin:0}
.mbu-cta-block p{margin:0;max-width:none}
.mbu-cta-block .mbu-eyebrow{color:#FFC9AE;margin:0}
.mbu-cta-block__actions{
  display:flex;
  flex-wrap:wrap;
  gap:var(--sp-1) var(--sp-2);
  justify-content:center;
}
.mbu-cta-block .mbu-fine{color:#B9C8D8}
.mbu-cta-block .mbu-btn--ghost{color:#fff;border-color:rgba(255,255,255,.45)}
.mbu-cta-block .mbu-btn--ghost:hover{background:rgba(255,255,255,.1);color:#fff}

/* ---------- legal body ---------- */
.mbu-legal{counter-reset:mbu-leg}
.mbu-legal h2{counter-increment:mbu-leg;margin-block:var(--sp-3) var(--sp-1)}
.mbu-legal h2:first-child{margin-block-start:0}
.mbu-legal h2::before{
  content:counter(mbu-leg) ". ";
  font-family:var(--font-num);
  font-size:.8em;
  color:var(--ink-3);
}
.mbu-legal h3{margin-block:var(--sp-2) .4rem}
.mbu-legal ul,.mbu-legal ol{padding-inline-start:1.35rem;margin:0 0 var(--sp-2)}
.mbu-legal li{margin-bottom:.5rem}
.mbu-legal p,.mbu-legal li{max-width:70ch}
.mbu-legal h2{font-size:clamp(1.25rem,1.9vw,1.55rem)}

/* ---------- sticky bottom nav (mobile) ---------- */
.mbu-sticky-nav{display:none}
@media (max-width:767px){
  body:has(.mbu-sticky-nav){padding-block-end:66px}
  .mbu-sticky-nav{
    display:flex;
    position:fixed;
    inset-inline:0;
    inset-block-end:0;
    z-index:80;
    background:var(--surface);
    border-block-start:1px solid var(--border);
    box-shadow:0 -8px 24px -18px rgba(2,34,68,.6);
  }
  .mbu-sticky-nav a{
    flex:1 1 0;
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:.15rem;
    padding:.5rem .25rem;
    font-size:.7rem;
    font-weight:600;
    color:var(--ink-2);
    text-decoration:none;
  }
  .mbu-sticky-nav .mbu-icon{width:1.25rem;height:1.25rem}
  .mbu-sticky-nav a.mbu-btn{background:var(--cta-hover);color:#fff;border-radius:0;min-height:0}
}

/* ---------- chat widget ---------- */
.mbu-chat-btn{
  position:fixed;
  inset-block-end:1.1rem;
  inset-inline-end:1.1rem;
  z-index:90;
  width:54px;height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:var(--r-lg);
  background:var(--navy-700);
  color:#fff;
  cursor:pointer;
  box-shadow:var(--shadow);
}
.mbu-chat-btn .mbu-icon{color:#fff}
.mbu-chat{
  position:fixed;
  inset:0;
  z-index:95;
  display:none;
  align-items:center;
  justify-content:center;
  padding:1rem;
  background:rgba(2,34,68,.55);
}
.mbu-chat.is-open{display:flex}
.mbu-chat__dialog{
  width:min(420px,100%);
  max-height:80vh;
  overflow-y:auto;
  display:flex;
  flex-direction:column;
  gap:var(--sp-1);
  padding:clamp(1.2rem,2.4vw,1.7rem);
  background:var(--surface);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow);
}
@media (max-width:767px){.mbu-chat-btn{inset-block-end:78px}}

/* ============================================================
   FOOTER — light surface (dark logo)
   ============================================================ */
.mbu-footer{
  background:var(--surface);
  border-block-start:1px solid var(--border);
  color:var(--ink-2);
}
.mbu-footer__top{
  display:grid;
  grid-template-columns:1fr;
  gap:clamp(1.75rem,3.5vw,2.75rem);
  padding-block:clamp(2.5rem,5vw,3.75rem);
}
.mbu-footer__top>*{min-width:0}
@media (min-width:760px){
  .mbu-footer__top{grid-template-columns:1.5fr 1fr 1fr}
}
.mbu-footer__brand{display:flex;flex-direction:column;gap:var(--sp-1);align-items:flex-start}
.mbu-footer__brand p{margin:0;font-size:.95rem}
.mbu-footer__title{
  margin:0 0 .85rem;
  font-family:var(--font-body);
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink-3);
}
.mbu-footer__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem}
.mbu-footer__list a{color:var(--ink-2);text-decoration:none;font-size:.97rem}
.mbu-footer__list a:hover{color:var(--blue-600)}
.mbu-footer__contact{font-family:var(--font-num);font-size:.9rem}
.mbu-footer__note{
  display:flex;
  flex-direction:column;
  gap:.8rem;
  padding-block:var(--sp-2);
  border-block-start:1px solid var(--border);
}
.mbu-footer__note p{margin:0;font-size:.85rem;line-height:1.65;color:var(--ink-3)}
.mbu-footer__age{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  align-self:flex-start;
  padding:.28rem .7rem;
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  font-family:var(--font-num);
  font-size:.8rem;
  font-weight:700;
  color:var(--navy-900);
}
.mbu-footer__bottom{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem 1.25rem;
  justify-content:space-between;
  align-items:center;
  padding-block:var(--sp-2);
  border-block-start:1px solid var(--border);
  font-size:.85rem;
  color:var(--ink-3);
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}
/* sa-responsive-net */
table th{white-space:nowrap}
figure,blockquote,dl,dd,fieldset{margin:0}
/* sa-logo-chip */
.mbu-footer .mbu-logo__img{filter:none;background:transparent;padding:0}
.mbu-footer .mbu-footer__logo-chip{background:transparent;padding:0}
/* sa-logo-fit */
.mbu-logo__img{object-fit:contain}
/* sa-ph-media */
.mbu-page-header:has(.mbu-hero__img){position:relative;overflow:hidden;isolation:isolate;min-height:clamp(200px,30vh,300px);display:flex;flex-direction:column;justify-content:center}
.mbu-page-header:has(.mbu-hero__img) .mbu-hero__img{position:absolute;inset:0;width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:cover;margin:0;z-index:0}
.mbu-page-header:has(.mbu-hero__img)::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(10,12,18,.72),rgba(10,12,18,.5))}
:where(.mbu-page-header:has(.mbu-hero__img)>:not(.mbu-hero__img)){position:relative}
.mbu-page-header:has(.mbu-hero__img)>:not(.mbu-hero__img){z-index:2}
.mbu-page-header:has(.mbu-hero__img),.mbu-page-header:has(.mbu-hero__img) h1,.mbu-page-header:has(.mbu-hero__img) a,.mbu-page-header:has(.mbu-hero__img) p,.mbu-page-header:has(.mbu-hero__img) li,.mbu-page-header:has(.mbu-hero__img) span{color:#fff}
/* sa-hero-media */
.mbu-hero:has(>.mbu-hero__img){position:relative;isolation:isolate}
.mbu-hero:has(>.mbu-hero__img)>.mbu-hero__img{z-index:0}
.mbu-hero:has(>.mbu-hero__img)::after{z-index:1}
:where(.mbu-hero:has(>.mbu-hero__img)>:not(.mbu-hero__img)){position:relative}
.mbu-hero:has(>.mbu-hero__img)>:not(.mbu-hero__img){z-index:2}
/* sa-rhythm */
:where(.mbu-table-wrap){margin-block:1.5rem}
:where(main) :where(ul,ol,table,.mbu-table-wrap)+p{margin-block-start:1rem}
/* sa-slot-link */
.mbu-rtp-item,.mbu-rtp-item:hover,.mbu-rtp-item:focus{color:inherit;text-decoration:none;cursor:pointer}
/* sa-rtp-touch */
.mbu-rtp-item__thumb{display:block}
@media (hover:none){.mbu-rtp-item__thumb{aspect-ratio:auto;overflow:visible}.mbu-rtp-item__thumb img{height:auto}.mbu-rtp-tooltip{position:static;opacity:1;background:transparent;border-top:0;padding:.4rem .7rem 0;font-size:.74rem;line-height:1.35}.mbu-rtp-item__name{padding-top:.35rem}}
/* sa-sticky-pad */

/* ---------- rhythm: fine print must never touch the block above it ---------- */
:where(main) :where(dl,.mbu-cards,.mbu-features,.mbu-stats,.mbu-two-cols,.mbu-pros-cons,.mbu-payments-strip,.mbu-categories,.mbu-methodology,.mbu-toc,.mbu-collapse)+p{
  margin-block-start:1.25rem;
}
.mbu-section .mbu-toc{margin-block-start:var(--sp-3)}

/* ---------- CTA + fine print outside the hero: stack, never centre-glue ---------- */
.mbu-section .mbu-hero__actions{
  flex-direction:column;
  align-items:flex-start;
  gap:.9rem;
}
.mbu-section .mbu-hero__actions .mbu-fine{max-width:70ch}

/* ---------- evidence chips: never a container for a whole sentence ---------- */
.mbu-tag{max-width:100%;margin-inline-end:.5rem;margin-block-end:.15rem}
.mbu-table .mbu-tag{margin-block-end:0}

/* ---------- inert pills must not look tappable (only <a> keeps the pill) ---------- */
.mbu-categories li>span{
  border-radius:var(--r-sm);
  border-color:transparent;
  background:var(--surface-alt);
  font-weight:600;
}
.mbu-collapse>summary{
  cursor:pointer;
  padding:.7rem 0;
  font-weight:700;
  font-size:.95rem;
  color:var(--blue-600);
  list-style:none;
}
.mbu-collapse>summary::-webkit-details-marker{display:none}
.mbu-collapse>summary::before{content:'+ ';font-family:var(--font-num)}
.mbu-collapse[open]>summary::before{content:'− '}

/* ---------- final CTA block: centred headline, readable paragraphs ---------- */
.mbu-cta-block p{max-width:62ch;margin-inline:auto}

/* ---------- touch targets ---------- */
.mbu-footer__list{gap:.1rem}
.mbu-footer__list a{display:block;padding-block:.55rem}
.mbu-breadcrumb li{padding-block:.3rem}
.mbu-card{position:relative}
.mbu-card__meta{font-family:var(--font-body);font-size:.9rem}
.mbu-card__meta a{font-weight:600;text-decoration:none}
.mbu-card__meta a::after{content:"";position:absolute;inset:0}
.mbu-card:has(.mbu-card__meta a):hover{border-color:var(--blue-300)}

/* ---------- tables on narrow screens ---------- */
.mbu-table-wrap td,.mbu-table td{overflow-wrap:break-word}
@media (max-width:600px){
  .mbu-table-wrap th,.mbu-table th{padding:.7rem .6rem}
  .mbu-table-wrap td,.mbu-table td{padding:.7rem .6rem}
}
/* scroll affordance: shadows appear only while there is more table to scroll to */
.mbu-table-wrap{
  background:
    linear-gradient(to right,var(--surface) 40%,rgba(255,255,255,0)) left center/32px 100% no-repeat local,
    linear-gradient(to left,var(--surface) 40%,rgba(255,255,255,0)) right center/32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%,rgba(2,34,68,.16),rgba(2,34,68,0)) left center/14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%,rgba(2,34,68,.16),rgba(2,34,68,0)) right center/14px 100% no-repeat scroll,
    var(--surface);
}

/* ---------- micro-labels: readable on phones ---------- */
@media (max-width:600px){
  .mbu-eyebrow{font-size:.8rem;letter-spacing:.1em}
  .mbu-quick-facts dt{font-size:.8rem;letter-spacing:.08em}
  .mbu-stat__label,.mbu-tag,.mbu-panel__title,.mbu-footer__title,.mbu-toc__title,.mbu-tile span{
    font-size:.82rem;
    letter-spacing:.07em;
  }
  .mbu-table-wrap th,.mbu-table th{font-size:.82rem;letter-spacing:.06em}
  .mbu-card__meta,.mbu-rtp-item__prov{font-size:.9rem}
}

/* ---------- inner hero on phones: shorter dark band, better crop ---------- */
@media (max-width:600px){
  .mbu-hero--inner .mbu-hero__img{object-position:center 35%}
  .mbu-hero--inner .mbu-hero__inner{gap:.5rem;min-height:0}
  .mbu-hero--inner .mbu-hero__sub{font-size:.98rem;line-height:1.55}
  .mbu-hero--inner h1{font-size:clamp(1.6rem,7vw,2rem)}
}

/* ---------- back-to-top: site palette (JS injects --accent fallback #e63950) ---------- */
body .mbu-back-top{background:var(--cta);color:var(--cta-ink)}
body .mbu-back-top:hover{background:var(--cta-hover)}

/* ---------- skip link ---------- */
.mbu-skip{
  position:absolute;
  left:-9999px;
  top:0;
  z-index:200;
  padding:.7rem 1.1rem;
  background:var(--surface);
  color:var(--blue-600);
  font-weight:700;
  border:1px solid var(--border);
  border-radius:var(--r);
}
.mbu-skip:focus{left:.5rem;top:.5rem}
