/* Theme tokens and shell typography */
body.mb-site,
.mb-site-header,
.mb-page-strip,
.mb-site-footer,
.mb-site-drawer,
.mb-article,
.mbpk-article,
.mbpk-page .mb-article {
  --mb-font: "Inter", "Noto Sans", "Noto Sans Tajik", "Segoe UI", Arial, sans-serif;
  --mb-container: 1120px;
  --mb-page-gutter: clamp(14px, 3vw, 32px);
  --mb-gutter: clamp(18px, 3vw, 34px);

  --mb-bg: #020918;
  --mb-bg-2: #06142a;
  --mb-bg-3: #092244;
  --mb-panel: rgba(8, 20, 42, 0.92);
  --mb-panel-2: rgba(11, 31, 60, 0.88);
  --mb-panel-3: rgba(14, 43, 78, 0.74);

  --mb-primary: #ff6a22;
  --mb-primary-2: #ff9d26;
  --mb-gold: #f8c84b;
  --mb-gold-2: #fff0a8;
  --mb-teal: #13cfff;
  --mb-red: #ff384f;
  --mb-purple: #9464ff;

  --mb-text: #f7fbff;
  --mb-text-soft: #d9e7f5;
  --mb-muted: #a8bbcf;
  --mb-muted-2: #7f96ad;

  --mb-border: rgba(48, 207, 255, 0.22);
  --mb-border-strong: rgba(248, 200, 75, 0.48);
  --mb-line: rgba(255, 255, 255, 0.12);
  --mb-line-strong: rgba(255, 255, 255, 0.24);

  --mb-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --mb-shadow-glow: 0 0 34px rgba(19, 207, 255, 0.20), 0 18px 48px rgba(0, 0, 0, 0.36);
  --mb-shadow-warm: 0 0 30px rgba(255, 106, 34, 0.32), 0 16px 42px rgba(0, 0, 0, 0.34);

  --mb-radius-sm: 12px;
  --mb-radius: 18px;
  --mb-radius-lg: 26px;
  --mb-radius-xl: 34px;

  --mb-section-gap: clamp(28px, 5vw, 58px);
  --mb-card-gap: clamp(16px, 2.4vw, 26px);
}

/* Page-wide shell background */
body.mb-site {
  margin: 0;
  font-family: var(--mb-font);
  color: var(--mb-text);
  background:
    radial-gradient(circle at 16% 10%, rgba(19, 207, 255, 0.22), transparent 34%),
    radial-gradient(circle at 86% 8%, rgba(255, 157, 38, 0.20), transparent 30%),
    radial-gradient(circle at 72% 78%, rgba(148, 100, 255, 0.13), transparent 34%),
    linear-gradient(180deg, #020918 0%, #041125 42%, #020918 100%);
  text-align: start;
  direction: ltr;
}

.mb-site-header,
.mb-page-strip,
.mb-site-footer,
.mb-site-drawer {
  font-family: var(--mb-font);
  color: var(--mb-text);
  direction: ltr;
  text-align: start;
}

.mb-site-header,
.mb-site-header *,
.mb-site-header *::before,
.mb-site-header *::after,
.mb-page-strip,
.mb-page-strip *,
.mb-page-strip *::before,
.mb-page-strip *::after,
.mb-site-footer,
.mb-site-footer *,
.mb-site-footer *::before,
.mb-site-footer *::after,
.mb-site-drawer,
.mb-site-drawer *,
.mb-site-drawer *::before,
.mb-site-drawer *::after,
.mb-article,
.mb-article *,
.mb-article *::before,
.mb-article *::after,
.mbpk-article,
.mbpk-article *,
.mbpk-article *::before,
.mbpk-article *::after {
  box-sizing: border-box;
}

/* Header and top navigation */
.mb-site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  width: 100%;
  border-bottom: 1px solid rgba(19, 207, 255, 0.18);
  background: linear-gradient(180deg, rgba(3, 12, 28, 0.88), rgba(3, 12, 28, 0.70));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mb-topbar {
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.14);
  color: var(--mb-muted);
  font-size: 0.86rem;
}

.mb-topbar__inner,
.mb-site-header__inner,
.mb-page-strip__inner,
.mb-site-footer__inner {
  width: 100%;
  max-width: var(--mb-container);
  margin-inline: auto;
  padding-inline: var(--mb-page-gutter);
}

.mb-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding-block: 7px;
}

.mb-site-header__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 2vw, 20px);
  min-width: 0;
  padding-block: clamp(10px, 1.8vw, 16px);
}

.mb-site-brand {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mb-text);
  text-decoration: none;
}

.mb-site-brand__logo,
.mb-site-brand__logo img {
  display: block;
  max-height: clamp(26px, 7.5vw, 40px);
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  aspect-ratio: 800 / 128;
}

