/* Palette and shell tokens derived from the reference: deep burgundy, hot pink, orange neon, soft gold, and dark blue accents. */
body.mb-site,
.mb-site-header,
.mb-page-strip,
.mb-site-footer,
.mb-site-drawer,
:is(.mb-article, .mbpk-article, .mbpk-page .mb-article) {
  --mb-font: "Inter", "Noto Sans Arabic", "Noto Sans", "Segoe UI", Arial, sans-serif;

  --mb-container: 1120px;
  --mb-edge: clamp(16px, 3.4vw, 34px);
  --mb-gap: clamp(18px, 3vw, 34px);
  --mb-section-gap: clamp(34px, 6vw, 72px);

  --mb-bg: #1b0010;
  --mb-bg-2: #310014;
  --mb-bg-3: #4b061d;

  --mb-panel: rgba(43, 2, 22, 0.92);
  --mb-panel-2: rgba(72, 7, 31, 0.88);
  --mb-panel-3: rgba(96, 10, 40, 0.72);

  --mb-primary: #e9165b;
  --mb-primary-2: #ff3f7e;
  --mb-red: #c5093e;

  --mb-gold: #f2bd55;
  --mb-gold-2: #ffd375;
  --mb-orange: #ff6a22;

  --mb-teal: #1686b7;
  --mb-blue: #122c50;

  --mb-text: #fff7f2;
  --mb-text-soft: #ead7dc;
  --mb-muted: #cba3ae;
  --mb-muted-2: #9f7382;

  --mb-line: rgba(255, 92, 138, 0.23);
  --mb-border: rgba(255, 92, 138, 0.25);
  --mb-line-strong: rgba(255, 126, 71, 0.42);
  --mb-border-strong: rgba(255, 126, 71, 0.46);

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

  --mb-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  --mb-glow: 0 0 34px rgba(233, 22, 91, 0.32), 0 0 54px rgba(255, 106, 34, 0.18);
  --mb-focus: 0 0 0 3px rgba(255, 211, 117, 0.32);
}

body.mb-site {
  font-family: var(--mb-font);
  color: var(--mb-text);
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 106, 34, 0.26), transparent 26rem),
    radial-gradient(circle at 18% 20%, rgba(233, 22, 91, 0.28), transparent 24rem),
    linear-gradient(135deg, #15000b 0%, #2a0013 42%, #4a061e 100%);
}

body.mb-site :is(main, .mb-site-main) {
  min-width: 0;
}

.mb-site-header,
.mb-page-strip,
.mb-site-footer,
.mb-site-drawer {
  font-family: var(--mb-font);
}

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

/* Site chrome */
.mb-topbar {
  width: 100%;
  color: var(--mb-muted);
  background: rgba(19, 0, 10, 0.72);
  border-bottom: 1px solid var(--mb-line);
}

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

.mb-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-block: 7px;
  font-size: clamp(0.78rem, 1.4vw, 0.9rem);
}

.mb-site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--mb-text);
  background: linear-gradient(180deg, rgba(38, 0, 18, 0.9), rgba(28, 0, 14, 0.76));
  border-bottom: 1px solid var(--mb-line);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
}

.mb-site-header__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 2vw, 22px);
  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 {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 40px;
  aspect-ratio: 800 / 128;
  object-fit: contain;
}

.mb-site-brand__name {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--mb-text);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

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

.mb-site-btn,
.mb-site-burger {
  flex: 0 0 auto;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

.mb-site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  min-height: 36px;
  padding: 0.7em 1.05em;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--mb-pill);
  color: #ffffff;
  background: linear-gradient(135deg, var(--mb-primary), var(--mb-primary-2));
  box-shadow: 0 12px 28px rgba(233, 22, 91, 0.28);
  font-size: clamp(0.78rem, 1.5vw, 0.92rem);
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.mb-site-btn:hover,
.mb-site-btn:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, var(--mb-primary-2), var(--mb-orange));
  box-shadow: var(--mb-focus), 0 16px 34px rgba(255, 63, 126, 0.28);
  outline: 0;
}

