/* =========================
   ROOT
========================= */

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  font-synthesis-style: none;
  font-synthesis-small-caps: none;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  width: 100%;
}

/* =========================
   UNIVERSAL
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
}

/* =========================
   TYPOGRAPHY
========================= */

body {
  font-family: sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: inherit;
  background: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
small,
strong,
b,
i,
em,
blockquote,
pre,
code {
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
}

/* =========================
   LINKS
========================= */

a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}

/* =========================
   MEDIA
========================= */

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

/* =========================
   BUTTONS
========================= */

button {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  outline: none;
}

/* =========================
   INPUTS
========================= */

input,
textarea,
select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  outline: none;
  font: inherit;
  color: inherit;
  padding: 0;
  margin: 0;
  width: auto;
}

textarea {
  resize: none;
}

input::placeholder,
textarea::placeholder {
  color: inherit;
  opacity: 0.6;
}

/* =========================
   LISTS
========================= */

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* =========================
   TABLES
========================= */

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* =========================
   IFRAME
========================= */

iframe {
  border: 0;
}

/* =========================
   FORM
========================= */

form {
  margin: 0;
  padding: 0;
}

/* =========================
   DETAILS
========================= */

details,
summary {
  margin: 0;
  padding: 0;
}

/* =========================
   DISABLED
========================= */

:disabled {
  cursor: not-allowed;
}

/* =========================
   ROOT APP
========================= */

#__next,
#root {
  min-height: 100%;
}
#\35 39de2ef {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
  padding-left: 20px;
  justify-content: center;
  position: relative;
}

@media (max-width: 1024px) {
#\35 39de2ef {

}
}

@media (max-width: 640px) {
#\35 39de2ef {

}
}

#\39 b0bf472 {
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
  padding-left: 20px;
  justify-content: center;
  position: relative;
}

@media (max-width: 1024px) {
#\39 b0bf472 {
  padding-top: 0px;
  padding-right: 0px;
  padding-bottom: 0px;
  padding-left: 0px;
}
}

@media (max-width: 640px) {
#\39 b0bf472 {
  padding-top: 0px;
  padding-right: 0px;
  padding-bottom: 0px;
  padding-left: 0px;
}
}

#f7600a65 {
  width: 100%;
  min-width: 100%;
  position: relative;
  color: rgb(22, 22, 22);
  font-family: "Roboto";
  font-weight: 800;
  text-align: center;
  font-size: 3rem;
  letter-spacing: 0px;
  line-height: 120%;
  text-transform: none;
  text-decoration: none;
}

@media (max-width: 1024px) {
#f7600a65 {

}
}

@media (max-width: 640px) {
#f7600a65 {

}
}
 /* ===== ELEMENTOS INTERATIVOS ===== */
    svg > * {
      pointer-events: none;
    }

    /* ===== EDITOR TIPTAP ===== */
    .tiptap > * {
      pointer-events: none;
    }

     /* Quando estiver editando (ProseMirror contenteditable), reabilita interação.
       Isso é crucial para listas (ul/ol/li), senão o clique cai no container e não no item. */
    .tiptap[data-tiptap-editing="true"] > *,
    .tiptap[data-tiptap-editing="true"] * {
      pointer-events: auto !important;
    }

    /* Fora do modo edição, esconda APENAS o parágrafo final vazio (trailing paragraph do ProseMirror)
         para evitar espaço extra. Nunca aplique dentro de listas (isso some com o texto). */
      &:not([data-tiptap-editing="true"]) > p:last-child:empty,
      &:not([data-tiptap-editing="true"]) > p:last-child:has(> br:only-child),
      &:not([data-tiptap-editing="true"]) > p:last-child:has(> br.ProseMirror-trailingBreak:only-child) {
       min-height: 0 !important;
       line-height: 0 !important;
       display: none !important;
      }
    

    .tiptap {
      word-wrap: break-word;
      overflow-wrap: break-word;
      word-break: break-word;
      white-space: pre-wrap;
      word-break: break-all;
      word-break: break-word;
      word-break: break-word;
      line-height: 1.5;
     

      /* ===== LISTAS ===== */
      ul,
      ol {
        padding: 0 1rem;
        margin: 1.25rem 1rem 1.25rem 0.4rem;

        li p {
          margin-top: 0.25em;
          margin-bottom: 0.25em;
          // pointer-events: auto !important;
        }
      }
      ol:last-child, ul:last-child {
        margin-bottom: 0 !important;
      }
       
      ul {
        list-style-type: disc;
      }

      ol {
        list-style-type: decimal;
      }

      /* ===== TÍTULOS ===== */
      h1,
      h2,
      h3,
      h4,
      h5,
      h6,
      p {
        line-height: 1.25;
        text-wrap: pretty;
      }

     

      h1 {
        font-size: 3rem;
        line-height: 1.2;
        font-weight: 700;
      }

      h2 {
        font-size: 2.5rem;
        line-height: 1.3;
        font-weight: 700;
      }

      h3 {
        font-size: 2rem;
        line-height: 1.4;
        font-weight: 700;
      }

      h4 {
        font-size: 1.75rem;
        line-height: 1.5;
        font-weight: 600;
      }

      h5 {
        font-size: 1.25rem;
        line-height: 1.5;
        font-weight: 600;
      }

      h6 {
        font-size: 1.125rem;
        line-height: 1.5;
        font-weight: 500;
      }

      p {
        font-size: 1rem;
        line-height: 1.5;
        font-weight: 400;
        
      }

      /* Headlines e parágrafos vazios: mantêm altura mínima (1 linha) em qualquer contexto (selecionado, preview, publicado) */
      h1:empty,
      h1:has(br:only-child) {
        min-height: 1.2em;
        display: block;
      }
      h2:empty,
      h2:has(br:only-child) {
        min-height: 1.3em;
        display: block;
      }
      h3:empty,
      h3:has(br:only-child) {
        min-height: 1.4em;
        display: block;
      }
      h4:empty,
      h4:has(br:only-child),
      h5:empty,
      h5:has(br:only-child),
      h6:empty,
      h6:has(br:only-child) {
        min-height: 1.5em;
        display: block;
      }
      p:empty,
      p:has(br:only-child) {
        min-height: 1.5em;
        line-height: 1.5;
        display: block;
      }

   

      /* ===== CÓDIGO E TEXTO PRÉ-FORMATADO ===== */
      code {
        background-color: hsl(var(--code));
        border-radius: 0.4rem;
        color: hsl(var(--white));
        font-size: 0.85rem;
        padding: 0.4em 0.4em;
      }

      pre {
        background: hsl(var(--code));
        border-radius: 0.5rem;
        color: hsl(var(--white));
        font-family: "JetBrainsMono", monospace;
        margin: 1.5rem 0;
        padding: 0.75rem 1rem;

        code {
          background: none;
          color: inherit;
          font-size: 0.8rem;
          padding: 0;
        }
      }

      /* ===== CITAÇÕES ===== */
      blockquote {
        border-left: 3px solid hsl(var(--accent));
        margin: 1.5rem 0;
        padding-left: 1rem;
      }

      /* ===== LINHA HORIZONTAL ===== */
      hr {
        border: none;
        border-top: 1px solid hsl(var(--gray-2));
        margin: 2rem 0;
      }
        
    }

     .text-inlive > * {
      pointer-events: none !important;
    }
    .ProseMirror-trailingBreak {
        display: none !important;
    }