/* Blog do Grupo Jobz. Tokens, card holográfico, hero sangrado e rodapé copiados do portal (src/styles.css e src/footer.css).
   (clone-study/showcase-8am/build/src/styles.css e footer.css) para o blog ler como parte dele. */
@font-face { font-family: 'Plus Jakarta Sans'; src: url(/fonts/PlusJakartaSans-latin.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url(/fonts/PlusJakartaSans-latin-ext.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --night: #131936;
  --ink: #0b3140;
  --text: #1a1a1a;
  --muted: #5b6275;
  --accent: #1E81FE;
  --navy: #002269;
  --blue-ui: #1A6FE0;
  --lime: #94D227;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-pop: cubic-bezier(.34, 1.45, .64, 1);
  --gutter: clamp(20px, 5vw, 96px);
  --mesh-light:
    radial-gradient(40% 50% at 12% 22%, #e6e3fb 0%, transparent 70%),
    radial-gradient(35% 45% at 88% 12%, #fbeedd 0%, transparent 70%),
    radial-gradient(45% 50% at 80% 88%, #dfe6fb 0%, transparent 70%),
    radial-gradient(40% 40% at 20% 85%, #e2f4ee 0%, transparent 70%),
    #f4f4f8;
  /* cor do card: por enquanto a do Grupo em todas as categorias (pendência: cor por unidade) */
  --c1: #1A6FE0; --c2: #1E81FE; --c3: #002269;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }


/* ---------- chrome fixo (igual ao portal) ---------- */
.timebar { position: fixed; inset: 0 0 auto 0; height: 6px; z-index: 3000; background: #e6e6ea; }
.timebar__fill { height: 100%; width: 0; background: linear-gradient(90deg, #002269, #1A6FE0, #1E81FE, #94D227); background-size: 100vw 100%; background-repeat: no-repeat; }
.topbar { position: fixed; top: 6px; left: 0; right: 0; z-index: 2900; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(1.25rem, 2.5vw, 2rem); transition: background .35s, box-shadow .35s; }
.topbar.is-solid { background: rgba(255, 255, 255, .82); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); box-shadow: 0 1px 0 rgba(11, 49, 64, .08); }
.chapter { display: flex; align-items: center; gap: 10px; margin: 0; text-decoration: none; color: var(--ink); }
.chapter img { display: block; height: 26px; width: auto; }
.chapter i { width: 1px; height: 18px; background: currentColor; opacity: .4; }
.chapter span { font: 700 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.menu-toggle {
  width: 46px; height: 46px; padding: 0; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); cursor: pointer;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: linear-gradient(rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 55%), rgba(19, 25, 54, .26);
  backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 6px 20px rgba(6, 10, 30, .22), inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -10px 18px rgba(19, 25, 54, .12);
  transition: transform .25s;
}
.menu-toggle span { width: 16px; height: 1.5px; border-radius: 2px; background: #fff; box-shadow: 0 1px 2px rgba(6, 10, 30, .28); }
.menu-toggle:hover { transform: scale(1.06); }

/* ---------- topo da listagem ---------- */
.b-hero { position: relative; background: var(--mesh-light); padding: calc(6px + 120px) var(--gutter) 40px; overflow: hidden; }
.kicker { margin: 0 0 14px; font: 700 12px/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.b-hero__title { margin: 0; font-size: clamp(48px, 7vw, 120px); line-height: .98; font-weight: 400; letter-spacing: -.055em; color: var(--ink); }
.b-hero__title b { font-weight: 700; color: var(--accent); }
.b-hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.b-hero__count { margin: 0 0 10px; font-size: 15px; color: var(--muted); }
.b-hero__count b { color: var(--ink); }

/* filtro por categoria: pílulas de vidro */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 36px 0 0; padding: 0; list-style: none; }
.chips a { white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; text-decoration: none;
  font-size: 14px; font-weight: 600; letter-spacing: -.01em; color: var(--ink);
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(11, 49, 64, .1); backdrop-filter: blur(10px);
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease-pop);
}
.chips a small { font-size: 12px; font-weight: 600; color: var(--muted); }
.chips a:hover { transform: translateY(-2px); border-color: rgba(11, 49, 64, .25); }
.chips a.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chips a.is-on small { color: rgba(255, 255, 255, .6); }

/* ---------- destaque (post mais recente) ---------- */
.feature { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; margin: 0 var(--gutter); border-radius: 28px; overflow: hidden; text-decoration: none; color: var(--ink); background: #fff; box-shadow: 0 24px 70px rgba(11, 49, 64, .12); transform: translateY(40px); }
.feature__text { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(28px, 4vw, 64px); background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 22%, #fff), color-mix(in srgb, var(--c3) 14%, #fff)); }
.feature__label { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--navy); color: #fff; font: 700 11px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.feature__label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.feature__title { margin: 0; font-size: clamp(30px, 3.2vw, 54px); line-height: 1.04; font-weight: 400; letter-spacing: -.045em; max-width: 16ch; }
.feature__excerpt { margin: 16px 0 0; font-size: 16px; line-height: 1.55; color: #3b4357; max-width: 46ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feature__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.feature__media { position: relative; overflow: hidden; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.feature:hover .feature__media img { transform: scale(1.04); }
.cta-pill { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: -.01em; transition: background .3s, color .3s, gap .3s var(--ease-pop); }
.cta-pill svg { width: 16px; height: 16px; flex: none; }
.feature:hover .cta-pill, .cta-pill:hover { gap: 14px; background: var(--ink); color: #fff; }
.meta { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { width: 15px; height: 15px; }

/* ---------- grade de cards ---------- */
.grid-wrap { padding: 96px var(--gutter) 80px; background: #fff; }
.grid-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 28px; }
.grid-head h2 { margin: 0; font-size: clamp(24px, 2.2vw, 34px); font-weight: 600; letter-spacing: -.04em; color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(18px, 2vw, 28px); }
.more { display: flex; justify-content: center; margin-top: 48px; }
.more button { height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid rgba(11, 49, 64, .2); background: #fff; font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; transition: background .25s, color .25s; }
.more button:hover { background: var(--ink); color: #fff; }

/* ---------- card do blog: a carta holográfica do portal com a foto do post ---------- */
.post-card-hit { position: relative; display: block; text-decoration: none; color: inherit; border-radius: 22px; }
.post-card-hit:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.post-card {
  --mx: 50%; --my: 50%; --bgx: 50%; --bgy: 50%; --active: 0; --rx: 0deg; --ry: 0deg;
  position: relative; width: 100%; aspect-ratio: .74; border-radius: 22px; overflow: hidden;
  container-type: inline-size; color: #fff;
  background:
    radial-gradient(70% 55% at 85% 10%, color-mix(in srgb, var(--c2) 80%, #fff) 0%, transparent 70%),
    radial-gradient(80% 60% at 10% 95%, var(--c3) 0%, transparent 75%),
    linear-gradient(165deg, var(--c1), var(--c2) 60%, var(--c3));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--hlift, 0));
  transition: transform .4s var(--ease-pop), box-shadow .3s ease;
  will-change: transform;
}
.post-card-hit:hover { z-index: 5; }
.post-card-hit:hover .post-card { box-shadow: 0 clamp(12px, 2.2vw, 34px) clamp(26px, 4.4vw, 70px) rgba(0, 0, 0, .32); }
.post-card__texture, .post-card__foil, .post-card__glare, .post-card__frame { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
.post-card__texture {
  z-index: 1; opacity: .75; mix-blend-mode: soft-light;
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .22) 0 .75px, rgba(0, 0, 0, .16) .75px 1.5px, transparent 1.5px 3.5px),
    repeating-linear-gradient(28deg, rgba(255, 255, 255, .12) 0 .75px, rgba(0, 0, 0, .1) .75px 1.5px, transparent 1.5px 4.5px);
}
.post-card__foil {
  z-index: 4;
  background-image:
    repeating-linear-gradient(110deg, #ff77738c, #ffed5f8c, #a8ff5f8c, #83fff78c, #7894ff8c, #d875ff8c, #ff77738c 90%),
    repeating-linear-gradient(-35deg, #fff0, #ffffff47, #fff0);
  background-size: 260% 260%, 180% 180%; background-position: var(--bgx) var(--bgy), var(--my) var(--mx);
  background-blend-mode: overlay; mix-blend-mode: overlay; filter: saturate(1.35);
  opacity: calc(var(--active) * .7); transition: opacity .35s ease;
}
.post-card__glare {
  z-index: 4; mix-blend-mode: overlay; opacity: calc(var(--active) * .6); transition: opacity .35s ease;
  background: radial-gradient(farthest-corner circle at var(--mx) var(--my), rgba(255, 255, 255, .8) 8%, rgba(255, 255, 255, .18) 34%, rgba(120, 120, 140, .05) 60%, rgba(0, 0, 0, .15) 100%);
}
.post-card__frame { inset: 3.75cqw; z-index: 3; border: 1px solid rgba(255, 255, 255, .45); border-radius: 4.6cqw; box-shadow: 0 1px #ffffff40, 0 0 0 1px #00000014 inset; }
.post-card__photo { position: absolute; z-index: 2; left: 3.75cqw; right: 3.75cqw; top: 3.75cqw; height: 54%; border-radius: 4.6cqw 4.6cqw 0 0; overflow: hidden; background: color-mix(in srgb, var(--c3) 60%, #000); }
.post-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); transition: transform .8s var(--ease-out); }
.post-card__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, color-mix(in srgb, var(--c3) 55%, transparent)); }
.post-card-hit:hover .post-card__photo img { transform: scale(1.07); }
.post-card__cat { position: absolute; z-index: 3; left: 8cqw; top: 8cqw; display: inline-flex; align-items: center; gap: 2cqw; height: 9cqw; padding: 0 3.6cqw; border-radius: 999px; background: rgba(8, 10, 15, .5); backdrop-filter: blur(8px); font-size: 3.4cqw; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.post-card__cat::before { content: ''; width: 2cqw; height: 2cqw; border-radius: 50%; background: var(--lime); }
.post-card__inner { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; top: 54%; padding: 6cqw 8cqw 8cqw; display: flex; flex-direction: column; justify-content: space-between; gap: 4cqw; }
.post-card__title { margin: 0; font-size: 5.8cqw; line-height: 1.16; font-weight: 700; letter-spacing: -.025em; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 1px rgba(0, 0, 0, .18); }
.post-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 4cqw; }
.post-card__meta { margin: 0; font-size: 3.6cqw; line-height: 1.3; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .78; }
.post-card__logo { display: block; height: 7.5cqw; width: auto; flex: none; }

/* ---------- página do post: hero sangrado igual ao detalhe das soluções ---------- */
.p-hero { position: relative; display: flex; min-height: 100svh; }
.p-hero__text { position: relative; flex: none; width: 50vw; padding: calc(6px + 110px) clamp(24px, 3vw, 72px) clamp(48px, 8vh, 96px) var(--gutter); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 26%, #fff), color-mix(in srgb, var(--c3) 16%, #fff)); }
.p-hero__mark { position: absolute; right: -6vw; top: 8vh; width: 28vw; height: 28vw; color: rgba(255, 255, 255, .7); mix-blend-mode: overlay; pointer-events: none; }
.p-hero__head { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; font-size: 13px; color: var(--muted); }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.p-hero__title { margin: 0; font-size: clamp(34px, 3.6vw, 64px); line-height: 1.04; font-weight: 400; letter-spacing: -.05em; color: var(--ink); max-width: 18ch; text-wrap: balance; }
.p-hero__lead { margin: 22px 0 0; font-size: 17px; line-height: 1.55; color: #3b4357; max-width: 46ch; }
.p-hero__foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.p-hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 50vw; overflow: hidden; }
.p-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: cdPhoto .9s var(--ease-out) .12s both; }
@keyframes cdPhoto { from { clip-path: inset(0 0 0 45%); transform: scale(1.036); } to { clip-path: inset(0 0 0 0); transform: none; } }

.share { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.share a, .share button {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; text-decoration: none;
  color: var(--ink); background: rgba(255, 255, 255, .7); border: 1px solid rgba(11, 49, 64, .14);
  transition: transform .3s var(--ease-pop), background .3s, color .3s, border-color .3s;
}
.share a:hover, .share button:hover { transform: translateY(-3px); background: var(--accent); border-color: var(--accent); color: #fff; }
.share svg { width: 17px; height: 17px; }
.share__label { font: 700 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.share button.is-done { background: var(--lime); border-color: var(--lime); color: var(--ink); }

/* corpo do artigo */
.p-body { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 720px) 1fr; gap: clamp(28px, 4vw, 72px); padding: clamp(56px, 8vw, 110px) var(--gutter) 40px; }
.p-aside { position: relative; }
.p-aside__sticky { position: sticky; top: 104px; display: grid; gap: 28px; }
.toc h3 { margin: 0 0 12px; font: 700 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid rgba(11, 49, 64, .12); }
.toc a { display: block; padding: 7px 0 7px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 13px; line-height: 1.35; color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.is-on { color: var(--ink); font-weight: 600; border-color: var(--accent); }
.p-aside .share { flex-direction: column; align-items: flex-start; }

.article { font-size: 18px; line-height: 1.72; color: #252a36; min-width: 0; }
.article > :first-child { margin-top: 0; }
.article p { margin: 0 0 1.25em; }
.article h2 { margin: 2.1em 0 .7em; font-size: clamp(24px, 2.1vw, 32px); line-height: 1.15; font-weight: 600; letter-spacing: -.035em; color: var(--ink); scroll-margin-top: 110px; }
.article h3 { margin: 1.8em 0 .6em; font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; color: var(--ink); scroll-margin-top: 110px; }
.article ul, .article ol { margin: 0 0 1.4em; padding-left: 1.2em; }
.article li { margin: 0 0 .55em; padding-left: .3em; }
.article li::marker { color: var(--accent); }
.article strong { color: var(--ink); }
.article a { color: var(--blue-ui); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--blue-ui) 35%, transparent); overflow-wrap: anywhere; }
.article a:hover { text-decoration-color: currentColor; }
.article blockquote { margin: 1.8em 0; padding: 22px 26px; border-radius: 18px; background: var(--mesh-light); font-size: 20px; line-height: 1.5; letter-spacing: -.02em; color: var(--ink); }
.article img { display: block; border-radius: 18px; margin: 1.6em 0; }
.article table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(11, 49, 64, .12); }

.p-end { padding: 0 var(--gutter); }
.p-end__share { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; max-width: 720px; margin: 0 0 0 calc(240px + clamp(28px, 4vw, 72px)); padding: 26px 0; border-top: 1px solid rgba(11, 49, 64, .12); border-bottom: 1px solid rgba(11, 49, 64, .12); }
.p-end__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: #f1f3f8; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink); }
.tag:hover { background: var(--navy); color: #fff; }

.related { padding: clamp(64px, 8vw, 110px) var(--gutter); background: var(--mesh-light); margin-top: clamp(56px, 7vw, 96px); }
.related .grid { grid-template-columns: repeat(4, 1fr); }

/* chamada de contato antes do rodapé */
.talk { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: clamp(48px, 6vw, 88px) var(--gutter); background: #10142e; color: #fff; }
.talk p { margin: 0; max-width: 20ch; font-size: clamp(26px, 2.6vw, 44px); line-height: 1.08; font-weight: 600; letter-spacing: -.045em; }
.talk a { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 999px; background: #fff; color: #10142e; text-decoration: none; font-weight: 700; font-size: 15px; transition: gap .3s var(--ease-pop), background .3s; }
.talk a:hover { gap: 14px; background: var(--lime); }
.talk svg { width: 16px; height: 16px; }

/* ---------- rodapé (cópia do portal) ---------- */
.site-footer { position: relative; color: #fff; padding: clamp(24px, 4vw, 56px) clamp(20px, 3.2vw, 56px) 20px; background: #10142e; border-top: 1px solid rgba(255, 255, 255, .08); }
.site-footer__top { display: grid; grid-template-columns: minmax(280px, 1fr) 2fr; gap: clamp(32px, 6vw, 96px); }
.site-footer__claim { margin: 0; max-width: 15ch; font-size: clamp(28px, 2.6vw, 44px); line-height: 1.08; font-weight: 600; letter-spacing: -.045em; }
.site-footer__cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; height: 46px; padding: 0 20px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 999px; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: -.02em; text-decoration: none; transition: background .3s, color .3s, gap .3s var(--ease-pop); }
.site-footer__cta:hover { background: #fff; color: #10142e; gap: 14px; }
.site-footer__cta svg { width: 16px; height: 16px; }
.site-footer__social { list-style: none; margin: 28px 0 0; padding: 0; display: flex; gap: 10px; }
.site-footer__social a { width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255, 255, 255, .22); transition: transform .3s var(--ease-pop), background .3s, border-color .3s; }
.site-footer__social a:hover { transform: translateY(-3px); background: #1E81FE; border-color: #1E81FE; }
.site-footer__social svg { width: 18px; height: 18px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px; align-content: start; }
.site-footer__col h3 { margin: 0 0 18px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__col a { font-size: 14px; line-height: 1.35; color: rgba(255, 255, 255, .62); letter-spacing: -.01em; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; transition: color .25s, transform .25s var(--ease-pop); }
.site-footer__col a:hover { color: #fff; transform: translateX(3px); }
.site-footer__bu { display: flex; align-items: center; gap: 8px; }
.site-footer__bu::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--bu); }
.site-footer__legal { margin: clamp(48px, 6vw, 80px) 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; color: rgba(255, 255, 255, .5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.site-footer__legal span { display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-footer__legal a, .site-footer__legal button { color: inherit; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .25); }
.site-footer__legal button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.site-footer__legal a:hover, .site-footer__legal button:hover { color: #fff; }

/* ---------- entrada suave ---------- */
.rise { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
.rise.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
  .post-card { transition: none; }
  .p-hero__media img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .p-body { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
  .p-aside { display: none; }
  .p-end__share { margin: 0 auto; }
  .related .grid { grid-template-columns: repeat(2, 1fr); }
  .related .grid > :nth-child(n+3) { display: none; }
}

/* ---------- celular ---------- */
@media (max-width: 768px) {
  .topbar { padding: 10px 16px; }
  .chapter img { height: 22px; }
  .menu-toggle { width: 42px; height: 42px; }
  .b-hero { padding: calc(6px + 96px) 16px 28px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 26px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips a { flex: none; }
  .feature { grid-template-columns: 1fr; margin: 0 16px; min-height: 0; border-radius: 22px; transform: translateY(24px); }
  .feature__media { order: -1; aspect-ratio: 16 / 10; }
  .feature__text { padding: 24px 20px 26px; gap: 22px; }
  .feature__excerpt { font-size: 15px; }
  .grid-wrap { padding: 64px 16px 56px; }
  .grid { grid-template-columns: 1fr; }
  .post-card { aspect-ratio: .86; }
  .post-card__photo { height: 56%; }
  .post-card__inner { top: 56%; }
  .post-card__title { font-size: 6.6cqw; -webkit-line-clamp: 3; }

  .p-hero { flex-direction: column; min-height: 0; }
  .p-hero__media { position: relative; width: 100%; height: 46svh; order: -1; }
  .p-hero__text { width: 100%; padding: 26px 16px 30px; gap: 24px; }
  .p-hero__mark { display: none; }
  .p-hero__title { font-size: clamp(30px, 8.4vw, 40px); }
  .p-hero__lead { font-size: 16px; }
  .p-body { padding: 40px 16px 24px; }
  .article { font-size: 17px; line-height: 1.68; }
  .p-end { padding: 0 16px; }
  .related { padding: 56px 16px; }
  .related .grid { grid-template-columns: 1fr; }
  .related .grid > :nth-child(3) { display: block; }
  .related .grid > :nth-child(4) { display: none; }
  .talk { padding: 48px 16px; }
  .site-footer { padding: 40px 16px 20px; }
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
}

/* logo claro quando o topo do post (celular) está sobre a foto */
.chapter .on-dark { display: none; }
@media (max-width: 768px) {
  body[data-page='post'] .topbar:not(.is-solid) .chapter { color: #fff; }
  body[data-page='post'] .topbar:not(.is-solid) .chapter .on-light { display: none; }
  body[data-page='post'] .topbar:not(.is-solid) .chapter .on-dark { display: block; }
  body[data-page='post'] .topbar:not(.is-solid) { background: linear-gradient(rgba(8, 10, 15, .45), transparent); }
}

/* fechar o artigo: mesmo botão redondo escuro do detalhe das soluções no portal */
.close-btn { width: 46px; height: 46px; padding: 0; border: 0; border-radius: 999px; display: grid; place-items: center; cursor: pointer; background: #10142e; color: #fff; box-shadow: 0 6px 20px rgba(6, 10, 30, .22); transition: transform .3s var(--ease-pop), background .3s; }
.close-btn:hover { transform: rotate(90deg) scale(1.06); background: var(--accent); }
.close-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.close-btn svg { width: 18px; height: 18px; }
@media (max-width: 768px) { .close-btn { width: 42px; height: 42px; } }

/* filtro por unidade (1º nível) e categorias da unidade (2º nível) */
.chip-bu::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--bu); flex: none; }
.chips a.chip-bu.is-on { background: var(--bu); border-color: var(--bu); color: var(--bu-ink); }
.chips a.chip-bu.is-on::before { background: var(--bu-ink); }
.chips--sub { margin-top: 12px; }
.chips--sub a { height: 34px; padding: 0 14px; font-size: 13px; background: rgba(255, 255, 255, .45); }
.chips--sub a.is-on { background: color-mix(in srgb, var(--bu) 12%, #fff); border-color: var(--bu); color: var(--ink); }
.chips--sub a.is-on small { color: var(--muted); }
.b-hero__bu { color: var(--bu); }
@media (max-width: 768px) { .chips--sub { margin-top: 8px; } }

/* ---------- destaque rotativo ---------- */
.feature-slider { position: relative; margin: 0 var(--gutter); border-radius: 28px; overflow: hidden; background: #fff; box-shadow: 0 24px 70px rgba(11, 49, 64, .12); transform: translateY(40px); }
.feature-slider.rise.is-in { transform: translateY(40px); }
.feature-track { display: grid; }
.feature-slider .feature { grid-area: 1 / 1; margin: 0; border-radius: 0; box-shadow: none; transform: none; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease-out), visibility 0s linear .6s; }
.feature-slider .feature.is-active { opacity: 1; visibility: visible; transition: opacity .6s var(--ease-out), visibility 0s; z-index: 1; }
.feature.is-active .feature__media img { animation: cdPhoto .9s var(--ease-out) both; }
.feature.is-active .feature__label, .feature.is-active .feature__title, .feature.is-active .feature__excerpt { animation: slideUp .7s var(--ease-out) both; }
.feature.is-active .feature__title { animation-delay: .08s; }
.feature.is-active .feature__excerpt { animation-delay: .16s; }
.feature__title { margin-top: 22px; }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* controles: pílula de vidro escuro sobre a foto, como o botão de menu do portal */
.slider-ctrl { position: absolute; z-index: 3; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px;
  background: linear-gradient(rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 55%), rgba(8, 10, 15, .42);
  backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.slider-btn { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 999px; display: grid; place-items: center; cursor: pointer; background: rgba(255, 255, 255, .14); color: #fff; transition: background .25s, transform .25s var(--ease-pop); }
.slider-btn:hover { background: #fff; color: var(--ink); transform: scale(1.06); }
.slider-btn:focus-visible, .slider-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.slider-btn svg { width: 16px; height: 16px; }
.slider-btn[data-step="-1"] svg { transform: scaleX(-1); }
.slider-dots { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0 6px; list-style: none; }
.slider-dots button { position: relative; width: 22px; height: 6px; padding: 0; border: 0; border-radius: 999px; overflow: hidden; cursor: pointer; background: rgba(255, 255, 255, .3); transition: width .4s var(--ease-out); }
.slider-dots button[aria-current] { width: 44px; }
.slider-dots i { position: absolute; inset: 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #1E81FE, #94D227); }
.slider-dots button[aria-current] i { animation: dotFill 6.5s linear forwards; }
.feature-slider.is-paused .slider-dots i { animation-play-state: paused; }
.feature-slider.is-static .slider-dots button[aria-current] i { animation: none; width: 100%; }
@keyframes dotFill { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .feature.is-active .feature__media img, .feature.is-active .feature__label, .feature.is-active .feature__title, .feature.is-active .feature__excerpt { animation: none; }
}
@media (max-width: 768px) {
  .feature-slider { margin: 0 16px; border-radius: 22px; transform: translateY(24px); }
  .feature-slider.rise.is-in { transform: translateY(24px); }
  .feature-slider .feature { margin: 0; border-radius: 0; transform: none; grid-template-rows: auto 1fr; }
  /* no celular a foto fica em cima: os controles assentam no canto inferior da foto */
  .slider-ctrl { right: 12px; bottom: auto; top: calc((100vw - 32px) * 10 / 16 - 52px); padding: 4px; }
  .slider-btn { width: 32px; height: 32px; }
}

/* blocos do editor do WordPress: imagem com legenda e tabela */
.article figure { margin: 1.8em 0; }
.article figure img { margin: 0; width: 100%; }
.article figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--muted); text-align: center; }
.article figure table { margin: 0; }
.article thead th { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid rgba(11, 49, 64, .18); }
.article ol li::marker { font-weight: 700; }

.share__label--block { margin: 0 0 12px; }
.empty { color: var(--muted); }
#more[hidden] { display: none; }

/* menu do blog: painel com os links principais do portal */
.blog-menu { position: fixed; inset: 0; z-index: 3600; display: flex; justify-content: flex-end; padding: clamp(12px, 2vw, 24px); background: rgba(8, 13, 24, .55); }
.blog-menu[hidden] { display: none; }
.blog-menu__panel { position: relative; width: min(420px, 100%); border-radius: 24px; background: #fff; padding: 72px 28px 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); overflow: auto; }
.blog-menu__close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border: 0; border-radius: 999px; display: grid; place-items: center; cursor: pointer; background: #10142e; color: #fff; }
.blog-menu__close svg { width: 18px; height: 18px; }
.blog-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.blog-menu a { display: block; padding: 10px 0; font-size: 28px; font-weight: 500; letter-spacing: -.04em; color: var(--ink); text-decoration: none; transition: color .2s, transform .25s var(--ease-pop); }
.blog-menu a:hover, .blog-menu a[aria-current] { color: var(--accent); }
.blog-menu a:hover { transform: translateX(4px); }
.blog-menu__bus { margin-top: 28px !important; padding-top: 20px !important; border-top: 1px solid rgba(11, 49, 64, .12); }
.blog-menu__bus a { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; padding: 8px 0; }
.blog-menu__bus a::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--bu); }
html.menu-open { overflow: hidden; }

.feature-wrap { background: linear-gradient(to bottom, #f4f4f8 50%, #fff 50%); }

/* página 404 (gerada em scripts/gen-blog.mjs, mostrada pelo Worker quando o WordPress responde 404) */
.nf { padding-bottom: clamp(56px, 7vw, 96px); }
.nf__text { margin: 22px 0 0; max-width: 34em; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--muted); }
.nf__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.nf__btn { display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid rgba(11, 49, 64, .2); background: #fff; font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; transition: background .25s, color .25s, border-color .25s; }
.nf__btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.nf__btn--main { background: var(--navy); color: #fff; border-color: var(--navy); }
.nf__btn--main:hover { background: var(--ink); border-color: var(--ink); }
.nf__btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.nf + .grid-wrap .grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .nf + .grid-wrap .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .nf__links li { flex: 1 1 100%; } .nf__btn { width: 100%; justify-content: center; } .nf + .grid-wrap .grid { grid-template-columns: 1fr; } }

/* Aviso de cookies: cartão escuro discreto no canto, no mesmo vidro azul-noite do menu. Acima das telas internas (4000)
   e do menu (4500), abaixo da abertura (6000) e da visão para IA (9000). */
.ck {
  position: fixed; left: clamp(16px, 2.5vw, 32px); bottom: clamp(16px, 2.5vw, 32px); z-index: 5500;
  width: min(400px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; box-sizing: border-box;
  padding: 20px 20px 18px; border-radius: 18px;
  background: rgba(10, 16, 36, .9); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 18px 50px rgba(2, 5, 15, .45);
  color: #fafafc; font-family: inherit;
  animation: ckIn .5s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes ckIn { from { opacity: 0; translate: 0 16px; } }
.ck__title { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(250, 250, 252, .62); }
.ck__text { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(250, 250, 252, .88); }
.ck__text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(30, 129, 254, .9); }
.ck__text a:hover { text-decoration-color: #fff; }

.ck__groups { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.ck__group { padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.ck__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.ck__name { font-size: 14px; font-weight: 600; }
.ck__desc { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: rgba(250, 250, 252, .62); }

.ck__switch {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0; width: 38px; height: 22px; border-radius: 99px;
  background: rgba(255, 255, 255, .2); position: relative; cursor: pointer; transition: background .2s;
}
.ck__switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transition: translate .2s cubic-bezier(.2, .8, .2, 1);
}
.ck__switch:checked { background: #1E81FE; }
.ck__switch:checked::after { translate: 16px 0; }
.ck__switch:disabled { opacity: .55; cursor: default; }
.ck__switch:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.ck__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.ck__btn {
  font: inherit; font-size: 14px; font-weight: 600; min-height: 40px; padding: 0 16px; border-radius: 99px; cursor: pointer;
  background: transparent; color: #fafafc; border: 1px solid rgba(255, 255, 255, .28);
  transition: background .2s, border-color .2s, scale .15s;
}
.ck__btn:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .06); }
.ck__btn:active { scale: .97; }
.ck__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ck__btn--main { background: #1E81FE; border-color: #1E81FE; }
.ck__btn--main:hover { background: #1A6FE0; border-color: #1A6FE0; }
.ck__btn--link { border-color: transparent; padding: 0 8px; margin-left: auto; color: rgba(250, 250, 252, .75); text-decoration: underline; text-underline-offset: 3px; }
.ck__btn--link:hover { background: none; border-color: transparent; color: #fff; }

@media (max-width: 768px) {
  .ck { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px 16px 16px; }
  .ck__btn { min-height: 44px; }
  .ck:not(.ck--prefs) .ck__btn:not(.ck__btn--link) { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .ck { animation: none; } }
