/*
 * RC4.8.3 Build 6.2.8.16.9.7.7.6.5.4.2.3.15.4.4.4.2.1
 * BMAP-06A.2.1 – Matches DICD Equal Card Geometry, Row Rhythm & Responsive Alignment Final Repair Gate.
 * Presentation-only geometry repair. No content, href, action, route, provider or runtime mutation.
 */
@media (min-width: 981px) {
  /* Equal implicit row tracks: intrinsic, content-safe and not tied to a fixed pixel card height. */
  #btc-matches-phase-c-golden-screen.btc-matches-dicd-visual-semantics .btc-matches-golden-grid {
    grid-auto-rows: 1fr !important;
    align-items: stretch !important;
  }

  /* Carry the equal grid track height through the complete projection chain. */
  #btc-matches-phase-c-golden-screen.btc-matches-dicd-visual-semantics .btc-fpm2-slot[data-btc-dicd-primary="true"] {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
  }
  #btc-matches-phase-c-golden-screen.btc-matches-dicd-visual-semantics .btc-fpm2-slot[data-btc-dicd-primary="true"] > .btc-fpm2-slot__body,
  #btc-matches-phase-c-golden-screen.btc-matches-dicd-visual-semantics .btc-fpm2-slot[data-btc-dicd-primary="true"] .btc-fpm2-capability-ref,
  #btc-matches-phase-c-golden-screen.btc-matches-dicd-visual-semantics .btc-fpm2-slot[data-btc-dicd-primary="true"] .btc-fpm2-native-projection-clone {
    display: flex !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    width: 100% !important;
  }
  #btc-matches-phase-c-golden-screen.btc-matches-dicd-visual-semantics .btc-fpm2-slot[data-btc-dicd-primary="true"] .btc-phase-a-capability {
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 150px !important;
    align-content: center !important;
  }

  /* Stable CTA baseline within every equal-height card. */
  #btc-matches-phase-c-golden-screen.btc-matches-dicd-visual-semantics .btc-fpm2-slot[data-btc-dicd-primary="true"] .btc-phase-a-cap-arrow {
    align-self: center !important;
  }
}

/* Tablet/mobile keep intrinsic content height; only rhythm and control alignment stay standardized. */
@media (max-width: 980px) {
  #btc-matches-phase-c-golden-screen.btc-matches-dicd-visual-semantics .btc-matches-golden-grid {
    grid-auto-rows: auto !important;
  }
  #btc-matches-phase-c-golden-screen.btc-matches-dicd-visual-semantics .btc-fpm2-slot[data-btc-dicd-primary="true"] {
    height: auto !important;
  }
  #btc-matches-phase-c-golden-screen.btc-matches-dicd-visual-semantics .btc-fpm2-slot[data-btc-dicd-primary="true"] .btc-phase-a-capability {
    height: auto !important;
  }
}
