/* Layout QA pass: prevent card/grid breakdown and keep requested pages on-theme. */

:root {
  --mf-safe-card-bg: linear-gradient(180deg, rgba(11, 27, 24, 0.9), rgba(5, 13, 13, 0.96));
  --mf-safe-card-border: rgba(255, 216, 77, 0.18);
  --mf-safe-muted: rgba(231, 238, 232, 0.76);
}

body.mf-page-shell :where(.stl-container, .container) {
  max-width: min(1180px, calc(100vw - 32px));
}

body.mf-page-shell :where(.stl-section, .stl-section--alt) {
  overflow: clip;
}

body.mf-page-shell :where(
  .mf-route-grid,
  .mf-proof-grid,
  .mf-hub-grid,
  .mf-contact-grid,
  .mf-rail-grid,
  .mf-diaspora-live-grid,
  .mf-diaspora-route-grid,
  .mf-diaspora-story-grid,
  .mf-diaspora-country-grid,
  .mf-diaspora-command__body,
  .mf-diaspora-command__footer,
  .mf-diaspora-route-console__grid,
  .mf-africa-pathway-steps,
  .mf-africa-hero-route-board,
  .mf-africa-hero-stats
) {
  min-width: 0;
}

body.mf-page-shell :where(
  .mf-route-card,
  .mf-proof-card,
  .mf-hub-card,
  .mf-info-card,
  .mf-surface-card,
  .mf-form-shell,
  .mf-contact-panel,
  .mf-diaspora-stat,
  .mf-diaspora-country,
  .mf-diaspora-story,
  .mf-diaspora-route,
  .mf-diaspora-kpi,
  .mf-diaspora-pulse-item,
  .mf-africa-pathway-step
) {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.mf-diaspora-page .mf-diaspora-fix-hero {
  min-height: auto !important;
  align-items: center;
  padding: clamp(54px, 7vw, 88px) 0 clamp(24px, 4vw, 42px) !important;
}

body.mf-system-about .mf-editorial-hero,
body:not(.mf-system-about).mf-system-page .mf-editorial-hero {
  min-height: auto !important;
  padding-block: clamp(3.8rem, 7vw, 6rem) clamp(2rem, 4vw, 3.2rem) !important;
}

body.mf-system-about .mf-editorial-hero__grid,
body:not(.mf-system-about).mf-system-page .mf-editorial-hero__grid {
  align-items: center !important;
}

body.mf-system-about .mf-unified-hero-title,
body:not(.mf-system-about).mf-system-page .mf-unified-hero-title {
  max-width: 13ch;
  font-size: clamp(2.55rem, 5.4vw, 5.25rem) !important;
  line-height: 0.94 !important;
}

body.mf-system-about .mf-editorial-hero {
  position: relative;
  overflow: visible !important;
  padding-block: clamp(1.6rem, 3.5vw, 3rem) clamp(1.1rem, 2vw, 1.8rem) !important;
}

body.mf-system-about .mf-unified-hero-title {
  max-width: 30ch;
  font-size: clamp(1.9rem, 3.1vw, 2.9rem) !important;
  line-height: 1 !important;
}

body.mf-system-about .mf-lede {
  max-width: 58ch;
  margin-block: 0.5rem 0.65rem !important;
}

body.mf-system-about .mf-page-actions {
  margin-block: 0.5rem !important;
}

body.mf-system-about :where(.mf-hero-chip-row, .mf-anchor-row) {
  margin-top: 0.4rem !important;
  gap: 0.35rem !important;
}

body.mf-system-about :where(.mf-hero-chip-row span, .mf-anchor-row a) {
  padding: 0.34rem 0.56rem !important;
  font-size: 0.72rem !important;
}

body.mf-system-about .mf-editorial-hero__grid {
  max-width: min(1040px, calc(100vw - 32px)) !important;
  justify-items: center;
  text-align: center;
}

body.mf-system-about .mf-editorial-hero__panel {
  display: grid !important;
  width: min(100%, 920px);
  position: absolute;
  left: 50%;
  top: calc(100% + 0.85rem);
  transform: translateX(-50%);
  z-index: 2;
  margin-top: 0;
  padding: 0.75rem !important;
  text-align: left;
}

body.mf-system-about main#main-content {
  padding-top: clamp(17.25rem, 21vw, 19.25rem);
}

body.mf-system-about .mf-hero-side__copy {
  margin: 0.25rem 0 0.55rem !important;
  font-size: 0.82rem !important;
  line-height: 1.35 !important;
}

body.mf-system-about .mf-hero-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem !important;
}