.mb-site-btn--apk {
  color: var(--mb-gold-2);
  background: rgba(255, 211, 117, 0.08);
  border-color: rgba(255, 211, 117, 0.38);
  box-shadow: none;
}

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

.mb-site-burger {
  inline-size: 38px;
  block-size: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: var(--mb-text);
  background: rgba(255, 255, 255, 0.07);
}

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

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

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

.mb-site-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  padding: 0.58em 0.88em;
  border: 1px solid transparent;
  border-radius: var(--mb-pill);
  color: var(--mb-text-soft);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mb-site-nav__link:hover,
.mb-site-nav__link:focus-visible,
.mb-site-nav__link[aria-current="page"] {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(233, 22, 91, 0.9), rgba(255, 106, 34, 0.72));
  border-color: rgba(255, 211, 117, 0.24);
  outline: 0;
}

/* Drawer sizing is explicit so a blurred sticky header cannot constrain the fixed overlay. */
.mb-site-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 999;
  color: var(--mb-text);
}

@supports not (height: 100dvh) {
  .mb-site-drawer {
    height: 100vh;
  }
}

.mb-site-drawer__panel {
  height: 100%;
  min-height: 100dvh;
  color: var(--mb-text);
  background:
    radial-gradient(circle at 72% 8%, rgba(255, 106, 34, 0.2), transparent 17rem),
    linear-gradient(180deg, rgba(55, 2, 24, 0.98), rgba(23, 0, 12, 0.98));
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

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

.mb-site-drawer__link {
  color: var(--mb-text-soft);
  text-decoration: none;
}

.mb-site-drawer__link:hover,
.mb-site-drawer__link:focus-visible {
  color: #ffffff;
  outline: 0;
}

.mb-site-drawer__cta,
.mb-site-drawer__cta--apk {
  box-sizing: border-box;
  max-width: 100%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--mb-primary), var(--mb-primary-2));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--mb-pill);
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  white-space: normal;
}

.mb-site-drawer__cta:hover,
.mb-site-drawer__cta:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, var(--mb-primary-2), var(--mb-orange));
  outline: 0;
}

.mb-site-drawer__cta--apk {
  color: var(--mb-gold-2);
  background: rgba(255, 211, 117, 0.08);
  border-color: rgba(255, 211, 117, 0.38);
}

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

/* Compact page strip and breadcrumbs */
.mb-page-strip {
  color: var(--mb-muted);
  background: rgba(18, 0, 10, 0.62);
  border-bottom: 1px solid var(--mb-line);
}

.mb-page-strip__inner {
  padding-block: 8px;
  font-size: clamp(0.78rem, 1.5vw, 0.92rem);
  line-height: 1.4;
}

.mb-breadcrumbs,
.mb-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45em;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mb-breadcrumbs a,
.mb-page-strip a {
  color: var(--mb-gold-2);
  text-decoration: none;
}

.mb-breadcrumbs a:hover,
.mb-page-strip a:hover {
  color: #ffffff;
}

/* Footer */
.mb-site-footer {
  color: var(--mb-text-soft);
  background:
    radial-gradient(circle at 20% 0%, rgba(233, 22, 91, 0.18), transparent 22rem),
    linear-gradient(180deg, rgba(36, 0, 18, 0.88), rgba(15, 0, 8, 0.96));
  border-top: 1px solid var(--mb-line);
}

.mb-site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  padding-block: clamp(24px, 4vw, 42px);
}

.mb-site-footer__brand {
  flex: 0 1 260px;
  min-width: 0;
}

.mb-site-footer a {
  color: var(--mb-text-soft);
  text-decoration: none;
}

.mb-site-footer a:hover,
.mb-site-footer a:focus-visible {
  color: #ffffff;
  outline: 0;
}

