/* =========================================================================
   Component — info cards (U-2273, redesign R5c)
   -------------------------------------------------------------------------
   A row of short facts, each a card with an icon box beside a title and one
   or two lines. Shared by every page that needs one; the billing page is the
   first.

     <div class="info-cards">
       <div class="card info-card">
         <span class="iconbox"><span class="ico">…</span></span>
         <div class="info-card-text"><p class="info-card-title">…</p><p>…</p></div>
       </div>
     </div>

   The row takes as many columns as fit at 240px each, so three cards stand
   side by side on a wide page and stack on a phone, with no breakpoint of
   its own. The icon is decoration: the title carries the meaning.
   ========================================================================= */

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--space-md);
}

/* The card's own column direction gives way to a row: the box beside the text. */
.card.info-card {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.info-card-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.info-card-text > p {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--doc-ink-soft);
  overflow-wrap: anywhere;
}

.info-card-text > .info-card-title {
  font-size: var(--text-body);
  line-height: var(--text-body-lh);
  font-weight: 700;
  color: var(--doc-ink);
}

/* The SIDES icon box: 34px, radius 6, the icon in the link colour. */
.iconbox {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--icon-bg);
  color: var(--sd-secondary);
}

.iconbox .ico {
  width: 18px;
  height: 18px;
  font-size: 18px;
}