body.mf-system-about .mf-hero-list article {
  min-width: 0;
  padding: 0.55rem !important;
}

body.mf-system-about .mf-hero-list small {
  font-size: 0.72rem !important;
  line-height: 1.35 !important;
}

body.mf-system-about [data-breadcrumbs] {
  min-height: 0 !important;
  margin-bottom: 0.28rem !important;
  font-size: 0.68rem !important;
  line-height: 1 !important;
}

body.mf-system-about [data-breadcrumbs] :where(a, span) {
  padding-block: 0.12rem !important;
}

body.mf-system-about .mf-anchor-row {
  justify-content: center !important;
}

body.mf-system-about .mf-anchor-row a {
  min-height: 0 !important;
}

body.mf-diaspora-page .mf-diaspora-fix-hero__grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr) !important;
  align-items: stretch !important;
  gap: clamp(14px, 2vw, 24px) !important;
}

body.mf-diaspora-page .mf-diaspora-fix-hero__copy h1 {
  max-width: 14ch !important;
  font-size: clamp(2.45rem, 6.2vw, 5.6rem) !important;
  line-height: 0.94 !important;
}

body.mf-diaspora-page .mf-diaspora-fix-hero__panel {
  align-self: stretch;
  max-width: 100%;
}

body.mf-diaspora-page .mf-diaspora-stat-grid,
body.mf-diaspora-page .mf-diaspora-hero-media,
body.mf-diaspora-page .mf-diaspora-hero-proof {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)) !important;
}

body.mf-africa-page .mf-africa-hero-grid--taste {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr) !important;
}

body.mf-africa-page .mf-command-search,
body.mf-africa-page .mf-africa-hero-route-board,
body.mf-africa-page .mf-africa-hero-stats {
  max-width: 100%;
}

body.mf-africa-page .mf-command-search__chips {
  grid-column: 1 / -1;
  min-width: 0;
}

body.mf-africa-page .mf-diaspora-command__body,
body.mf-africa-page .mf-diaspora-route-console__grid,
body.mf-africa-page .mf-african-talent-console__grid,
body.mf-africa-page .mf-podcast-follow-console__grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important;
}

body.mf-africa-page .mf-diaspora-command__footer {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)) !important;
}

.mf-official-source-board {
  display: grid;
  gap: clamp(0.9rem, 1.7vw, 1.25rem);
  border: 1px solid var(--mf-safe-card-border);
  border-radius: 22px;
  padding: clamp(1rem, 2vw, 1.35rem);
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 146, 70, 0.22), transparent 32%),
    radial-gradient(circle at 100% 15%, rgba(255, 216, 77, 0.15), transparent 30%),
    var(--mf-safe-card-bg);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.mf-official-source-board__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.mf-official-source-board__head h2 {
  max-width: 18ch;
  margin: 0.25rem 0 0;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 0.98;
}

.mf-official-source-board__head p {
  max-width: 68ch;
  margin: 0.55rem 0 0;
  color: var(--mf-safe-muted);
}

.mf-official-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 0.75rem;
}

.mf-official-source-card {
  display: grid;
  gap: 0.62rem;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0.85rem;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.045);
}

.mf-official-source-card:hover,
.mf-official-source-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 216, 77, 0.46);
  background: rgba(255, 216, 77, 0.08);
}

.mf-official-source-card small,
.mf-official-source-card span {
  color: var(--mf-safe-muted);
}

.mf-official-source-card small {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font: 800 0.66rem/1.2 "JetBrains Mono", monospace;
}

.mf-official-source-card strong {
  font-size: 1.02rem;
  line-height: 1.18;
}

.mf-official-source-card span {
  font-size: 0.9rem;
  line-height: 1.45;
}

body.mf-diaspora-page .mf-diaspora-pathway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 1rem;
}

body.mf-diaspora-page .mf-diaspora-pathway-card {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  line-height: 1.38;
}

body.mf-diaspora-page .mf-diaspora-card-row,
body.mf-diaspora-page .mf-diaspora-pathway-card__flags,
body.mf-diaspora-page .mf-diaspora-chip-row,
body.mf-diaspora-page .mf-diaspora-pathway-card__links,
body.mf-diaspora-page .mf-diaspora-pathway-card__sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem 0.55rem;
  align-items: center;
}

