/* Firebase-owned report theme overrides belong here. The report's verified
   values and structure remain generated by the isolated report worker. */

/* Display headings are 35% smaller on screen. Preserve printed/PDF typography,
   plan names, bill amounts, comparison values and all report calculations. */
@media screen {
  .hero h1 { font-size: clamp(36.4px, 6.5vw, 67.6px); }
  h2 { font-size: 29.25px; }
}
@media screen and (max-width: 560px) {
  .hero h1 { font-size: clamp(24.7px, 9.1vw, 33.8px); }
  h2 { font-size: clamp(20.8px, 7.15vw, 27.3px); }
}

@media (max-width: 560px) {
  .report-delivery-help input {
    font-size: 16px;
  }
}

.referral-link {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 6px;
  background: #e28a54;
  color: #101820;
  text-decoration: none;
  font-weight: 700;
}

/* Give collapsed comparison rows a little more vertical breathing room on
   desktop without changing the spacing between term columns. */
@media (min-width: 901px) {
  .featured-plan-carousel > .term-choice-card:not([open]),
  .featured-term-column > .term-choice-card:not([open]) {
    margin-block: 3px;
  }
}

/* Keep projected-month rows legible inside both narrow featured cards and
   the wider All Ranked disclosures. */
.offer-card .monthly-cost-grid {
  grid-template-columns: minmax(0, 1fr);
}

.monthly-cost-grid > span,
.offer-card .monthly-cost-grid > span {
  grid-template-columns: 7.25ch minmax(6.5rem, 1fr) minmax(7.5ch, auto);
  align-items: stretch;
}

.monthly-cost-period,
.monthly-cost-note,
.monthly-cost-value {
  display: flex;
  align-items: center;
  min-height: 2.5em;
}

.monthly-cost-note {
  justify-content: center;
  align-self: stretch;
  padding: 0 .25rem;
  text-align: center;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.plan-ended-month .monthly-cost-note {
  white-space: nowrap;
}

.monthly-cost-value {
  justify-content: flex-end;
}

@media (max-width: 560px) {
  .monthly-cost-grid > span,
  .monthly-cost-grid .plan-ended-month,
  .offer-card .monthly-cost-grid > span {
    grid-template-columns: 7.25ch minmax(5rem, 1fr) minmax(7.5ch, auto);
  }
}

@media print {
  section {
    padding: 20px 0;
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  h2,
  h3,
  .eyebrow {
    break-after: avoid-page;
    page-break-after: avoid;
  }

  .metrics,
  .offers,
  .notice,
  .split,
  .combined-chart,
  .projection-table-wrap,
  .metrics article,
  .offer-card,
  .chart,
  .coverage-grid article,
  .projection-table tr,
  footer {
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  .combined-chart > svg {
    max-height: 2.55in;
  }

  .projection-table th,
  .projection-table td {
    padding: 5px 8px;
  }

  .projection-table thead {
    display: table-header-group;
  }
}

/* Full-width disclosure controls never compete with plan names or prices. */
.featured-plan-summary > .featured-plan-toggle {
  grid-column: 2 / -1;
  grid-row: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid var(--orange, #e28a54);
  border-radius: 6px;
  color: var(--orange, #e28a54);
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}
.featured-plan-summary:hover > .featured-plan-toggle {
  background: #2d241c;
}
.featured-plan-summary:focus-visible {
  outline: 3px solid var(--orange, #e28a54);
  outline-offset: -3px;
}
.bill-winner-summary {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  align-content: start;
  grid-template-rows: auto;
}
.bill-winner-summary > .monthly-breakdown {
  min-width: 0;
  margin: 0;
}
.bill-winner-summary > .monthly-breakdown > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.4;
  white-space: normal;
}
.bill-winner-summary .monthly-cost-grid {
  grid-template-columns: minmax(0, 1fr);
}
.bill-winner-summary .monthly-cost-grid > span {
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  gap: 4px 8px;
}
.bill-winner-summary .monthly-cost-period { grid-column: 1; grid-row: 1; }
.bill-winner-summary .monthly-cost-value { grid-column: 2; grid-row: 1; }
.bill-winner-summary .monthly-cost-note {
  grid-column: 1 / -1;
  grid-row: 2;
  min-height: 0;
  padding: 0;
  justify-content: flex-start;
  text-align: left;
  white-space: normal;
}
.bill-winner-summary .monthly-cost-note:empty { display: none; }

/* Keep the report summary within the page before the wide desktop layout fits. */
@media screen and (min-width:901px) and (max-width:1150px){
  .hero aside{position:static;margin-top:35px;width:200px;max-width:100%}
}
