/* 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; }
