/* Align the work-guide comparison and the cost/outage readouts only. */
#work-guide .work-mosaic { align-items: stretch; }
#work-guide .work-mosaic > .work-entry { align-items: start; }
#work-guide .work-entry__caption {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: stretch;
  justify-content: space-between;
  row-gap: 6px;
  min-inline-size: 0;
}
#work-guide .work-entry__caption small { margin-block-start: 0; }

@media (min-width: 901px) {
  #work-guide .work-mosaic > .work-entry:first-child strong {
    white-space: nowrap;
  }
}
@media (min-width: 901px) {
  #work-guide .work-mosaic {
    grid-template-columns: minmax(max-content, 1.18fr) repeat(3, minmax(max-content, 1fr));
  }
}

@media (min-width: 901px) and (max-width: 1150px) {
  #work-guide .work-mosaic { column-gap: 16px; }
  #work-guide .work-mosaic > .work-entry {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    row-gap: 4px;
  }
}
@media (max-width: 900px) {
  #work-guide .work-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  #work-guide .work-mosaic > .work-entry {
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 4px;
  }
  #work-guide .work-entry__caption small { white-space: nowrap; }
}

.work-detail .paired-part--cost,
.work-detail .paired-part--outage {
  --work-estimate-inset: 16px;
}
.work-detail .paired-part--cost > .item-heading,
.work-detail .paired-part--cost > .amount,
.work-detail .paired-part--outage > .item-heading {
  padding-inline-start: var(--work-estimate-inset);
}
.work-detail .paired-part--outage .outage-card,
.work-detail .paired-part--outage .single-outage {
  padding-inline-start: var(--work-estimate-inset);
}
.work-detail .paired-part--outage .outage-grid { align-items: stretch; }
.work-detail .paired-part--outage .outage-card {
  display: flex;
  flex-direction: column;
}
.work-detail .paired-part--outage .outage-card dd { margin: auto 0 0; }

.work-detail .paired-part--outage .outage-value {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  white-space: nowrap;
  overflow-wrap: normal;
}
.work-detail .paired-part--outage .outage-value .digits {
  white-space: nowrap;
  overflow-wrap: normal;
}
.work-detail .paired-part--outage .outage-value .pre:empty { display: none; }

@media (max-width: 900px) {
  .work-detail .paired-part--cost,
  .work-detail .paired-part--outage { --work-estimate-inset: 8px; }
  .work-detail .paired-part--outage .outage-card { padding-inline-end: 8px; }
  .work-detail .paired-part--outage .outage-grid { column-gap: 8px; }
}

/* Keep the existing large-text accessibility mode free to use a single column. */
@media (min-width: 901px) {
  .large-text #work-guide .work-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .large-text #work-guide .work-mosaic > .work-entry:first-child strong { white-space: normal; }
}

.large-text #work-guide .work-entry__caption small { white-space: normal; }
