/*
 * DPG Board guarantee layer.
 *
 * The child theme owns the board layout. This file only guarantees what a
 * comparison row must never lose whatever the theme does: a painted, readable
 * button, digits that never break in half, tabular figures, a closed expander
 * that stays on one line, and a phone row that stays a compact card.
 * No colour is set on a body text node, so the theme keeps its own contrast.
 */

/* Figures and money amounts never break and never jitter as they change. */
.dpg-board__fig-val,
.dpg-board__offer,
.dpg-board__nb {
  font-variant-numeric: tabular-nums;
}

.dpg-board__fig-val {
  white-space: nowrap;
}

.dpg-board__nb {
  white-space: nowrap;
  display: inline-block;
}

/* The button is a painted object: fill, 2px border on every side, hard shadow,
   and a hit box the same size as the painted box. */
.dpg-board__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 160px;
  padding: 11px 16px;
  border-radius: 10px;
  border: 2px solid #0b2a6b;
  background-color: #1d4ed8;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.dpg-board__cta:hover {
  background-color: #1e3fae;
  border-color: #08205a;
  transform: translateY(-1px);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.35);
}

.dpg-board__cta:focus-visible {
  outline: 3px solid #0f172a;
  outline-offset: 3px;
}

.dpg-board__cta:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

/* The closed expander stays on one line and is never clipped.
   The theme has been seen to strip a bare summary marker, so the row draws its
   own: a quiet plus that becomes a minus while the panel is open. */
.dpg-board__more > summary {
  cursor: pointer;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  list-style: none;
}

.dpg-board__more > summary::-webkit-details-marker {
  display: none;
}

.dpg-board__more > summary::before {
  content: "+";
  display: inline-block;
  width: 1.1em;
  margin-right: 0.35em;
  font-weight: 800;
  text-decoration: none;
}

.dpg-board__more[open] > summary::before {
  content: "\2212";
}

.dpg-board__more > summary:hover {
  text-decoration-thickness: 2px;
}

/* Long chip text wraps instead of clipping, and money pairs stay whole. */
.dpg-board__t {
  overflow-wrap: anywhere;
}

.dpg-board__more-body li,
.dpg-board__more-body p {
  overflow-wrap: anywhere;
}

/* A row is never clipped: nothing on the band may hide an overflowing line. */
.dpg-board__row,
.dpg-board__band {
  overflow: visible;
}

@media (prefers-reduced-motion: reduce) {
  .dpg-board__cta {
    transition: none;
  }

  .dpg-board__cta:hover,
  .dpg-board__cta:active {
    transform: none;
  }
}

/* Phone: the button takes the whole width of the card and the row stops
   trying to be a table. */
@media (max-width: 600px) {
  .dpg-board__cta {
    width: 100%;
    min-width: 0;
  }

  .dpg-board__act {
    align-self: stretch;
  }
}
