/* TAUP Editora — estilos globais do site.
   Cores e medidas seguem o manual de marca (amarelo #fbda00, tinta #111008, Inter Tight).
   O layout de cada bloco está no próprio HTML; aqui ficam base, estados e ajustes de celular. */

/* Inter Tight, hospedada no próprio site (licença SIL OFL em /assets/fonts/OFL-LICENSE.txt) */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-tight-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-tight-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-tight-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-tight-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-tight-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-tight-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-tight-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-tight-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #ffffff; color: #111008; font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; }
a { color: #111008; }
a:hover { color: #3a372b; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #111008; outline-offset: 2px; }

.pular { position: absolute; left: 16px; top: -60px; z-index: 10; background: #111008; color: #ffffff; padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.pular:focus { top: 12px; color: #ffffff; }

.principal { max-width: 1180px; margin: 0 auto; padding: 8px 32px 64px; display: flex; flex-direction: column; gap: 64px; }

/* cartões e setas */
.cartao { transition: border-color .15s; }
.cartao:hover { border-color: #111008 !important; }
.cartao:hover .seta, .cartao-link:hover .seta { background: #111008 !important; color: #fbda00 !important; }
.seta { transition: background-color .15s, color .15s; }

/* perguntas frequentes */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .pm { background: #fbda00 !important; }

/* telas médias: menu vai para a linha de baixo, inteiro */
@media (min-width: 0px) {
  header nav[aria-label="Principal"] { order: 3; width: 100%; flex-wrap: nowrap !important; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; box-sizing: border-box; }
  header nav[aria-label="Principal"]::-webkit-scrollbar { display: none; }
  header nav[aria-label="Principal"] a { flex: none; }
  header nav[aria-label="Principal"] > div { flex: none; flex-wrap: nowrap !important; }
}
@media (min-width: 761px) {
  header nav[aria-label="Principal"] > div:first-child { flex: 1 1 auto; justify-content: space-between; }
}

/* nada empurra a página para os lados */
section > div, section > ul, section > a, section > img { min-width: 0; }

.so-celular { display: none; }
.tabela-rolagem tbody th, .tabela-rolagem thead th:first-child { position: sticky; left: 0; z-index: 1; }
.tabela-rolagem thead th:first-child { background: #ffffff; }
.tabela-rolagem tbody th { box-shadow: 1px 0 0 #e4e1d8; }

a.antologia img { transition: transform .2s ease; }
a.antologia:hover img { transform: translateY(-4px); }

/* celular */
@media (max-width: 760px) {
  .principal { padding: 8px 16px 48px; gap: 48px; }
  header { padding: 16px !important; }
  header nav[aria-label="Principal"] { order: 3; width: 100%; flex-wrap: nowrap !important; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  header nav[aria-label="Principal"]::-webkit-scrollbar { display: none; }
  header nav[aria-label="Principal"] a { flex: none; }
  header nav[aria-label="Principal"] > div { flex: none; flex-wrap: nowrap !important; }
  section[style*="padding: 40px"], section[style*="padding: 48px 40px"] { padding: 28px 24px !important; }
  div[style*="padding: 40px"] { padding: 28px 24px !important; }
  footer > div { padding: 40px 16px !important; }
  footer a { display: inline-block; padding: 6px 0; }
  header > a:first-child { padding: 7px 0; }
  section[aria-labelledby="h-estante"] > div[style*="grid-template-columns"],
  section[aria-labelledby="h-equipe"] > div[style*="grid-template-columns"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 20px 12px !important; }
  section[aria-labelledby="h-estante"] b, section[aria-labelledby="h-equipe"] b { font-size: 15px !important; }
  section[aria-labelledby="h-topo"] > div[style*="min-height"] { min-height: 0 !important; }
  section[aria-labelledby="h-topo"] > div[style*="min-height: 540px"] { padding: 28px 24px !important; }
  .so-celular { display: block; }
  .antologias-capas { gap: 10px !important; }
  a.antologia b { font-size: 13px !important; }
  a.antologia b + span { font-size: 12px !important; }
  section[aria-labelledby="h-topo"] > img { min-height: 0 !important; height: 280px; }
  .tabela-rolagem tbody th, .tabela-rolagem thead th:first-child { padding-left: 16px !important; padding-right: 12px !important; }
  header nav[aria-label="Principal"] { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
  header nav[aria-label="Principal"].no-fim { -webkit-mask-image: none; mask-image: none; }
  .canal { padding: 20px !important; gap: 14px !important; }
  .canal > .seta { display: none !important; }
  .canal > span[aria-hidden] { width: 44px !important; height: 44px !important; border-radius: 14px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cartao, .seta { transition: none; }
}
