/* Leitura longa: largura confortável e índice ao lado do texto. */
.article-hero {
  background: var(--surface-soft);
  padding: 40px 0 64px;
}
.article-hero .breadcrumbs {
  margin-bottom: 34px;
}
.article-hero .breadcrumbs li:last-child {
  min-width: 0;
  max-width: min(500px,60vw);
}
.article-hero .breadcrumbs li:last-child span {
  display: inline-block;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.article-hero h1 {
  max-width: 1040px;
  font-size: clamp(34px,3.7vw,56px);
  font-weight: 600;
  line-height: 1.17;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 28px;
}
.article-meta .blog-category {
  margin: 0;
}
.article-meta>span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}
.article-meta>span:last-child::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0,800px) minmax(220px,280px);
  justify-content: space-between;
  gap: clamp(40px,5vw,100px);
  padding-top: 64px;
  padding-bottom: 96px;
  align-items: start;
}
.article-main {
  min-width: 0;
}
.article-cover {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 14px;
}
.article-copy {
  padding-top: 42px;
  font-size: 18px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.article-copy p+p,
.article-copy li+li {
  margin-top: 18px;
}
.article-copy h2 {
  font-size: clamp(27px,2.1vw,34px);
  line-height: 1.3;
  margin: 54px 0 22px;
}
.article-copy h3 {
  font-size: 23px;
  line-height: 1.4;
  margin: 34px 0 18px;
}
.article-copy :is(h2,h3) {
  /* Soma-se aos 100 px de scroll-padding do documento, deixando o título a 120 px. */
  scroll-margin-top: 20px;
}
.article-copy :is(h2,h3):focus {
  outline: none;
}
.article-copy ul,.article-copy ol {
  padding-left: 24px;
  margin-block: 24px;
}
.article-copy li::marker {
  color: var(--green-dark);
}
.article-copy a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.article-copy a:hover {
  color: var(--cta-bg);
}
.article-sidebar {
  position: sticky;
  top: 116px;
  max-height: calc(100dvh - 144px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding-right: 6px;
}
.article-toc summary {
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
}
.article-toc summary::-webkit-details-marker {
  display: none;
}
.article-toc[open] .chevron {
  transform: rotate(225deg);
}
.article-toc ol {
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.6;
}
.article-toc a {
  display: block;
  border-left: 2px solid var(--line);
  padding: 7px 0 7px 16px;
  color: var(--muted);
  transition: color .2s,border-color .2s;
}
.article-toc a:is(:hover,:focus-visible) {
  color: var(--cta-bg);
  border-left-color: var(--cta-bg);
}
.article-toc a[aria-current="location"] {
  color: var(--accent-blue);
  border-left-color: var(--accent-blue);
}
.article-toc .toc-subheading a {
  padding-left: 28px;
  font-size: 13px;
}
.article-contact {
  background: #070a24;
  color: #fff;
  margin-top: 64px;
  padding: 36px;
  border-radius: 16px;
}
.article-contact h2 {
  font-size: 30px;
  line-height: 1.25;
  margin-top: 18px;
}
.article-contact>p:not(.eyebrow) {
  color: #c4cfe5;
  margin-top: 18px;
}
.article-contact .button {
  margin-top: 26px;
}
.article-related {
  padding: 72px 0 90px;
  background: var(--surface-soft);
}
.article-related .section-heading h2 {
  font-size: 34px;
}
@media(max-width:1100px) {
  .article-layout {
    grid-template-columns: minmax(0,1fr);
    max-width: 850px;
    gap: 32px;
  }
  .article-sidebar {
    position: static;
    grid-row: 1;
    max-height: none;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: visible;
  }
  .article-toc:not([open]) summary {
    padding-bottom: 0;
  }
  .article-toc nav {
    max-height: 340px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
@media(max-width:760px) {
  .article-hero {
    padding: 26px 0 40px;
  }
  .article-hero .breadcrumbs {
    margin-bottom: 26px;
  }
  .article-hero .breadcrumbs li:last-child {
    display: none;
  }
  .article-hero h1 {
    font-size: 34px;
  }
  .article-meta {
    font-size: 13px;
    gap: 12px;
  }
  .article-meta>span:last-child {
    gap: 12px;
  }
  .article-layout {
    padding-block: 32px 56px;
    gap: 26px;
  }
  .article-copy {
    padding-top: 28px;
    font-size: 17px;
    line-height: 1.8;
  }
  .article-copy h2 {
    font-size: 27px;
    margin-top: 40px;
  }
  .article-contact {
    margin-top: 40px;
    padding: 26px 22px;
  }
  .article-contact h2 {
    font-size: 27px;
  }
  .article-contact h2 br {
    display: none;
  }
  .article-contact .button {
    width: 100%;
    justify-content: center;
  }
  .article-related {
    padding-block: 48px 56px;
  }
}