.mb-footer-nav {
  flex: 1 1 520px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.mb-footer-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  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%, 120px);
  max-width: 100%;
}

.mb-footer-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  padding: 0.72em 0.95em;
  border: 1px solid var(--mb-line);
  border-radius: var(--mb-pill);
  color: var(--mb-text-soft);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}

.mb-footer-nav__link:hover,
.mb-footer-nav__link:focus-visible {
  color: #ffffff;
  background: rgba(233, 22, 91, 0.2);
  border-color: var(--mb-border-strong);
}

/* Article root */
:is(.mb-article, .mbpk-article, .mbpk-page .mb-article) {
  width: min(100%, var(--mb-container));
  max-width: 100%;
  margin-inline: auto;
  padding: var(--mb-edge);
  direction: ltr;
  text-align: left;
  color: var(--mb-text);
  background:
    radial-gradient(circle at 78% 2%, rgba(255, 106, 34, 0.22), transparent 24rem),
    radial-gradient(circle at 7% 20%, rgba(233, 22, 91, 0.2), transparent 22rem),
    linear-gradient(180deg, rgba(47, 2, 23, 0.96), rgba(26, 0, 13, 0.97));
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius-xl);
  box-shadow: var(--mb-shadow);
  font-family: var(--mb-font);
  line-height: 1.72;
  overflow-wrap: anywhere;
  min-width: 0;
}

body.mb-site :is(.mb-article, .mbpk-article, .mbpk-page .mb-article) {
  margin-block: clamp(16px, 3vw, 34px);
}

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

:is(.mb-article, .mbpk-article, .mbpk-page .mb-article)[dir="rtl"],
[dir="rtl"] :is(.mb-article, .mbpk-article, .mbpk-page .mb-article) {
  direction: rtl;
  text-align: right;
}