.mb-site-brand__name {
  min-width: 0;
  overflow: hidden;
  color: var(--mb-text);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mb-site-nav {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.mb-site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
  scrollbar-width: none;
}

.mb-site-nav__list::-webkit-scrollbar {
  display: none;
}

.mb-site-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  padding: 8px 13px;
  border: 1px solid rgba(19, 207, 255, 0.18);
  border-radius: 999px;
  color: var(--mb-text-soft);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.15;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.mb-site-nav__link:hover,
.mb-site-nav__link:focus-visible,
.mb-site-nav__link[aria-current="page"] {
  color: #071120;
  border-color: rgba(248, 200, 75, 0.78);
  background: linear-gradient(135deg, var(--mb-gold), var(--mb-primary-2));
  transform: translateY(-1px);
}

.mb-site-header__actions {
  flex: 0 0 auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.mb-site-btn,
.mb-site-burger {
  flex: 0 0 auto;
}

.mb-site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  min-height: 36px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 157, 38, 0.70);
  border-radius: 999px;
  color: #061020;
  background: linear-gradient(135deg, var(--mb-primary-2), var(--mb-primary));
  box-shadow: 0 0 20px rgba(255, 106, 34, 0.28);
  font-size: clamp(0.78rem, 2.5vw, 0.92rem);
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  white-space: normal;
}

.mb-site-btn:hover,
.mb-site-btn:focus-visible {
  color: #061020;
  background: linear-gradient(135deg, var(--mb-gold), var(--mb-primary));
}

.mb-site-btn--apk {
  color: var(--mb-text);
  border-color: rgba(19, 207, 255, 0.45);
  background: rgba(19, 207, 255, 0.10);
  box-shadow: none;
}

.mb-site-btn--apk:hover,
.mb-site-btn--apk:focus-visible {
  color: var(--mb-text);
  background: rgba(19, 207, 255, 0.18);
}

/* Off-canvas drawer base sizing and colors */
.mb-site-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 100;
  color: var(--mb-text);
  background: rgba(1, 8, 20, 0.70);
}

