/*
 * Estilos do blog M&S Perícias.
 * Fonte única do CSS público do blog: o build o publica com hash em /blog/assets/blog.<hash>.css.
 * Independente do bundle do site (React/Tailwind). Os marcadores de fonte nos @font-face são trocados no build.
 *
 * Paleta da marca: navy #213A4D, tinta #182830, ouro #D8B567, marfim #F7F3EA, papel #FFFEFB.
 * Títulos em Newsreader (serifa); texto e interface em Inter.
 */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/newsreader.361cd91367.woff2) format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter.3100e775e8.woff2) format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter-italic.7291b5970d.woff2) format("woff2");
}

:root {
  --navy: #213a4d;
  --navy-deep: #182830;
  --ink: #182830;
  --muted: #4f5d66;
  --gold: #d8b567;
  --gold-deep: #8a6a14;
  --ivory: #f7f3ea;
  --paper: #fffefb;
  --rule: #d9d2c5;
  --link: #14506b;
  --focus: #14506b;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --measure: 41rem;
  --wrap: 72rem;
  --gutter: 1.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.site-header :focus-visible,
.site-footer :focus-visible,
.cta :focus-visible {
  outline-color: var(--gold);
}

[id] {
  scroll-margin-top: 1.5rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
}
.skip-link:focus {
  top: 1rem;
}

main {
  display: block;
}
main:focus {
  outline: none;
}

/* ---------- Cabeçalho do site ---------- */

.site-header {
  background: var(--navy);
  color: var(--ivory);
  border-bottom: 3px solid var(--gold);
}
.site-header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.75rem var(--gutter) 0.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.55rem;
  color: var(--ivory);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover {
  color: #fff;
  border-bottom-color: rgba(216, 181, 103, 0.6);
}
.site-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

@media (min-width: 48rem) {
  :root {
    --gutter: 2rem;
  }
  .site-header-inner {
    flex-direction: row;
    justify-content: space-between;
    padding: 0.5rem var(--gutter);
  }
  .site-nav a {
    padding: 0 0.85rem;
  }
}

/* ---------- Estrutura geral ---------- */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}
.breadcrumbs li {
  display: flex;
  align-items: center;
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--rule);
}
@media (max-width: 39.99rem) {
  .breadcrumbs li:last-child:not(:first-child) {
    display: none;
  }
}
.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}
.breadcrumbs [aria-current="page"] {
  color: var(--ink);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  color: var(--gold-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 1.25rem;
  height: 2px;
  background: var(--gold);
  flex: none;
}
a.eyebrow {
  min-height: 44px;
  text-decoration: none;
}
a.eyebrow:hover {
  text-decoration: underline;
}

/* ---------- Capa do índice ---------- */

.masthead {
  background: var(--ivory);
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 0 2.5rem;
}
.masthead-body {
  max-width: 44rem;
  margin: 1.5rem auto 0;
  text-align: center;
}
.masthead .eyebrow {
  justify-content: center;
}
.masthead h1 {
  margin: 0.75rem 0 0;
  font-family: var(--serif);
  font-size: 2.75rem;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.masthead .lede {
  margin: 1rem auto 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.0625rem;
}
.masthead .lede::after {
  content: "";
  display: block;
  width: 4rem;
  height: 2px;
  margin: 1.5rem auto 0;
  background: var(--gold);
}

@media (min-width: 48rem) {
  .masthead {
    padding: 1.5rem 0 3.25rem;
  }
  .masthead h1 {
    font-size: 3.75rem;
  }
  .masthead .lede {
    font-size: 1.1875rem;
  }
}

/* ---------- Editorias ---------- */

.editorias {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.editorias ul {
  display: flex;
  gap: 0.25rem 1.5rem;
  margin: 0 auto;
  max-width: var(--wrap);
  padding: 0 var(--gutter);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}
.editorias li {
  flex: none;
}
.editorias a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.editorias a:hover {
  color: var(--ink);
}
.editorias a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--gold);
}
.editorias .count {
  margin-left: 0.4rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
}

/* ---------- Listagens ---------- */

.listing {
  padding: 2.25rem 0 3.5rem;
  background: var(--paper);
}
.listing-title {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured {
  position: relative;
  display: grid;
  gap: 0;
  margin-bottom: 2.5rem;
  background: var(--ivory);
  border: 1px solid var(--rule);
}
.featured-media {
  margin: 0;
  background: var(--ivory);
  border-bottom: 1px solid var(--rule);
}
.featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.25rem 1.75rem;
}
.featured h2 {
  margin: 0.75rem 0 0;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.18;
  text-wrap: balance;
}
.featured h2 a,
.card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.featured h2 a::after,
.card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.featured h2 a:hover,
.card h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.featured .excerpt {
  margin: 0.9rem 0 0;
  color: var(--muted);
}
.featured .more {
  margin-top: 1.25rem;
  color: var(--link);
  font-size: 0.9375rem;
  font-weight: 600;
}

@media (min-width: 56rem) {
  .featured {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    margin-bottom: 3rem;
  }
  .featured-media {
    border-bottom: 0;
    border-right: 1px solid var(--rule);
  }
  .featured-body {
    padding: 2.5rem 2.5rem 2.5rem 2.75rem;
  }
  .featured h2 {
    font-size: 2.125rem;
  }
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 40rem) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 64rem) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1.75rem;
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--rule);
}
.card:hover,
.featured:hover {
  border-color: var(--navy);
}
.card-media {
  margin: 0;
  background: var(--ivory);
  border-bottom: 1px solid var(--rule);
}
.card-media img,
.featured-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem 1.25rem 1.25rem;
}
.card h3 {
  margin: 0.6rem 0 0;
  font-family: var(--serif);
  font-size: 1.3125rem;
  font-weight: 500;
  line-height: 1.22;
}
.card .excerpt {
  display: -webkit-box;
  margin: 0.7rem 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.6rem;
  margin: auto 0 0;
  padding-top: 1rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.meta-line span + span::before {
  content: "·";
  margin-right: 0.6rem;
}
.featured .meta-line {
  margin-top: 1rem;
  padding-top: 0;
}

.empty-note {
  padding: 2rem 0;
  color: var(--muted);
}

/* ---------- Paginação ---------- */

.pagination {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.85rem;
  color: var(--link);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
}
.pagination a:hover {
  border-color: var(--rule);
}
.pagination [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  border-color: var(--navy);
}
.pagination .gap {
  color: var(--muted);
  min-width: 24px;
  padding: 0;
}

/* ---------- Artigo: cabeçalho ---------- */

.article-wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.article-head {
  padding: 1rem 0 0.5rem;
}
.article-head .eyebrow {
  margin-top: 0;
}
.article-title {
  margin: 0.75rem 0 0;
  font-family: var(--serif);
  font-size: 2.125rem;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.article-deck {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.55;
}
.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 0.875rem;
  line-height: 1.5;
}
.byline div {
  display: flex;
  gap: 0.4rem;
}
.byline dt {
  color: var(--muted);
}
.byline dd {
  margin: 0;
  font-weight: 500;
}

@media (min-width: 48rem) {
  .article-title {
    font-size: 2.75rem;
  }
  .article-deck {
    font-size: 1.25rem;
  }
}
@media (min-width: 64rem) {
  .article-wrap {
    max-width: calc(15rem + 4rem + var(--measure) + 2 * var(--gutter));
  }
  .article-head {
    padding-top: 1.25rem;
  }
  .article-title {
    max-width: 50rem;
    font-size: 3rem;
  }
  .article-deck {
    max-width: 44rem;
  }
}

/* ---------- Artigo: grade (sumário + leitura) ---------- */

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 1.5rem;
}
.cover {
  margin: 0 0 1.5rem;
  background: var(--ivory);
  border: 1px solid var(--rule);
}
.cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (min-width: 64rem) {
  .article-grid {
    grid-template-columns: 15rem minmax(0, var(--measure));
    grid-template-areas:
      "rail cover"
      "rail answer"
      "rail body";
    column-gap: 4rem;
    margin-top: 2rem;
  }
  .cover {
    grid-area: cover;
  }
  .answer {
    grid-area: answer;
  }
  .toc {
    grid-area: rail;
  }
  .article-body {
    grid-area: body;
  }
}