/* Typography */
:is(.mb-article, .mbpk-article, .mbpk-page .mb-article) :is(h1, h2, h3, h4, h5, h6) {
  max-width: 100%;
  margin-block: 0 0.58em;
  color: var(--mb-text);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

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

:is(.mb-article, .mbpk-article, .mbpk-page .mb-article) h2 {
  font-size: clamp(1.65rem, 4vw, 3rem);
}

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

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

:is(.mb-article, .mbpk-article, .mbpk-page .mb-article) :is(p, li, dd, figcaption) {
  max-width: 100%;
  color: var(--mb-text-soft);
  font-size: clamp(1rem, 1.65vw, 1.08rem);
}

:is(.mb-article, .mbpk-article, .mbpk-page .mb-article) p {
  margin-block: 0 1em;
}

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

:is(.mb-article, .mbpk-article, .mbpk-page .mb-article) a {
  color: var(--mb-gold-2);
  text-decoration-color: rgba(255, 211, 117, 0.55);
  text-underline-offset: 0.18em;
}

:is(.mb-article, .mbpk-article, .mbpk-page .mb-article) a:hover {
  color: #ffffff;
}

:is(.mb-article, .mbpk-article, .mbpk-page .mb-article) :is(strong, b) {
  color: #ffffff;
  font-weight: 900;
}

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

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

:is(.mb-article, .mbpk-article, .mbpk-page .mb-article) figure {
  max-width: 100%;
  margin: 0 0 var(--mb-section-gap);
}

.mb-lead,
.mb-hero__lead {
  color: var(--mb-text-soft);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.62;
}

.mb-kicker,
.mb-eyebrow,
.mb-hero__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  margin-block-end: clamp(10px, 1.6vw, 16px);
  padding: 0.48em 0.78em;
  border: 1px solid rgba(255, 211, 117, 0.36);
  border-radius: var(--mb-pill);
  color: var(--mb-gold-2);
  background: linear-gradient(135deg, rgba(242, 189, 85, 0.12), rgba(233, 22, 91, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  overflow-wrap: anywhere;
}

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

/* Text blocks remain full column width unless .mb-measure is applied. */
:is(.mb-article, .mbpk-article, .mbpk-page .mb-article) :is(.mb-copy, .mb-hero__copy, .mb-cta__copy, .mb-card__copy),
:is(.mb-article, .mbpk-article, .mbpk-page .mb-article) :is(.mb-copy, .mb-hero__copy, .mb-cta__copy, .mb-card__copy) :is(p, ul, ol) {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
}

/* Shared section sizing */
:is(.mb-article, .mbpk-article, .mbpk-page .mb-article) :is(.mb-hero, .mb-row, .mb-cta, .mb-grid, .mb-slot-grid, .mb-faq, .mb-table-wrap, .mb-section) {
  width: 100%;
  max-width: var(--mb-container);
  margin-inline: auto;
  min-width: 0;
}

:is(.mb-article, .mbpk-article, .mbpk-page .mb-article) :is(.mb-hero, .mb-row, .mb-cta, .mb-grid, .mb-slot-grid, .mb-faq, .mb-table-wrap, .mb-section):not(:last-child) {
  margin-block-end: var(--mb-section-gap);
}

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

/* Hero: single-column grid at all breakpoints, visual order is image, CTA, copy. */
.mb-article .mb-hero,
.mbpk-article .mb-hero,
.mbpk-page .mb-article .mb-hero {
  --mb-hero-copy-pad: 0px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "media"
    "cta"
    "copy";
  gap: 0;
  align-items: start;
  padding-block-start: 0;
  padding-inline: 0;
}

.mb-hero__media {
  grid-area: media;
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border-radius: var(--mb-radius-xl);
  background: linear-gradient(135deg, rgba(233, 22, 91, 0.24), rgba(255, 106, 34, 0.14));
  border: 1px solid var(--mb-border-strong);
  box-shadow: var(--mb-glow), 0 26px 64px rgba(0, 0, 0, 0.38);
  overflow: hidden;
  overflow: clip;
  cursor: pointer;
}

.mb-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: translateZ(0);
  transition: transform 260ms ease, filter 260ms ease;
}

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

.mb-hero > .mb-cta {
  grid-area: cta;
  width: calc(100% - (2 * var(--mb-hero-copy-pad)));
  max-width: none;
  margin-inline: var(--mb-hero-copy-pad);
  margin-block: clamp(16px, 2.8vw, 26px);
}

.mb-hero__copy {
  grid-area: copy;
  width: 100%;
  max-width: 100%;
  padding-inline: var(--mb-hero-copy-pad);
  padding-block-start: clamp(2px, 1vw, 8px);
}

.mb-hero__copy > :last-child {
  margin-block-end: 0;
}

.mb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-block-start: clamp(16px, 2.4vw, 24px);
}

/* Rows */
.mb-article .mb-row:not(.mb-hero),
.mbpk-article .mb-row:not(.mb-hero),
.mbpk-page .mb-article .mb-row:not(.mb-hero) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "media"
    "copy";
  gap: var(--mb-gap);
  align-items: start;
}

.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;
  padding-block-start: 0;
}

.mb-copy > :last-child {
  margin-block-end: 0;
}

.mb-media {
  grid-area: media;
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 2 / 3;
  padding: 0;
  padding-block-start: 0;
  border-radius: var(--mb-radius-lg);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--mb-border);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.34), 0 0 26px rgba(233, 22, 91, 0.16);
  overflow: hidden;
  overflow: clip;
  cursor: pointer;
}

.mb-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transform: translateZ(0);
  transition: transform 260ms ease, filter 260ms ease, box-shadow 260ms ease;
}