.mb-site-drawer__panel {
  height: 100%;
  min-height: 100dvh;
  color: var(--mb-text);
  background:
    radial-gradient(circle at 15% 0%, rgba(19, 207, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(6, 20, 42, 0.98), rgba(2, 9, 24, 0.98));
  border-inline-start: 1px solid rgba(19, 207, 255, 0.18);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.mb-site-drawer__panel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.mb-site-drawer__link {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--mb-text-soft);
  background: rgba(255, 255, 255, 0.045);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mb-site-drawer__link:hover,
.mb-site-drawer__link:focus-visible {
  color: #061020;
  background: linear-gradient(135deg, var(--mb-gold), var(--mb-primary-2));
}

.mb-site-drawer__cta,
.mb-site-drawer__cta--apk {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  white-space: normal;
}

.mb-site-drawer__cta {
  color: #061020;
  background: linear-gradient(135deg, var(--mb-primary-2), var(--mb-primary));
  font-weight: 900;
}

.mb-site-drawer__cta--apk {
  color: var(--mb-text);
  border: 1px solid rgba(19, 207, 255, 0.45);
  background: rgba(19, 207, 255, 0.10);
}

/* Breadcrumb strip */
.mb-page-strip {
  width: 100%;
  border-bottom: 1px solid rgba(19, 207, 255, 0.12);
  background: rgba(2, 9, 24, 0.72);
}

.mb-page-strip__inner {
  padding-block: 8px;
}

.mb-breadcrumbs,
.mb-page-strip__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
  color: var(--mb-muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.mb-breadcrumbs a,
.mb-page-strip__breadcrumbs a {
  color: var(--mb-text-soft);
  text-decoration: none;
}

.mb-breadcrumbs a:hover,
.mb-page-strip__breadcrumbs a:hover {
  color: var(--mb-gold);
}

/* Footer */
.mb-site-footer {
  width: 100%;
  margin-block-start: clamp(34px, 6vw, 72px);
  border-top: 1px solid rgba(19, 207, 255, 0.18);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 106, 34, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(4, 16, 36, 0.92), rgba(2, 9, 24, 0.98));
}

.mb-site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: start;
  padding-block: clamp(28px, 5vw, 48px);
}

.mb-site-footer__brand,
.mb-site-footer__copy {
  min-width: 0;
  max-width: 100%;
}

.mb-site-footer__copy {
  color: var(--mb-muted);
  line-height: 1.65;
}

.mb-footer-nav {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.mb-footer-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mb-footer-nav__list > li {
  flex: 1 1 auto;
  min-width: min(100%, 138px);
  max-width: 100%;
}

.mb-footer-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid rgba(19, 207, 255, 0.18);
  border-radius: 999px;
  color: var(--mb-text-soft);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.18;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mb-footer-nav__link:hover,
.mb-footer-nav__link:focus-visible {
  color: #061020;
  border-color: rgba(248, 200, 75, 0.72);
  background: linear-gradient(135deg, var(--mb-gold), var(--mb-primary-2));
}

/* Article root */
.mb-article,
.mbpk-article,
.mbpk-page .mb-article {
  width: min(100%, calc(var(--mb-container) + (2 * var(--mb-gutter))));
  max-width: 100%;
  margin-inline: auto;
  padding: clamp(18px, 3vw, 30px) var(--mb-gutter) clamp(34px, 5vw, 58px);
  border: 1px solid rgba(19, 207, 255, 0.14);
  border-radius: clamp(0px, 2vw, 30px);
  color: var(--mb-text);
  background:
    radial-gradient(circle at 12% 3%, rgba(19, 207, 255, 0.16), transparent 30%),
    radial-gradient(circle at 96% 8%, rgba(255, 106, 34, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(5, 18, 39, 0.96) 0%, rgba(4, 14, 31, 0.98) 100%);
  box-shadow: var(--mb-shadow);
  font-family: var(--mb-font);
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.72;
  text-align: start;
  direction: ltr;
  overflow-wrap: break-word;
}

.mb-article__inner {
  width: 100%;
  max-width: var(--mb-container);
  margin-inline: auto;
  min-width: 0;
}

.mb-article :is(img, svg, video, canvas, iframe),
.mbpk-article :is(img, svg, video, canvas, iframe),
.mbpk-page .mb-article :is(img, svg, video, canvas, iframe) {
  max-width: 100%;
}

.mb-article :is(img, video),
.mbpk-article :is(img, video),
.mbpk-page .mb-article :is(img, video) {
  height: auto;
}

.mb-article :is(.mb-row, .mb-copy, .mb-media, .mb-hero, .mb-hero__copy, .mb-hero__media, .mb-cta, .mb-grid, .mb-slot-grid, .mb-card, .mb-card__body, .mb-card__media, .mb-table-wrap, .mb-faq),
.mbpk-article :is(.mb-row, .mb-copy, .mb-media, .mb-hero, .mb-hero__copy, .mb-hero__media, .mb-cta, .mb-grid, .mb-slot-grid, .mb-card, .mb-card__body, .mb-card__media, .mb-table-wrap, .mb-faq),
.mbpk-page .mb-article :is(.mb-row, .mb-copy, .mb-media, .mb-hero, .mb-hero__copy, .mb-hero__media, .mb-cta, .mb-grid, .mb-slot-grid, .mb-card, .mb-card__body, .mb-card__media, .mb-table-wrap, .mb-faq) {
  min-width: 0;
  max-width: 100%;
}

/* Typography */
.mb-article :is(h1, h2, h3, h4, h5, h6),
.mbpk-article :is(h1, h2, h3, h4, h5, h6),
.mbpk-page .mb-article :is(h1, h2, h3, h4, h5, h6) {
  margin-block-start: 0;
  margin-block-end: 0.65em;
  color: var(--mb-text);
  font-family: var(--mb-font);
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.mb-article h1,
.mbpk-article h1,
.mbpk-page .mb-article h1 {
  font-size: clamp(2rem, 6vw, 4.25rem);
}

.mb-article h2,
.mbpk-article h2,
.mbpk-page .mb-article h2 {
  font-size: clamp(1.55rem, 3.8vw, 2.7rem);
}

.mb-article h3,
.mbpk-article h3,
.mbpk-page .mb-article h3 {
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
}

.mb-article h4,
.mbpk-article h4,
.mbpk-page .mb-article h4 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.mb-article h5,
.mb-article h6,
.mbpk-article h5,
.mbpk-article h6,
.mbpk-page .mb-article h5,
.mbpk-page .mb-article h6 {
  font-size: 1rem;
}

.mb-article p,
.mbpk-article p,
.mbpk-page .mb-article p {
  max-width: 100%;
  margin-block-start: 0;
  margin-block-end: 1em;
  color: var(--mb-text-soft);
}

.mb-article p:last-child,
.mbpk-article p:last-child,
.mbpk-page .mb-article p:last-child {
  margin-block-end: 0;
}

.mb-copy,
.mb-hero__copy,
.mb-cta__copy,
.mb-card__copy,
.mb-article ul,
.mb-article ol,
.mbpk-article ul,
.mbpk-article ol,
.mbpk-page .mb-article ul,
.mbpk-page .mb-article ol {
  max-width: 100%;
  margin-inline: 0;
}

.mb-measure {
  max-width: min(72ch, 100%);
  margin-inline: auto;
}

.mb-article a,
.mbpk-article a,
.mbpk-page .mb-article a {
  color: var(--mb-teal);
  text-decoration-color: rgba(19, 207, 255, 0.45);
  text-underline-offset: 0.18em;
}

.mb-article a:hover,
.mbpk-article a:hover,
.mbpk-page .mb-article a:hover {
  color: var(--mb-gold);
  text-decoration-color: rgba(248, 200, 75, 0.70);
}

.mb-kicker,
.mb-eyebrow,
.mb-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-block-end: 12px;
  padding: 7px 12px;
  border: 1px solid rgba(19, 207, 255, 0.34);
  border-radius: 999px;
  color: var(--mb-gold-2);
  background: rgba(19, 207, 255, 0.08);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.mb-note {
  color: var(--mb-muted);
  font-size: 0.94rem;
  line-height: 1.62;
}

/* Hero */
.mb-article .mb-hero,
.mbpk-article .mb-hero,
.mbpk-page .mb-article .mb-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "media"
    "cta"
    "copy";
  gap: clamp(16px, 3vw, 28px);
  width: 100%;
  max-width: var(--mb-container);
  margin-inline: auto;
  margin-block-end: var(--mb-section-gap);
  padding-inline: 0;
  padding-block-start: 0;
  padding-block-end: clamp(14px, 2vw, 22px);
  align-items: start;
}

.mb-hero__media {
  grid-area: media;
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid rgba(19, 207, 255, 0.28);
  border-radius: var(--mb-radius-xl);
  background: #06142a;
  box-shadow: var(--mb-shadow-glow);
  overflow: clip;
  cursor: pointer;
}

.mb-hero__media img,
.mb-hero__media picture,
.mb-hero__media a {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
}

.mb-hero__media img {
  object-fit: cover;
  transform: scale(1);
  transition: transform 260ms ease, filter 260ms ease;
}

.mb-hero__media:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.035);
}

.mb-hero__copy {
  grid-area: copy;
  width: 100%;
  max-width: 100%;
  padding-inline: var(--mb-gutter);
  color: var(--mb-text-soft);
}

.mb-hero__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-block-end: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(248, 200, 75, 0.42);
  border-radius: 999px;
  color: var(--mb-gold-2);
  background: rgba(248, 200, 75, 0.10);
  box-shadow: 0 0 20px rgba(248, 200, 75, 0.10);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.2;
  cursor: default;
  overflow-wrap: anywhere;
}

