/* Public service pages opt in explicitly. Brand surfaces and functional colors have separate roles. */
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

body[data-tl-brand] {
  --brand-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --brand-ink: #151515;
  --brand-white: #fff;
  --brand-soft: #f6f6f3;
  --brand-muted: #676763;
  --brand-rule: #deded8;
  --brand-orange: #e8670a;
  --brand-orange-hover: #ff7d22;
  --brand-link: #a23e08;
  --brand-light-accent: #ffab73;
  --brand-hero-text: #e5e2dd;
  font: 400 16px/1.6 var(--brand-font);
  color: var(--brand-ink);
  background-color: var(--brand-white);
}

body[data-tl-brand],
body[data-tl-brand="auditor"] .au {
  --ink: var(--brand-ink);
  --ink2: #3b3b38;
  --bg: var(--brand-white);
  --page: var(--brand-white);
  --surf: var(--brand-white);
  --soft: var(--brand-soft);
  --paper: var(--brand-soft);
  --line: var(--brand-rule);
  --mut: var(--brand-muted);
  --muted: var(--brand-muted);
  --accent: var(--brand-orange);
  --accent2: var(--brand-orange-hover);
  --accentd: var(--brand-link);
  --or: var(--brand-orange);
  --or2: var(--brand-orange-hover);
  --ord: var(--brand-link);
  --orange: var(--brand-orange);
  --orange-dark: var(--brand-link);
}

html body[data-tl-brand] :is(h1, #tt) {
  color: var(--brand-white);
  /* Older pages set title size with ID selectors. This keeps the shared scale authoritative. */
  font-family: var(--brand-font);
  font-size: clamp(29px, 3vw, 38px) !important;
  font-weight: 750 !important;
  line-height: 1.15;
  letter-spacing: -.025em;
  text-wrap: balance;
}

html body[data-tl-brand] h1 em {
  color: var(--brand-light-accent);
  font-style: normal;
}

html body[data-tl-brand] h2:not(#next-title, #scr-title, #score-method-title, #eval-title, #faq-title) {
  font-family: var(--brand-font);
  font-size: clamp(24px, 2.5vw, 30px) !important;
  font-weight: 750 !important;
  line-height: 1.24;
  letter-spacing: -.018em;
}

html body[data-tl-brand] :is(h3, p, li, small, label, summary, button, input, select, textarea) {
  font-family: var(--brand-font);
}

html body[data-tl-brand] :is(
  .tl-home-lead, .hero-content > .sub, .tl-hero-t > p,
  .rh-lead, .au-hero .lead, .hero-copy > .lead, .hero .ds, .hero-t > p
) {
  color: var(--brand-hero-text);
  font-size: 16px;
  line-height: 1.55;
}

body[data-tl-brand] :is(
  .tl-home-primary, .tl-nmt-cta, .tl-scan-cta, .btn-brand, .tl-scene-cta,
  .btn-wa, .cbtn, .tl-elg-btn, .tl-bks-btn, .rh-main, .button-primary
),
body[data-tl-brand="courses"] .hero-cta .btn-gh,
body:is([data-tl-brand="auditor"], [data-tl-brand="broker-b2b"], [data-tl-brand="provider"]) a.b:not(.gh) {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: var(--brand-ink) !important;
  font-family: var(--brand-font);
  font-size: 14px !important;
  font-weight: 700;
  border-radius: 8px;
}

body[data-tl-brand] :is(
  .tl-home-primary, .tl-nmt-cta, .tl-scan-cta, .btn-brand, .tl-scene-cta,
  .btn-wa, .cbtn, .tl-elg-btn, .tl-bks-btn, .rh-main, .button-primary
):hover,
body[data-tl-brand="courses"] .hero-cta .btn-gh:hover,
body:is([data-tl-brand="auditor"], [data-tl-brand="broker-b2b"], [data-tl-brand="provider"]) a.b:not(.gh):hover {
  background: var(--brand-orange-hover);
  border-color: var(--brand-orange-hover);
  color: var(--brand-ink);
}

body[data-tl-brand] .btn-wa svg { fill: currentColor; }

body[data-tl-brand] :is(.tl-home-secondary, .rh-sec, .hero-cta .btn-chat, .au-hero .lk, .hero .hw, .hero .b.gh),
body[data-tl-brand="events"] .hero-cta .btn-gh {
  color: var(--brand-white);
  padding-inline: 18px;
  min-height: 44px;
  border: 1px solid rgb(255 255 255 / 55%);
  background: rgb(21 21 21 / 45%);
  font-family: var(--brand-font);
  font-weight: 700;
  border-radius: 8px;
}

body[data-tl-brand] :is(.tl-company-options, .tl-metodo) p a,
body[data-tl-brand] p.tl-metodo a {
  color: var(--brand-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body[data-tl-brand] :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--brand-link);
  outline-offset: 3px;
}

body[data-tl-brand] :is(.hero, .rh, .au-hero, .tl-home-hero, .tl-photo-scene) :is(a, button):focus-visible {
  outline-color: var(--brand-light-accent);
}

@media (max-width: 640px) {
  html body[data-tl-brand] :is(h1, #tt) { font-size: 29px !important; }
}
