/* Estilos das fontes do texto de Orçamentos, Conteúdos e Roteiro, e o texto sobre o fundo da página escolhido.
   Cada estilo é um par: uma fonte para os títulos e outra para o texto. As fontes ficam no próprio sistema, e não
   num serviço de fora, para a página pública abrir igual em qualquer rede e o app do passageiro funcionar sem
   internet. Só o subconjunto latino, que tem os acentos e o ç. Licenças em fonts/editor_fonts/LICENSE.txt. */

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/editor_fonts/playfair-display-latin-wght-normal-759b7dc1.woff2") format("woff2");
}

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/editor_fonts/lora-latin-wght-normal-fce3b577.woff2") format("woff2");
}

@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/editor_fonts/lora-latin-wght-italic-bafd192e.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/editor_fonts/montserrat-latin-wght-normal-9fa5e944.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/editor_fonts/inter-latin-wght-normal-1f021a24.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/editor_fonts/inter-latin-wght-italic-7c529059.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/editor_fonts/cormorant-garamond-latin-wght-normal-0b6541cf.woff2") format("woff2");
}

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/editor_fonts/raleway-latin-wght-normal-5a17da40.woff2") format("woff2");
}

@font-face {
  font-family: "Raleway";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/editor_fonts/raleway-latin-wght-italic-0e8e4ea8.woff2") format("woff2");
}

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/editor_fonts/quicksand-latin-wght-normal-7f171adc.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/editor_fonts/nunito-latin-wght-normal-8d9cc785.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/editor_fonts/nunito-latin-wght-italic-da5afd61.woff2") format("woff2");
}

/* Padrão: as fontes de sempre do lugar onde o texto aparece. */
.page-style-classic { --page-title-font: "Playfair Display", Georgia, serif; --page-text-font: "Lora", Georgia, serif; }
.page-style-modern { --page-title-font: "Montserrat", "Helvetica Neue", Arial, sans-serif; --page-text-font: "Inter", "Helvetica Neue", Arial, sans-serif; }
.page-style-elegant { --page-title-font: "Cormorant Garamond", Georgia, serif; --page-text-font: "Raleway", "Helvetica Neue", Arial, sans-serif; }
.page-style-light { --page-title-font: "Quicksand", "Helvetica Neue", Arial, sans-serif; --page-text-font: "Nunito", "Helvetica Neue", Arial, sans-serif; }

.page-style:not(.page-style-standard) { font-family: var(--page-text-font); }
.page-style:not(.page-style-standard) :is(h1, h2, h3, h4, h5, h6),
.page-style-sample { font-family: var(--page-title-font, inherit); }
.page-style-elegant :is(h1, h2, h3, h4, h5, h6) { font-weight: 700; }

/* O texto sem cor própria acompanha o fundo escolhido: escuro no fundo claro, branco no escuro. Os títulos e os
   trechos pintados trazem a cor deles, já trocada quando não aparece bem no fundo. */