.mb-hero__lead,
.mb-lead {
  max-width: 100%;
  margin-block: 0 1.15em;
  color: var(--mb-text-soft);
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  line-height: 1.68;
}

.mb-hero__actions,
.mb-cta__actions,
.mb-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.mb-hero > .mb-cta {
  grid-area: cta;
  width: calc(100% - (2 * var(--mb-gutter)));
  max-width: calc(100% - (2 * var(--mb-gutter)));
  margin-inline: var(--mb-gutter);
  margin-block: clamp(4px, 1.2vw, 12px);
}

/* Rows and media sections */
.mb-article .mb-row,
.mbpk-article .mb-row,
.mbpk-page .mb-article .mb-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "media"
    "copy";
  align-items: start;
  gap: clamp(18px, 3vw, 34px);
  width: 100%;
  max-width: var(--mb-container);
  margin-inline: auto;
  margin-block-end: var(--mb-section-gap);
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(19, 207, 255, 0.14);
  border-radius: var(--mb-radius-lg);
  background:
    linear-gradient(135deg, rgba(19, 207, 255, 0.075), transparent 34%),
    linear-gradient(180deg, rgba(10, 29, 57, 0.74), rgba(6, 18, 39, 0.68));
}

.mb-article .mb-row--reverse:not(.mb-hero),
.mbpk-article .mb-row--reverse:not(.mb-hero),
.mbpk-page .mb-article .mb-row--reverse:not(.mb-hero) {
  grid-template-areas:
    "copy"
    "media";
}

.mb-copy {
  grid-area: copy;
  align-self: start;
  width: 100%;
  max-width: 100%;
  padding-block-start: 0;
  color: var(--mb-text-soft);
}

.mb-media {
  grid-area: media;
  align-self: start;
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 2 / 3;
  padding: 0;
  border: 1px solid rgba(19, 207, 255, 0.22);
  border-radius: var(--mb-radius-lg);
  background: #06142a;
  box-shadow: var(--mb-shadow-glow);
  overflow: clip;
  cursor: pointer;
}

.mb-media img,
.mb-media picture,
.mb-media a {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
}

.mb-media img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transform: scale(1);
  transition: transform 260ms ease, filter 260ms ease, box-shadow 260ms ease;
}

.mb-media:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.04);
}

.mb-row--stack:not(.mb-hero),
.mb-row--long:not(.mb-hero) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "media"
    "copy";
}

.mb-row--reverse.mb-row--stack:not(.mb-hero),
.mb-row--reverse.mb-row--long:not(.mb-hero) {
  grid-template-areas:
    "copy"
    "media";
}

.mb-row--stack:not(.mb-hero) > .mb-media,
.mb-row--long:not(.mb-hero) > .mb-media {
  width: 100%;
  max-width: 100%;
}