.mb-media:hover img,
.mb-media:focus-within img {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(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 and buttons */
.mb-cta {
  display: grid;
  gap: clamp(14px, 2.2vw, 22px);
  align-items: start;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--mb-border-strong);
  border-radius: var(--mb-radius-lg);
  color: var(--mb-text);
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 106, 34, 0.22), transparent 18rem),
    linear-gradient(135deg, rgba(95, 8, 39, 0.92), rgba(37, 0, 18, 0.94));
  box-shadow: var(--mb-glow);
}

.mb-cta__copy {
  min-width: 0;
}

.mb-cta__copy > :last-child {
  margin-block-end: 0;
}

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

:is(.mb-article, .mbpk-article, .mbpk-page .mb-article) :is(a.mb-btn, button.mb-btn, .mb-btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  max-width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0.85em 1.22em;
  border: 1px solid transparent;
  border-radius: var(--mb-pill);
  box-sizing: border-box;
  color: #ffffff;
  background: linear-gradient(135deg, var(--mb-primary), var(--mb-primary-2));
  box-shadow: 0 14px 32px rgba(233, 22, 91, 0.3);
  font-family: var(--mb-font);
  font-size: clamp(0.95rem, 1.7vw, 1.05rem);
  font-weight: 950;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

:is(.mb-article, .mbpk-article, .mbpk-page .mb-article) :is(a.mb-btn, button.mb-btn, .mb-btn):hover,
:is(.mb-article, .mbpk-article, .mbpk-page .mb-article) :is(a.mb-btn, button.mb-btn, .mb-btn):focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, var(--mb-primary-2), var(--mb-orange));
  box-shadow: var(--mb-focus), 0 18px 38px rgba(255, 63, 126, 0.3);
  outline: 0;
  transform: translateY(-1px);
}

:is(.mb-article, .mbpk-article, .mbpk-page .mb-article) :is(a.mb-btn--secondary, button.mb-btn--secondary, .mb-btn--secondary) {
  color: var(--mb-text);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--mb-border);
  box-shadow: none;
}

:is(.mb-article, .mbpk-article, .mbpk-page .mb-article) :is(a.mb-btn--secondary, button.mb-btn--secondary, .mb-btn--secondary):hover,
:is(.mb-article, .mbpk-article, .mbpk-page .mb-article) :is(a.mb-btn--secondary, button.mb-btn--secondary, .mb-btn--secondary):focus-visible {
  color: #ffffff;
  background: rgba(233, 22, 91, 0.22);
  border-color: var(--mb-border-strong);
}

:is(.mb-article, .mbpk-article, .mbpk-page .mb-article) :is(a.mb-btn--gold, button.mb-btn--gold, .mb-btn--gold, a.mb-btn--accent, button.mb-btn--accent, .mb-btn--accent) {
  color: #2a0614;
  background: linear-gradient(135deg, var(--mb-gold), var(--mb-gold-2));
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 30px rgba(242, 189, 85, 0.24);
}

:is(.mb-article, .mbpk-article, .mbpk-page .mb-article) :is(a.mb-btn--gold, button.mb-btn--gold, .mb-btn--gold, a.mb-btn--accent, button.mb-btn--accent, .mb-btn--accent):hover,
:is(.mb-article, .mbpk-article, .mbpk-page .mb-article) :is(a.mb-btn--gold, button.mb-btn--gold, .mb-btn--gold, a.mb-btn--accent, button.mb-btn--accent, .mb-btn--accent):focus-visible {
  color: #2a0614;
  background: linear-gradient(135deg, var(--mb-gold-2), #ffe19a);
}

/* Card grids */
.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;
  width: 100%;
  max-width: var(--mb-container);
  margin-inline: auto;
  gap: clamp(16px, 2.5vw, 26px);
  grid-template-columns: minmax(0, 1fr);
  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: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  padding: clamp(12px, 2vw, 16px);
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius-lg);
  color: var(--mb-text-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(55, 3, 25, 0.78);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.mb-card__media {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 2 / 3;
  padding: 0;
  border-radius: calc(var(--mb-radius-lg) - 8px);
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  overflow: clip;
  cursor: pointer;
}

.mb-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transform: translateZ(0);
  transition: transform 260ms ease, filter 260ms ease;
}

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

