@import "./tokens.css";

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--fc-beige-page);
  color: var(--fc-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--fc-blue-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--fc-red);
}

.main-container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 1440px) {
  .main-container {
    padding-left: 0;
    padding-right: 0;
  }
}

/* —— Tipografia editorial (FastChannel-like) —— */
.fc-kicker {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fc-blue-deep);
}

.fc-kicker--muted {
  color: var(--fc-ink-soft);
}

.fc-display {
  margin: 0 0 1rem;
  font-size: clamp(2.125rem, 5.2vw, 3.25rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--fc-ink);
}

.fc-lead {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 400;
  color: var(--fc-ink-muted);
  max-width: 38rem;
}

.fc-section-title {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fc-ink);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--fc-rule);
  position: relative;
}

.fc-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, var(--fc-blue), var(--fc-red));
  border-radius: 2px;
}

/* —— Hero home (glow + grid) —— */
.fc-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 10vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
  background: linear-gradient(
    180deg,
    var(--fc-beige-warm) 0%,
    var(--fc-beige-page) 55%,
    var(--fc-beige-section) 100%
  );
}

.fc-hero__glow {
  pointer-events: none;
  position: absolute;
  inset: -20% -30% auto auto;
  width: min(90vw, 52rem);
  height: min(90vw, 52rem);
  background: radial-gradient(
    circle at 30% 30%,
    rgba(5, 216, 247, 0.22) 0%,
    rgba(255, 100, 125, 0.06) 45%,
    transparent 70%
  );
  transform: rotate(-12deg);
  opacity: 0.85;
}

.fc-hero__glow--2 {
  inset: auto auto -25% -25%;
  width: min(85vw, 40rem);
  height: min(85vw, 40rem);
  background: radial-gradient(
    circle at 70% 60%,
    rgba(24, 95, 165, 0.12) 0%,
    transparent 65%
  );
  transform: rotate(18deg);
}

.fc-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .fc-hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: stretch;
  }
}

.fc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Spotlight (aside hero) — cartão estilo bloco FC */
.fc-spotlight {
  height: 100%;
  min-height: 16rem;
  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: var(--radius-3xl);
  border: 10px solid var(--fc-surface);
  background: linear-gradient(
    145deg,
    #f0fdfa 0%,
    var(--fc-beige-warm) 48%,
    #eef6ff 100%
  );
  box-shadow: var(--shadow-card), var(--shadow-inner-glow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.fc-spotlight::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -35%;
  width: 70%;
  height: 70%;
  background: radial-gradient(
    circle,
    rgba(5, 216, 247, 0.25) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.fc-spotlight .fc-kicker {
  position: relative;
  z-index: 1;
  color: var(--fc-blue-deep);
}

.fc-spotlight__text {
  position: relative;
  z-index: 1;
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--fc-ink-muted);
  max-width: 22ch;
}

/* —— Seções —— */
.fc-section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.fc-section--surface {
  background: var(--fc-beige-section);
}

.fc-section--lift {
  padding-top: 0;
}

/* Espaço entre hero e lista de artigos nos hubs */
.hub-hero + .fc-section.fc-section--lift {
  padding-top: clamp(2rem, 5vw, 3rem);
}

/* —— Cards pilares —— */
.fc-pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.fc-card {
  display: block;
  padding: 1.5rem 1.5rem 1.4rem;
  border-radius: var(--radius-2xl);
  background: var(--fc-surface);
  border: 1px solid var(--fc-rule);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease, transform 0.2s ease, border-color 0.2s ease;
}

.fc-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
  border-color: var(--fc-rule-strong);
}

.fc-card__title {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.fc-card__desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--fc-ink-muted);
}

.fc-card--p1 .fc-card__title {
  color: var(--pilar1-fg);
}
.fc-card--p2 .fc-card__title {
  color: var(--pilar2-fg);
}
.fc-card--p3 .fc-card__title {
  color: var(--pilar3-fg);
}
.fc-card--p4 .fc-card__title {
  color: var(--pilar4-fg);
}

.fc-card--p1 {
  background: linear-gradient(180deg, var(--pilar1-bg) 0%, var(--fc-surface) 100%);
}
.fc-card--p2 {
  background: linear-gradient(180deg, var(--pilar2-bg) 0%, var(--fc-surface) 100%);
}
.fc-card--p3 {
  background: linear-gradient(180deg, var(--pilar3-bg) 0%, var(--fc-surface) 100%);
}
.fc-card--p4 {
  background: linear-gradient(180deg, var(--pilar4-bg) 0%, var(--fc-surface) 100%);
}