/* CTA blocks and buttons */
.mb-article .mb-cta,
.mbpk-article .mb-cta,
.mbpk-page .mb-article .mb-cta {
  width: 100%;
  max-width: var(--mb-container);
  margin-inline: auto;
  margin-block-end: var(--mb-section-gap);
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid rgba(248, 200, 75, 0.26);
  border-radius: var(--mb-radius-lg);
  background:
    radial-gradient(circle at 16% 0%, rgba(248, 200, 75, 0.18), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(255, 106, 34, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(14, 43, 78, 0.88), rgba(7, 19, 42, 0.92));
  box-shadow: var(--mb-shadow-warm);
}

.mb-cta__copy {
  width: 100%;
  max-width: 100%;
  margin-block-end: clamp(14px, 2.4vw, 22px);
  color: var(--mb-text-soft);
}

.mb-btn,
.mb-article a.mb-btn,
.mbpk-article a.mb-btn,
.mbpk-page .mb-article a.mb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  padding: 13px 20px;
  border: 1px solid rgba(255, 157, 38, 0.78);
  border-radius: 999px;
  color: #061020;
  background: linear-gradient(135deg, var(--mb-gold) 0%, var(--mb-primary-2) 42%, var(--mb-primary) 100%);
  box-shadow: 0 0 24px rgba(255, 106, 34, 0.30), 0 12px 28px rgba(0, 0, 0, 0.28);
  font-family: var(--mb-font);
  font-size: 0.98rem;
  font-weight: 950;
  line-height: 1.18;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  white-space: normal;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.mb-btn:hover,
.mb-btn:focus-visible,
.mb-article a.mb-btn:hover,
.mb-article a.mb-btn:focus-visible,
.mbpk-article a.mb-btn:hover,
.mbpk-article a.mb-btn:focus-visible,
.mbpk-page .mb-article a.mb-btn:hover,
.mbpk-page .mb-article a.mb-btn:focus-visible {
  color: #061020;
  border-color: rgba(255, 240, 168, 0.95);
  background: linear-gradient(135deg, var(--mb-gold-2) 0%, var(--mb-gold) 38%, var(--mb-primary-2) 100%);
  box-shadow: 0 0 34px rgba(248, 200, 75, 0.34), 0 14px 32px rgba(0, 0, 0, 0.30);
  transform: translateY(-1px);
}

.mb-btn--secondary,
.mb-article a.mb-btn--secondary,
.mbpk-article a.mb-btn--secondary,
.mbpk-page .mb-article a.mb-btn--secondary {
  color: var(--mb-text);
  border-color: rgba(19, 207, 255, 0.45);
  background: rgba(19, 207, 255, 0.10);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.mb-btn--secondary:hover,
.mb-btn--secondary:focus-visible,
.mb-article a.mb-btn--secondary:hover,
.mb-article a.mb-btn--secondary:focus-visible,
.mbpk-article a.mb-btn--secondary:hover,
.mbpk-article a.mb-btn--secondary:focus-visible,
.mbpk-page .mb-article a.mb-btn--secondary:hover,
.mbpk-page .mb-article a.mb-btn--secondary:focus-visible {
  color: var(--mb-text);
  border-color: rgba(19, 207, 255, 0.72);
  background: rgba(19, 207, 255, 0.18);
  box-shadow: 0 0 24px rgba(19, 207, 255, 0.18);
}

.mb-btn--accent,
.mb-article a.mb-btn--accent,
.mbpk-article a.mb-btn--accent,
.mbpk-page .mb-article a.mb-btn--accent {
  color: #061020;
  border-color: rgba(248, 200, 75, 0.88);
  background: linear-gradient(135deg, var(--mb-gold-2), var(--mb-gold));
}

/* Grids and cards */
.mb-article .mb-grid,
.mb-article .mb-slot-grid,
.mbpk-article .mb-grid,
.mbpk-article .mb-slot-grid,
.mbpk-page .mb-article .mb-grid,
.mbpk-page .mb-article .mb-slot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--mb-card-gap);
  width: 100%;
  max-width: var(--mb-container);
  margin-inline: auto;
  margin-block-end: var(--mb-section-gap);
  padding: 0;
  align-items: stretch;
}

.mb-article .mb-grid > .mb-card,
.mb-article .mb-slot-grid > .mb-card,
.mbpk-article .mb-grid > .mb-card,
.mbpk-article .mb-slot-grid > .mb-card,
.mbpk-page .mb-article .mb-grid > .mb-card,
.mbpk-page .mb-article .mb-slot-grid > .mb-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.mb-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-content: start;
  min-width: 0;
  border: 1px solid rgba(19, 207, 255, 0.16);
  border-radius: var(--mb-radius-lg);
  background:
    linear-gradient(180deg, rgba(14, 43, 78, 0.72), rgba(6, 18, 39, 0.78));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

.mb-card__media {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 2 / 3;
  padding: 0;
  border-radius: var(--mb-radius-lg) var(--mb-radius-lg) var(--mb-radius-sm) var(--mb-radius-sm);
  background: #06142a;
  overflow: clip;
  cursor: pointer;
}

.mb-card__media img,
.mb-card__media picture,
.mb-card__media a {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
}

.mb-card__media img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transform: scale(1);
  transition: transform 260ms ease, filter 260ms ease;
}

.mb-card:hover .mb-card__media img,
.mb-card__media:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.04);
}

.mb-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: clamp(16px, 2.5vw, 22px);
}

.mb-card__title {
  margin-block: 0 0.42em;
  color: var(--mb-text);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 900;
  line-height: 1.22;
}

.mb-card__copy {
  width: 100%;
  max-width: 100%;
  color: var(--mb-text-soft);
  line-height: 1.62;
}

.mb-card > :not(.mb-card__media):not(.mb-card__body) {
  min-width: 0;
  max-width: 100%;
  margin-inline: clamp(16px, 2.5vw, 22px);
}

.mb-card > :not(.mb-card__media):not(.mb-card__body):first-child {
  margin-block-start: clamp(16px, 2.5vw, 22px);
}

.mb-card > :not(.mb-card__media):not(.mb-card__body):last-child {
  margin-block-end: clamp(16px, 2.5vw, 22px);
}

/* Lists */
.mb-article ul,
.mb-article ol,
.mbpk-article ul,
.mbpk-article ol,
.mbpk-page .mb-article ul,
.mbpk-page .mb-article ol {
  padding-inline-start: 1.35em;
  padding-inline-end: 0;
  margin-block-start: 0;
  margin-block-end: 1.15em;
  color: var(--mb-text-soft);
}

.mb-article li,
.mbpk-article li,
.mbpk-page .mb-article li {
  margin-block-end: 0.42em;
  padding-inline-start: 0.15em;
}

.mb-article li::marker,
.mbpk-article li::marker,
.mbpk-page .mb-article li::marker {
  color: var(--mb-gold);
  font-weight: 900;
}

.mb-list,
.mb-check-list {
  width: 100%;
  max-width: 100%;
}

.mb-check-list {
  padding-inline-start: 0;
  list-style: none;
}

.mb-check-list li {
  position: relative;
  padding-inline-start: 1.7em;
}