body.mf-diaspora-page .mf-diaspora-pathway-card__notes {
  display: grid;
  gap: 0.42rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.mf-diaspora-page .mf-diaspora-pathway-card__notes li {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 0.55rem;
  align-items: start;
  min-width: 0;
}

body.mf-diaspora-page .mf-diaspora-pathway-card__notes :where(strong, span),
body.mf-diaspora-page .mf-diaspora-pathway-card__links a,
body.mf-diaspora-page .mf-diaspora-pathway-card__sources a {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.mf-diaspora-page .mf-diaspora-pathway-card__links a,
body.mf-diaspora-page .mf-diaspora-pathway-card__sources a,
body.mf-diaspora-page .mf-diaspora-chip-row span {
  border: 1px solid rgba(255, 216, 77, 0.18);
  border-radius: 999px;
  padding: 0.25rem 0.45rem;
  background: rgba(255, 255, 255, 0.045);
  text-decoration: none;
}

body.mf-diaspora-overview-page #mf-diaspora-section-app {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.4rem);
}

body.mf-diaspora-overview-page .mf-diaspora-hub-command,
body.mf-diaspora-overview-page .mf-diaspora-hub-lower {
  display: grid;
  gap: clamp(1rem, 2vw, 1.4rem);
}

body.mf-diaspora-overview-page :where(
  .mf-diaspora-command,
  .mf-diaspora-route-console,
  .mf-official-source-board,
  .mf-diaspora-hub-lower > *,
  .mf-diaspora-hub-command > *
) {
  margin-block: 0 !important;
}

body.mf-diaspora-overview-page :where(
  .mf-diaspora-command__body,
  .mf-diaspora-route-console__grid,
  .mf-diaspora-country-grid,
  .mf-diaspora-story-grid,
  .mf-diaspora-live-grid,
  .mf-diaspora-route-grid
) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)) !important;
  gap: 0.9rem !important;
}

body.mf-diaspora-overview-page :where(
  .mf-diaspora-command,
  .mf-diaspora-route-console,
  .mf-official-source-board,
  .mf-diaspora-country,
  .mf-diaspora-story,
  .mf-diaspora-route,
  .mf-diaspora-stat,
  .mf-diaspora-mini-board,
  .mf-diaspora-route-panel
) {
  padding: clamp(0.9rem, 1.6vw, 1.15rem) !important;
}

body.mf-diaspora-overview-page :where(
  .mf-diaspora-command__top,
  .mf-diaspora-route-console__head,
  .mf-official-source-board__head
) {
  margin-bottom: 0 !important;
}

body.mf-diaspora-overview-page :where(
  .mf-diaspora-command__footer,
  .mf-diaspora-pulse-list,
  .mf-diaspora-meter-list
) {
  gap: 0.6rem !important;
}

body.mf-diaspora-overview-page .mf-diaspora-hub-lower {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  align-items: start;
}

@media (max-width: 900px) {
  body.mf-diaspora-page .mf-diaspora-fix-hero__grid,
  body.mf-africa-page .mf-africa-hero-grid--taste,
  body.mf-system-page .mf-editorial-hero__grid,
  body.mf-system-page .mf-contact-grid,
  body.mf-system-page .mf-rail-grid {
    grid-template-columns: 1fr !important;
  }

  body.mf-diaspora-page .mf-diaspora-fix-hero__panel,
  body.mf-africa-page .mf-africa-hero-panel {
    display: grid !important;
  }

  body.mf-diaspora-overview-page .mf-diaspora-hub-lower {
    grid-template-columns: 1fr;
  }

  body.mf-system-about .mf-hero-list {
    grid-template-columns: 1fr;
  }

  body.mf-system-about main#main-content {
    padding-top: 23rem;
  }
}

