/* ================= Blog Barranet (listagem + artigo) ================= */

/* ---------- peças comuns ---------- */
.b-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--paper); font-size: 12px; font-weight: 800; color: var(--text); }
.b-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--green)); }
.b-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.b-meta span { display: inline-flex; align-items: center; gap: 6px; }
.b-meta svg { width: 15px; height: 15px; }
.b-cover { position: relative; overflow: hidden; background: #1C2119; }
.b-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }

/* ---------- LISTAGEM: hero ---------- */
.bl-hero { padding-bottom: clamp(48px, 6vw, 72px) !important; }
.bl-hero .page-hero-in { max-width: 820px; }
.bl-search { position: relative; display: flex; align-items: center; max-width: 560px; margin-top: 30px; padding: 6px 6px 6px 20px; border-radius: 999px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--line-d); transition: box-shadow .25s, background-color .25s; }
.bl-search:focus-within { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1.5px var(--lime); }
.bl-search svg { flex: none; width: 20px; height: 20px; color: rgba(255,255,255,.6); }
.bl-search input { flex: 1; min-width: 0; height: 48px; padding: 0 12px; border: 0; background: none; color: var(--white); font: inherit; font-size: 16px; outline: none; }
.bl-search input::placeholder { color: rgba(255,255,255,.45); }
.bl-search kbd { margin-right: 10px; padding: 3px 8px; border-radius: 8px; background: rgba(255,255,255,.08); font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.5); }
.bl-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.55); }
.bl-topics button { padding: 6px 12px; border: 0; border-radius: 999px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color .2s; }
.bl-topics button:hover { background: rgba(255,255,255,.14); }

/* ---------- LISTAGEM: destaque + mais lidos ---------- */
.bl-top { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; }
.bl-feat { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 480px; overflow: hidden; border-radius: 36px; color: var(--white); text-decoration: none; isolation: isolate; }
.bl-feat .b-cover { position: absolute; inset: 0; z-index: -2; }
.bl-feat::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,14,14,.05) 20%, rgba(14,14,14,.92)); }
.bl-feat:hover .b-cover img { transform: scale(1.04); }
.bl-feat-in { padding: clamp(24px, 3.4vw, 44px); }
.bl-feat .b-chip { background: var(--lime); }
.bl-feat .b-chip::before { background: var(--ink); }
.bl-feat h2 { max-width: 20ch; margin: 16px 0 10px; font-size: clamp(30px, 1.2rem + 1.9vw, 48px); line-height: 1.04; letter-spacing: -.035em; }
.bl-feat p { max-width: 52ch; margin: 0 0 18px; color: rgba(255,255,255,.75); }
.bl-feat .b-meta { color: rgba(255,255,255,.65); }
.bl-feat .go { position: absolute; right: clamp(20px, 3vw, 36px); top: clamp(20px, 3vw, 36px); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--white); color: var(--ink); font-size: 22px; transition: transform .4s var(--ease), background-color .3s; }
.bl-feat:hover .go { transform: rotate(-45deg); background: var(--lime); }

.bl-pop { display: flex; flex-direction: column; padding: 28px; border-radius: 36px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.bl-pop h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 20px; }
.bl-pop h2 i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--lime); }
.bl-pop h2 i svg { width: 18px; height: 18px; }
.bl-pop ol { flex: 1; display: grid; margin: 0; padding: 0; list-style: none; counter-reset: pop; }
.bl-pop li { counter-increment: pop; border-top: 1px solid var(--line); }
.bl-pop li:first-child { border-top: 0; }
.bl-pop a { display: grid; grid-template-columns: 36px 1fr 64px; gap: 14px; align-items: center; padding: 16px 0; text-decoration: none; }
.bl-pop a::before { content: counter(pop, decimal-leading-zero); font-family: var(--display); font-size: 24px; font-weight: 700; color: transparent; -webkit-text-stroke: 1.2px var(--green); }
.bl-pop b { display: block; font-size: 15.5px; line-height: 1.3; transition: color .2s; }
.bl-pop small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.bl-pop a:hover b { color: var(--green-d); }
.bl-pop .th { width: 64px; height: 64px; border-radius: 16px; }