/* —— Banner escuro —— */
.fc-banner {
  padding: clamp(2.75rem, 6vw, 4rem) 0;
  background: linear-gradient(
    165deg,
    var(--banner-dark-2) 0%,
    var(--banner-dark) 45%,
    #1a2230 100%
  );
  color: rgba(252, 252, 253, 0.92);
  position: relative;
  overflow: hidden;
}

.fc-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 50% at 80% 20%,
    rgba(5, 216, 247, 0.08) 0%,
    transparent 55%
  );
  pointer-events: none;
}

.fc-banner__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.fc-banner__text {
  margin: 0 0 1.35rem;
  font-size: 1.125rem;
  line-height: 1.55;
  font-weight: 400;
  color: rgba(252, 252, 253, 0.88);
}

/* —— Botões —— */
.btn-fc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  padding: 0 1.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  background: var(--fc-blue);
  color: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-fc:hover {
  background: var(--fc-red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 100, 125, 0.35);
}

.btn-fc:active {
  transform: scale(0.98);
}

.btn-fc:focus-visible {
  outline: 2px solid var(--fc-blue-deep);
  outline-offset: 3px;
}

.btn-fc--dark {
  background: var(--fc-ink);
  color: #fff;
}

.btn-fc--dark:hover {
  background: var(--fc-red);
  color: #fff;
}

.btn-fc--ghost {
  background: transparent;
  color: var(--fc-ink);
  border: 1px solid var(--fc-rule-strong);
  box-shadow: none;
}

.btn-fc--ghost:hover {
  background: rgba(5, 216, 247, 0.08);
  border-color: var(--fc-blue);
  color: var(--fc-blue-deep);
}

.btn-fc--sm {
  min-height: 2.5rem;
  padding: 0 1.1rem;
  font-size: 0.875rem;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(252, 252, 253, 0.88);
  border-bottom: 1px solid var(--fc-rule);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-header__inner .site-nav-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.site-header__cta {
  flex-shrink: 0;
}

.site-logo {
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.03em;
  color: var(--fc-ink);
  text-decoration: none;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.site-logo:hover {
  color: var(--fc-blue-deep);
}

.site-logo__mark {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 2px;
  background: var(--fc-blue);
  flex-shrink: 0;
}

.site-logo__text {
  margin-left: 0.35rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.7rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fc-ink-muted);
  text-decoration: none;
  border-radius: var(--radius-lg);
  border-bottom: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover {
  color: var(--fc-ink);
  background: rgba(5, 216, 247, 0.08);
}

.site-nav a[aria-current="page"] {
  color: var(--fc-ink);
  font-weight: 600;
  background: rgba(24, 95, 165, 0.08);
}

.nav-toggle {
  display: none;
  padding: 0.45rem 0.6rem;
  background: var(--fc-surface);
  border: 1px solid var(--fc-rule);
  border-radius: var(--radius-lg);
  cursor: pointer;
  color: var(--fc-ink);
  font-size: 1.1rem;
  line-height: 1;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-header__inner .site-nav-wrap {
    flex: 100%;
    order: 4;
    display: none;
    flex-direction: column;
    padding: 0.75rem 0 1rem;
    border-top: 1px solid var(--fc-rule);
    justify-content: flex-start;
  }

  .site-nav-wrap.is-open {
    display: flex;
  }

  .site-nav {
    flex-direction: column;
    width: 100%;
    gap: 0.25rem;
  }

  .site-nav a {
    padding: 0.65rem 0.5rem;
  }

  .site-header__cta {
    margin-left: auto;
  }
}

/* —— Footer —— */
.site-footer {
  margin-top: 0;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  background: linear-gradient(180deg, var(--fc-beige-section) 0%, var(--fc-beige-page) 100%);
  border-top: 1px solid var(--fc-rule);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin: 1.5rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--fc-rule);
}

.site-footer__nav a {
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--fc-blue-deep);
  transition: color 0.15s ease;
}

.site-footer__nav a:hover {
  color: var(--fc-red);
}

.footer-note {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--fc-ink-muted);
  max-width: 26rem;
}

.footer-note strong {
  color: var(--fc-ink);
  font-weight: 600;
}

.footer-meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--fc-rule);
  font-size: 0.8125rem;
  color: var(--fc-ink-soft);
}

