/* Páginas públicas por assunto (geradas por scripts/paginas_assuntos.py). Usa os tokens de styles.css. */
body {
  background: var(--bg);
}
.pub-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 24px;
}
.pub-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--f-display);
  font-size: 17px;
  letter-spacing: -0.4px;
}
.pub-brand .brand-mark {
  width: 32px;
  height: 34px;
  padding: 8px;
  gap: 4px;
  border-radius: 10px;
}
.pub-brand .brand-mark i {
  width: 15px;
}
.pub-brand .brand-mark i:nth-child(2) {
  width: 10px;
}
.pub-brand .brand-mark i:nth-child(3) {
  width: 12px;
}
.pub-top nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 600;
}
.pub-top nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
}
.pub-top .btn {
  min-height: 38px;
  padding: 8px 14px;
}
.pub-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 24px 48px;
}
.pub-crumbs {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 22px;
}
.pub-crumbs a {
  color: var(--accent);
  text-decoration: none;
}
.pub-crumbs a:hover {
  text-decoration: underline;
}
.pub-eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.pub-page h1 {
  font-family: var(--f-display);
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin: 0 0 12px;
}
.pub-page h2 {
  font-family: var(--f-display);
  font-size: 21px;
  margin: 40px 0 12px;
}
.pub-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 68ch;
}
.pub-hint {
  color: var(--muted);
  font-size: 14px;
  margin: -4px 0 18px;
}
.pub-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 24px 0;
}
.pub-cta h2 {
  margin: 0 0 4px;
  font-size: 18px;
}
.pub-cta p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.pub-cta .btn {
  flex: none;
  font-size: 14px;
}
.pub-temas {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 8px;
}
.pub-temas li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
}
.pub-temas a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.pub-temas a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.pub-temas span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.pub-materia h3 {
  font-family: var(--f-display);
  font-size: 17px;
  margin: 22px 0 10px;
}
.pub-materia h3 a {
  color: var(--ink);
}
.pub-materia h3 span {
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
}
.pq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 0 0 18px;
}
.pq-fonte {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 14px;
}
.pq-fonte span {
  font-weight: 600;
  text-transform: capitalize;
  color: var(--accent);
}
.pq-md {
  font-family: var(--f-reading);
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.pq-md p {
  margin: 0 0 12px;
}
.pq-md img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 8px 0 12px;
  border-radius: 6px;
  background: #fff;
}
.pq-comando {
  font-weight: 600;
}
.pq-alternativas {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  display: grid;
  gap: 8px;
}
.pq-alternativas li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.pq-alternativas .pq-md p {
  margin: 0;
}
.pq-letra {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}
.pq-resolucao {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 12px;
}
.pq-resolucao summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent);
  font-size: 14px;
}
.pq-gabarito {
  margin: 12px 0 8px;
  font-size: 15px;
}
.pub-footer {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 24px 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.pub-footer a {
  color: var(--accent);
}
@media (max-width: 640px) {
  .pub-top,
  .pub-page,
  .pub-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .pub-top nav a:not(.btn) {
    display: none;
  }
  .pub-page h1 {
    font-size: 27px;
  }
  .pub-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .pq {
    padding: 18px 16px;
  }
}
