/* SynMax Maritime: site-specific styles (child theme). Loaded by functions.php, mirroring energy.css on the energy site. */

/* ---- Feature cards that carry our landscape diagram SVGs (mar-panel-*, mar-dash-*) ----
   The parent card is a fixed 544px box with the image as a full-card background and the
   text panel floating over it; §14.15 then covers SVGs anchored to the top. That suits the
   theme's own portrait card art, but blows up a landscape diagram. For these cards only
   (photo cards elsewhere are untouched), stack image then panel: the image keeps its own
   shape, shows whole, and the panel sits below it instead of over it. */
.sm-featcard:has(img[src*="/mar-panel-"], img[src*="/mar-dash-"]) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 0;
}
.sm-featcard:has(img[src*="/mar-panel-"], img[src*="/mar-dash-"]) figure.sm-featcard__media {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  overflow: hidden;
}
/* the theme's caption fade darkens the image bottom for overlaid text; no text overlays it now */
.sm-featcard:has(img[src*="/mar-panel-"], img[src*="/mar-dash-"]) figure.sm-featcard__media::after { content: none; }
.synmax .sm-featcard:has(img[src*="/mar-panel-"], img[src*="/mar-dash-"]) figure.sm-featcard__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background-color: #081220;
}
/* panel fills the rest, so cards in a row stay the same height */
.sm-featcard:has(img[src*="/mar-panel-"], img[src*="/mar-dash-"]) .sm-featcard__panel { flex: 1 1 auto; }

/* Category label: one line, so titles line up across a row */
.sm-featcard__kicker { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Data line: under the label, quieter than the label, numbers aligned */
.sm-featcard__stat {
  margin: -0.35em 0 0.9em;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #D7F4FF;
  font-variant-numeric: tabular-nums;
}