/* ---------- Resposta curta (AEO) ---------- */

.answer {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.25rem 1.1rem;
  background: var(--ivory);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--gold);
}
.answer h2 {
  margin: 0 0 0.6rem;
  color: var(--gold-deep);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.answer-body {
  font-size: 1.125rem;
  line-height: 1.65;
}
.answer-body > :first-child {
  margin-top: 0;
}
.answer-body > :last-child {
  margin-bottom: 0;
}

@media (min-width: 48rem) {
  .answer {
    padding: 1.5rem 1.75rem 1.4rem;
  }
  .answer-body {
    font-size: 1.1875rem;
  }
}

/* ---------- Sumário ---------- */

.toc {
  margin: 0 0 1.5rem;
  background: var(--ivory);
  border: 1px solid var(--rule);
}
.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 1.1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.toc summary::-webkit-details-marker {
  display: none;
}
.toc summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.toc[open] summary::after {
  transform: rotate(-135deg);
}
.toc ol {
  margin: 0;
  padding: 0.25rem 1.1rem 1rem 2.6rem;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.toc li {
  margin: 0;
  padding-left: 0.25rem;
}
.toc li::marker {
  color: var(--gold-deep);
  font-size: 0.8125rem;
  font-weight: 600;
}
.toc a {
  display: block;
  padding: 0.4rem 0;
  color: var(--ink);
  text-decoration: none;
}
.toc a:hover {
  color: var(--link);
  text-decoration: underline;
}
.toc a[aria-current="location"] {
  color: var(--link);
  font-weight: 600;
}

@media (min-width: 64rem) {
  .toc {
    position: sticky;
    top: 1.5rem;
    align-self: start;
    max-height: calc(100vh - 3rem);
    margin: 0;
    overflow-y: auto;
    background: transparent;
    border: 0;
    border-top: 2px solid var(--navy);
  }
  .toc summary {
    min-height: 0;
    padding: 0.9rem 0 0.4rem;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: default;
    pointer-events: none;
  }
  .toc summary::after {
    display: none;
  }
  .toc ol {
    padding: 0 0 1rem 1.6rem;
    font-size: 0.875rem;
  }
}

/* ---------- Texto do artigo ---------- */

.prose {
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}
@media (min-width: 48rem) {
  .prose {
    font-size: 1.125rem;
  }
}
.prose > :first-child {
  margin-top: 0;
}
.prose p,
.prose ul,
.prose ol,
.prose blockquote {
  margin: 1.15em 0;
}
.prose h2 {
  margin: 2.6em 0 0.7em;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 1.625rem;
  font-weight: 500;
  line-height: 1.22;
  text-wrap: balance;
}
.prose h3 {
  margin: 2em 0 0.5em;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
}
.prose h4 {
  margin: 1.6em 0 0.4em;
  font-size: 1rem;
  font-weight: 600;
}
.prose ul,
.prose ol {
  padding-left: 1.5rem;
}
.prose li {
  margin: 0.45em 0;
  padding-left: 0.25rem;
}
.prose li::marker {
  color: var(--gold-deep);
}
.prose a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.prose a:hover {
  text-decoration-thickness: 2px;
}
.prose strong {
  font-weight: 600;
}
.prose blockquote {
  padding: 0.1rem 0 0.1rem 1.25rem;
  color: var(--muted);
  border-left: 3px solid var(--gold);
}
.prose hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid var(--rule);
}
.prose code {
  padding: 0.1em 0.3em;
  background: var(--ivory);
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-size: 0.9em;
}
.prose pre {
  margin: 0;
  padding: 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
}
.prose pre code {
  padding: 0;
  background: none;
  border: 0;
}

.b-scroll {
  margin: 1.5rem 0;
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  -webkit-overflow-scrolling: touch;
}
.b-scroll table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.b-scroll th,
.b-scroll td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
.b-scroll th {
  background: var(--ivory);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.b-scroll tr:last-child td {
  border-bottom: 0;
}

/* ---------- FAQ ---------- */

.faq {
  margin: 1.5rem 0;
}
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq details:first-of-type {
  border-top: 1px solid var(--rule);
}
.faq summary {
  position: relative;
  min-height: 48px;
  padding: 0.85rem 2.5rem 0.85rem 0;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  top: 0.65rem;
  right: 0.25rem;
  color: var(--gold-deep);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.4;
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq summary:hover {
  color: var(--link);
}
.faq details > p {
  margin: 0;
  padding: 0 0 1.1rem;
  color: var(--ink);
}

/* ---------- Fontes consultadas (GEO) ---------- */

.sources {
  margin: 3rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}
.sources h2,
.limits h2 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-size: 1.625rem;
  font-weight: 500;
  line-height: 1.22;
}
.sources p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.sources ol {
  margin: 0;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.sources li {
  margin: 0.6rem 0;
  padding-left: 0.25rem;
}
.sources li::marker {
  color: var(--gold-deep);
  font-weight: 600;
}
.sources .src-name {
  font-weight: 600;
}
.sources .src-url {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

/* ---------- CTA e limites ---------- */

.cta {
  margin: 3rem 0 0;
  padding: 1.75rem 1.5rem;
  background: var(--navy);
  color: var(--ivory);
  border-top: 4px solid var(--gold);
}
.cta h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
  color: #fff;
}
.cta p {
  margin: 0.8rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem 1.5rem;
  margin-top: 1.4rem;
}
.cta-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--ivory);
  font-size: 0.9375rem;
  font-weight: 500;
  text-underline-offset: 0.2em;
}
.cta-actions a:first-child {
  justify-content: center;
  padding: 0 1.5rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.cta-actions a:first-child:hover {
  background: #e6c985;
}
.cta-actions a:not(:first-child):hover {
  color: #fff;
}

@media (min-width: 40rem) {
  .cta {
    padding: 2.25rem 2.25rem;
  }
  .cta h2 {
    font-size: 1.75rem;
  }
  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

.limits {
  margin: 2rem 0 0;
  padding: 1.25rem 1.4rem 1.1rem;
  background: var(--ivory);
  border: 1px solid var(--rule);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.limits h2 {
  font-size: 1.25rem;
}
.limits p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

/* ---------- Autor ---------- */

.meta-line .by {
  flex-basis: 100%;
}
.meta-line .by::before {
  content: none;
}
.meta-line a {
  position: relative;
  z-index: 1;
  color: var(--link);
}
.byline-role {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
}
.byline dd a {
  color: var(--link);
}

.monogram {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
}
.monogram-lg {
  width: 5.5rem;
  height: 5.5rem;
  font-size: 2.25rem;
}

.author-hero {
  padding: 1.25rem 0 2.25rem;
  background: var(--ivory);
  border-bottom: 1px solid var(--rule);
}
.author-hero-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  margin-top: 1rem;
}
.author-hero h1 {
  margin: 0.6rem 0 0;
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.author-role {
  margin: 0.4rem 0 0;
  color: var(--gold-deep);
  font-size: 1rem;
  font-weight: 600;
}
.author-lede {
  max-width: 40rem;
  margin: 1rem 0 0;
  font-size: 1.125rem;
  line-height: 1.65;
}

@media (min-width: 48rem) {
  .author-hero {
    padding: 1.5rem 0 3.25rem;
  }
  .author-hero-body {
    flex-direction: row;
    gap: 2.25rem;
  }
  .author-hero h1 {
    font-size: 3.5rem;
  }
}

.author-facts {
  padding: 2.5rem 0 1rem;
}
.author-facts-grid {
  display: grid;
  gap: 2rem;
}
.author-facts h2 {
  margin: 0 0 0.9rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
}
.author-facts h2:not(:first-child) {
  margin-top: 2rem;
}
.author-facts p {
  margin: 0 0 0.75rem;
  max-width: 38rem;
}
.front-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.front-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}
.front-list a {
  display: inline-block;
  font-weight: 600;
}
.front-list span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}
@media (min-width: 56rem) {
  .author-facts-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.author-note .wrap {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.author-note p {
  max-width: 52rem;
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--ivory);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--gold);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.author-box {
  display: flex;
  gap: 1.1rem;
  margin: 2rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.author-box h2 {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.author-box p {
  margin: 0 0 0.4rem;
}

/* ---------- Navegação entre artigos e relacionados ---------- */

.article-nav {
  display: grid;
  gap: 1rem;
  margin: 3rem 0 0;
}
.article-nav a {
  display: block;
  padding: 1rem 1.25rem;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--rule);
}
.article-nav a:hover {
  border-color: var(--navy);
}
.article-nav .dir {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.article-nav .ttl {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.3;
}
.article-nav [rel="next"] {
  text-align: left;
}
@media (min-width: 40rem) {
  .article-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-nav [rel="next"] {
    grid-column: 2;
    text-align: right;
  }
}

.related {
  margin-top: 4rem;
  padding: 2.5rem 0 3.5rem;
  background: var(--ivory);
  border-top: 1px solid var(--rule);
}
.related h2 {
  margin: 0.6rem 0 1.5rem;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2;
}
.related-note {
  max-width: 44rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---------- Rodapé ---------- */

.site-footer {
  background: var(--navy);
  color: #e6e1d4;
  border-top: 3px solid var(--gold);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.site-footer-inner {
  display: grid;
  gap: 2rem;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 2rem;
}
.site-footer .brand {
  min-height: 0;
}
.site-footer p {
  margin: 0.6rem 0 0;
}
.site-footer h2 {
  margin: 0 0 0.6rem;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a:not(.brand) {
  display: inline-block;
  padding: 0.3rem 0;
  color: #e6e1d4;
  text-underline-offset: 0.2em;
}
.site-footer a:not(.brand):hover {
  color: #fff;
}
.site-footer address {
  margin-top: 0.4rem;
  font-style: normal;
}
.site-copyright {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.1rem var(--gutter) 1.5rem;
  border-top: 1px solid rgba(231, 225, 212, 0.2);
  color: #cfc9ba;
  font-size: 0.8125rem;
}
.site-copyright p {
  margin: 0;
}

@media (min-width: 48rem) {
  .site-footer-inner {
    grid-template-columns: 1.3fr 1fr 1.3fr;
    gap: 3rem;
    padding-top: 3rem;
    padding-bottom: 2.25rem;
  }
}

/* ---------- Movimento e impressão ---------- */

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .toc,
  .cta,
  .article-nav,
  .related,
  .editorias,
  .pagination {
    display: none !important;
  }
  body {
    background: #fff;
    font-size: 11pt;
  }
  .article-grid {
    display: block;
  }
  .prose a::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: var(--muted);
  }
}
