/* MeuGuia Estudante — páginas públicas de /estudar/. Usa as variáveis de css/style.css. */
.est-body { background: var(--paper, #fbf8f4); }
.est-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.est-bc { margin-top: 1rem; }

/* ---------- hero ---------- */
.est-hero { background: linear-gradient(180deg, var(--sand, #f6f1ea) 0%, var(--paper, #fbf8f4) 100%); padding: 2rem 0 2.2rem; border-bottom: 1px solid var(--line, #e6dfd4); }
.est-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.15; margin: .2rem 0 .8rem; max-width: 22ch; color: var(--forest, #16332f); text-wrap: balance; }
.est-hero-disc h1 { max-width: 28ch; }
.est-hero .lead { max-width: 68ch; font-size: 1.08rem; line-height: 1.6; color: var(--ink, #161616); }
.est-hero .eyebrow a { color: inherit; }
.est-search { display: flex; gap: .6rem; max-width: 640px; margin: 1.1rem 0 0; }
.est-search input[type="search"] { flex: 1; min-width: 0; padding: .8rem 1rem; border: 1px solid var(--line-strong, #d4cbbd); border-radius: 999px; font: inherit; background: #fff; }
.est-search input[type="search"]:focus { outline: 2px solid var(--teal, #2a6a62); outline-offset: 1px; }
.est-stats { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; max-width: 760px; }
.est-stats li { background: #fff; border: 1px solid var(--line, #e6dfd4); border-radius: var(--radius-sm, 10px); padding: .7rem .9rem; }
.est-stats strong { display: block; font-size: 1.6rem; line-height: 1.1; color: var(--teal, #2a6a62); }
.est-stats span { font-size: .85rem; color: var(--muted, #5c5854); }
.est-meta { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .9rem; color: var(--muted, #5c5854); }
.est-meta-hero { margin-top: 1rem; }
.est-meta strong { color: var(--forest, #16332f); }

/* ---------- cartões e grelhas ---------- */
.est-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.est-card { background: #fff; border: 1px solid var(--line, #e6dfd4); border-radius: var(--radius, 16px); padding: 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .35rem; box-shadow: var(--shadow-sm, none); transition: box-shadow .15s, transform .15s; }
.est-card:hover { box-shadow: var(--shadow, 0 10px 30px rgba(22, 51, 47, .08)); transform: translateY(-1px); }
.est-card h3 { font-size: 1.08rem; line-height: 1.3; margin: .1rem 0; }
.est-card h3 a { color: var(--forest, #16332f); text-decoration: none; }
.est-card h3 a:hover, .est-card h3 a:focus-visible { text-decoration: underline; }
.est-card p { margin: 0; font-size: .93rem; color: var(--muted, #5c5854); line-height: 1.5; }
.est-card-meta { display: flex; flex-wrap: wrap; gap: .3rem .7rem; font-size: .78rem; color: var(--subtle, #7a746c); }
.est-card-foot { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .8rem !important; margin-top: auto !important; padding-top: .5rem !important; color: var(--teal, #2a6a62) !important; font-weight: 600; }
.est-tag { background: var(--teal-soft, #e7f1ef); color: var(--teal, #2a6a62); border-radius: 999px; padding: .05rem .55rem; font-weight: 600; }
.est-lido-badge { color: var(--ok, #1f6b4a); }
.est-card.is-lido { border-color: #b9dcc9; background: #f6fbf8; }

.est-grupo { margin: 1.6rem 0; }
.est-grupo h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; color: var(--subtle, #7a746c); margin: 0 0 .6rem; }
.est-disc-l { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .6rem; }
.est-disc-l a { display: flex; justify-content: space-between; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--line, #e6dfd4); border-radius: var(--radius-sm, 10px); padding: .7rem .9rem; text-decoration: none; color: var(--forest, #16332f); font-weight: 600; }
.est-disc-l a:hover, .est-disc-l a:focus-visible { border-color: var(--teal, #2a6a62); background: var(--teal-soft, #e7f1ef); }
.est-disc-c { font-weight: 500; font-size: .8rem; color: var(--teal, #2a6a62); white-space: nowrap; }
.est-breve { margin-top: .7rem; }
.est-breve summary { cursor: pointer; color: var(--muted, #5c5854); font-size: .9rem; }
.est-disc-breve { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.est-disc-breve a { display: inline-block; padding: .25rem .7rem; border: 1px dashed var(--line-strong, #d4cbbd); border-radius: 999px; font-size: .85rem; color: var(--muted, #5c5854); text-decoration: none; }
.est-disc-breve a:hover { border-style: solid; color: var(--forest, #16332f); }

.est-cap-bloco { margin: 1.4rem 0 2rem; }
.est-cap-t { font-size: 1.15rem; margin: 0 0 .7rem; color: var(--forest, #16332f); }
.est-cap-t a { color: inherit; }
.est-cap-classe { font-size: .78rem; font-weight: 600; color: var(--teal, #2a6a62); background: var(--teal-soft, #e7f1ef); border-radius: 999px; padding: .1rem .6rem; margin-left: .4rem; vertical-align: middle; }
.est-nota-plano { color: var(--muted, #5c5854); font-size: .92rem; max-width: 70ch; }
.est-plano summary { cursor: pointer; font-weight: 600; color: var(--forest, #16332f); padding: .4rem 0; }
.est-plano-l { padding-left: 1.3rem; margin: .6rem 0 0; display: grid; gap: .35rem; }
.est-plano-n { font-weight: 600; }
.est-plano-m { display: block; font-size: .82rem; color: var(--subtle, #7a746c); }
.est-voltar { margin-top: 1.4rem; font-size: .95rem; }
.est-vazio { padding: 3rem 0; }

.est-passos { padding-left: 1.2rem; display: grid; gap: .6rem; max-width: 70ch; line-height: 1.6; }

/* ---------- artigo ---------- */
.est-artigo-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem 2.4rem; padding-bottom: 3rem; }
.est-artigo-cab { grid-column: 1 / -1; padding-top: .4rem; }
.est-artigo-cab h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.18; margin: .2rem 0 .6rem; color: var(--forest, #16332f); max-width: 26ch; text-wrap: balance; }
.est-artigo-cab .eyebrow a { color: inherit; text-decoration: none; }
.est-toc { grid-column: 1 / -1; }
.est-toc-d { background: #fff; border: 1px solid var(--line, #e6dfd4); border-radius: var(--radius-sm, 10px); padding: .7rem 1rem; }
.est-toc-d summary { cursor: pointer; font-weight: 700; color: var(--forest, #16332f); }
.est-toc-d ol { margin: .6rem 0 0; padding-left: 1.2rem; display: grid; gap: .3rem; font-size: .93rem; }
.est-toc-d a { color: var(--teal, #2a6a62); text-decoration: none; }
.est-toc-d a:hover { text-decoration: underline; }
.est-acoes { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.est-acoes .btn { font-size: .88rem; padding: .5rem .8rem; }
.est-lido-btn[aria-pressed="true"] { background: var(--ok-bg, #e5f4ec); border-color: var(--ok, #1f6b4a); color: var(--ok, #1f6b4a); }
@media (min-width: 1000px) {
  .est-artigo-grid { grid-template-columns: 250px minmax(0, 1fr); }
  .est-toc { grid-column: 1; grid-row: 2 / span 3; align-self: start; position: sticky; top: calc(var(--header-h, 80px) + 1rem); }
  .est-corpo { grid-column: 2; }
}

.est-corpo { min-width: 0; max-width: 780px; font-size: 1.06rem; line-height: 1.75; color: var(--ink, #161616); }
.est-corpo p { margin: 0 0 1rem; }
.est-corpo h2 { font-size: 1.45rem; line-height: 1.25; margin: 2.4rem 0 .8rem; color: var(--forest, #16332f); scroll-margin-top: calc(var(--header-h, 80px) + 1rem); }
.est-corpo h3 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; color: var(--forest, #16332f); scroll-margin-top: calc(var(--header-h, 80px) + 1rem); }
.est-corpo ul, .est-corpo ol { padding-left: 1.4rem; margin: 0 0 1.1rem; }
.est-corpo li { margin: .3rem 0; }
.est-corpo li > ul, .est-corpo li > ol { margin: .3rem 0 .3rem; }
.est-corpo sup, .est-corpo sub { line-height: 0; font-size: .75em; }
.est-corpo code { background: var(--sand, #f6f1ea); border-radius: 4px; padding: .05rem .35rem; font-size: .92em; }
.est-corpo blockquote { margin: 1rem 0; padding: .6rem 1rem; border-left: 4px solid var(--line-strong, #d4cbbd); background: #fff; border-radius: 0 8px 8px 0; }
.est-corpo blockquote p:last-child { margin-bottom: 0; }
.est-corpo a { color: var(--teal, #2a6a62); }

.est-resposta { background: var(--teal-soft, #e7f1ef); border-left: 5px solid var(--teal, #2a6a62); border-radius: 0 var(--radius-sm, 10px) var(--radius-sm, 10px) 0; padding: 1rem 1.2rem .4rem; margin: 0 0 1.4rem; }
.est-corpo .est-resposta-t { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal, #2a6a62); margin: 0 0 .4rem; }
.est-resposta p { font-size: 1.1rem; font-weight: 500; }

.est-figura { margin: 1.2rem 0 1.6rem; }
.est-figura img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm, 10px); border: 1px solid var(--line, #e6dfd4); background: #fff; }
.est-figura figcaption { font-size: .85rem; color: var(--muted, #5c5854); margin-top: .4rem; }

.est-tabela { overflow-x: auto; margin: 1rem 0 1.3rem; border: 1px solid var(--line, #e6dfd4); border-radius: var(--radius-sm, 10px); background: #fff; }
.est-tabela table { border-collapse: collapse; width: 100%; font-size: .95rem; line-height: 1.5; }
.est-tabela th, .est-tabela td { padding: .55rem .8rem; text-align: left; border-bottom: 1px solid var(--line, #e6dfd4); vertical-align: top; }
.est-tabela th { background: var(--sand, #f6f1ea); color: var(--forest, #16332f); font-weight: 700; white-space: nowrap; }
.est-tabela tr:last-child td { border-bottom: 0; }
.est-tabela:focus-visible { outline: 2px solid var(--teal, #2a6a62); }

.est-box { border-radius: var(--radius-sm, 10px); border: 1px solid var(--line, #e6dfd4); background: #fff; margin: 1.2rem 0 1.4rem; overflow: hidden; }
.est-box-t { margin: 0 !important; padding: .55rem 1rem; font-weight: 700; font-size: .95rem; background: var(--sand, #f6f1ea); color: var(--forest, #16332f); border-bottom: 1px solid var(--line, #e6dfd4); }
.est-box-b { padding: .9rem 1rem .1rem; }
.est-box-b > *:last-child { margin-bottom: .9rem; }
.est-exemplo { border-left: 5px solid var(--teal, #2a6a62); }
.est-exemplo .est-box-t { background: var(--teal-soft, #e7f1ef); color: var(--teal, #2a6a62); }
.est-nota { border-left: 5px solid #5b7fa6; }
.est-nota .est-box-t { background: #eaf0f7; color: #35557a; }
.est-atencao { border-left: 5px solid var(--accent, #b35a1f); }
.est-atencao .est-box-t { background: #fbefe4; color: #8a4310; }
.est-dica { border-left: 5px solid var(--ok, #1f6b4a); }
.est-box.est-dica .est-box-t { background: var(--ok-bg, #e5f4ec); color: var(--ok, #1f6b4a); }
.est-formula { border-left: 5px solid var(--forest, #16332f); }
.est-formula .est-box-b { text-align: center; font-size: 1.15rem; font-weight: 600; }

.est-ex-barra { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1rem !important; }
.est-ex-barra .btn { font-size: .88rem; padding: .45rem .8rem; }
.est-ex-dica { font-size: .88rem; color: var(--muted, #5c5854); }
.est-exercicio { background: #fff; border: 1px solid var(--line, #e6dfd4); border-radius: var(--radius-sm, 10px); padding: 1rem 1.1rem .4rem; margin: 0 0 1rem; }
.est-ex-t { margin: 0 0 .5rem !important; font-weight: 700; color: var(--forest, #16332f); display: flex; gap: .6rem; align-items: baseline; }
.est-ex-n { display: inline-flex; align-items: center; justify-content: center; min-width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--forest, #16332f); color: #fff; font-size: .85rem; flex: none; }
.est-ex-en > *:last-child { margin-bottom: .7rem; }
.est-sol, .est-dica-d { margin: 0 0 .8rem; border-radius: 8px; }
details.est-sol, details.est-dica { border: 1px dashed var(--line-strong, #d4cbbd); background: #fcfaf6; padding: 0 .9rem; }
details.est-sol[open] { border-style: solid; border-color: var(--teal, #2a6a62); background: #f4faf8; }
details.est-sol > summary, details.est-dica > summary { cursor: pointer; font-weight: 600; padding: .55rem 0; color: var(--teal, #2a6a62); }
details.est-sol > *:not(summary):last-child, details.est-dica > *:not(summary):last-child { margin-bottom: .8rem; }
details.est-dica { background: #fcfaf6; border-color: var(--line-strong, #d4cbbd); }

.est-faq { background: #fff; border: 1px solid var(--line, #e6dfd4); border-radius: var(--radius-sm, 10px); padding: 0 1rem; margin: 0 0 .6rem; }
.est-faq > summary { cursor: pointer; font-weight: 600; padding: .75rem 0; color: var(--forest, #16332f); }
.est-faq[open] > summary { border-bottom: 1px solid var(--line, #e6dfd4); margin-bottom: .7rem; }
.est-faq-r > *:last-child { margin-bottom: .9rem; }

.est-sec-fontes ul { font-size: .96rem; }
.est-sec-resumo { background: #fff; border: 1px solid var(--line, #e6dfd4); border-radius: var(--radius-sm, 10px); padding: .2rem 1.3rem 0; margin-top: 2.2rem; }
.est-sec-resumo h2 { margin-top: 1rem; }

.est-revisao { margin-top: 2.4rem; padding: 1rem 1.2rem; border: 1px solid var(--line, #e6dfd4); border-radius: var(--radius-sm, 10px); background: var(--sand, #f6f1ea); font-size: .92rem; line-height: 1.55; color: var(--muted, #5c5854); }
.est-corpo .est-revisao h2 { font-size: 1rem; margin: 0 0 .4rem; color: var(--forest, #16332f); }
.est-revisao p { margin: 0 0 .5rem; }
.est-revisao p:last-child { margin: 0; }

.est-continuar { grid-column: 1 / -1; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line, #e6dfd4); }
.est-continuar h2 { font-size: 1.3rem; color: var(--forest, #16332f); margin: 0 0 1rem; }
@media (min-width: 1000px) { .est-continuar { grid-column: 1 / -1; } }

/* ---------- pesquisa ---------- */
.est-pesq-estado { color: var(--muted, #5c5854); margin: .8rem 0 0; min-height: 1.4em; }
mark.est-hl { background: #fff0b8; padding: 0 .1em; border-radius: 3px; }

@media (max-width: 560px) {
  .est-search { flex-direction: column; }
  .est-search .btn { width: 100%; }
  .est-corpo { font-size: 1.02rem; }
}

@media print {
  .site-header, .site-footer, .est-toc, .est-acoes, .est-ex-barra, .est-continuar, .breadcrumbs, .skip-link, .tts-widget, .est-search, .wa-float { display: none !important; }
  .est-artigo-grid { display: block; }
  .est-corpo { max-width: none; font-size: 11.5pt; }
  details.est-sol > *, details.est-dica > *, details.est-faq > * { display: block !important; }
  details.est-sol, details.est-dica { border: 1px solid #999; }
  a { color: inherit; text-decoration: none; }
  .est-box, .est-exercicio, .est-resposta { break-inside: avoid; }
}

/* cabeçalho: com o item «Estudar» a barra fica mais larga; aperta-se só nestas páginas */
.est-body .header-inner { gap: .8rem; }
.est-body .site-nav { gap: .15rem .9rem; }
.est-body .site-nav a { font-size: .88rem; }
.est-body .site-nav a.header-cta { color: #fff; padding: .55rem 1rem; white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 761px) { .est-body .site-nav a:nth-child(n+8):not(.header-cta) { display: none; } }

/* ---------- capas das disciplinas e plano de temas ---------- */
.est-capa { padding: 1.2rem 0 0; }
.est-capa .est-figura { margin: 0; max-width: 820px; }
.est-capa img { width: 100%; height: auto; border-radius: var(--radius, 16px); border: 1px solid var(--line, #e6dfd4); display: block; }
.est-dgrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .8rem; }
.est-dcard a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line, #e6dfd4); border-radius: var(--radius-sm, 12px); overflow: hidden; text-decoration: none; color: var(--forest, #16332f); }
.est-dcard a:hover, .est-dcard a:focus-visible { border-color: var(--teal, #2a6a62); box-shadow: var(--shadow-sm, 0 4px 14px rgba(22, 51, 47, .08)); }
.est-dcard img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--sand, #f6f1ea); }
.est-dcard .est-disc-n { font-weight: 700; padding: .55rem .8rem 0; line-height: 1.25; }
.est-dcard .est-disc-c { font-size: .82rem; color: var(--muted, #5c5854); padding: .1rem .8rem .7rem; }
.est-temas-t { margin: 2rem 0 .3rem; font-size: 1.25rem; color: var(--forest, #16332f); }
.est-temas { margin: .8rem 0 0; padding-left: 1.5rem; display: grid; gap: .3rem; max-width: 80ch; color: var(--muted, #5c5854); }
.est-temas li::marker { color: var(--subtle, #7a746c); font-size: .85em; }
.est-tema-ok a { font-weight: 700; color: var(--teal, #2a6a62); }
.est-plano-n a { color: inherit; text-decoration: none; }
.est-plano-n a:hover, .est-plano-n a:focus-visible { text-decoration: underline; color: var(--teal, #2a6a62); }

/* galeria de imagens do Estudar */
.est-igrid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px}
.est-icard{background:#fff;border:1px solid #e3e0d8;border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.est-icard img{display:block;width:100%;height:auto;aspect-ratio:auto;background:#eef2f0}
.est-icard p{margin:0;padding:10px 12px 12px;display:flex;flex-direction:column;gap:4px;font-size:.92rem;line-height:1.35}
.est-icard p a{font-weight:600;color:inherit;text-decoration:none}
.est-icard p a:hover{text-decoration:underline}
.est-icard p span{font-size:.8rem;color:#5a6b66}
.est-pag{margin-top:28px}
.est-pag ul{list-style:none;display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:0;justify-content:center}
.est-pag a,.est-pag span{display:inline-block;min-width:38px;padding:8px 12px;text-align:center;border:1px solid #cfd8d4;border-radius:8px;text-decoration:none}
.est-pag span{background:#1f4a44;color:#fff;border-color:#1f4a44}
.est-ref { margin-top: 1.6rem; padding: 1rem 1.2rem; border: 1px solid var(--line, #e6dfd4); border-radius: var(--radius-sm, 10px); background: #fff; font-size: .92rem; line-height: 1.55; color: var(--muted, #5c5854); }
.est-corpo .est-ref h2 { font-size: 1rem; margin: 0 0 .4rem; color: var(--forest, #16332f); }
.est-ref p { margin: 0 0 .4rem; }
.est-ref ul { margin: 0; padding-left: 1.1rem; }
.est-texto { max-width: 46rem; }
.est-texto h2 { font-size: 1.25rem; margin: 1.6rem 0 .5rem; color: var(--forest, #16332f); }
