/* Final mobile cascade guard for the 2026-07-11 UI refresh.
   Loaded after the legacy bundle so later compatibility rules cannot undo it. */
@media (max-width: 620px) {
  .mobile-feature-tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .mobile-feature-tabs button {
    width: 100%;
  }

  .decision-hero-copy {
    min-height: 228px;
  }

  .decision-mascot {
    top: 60px;
    right: 0;
    bottom: auto;
    width: 114px;
    max-width: 33%;
  }

  .decision-mascot img {
    width: 100%;
    max-width: none;
  }

  .decision-mascot p {
    display: block;
    top: auto;
    right: calc(100% + 8px);
    bottom: 12px;
    left: auto;
    width: min(180px, calc(100vw - 140px));
    max-width: none;
    padding: 8px 10px;
    font-size: 10px;
    line-height: 1.45;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px) scale(0.97);
    pointer-events: none;
  }

  .decision-hero-copy.is-mascot-talking {
    margin-bottom: 0;
  }

  .decision-mascot.is-talking p {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .decision-company > strong {
    font-size: 14.25px;
    line-height: 1.25;
  }

  .decision-code {
    font-size: 10.5px;
  }

  .decision-strategy,
  .decision-current small,
  .decision-level small {
    font-size: 10px;
  }

  .decision-current b {
    font-size: 13px;
  }

  .decision-level strong {
    font-size: 16px;
  }

  .decision-rank {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }

  .decision-candidate {
    grid-template-columns: 36px minmax(0, 1fr) minmax(102px, 30%);
    min-height: 124px;
  }
}

@media (min-width: 351px) and (max-width: 620px) {
  .decision-company {
    min-width: 0;
  }

  .decision-company > strong {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.25;
    overflow-wrap: anywhere;
    text-overflow: ellipsis;
    white-space: normal;
    letter-spacing: -0.025em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 350px) {
  .decision-hero-copy {
    min-height: 216px;
  }

  .decision-mascot {
    top: 46px;
    width: 94px;
    max-width: 29%;
  }

  .decision-mascot p {
    right: calc(100% + 4px);
    bottom: 10px;
    width: min(168px, calc(100vw - 126px));
  }

  .decision-company > strong {
    font-size: 14.5px;
  }

  .decision-level strong {
    font-size: 15.5px;
  }

  .decision-candidate {
    grid-template-columns: 36px minmax(0, 1fr) minmax(98px, 31%);
    min-height: 132px;
  }
}