.mb-card__body {
  min-width: 0;
  padding-block-start: clamp(14px, 2vw, 18px);
}

.mb-card__title {
  margin-block: 0 0.45em;
  color: var(--mb-text);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.15;
}

.mb-card__copy {
  color: var(--mb-text-soft);
}

.mb-card__copy > :last-child,
.mb-card__body > :last-child {
  margin-block-end: 0;
}

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

:is(.mb-article, .mbpk-article, .mbpk-page .mb-article) li {
  padding-inline-start: 0.15em;
}

:is(.mb-article, .mbpk-article, .mbpk-page .mb-article) li + li {
  margin-block-start: 0.42em;
}

:is(.mb-article, .mbpk-article, .mbpk-page .mb-article)[dir="rtl"] :is(ul, ol),
[dir="rtl"] :is(.mb-article, .mbpk-article, .mbpk-page .mb-article) :is(ul, ol) {
  padding-inline-start: 0;
  padding-inline-end: 1.35em;
}

/* FAQ */
.mb-faq {
  display: grid;
  gap: 12px;
}

.mb-faq details {
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.mb-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: clamp(14px, 2.4vw, 20px);
  color: var(--mb-text);
  font-weight: 900;
  line-height: 1.25;
  cursor: pointer;
  list-style-position: inside;
}

.mb-faq summary::marker {
  color: var(--mb-gold);
}

.mb-faq details[open] summary {
  border-bottom: 1px solid var(--mb-line);
}

.mb-faq__answer,
.mb-faq details > :not(summary) {
  padding: 0 clamp(14px, 2.4vw, 20px) clamp(14px, 2.4vw, 20px);
  color: var(--mb-text-soft);
}

.mb-faq details > :last-child {
  margin-block-end: 0;
}

/* Tables: horizontal scrolling is isolated inside the wrapper. */
.mb-table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-block: 0 var(--mb-section-gap);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

table.mb-table {
  width: 100%;
  min-width: 600px;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  direction: ltr;
  color: var(--mb-text-soft);
  background: transparent;
}

table.mb-table caption {
  padding: 12px 14px;
  color: var(--mb-text);
  font-weight: 900;
  text-align: left;
}

table.mb-table th,
table.mb-table td {
  padding: 13px 14px;
  border-block-end: 1px solid var(--mb-line);
  border-inline-end: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: top;
}

table.mb-table th {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(233, 22, 91, 0.34), rgba(255, 106, 34, 0.18));
  font-weight: 950;
}

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

table.mb-table th:last-child,
table.mb-table td:last-child {
  border-inline-end: 0;
}

:is(.mb-article, .mbpk-article, .mbpk-page .mb-article)[dir="rtl"] table.mb-table,
[dir="rtl"] :is(.mb-article, .mbpk-article, .mbpk-page .mb-article) table.mb-table {
  direction: rtl;
}

:is(.mb-article, .mbpk-article, .mbpk-page .mb-article)[dir="rtl"] table.mb-table caption,
:is(.mb-article, .mbpk-article, .mbpk-page .mb-article)[dir="rtl"] table.mb-table th,
:is(.mb-article, .mbpk-article, .mbpk-page .mb-article)[dir="rtl"] table.mb-table td,
[dir="rtl"] :is(.mb-article, .mbpk-article, .mbpk-page .mb-article) table.mb-table caption,
[dir="rtl"] :is(.mb-article, .mbpk-article, .mbpk-page .mb-article) table.mb-table th,
[dir="rtl"] :is(.mb-article, .mbpk-article, .mbpk-page .mb-article) table.mb-table td {
  text-align: right;
}

