/* GLAF — estilos da seção Conteúdo (tokens do GLAF Design System) */

/* título de seção do hub (Artigos, Vídeos, Ferramentas...) */
.articles-section .content-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #162235;
  margin: 0 0 24px;
}

.articles-hero {
  padding: 64px 0 40px;
  background:
    radial-gradient(circle at 15% 20%, rgba(18, 42, 95, 0.09), transparent 18%),
    radial-gradient(circle at 85% 10%, rgba(18, 42, 95, 0.08), transparent 20%),
    linear-gradient(180deg, #fbfcfe 0%, #eef3f8 100%);
}

.articles-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #162235;
  margin: 18px 0 14px;
  text-wrap: balance;
}

.articles-hero .articles-sub {
  font-size: 1.12rem;
  line-height: 1.72;
  color: #5f6c7d;
  max-width: 640px;
}

.articles-section {
  padding: 48px 0 72px;
  background: #f5f7fb;
}

/* ---- Card destaque (guia) ---- */
.article-card-featured {
  display: block;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #e3e8f0;
  border-top: 4px solid #b59a45;
  border-radius: 26px;
  padding: 40px 44px;
  box-shadow: 0 18px 45px rgba(10, 20, 40, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  margin-bottom: 28px;
}

.article-card-featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(10, 20, 40, 0.16);
  border-color: rgba(11, 23, 53, 0.14);
  border-top-color: #b59a45;
}

.article-card-featured h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #162235;
  margin: 16px 0 12px;
  text-wrap: balance;
}

.article-card-featured p {
  font-size: 1.06rem;
  line-height: 1.7;
  color: #5f6c7d;
  max-width: 720px;
  margin: 0 0 18px;
}

.article-card-featured .article-meta {
  color: #667085;
}

/* ---- Grade de artigos ---- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .articles-grid { grid-template-columns: 1fr; }
  .article-card-featured { padding: 30px 26px; }
}

.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #e3e8f0;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 26px rgba(10, 20, 40, 0.05);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(10, 20, 40, 0.08);
  border-color: rgba(11, 23, 53, 0.14);
}

.article-card h2 {
  font-size: 1.14rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #1f2937;
  margin: 14px 0 10px;
}

.article-card p {
  font-size: 0.97rem;
  line-height: 1.65;
  color: #5f6c7d;
  margin: 0 0 16px;
  flex-grow: 1;
}

/* ---- Tags e meta ---- */
.article-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(11, 23, 53, 0.07);
  color: #06112a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-meta {
  font-size: 0.92rem;
  color: #667085;
}

/* ---- CTA final ---- */
.articles-cta {
  padding: 64px 0;
  background: linear-gradient(180deg, #06112a 0%, #081736 100%);
  text-align: center;
}

.articles-cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px;
}

.articles-cta p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.06rem;
  margin: 0 0 26px;
}

/* estado ativo no menu */
.nav a[aria-current="page"] {
  color: #06112a;
  font-weight: 700;
}

/* ============ TEMPLATE DE ARTIGO ============ */

