/* ============================================================
   BRChina — INTELIGÊNCIA · hub de conteúdo
   v3: 100% dentro do design system do site
   (styles-v2.css é a base: tokens, .eyebrow, .btn, .h-*)
   ============================================================ */

/* ---------- hero do hub: limpo, sem banda ---------- */
.bhero-band {
  background: transparent;
  color: var(--ink);
  width: min(100% - 28px, 1560px);
  margin: 6px auto 0;
  padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px);
}
.bhero-band .bh-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 30px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.bhero-band h1 { color: var(--ink); margin-top: 18px; max-width: 18ch; }
.bhero-band .bh-sub { color: var(--muted); max-width: 46ch; margin-top: 14px; font-size: 1.05rem; }

/* indicators — dashboard da semana */
.indicators {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.indic {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.indic .i-k { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.indic .i-v { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.15rem, 1.8vw, 1.5rem); letter-spacing: -0.01em; color: var(--ink); display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.indic .i-d { font-size: 0.78rem; font-weight: 700; }
.indic .i-d.up { color: var(--green-deep); }
.indic .i-d.down { color: var(--red-deep); }
.indic .i-s { font-size: 0.75rem; color: var(--muted-2); }
@media (max-width: 880px) { .indicators { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .indicators { grid-template-columns: 1fr 1fr; gap: 8px; } .indic { padding: 14px 14px; } }

@media (max-width: 560px) {
  .bhero-band .bh-head > .btn { width: 100%; justify-content: center; }
}

/* ---------- section heads ---------- */
.bsec {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin: clamp(48px, 7vw, 80px) 0 clamp(22px, 3vw, 32px);
  flex-wrap: wrap;
}
.bsec h2 { margin-top: 16px; }
.bsec .bs-r { color: var(--muted); font-size: 0.95rem; }

/* ---------- lead: destaque + mais lidos ---------- */
.lead {
  display: grid; grid-template-columns: 1.65fr 1fr;
  gap: 18px;
  margin-top: clamp(24px, 3.5vw, 36px);
}
.lead-story {
  position: relative;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  box-shadow: 0 12px 36px -18px rgba(21, 33, 26, 0.18);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.lead-story:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lead-story .ls-copy { padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.lead-story h2 {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.1; letter-spacing: -0.02em;
}
.lead-story .ls-dek { color: var(--muted); font-size: 0.97rem; flex: 1; }
.lead-story .ls-meta { font-size: 0.82rem; color: var(--muted-2); display: flex; gap: 14px; flex-wrap: wrap; }
.lead-story .ls-meta b { color: var(--ink); font-weight: 700; }
.lead-story .ls-img { position: relative; min-height: 240px; }
.lead-story .ls-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lead-story a.cover { position: absolute; inset: 0; z-index: 2; }

.rail {
  background: #fff;
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.5vw, 28px);
  border: 1.5px solid var(--line);
  display: flex; flex-direction: column;
}
.rail .rail-t {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  display: flex; justify-content: space-between; gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--line);
}
.rail ol { list-style: none; counter-reset: lidos; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; }
.rail li { counter-increment: lidos; flex: 1; }
.rail li + li { border-top: 1px solid var(--line-soft, rgba(21,33,26,0.07)); }
.rail li a { display: flex; gap: 14px; padding: 14px 4px; align-items: center; border-radius: var(--r-sm); transition: background 0.2s; height: 100%; }
.rail li a:hover { background: rgba(21, 33, 26, 0.04); }
.rail li a::before {
  content: "0" counter(lidos);
  font-family: var(--f-display); font-weight: 800; font-size: 1.05rem;
  color: var(--green); flex-shrink: 0;
}
.rail li .r-t { font-weight: 700; font-size: 0.94rem; line-height: 1.3; letter-spacing: -0.01em; }
.rail li .r-m { display: block; font-size: 0.78rem; color: var(--muted-2); margin-top: 3px; font-weight: 500; }
@media (max-width: 980px) {
  .lead { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lead-story { grid-template-columns: 1fr; }
  .lead-story .ls-img { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
  .lead-story .ls-img img { position: static; aspect-ratio: 16 / 9; }
}

/* ---------- trilhas (cards do sistema) ---------- */
.trilhas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trilha {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 22px 24px; cursor: pointer;
  transition: all 0.3s var(--ease);
  text-align: left; font-family: var(--f-body);
}
.trilha:hover { border-color: rgba(21, 33, 26, 0.3); transform: translateY(-2px); }
.trilha.on { border-color: var(--ink); background: #fff; box-shadow: 0 16px 40px -22px rgba(21, 33, 26, 0.3); }
.trilha .t-lvl { display: block; font-size: 0.73rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-deep); }
.trilha .t-name { display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.18rem; margin-top: 7px; line-height: 1.2; letter-spacing: -0.01em; }
.trilha .t-desc { display: block; font-size: 0.87rem; color: var(--muted); margin-top: 5px; line-height: 1.45; }
@media (max-width: 760px) {
  .trilhas {
    display: flex; gap: 10px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gut));
    padding-inline: var(--gut);
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .trilhas::-webkit-scrollbar { display: none; }
  .trilha { flex: 0 0 76%; scroll-snap-align: start; }
}

/* ---------- filters (pílulas do sistema) ---------- */
.bfilters { display: flex; gap: 8px; flex-wrap: wrap; margin: clamp(20px, 3vw, 28px) 0 20px; }
.bfilter {
  font-family: var(--f-body); font-weight: 600; font-size: 0.88rem;
  background: #fff; color: var(--muted);
  border: 1.5px solid var(--line); border-radius: var(--r-pill);
  padding: 10px 18px; cursor: pointer;
  transition: all 0.22s var(--ease);
  min-height: 44px;
}
.bfilter:hover { border-color: rgba(21, 33, 26, 0.35); color: var(--ink); }
.bfilter.on { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
@media (max-width: 760px) {
  .bfilters {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut);
    padding-bottom: 6px; scrollbar-width: none;
  }
  .bfilters::-webkit-scrollbar { display: none; }
  .bfilter { flex-shrink: 0; }
}

/* ---------- feed: lista quieta com motion ---------- */
.feed { display: flex; flex-direction: column; }
.frow {
  position: relative;
  display: grid; grid-template-columns: 110px 1fr 170px;
  gap: clamp(16px, 2.5vw, 28px);
  align-items: center;
  background: transparent;
  border-radius: var(--r-md);
  padding: clamp(18px, 2.4vw, 24px) clamp(14px, 2vw, 22px);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.frow + .frow { border-top: 1px solid rgba(21, 33, 26, 0.07); }
.frow:hover {
  background: #fff;
  box-shadow: 0 18px 44px -24px rgba(21, 33, 26, 0.28);
  transform: translateX(4px);
  border-top-color: transparent;
}
.frow:hover + .frow { border-top-color: transparent; }
.frow.hide { display: none; }
.frow .f-cat {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-2);
  justify-self: start;
  transition: color 0.3s;
}
.frow:hover .f-cat { color: var(--red-deep); }
.frow .f-cat.estudo { color: var(--green-deep); }
.frow h3 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.2; letter-spacing: -0.015em;
  transition: color 0.2s;
}
.frow:hover h3 { color: var(--green-deep); }
.frow .f-dek { font-size: 0.9rem; color: var(--muted); margin-top: 6px; max-width: 60ch; }
.frow .f-meta { font-size: 0.78rem; color: var(--muted-2); margin-top: 8px; display: flex; gap: 12px; flex-wrap: wrap; font-weight: 500; }
.frow .f-thumb { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-sm); }
.frow .f-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.frow:hover .f-thumb img { transform: scale(1.05); }
.frow a.cover { position: absolute; inset: 0; z-index: 2; border-radius: var(--r-md); }
@media (max-width: 760px) {
  .frow { grid-template-columns: 1fr 104px; }
  .frow .f-cat { grid-column: 1 / -1; }
  .frow .f-thumb { align-self: start; }
}

.bempty { text-align: center; padding: 50px 20px; color: var(--muted); display: flex; flex-direction: column; gap: 16px; align-items: center; }
.bempty.hidden { display: none; }

/* ---------- biblioteca (capas de material) ---------- */
.biblio { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pub { position: relative; display: flex; flex-direction: column; gap: 14px; }
.pub .cover3d {
  aspect-ratio: 3 / 4;
  background: var(--green-dark);
  color: #fff;
  border-radius: var(--r-md);
  padding: 22px 20px;
  display: flex; flex-direction: column;
  position: relative;
  box-shadow: 0 14px 32px -16px rgba(8, 20, 13, 0.45);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
}
.pub:nth-child(2n) .cover3d { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.pub:hover .cover3d { transform: translateY(-5px); box-shadow: var(--shadow); }
.pub .cv-brand { font-family: var(--f-display); font-weight: 800; font-size: 0.7rem; letter-spacing: 0.12em; opacity: 0.65; }
.pub .cv-title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.2; letter-spacing: -0.015em;
  margin-top: auto;
}
.pub .cv-sub { font-size: 0.75rem; opacity: 0.65; margin-top: 10px; }
.pub .p-info { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pub .p-kind { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.pub .p-get { font-weight: 700; font-size: 0.9rem; color: var(--green-deep); }
.pub a.cover { position: absolute; inset: 0; z-index: 2; }
@media (max-width: 900px) { .biblio { grid-template-columns: repeat(2, 1fr); } }

/* ---------- radar (banda escura do sistema) ---------- */
.radar {
  margin-top: clamp(48px, 7vw, 80px);
  background: var(--green-dark); color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center;
}
.radar h3 {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance;
}
.radar h3 em { font-style: normal; color: #6ee59a; }
.radar p { color: #a8bdaf; margin-top: 10px; max-width: 46ch; }
.radar .r-note { font-size: 0.78rem; color: #7e9486; margin-top: 10px; }
.radar form { display: flex; gap: 10px; }
.radar input {
  flex: 1; font-family: var(--f-body); font-size: 1rem;
  background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--r-pill); padding: 15px 22px; color: #fff; outline: none; min-width: 0;
}
.radar input::placeholder { color: #7e9486; }
.radar input:focus { border-color: #6ee59a; }
.radar .ok-msg { color: #6ee59a; font-weight: 700; }
@media (max-width: 800px) {
  .radar { grid-template-columns: 1fr; }
  .radar form { flex-direction: column; }
  .radar input, .radar .btn { width: 100%; justify-content: center; min-height: 50px; }
}

/* ============================================================
   ARTIGO
   ============================================================ */
.read-prog { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 200; background: transparent; }
.read-prog .bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--green), #6ee59a); }

.art-head { padding: clamp(30px, 4.5vw, 56px) 0 0; max-width: 780px; margin: 0 auto; }
.crumbs { font-size: 0.85rem; font-weight: 600; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--green-deep); font-weight: 700; padding: 10px 0; display: inline-block; }
.crumbs a:hover { text-decoration: underline; }
.art-head h1 {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.8rem, 4.2vw, 2.9rem);
  line-height: 1.06; letter-spacing: -0.025em;
  margin: 18px 0 14px;
}
.art-head .art-dek {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.55; color: var(--muted);
  margin-bottom: 22px;
}
.art-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 0.84rem; color: var(--muted);
  padding: 16px 0;
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
}
.art-meta .am-author { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.art-meta .am-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green-dark); color: #fff;
  display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 0.8rem;
}
.art-meta .am-tag { color: var(--muted); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; }

.art-cover { max-width: 980px; margin: clamp(28px, 4vw, 44px) auto 0; aspect-ratio: 21 / 9; overflow: hidden; border-radius: var(--r-lg); }
.art-cover img { width: 100%; height: 100%; object-fit: cover; }
.art-cover-cap { max-width: 980px; margin: 10px auto 0; font-size: 0.78rem; color: var(--muted-2); }

.art-layout {
  display: grid; grid-template-columns: 240px minmax(0, 700px);
  gap: clamp(30px, 5vw, 80px);
  justify-content: center;
  padding: clamp(36px, 5vw, 64px) 0;
}
.toc { position: sticky; top: 110px; align-self: start; font-size: 0.9rem; }
.toc .toc-t { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
.toc a:not(.btn) {
  display: block; padding: 9px 0 9px 16px;
  color: var(--muted);
  border-left: 2px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), padding-left 0.25s var(--ease);
  font-weight: 500;
}
.toc a:not(.btn):hover { color: var(--ink); padding-left: 20px; }
.toc a.on { color: var(--ink); border-left-color: var(--green); font-weight: 700; }
.toc .toc-cta { margin-top: 22px; }
.toc .toc-cta .btn { padding: 13px 20px; font-size: 0.86rem; width: 100%; justify-content: center; }
@media (max-width: 920px) {
  .art-layout { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .toc { display: none; }
}

/* corpo do artigo */
.art-body { font-size: 1.06rem; line-height: 1.75; color: #2c3a30; }
.art-body > * + * { margin-top: 1.2em; }
.art-body h2 {
  font-family: var(--f-display); font-weight: 800; font-size: 1.6rem;
  letter-spacing: -0.02em; color: var(--ink); line-height: 1.12;
  margin-top: 2em;
  scroll-margin-top: 110px;
}
.art-body h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.22rem; color: var(--ink); margin-top: 1.6em; }
.art-body strong { color: var(--ink); }
.art-body ul, .art-body ol { padding-left: 1.3em; }
.art-body li + li { margin-top: 0.55em; }
.art-body li::marker { color: var(--green-deep); font-weight: 700; }
.art-body figure { margin: 2em 0; }
.art-body figure .ph-img { aspect-ratio: 16 / 9; background: rgba(21, 33, 26, 0.04); display: grid; place-items: center; color: var(--muted-2); font-size: 0.88rem; border: 1px dashed rgba(21, 33, 26, 0.18); border-radius: var(--r-sm); }
.art-body figcaption { font-size: 0.82rem; color: var(--muted-2); margin-top: 10px; }

/* sumário executivo */
.takeaways {
  background: var(--green-dark); color: #fff;
  border-radius: var(--r-md);
  padding: 26px 28px;
}
.takeaways .tk-t {
  font-weight: 800; font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #6ee59a; margin-bottom: 16px;
}
.takeaways ol { list-style: none; counter-reset: tk; display: grid; gap: 12px; padding: 0; }
.takeaways li { counter-increment: tk; display: grid; grid-template-columns: 32px 1fr; gap: 12px; font-size: 0.96rem; line-height: 1.55; color: #c9d6cc; }
.takeaways li::before {
  content: "0" counter(tk);
  font-family: var(--f-display); font-weight: 800; color: #6ee59a; font-size: 1rem;
}
.takeaways li b { color: #fff; }

/* callouts — contidos, sem caixa colorida */
.callout {
  background: rgba(21, 33, 26, 0.035);
  border-radius: var(--r-sm);
  padding: 20px 24px;
  font-size: 0.96rem; line-height: 1.6;
}
.callout .c-t { font-weight: 800; display: block; margin-bottom: 6px; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-deep); }
.callout.erro { background: rgba(21, 33, 26, 0.035); }
.callout.erro .c-t { color: var(--red-deep); }

/* gate — contido */
.gate {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  margin: 2.2em 0;
  overflow: hidden;
}
.gate .g-head {
  padding: 20px 24px 0;
  font-weight: 800; font-family: var(--f-display); font-size: 1.08rem; letter-spacing: -0.01em;
  color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.gate .g-head::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.gate .g-body { padding: 10px 24px 22px; }
.gate .g-body p { font-size: 0.92rem; color: var(--muted); margin: 0 0 16px; }
.gate form { display: flex; gap: 10px; flex-wrap: wrap; }
.gate input {
  flex: 1; min-width: 180px; font-family: var(--f-body); font-size: 0.96rem;
  background: var(--cream); border: 1.5px solid transparent; border-radius: var(--r-pill);
  padding: 13px 18px; outline: none;
  transition: border-color 0.25s, background 0.25s;
}
.gate input:focus { border-color: var(--green); background: #fff; }
.gate .g-ok { display: none; font-weight: 700; color: var(--green-deep); }
.gate.done form { display: none; }
.gate.done .g-ok { display: block; }
@media (max-width: 600px) {
  .gate form { flex-direction: column; }
  .gate input, .gate .btn { width: 100%; justify-content: center; }
}

/* related */
.related { margin-top: clamp(40px, 6vw, 70px); padding-bottom: clamp(50px, 7vw, 80px); }

/* mobile sticky CTA (artigo) */
.m-cta { display: none; }
@media (max-width: 920px) {
  .m-cta {
    display: flex; gap: 10px; align-items: center;
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 95;
    background: rgba(12, 36, 23, 0.78);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    border-radius: var(--r-pill);
    padding: 10px 10px 10px 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 50px -12px rgba(8, 20, 13, 0.55);
  }
  .m-cta .mc-t { font-size: 0.85rem; font-weight: 700; line-height: 1.25; flex: 1; }
  .m-cta .btn { padding: 12px 18px; font-size: 0.85rem; flex-shrink: 0; }
  .wa-float { display: none; }
}

/* mobile type */
@media (max-width: 600px) {
  .art-body { font-size: 1.01rem; line-height: 1.7; }
  .art-cover { aspect-ratio: 16 / 10; border-radius: var(--r-md); }
  .takeaways { padding: 22px 20px; }
}
