/* Área de materiais grátis (/materiais). Usa os tokens de landing.css. */
:root { --font-manrope: "Manrope"; }
.logo img, .rodape__marca img { display: block; height: 30px; width: auto; }
.rodape__marca img { height: 28px; }
.entrada input::placeholder { color: #66666d; }

.migalhas ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 22px; padding: 0; font-size: 13px; color: var(--color-muted-foreground); }
.migalhas li + li::before { content: "/"; margin-right: 6px; color: var(--color-border-strong); }
.migalhas a { color: inherit; text-decoration: none; }
.migalhas a:hover { color: var(--color-foreground); text-decoration: underline; }
.migalhas [aria-current] { color: var(--color-foreground); }

/* ---------- Página de um material ---------- */
.mat { width: min(1080px, 100% - 32px); margin: 0 auto; padding: 56px 0 96px; display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 64px; align-items: start; }
.mat__cabeca { grid-column: 1 / -1; max-width: 760px; }
.mat__cabeca h1 { margin: 10px 0 16px; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 650; text-wrap: balance; }
.mat__intro p { margin: 0 0 12px; font-size: 18px; line-height: 1.65; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); }
.mat__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.mat__meta span { padding: 5px 12px; border: 1px solid var(--lp-linha); border-radius: 999px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted-foreground); }

.mat-baixar { grid-column: 1 / -1; margin: 36px 0 56px; padding: 24px; border: 1px solid var(--color-border); border-radius: 20px; background: var(--color-paper); display: flex; gap: 20px; align-items: flex-start; box-shadow: 0 1px 2px #0000000a, 0 24px 48px -32px color-mix(in srgb, var(--hero-shadow) 45%, transparent); }
.mat-baixar > img { width: 56px; height: 56px; flex: none; }
.mat-baixar__texto { flex: 1; min-width: 0; }
.mat-baixar h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; font-weight: 650; }
.mat-baixar p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--color-muted-foreground); }
.mat-baixar .entrada { margin-top: 16px; }
.mat-baixar__aviso { font-size: 12.5px !important; }
.mat-baixar__aviso a { color: inherit; text-underline-offset: 2px; }
.mat-baixar__link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; }
.mat-baixar__link[hidden] { display: none; }
.mat-baixar__link:hover { background: var(--accent-hover); }

.mat .indice { position: sticky; top: calc(var(--header-h) + 24px); border-left: 1px solid var(--lp-linha); }
.mat .indice p { margin: 0 0 10px 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-muted-foreground); }
.mat .indice ol { list-style: none; margin: 0; padding: 0; }
.mat .indice a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: 13.5px; line-height: 1.4; color: var(--color-muted-foreground); text-decoration: none; }
.mat .indice a:hover { color: var(--color-foreground); border-left-color: var(--accent); }

.mat__texto { min-width: 0; }
.mat__texto section { padding: 32px 0; border-top: 1px solid var(--lp-linha); scroll-margin-top: calc(var(--header-h) + 16px); }
.mat__texto section:first-child { border-top: 0; padding-top: 0; }
.mat__texto h2 { margin: 0 0 14px; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.65rem); line-height: 1.2; letter-spacing: -.03em; font-weight: 650; text-wrap: balance; }
.mat__texto h3 { margin: 24px 0 8px; font-size: 17px; letter-spacing: -.015em; font-weight: 650; }
.mat__texto p, .mat__texto li { font-size: 16px; line-height: 1.75; color: color-mix(in srgb, var(--color-foreground) 84%, transparent); }
.mat__texto p { margin: 0 0 14px; }
.mat__texto ul, .mat__texto ol { margin: 0 0 16px; padding-left: 22px; }
.mat__texto li { margin-bottom: 6px; }
.mat__texto li::marker { color: var(--accent); }
.mat__texto strong { color: var(--color-foreground); font-weight: 650; }
.mat__texto a { color: var(--accent); text-underline-offset: 3px; }
.mat__texto blockquote { margin: 18px 0; padding: 16px 20px; border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); border-radius: 14px; background: var(--accent-soft); }
.mat__texto blockquote p:last-child { margin-bottom: 0; }
.branco { display: inline-block; width: calc(var(--n, 4) * .5em); min-width: 1.6em; border-bottom: 1px solid var(--color-border-strong); vertical-align: -2px; }
.mat__texto li:has(> input[type="checkbox"]) { list-style: none; margin-left: -22px; }
.mat__texto li > input[type="checkbox"] { margin: 0 8px 0 0; accent-color: var(--accent); }
.tabela { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--color-border); border-radius: 14px; }
.tabela table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tabela th, .tabela td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); line-height: 1.55; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela th { background: var(--control-surface); font-weight: 650; font-size: 13.5px; }
.mat__texto .faq { margin-top: 4px; }
.mat__texto .faq p { margin: 0 4px 20px; font-size: 15px; }

