.page-hero {
  padding: clamp(3rem, 7vw, 6rem) 0 2.5rem;
}

.page-hero.compact {
  padding-bottom: 1rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  padding: 0;
  color: var(--ink-soft);
  list-style: none;
  font-size: 0.78rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.45rem;
  color: var(--line-dark);
}

.page-hero h1,
.article-header h1 {
  max-width: 980px;
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(2.65rem, 7vw, 5.9rem);
  letter-spacing: -0.06em;
}

.article-header {
  padding: clamp(3rem, 7vw, 6.2rem) 0 2rem;
}

.article-deck {
  max-width: 820px;
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.article-labels,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.article-labels {
  margin-bottom: 1.1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: var(--paper-strong);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
}

.pill.canon {
  border-color: #ff5a00;
  background: #000000;
  color: var(--canon);
}

.pill.spoiler {
  border-color: #ff5a00;
  background: #000000;
  color: #ff5a00;
}

.article-meta {
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.article-meta span:not(:last-child)::after {
  content: "•";
  margin-left: 0.6rem;
  color: var(--line-dark);
}

.cover-wrap {
  width: min(calc(100% - 2rem), 1280px);
  margin: 1.5rem auto 0;
}

.cover-wrap img {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 28px;
  box-shadow: 10px 10px 0 var(--mint);
}

.article-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px) 180px;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  justify-content: center;
  padding: 4rem 0 6rem;
}

.toc {
  align-self: start;
  position: sticky;
  top: 104px;
  padding: 1rem;
  border-left: 3px solid var(--violet);
  color: var(--ink-soft);
}

.toc strong {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--ink);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  color: var(--violet-dark);
}

.article-content {
  min-width: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.82;
}

.article-content > p:first-of-type::first-letter {
  float: left;
  margin: 0.04em 0.09em 0 0;
  color: var(--violet);
  font-size: 4.4em;
  font-weight: 700;
  line-height: 0.78;
}

.article-content h2 {
  margin: 3.3rem 0 1rem;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  letter-spacing: -0.045em;
}

.article-content h3 {
  margin: 2.2rem 0 0.8rem;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}

.article-content a {
  color: var(--violet-dark);
}

.quick-answer,
.editorial-box,
.warning-box,
.theory-box {
  margin: 1.7rem 0;
  padding: 1.25rem 1.35rem;
  border-radius: 4px 16px 16px 16px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
}

.quick-answer {
  border: 2px solid var(--ink);
  background: var(--mint);
  box-shadow: 5px 5px 0 var(--ink);
}

.editorial-box {
  border-left: 5px solid var(--canon);
  background: #000000;
}

.warning-box {
  border-left: 5px solid var(--coral);
  background: #000000;
}

.theory-box {
  border-left: 5px solid #ff5a00;
  background: #000000;
}

.quick-answer strong,
.editorial-box strong,
.warning-box strong,
.theory-box strong {
  display: block;
  margin-bottom: 0.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spoiler-gate {
  margin: 1.7rem 0;
  padding: 1.1rem;
  border: 1px solid #ff5a00;
  border-radius: 14px;
  background: #000000;
  font-family: "Roboto", Arial, sans-serif;
}

.spoiler-content[hidden] {
  display: none;
}

.spoiler-locked .article-content > .spoiler-gate ~ * {
  display: none;
}

.article-figure {
  margin: 2.5rem 0;
}

.article-figure img {
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
}

.article-figure figcaption {
  margin-top: 0.6rem;
  color: var(--ink-soft);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 0.78rem;
}

.table-scroll {
  overflow-x: auto;
  margin: 1.8rem 0;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper-strong);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 0.87rem;
}

.article-content th,
.article-content td {
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-content th {
  background: #000000;
  color: #ffffff;
}

.article-content tr:last-child td {
  border-bottom: 0;
}

.summary-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.4rem 0;
  padding: 0;
  list-style: none;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 0.95rem;
}

.summary-list li {
  position: relative;
  padding-left: 1.8rem;
}

.summary-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--violet);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-list details {
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: var(--paper-strong);
  font-family: "Roboto", Arial, sans-serif;
}

.faq-list summary {
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-weight: 800;
}

.faq-list details p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.article-rail {
  align-self: start;
  position: sticky;
  top: 104px;
}

.rail-note {
  padding: 1rem;
  border-top: 3px solid var(--coral);
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.ad-slot {
  min-height: 250px;
}

.author-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding: 1.4rem;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background: var(--paper-strong);
  font-family: "Roboto", Arial, sans-serif;
}

.author-avatar {
  width: 84px;
  height: 84px;
  display: block;
  flex: 0 0 84px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 3px 3px 0 var(--ink);
  object-fit: cover;
  object-position: center;
  overflow: hidden;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
}

.author-avatar-link {
  display: block;
  width: 84px;
  height: 84px;
  box-sizing: border-box;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 3px 3px 0 var(--ink);
  line-height: 0;
}

.author-avatar-link .author-avatar {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translate(4%, 12%) scale(1.35);
}

