/* =========================================================
   STORM — REGIONAL MANAGERS
   -----------------------------------------------------------
   Loads ON TOP of base-web-style.css.

   The page is almost entirely base: .spi-section-padded +
   .spi-container for the shell, .spi-section-header.is-center
   for the title, .spi-grid.spi-grid-3 for the card row,
   .ui-card for the card shell, .spi-split.has-gap.is-vcenter
   for the photo-beside-details layout, .spi-h3 for the region
   and .spi-eyebrow for the territory and the address.

   What is left below is only what base has no equivalent for:
   a person's NAME as a text style, and the couple of density
   tweaks a portrait card needs inside a three-up row.
   ========================================================= */

/* ---------------------------------------------------------
   1. CARD DENSITY
   .ui-card ships 28px of padding, which is right for a card
   holding a paragraph. These hold a headshot beside four short
   lines inside a third of the container, so the photo ends up
   around 110px and the copy gets squeezed. Pulling the padding
   in buys that back without touching the component anywhere
   else on the site.
--------------------------------------------------------- */
.rsm-card {
  padding: 20px;
}

/* The split is 50/50 by default. A headshot does not need half
   the card — the four lines of detail beside it do. Base has no
   ratio modifier on .spi-split, so the photo is sized here.

   It is sized by WIDTH with flex-basis left at auto, deliberately.
   Below 768px base turns the split into a column, and in a column
   a flex-basis is read as a HEIGHT — so `flex: 0 0 38%` there blew
   the headshot up to fill the card instead of shrinking it. */
.rsm-card .spi-split > .rsm-photo {
  flex: 0 0 auto;
  width: 38%;
  max-width: 140px;
  height: auto;
}

@media (max-width: 768px) {
  .rsm-card .spi-split > .rsm-photo {
    width: 120px;
  }
}

/* ---------------------------------------------------------
   2. PERSON NAME (.rsm-name)
   Base styles headings (.spi-h*), body copy (.spi-body) and
   small caps labels (.spi-eyebrow), but a person's name is
   none of those: it needs full-strength text colour at a size
   below the heading scale, and it must not be muted the way
   .spi-body is. Nothing in base covers it.
--------------------------------------------------------- */
.rsm-name {
  margin: 10px 0 2px;
  font-family: var(--spi-font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--spi-black);
}

/* The territory sits directly under its region heading, so it
   loses the eyebrow's default standalone spacing. */
.rsm-states {
  margin: 6px 0 0;
  line-height: 1.5;
}

.rsm-email {
  margin: 0;
  /* Addresses are long and the column is narrow. A <wbr> sits before
     the @ in the markup, so the break lands there — the same place the
     original page forced it with a <br> — and overflow-wrap only steps
     in if even that is not enough. `word-break: break-word` was
     splitting "…stormbowling.co / m" instead. */
  text-transform: none;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

/* The address is the point of the card, and as bare 12px text it
   was a 14px-tall tap target. Padding it out to the same height as
   a .btn on this breakpoint makes it actually tappable without
   changing the type or the card's proportions. */
/* `font: inherit` is load-bearing on the live site: the store theme sets
   `a, i, p, span { font-size: 16px; font-weight: 400 }`, which lands on
   the link directly and rendered the address at 16px instead of the
   eyebrow's 12px — overflowing its column at 1024px. */
.rsm-email a {
  font: inherit;
  display: inline-block;
  padding: 10px 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rsm-email a:hover {
  color: var(--spi-black);
}
