/* Editorial rhythm for solution pages. Frames are reserved for comparisons and diagrams. */
.tally-services {
  --service-gap: clamp(2rem, 5vw, 4.5rem);
  --service-row-gap: clamp(1.2rem, 3vw, 2.7rem);
}

.tally-services main:not(.tally-home) :is(.solution-overview, .retrofit-overview) {
  padding-top: var(--service-gap);
  padding-bottom: 0;
}

.tally-services main .services-lead h1,
.tally-services main .storage-page-hero h1 {
  max-width: 21ch;
  font-size: clamp(2.15rem, 4.2vw, 3.9rem);
  line-height: 1.04;
  text-wrap: balance;
}

.tally-services :is(.services-lead, .storage-page-hero) .lede {
  max-width: 58ch;
}

.tally-services :is(.services-action, .storage-action) {
  margin-block-start: 1.2rem;
}

.tally-services .solution-compare {
  border: 1px solid var(--line);
}

.tally-services .solution-compare .solution-option {
  padding: var(--content-inset);
}

.tally-services .solution-option dl {
  margin-block: .6rem 1rem;
}

.tally-services .solution-option dl > div:last-child {
  border-bottom: 0;
}

.tally-services .solution-option h2 {
  max-width: 23ch;
}

.tally-services .solution-option .go {
  align-self: end;
}

.tally-services main:not(.tally-home) :is(.solution-story, .solution-check, .monitoring-information, .monitoring-support, .monitoring-scope) {
  padding-block: 0;
  margin-block-start: var(--service-gap);
}

.tally-services .solution-story .wrap,
.tally-services .solution-check .wrap,
.tally-services :is(.monitoring-information, .monitoring-support, .monitoring-scope) > .wrap {
  padding-block-start: var(--service-row-gap);
  border-block-start: 1px solid var(--line);
}

.tally-services .solution-story .wrap {
  grid-template-columns: minmax(0, .59fr) minmax(0, 1.41fr);
  column-gap: var(--service-row-gap);
}

.tally-services .solution-story .section-head h2 {
  max-width: 24ch;
}

.tally-services .solution-story .section-head p {
  margin-block-start: .55rem;
}

.tally-services .solution-timeline > li + li {
  margin-block-start: 1.18rem;
}

.tally-services .solution-check .solution-check-grid {
  align-items: start;
  gap: var(--service-row-gap);
}

.tally-services main:not(.tally-home) .audience-hero,
.tally-services main:not(.tally-home) .storage-page-hero,
.tally-services main:not(.tally-home) .monitoring-hero {
  padding-block: var(--service-gap) 0;
}

.tally-services .audience-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--service-row-gap);
  align-items: end;
}

.tally-services .audience-schedule {
  background: var(--panel);
  border-block-start: 1px solid var(--line);
}

.tally-services .audience-schedule .schedule-header h2 {
  font-size: clamp(1.16rem, 1.8vw, 1.52rem);
  line-height: 1.15;
}

.tally-services .audience-schedule .schedule-rows {
  margin-block-start: .8rem;
}

.tally-services .audience-case > p:first-child {
  margin-block-start: 0;
}

.tally-services .audience-register > div {
  grid-template-columns: minmax(0, .58fr) minmax(0, 1.42fr);
  column-gap: clamp(1rem, 3vw, 2rem);
}

.tally-services .audience-register :is(dt, dd) {
  min-inline-size: 0;
}

.tally-services .audience-inputs .editorial-rules a {
  text-underline-offset: .2em;
}

.tally-services main:not(.tally-home) .cta-band {
  padding-block-start: 0;
  margin-block-start: var(--service-gap);
}

.tally-services .cta-band .panel {
  column-gap: var(--service-row-gap);
}

.tally-services .storage-layout {
  gap: var(--service-row-gap);
}

.tally-services .storage-modes {
  padding: clamp(.9rem, 2vw, 1.45rem);
  margin-block-start: 1.55rem;
}

.tally-services .storage-modes > figcaption {
  font: 500 var(--f-sm) / 1.4 var(--sans);
  color: var(--text);
  margin: 0 0 .65rem;
}

.tally-services .storage-modes details:last-child {
  border-bottom: 0;
}

.tally-services .storage-modes details > summary {
  border-radius: 3px;
}

.tally-services .retrofit-audit {
  gap: var(--service-row-gap);
  border-block-start: 1px solid var(--line);
  padding-block-start: var(--service-row-gap);
}

.tally-services .retrofit-upgrade {
  padding-block: var(--service-row-gap) 0;
  margin-block: var(--service-gap) 0;
  gap: var(--service-row-gap);
}

.tally-services .retrofit-photo img {
  aspect-ratio: 16 / 10;
  object-position: center 45%;
}

.tally-services .monitoring-map {
  background: var(--panel);
}

.tally-services .monitoring-support-grid {
  gap: var(--service-row-gap);
}

.tally-services .monitoring-support-grid section {
  border-block-start: 1px solid var(--line);
}

@media (max-width: 52rem) {
  .tally-services :is(.audience-hero-grid, .solution-story .wrap, .solution-check-grid) {
    grid-template-columns: minmax(0, 1fr);
  }
  .tally-services .solution-story .wrap {
    row-gap: 1.15rem;
  }
}
@media (max-width: 43rem) {
  .tally-services .solution-option + .solution-option {
    border-inline-start: 0;
    border-block-start: 1px solid var(--line);
  }
  .tally-services .audience-register > div {
    grid-template-columns: minmax(0, 1fr);
    row-gap: .3rem;
  }
}