.page-style.page-style-tinted { color: #344050; }
.page-style.page-style-dark { color: #ffffff; }
.page-style-dark :is(h1, h2, h3, h4, h5, h6) { color: inherit; }
.page-style.page-style-dark a { color: inherit; text-decoration: underline; }
.page-style-dark .guide-highlight { background: rgba(255, 255, 255, 0.08); }
.page-style-dark .quote-table :is(th, td) { border-color: rgba(255, 255, 255, 0.3); background-color: rgba(255, 255, 255, 0.08); color: inherit; }
.page-style-dark .quote-table tbody tr:nth-child(even) { background-color: transparent; }

/* No fundo branco, que fica com o fundo do lugar, o tema escuro do sistema escurece o fundo: o Preto e o Cinza
   escolhidos no texto ficam com a cor do texto, para não sumir. */
[data-bs-theme="dark"] .page-style:not(.page-style-dark, .page-style-tinted) :is(.text-color-black, .text-color-gray, [data-text-color="black"], [data-text-color="gray"]) { color: inherit !important; }

/* A tela interna do Conteúdo dá espaço ao texto só quando há fundo pintado. */
.page-style-padded:is(.page-style-dark, .page-style-tinted) { padding: 1rem; border-radius: 0.375rem; }

/* Bloco Abas do editor (D-025): a aba aberta sublinhada, na cor da agência. Funciona sem JavaScript: cada aba é um
   botão de opção escondido, e o CSS mostra o conteúdo da opção marcada. As cores vêm do texto, para a barra aparecer
   em qualquer fundo da página. No celular a barra rola para o lado; na impressão, as abas saem uma embaixo da outra,
   cada uma com o nome em cima. Fica aqui, e não no ds/pagina_cliente, porque este arquivo chega a todas as telas que mostram o texto: a página do link, o Visualizar,
   o app e a leitura do orçamento e do guia já fechados. */
.guide-tabs { margin: var(--dimensao-24) 0; }
.guide-tabs__escolha { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0, 0, 0, 0); opacity: 0; }
.guide-tabs__barra {
  display: flex; gap: var(--dimensao-4); overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent);
}
.guide-tabs__barra::-webkit-scrollbar { display: none; }
.guide-tabs__aba {
  display: inline-flex; flex: none; align-items: center; min-height: var(--dimensao-44); margin: 0 0 -1px; padding: 0 var(--dimensao-12);
  border-bottom: 2px solid transparent; color: inherit; opacity: 0.72; font-size: inherit; font-weight: var(--fonte-peso-medio); white-space: nowrap;
  cursor: pointer;
}
.guide-tabs__aba:hover { opacity: 1; }
.guide-tabs__escolha:nth-of-type(1):checked ~ .guide-tabs__barra > .guide-tabs__aba:nth-child(1),
.guide-tabs__escolha:nth-of-type(2):checked ~ .guide-tabs__barra > .guide-tabs__aba:nth-child(2),
.guide-tabs__escolha:nth-of-type(3):checked ~ .guide-tabs__barra > .guide-tabs__aba:nth-child(3),
.guide-tabs__escolha:nth-of-type(4):checked ~ .guide-tabs__barra > .guide-tabs__aba:nth-child(4) {
  opacity: 1; border-bottom-color: var(--cor-marca-agencia-primaria, currentColor); font-weight: var(--fonte-peso-seminegrito);
}
.guide-tabs__escolha:nth-of-type(1):focus-visible ~ .guide-tabs__barra > .guide-tabs__aba:nth-child(1),
.guide-tabs__escolha:nth-of-type(2):focus-visible ~ .guide-tabs__barra > .guide-tabs__aba:nth-child(2),
.guide-tabs__escolha:nth-of-type(3):focus-visible ~ .guide-tabs__barra > .guide-tabs__aba:nth-child(3),
.guide-tabs__escolha:nth-of-type(4):focus-visible ~ .guide-tabs__barra > .guide-tabs__aba:nth-child(4) {
  outline: 2px solid var(--cor-foco-anel, currentColor); outline-offset: -2px;
}
.guide-tabs__painel { display: none; padding-top: var(--dimensao-16); }
.guide-tabs__escolha:nth-of-type(1):checked ~ .guide-tabs__paineis > .guide-tabs__painel:nth-child(1),
.guide-tabs__escolha:nth-of-type(2):checked ~ .guide-tabs__paineis > .guide-tabs__painel:nth-child(2),
.guide-tabs__escolha:nth-of-type(3):checked ~ .guide-tabs__paineis > .guide-tabs__painel:nth-child(3),
.guide-tabs__escolha:nth-of-type(4):checked ~ .guide-tabs__paineis > .guide-tabs__painel:nth-child(4) { display: block; }
.guide-tabs__painel > :last-child { margin-bottom: 0; }
.guide-tabs__painel > .guide-tabs__titulo + * { margin-top: 0; }
.guide-tabs__titulo { display: none; }
@media print {
  .guide-tabs__barra { display: none; }
  .guide-tabs__painel { display: block !important; padding-top: 0; }
  .guide-tabs__titulo { display: block; margin: var(--dimensao-16) 0 var(--dimensao-8); font-weight: var(--fonte-peso-seminegrito); }
}
