/* Blog e artigos, no padrão da home aprovada (reunião de 24/11/2026: "melhorar muito o blog", urgente).
   Índice: topo navy com o artigo mais recente em destaque, filtros e cartões iguais. Artigo: coluna de leitura de
   ~65 caracteres, capa larga, compartilhar no fim, três relacionados e a chamada final da home. */

/* ---------- Topo do índice ---------- */
.bl-hero {
  padding: calc(var(--header) + 40px) 0 clamp(56px, 6vw, 80px);
  background: radial-gradient(55% 70% at 92% 6%, rgba(0,166,223,.16), transparent 62%), var(--navy);
}
.bl-hero .crumbs { margin-bottom: 18px; }
.bl-hero-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px 48px; align-items: end; margin-bottom: clamp(28px, 3.4vw, 40px); }
.bl-hero-head .kicker { margin-bottom: 12px; }
.bl-hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.bl-hero .lede { margin: 0; justify-self: end; max-width: 27em; color: rgba(255,255,255,.8); }

/* Destaque: o artigo mais recente */
.bl-feat { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-radius: var(--r-xl); overflow: hidden; background: var(--navy-2); border: 1px solid var(--navy-line); transition: border-color .2s; }
.bl-feat:hover { border-color: var(--cyan); }
.bl-feat-img { position: relative; min-height: 340px; background: var(--navy-3); display: grid; place-items: center; overflow: hidden; }
.bl-feat-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bl-feat:hover .bl-feat-img > img { transform: scale(1.03); }
.bl-feat-txt { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.bl-feat-k { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .9rem; font-weight: 500; color: var(--cyan); }
.bl-feat-k span { padding: 3px 12px; border-radius: 999px; border: 1px solid rgba(0,166,223,.5); color: var(--white); }
.bl-feat h2 { margin: 0; font-weight: 300; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.14; letter-spacing: -.01em; text-wrap: balance; }
.bl-feat h2 a { color: inherit; text-decoration: none; }
.bl-feat h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.bl-feat h2 a:focus-visible { outline: none; }
.bl-feat:focus-within { outline: 2px solid var(--blue-mid); outline-offset: 3px; }
.bl-feat .bl-desc { color: rgba(255,255,255,.78); -webkit-line-clamp: 3; }
.bl-feat .bl-meta { color: var(--muted-dark); padding-top: 0; margin: 0; }
.bl-go { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 6px; font-weight: 500; border-bottom: 1.5px solid var(--blue-mid); padding-bottom: 2px; }
.bl-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.bl-feat:hover .bl-go { border-bottom-color: currentColor; }
.bl-feat:hover .bl-go svg { transform: translateX(4px); }

/* ---------- Lista ---------- */
.bl-list { padding: clamp(56px, 7vw, 96px) 0; }
.bl-list-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(28px, 3.4vw, 40px); }
.bl-list-head h2 { margin: 0; }
.bl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bl-chips button { min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 500; font-size: .92rem; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.bl-chips button:hover { border-color: var(--ink); }
.bl-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.bl-count { margin: -12px 0 20px; color: var(--muted); font-size: .95rem; }
.bl-count[hidden] { display: none; }

.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bl-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .2s; }
.bl-card[hidden] { display: none; }
.bl-card:hover { border-color: var(--ink); }
.bl-card:focus-within { outline: 2px solid var(--blue-mid); outline-offset: 3px; }
.bl-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); display: grid; place-items: center; }
.bl-cover > img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bl-card:hover .bl-cover > img { transform: scale(1.03); }
.bl-none img, .bl-feat-img > img[src$=".svg"] { position: static; width: 150px; height: auto; object-fit: contain; }
.bl-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 22px 24px 24px; }
.bl-cat { margin: 0; font-size: .875rem; font-weight: 500; color: var(--blue); }
.bl-card h3 { margin: 0; font-size: 1.18rem; line-height: 1.25; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.bl-card h3 a { color: inherit; text-decoration: none; }
.bl-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.bl-card h3 a:focus-visible { outline: none; }
.bl-desc { margin: 0; color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-meta { margin: auto 0 0; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .875rem; color: var(--muted); }
.bl-empty { padding: 40px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--r-lg); }
.bl-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.bl-pager:empty { display: none; }
.bl-pager button { min-width: 44px; height: 44px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 500; cursor: pointer; }
.bl-pager button:hover:not(:disabled) { border-color: var(--ink); }
.bl-pager button[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.bl-pager button:disabled { opacity: .4; cursor: default; }

/* ---------- Artigo ---------- */
.bl-ah { padding: calc(var(--header) + 48px) 0 clamp(56px, 7vw, 88px); background: radial-gradient(55% 80% at 90% 0%, rgba(0,166,223,.15), transparent 62%), var(--navy); }
.bl-ah.has-cover { padding-bottom: clamp(130px, 15vw, 210px); }
.bl-col-head { max-width: 960px; margin: 0 auto; }
.bl-ah h1 { font-size: clamp(2rem, 4vw, 3.3rem); max-width: none; text-wrap: balance; }
.bl-ah-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 24px 0 0; color: rgba(255,255,255,.75); font-size: .95rem; }
.bl-ah-meta b { color: var(--white); font-weight: 500; }
.bl-read { display: flow-root; padding-bottom: clamp(64px, 8vw, 112px); }
.bl-art-cover { position: relative; z-index: 2; max-width: 960px; aspect-ratio: 16 / 9; margin: calc(-1 * clamp(96px, 11vw, 160px)) auto 0; border-radius: var(--r-xl); overflow: hidden; background: var(--navy-2); box-shadow: 0 50px 100px -50px rgba(11,20,48,.6); }
.bl-art-cover img { width: 100%; height: 100%; object-fit: cover; }

/* Coluna de leitura: ~65 caracteres por linha */
.bl-prose { max-width: 65ch; margin: clamp(40px, 5vw, 64px) auto 0; font-size: 1.125rem; line-height: 1.72; }
.bl-prose > * + * { margin-top: 1.15em; }
.bl-prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 1.9em; }
.bl-prose h3 { font-size: 1.3rem; margin-top: 1.7em; }
.bl-prose p > strong:only-child { color: var(--ink); }
.bl-prose img { display: block; width: 100%; height: auto; margin-top: 1.6em; border-radius: var(--r-md); background: var(--mist); }
.bl-prose img + p { margin-top: .7em; font-size: .92rem; line-height: 1.5; color: var(--muted); }
.bl-prose ul, .bl-prose ol { padding-left: 1.4em; }
.bl-prose li + li { margin-top: .55em; }
.bl-prose blockquote { padding: 6px 0 6px 24px; font-size: 1.2rem; line-height: 1.5; }

