:root {
  --type-hero: clamp(2.75rem, 1.607rem + 2.381vw, 3.75rem);
  --type-section: clamp(2.25rem, 1.393rem + 1.786vw, 3rem);
  --type-number: 2.25rem;
  --type-dialog: clamp(1.75rem, 1.464rem + .595vw, 2rem);
  --type-card: 1.1875rem;
  --type-body: 1rem;
  --type-caption: .875rem;
}

@media (max-width: 1099px) {
  :root { --type-number: 2rem; }
}

@media (max-width: 768px) {
  :root {
    --type-hero: clamp(2.25rem, 1.734rem + 2.116vw, 2.75rem);
    --type-section: clamp(2rem, 1.742rem + 1.058vw, 2.25rem);
    --type-dialog: clamp(1.5rem, 1.242rem + 1.058vw, 1.75rem);
  }
}

/* The same role selectors also override Tilda's styles scoped to individual records. */
:is(body, #allrecords .t-rec [data-eds-block]) #hero-title {
  font-size: var(--type-hero);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}

:is(body, #allrecords .t-rec [data-eds-block]) :is(
  #screens-title, #process-title, #cases-title, #pricing-title,
  #faq-title, #consultation-title, .legal-content h1
) {
  font-size: var(--type-section);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}

:is(body, #allrecords .t-rec [data-eds-block]) :is(
  .plan-price, .placement-case__metrics dd, .budget-calculator__value
) {
  font-size: var(--type-number);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

:is(body, #allrecords .t-rec [data-eds-block]) :is(.site-dialog__head h2, .cookie-banner h2) {
  font-size: var(--type-dialog);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.025em;
}

:is(body, #allrecords .t-rec [data-eds-block]) :is(
  .campaign-benefits h3, .screen-card h3, .inventory-map__address,
  .process-grid h3, .placement-case h3, .plan-card h3, .faq-list summary,
  .budget-prompt p, .consultation-person figcaption > span:first-child, .legal-content h2
) {
  font-size: var(--type-card);
  font-weight: 500;
  line-height: 1.5rem;
  letter-spacing: -.025em;
}

/* Inventory tabs share the addresses' 19 px scale while retaining a control weight. */
:is(body, #allrecords .t-rec [data-eds-block]) .inventory-filters button {
  font-size: var(--type-card);
  font-weight: 400;
  line-height: 1.5rem;
  letter-spacing: -.025em;
}

:is(body, #allrecords .t-rec [data-eds-block]) :is(
  .billboard-navigation a, .billboard-header .menu-toggle, .billboard-phone,
  .billboard-contact, .button, .campaign-benefits p, .process-grid p,
  .faq-list details p, .consultation-copy p, .contact-footer__links a, .plan-facts dt, .plan-facts dd,
  .contact-dialog a, .budget-formats__chips span, .budget-calculator__fields input:not([type="radio"]),
  .legal-header > a, #screen-error, #plan-error, #calculator-note, .photo-viewer__error,
  .cookie-banner p, .cookie-banner__actions button, .legal-content :is(p, li)
) {
  font-size: var(--type-body);
  line-height: 1.5rem;
  letter-spacing: normal;
}

:is(body, #allrecords .t-rec [data-eds-block]) .billboard-story .billboard-promise {
  font-size: var(--type-card);
  line-height: 1.4;
  letter-spacing: normal;
}

:is(body, #allrecords .t-rec [data-eds-block]) :is(
  .screen-meta, .inventory-map__details, .inventory-map__error, .inventory-map__photo-error,
  .inventory-count, .placement-case__category, .placement-case__cities, .placement-case__metrics dt,
  .plan-month,
  .consultation-person__role, .contact-footer__legal-line, .privacy-links,
  .cookie-banner__links a, .legal-crumbs, .budget-formats > legend,
  .budget-calculator__fields .field label, .budget-calculator__results dt, #calculator-error
),
:is(body, #allrecords .t-rec [data-eds-block]) .process-grid li::before {
  font-size: var(--type-caption);
  line-height: 1.25rem;
}

@media (max-width: 700px) {
  :root { --type-number: 1.75rem; }

  :is(body, #allrecords .t-rec [data-eds-block]) #hero-title .hero-break-mobile {
    display: none;
  }
}

:is(body, #allrecords .t-rec [data-eds-block]) :is(.eds-legal-note, .placement-case__period) {
  font-size: var(--type-caption);
  line-height: 1.25rem;
}

:is(body, #allrecords .t-rec [data-eds-block]) .eds-legal-note {
  max-width: 74ch;
  margin: .75rem 0 0;
  color: var(--muted);
}

:is(body, #allrecords .t-rec [data-eds-block]) .budget-calculator .eds-legal-note {
  margin: 0;
}

:is(body, #allrecords .t-rec [data-eds-block]) .eds-operator-address {
  margin-top: .25rem;
}

:is(body, #allrecords .t-rec [data-eds-block]) .placement-case__copy {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: .375rem;
}

:is(body, #allrecords .t-rec [data-eds-block]) .placement-case__period {
  margin: 0;
  color: var(--muted);
}