.mat-app { grid-column: 1 / -1; margin-top: 64px; padding: 32px; border-radius: 24px; background: color-mix(in srgb, var(--hero-shadow) 4%, var(--page)); border: 1px solid var(--lp-linha); display: flex; gap: 28px; align-items: flex-start; }
.mat-app > img { width: 96px; height: auto; flex: none; }
.mat-app h2 { margin: 0; font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 650; max-width: 28ch; text-wrap: balance; }
.mat-app p { margin: 12px 0 0; max-width: 60ch; font-size: 15.5px; line-height: 1.65; color: var(--color-muted-foreground); }
.mat-app .mat-app__rot { color: var(--color-foreground); font-weight: 500; }
.mat-app .entrada { margin-top: 14px; }

/* ---------- Página com os cards ---------- */
.mats { width: min(1080px, 100% - 32px); margin: 0 auto; padding: 56px 0 96px; }
.mats__cabeca { max-width: 760px; }
.mats__cabeca h1 { margin: 10px 0 16px; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.5rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 650; text-wrap: balance; }
.mats__lead { margin: 0; font-size: 18px; line-height: 1.65; color: var(--color-muted-foreground); }
.mats__grade { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.mats__card { position: relative; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--color-border); border-radius: 20px; background: var(--page); transition: border-color var(--duration-quick), box-shadow var(--duration-fast) var(--ease-smooth-out), transform var(--duration-fast) var(--ease-smooth-out); }
.mats__card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--color-border)); box-shadow: 0 24px 48px -30px color-mix(in srgb, var(--hero-shadow) 50%, transparent); transform: translateY(-2px); }
.mats__card:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.mats__card img { width: 56px; height: 56px; }
.mats__card h2 { margin: 18px 0 8px; font-size: 19px; line-height: 1.25; letter-spacing: -.02em; font-weight: 650; }
.mats__card h2 a { text-decoration: none; }
.mats__card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.mats__card h2 a:focus-visible { outline: none; }
.mats__card p { margin: 0; flex: 1; font-size: 15px; line-height: 1.6; color: var(--color-muted-foreground); }
.mats__ver { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--accent); }

@media (max-width: 900px) {
  .topo__linha { grid-template-columns: 1fr auto; }
  .topo .nav { display: none; }
  .mat { grid-template-columns: minmax(0, 1fr); padding-top: 36px; }
  .mat .indice { position: static; margin-bottom: 32px; }
  .mat-baixar { flex-direction: column; padding: 20px; margin: 28px 0 36px; }
  .mat-app { flex-direction: column; padding: 24px; gap: 16px; }
  .mat-app > img { width: 72px; }
  .mats { padding-top: 36px; }
  /* Tabelas com 3 ou mais colunas rolam de lado em vez de espremer o texto. */
  .tabela table:has(th:nth-child(3)) { min-width: 560px; }
  .tabela th, .tabela td { padding: 10px 12px; }
  .mats__grade { margin-top: 32px; }
}

@media print {
  .topo, .rodape, .mat-baixar, .mat-app, .indice, .migalhas, .pular { display: none !important; }
  .mat { display: block; padding: 0; }
}

/* ---------- Currículos municipais ---------- */
.cur-busca { margin-top: 36px; max-width: 560px; }
.cur-busca label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.cur-busca .entrada__campo { border: 1px solid var(--color-border); box-shadow: var(--shadow-input-light); padding-right: 16px; }
.cur-busca input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 16px/1.4 var(--font-sans); color: var(--color-foreground); padding-block: 8px; }
.cur-busca input::placeholder { color: #66666d; }
.cur-busca__total { margin: 10px 0 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted-foreground); }
.cur-grade { margin-top: 24px; }
.cur-card h2 span { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--control-surface); font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; color: var(--color-muted-foreground); vertical-align: 3px; }
.cur-card[hidden] { display: none; }
.cur-card--sem { background: var(--color-paper); }
.cur-card--sem:hover { transform: none; box-shadow: none; border-color: var(--color-border); }
.cur-nada, .cur-pedir { margin: 24px 0 0; font-size: 15px; color: var(--color-muted-foreground); }
.cur-nada a, .cur-pedir a { color: var(--accent); font-weight: 600; }
.cur-oficial__acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cur-oficial .mat-baixar__link[hidden] { display: inline-flex; }
.cur-oficial__pagina { font-size: 14px; font-weight: 600; color: var(--accent); }
.cur-ficha { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; font-size: 15.5px; line-height: 1.6; }
.cur-ficha dt { font-weight: 650; color: var(--color-foreground); }
.cur-ficha dd { margin: 0; color: color-mix(in srgb, var(--color-foreground) 84%, transparent); }
.cur-termos { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; }
.cur-termos li { margin: 0 !important; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--color-border); font-size: 14px; }
@media (max-width: 600px) { .cur-ficha { grid-template-columns: 1fr; gap: 2px; } .cur-ficha dd { margin-bottom: 10px; } }
.cur-card h2 { margin-top: 0; }