.article-header {
  padding: 48px 0 34px;
  background:
    radial-gradient(circle at 15% 20%, rgba(18, 42, 95, 0.09), transparent 18%),
    linear-gradient(180deg, #fbfcfe 0%, #eef3f8 100%);
}

.breadcrumbs {
  font-size: 0.9rem;
  color: #667085;
  margin-bottom: 18px;
}
.breadcrumbs a { color: #667085; text-decoration: none; }
.breadcrumbs a:hover { color: #06112a; }
.breadcrumbs span { margin: 0 6px; }

.article-header h1 {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #162235;
  margin: 16px 0 14px;
  max-width: 820px;
  text-wrap: balance;
}

.article-header .article-lead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: #5f6c7d;
  max-width: 740px;
  margin-bottom: 14px;
}

/* ---- corpo do artigo ---- */
.article-wrap { background: #ffffff; padding: 40px 0 64px; }

.article-body {
  max-width: 740px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.78;
  color: #1f2937;
}

.article-body h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #162235;
  margin: 48px 0 16px;
  scroll-margin-top: 100px;
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1f2937;
  margin: 32px 0 12px;
}

.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 26px; }
.article-body li { margin-bottom: 8px; }
/* tipografia unificada: p e li sempre no tamanho do artigo
   (anula o p { 0.98rem } do mobile do style.css, que vazava só nos parágrafos) */
.article-body p,
.article-body li {
  font-size: inherit;
  line-height: inherit;
}
/* pergunta do FAQ acompanha o corpo (negrito mantém a hierarquia sobre a resposta) */
.article-body .faq-question {
  font-size: 1.08rem;
}
.article-body strong { color: #162235; }
.article-body a {
  color: #1b3b8d;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(27, 59, 141, 0.45);
}
.article-body a:hover {
  color: #06112a;
  text-decoration-color: #b59a45;
}

/* índice (TOC) */
.toc-box {
  background: #f5f7fb;
  border: 1px solid #e3e8f0;
  border-radius: 18px;
  padding: 24px 28px;
  margin: 0 0 36px;
}
.toc-box .toc-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #06112a;
  margin-bottom: 12px;
}
.toc-box ol { margin: 0; padding-left: 22px; }
.toc-box li { margin-bottom: 6px; }
.toc-box a { color: #24324a; text-decoration: none; }
.toc-box a:hover { color: #1b3b8d; text-decoration: underline; }

/* stat box */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 26px 0;
}
.stat-box {
  background: #ffffff;
  border: 1px solid #e3e8f0;
  border-bottom: 3px solid #b59a45;
  border-radius: 18px;
  padding: 22px 24px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(10, 20, 40, 0.05);
}
.stat-box .stat-number {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #06112a;
}
.stat-box .stat-label {
  font-size: 0.92rem;
  color: #667085;
}

/* funil de vendas em 5 etapas */
.article-body .funnel-card {
  background: #ffffff;
  border: 1px solid #e3e8f0;
  border-bottom: 3px solid #b59a45;
  border-radius: 18px;
  padding: 26px 24px;
  margin: 26px 0;
  box-shadow: 0 10px 26px rgba(10, 20, 40, 0.05);
}
.article-body .funnel {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 620px;
}
.article-body .funnel-step {
  margin: 0 auto 8px;
  padding: 12px 18px;
  border-radius: 12px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(10, 20, 40, 0.08);
}
.article-body .funnel-step strong {
  display: block;
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.article-body .funnel-step span {
  display: block;
  font-size: 0.85rem;
  opacity: 0.82;
  margin-top: 2px;
}
.article-body .funnel-step:nth-child(1) { width: 100%; background: #33518f; }
.article-body .funnel-step:nth-child(2) { width: 86%; background: #27417c; }
.article-body .funnel-step:nth-child(3) { width: 72%; background: #1b3168; }
.article-body .funnel-step:nth-child(4) { width: 58%; background: #102253; }
.article-body .funnel-step:nth-child(5) { width: 44%; background: #06112a; }
.article-body .funnel-step:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .article-body .funnel-step:nth-child(1) { width: 100%; }
  .article-body .funnel-step:nth-child(2) { width: 92%; }
  .article-body .funnel-step:nth-child(3) { width: 84%; }
  .article-body .funnel-step:nth-child(4) { width: 76%; }
  .article-body .funnel-step:nth-child(5) { width: 68%; }
  .article-body .funnel-card { padding: 18px 14px; }
  .article-body .funnel-step { padding: 10px 12px; }
  .article-body .funnel-step strong { font-size: 0.95rem; }
  .article-body .funnel-step span { font-size: 0.8rem; }
}

/* tabela */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  font-size: 0.98rem;
  border: 1px solid #e3e8f0;
  border-radius: 14px;
  overflow: hidden;
}
.article-body th {
  background: #06112a;
  color: #ffffff;
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
}
.article-body td {
  padding: 12px 16px;
  border-top: 1px solid #e3e8f0;
  color: #24324a;
  vertical-align: top;
}
.article-body tr:nth-child(even) td { background: #f5f7fb; }

/* callout "na prática" */
.callout {
  border-left: 4px solid #b59a45;
  background: #fbf8ef;
  border-radius: 0 14px 14px 0;
  padding: 20px 24px;
  margin: 26px 0;
}
.callout .callout-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7d692a;
  margin-bottom: 8px;
}
.callout p:last-child { margin-bottom: 0; }

/* CTA inline no meio do texto */
.cta-inline {
  background: linear-gradient(135deg, #0b1735 0%, #132c66 100%);
  border-radius: 18px;
  padding: 28px 32px;
  margin: 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-inline .cta-inline-text { color: #ffffff; }
.cta-inline .cta-inline-text strong { display: block; font-size: 1.15rem; margin-bottom: 4px; color: #ffffff; }
.cta-inline .cta-inline-text span { color: rgba(255, 255, 255, 0.74); font-size: 0.97rem; }
.cta-inline .button { white-space: nowrap; }

/* author box */
.author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #f5f7fb;
  border: 1px solid #e3e8f0;
  border-radius: 18px;
  padding: 24px 28px;
  margin: 48px 0 0;
}
.author-box img { width: 64px; height: auto; flex-shrink: 0; }
.author-box .author-name { font-weight: 700; color: #162235; margin-bottom: 6px; }
.author-box p { font-size: 0.95rem; color: #5f6c7d; margin: 0; line-height: 1.6; }

/* relacionados */
.related-section { background: #f5f7fb; padding: 56px 0 64px; }
.related-section .related-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #162235;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .article-body { padding: 0 4px; }
  .cta-inline { flex-direction: column; align-items: flex-start; }
}

/* ============ AJUSTES v2: layout com TOC lateral, progresso e lightbox ============ */

/* barra de progresso de leitura */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #b59a45 0%, #d9c07a 100%);
  z-index: 2000;
}

/* layout duas colunas: TOC à esquerda + conteúdo */
.article-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 740px);
  gap: 56px;
  justify-content: center;
  align-items: start;
}

.toc-sidebar {
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  padding-right: 8px;
}

.toc-sidebar .toc-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #06112a;
  margin-bottom: 12px;
}

.toc-sidebar ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid #e3e8f0;
}

.toc-sidebar li { margin: 0; }

.toc-sidebar a {
  display: block;
  padding: 7px 0 7px 14px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #5f6c7d;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.toc-sidebar a:hover { color: #06112a; }

.toc-sidebar a.active {
  color: #06112a;
  font-weight: 700;
  border-left-color: #b59a45;
}

@media (max-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .toc-sidebar {
    position: static;
    max-height: none;
    background: #f5f7fb;
    border: 1px solid #e3e8f0;
    border-radius: 18px;
    padding: 22px 26px;
  }
}

/* mobile: nenhum filho do grid pode travar a largura da coluna */
.article-layout > * { min-width: 0; }
.article-body { overflow-wrap: break-word; }

/* tabelas viram roláveis na horizontal quando não cabem */
@media (max-width: 640px) {
  .article-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    contain: inline-size;
  }
  .article-body th, .article-body td { padding: 10px 12px; }
}

/* componentes largos não podem ditar a largura da página no mobile */
.tree-diagram { contain: inline-size; overflow-x: auto; }
.article-body .funnel-card { contain: inline-size; }

/* figuras com lightbox */
.article-figure {
  position: relative;
  margin: 26px 0;
}

.article-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #e3e8f0;
  border-radius: 14px;
  cursor: zoom-in;
  background: #ffffff;
}

.article-figure .figure-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(6, 17, 42, 0.72);
  color: #ffffff;
  pointer-events: none;
}

.article-figure .figure-zoom svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.article-figure figcaption {
  font-size: 0.88rem;
  color: #667085;
  margin-top: 10px;
  text-align: center;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 17, 42, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  cursor: zoom-out;
  padding: 4vh 4vw;
}

.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}

/* layout da página índice com sidebar */
.articles-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.articles-layout [id] { scroll-margin-top: 100px; }
@media (max-width: 1024px) {
  .articles-layout { grid-template-columns: 1fr; gap: 24px; }
}

/* ============ v3: regras de aplicacao do dourado + contraste ============ */

/* Regra de marca: dourado apenas como acento linear/fino, nunca em massas de texto */

/* CORRECAO DE CONTRASTE: botoes sobre fundos navy ficavam ilegiveis
   (navy sobre navy). Em contexto escuro, botao branco com texto navy. */
.cta-inline .button-primary,
.articles-cta .button-primary {
  background: #ffffff;
  color: #06112a;
}
.cta-inline .button-primary:hover,
.articles-cta .button-primary:hover {
  background: #eef3f9;
  color: #06112a;
}

/* header auto-hide durante a leitura (classe controlada pelo artigo.js) */
.site-header {
  transition: transform 0.28s ease;
}
.site-header.header-hidden {
  transform: translateY(-100%);
}

/* grafico de barras leve (CSS puro) */
.bar-chart {
  background: #ffffff;
  border: 1px solid #e3e8f0;
  border-radius: 18px;
  padding: 24px 28px;
  margin: 26px 0;
  box-shadow: 0 10px 26px rgba(10, 20, 40, 0.05);
}
.bar-chart .chart-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #06112a;
  margin-bottom: 16px;
}
.bar-row {
  display: grid;
  grid-template-columns: 52px 1fr 84px;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.bar-row .bar-label { font-size: 0.9rem; font-weight: 600; color: #5f6c7d; }
.bar-track { background: #eef3f9; border-radius: 999px; height: 14px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #1b3b8d, #06112a); }
.bar-row.highlight .bar-fill { background: linear-gradient(90deg, #b59a45, #d9c07a); }
.bar-row .bar-value { font-size: 0.92rem; font-weight: 700; color: #162235; text-align: right; }
.chart-source { font-size: 0.82rem; color: #667085; margin-top: 10px; }

/* grafico de barras agrupadas (verba x conversao por canal) */
.bar-group { margin-bottom: 16px; }
.bar-group .group-label { font-size: 0.92rem; font-weight: 600; color: #24324a; margin-bottom: 5px; }
.bar-row.compact { grid-template-columns: 1fr 64px; margin-bottom: 4px; }
.bar-row.compact .bar-track { height: 11px; }
.bar-row.compact .bar-value { font-size: 0.85rem; font-weight: 600; }
.chart-legend { display: flex; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 0.85rem; color: #5f6c7d; }
.legend-swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.legend-swatch.navy { background: linear-gradient(90deg, #1b3b8d, #06112a); }
.legend-swatch.gold { background: linear-gradient(90deg, #b59a45, #d9c07a); }

/* grafico de colunas verticais */
.column-chart {
  background: #ffffff;
  border: 1px solid #e3e8f0;
  border-radius: 18px;
  padding: 24px 28px 18px;
  margin: 26px 0;
  box-shadow: 0 10px 26px rgba(10, 20, 40, 0.05);
  contain: inline-size;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.column-chart .chart-cols {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 14px;
}
.column-chart .col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.column-chart .col-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: #162235;
  margin-bottom: 5px;
}
.column-chart .col-bar {
  width: 100%;
  max-width: 46px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #1b3b8d 0%, #06112a 100%);
}
.column-chart .col-label {
  font-size: 0.72rem;
  line-height: 1.25;
  color: #5f6c7d;
  text-align: center;
  margin-top: 8px;
  min-height: 2.6em;
}
@media (max-width: 520px) {
  .column-chart .chart-cols { gap: 5px; }
  .column-chart .col-label { font-size: 0.6rem; }
  .column-chart .col-value { font-size: 0.72rem; }
}

/* grafico de colunas com tabela de dados embutida (estilo planilha) */
.chart-grid {
  display: grid;
  grid-template-columns: 92px repeat(8, 1fr);
  gap: 0 8px;
  align-items: end;
  margin-top: 16px;
}
.chart-grid .cg-spacer { border: 0; }
.chart-grid .cg-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.chart-grid .cg-col .col-bar { width: 100%; max-width: 48px; }
.chart-grid .cg-rowhead {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5f6c7d;
  padding: 10px 0;
  border-top: 1px solid #e3e8f0;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.chart-grid .cg-cell {
  text-align: center;
  font-size: 0.74rem;
  line-height: 1.25;
  color: #5f6c7d;
  padding: 10px 2px;
  border-top: 1px solid #e3e8f0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chart-grid .cg-cell.conv {
  font-size: 0.88rem;
  font-weight: 700;
  color: #7d692a;
}
@media (max-width: 560px) {
  .chart-grid { grid-template-columns: 64px repeat(8, 1fr); gap: 0 4px; min-width: 440px; }
  .chart-grid .cg-cell { font-size: 0.58rem; }
  .chart-grid .cg-cell.conv { font-size: 0.7rem; }
  .chart-grid .cg-rowhead { font-size: 0.58rem; }
}

/* diagrama em arvore horizontal: raiz a esquerda, ramos a direita */
.tree-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 26px 0 30px;
  background: #ffffff;
  border: 1px solid #e3e8f0;
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 10px 26px rgba(10, 20, 40, 0.05);
}
.tree-root {
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(180deg, #06112a 0%, #081736 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 22px;
  border-radius: 12px;
  white-space: nowrap;
  text-align: center;
}
.tree-root::after {
  content: '';
  position: absolute;
  right: -28px;
  top: 50%;
  width: 28px;
  height: 2px;
  background: #dbe4ef;
}
.tree-branches {
  flex: 0 1 auto;
  min-width: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 !important;
  padding: 0 0 0 56px !important;
  position: relative;
}
.tree-branches::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: #dbe4ef;
}
.tree-branches li {
  position: relative;
  margin: 0 !important;
}
.tree-branches li::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 50%;
  width: 28px;
  height: 2px;
  background: #dbe4ef;
}
.tree-branches .branch-box {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  background: #ffffff;
  border: 1px solid #e3e8f0;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.9rem;
  line-height: 1.3;
  font-weight: 600;
  color: #24324a;
  box-shadow: 0 10px 26px rgba(10, 20, 40, 0.05);
}
@media (max-width: 560px) {
  .tree-root {
    font-size: 0.78rem;
    padding: 10px 12px;
    white-space: normal;
    max-width: 118px;
  }
  .tree-root::after { right: -18px; width: 18px; }
  .tree-branches { padding: 0 0 0 36px !important; }
  .tree-branches::before { left: 18px; }
  .tree-branches li::before { left: -18px; width: 18px; }
  .tree-branches .branch-box { font-size: 0.8rem; padding: 9px 12px; min-height: 42px; }
}