/* ---------- LISTAGEM: barra de filtros ---------- */
.bl-bar { position: sticky; top: 84px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: clamp(56px, 7vw, 88px) 0 24px; padding: 8px; border-radius: 999px; background: rgba(243,245,239,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line); }
.bl-cats { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.bl-cats::-webkit-scrollbar { display: none; }
.bl-cats button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color .25s, color .25s; }
.bl-cats button small { padding: 1px 7px; border-radius: 999px; background: rgba(14,14,14,.06); font-size: 11px; }
.bl-cats button:hover { color: var(--text); }
.bl-cats button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.bl-cats button[aria-pressed="true"] small { background: var(--lime); color: var(--ink); }
.bl-count { flex: none; padding-right: 14px; font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ---------- LISTAGEM: grade ---------- */
.bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bl-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: transform .45s var(--ease), box-shadow .45s; animation: bl-in .5s var(--ease) both; }
.bl-card:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--line), 0 30px 50px -30px rgba(14,14,14,.35); }
.bl-card .b-cover { aspect-ratio: 16 / 10; margin: 8px 8px 0; border-radius: 22px; }
.bl-card:hover .b-cover img { transform: scale(1.05); }
.bl-card .b-chip { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); }
.bl-card-in { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.bl-card h3 { margin-bottom: 8px; font-size: 21px; line-height: 1.2; letter-spacing: -.02em; }
.bl-card p { margin: 0 0 18px; font-size: 15px; color: var(--muted); }
.bl-card .b-meta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.bl-card .pauta { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: #FFF4D6; color: #8A5A00; font-size: 11px; font-weight: 800; }
.bl-empty { display: none; padding: 56px 24px; border-radius: 28px; background: var(--white); text-align: center; box-shadow: inset 0 0 0 1px var(--line); }
.bl-empty.on { display: block; }
.bl-empty b { display: block; margin-bottom: 6px; font-size: 20px; }
.bl-empty p { margin: 0 0 18px; color: var(--muted); }
.bl-more { display: flex; justify-content: center; margin-top: 32px; }
@keyframes bl-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- LISTAGEM: newsletter ---------- */
/* chamada de cobertura: o leitor do blog que ainda não é cliente consulta o bairro ali mesmo */
.bl-news { position: relative; display: grid; gap: 0; padding: clamp(28px, 4.5vw, 56px); padding-right: clamp(28px, 24vw, 330px); border-radius: 40px; background: radial-gradient(45% 90% at 88% 100%, rgba(100,184,44,.42), transparent 70%), var(--ink); color: var(--white); }
.bl-news h2 { margin-bottom: 10px; }
.bl-news > div > p { margin: 0; max-width: 50ch; color: rgba(255,255,255,.7); }
.bl-news .search { max-width: 540px; margin-top: 26px; }
.bl-news-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.6); }
.bl-news-foot span { display: inline-flex; align-items: center; gap: 8px; }
.bl-news-foot span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.bl-news-foot a { color: var(--lime); font-weight: 700; text-decoration: none; }
.bl-news-foot a:hover { text-decoration: underline; }
.bl-news img { position: absolute; right: clamp(16px, 4vw, 60px); bottom: 0; height: calc(100% - 24px); width: auto; max-width: none; filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); }

/* ---------- ARTIGO ---------- */
.ar-progress { position: fixed; z-index: 60; left: 0; top: 0; width: 100%; height: 3px; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--green), var(--lime)); pointer-events: none; }
.ar-hero { padding-bottom: clamp(120px, 14vw, 190px) !important; }
.ar-hero .page-hero-in { max-width: 900px; }
.ar-hero h1 { margin-top: 16px; font-size: clamp(38px, 1.2rem + 3.6vw, 70px); }
.ar-hero .lede { max-width: 60ch; margin: 18px 0 0; font-size: 19px; color: rgba(255,255,255,.72); }
.ar-by { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.ar-av { display: flex; align-items: center; gap: 12px; }
.ar-av i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-d); }
.ar-av i img { width: 26px; }
.ar-av b { display: block; font-size: 15px; }
.ar-av small { font-size: 13px; color: rgba(255,255,255,.55); }
.ar-hero .b-meta { color: rgba(255,255,255,.6); }
.ar-cover { position: relative; z-index: 2; margin: calc(-1 * clamp(96px, 11vw, 150px)) auto 0; aspect-ratio: 21 / 9; border-radius: 36px; box-shadow: 0 50px 80px -50px rgba(14,14,14,.6); }
.ar-cover figcaption { position: absolute; right: 16px; bottom: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(14,14,14,.65); backdrop-filter: blur(8px); color: rgba(255,255,255,.75); font-size: 12px; }