.mb-check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.58em;
  width: 0.72em;
  height: 0.72em;
  border-radius: 50%;
  background: radial-gradient(circle, var(--mb-gold) 0 32%, var(--mb-primary) 34% 100%);
  box-shadow: 0 0 14px rgba(248, 200, 75, 0.32);
}

/* FAQ */
.mb-article .mb-faq,
.mbpk-article .mb-faq,
.mbpk-page .mb-article .mb-faq {
  width: 100%;
  max-width: var(--mb-container);
  margin-inline: auto;
  margin-block-end: var(--mb-section-gap);
}

.mb-faq details {
  break-inside: avoid;
  margin-block-end: 12px;
  border: 1px solid rgba(19, 207, 255, 0.16);
  border-radius: var(--mb-radius);
  background: rgba(10, 29, 57, 0.76);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.mb-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 16px 18px;
  color: var(--mb-text);
  font-weight: 850;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.mb-faq summary::-webkit-details-marker {
  display: none;
}

.mb-faq summary::after {
  content: "+";
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #061020;
  background: linear-gradient(135deg, var(--mb-gold), var(--mb-primary-2));
  font-weight: 950;
  line-height: 1;
}

.mb-faq details[open] summary::after {
  content: "–";
}

.mb-faq details > :not(summary) {
  padding-inline: 18px;
  padding-block-end: 18px;
  color: var(--mb-text-soft);
}

/* Tables */
.mb-table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-block: clamp(18px, 3vw, 30px) var(--mb-section-gap);
  border: 1px solid rgba(19, 207, 255, 0.18);
  border-radius: var(--mb-radius);
  background: rgba(5, 18, 39, 0.82);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-color: var(--mb-primary) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

table.mb-table {
  width: 100%;
  min-width: 620px;
  max-width: none;
  border-collapse: collapse;
  border-spacing: 0;
  direction: ltr;
  color: var(--mb-text-soft);
  background: transparent;
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: start;
}

table.mb-table caption {
  caption-side: top;
  padding: 12px 14px;
  color: var(--mb-text);
  font-weight: 850;
  text-align: start;
}

table.mb-table th,
table.mb-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  text-align: start;
  vertical-align: top;
}

table.mb-table th {
  color: #061020;
  background: linear-gradient(135deg, var(--mb-gold), var(--mb-primary-2));
  font-weight: 900;
}

table.mb-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.035);
}

table.mb-table tr:last-child td {
  border-bottom: 0;
}

/* Dividers */
.mb-divider,
.mb-article hr,
.mbpk-article hr,
.mbpk-page .mb-article hr {
  width: 100%;
  max-width: var(--mb-container);
  height: 1px;
  margin: var(--mb-section-gap) auto;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(19, 207, 255, 0.34), rgba(248, 200, 75, 0.24), transparent);
}

/* Embedded media */
.mb-embed {
  width: 100%;
  max-width: var(--mb-container);
  margin-inline: auto;
  margin-block-end: var(--mb-section-gap);
  border-radius: var(--mb-radius-lg);
  background: rgba(6, 20, 42, 0.82);
}

.mb-embed iframe,
.mb-embed video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--mb-radius-lg);
}

/* Tablet and desktop layout */
@media (min-width: 640px) {
  .mb-article .mb-grid,
  .mb-article .mb-slot-grid,
  .mbpk-article .mb-grid,
  .mbpk-article .mb-slot-grid,
  .mbpk-page .mb-article .mb-grid,
  .mbpk-page .mb-article .mb-slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mb-hero__actions,
  .mb-cta__actions,
  .mb-actions {
    flex-direction: row;
  }

  .mb-btn,
  .mb-article a.mb-btn,
  .mbpk-article a.mb-btn,
  .mbpk-page .mb-article a.mb-btn {
    width: auto;
  }
}

@media (min-width: 880px) {
  .mb-article .mb-row:not(.mb-row--stack):not(.mb-row--long):not(.mb-hero),
  .mbpk-article .mb-row:not(.mb-row--stack):not(.mb-row--long):not(.mb-hero),
  .mbpk-page .mb-article .mb-row:not(.mb-row--stack):not(.mb-row--long):not(.mb-hero) {
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    grid-template-areas: "copy media";
  }

  .mb-article .mb-row--reverse:not(.mb-row--stack):not(.mb-row--long):not(.mb-hero),
  .mbpk-article .mb-row--reverse:not(.mb-row--stack):not(.mb-row--long):not(.mb-hero),
  .mbpk-page .mb-article .mb-row--reverse:not(.mb-row--stack):not(.mb-row--long):not(.mb-hero) {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    grid-template-areas: "media copy";
  }

  .mb-article .mb-row--stack:not(.mb-hero),
  .mb-article .mb-row--long:not(.mb-hero),
  .mbpk-article .mb-row--stack:not(.mb-hero),
  .mbpk-article .mb-row--long:not(.mb-hero),
  .mbpk-page .mb-article .mb-row--stack:not(.mb-hero),
  .mbpk-page .mb-article .mb-row--long:not(.mb-hero) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "media"
      "copy";
  }

  .mb-article .mb-row--reverse.mb-row--stack:not(.mb-hero),
  .mb-article .mb-row--reverse.mb-row--long:not(.mb-hero),
  .mbpk-article .mb-row--reverse.mb-row--stack:not(.mb-hero),
  .mbpk-article .mb-row--reverse.mb-row--long:not(.mb-hero),
  .mbpk-page .mb-article .mb-row--reverse.mb-row--stack:not(.mb-hero),
  .mbpk-page .mb-article .mb-row--reverse.mb-row--long:not(.mb-hero) {
    grid-template-areas:
      "copy"
      "media";
  }
}

