/* =========================================================================
   Component — split: prose beside something
   Two columns above 900 px, stacked below it — the same breakpoint the top
   navigation collapses at (DESIGN_TOKENS.md §7).
   ========================================================================= */

.split {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.split > :last-child > :last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   Component — split with an aside (U-2273, redesign R5c)
   -------------------------------------------------------------------------
   A wide main column and a narrow side column of at most 360px, for a page
   whose aside holds one decision beside its tables. No breakpoint: the two
   wrap when the main column would fall below 480px, and the aside then takes
   the full width under it.
   ========================================================================= */

.split-aside {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: flex-start;
}

.split-aside > .split-aside-main {
  flex: 999 1 480px;
  min-width: 0;
}

.split-aside > .split-aside-side {
  flex: 1 1 360px;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Paired with `[hidden]`, because `display` above defeats it otherwise: the
   billing page hides its aside when there is no next tier, and a hidden aside
   must not hold a 360px column open (U-2273). */
.split-aside > .split-aside-side[hidden] {
  display: none;
}
