/* ==========================================================================
   Benchmark Money — bank account pages
   --------------------------------------------------------------------------
   Sits on top of card-single.css, which supplies the tokens, the section
   headings and the definition-list rows. Only what is specific to an account
   page lives here: the fact strip, the not-a-bank notice, and the warn tone
   on a prose block.
   ========================================================================== */

.bm-as { --as-warn-bg: #fff4d6; --as-warn-line: #e0c469; }

/* ---------- Generated artwork ----------
   The account equivalent of the card face. No logo, because an institution's
   own mark on this page would imply they endorsed it, and no chip, because
   this is not a card. Hue comes from the same hash the card artwork uses, so
   an institution is one colour across the site. */

.bm-as__art {
  position: relative;
  width: 100%;
  aspect-ratio: 1.45;
  border-radius: 10px;
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(150deg,
    hsl(var(--art-hue) 32% 32%) 0%,
    hsl(var(--art-hue) 30% 23%) 58%,
    hsl(calc(var(--art-hue) + 16) 32% 18%) 100%);
}

.bm-as__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 46%);
}

.bm-as__artmark {
  position: absolute;
  top: 13px;
  left: 15px;
  font-family: var(--bm-serif, Georgia, serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.92;
}

.bm-as__artinst { font-size: 14px; font-weight: 650; line-height: 1.25; }

.bm-as__arttype {
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.82;
}

/* ---------- The second action, beside the outbound button ---------- */

.bm-as__cta2 {
  display: inline-block;
  margin-left: 12px;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--cs-accent-d);
}

.bm-as .bm-cs__badge.bm-as__badge--warn {
  background: var(--as-warn-bg);
  color: #6b4e00;
}

/* ---------- The notice that must not be missable ---------- */

.bm-as .bm-cs__notice {
  border: 1px solid var(--as-warn-line);
  border-left-width: 4px;
  background: var(--as-warn-bg);
  border-radius: var(--cs-radius);
  padding: 14px 16px;
  margin: 0 0 18px;
  font-size: 15px;
}

.bm-as .bm-cs__notice p { margin: 0; }

/* ---------- Prose blocks ---------- */

.bm-as .bm-cs__prose {
  background: var(--cs-plane);
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
  padding: 14px 16px;
  font-size: 15px;
}

.bm-as .bm-cs__prose--warn {
  background: var(--as-warn-bg);
  border-color: var(--as-warn-line);
}

.bm-as .bm-cs__disclaimer {
  margin-top: 24px;
  font-size: 13px;
  color: var(--cs-muted);
  line-height: 1.5;
}

/* ---------- Directory tag for a provider that is not a bank ---------- */

.bm-dir__tag--warn {
  background: #fff4d6;
  color: #6b4e00;
  border-color: #e0c469;
}

/* ---------- A row whose value is a sentence ---------- */

.bm-as .bm-as__row--long {
  display: block;
  padding: 12px 0;
}

.bm-as .bm-as__row--long dt {
  font-size: 13px;
  color: var(--cs-ink-2);
  margin-bottom: 4px;
}

.bm-as .bm-as__row--long dd {
  margin: 0;
  text-align: left;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
}