@media (min-width: 980px) {
  .mb-article .mb-grid,
  .mb-article .mb-slot-grid,
  .mbpk-article .mb-grid,
  .mbpk-article .mb-slot-grid,
  .mbpk-page .mb-article .mb-grid,
  .mbpk-page .mb-article .mb-slot-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .mb-article .mb-grid > .mb-card,
  .mb-article .mb-slot-grid > .mb-card,
  .mbpk-article .mb-grid > .mb-card,
  .mbpk-article .mb-slot-grid > .mb-card,
  .mbpk-page .mb-article .mb-grid > .mb-card,
  .mbpk-page .mb-article .mb-slot-grid > .mb-card {
    grid-column: span 2;
  }

  .mb-article .mb-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1),
  .mb-article .mb-slot-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1),
  .mbpk-article .mb-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1),
  .mbpk-article .mb-slot-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1),
  .mbpk-page .mb-article .mb-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1),
  .mbpk-page .mb-article .mb-slot-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: stretch;
  }

  .mb-article .mb-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > .mb-card__media,
  .mb-article .mb-slot-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > .mb-card__media,
  .mbpk-article .mb-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > .mb-card__media,
  .mbpk-article .mb-slot-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > .mb-card__media,
  .mbpk-page .mb-article .mb-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > .mb-card__media,
  .mbpk-page .mb-article .mb-slot-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > .mb-card__media {
    grid-column: 2;
    grid-row: 1;
    height: 100%;
    min-height: 360px;
    border-radius: 0 var(--mb-radius-lg) var(--mb-radius-lg) 0;
  }

  .mb-article .mb-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > .mb-card__body,
  .mb-article .mb-slot-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > .mb-card__body,
  .mbpk-article .mb-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > .mb-card__body,
  .mbpk-article .mb-slot-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > .mb-card__body,
  .mbpk-page .mb-article .mb-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > .mb-card__body,
  .mbpk-page .mb-article .mb-slot-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > .mb-card__body {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    padding: clamp(24px, 4vw, 42px);
  }

  .mb-article .mb-grid--orphan-fix > .mb-card:nth-last-child(2):nth-child(3n+1),
  .mb-article .mb-grid--orphan-fix > .mb-card:last-child:nth-child(3n+2),
  .mb-article .mb-slot-grid--orphan-fix > .mb-card:nth-last-child(2):nth-child(3n+1),
  .mb-article .mb-slot-grid--orphan-fix > .mb-card:last-child:nth-child(3n+2),
  .mbpk-article .mb-grid--orphan-fix > .mb-card:nth-last-child(2):nth-child(3n+1),
  .mbpk-article .mb-grid--orphan-fix > .mb-card:last-child:nth-child(3n+2),
  .mbpk-article .mb-slot-grid--orphan-fix > .mb-card:nth-last-child(2):nth-child(3n+1),
  .mbpk-article .mb-slot-grid--orphan-fix > .mb-card:last-child:nth-child(3n+2),
  .mbpk-page .mb-article .mb-grid--orphan-fix > .mb-card:nth-last-child(2):nth-child(3n+1),
  .mbpk-page .mb-article .mb-grid--orphan-fix > .mb-card:last-child:nth-child(3n+2),
  .mbpk-page .mb-article .mb-slot-grid--orphan-fix > .mb-card:nth-last-child(2):nth-child(3n+1),
  .mbpk-page .mb-article .mb-slot-grid--orphan-fix > .mb-card:last-child:nth-child(3n+2) {
    grid-column: span 3;
  }
}