.bl-share { max-width: 65ch; margin: 56px auto 0; padding-top: 28px; border-top: 1px solid var(--line); font-size: 1.125rem; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bl-share p { margin: 0 8px 0 0; font-size: .95rem; font-weight: 500; color: var(--muted); }
.bl-share a, .bl-share button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-size: .92rem; font-weight: 500; text-decoration: none; cursor: pointer; }
.bl-share a:hover, .bl-share button:hover { border-color: var(--ink); }
.bl-share svg { width: 16px; height: 16px; flex: none; }

.bl-rel .bl-list-head .link { color: var(--ink); }

/* ---------- Telas menores ---------- */
@media (max-width: 1024px) {
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .bl-hero-head { grid-template-columns: minmax(0, 1fr); }
  .bl-hero .lede { justify-self: start; }
  .bl-feat { grid-template-columns: minmax(0, 1fr); }
  .bl-feat-img { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .bl-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .bl-list-head { align-items: start; }
  .bl-chips { flex: 0 0 calc(100% + 2 * var(--gutter)); flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; max-width: calc(100% + 2 * var(--gutter)); }
  .bl-chips::-webkit-scrollbar { display: none; }
  .bl-chips button { white-space: nowrap; }
  .bl-prose { font-size: 1.06rem; }
  .bl-art-cover { border-radius: var(--r-lg); }
}
@media (forced-colors: active) {
  .bl-card, .bl-feat { border: 1px solid CanvasText; }
  .bl-chips button[aria-pressed="true"], .bl-pager button[aria-current="page"] { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}
