/* Gabarito — tema "Papel e tinta" (escolhido pelo Rafael em 7/11/2026 entre 50 opções; carregado por último, depois do limpo-claude.css).
   Barra de cima e rodapé brancos com uma faixa fina em quatro cores (vermelho #F0142F, azul-tinta #1D3557, azul #457B9D, azul-claro #A8DADC);
   botões azul-tinta; títulos em Source Serif 4; capa da página inicial lisa em azul-tinta com 5 bolinhas (uma marcada); chapéu da logo preto
   com a cordinha na cor do botão (azul-tinta). O fundo onde se trabalha é cinza clarinho (Rafael, 11/11/2026: "queremos todos cinza clarinho", era marfim). Só cores, letras e cantos: a estrutura é a mesma. */
:root { --papel: #F3F6F8; --mesa: #EAEFF2; --fino: #DFE5E9; --suave: #CDD5DB;
  --azul: #1D3557; --azul-h: #192D4A; --azul-2: #1D3557; --pen-azul: #1D3557; --rosa-rgb: 29,53,87; --sel: #F2F9FA; --f-serif: 'Source Serif 4', Georgia, serif;
  --t1: #F0142F; --t2: #1D3557; --t3: #457B9D; --t4: #A8DADC; }
html:has(body.ts), body.ts { background: var(--papel) }
body.ts.ts .ts-pill.rosa, body.ts.ts .ts-pill.preto, body.ts.ts .btn.primary, body.ts.ts .btn.lime, body.ts.ts .lm-btn.pri, body.ts.ts .lh-btn.pri, body.ts.ts .ed-opc.pri, #landing .ld-btn.pri, .auth-page .auth-body .btn.primary.big { background: #1D3557 !important; border-color: #1D3557 !important; color: #FFFFFF !important; transition: background .15s ease, transform .15s ease, box-shadow .15s ease !important }
body.ts.ts .ts-pill.rosa:hover, body.ts.ts .btn.primary:hover, body.ts.ts .lm-btn.pri:hover:not(:disabled), body.ts.ts .ed-opc.pri:hover:not(:disabled), body.ts.ts .lh-btn.pri:hover, #landing .ld-btn.pri:hover, .auth-page .auth-body .btn.primary.big:hover { background: #1A2F4D !important; border-color: #1A2F4D !important; color: #FFFFFF !important; transform: translateY(-1px); box-shadow: 0 4px 0 -1px #1D3557 !important }
body.ts.ts .ed-opc.pri svg, body.ts.ts .btn.primary svg, body.ts.ts .lm-btn.pri svg { color: #FFFFFF }
body.ts.ts .ts-pill, body.ts.ts .btn, body.ts.ts .lm-btn, body.ts.ts .lh-btn, body.ts.ts .ed-opc, body.ts.ts .hdr .lm-corrigir, body.ts.ts .hdr .topnav button, body.ts.ts .hdr .lm-nav-ind, #landing .ld-btn, .auth-page .btn { border-radius: 4px !important }
body.ts.ts .hdr { background: linear-gradient(90deg, #F0142F 0% 25%, #1D3557 25% 50%, #457B9D 50% 75%, #A8DADC 75% 100%) bottom / 100% 4px no-repeat, #FFFFFF; color: #1A1C22; border-bottom: 0; padding-bottom: 4px }
body.ts.ts .hdr .brand, body.ts.ts .hdr .brand .wm { color: #1A1C22; --lg1: #0B1F44; --lg2: #1D3557; --lg3: #F0142F }
body.ts.ts .hdr .brand .wm .wm-o { color: #F0142F }
body.ts.ts .hdr .topnav button { color: #1A1C22 }
body.ts.ts .hdr .topnav button:hover { background: #E8E8E9; color: #1A1C22 }
body.ts.ts .hdr .topnav button[aria-current="page"] { background: #E8E8E9; color: #1A1C22 }
body.ts.ts .hdr .lm-nav-ind { background: linear-gradient(90deg, #F0142F 0% 25%, #1D3557 25% 50%, #457B9D 50% 75%, #A8DADC 75% 100%) bottom / 100% 3px no-repeat, #E8E8E9 }
body.ts.ts .hdr .topnav button:nth-of-type(1)[aria-current="page"] { box-shadow: inset 0 -3px 0 #F0142F }
body.ts.ts .hdr .topnav button:nth-of-type(2)[aria-current="page"] { box-shadow: inset 0 -3px 0 #1D3557 }
body.ts.ts .hdr .topnav button:nth-of-type(3)[aria-current="page"] { box-shadow: inset 0 -3px 0 #457B9D }
body.ts.ts .hdr .topnav button:nth-of-type(4)[aria-current="page"] { box-shadow: inset 0 -3px 0 #A8DADC }
body.ts.ts .hdr .topnav button:nth-of-type(5)[aria-current="page"] { box-shadow: inset 0 -3px 0 #F0142F }
body.ts.ts .hdr .topnav.lm-anim button[aria-current="page"] { background: none; box-shadow: none }
body.ts.ts .hdr .lm-corrigir { background: transparent; border: 2px solid #1A1C22; color: #1A1C22 }
body.ts.ts .hdr .lm-corrigir:hover { background: #E8E8E9 }
body.ts.ts .hdr .mebtn { background: #F0142F; color: #16181D }
body.ts.ts .rodape { background: linear-gradient(90deg, #F0142F 0% 25%, #1D3557 25% 50%, #457B9D 50% 75%, #A8DADC 75% 100%) top / 100% 4px no-repeat, #FFFFFF; border-top: 0; padding-top: 4px }
body.ts.ts .rodape, body.ts.ts .rodape-marca .ts-wm, body.ts.ts .rodape .rodape-links a, body.ts.ts .rodape .rodape-ig, body.ts.ts .rodape .rodape-cnpj { color: #3F3F46 }
body.ts.ts .lm-arvore, body.ts.ts .lm-dnav, body.ts.ts .ed-side, body.ts.ts .ed-mq, body.ts.ts .lm-wzarv { background: #F7F9FA; border-color: #D5DDE1 }
body.ts.ts .lm-dni { transition: background .14s ease }
body.ts.ts .lm-dni:hover { background: #EAEFF2 }
body.ts.ts .lm-dni.on { background: #fff; box-shadow: inset 4px 0 0 #F0142F }
body.ts.ts .lm-drow { transition: box-shadow .15s ease, background .15s ease }
body.ts.ts .lm-drow:nth-of-type(4n+1):hover { box-shadow: inset 4px 0 0 #F0142F }
body.ts.ts .lm-drow:nth-of-type(4n+2):hover { box-shadow: inset 4px 0 0 #1D3557 }
body.ts.ts .lm-drow:nth-of-type(4n+3):hover { box-shadow: inset 4px 0 0 #457B9D }
body.ts.ts .lm-drow:nth-of-type(4n+4):hover { box-shadow: inset 4px 0 0 #A8DADC }
body.ts.ts :focus-visible { outline-color: #1D3557 !important }
#landing { background: #F7F9FA }
#landing .ld-top { background: linear-gradient(90deg, #F0142F 0% 25%, #1D3557 25% 50%, #457B9D 50% 75%, #A8DADC 75% 100%) bottom / 100% 4px no-repeat, #FFFFFF; border-bottom: 0 }
#landing .ld-top .brand, #landing .ld-top .wm { color: #1A1C22; --lg1: #0B1F44; --lg2: #1D3557; --lg3: #F0142F }
#landing .ld-top .wm-o { color: #F0142F }
#landing .ld-nav a { color: #1A1C22 }
#landing .ld-nav a:hover { background: #E8E8E9; color: #1A1C22 }
#landing .ld-top .ld-btn:not(.pri) { background: transparent; border: 2px solid #1A1C22; color: #1A1C22 }
#landing .ld-sec.alt { background: #fff }
#landing .ld-h1 em { color: #A8DADC }
#landing .ld-foot { background: linear-gradient(90deg, #F0142F 0% 25%, #1D3557 25% 50%, #457B9D 50% 75%, #A8DADC 75% 100%) top / 100% 4px no-repeat, #FFFFFF; color: #3F3F46 }
#landing .ld-foot a { color: #3F3F46 }
#landing .ld-passo, #landing .ld-plano { transition: transform .16s ease, box-shadow .16s ease }
#landing .ld-passo:nth-child(1) .k { background: #F0142F; color: #16181D }
#landing .ld-passo:nth-child(1):hover { transform: translateY(-3px); box-shadow: 0 6px 0 -2px #F0142F }
#landing .ld-passo:nth-child(2) .k { background: #1D3557; color: #FFFFFF }
#landing .ld-passo:nth-child(2):hover { transform: translateY(-3px); box-shadow: 0 6px 0 -2px #1D3557 }
#landing .ld-passo:nth-child(3) .k { background: #457B9D; color: #FFFFFF }
#landing .ld-passo:nth-child(3):hover { transform: translateY(-3px); box-shadow: 0 6px 0 -2px #457B9D }
#landing .ld-passo:nth-child(4) .k { background: #A8DADC; color: #16181D }
#landing .ld-passo:nth-child(4):hover { transform: translateY(-3px); box-shadow: 0 6px 0 -2px #A8DADC }
#landing .ld-capa-v { display: none }
#landing .ld-capa { background-color: #1D3557 }
#landing .ld-capa::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: linear-gradient(90deg, #F0142F 0% 25%, #1D3557 25% 50%, #457B9D 50% 75%, #A8DADC 75% 100%) bottom / 100% 6px no-repeat; z-index: 0 }
#landing .ld-capa-veu { background: none }
#landing .ld-capa::before { content: none }
/* Capa: o cartão-resposta lido pelo Gabarito, interativo (capa-cartao.js). As marcações atravessam A → E e param na letra marcada. */
.ld-cart { grid-column: 1; grid-row: 1 / span 2; align-self: center; justify-self: start; width: 100%; max-width: 470px; padding: 20px 20px 12px; border-radius: 16px; background: #fff; color: #141413; box-shadow: 0 24px 60px rgba(0,0,0,.35); font-family: var(--f-sans); --st: 40px; --bz: 33px }
.ld-cart:empty { display: none }
.lc-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px }
.lc-ok { margin: 0; padding: 7px 12px; border-radius: 8px; background: #E6F4EC; color: #167A3E; font: 600 13.5px/1.2 var(--f-sans); opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s }
.lc-ok::before { content: "✓  " }
.lc-ok.vis { opacity: 1; transform: none }
.lc-nota { display: grid; justify-items: end; line-height: 1 }
.lc-nota b { font: 700 40px/1 var(--f-sans); color: #1D3557; letter-spacing: -.02em; font-variant-numeric: tabular-nums }
.lc-nota span { font-size: 11px; color: #5E5D59; text-transform: uppercase; letter-spacing: .08em }
.lc-sub { margin: 4px 0 6px; font-size: 12.5px; color: #5E5D59 }
.lc-li { display: grid; grid-template-columns: 24px auto minmax(0,1fr) 46px; align-items: center; gap: 8px; padding: 3px 0; border-bottom: 1px solid #ECEFF2 }
.lc-li:last-child { border-bottom: 0 }
.lc-n { font: 700 14px/1 var(--f-sans); text-align: right; color: #1D3557 }
.lc-bol { position: relative; display: flex; gap: calc(var(--st) - var(--bz)) }
.lc-b { position: relative; z-index: 1; width: var(--bz); height: var(--bz); padding: 0; border-radius: 50%; border: 1px solid #CDD5DB; background: transparent; color: #43526F; font: 600 11.5px/1 var(--f-sans); cursor: pointer; transition: border-color .2s, box-shadow .2s, color .2s }
.lc-b:hover { border-color: #457B9D; box-shadow: 0 0 0 3px rgba(69,123,157,.18) }
.lc-b:focus-visible { outline: 2px solid #F0142F; outline-offset: 2px }
.lc-li.lida .lc-b.gab { box-shadow: 0 0 0 2.5px #1E9E55 }
.lc-mk { position: absolute; left: 0; top: 0; z-index: 0; width: var(--bz); height: var(--bz); border-radius: 50%; background: #141413; transform: translateX(calc(var(--k, 0) * var(--st))); transition: transform .5s cubic-bezier(.5,.05,.25,1), background .2s; pointer-events: none; opacity: 0 }
.lc-li.anda .lc-mk, .lc-li.lida .lc-mk { opacity: 1 }
.lc-li.anda .lc-mk { background: #F0142F }
.lc-b.on { color: #fff; border-color: transparent }
.lc-g { font-size: 12.5px; color: #1E9E55; text-align: right; white-space: nowrap; opacity: 0; transition: opacity .3s }
.lc-g b { font-size: 14px }
.lc-r { font: 600 12.5px/1 var(--f-sans); color: #1E9E55; text-align: right }
.lc-li.lida .lc-g { opacity: 1 }
.lc-li.errada .lc-r { color: #C81E1E }
@media (max-width: 860px) { .ld-cart { grid-row: auto; justify-self: center; max-width: 400px; --st: 36px; --bz: 30px } }
@media (max-width: 420px) { .ld-cart { --st: 31px; --bz: 26px; padding: 14px 12px 8px } .lc-li { grid-template-columns: 20px auto minmax(0,1fr) 40px; gap: 6px } .lc-g { font-size: 11px } .lc-nota b { font-size: 32px } }
@media (prefers-reduced-motion: reduce) { body.ts.ts *, #landing * { transition: none !important; transform: none !important } }
/* chapéu da logo: preto, com a cordinha e a bolinha na cor do botão (azul-tinta) */
svg.logo, .band-logo svg, .ini-brand svg, .side-brand svg { --lg1: #111111 !important; --lg2: #2B2B2B !important; --lg3: #1D3557 !important }
body.ts.ts .ed { background: var(--papel) } /* área da prova e a barra dela na mesma cor do fundo (Rafael, 11/11/2026) */
@media (max-width: 480px) { body.ts.ts .hdr .topnav button { flex: 1 1 auto; min-width: 0; justify-content: center; padding-left: 4px !important; padding-right: 4px !important; font-size: 13px !important; letter-spacing: 0 !important } body.ts.ts .hdr .topnav { gap: 0 !important; width: 100%; max-width: 100%; box-sizing: border-box; overflow: hidden } } /* cinco abas (com Início) cabem no celular */

/* Barra de cima em degradê forte (Rafael, 11/11/2026, opção 3: "a parte branca de fundo mais colorida, interativa"):
   azul-tinta → azul → verde-água, letras brancas, faixa de quatro cores mais grossa (10 px); a aba acende ao passar o mouse. */
body.ts.ts .hdr { background: linear-gradient(90deg, #F0142F 0% 25%, #1D3557 25% 50%, #457B9D 50% 75%, #A8DADC 75% 100%) bottom / 100% 10px no-repeat, linear-gradient(90deg, #1D3557 0%, #457B9D 60%, #2A9D8F 100%) !important; padding-bottom: 10px !important; color: #FFFFFF }
body.ts.ts .hdr .brand, body.ts.ts .hdr .brand .wm { color: #FFFFFF !important }
body.ts.ts .hdr .brand .wm .wm-o { color: #FF2A44 !important }
/* Logo original (Rafael, 18/11/2026: "siga a logo original"): chapéu azul-marinho #0B1F44 e azul #1F4296 com a cordinha vermelha,
   num quadrado branco de cantos redondos, como o ícone do app; o "o" de gabarito em vermelho vivo. */
body.ts.ts .hdr svg.logo { --lg1: #0B1F44 !important; --lg2: #1F4296 !important; --lg3: #E0112B !important; background: #FFFFFF; border-radius: 10px; padding: 5px 4px; box-sizing: content-box }
body.ts.ts .hdr .topnav button { color: rgba(255, 255, 255, .9) !important; transition: background .15s ease, color .15s ease, transform .15s ease }
body.ts.ts .hdr .topnav button:hover { background: rgba(255, 255, 255, .18) !important; color: #FFFFFF !important; transform: translateY(-1px) }
body.ts.ts .hdr .topnav button[aria-current="page"], body.ts.ts .hdr .topnav button[aria-current="page"]:hover { color: #1D3557 !important; box-shadow: none !important }
body.ts.ts .hdr .lm-nav-ind { background: #FFFFFF !important; box-shadow: 0 4px 14px rgba(0, 0, 0, .18) }
body.ts.ts .hdr .lm-corrigir { background: #FFFFFF !important; color: #1D3557 !important; border-color: #FFFFFF !important; transition: background .15s ease, color .15s ease, transform .15s ease }
body.ts.ts .hdr .lm-corrigir svg { color: currentColor }
body.ts.ts .hdr .lm-corrigir:hover { background: #F0142F !important; border-color: #F0142F !important; color: #FFFFFF !important; transform: translateY(-1px) }
body.ts.ts .hdr .ts-voltar { background: rgba(255, 255, 255, .12) !important; color: #FFFFFF !important; border-color: rgba(255, 255, 255, .45) !important }
body.ts.ts .hdr .ts-voltar:hover { background: rgba(255, 255, 255, .24) !important }
@media (prefers-reduced-motion: reduce) { body.ts.ts .hdr .topnav button:hover, body.ts.ts .hdr .lm-corrigir:hover { transform: none } }

/* CONTADOR DA ASSINATURA + ASSINAR na barra de cima do site (Rafael, 14/11/2026; limpo.js assinBarra). */
body.ts.ts .hdr .lm-assin { display: inline-flex; align-items: center; gap: 8px }
body.ts.ts .hdr .lm-assin button { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 14px; border-radius: 4px; font: 600 14px/1 var(--f-sans); cursor: pointer; white-space: nowrap; transition: background .15s ease, transform .15s ease }
body.ts.ts .hdr .lm-assin-t { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.45); color: #FFFFFF }
body.ts.ts .hdr .lm-assin-t:hover { background: rgba(255,255,255,.26) }
body.ts.ts .hdr .lm-assin-t.perto { background: #F4C95D; border-color: #F4C95D; color: #1D3557 }
body.ts.ts .hdr .lm-assin-t.fim, body.ts.ts .hdr .lm-assin-t.off { background: #FFFFFF; border-color: #FFFFFF; color: #C81E1E }
body.ts.ts .hdr .lm-assin-t.fim svg { animation: lm-assin-pisca 1.6s ease-in-out infinite }
body.ts.ts .hdr .lm-assin-t.fund { background: #F0142F; border-color: #F0142F; color: #FFFFFF; box-shadow: 0 0 0 2px rgba(255,255,255,.35) } /* Sócio fundador (18/11/2026): vermelho vivo, letra branca */
body.ts.ts .hdr .lm-assin-t.fund:hover { background: #D10E26; border-color: #D10E26 }
body.ts.ts .hdr .lm-assin-t.fund svg { color: #FFFFFF }
body.ts.ts .hdr .lm-assin-b { background: #F0142F; border: 1px solid #F0142F; color: #FFFFFF; box-shadow: 0 0 0 2px rgba(255,255,255,.35) }
body.ts.ts .hdr .lm-assin-b:hover { background: #D10E26; border-color: #D10E26; transform: translateY(-1px) }
@keyframes lm-assin-pisca { 50% { opacity: .35 } }
@media (max-width: 760px) {
  body.ts.ts .hdr .lm-assin { gap: 6px }
  body.ts.ts .hdr .lm-assin button { min-height: 36px; padding: 0 10px; font-size: 13px; gap: 5px }
}
@media (max-width: 420px) { body.ts.ts .hdr .lm-assin-b span { display: none } body.ts.ts .hdr .lm-assin-b { padding: 0 9px } }
@media (prefers-reduced-motion: reduce) { body.ts.ts .hdr .lm-assin-t.fim svg { animation: none } body.ts.ts .hdr .lm-assin-b:hover { transform: none } }
body.ts.ts .hdr .lm-corrigir { white-space: nowrap }
@media (max-width: 1360px) and (min-width: 761px) { body.ts.ts .hdr .lm-corrigir span { display: none } body.ts.ts .hdr .lm-corrigir { padding: 0 14px } }
body.ts.ts .hdr .lm-assin-f { font-style: normal }
@media (max-width: 1180px) and (min-width: 761px) { body.ts.ts .hdr .lm-assin-f, body.ts.ts .hdr .lm-assin-b span { display: none } body.ts.ts .hdr .lm-assin button { padding: 0 11px } }
/* BARRA DE CIMA EM TELAS MÉDIAS (Rafael, 18/11/2026: "isso está muito desorganizado"): entre 821 e 1280 px o avatar e o Assinar
   saíam da tela e o botão Voltar ficava espremido em cima do logo. Abas mais estreitas, Voltar só com a seta e assinatura compacta. */
body.ts.ts .hdr .ts-voltar { flex: none }
@media (max-width: 1280px) and (min-width: 821px) {
  body.ts.ts .hdr .topnav { gap: 2px }
  body.ts.ts .hdr .topnav button { padding: 0 11px !important; font-size: 15.5px !important }
  body.ts.ts .hdr .ts-voltar span { display: none }
  body.ts.ts .hdr .ts-voltar { padding: 0 9px }
  body.ts.ts .hdr .lm-assin button { padding: 0 10px; gap: 6px }
}
@media (max-width: 1100px) and (min-width: 821px) {
  body.ts.ts .hdr .topnav button { padding: 0 8px !important; font-size: 14.5px !important }
  body.ts.ts .hdr .lm-assin-t.off span { display: none }
  body.ts.ts .hdr .brand .wm { font-size: 24px }
}
@media (max-width: 980px) and (min-width: 821px) {
  body.ts.ts .hdr .topnav button { padding: 0 6px !important; font-size: 14px !important }
  body.ts.ts .hdr .lm-assin-t span, body.ts.ts .hdr .lm-assin-b span { display: none }
  body.ts.ts .hdr .brand .wm { font-size: 21px }
}
@media (max-width: 880px) and (min-width: 821px) {
  body.ts.ts .hdr .topnav button { padding: 0 5px !important; font-size: 13.5px !important }
  body.ts.ts .hdr .brand .wm { display: none }
}

/* Letra (Rafael, 20/11/2026: títulos sem serifa, "uma letra assim"): títulos e textos do site em Instrument Sans, com Inter de reserva.
   Só no site: o app das lojas (html.nativo) continua com as letras de antes. O caderno do PDF não muda (é desenhado no sheets.js). */
html:not(.nativo) {
  --f-sans: 'Instrument Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --f-serif: 'Instrument Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