.footer-meta a {
  color: var(--fc-ink-muted);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--fc-red);
}

/* —— Hub (páginas de pilar) —— */
.hub-hero {
  position: relative;
  padding: clamp(2.75rem, 6vw, 4rem) 0 2rem;
  overflow: hidden;
}

.hub-hero--p1 {
  background: linear-gradient(
    180deg,
    var(--fc-beige-warm) 0%,
    var(--pilar1-bg) 42%,
    var(--fc-beige-page) 100%
  );
}
.hub-hero--p2 {
  background: linear-gradient(
    180deg,
    var(--fc-beige-warm) 0%,
    var(--pilar2-bg) 42%,
    var(--fc-beige-page) 100%
  );
}
.hub-hero--p3 {
  background: linear-gradient(
    180deg,
    var(--fc-beige-warm) 0%,
    var(--pilar3-bg) 42%,
    var(--fc-beige-page) 100%
  );
}
.hub-hero--p4 {
  background: linear-gradient(
    180deg,
    var(--fc-beige-warm) 0%,
    var(--pilar4-bg) 42%,
    var(--fc-beige-page) 100%
  );
}

.hub-hero__breadcrumb {
  font-size: 0.875rem;
  color: var(--fc-ink-muted);
  margin-bottom: 1rem;
}

.hub-hero__breadcrumb a {
  text-decoration: none;
  color: var(--fc-blue-deep);
}

.hub-hero__breadcrumb a:hover {
  color: var(--fc-red);
}

.hub-hero__kicker {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hub-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--fc-ink);
}

.hub-hero__lead {
  margin: 0;
  max-width: 42rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--fc-ink-muted);
}

.hub-list {
  list-style: none;
  margin: 0;
  padding: 0 0 4rem;
  display: grid;
  gap: 1rem;
}

.hub-list__item {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-2xl);
  background: var(--fc-surface);
  border: 1px solid var(--fc-rule);
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.hub-list__item:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

.hub-list__link {
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.hub-list__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hub-list__desc {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--fc-ink-muted);
}

/* —— Artigo —— */
.article-shell {
  background: linear-gradient(
    180deg,
    var(--fc-beige-warm) 0%,
    var(--fc-beige-page) 35%,
    var(--fc-beige-page) 100%
  );
}

.article-wrap {
  padding: 2rem 0 4.5rem;
}

.article-header {
  margin-bottom: 2.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--fc-rule);
}

.pilar-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--fc-ink);
}

.article-meta {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--fc-ink-muted);
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--fc-ink-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--fc-blue-deep);
}

.breadcrumb a:hover {
  color: var(--fc-red);
}

.prose {
  max-width: 44rem;
}

.prose h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 0;
}

.prose h2 {
  margin-top: 2.25rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fc-ink);
}

.prose p {
  color: var(--fc-ink-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.prose strong {
  color: var(--fc-ink);
  font-weight: 600;
}

.prose ul {
  padding-left: 1.25rem;
  color: var(--fc-ink-muted);
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--fc-rule);
  margin: 2rem 0;
}

.article-prose > h1:first-child {
  display: none;
}

/* Links do artigo: sem sublinhado; linha só no hover (como nos hubs) */
.article-shell .breadcrumb a {
  text-decoration: none;
}

.article-shell .breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.article-shell .article-prose a:not(.btn-fc),
.article-shell .related-articles a:not(.btn-fc),
.article-shell .toc a,
.article-shell .aside-more a {
  text-decoration: none;
  color: var(--fc-blue-deep);
}

.article-shell .article-prose a:not(.btn-fc):hover,
.article-shell .related-articles a:not(.btn-fc):hover,
.article-shell .toc a:hover,
.article-shell .aside-more a:hover {
  color: var(--fc-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.article-shell .article-prose li {
  margin-bottom: 0.65rem;
}

.article-shell .toc__list li,
.article-shell .aside-more__list li,
.article-shell .related-articles__list li {
  margin-bottom: 0.55rem;
}

.article-shell .toc__list li:last-child,
.article-shell .aside-more__list li:last-child,
.article-shell .related-articles__list li:last-child {
  margin-bottom: 0;
}

/* —— Utilities —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 200;
  background: var(--progress-color, var(--fc-blue-deep));
  transition: width 0.05s linear;
}

/* —— Home: grid de destaque —— */
.home-featured-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .home-featured-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
  }
}

.home-featured-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-2xl);
  background: var(--fc-surface);
  border: 1px solid var(--fc-rule);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease, transform 0.2s ease, border-color 0.2s ease;
  min-height: 100%;
}