@media (max-width: 640px) {
  body.mf-page-shell :where(.stl-container, .container) {
    max-width: min(100% - 20px, 440px);
  }

  body.mf-page-shell :where(.mf-page-actions, .mf-diaspora-actions, .mf-unified-hero-actions) {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  body.mf-page-shell :where(.stl-btn, .btn) {
    width: 100%;
    justify-content: center;
  }

  body.mf-diaspora-page .mf-diaspora-pathway-card__notes li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  body.mf-diaspora-page .mf-diaspora-fix-hero__copy h1 {
    font-size: clamp(2.1rem, 12vw, 3.4rem) !important;
  }

  body.mf-africa-page .mf-command-search {
    grid-template-columns: 1fr !important;
  }

  .mf-official-source-board__head {
    display: grid;
  }
}

/* Diaspora overview v2: cleaner first screen and shorter dashboard. */
body.mf-diaspora-overview-page main#main-content .mf-diaspora-fix-hero {
  display: block !important;
  padding: clamp(1.2rem, 3vw, 2rem) 0 clamp(0.7rem, 1.8vw, 1rem) !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-fix-hero__grid {
  width: min(calc(100vw - 2rem), 1180px) !important;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.46fr) !important;
  gap: clamp(0.75rem, 1.5vw, 1rem) !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-fix-hero__copy,
body.mf-diaspora-overview-page main#main-content .mf-diaspora-fix-hero__panel,
body.mf-diaspora-overview-page main#main-content .mf-official-source-board,
body.mf-diaspora-overview-page main#main-content .mf-diaspora-hub-command,
body.mf-diaspora-overview-page main#main-content .mf-diaspora-hub-panel {
  border-radius: 8px !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-fix-hero__copy {
  padding: clamp(0.9rem, 1.6vw, 1.15rem) !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-fix-hero__copy h1 {
  max-width: 20ch !important;
  font-size: clamp(2rem, 4.5vw, 4.25rem) !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-fix-hero__copy p {
  max-width: 64ch !important;
  font-size: clamp(0.95rem, 1.3vw, 1.08rem) !important;
  line-height: 1.42 !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-route-strip,
body.mf-diaspora-overview-page main#main-content .mf-diaspora-hero-proof,
body.mf-diaspora-overview-page main#main-content .mf-diaspora-actions {
  gap: 0.42rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-fix-hero__panel {
  padding: 0.72rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-stat-grid,
body.mf-diaspora-overview-page main#main-content .mf-diaspora-hero-media {
  gap: 0.48rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-hero-media a {
  min-height: 5.4rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-fix-hero__panel .mf-diaspora-hero-media {
  display: none !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-fix-hero__panel .mf-diaspora-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-fix-hero__panel .mf-diaspora-stat-grid a {
  min-height: 4.4rem !important;
  padding: 0.55rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-hero-status {
  gap: 0.35rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-hero-status span {
  padding: 0.24rem 0.42rem !important;
  font-size: 0.58rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-section-nav {
  padding: 0.5rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-tabs {
  gap: 0.35rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-tabs a {
  min-height: 34px !important;
  padding: 0.45rem 0.72rem !important;
  font-size: 0.68rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-fix-content {
  padding-block: 0.65rem 1.25rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-fix-shell,
body.mf-diaspora-overview-page main#main-content #mf-diaspora-section-app {
  gap: 0.75rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-official-source-board {
  padding: 0.78rem !important;
  gap: 0.65rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-official-source-board__head {
  align-items: center !important;
}

body.mf-diaspora-overview-page main#main-content .mf-official-source-board__head h2 {
  max-width: none !important;
  font-size: clamp(1.15rem, 2vw, 1.65rem) !important;
  line-height: 1.05 !important;
}

body.mf-diaspora-overview-page main#main-content .mf-official-source-board__head p {
  max-width: 74ch !important;
  margin-top: 0.28rem !important;
  font-size: 0.82rem !important;
  line-height: 1.35 !important;
}

body.mf-diaspora-overview-page main#main-content .mf-official-source-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0.5rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-official-source-card {
  gap: 0.32rem !important;
  padding: 0.58rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-official-source-card span {
  display: none !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-hub-command {
  padding: 0.8rem !important;
  gap: 0.72rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-overview-lead {
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.58fr) !important;
  padding: 0.78rem !important;
  gap: 0.65rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-overview-lead h2 {
  font-size: clamp(1.3rem, 2.4vw, 2.1rem) !important;
  line-height: 1 !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-overview-kpis a {
  min-height: 3.6rem !important;
  padding: 0.45rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-overview-topline {
  grid-template-columns: minmax(0, 1.2fr) minmax(17rem, 0.48fr) !important;
  gap: 0.65rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-official-image-deck,
body.mf-diaspora-overview-page main#main-content .mf-diaspora-automation-panel,
body.mf-diaspora-overview-page main#main-content .mf-diaspora-control-deck,
body.mf-diaspora-overview-page main#main-content .mf-diaspora-live-board {
  padding: 0.72rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-overview-feature {
  grid-template-columns: minmax(12rem, 0.36fr) minmax(0, 1fr) !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-overview-feature .mf-diaspora-panel-head {
  padding: 0.75rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-official-image-card {
  min-height: 8rem !important;
  padding: 0.62rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-control-deck__top {
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.46fr) !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-quick-rail a,
body.mf-diaspora-overview-page main#main-content .mf-diaspora-stat-grid article {
  min-height: 3.8rem !important;
  padding: 0.55rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-toolbar {
  display: grid !important;
  grid-template-columns: minmax(10rem, 0.42fr) minmax(0, 0.78fr) !important;
  gap: 0.55rem !important;
  align-items: end !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-filter-chips {
  grid-column: 1 / -1 !important;
  gap: 0.28rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-live-board__head {
  padding-bottom: 0.55rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-interactive-grid {
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.36fr) !important;
  gap: 0.65rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-player-grid--tight {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.55rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-player-card {
  grid-template-columns: 4.8rem minmax(0, 1fr) !important;
  min-height: 0 !important;
  padding: 0.5rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-player-card__media {
  min-height: 5.8rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-player-card__body {
  padding: 0 !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-player-card__body p {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  font-size: 0.78rem !important;
  line-height: 1.28 !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-preview-card {
  min-height: 0 !important;
  padding: 0.72rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-hub-lower {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 0.75rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-country-panel,
body.mf-diaspora-overview-page main#main-content .mf-worldcup-verified--diaspora,
body.mf-diaspora-overview-page main#main-content .mf-diaspora-hub-lower > .mf-diaspora-hub-panel:last-child {
  grid-column: 1 / -1 !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-africa-map {
  min-height: 18rem !important;
}

body.mf-diaspora-overview-page main#main-content .mf-diaspora-pathway-grid,
body.mf-diaspora-overview-page main#main-content .mf-diaspora-story-grid,
body.mf-diaspora-overview-page main#main-content .mf-diaspora-fixture-grid,
body.mf-diaspora-overview-page main#main-content .mf-worldcup-verified__grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)) !important;
  gap: 0.55rem !important;
}

@media (max-width: 900px) {
  body.mf-diaspora-overview-page main#main-content .mf-diaspora-fix-hero__grid,
  body.mf-diaspora-overview-page main#main-content .mf-diaspora-overview-lead,
  body.mf-diaspora-overview-page main#main-content .mf-diaspora-overview-topline,
  body.mf-diaspora-overview-page main#main-content .mf-diaspora-control-deck__top,
  body.mf-diaspora-overview-page main#main-content .mf-diaspora-interactive-grid,
  body.mf-diaspora-overview-page main#main-content .mf-diaspora-hub-lower {
    grid-template-columns: 1fr !important;
  }

  body.mf-diaspora-overview-page main#main-content .mf-official-source-grid,
  body.mf-diaspora-overview-page main#main-content .mf-diaspora-player-grid--tight {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  body.mf-diaspora-overview-page main#main-content .mf-official-source-grid,
  body.mf-diaspora-overview-page main#main-content .mf-diaspora-player-grid--tight,
  body.mf-diaspora-overview-page main#main-content .mf-diaspora-toolbar {
    grid-template-columns: 1fr !important;
  }

  body.mf-diaspora-overview-page main#main-content .mf-diaspora-player-card {
    grid-template-columns: 4.5rem minmax(0, 1fr) !important;
  }

  body.mf-diaspora-overview-page main#main-content .mf-diaspora-fix-hero__panel {
    display: none !important;
  }
}

@media (min-width: 761px) {
  html body.mf-page-shell.mf-diaspora-page.mf-diaspora-overview-page main#main-content .mf-diaspora-fix-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.46fr) !important;
  }

  html body.mf-page-shell.mf-diaspora-page.mf-diaspora-overview-page main#main-content #mf-diaspora-section-app .mf-diaspora-hub-lower,
  html body.mf-page-shell.mf-diaspora-page.mf-diaspora-overview-page main#main-content #mf-diaspora-section-app .mf-diaspora-country-board,
  html body.mf-page-shell.mf-diaspora-page.mf-diaspora-overview-page main#main-content #mf-diaspora-section-app #mf-diaspora-live-board .mf-diaspora-interactive-grid {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.42fr) !important;
  }
}

@media (max-width: 820px) {
  html body.mf-diaspora-page main#main-content .mf-diaspora-route-strip,
  html body.mf-diaspora-page main#main-content .mf-diaspora-control-spotlights__grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;
    grid-auto-columns: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    gap: 0.5rem !important;
    padding-bottom: 0 !important;
  }

  html body.mf-diaspora-page main#main-content .mf-diaspora-control-tile,
  html body.mf-diaspora-page main#main-content .mf-diaspora-route-strip button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    transform: none !important;
  }

  html body.mf-diaspora-page main#main-content .mf-diaspora-control-metrics,
  html body.mf-diaspora-page main#main-content .mf-diaspora-country-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;
    grid-auto-columns: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  html body.mf-diaspora-page main#main-content .mf-diaspora-control-metrics a,
  html body.mf-diaspora-page main#main-content .mf-diaspora-country-button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}