/* Mobile safety */
@media (max-width: 767px) {
  .mb-topbar__inner {
    flex-wrap: wrap;
  }

  .mb-site-header__inner {
    flex-direction: row;
  }

  .mb-site-nav__list {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .mb-site-brand__name {
    display: none;
  }

  .mb-site-btn {
    max-width: 44vw;
    padding-inline: 10px;
  }

  .mb-site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .mb-article,
  .mbpk-article,
  .mbpk-page .mb-article {
    width: 100%;
    max-width: 100%;
    padding-inline: var(--mb-page-gutter);
    border-inline: 0;
  }

  .mb-hero__copy {
    padding-inline: var(--mb-page-gutter);
  }

  .mb-hero > .mb-cta {
    width: calc(100% - (2 * var(--mb-page-gutter)));
    max-width: calc(100% - (2 * var(--mb-page-gutter)));
    margin-inline: var(--mb-page-gutter);
  }

  .mb-hero__actions,
  .mb-cta__actions,
  .mb-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mb-btn,
  .mb-article a.mb-btn,
  .mbpk-article a.mb-btn,
  .mbpk-page .mb-article a.mb-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .mb-table-wrap {
    margin-block-end: clamp(28px, 7vw, 42px);
  }

  table.mb-table {
    min-width: 560px;
  }

  table.mb-table th,
  table.mb-table td {
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .mb-article .mb-row,
  .mbpk-article .mb-row,
  .mbpk-page .mb-article .mb-row,
  .mb-article .mb-cta,
  .mbpk-article .mb-cta,
  .mbpk-page .mb-article .mb-cta {
    padding: 16px;
  }

  .mb-hero__media,
  .mb-media,
  .mb-card__media {
    border-radius: var(--mb-radius);
  }

  .mb-site-header__actions {
    gap: 6px;
  }

  .mb-site-btn {
    min-height: 32px;
    padding: 7px 9px;
    font-size: 0.76rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mb-article *,
  .mb-article *::before,
  .mb-article *::after,
  .mbpk-article *,
  .mbpk-article *::before,
  .mbpk-article *::after,
  .mb-site-header *,
  .mb-site-header *::before,
  .mb-site-header *::after,
  .mb-site-footer *,
  .mb-site-footer *::before,
  .mb-site-footer *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* fair-pages-kit: Beautiful Site TOC (converter-injected) */
.mb-article .mb-toc,
.mbpk-article .mb-toc,
.mbpk-page .mb-article .mb-toc {
  width: 100%;
  max-width: var(--mb-container);
  margin-inline: auto;
  margin-block-end: var(--mb-stack-gap, var(--mb-space-7, clamp(20px, 4vw, 42px)));
  padding: clamp(20px, 4vw, 36px) var(--mb-page-pad, var(--mb-gutter, clamp(16px, 3.4vw, 28px)));
  border: 1px solid var(--mb-border, rgba(255, 255, 255, 0.12));
  border-radius: var(--mb-radius-lg, 22px);
  background:
    radial-gradient(circle at 88% 10%, rgba(227, 178, 87, 0.12), transparent 16rem),
    linear-gradient(180deg, rgba(36, 16, 8, 0.94), rgba(27, 11, 5, 0.88));
  box-shadow: var(--mb-shadow, 0 22px 70px rgba(0, 0, 0, 0.42));
}

.mb-article .mb-toc__summary,
.mbpk-article .mb-toc__summary,
.mbpk-page .mb-article .mb-toc__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mb-article .mb-toc__summary::-webkit-details-marker,
.mbpk-article .mb-toc__summary::-webkit-details-marker,
.mbpk-page .mb-article .mb-toc__summary::-webkit-details-marker {
  display: none;
}

.mb-article .mb-toc__summary::after,
.mbpk-article .mb-toc__summary::after,
.mbpk-page .mb-article .mb-toc__summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--mb-border-strong, rgba(255, 255, 255, 0.24));
  border-radius: var(--mb-radius-sm, 12px);
  color: var(--mb-gold-2, #ffd985);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.mb-article .mb-toc[open] .mb-toc__summary::after,
.mbpk-article .mb-toc[open] .mb-toc__summary::after,
.mbpk-page .mb-article .mb-toc[open] .mb-toc__summary::after {
  content: "−";
}

.mb-article .mb-toc__title,
.mbpk-article .mb-toc__title,
.mbpk-page .mb-article .mb-toc__title {
  margin: 0;
  color: var(--mb-gold-2, #ffd985);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.25;
}

.mb-article .mb-toc__list,
.mbpk-article .mb-toc__list,
.mbpk-page .mb-article .mb-toc__list {
  margin: clamp(14px, 2.5vw, 20px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: clamp(8px, 1.5vw, 12px);
}

.mb-article .mb-toc__list--sub,
.mbpk-article .mb-toc__list--sub,
.mbpk-page .mb-article .mb-toc__list--sub {
  margin: clamp(8px, 1.5vw, 10px) 0 0;
  padding-left: clamp(12px, 2vw, 18px);
  border-left: 1px solid var(--mb-border, rgba(255, 255, 255, 0.12));
}

.mb-article .mb-toc__item,
.mbpk-article .mb-toc__item,
.mbpk-page .mb-article .mb-toc__item {
  margin: 0;
}

.mb-article .mb-toc__link,
.mbpk-article .mb-toc__link,
.mbpk-page .mb-article .mb-toc__link {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--mb-radius-sm, 12px);
  color: var(--mb-text, var(--mb-ink, #f2f2ee));
  text-decoration: none;
  background: rgba(255, 246, 220, 0.03);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.mb-article .mb-toc__num,
.mbpk-article .mb-toc__num,
.mbpk-page .mb-article .mb-toc__num {
  flex: 0 0 auto;
  min-width: 2.2rem;
  color: var(--mb-gold, #e3b257);
  font-variant-numeric: tabular-nums;
}

.mb-article .mb-toc__text,
.mbpk-article .mb-toc__text,
.mbpk-page .mb-article .mb-toc__text {
  flex: 1 1 auto;
}

.mb-article .mb-toc__link:hover,
.mbpk-article .mb-toc__link:hover,
.mbpk-page .mb-article .mb-toc__link:hover,
.mb-article .mb-toc__link:focus-visible,
.mbpk-article .mb-toc__link:focus-visible,
.mbpk-page .mb-article .mb-toc__link:focus-visible {
  color: var(--mb-gold-2, #ffd985);
  border-color: var(--mb-border-strong, rgba(255, 255, 255, 0.24));
  background: rgba(227, 178, 87, 0.08);
}

@media (max-width: 640px) {
  .mb-article .mb-toc,
  .mbpk-article .mb-toc,
  .mbpk-page .mb-article .mb-toc {
    max-width: 100%;
  }
}