/* Decorative separators must be standalone and never grid children inside rows or card grids. */
.mb-divider {
  width: 100%;
  max-width: var(--mb-container);
  height: 1px;
  margin: var(--mb-section-gap) auto;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 211, 117, 0.38), rgba(233, 22, 91, 0.42), transparent);
}

/* Tablet */
@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-cta {
    grid-template-columns: minmax(0, 1fr);
  }

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

/* Desktop rows and grids */
@media (min-width: 900px) {
  .mb-article .mb-row:not(.mb-hero):not(.mb-row--stack):not(.mb-row--long),
  .mbpk-article .mb-row:not(.mb-hero):not(.mb-row--stack):not(.mb-row--long),
  .mbpk-page .mb-article .mb-row:not(.mb-hero):not(.mb-row--stack):not(.mb-row--long) {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    grid-template-areas: "copy media";
    align-items: start;
  }

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

@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(3, minmax(0, 1fr));
  }

  .mb-article .mb-grid--orphan-fix,
  .mb-article .mb-slot-grid--orphan-fix,
  .mbpk-article .mb-grid--orphan-fix,
  .mbpk-article .mb-slot-grid--orphan-fix,
  .mbpk-page .mb-article .mb-grid--orphan-fix,
  .mbpk-page .mb-article .mb-slot-grid--orphan-fix {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

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

  .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;
  }

  .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;
    gap: clamp(18px, 3vw, 30px);
  }

  .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-block-start: 0;
  }

  .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;
    align-self: stretch;
    height: 100%;
  }

  .mb-article .mb-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > :not(.mb-card__media):not(.mb-card__body),
  .mb-article .mb-slot-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > :not(.mb-card__media):not(.mb-card__body),
  .mbpk-article .mb-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > :not(.mb-card__media):not(.mb-card__body),
  .mbpk-article .mb-slot-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > :not(.mb-card__media):not(.mb-card__body),
  .mbpk-page .mb-article .mb-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > :not(.mb-card__media):not(.mb-card__body),
  .mbpk-page .mb-article .mb-slot-grid--orphan-fix > .mb-card:last-child:nth-child(3n+1) > :not(.mb-card__media):not(.mb-card__body) {
    grid-column: 1;
    min-width: 0;
  }
}

/* Mobile hardening: no viewport overflow, buttons fit, tables scroll inside their wrapper. */
@media (max-width: 639px) {
  .mb-site-brand__logo {
    max-height: clamp(26px, 7.5vw, 40px);
  }

  .mb-site-header__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

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

  .mb-site-btn {
    padding-inline: 0.72em;
    min-height: 34px;
    font-size: 0.78rem;
  }

  :is(.mb-article, .mbpk-article, .mbpk-page .mb-article) {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border-inline: 0;
    padding-inline: clamp(14px, 4.2vw, 18px);
  }

  .mb-hero__media {
    border-radius: var(--mb-radius-lg);
  }

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

  .mb-cta {
    padding: clamp(16px, 4.5vw, 22px);
  }

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

  :is(.mb-article, .mbpk-article, .mbpk-page .mb-article) :is(a.mb-btn, button.mb-btn, .mb-btn) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .mb-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }

  table.mb-table {
    width: 100%;
    min-width: 600px;
  }

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

  .mb-footer-nav__list {
    align-items: stretch;
  }

  .mb-footer-nav__list > li {
    flex: 1 1 100%;
  }

  .mb-footer-nav__link {
    width: 100%;
  }
}
/* Подпись CTA-блока: раньше была <h3> и давала пропуск уровня h1→h3 (стандарт флота §1.4).
   Тег сменён на <p>, типографика сохранена один в один. */
.mb-article .mb-cta__title,
.mbpk-article .mb-cta__title {
  color: var(--mb-text);
  font-family: var(--mb-font);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-block-start: 0;
  margin-block-end: 0.62em;
  overflow-wrap: anywhere;
  break-after: avoid;
  font-size: clamp(1.32rem, 3vw, 2rem);
}

/* 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%;
  }
}