.ar-wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr) 260px; gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: clamp(48px, 6vw, 72px); }
.ar-side { position: sticky; top: 110px; }
.ar-toc b { display: block; margin-bottom: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ar-toc ol { position: relative; margin: 0; padding: 0; list-style: none; }
.ar-toc ol::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--line); }
.ar-toc a { position: relative; display: block; padding: 7px 0 7px 18px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color .2s; }
.ar-toc a::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--green); transform: scaleY(0); transition: transform .3s var(--ease); }
.ar-toc a:hover { color: var(--text); }
.ar-toc a.on { color: var(--text); }
.ar-toc a.on::before { transform: none; }
.ar-share { display: flex; gap: 8px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.ar-share a, .ar-share button { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--white); color: var(--text); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s, color .2s; }
.ar-share a:hover, .ar-share button:hover { background: var(--ink); color: var(--lime); }
.ar-share svg { width: 18px; height: 18px; }
.ar-copied { display: none; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--green-d); }
.ar-copied.on { display: block; }

.ar-mtoc { display: none; }

.article { max-width: 68ch; margin: 0; font-size: 18px; line-height: 1.75; }
.article > p:first-child { font-size: 20px; color: var(--text); }
.article h2 { scroll-margin-top: 110px; margin: 52px 0 14px; font-size: clamp(26px, 1rem + 1vw, 32px); }
.article h2 + p { margin-top: 0; }
.ar-sum { margin: 0 0 40px; padding: 24px 26px; border-radius: 24px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.ar-sum b { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--green-d); }
.ar-sum ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 16px; line-height: 1.5; }
.ar-sum li { display: flex; gap: 10px; }
.ar-sum li::before { content: ''; flex: none; margin-top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.2 4.7-4.8' stroke='%230E0E0E' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat; }
.ar-steps { display: grid; gap: 10px; margin: 24px 0 32px; padding: 0; list-style: none; counter-reset: st; }
.ar-steps li { counter-increment: st; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; margin: 0; padding: 16px 18px; border-radius: 18px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: 16.5px; line-height: 1.55; }
.ar-steps li::before { content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--lime); font-family: var(--display); font-weight: 700; font-size: 15px; }
.ar-tip { display: grid; grid-template-columns: 44px 1fr; gap: 14px; margin: 32px 0; padding: 20px 22px; border-radius: 22px; background: #EAF7DF; box-shadow: inset 0 0 0 1px rgba(100,184,44,.3); font-size: 16.5px; line-height: 1.6; }
.ar-tip i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--green); color: var(--white); }
.ar-tip i svg { width: 20px; height: 20px; }
.ar-tip b { display: block; margin-bottom: 2px; }
.ar-shot { margin: 32px 0; padding: 22px; border-radius: 26px; background: var(--ink); color: var(--white); }
.ar-shot .mono { color: var(--lime); }
.ar-shot .g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; font-size: 13px; line-height: 1.35; }
.ar-shot .g span { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.7); }
.ar-shot .g b { display: block; margin-bottom: 2px; color: var(--lime); }
.ar-shot figcaption { margin-top: 12px; font-size: 13px; color: rgba(255,255,255,.5); }
.article blockquote { position: relative; margin: 40px 0; padding: 28px 30px 28px 34px; border-radius: 24px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--display); font-size: 24px; line-height: 1.3; letter-spacing: -.02em; }
.article blockquote::before { content: ''; position: absolute; left: 0; top: 24px; bottom: 24px; width: 4px; border-radius: 0 4px 4px 0; background: var(--lime); }
.ar-faq { margin: 24px 0; }
.ar-faq details { border-top: 1px solid var(--line); }
.ar-faq details:last-child { border-bottom: 1px solid var(--line); }
.ar-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; }
.ar-faq summary::-webkit-details-marker { display: none; }
.ar-faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--paper-2); font-size: 18px; transition: transform .3s var(--ease); }
.ar-faq details[open] summary::after { transform: rotate(45deg); background: var(--lime); }
.ar-faq details p { margin: 0 0 18px; font-size: 16.5px; color: var(--muted); }
.ar-help { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding: 20px 24px; border-radius: 22px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.ar-help b { font-size: 16px; }
.ar-help div { display: flex; gap: 8px; }
.ar-help button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--paper); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color .2s; }
.ar-help button:hover { background: var(--paper-2); }
.ar-help button[aria-pressed="true"] { background: var(--ink); color: var(--lime); }
.ar-help .thanks { display: none; font-size: 14px; color: var(--green-d); font-weight: 700; }
.ar-help.done .thanks { display: block; }
.ar-help.done div { display: none; }
.ar-author { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center; margin-top: 16px; padding: 22px 24px; border-radius: 22px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.ar-author i { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ink); }
.ar-author i img { width: 36px; }
.ar-author b { display: block; font-size: 17px; }
.ar-author p { margin: 2px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }

.ar-cta { overflow: hidden; border-radius: 28px; background: var(--ink); color: var(--white); }
.ar-cta-in { padding: 24px; }
.ar-cta .mono { font-size: 11px; color: var(--lime); }
.ar-cta b { display: block; margin: 8px 0 6px; font-family: var(--display); font-size: 22px; line-height: 1.15; letter-spacing: -.02em; }
.ar-cta p { margin: 0 0 18px; font-size: 14px; color: rgba(255,255,255,.65); }
.ar-cta .btn { width: 100%; justify-content: center; }
.ar-cta .btn + .btn { margin-top: 8px; }
.ar-cta img { display: block; width: 62%; height: auto; margin: -6px auto 0; }

.ar-rel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ---------- responsivo ---------- */
.static .bl-card, .static .ar-progress { animation: none; transition: none; }
@media (prefers-reduced-motion: reduce) { .bl-card { animation: none; } }
@media (max-width: 1180px) {
  .ar-wrap { grid-template-columns: 200px minmax(0, 1fr); }
  .ar-aside-r { display: none; }
}
@media (max-width: 1000px) {
  .bl-top { grid-template-columns: 1fr; }
  .bl-feat { min-height: 420px; }
  .bl-grid, .ar-rel { grid-template-columns: 1fr 1fr; }
  .bl-news { padding-right: clamp(28px, 4.5vw, 56px); padding-bottom: 170px; background: radial-gradient(70% 45% at 85% 100%, rgba(100,184,44,.42), transparent 70%), var(--ink); }
  .bl-news img { height: 150px; }
  .ar-wrap { grid-template-columns: minmax(0, 1fr); }
  .ar-side-l { display: none; }
  .ar-mtoc { display: block; position: sticky; top: 84px; z-index: 5; margin-bottom: 28px; }
  .ar-mtoc details { border-radius: 20px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line), 0 16px 30px -24px rgba(14,14,14,.5); }
  .ar-mtoc summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; font-weight: 700; font-size: 15px; }
  .ar-mtoc summary::-webkit-details-marker { display: none; }
  .ar-mtoc summary span { overflow: hidden; color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
  .ar-mtoc ol { margin: 0; padding: 0 18px 12px; list-style: none; }
  .ar-mtoc a { display: block; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; text-decoration: none; }
  .ar-cover { aspect-ratio: 16 / 10; border-radius: 28px; }
}
@media (max-width: 680px) {
  .bl-bar { border-radius: 24px; flex-direction: column; align-items: stretch; gap: 4px; }
  .bl-count { padding: 0 10px 4px; }
  .bl-grid, .ar-rel { grid-template-columns: 1fr; }
  .bl-search kbd { display: none; }
  .bl-pop .th { width: 52px; height: 52px; }
  .bl-pop a { grid-template-columns: 30px 1fr 52px; }
  .ar-shot .g { grid-template-columns: 1fr 1fr; }
  .article { font-size: 17px; }
  .article > p:first-child { font-size: 18px; }
  .article blockquote { font-size: 20px; padding: 22px 22px 22px 26px; }
}

/* chamada no meio do artigo */
.ar-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin: 40px 0; padding: 26px 28px; border-radius: 24px; background: var(--ink); color: var(--white); }
.ar-band div { flex: 1 1 300px; }
.ar-band b { display: block; margin-bottom: 6px; font-family: var(--display); font-size: 22px; line-height: 1.2; }
.ar-band p { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.7); }
