/* =====================================================================
   Safety bulletin cards. Prefix: sbc-.
   Used by the bulletins index and by the "Related safety bulletins" block
   that scripts/build-bulletins.mjs writes onto product pages.

   Self-contained, like site-footer-2026.css: the legacy product pages
   (EAS, WARNY, Telematics) do not load home-2026.css, so every token has a
   literal fallback, sizes are px (never rem), and every rule is two classes
   deep so it outranks style.css's bare h2 / p / a / li rules and
   body.active-light-mode.
   ===================================================================== */

:where(.sbc-rel, .sbc-index) *,
:where(.sbc-rel, .sbc-index) *::before,
:where(.sbc-rel, .sbc-index) *::after { box-sizing: border-box; }

/* ========================================================== THE CARD */
.sbc-grid .sbc-card,
.sbc-rel .sbc-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--hp-line-mid, #dde6f1);
  border-radius: var(--hp-radius, 18px);
  background: #fff;
  color: var(--hp-ink, #0d1526);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  text-decoration: none;
  transition: box-shadow 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}
.sbc-grid .sbc-card:hover,
.sbc-rel .sbc-card:hover {
  color: var(--hp-ink, #0d1526);
  border-color: var(--hp-line, #e8eef6);
  transform: translateY(-3px);
  box-shadow: var(--hp-sh-hover, 0 18px 44px rgba(7, 110, 232, 0.20), 0 2px 6px rgba(4, 19, 73, 0.06));
}
.sbc-grid .sbc-card:focus-visible,
.sbc-rel .sbc-card:focus-visible { outline: 2px solid var(--hp-blue, #076EE8); outline-offset: 4px; }
.sbc-grid .sbc-card[hidden] { display: none; }

.sbc-card .sbc-card__media { position: relative; display: block; aspect-ratio: 2 / 1; overflow: hidden; background: var(--hp-deep, #02102f); }
.sbc-card .sbc-card__media img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.sbc-card .sbc-card__ill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(2, 16, 47, 0.62);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}

.sbc-card .sbc-card__body { display: block; padding: 26px 28px 30px; }
.sbc-card .sbc-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sbc-card .sbc-card__k {
  color: var(--hp-muted, #65676b);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sbc-card .sbc-tag,
.sbc-rel .sbc-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 11px;
  border-radius: 100px;
  background: #fff4e5;
  color: #8a5a12;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}
.sbc-card .sbc-card__t {
  display: block;
  margin: 14px 0 0;
  padding: 0;
  color: var(--hp-ink, #0d1526);
  font-family: inherit;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.5px;
  transition: color 0.2s ease;
}
.sbc-card:hover .sbc-card__t { color: var(--hp-blue, #076EE8); }
.sbc-card .sbc-card__s { display: block; margin-top: 10px; color: var(--hp-body, #4b5563); font-size: 15.5px; line-height: 1.6; }
.sbc-card .sbc-card__m { display: block; margin-top: 14px; color: var(--hp-muted, #65676b); font-size: 14px; line-height: 1.5; }

/* Row: the image beside the text. Compact on product pages. */
.sbc-rel .sbc-card--row,
.sbc-grid .sbc-card--row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 16px;
}
.sbc-card--row .sbc-card__media { aspect-ratio: auto; height: 118px; border-radius: var(--hp-radius-sm, 10px); }
.sbc-card--row .sbc-card__body { padding: 0; }
.sbc-card--row .sbc-card__t { margin-top: 8px; font-size: 18.5px; line-height: 1.32; letter-spacing: -0.2px; }
.sbc-card--row .sbc-card__m { margin-top: 6px; font-size: 13.5px; }

/* ========================================================= THE INDEX */
.sbc-index { padding: 8px 0 0; }
.sbc-index .sbc-filter { display: none; }
.has-js .sbc-index .sbc-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; }
.sbc-index .sbc-chip {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--hp-chip-line, #dfe8f1);
  border-radius: 100px;
  background: var(--hp-chip-bg, #eef3f8);
  color: var(--hp-navy, #041349);
  font: 600 14px/1 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.sbc-index .sbc-chip:hover { border-color: var(--hp-blue, #076EE8); }
.sbc-index .sbc-chip[aria-pressed="true"] { border-color: var(--hp-navy, #041349); background: var(--hp-navy, #041349); color: #fff; }
.sbc-index .sbc-chip:focus-visible { outline: 2px solid var(--hp-blue, #076EE8); outline-offset: 3px; }
.sbc-index .sbc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
/* Index cards are the compact size: three to a row, newest first. */
.sbc-index .sbc-card .sbc-card__media { aspect-ratio: 16 / 9; }
.sbc-index .sbc-card .sbc-card__body { padding: 20px 22px 24px; }
.sbc-index .sbc-card .sbc-card__t { margin-top: 12px; font-size: 19px; line-height: 1.3; letter-spacing: -0.3px; }
.sbc-index .sbc-card .sbc-card__s { margin-top: 8px; font-size: 14.5px; line-height: 1.55; }
.sbc-index .sbc-card .sbc-card__m { margin-top: 12px; font-size: 13px; }
.has-js .sbc-index .sbc-filter + .sbc-grid { margin-top: 28px; }

/* ================================================ ON A PRODUCT PAGE */
.sbc-rel.sbc-rel { padding: 24px 0 96px; background: transparent; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.sbc-rel .sbc-rel__shell { width: 100%; max-width: 1302px; margin: 0 auto; padding: 0 12px; }
.sbc-rel .sbc-rel__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin: 0 0 22px; }
.sbc-rel .sbc-rel__title {
  margin: 0;
  padding: 0;
  color: var(--hp-ink, #0d1526);
  font-family: inherit;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.7px;
}
.sbc-rel .sbc-rel__all { display: inline-flex; gap: 7px; color: var(--hp-blue, #076EE8); font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.sbc-rel .sbc-rel__all:hover { color: var(--hp-navy, #041349); }
.sbc-rel .sbc-rel__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

/* ========================================================== RESPONSIVE */
@media (max-width: 1099px) {
  .sbc-index .sbc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sbc-rel .sbc-rel__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .sbc-index .sbc-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 32px; }
  .has-js .sbc-index .sbc-filter { margin-top: 32px; }
  .sbc-card .sbc-card__body { padding: 20px 20px 24px; }
  .sbc-card .sbc-card__t { font-size: 20px; }
  .sbc-rel.sbc-rel { padding: 16px 0 64px; }
  .sbc-rel .sbc-rel__title { font-size: 24px; }
  .sbc-rel .sbc-card--row { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 12px; }
  .sbc-card--row .sbc-card__media { height: 88px; }
  .sbc-card--row .sbc-card__t { font-size: 16.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .sbc-grid .sbc-card,
  .sbc-rel .sbc-card { transition: none; }
  .sbc-grid .sbc-card:hover,
  .sbc-rel .sbc-card:hover { transform: none; }
}
