/* Escala comum a todas as páginas. Carregar após os estilos de componentes.
   Títulos e leitura: Manrope. Mono: apenas rótulos técnicos e numeração. */
:root {
  --type-body: 15px;
  --type-small: 13px;
  --type-label: 11px;
  --type-action: 13px;
  --type-page-title: clamp(44px, 5vw, 72px);
  --type-section-title: clamp(36px, 4vw, 56px);
  --type-card-title: clamp(25px, 2.6vw, 36px);
  --mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

html body[data-page] main p {
  font-family: var(--body);
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: normal;
}

/* Abertura ilustrada e números das unidades conservam suas escalas próprias. */
html body[data-page] :is(.page-heading, .detail-copy, .contact-intro, .legal-page) h1 {
  font-family: var(--display);
  font-size: var(--type-page-title);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.055em;
}
html body[data-page] :is(.technical-heading, .shop-copy, .questions-intro,
  .contact-banner, .service-catalog, .visit-guide, .service-detail-body,
  .question-section, .compact-heading, .contact-band, .unit-detail-visit,
  .unit-detail-services, .unit-detail-next) h2 {
  font-family: var(--display);
  font-size: var(--type-section-title);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.055em;
}
html body[data-page] :is(.system-row h3, .related-service > a:nth-child(2), .message-card h2) {
  font-family: var(--display);
  font-size: var(--type-card-title);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.04em;
}
html body[data-page] :is(.visit-guide h3, .offered-services h3, .unit-title) {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.035em;
}

/* Avisos completos são texto de leitura; o link não altera a escala da frase. */
html body[data-page] :is(.location-footnote, .system-note, .shop-source,
  .source-note, .gallery-context, .gallery-source, .photo-source, .footer-source,
  .unit-detail-source, .form-explanation, .optional-question-intro,
  .extra-question-feedback, .copy-feedback, .gallery-feedback,
  .no-script-message, .question-options > p) {
  font-family: var(--body);
  font-size: var(--type-small);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: normal;
}
html body[data-page] .shop-copy .shop-source { font-size: var(--type-small) !important; }
html body[data-page] :is(.location-footnote, .system-note, .shop-source,
  .source-note, .gallery-context, .gallery-source, .photo-source, .footer-source,
  .unit-detail-source, .form-explanation, .question-options > p) a {
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
  letter-spacing: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Rótulos breves mantêm a identidade técnica com uma única escala. */
html body[data-page] :is(.eyebrow, .site-footer .eyebrow, .engineering-copy .eyebrow, .unit-detail-eyebrow, .engineering-rail,
  .unit-detail-rail, .unit-detail-rail > a, .location-strip > div span,
  .contact-unit-links > span, .engineering-figure figcaption) {
  font-family: var(--mono);
  font-size: var(--type-label);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .06em;
}
html body[data-page] :is(.system-index, .unit-detail-service-number,
  .visit-guide li > span, .engineering-links a > span,
  .engineering-copy .eyebrow > span) {
  font-family: var(--mono);
  font-size: var(--type-label);
  font-weight: 700;
  letter-spacing: 0;
}

/* Botões, navegação e chamadas usam a mesma família e peso. */
html body[data-page] :is(.button, .text-link, .engineering-channel,
  .engineering-links a, .system-consult, .unit-detail-button, .unit-detail-route,
  .unit-detail-secondary-link, .detail-prepare, .detail-back,
  .contact-unit-links > a, .message-send, .copy-message, .mobile-contact) {
  font-family: var(--body);
  font-size: var(--type-action);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: normal;
}
html body[data-page] :is(.header #main-nav a, .footer-nav a) {
  font-family: var(--body);
  font-size: var(--type-action);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: normal;
}
html body[data-page] :is(.location-dossier h3 span, .location-strip > a span,
  .shop-photo > span, .gallery-caption, .detail-hero figcaption,
  .unit-detail-google span, .unit-detail-google small, .unit-detail-other small,
  .unit-detail-heading address > span, .unit-detail-email, .breadcrumb,
  .footer-unit, .footer-unit strong, .footer-email, .footer-bottom,
  .unit-review a > span:last-child) {
  font-family: var(--body);
  font-size: var(--type-small);
  line-height: 1.7;
  letter-spacing: normal;
}
html body[data-page] :is(.location-dossier h3 span, .location-strip > a span,
  .shop-photo > span, .gallery-caption, .detail-hero figcaption) { font-weight: 700; }
html body[data-page] .footer-unit strong { font-size: var(--type-small) !important; }
html body[data-page] .unit-detail-google > a > span:last-child {
  font-size: 21px;
  font-weight: 400;
}
html body[data-page] :is(.system-row ul, .service-catalog ul, .schedule,
  .unit-detail-schedule, .question-options > a, .questions-list summary,
  .message-card label, .message-preview output) {
  font-family: var(--body);
  font-size: var(--type-body);
  line-height: 1.75;
  letter-spacing: normal;
}
html body[data-page] :is(.message-card label > span, .optional-questions legend > span,
  .question-help-collapse > summary > span) {
  font-family: var(--body);
  font-size: var(--type-small);
  font-weight: 400;
  line-height: 1.75;
}
html body[data-page] :is(.message-card input, .message-card select, .message-card textarea) {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

@media (max-width:850px) {
  html body[data-page] .header #main-nav a { font-size: 14px; }
}
@media (max-width:350px) {
  /* Os mesmos papéis, com espaço para os controles do cabeçalho compacto. */
  html body[data-page] .header-contact { font-size: 12px; }
  html body[data-page] .engineering-figure figcaption { font-size: 10px; }
}