.home-featured-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
  border-color: var(--fc-rule-strong);
}

.home-featured-card--lead {
  padding: 1.65rem 1.65rem 1.5rem;
}

.home-featured-card__kicker {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-featured-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fc-ink);
  line-height: 1.35;
}

.home-featured-card__desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--fc-ink-muted);
}

/* —— Hub: layout hero + aside —— */
.hub-hero__layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .hub-hero__layout {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: 2.5rem;
  }
}

.hub-hero__stats {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--fc-ink-muted);
}

.hub-hero__stats-muted {
  color: var(--fc-ink-soft);
}

.hub-start {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-2xl);
  background: var(--fc-surface);
  border: 1px solid var(--fc-rule);
  box-shadow: var(--shadow-1);
}

.hub-start__title {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fc-ink-muted);
}

.hub-start__list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--fc-ink-muted);
}

.hub-start__list a {
  font-weight: 500;
}

.hub-list--grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .hub-list--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hub-list__badge {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.hub-list__vol {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  color: var(--fc-ink-soft);
}

.hub-list__vol-dash {
  color: var(--fc-ink-soft);
}

/* —— Pilar 3: filtros —— */
.segment-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}

.segment-filters__btn {
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  border-radius: var(--radius-pill);
  border: 1px solid var(--fc-rule-strong);
  background: var(--fc-surface);
  color: var(--fc-ink-muted);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.segment-filters__btn:hover {
  border-color: var(--fc-blue);
  color: var(--fc-ink);
}

.segment-filters__btn.is-active {
  background: rgba(153, 60, 29, 0.12);
  border-color: var(--pilar3-fg);
  color: var(--fc-ink);
  font-weight: 600;
}

/* —— Banner FC (hubs) —— */
.hub-fc-banner {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  background: linear-gradient(
    165deg,
    var(--banner-dark-2) 0%,
    var(--banner-dark) 45%,
    #1a2230 100%
  );
  color: rgba(252, 252, 253, 0.92);
  position: relative;
  overflow: hidden;
}

.hub-fc-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 50% at 80% 20%,
    rgba(5, 216, 247, 0.08) 0%,
    transparent 55%
  );
  pointer-events: none;
}

.hub-fc-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .hub-fc-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

.hub-fc-banner__text {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  color: rgba(252, 252, 253, 0.9);
  max-width: 42rem;
}

/* —— Artigo: grid + TOC + aside —— */
.article-layout__grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 960px) {
  .article-layout__grid {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: 2.5rem;
  }

  .article-layout__aside {
    position: sticky;
    top: calc(var(--nav-h) + 1rem);
  }
}

@media (max-width: 959px) {
  .toc--desktop {
    display: none;
  }
}

@media (min-width: 960px) {
  .toc-mobile {
    display: none;
  }
}

.toc-mobile {
  margin-bottom: 1rem;
}

.toc-mobile__summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--fc-rule);
  background: var(--fc-surface);
  list-style: none;
}

.toc-mobile__summary::-webkit-details-marker {
  display: none;
}

.toc__heading {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fc-ink-muted);
}

.toc__list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--fc-ink-muted);
}

.toc--desktop {
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--fc-rule);
  background: var(--fc-surface);
  margin-bottom: 1.25rem;
}

.aside-fc-widget {
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #e8f4fc 0%, var(--fc-surface) 100%);
  border: 1px solid var(--fc-rule);
  margin-bottom: 1.25rem;
}

.aside-fc-widget__label {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fc-blue-deep);
}

.aside-fc-widget__text {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--fc-ink-muted);
}

.aside-more__heading {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fc-ink-muted);
}

.aside-more__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--fc-ink-muted);
}

.related-articles {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--fc-rule);
  max-width: 44rem;
}

.related-articles__title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fc-ink);
}

.related-articles__list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--fc-ink-muted);
}

.article-cta-box {
  margin-top: 2.5rem;
  padding: 1.5rem 1.5rem 1.4rem;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--fc-rule);
  background: linear-gradient(135deg, var(--fc-beige-warm) 0%, var(--fc-surface) 100%);
  box-shadow: var(--shadow-1);
  max-width: 44rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.article-cta-box__text {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--fc-ink-muted);
}