.author-box h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.author-box p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.related-section {
  padding: 4rem 0;
  border-top: 1px solid var(--line);
  background: var(--paper-strong);
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.pager a {
  padding: 1rem;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: var(--paper-strong);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
}

.pager a:last-child {
  text-align: right;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding-bottom: 5rem;
}

.prose-page {
  width: min(calc(100% - 2rem), 780px);
  margin-inline: auto;
  padding: 1rem 0 6rem;
}

.prose-page h2 {
  margin-top: 2.7rem;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: #000000;
}

.field textarea {
  min-height: 180px;
  resize: vertical;
}

.form-status {
  margin-top: 1rem;
  color: var(--canon);
  font-weight: 700;
}

.back-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 45;
}

@media (max-width: 1120px) {
  .article-shell {
    grid-template-columns: 220px minmax(0, 760px);
  }

  .article-rail {
    display: none;
  }
}

@media (max-width: 840px) {
  .article-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc {
    position: static;
    margin-bottom: 1rem;
  }

  .listing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .article-header h1,
  .page-hero h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .cover-wrap {
    width: calc(100% - 1.25rem);
  }

  .cover-wrap img {
    border-radius: 17px;
    box-shadow: 6px 6px 0 var(--mint);
  }

  .article-content {
    font-size: 1.03rem;
  }

  .listing-grid,
  .form-grid,
  .pager {
    grid-template-columns: 1fr;
  }

  .pager a:last-child {
    text-align: left;
  }
}


/* Imagens editoriais responsivas 16:9 */
.cover-wrap img,
.article-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  object-position: center;
  background: #000000;
}

.cover-wrap figcaption {
  margin-top: 0.6rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
}

.article-content table,
.faq-list details,
.author-box,
.rail-note,
.form-panel,
.prose-page blockquote {
  background: #000000;
  color: #ffffff;
}

.article-content th {
  background: #000000;
  color: #ff5a00;
}

/* Leitura longa confortável e sinalização editorial por evidência */
.page-hero,
.article-header {
  background: linear-gradient(180deg, rgba(16, 20, 31, 0.78), rgba(7, 9, 15, 0));
}

.article-deck,
.article-meta,
.breadcrumbs ol,
.toc,
.article-figure figcaption,
.cover-wrap figcaption {
  color: var(--muted);
}

.cover-wrap img {
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--surface);
  box-shadow: 10px 10px 0 rgba(0, 217, 111, 0.64), 0 24px 58px rgba(0, 0, 0, 0.38);
}

.article-content {
  color: #e9edf6;
}

.article-content p {
  max-width: 72ch;
}

.article-content p + p {
  margin-top: 1.15em;
}

.article-content h2 {
  padding-left: 0.85rem;
  border-left: 4px solid var(--orange);
  color: var(--text);
  line-height: 1.14;
}

.article-content h3 {
  color: var(--text);
}

.article-content a {
  color: #ff8a4a;
}

.toc {
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: 0 14px 14px 0;
  background: rgba(16, 20, 31, 0.72);
}

.quick-answer,
.editorial-box,
.warning-box,
.theory-box,
.spoiler-gate,
.faq-list details,
.author-box,
.rail-note,
.form-panel,
.prose-page blockquote {
  background: var(--surface);
  color: var(--text);
}

.quick-answer {
  border-color: var(--green);
  background: rgba(0, 217, 111, 0.08);
  box-shadow: 5px 5px 0 rgba(0, 217, 111, 0.50);
}

.editorial-box {
  border-color: var(--green);
  background: rgba(0, 217, 111, 0.055);
}

.warning-box {
  border-color: var(--orange);
  background: rgba(255, 90, 0, 0.07);
}

.theory-box {
  border-color: var(--yellow);
  background: rgba(255, 214, 0, 0.065);
}

.theory-box strong {
  color: var(--yellow);
}

.pill {
  background: var(--surface);
}

.pill.canon {
  border-color: rgba(0, 217, 111, 0.62);
  background: rgba(0, 217, 111, 0.07);
  color: var(--green);
}

.pill.spoiler {
  border-color: rgba(255, 90, 0, 0.66);
  background: rgba(255, 90, 0, 0.07);
  color: #ff8a4a;
}

.table-scroll {
  border-color: var(--line);
  background: var(--surface);
}

.article-content table {
  background: var(--surface);
}

.article-content th {
  background: var(--surface-2);
  color: var(--yellow);
}

.article-content td,
.article-content th {
  border-color: var(--line);
}

.faq-list details {
  border-color: var(--line);
}

.faq-list details[open] {
  border-color: rgba(35, 136, 255, 0.44);
}

.faq-list details p {
  color: var(--muted);
}

.article-facet-map {
  margin-top: 3.3rem;
}

.article-facet-map .facet-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-facet-map .facet-card {
  min-height: 220px;
}

@media (max-width: 680px) {
  .article-facet-map .facet-grid {
    grid-template-columns: 1fr;
  }

  .article-facet-map .facet-card {
    min-height: 0;
  }
}
