/* Refinamento visual da biblioteca. Mantém os estilos de artigo e impressão. */
.kb-premium{--kb-deep:#06182a;--kb-electric:#1478d4;--kb-sky:#8edcf0;--kb-soft:#f2f7fb;--kb-border:#dbe7ef;--kb-shadow:0 22px 60px rgba(7,30,52,.09)}
.kb-premium .kb-hero-premium{min-height:420px;padding:clamp(38px,6vw,72px);grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr);gap:clamp(36px,6vw,80px);border-radius:28px;background:radial-gradient(circle at 82% 12%,rgba(67,169,226,.28),transparent 29%),radial-gradient(circle at 8% 100%,rgba(48,116,205,.2),transparent 30%),linear-gradient(135deg,#051726 0%,#092d4c 68%,#0b4f80 115%)}
.kb-premium .kb-hero-premium:after{content:"";position:absolute;right:-120px;bottom:-200px;width:440px;height:440px;border:1px solid rgba(255,255,255,.09);border-radius:50%;box-shadow:0 0 0 55px rgba(255,255,255,.025),0 0 0 110px rgba(255,255,255,.018)}
.kb-premium .kb-hero h1{max-width:820px;font-size:clamp(42px,5.4vw,68px)}
.kb-premium .kb-hero h1 span{color:#8edcf0}
.kb-premium .kb-hero-copy>p:not(.kb-eyebrow){margin:20px 0 28px;font-size:16px;line-height:1.7}
.kb-premium .kb-back{margin-bottom:24px}
.kb-premium .kb-search-premium{max-width:780px;height:68px;padding:7px 7px 7px 19px;border:0;border-radius:18px}
.kb-premium .kb-search-premium:focus-within{outline:3px solid rgba(142,220,240,.26);box-shadow:0 20px 62px rgba(0,0,0,.3)}
.kb-premium .kb-search-premium button{height:54px;min-width:104px;border-radius:13px;background:linear-gradient(135deg,#1684df,#0d65ba)}
.kb-premium .kb-quick{gap:9px;margin-top:15px}
.kb-premium .kb-quick>span{margin-right:3px;color:#8fa9bd;font-weight:750}
.kb-premium .kb-quick button{transition:.2s}
.kb-premium .kb-quick button:hover{border-color:rgba(255,255,255,.38);background:rgba(255,255,255,.14);transform:translateY(-1px)}
.kb-hero-stats{position:relative;z-index:1;padding:10px;overflow:hidden;border:1px solid rgba(255,255,255,.14);border-radius:24px;background:rgba(255,255,255,.075);box-shadow:inset 0 1px rgba(255,255,255,.08);backdrop-filter:blur(18px)}
.kb-stat-main{min-height:190px;padding:28px;display:flex;flex-direction:column;justify-content:flex-end;border-radius:17px;background:linear-gradient(145deg,rgba(255,255,255,.1),rgba(255,255,255,.02))}
.kb-stat-main>span{margin-bottom:auto;color:#8edcf0;font-size:10px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}
.kb-stat-main strong{font-size:64px;line-height:.95;letter-spacing:-.06em}
.kb-stat-main small{margin-top:8px;color:#bdd2e2;font-size:12px}
.kb-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;margin-top:9px;overflow:hidden;border-radius:15px;background:rgba(255,255,255,.12)}
.kb-stat-grid div{padding:17px 8px;display:grid;gap:2px;background:#0a2944;text-align:center}
.kb-stat-grid strong{font-size:19px}.kb-stat-grid span{color:#9db6c9;font-size:9px;text-transform:uppercase}
.kb-premium .kb-section{margin-top:76px}
.kb-section-head-premium{align-items:center}.kb-section-head-premium>p{font-size:13px;line-height:1.65}
.kb-featured-grid-premium{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.kb-feature-card-premium{min-height:370px;display:flex;flex-direction:column;border-radius:20px}
.kb-feature-card-premium .kb-feature-visual{position:relative;height:155px;flex:none;padding:0;overflow:hidden;background:linear-gradient(145deg,#0b3152,#0f75bf)}
.kb-feature-card-premium .kb-feature-visual img{width:100%;height:100%;object-fit:cover;object-position:top center;transition:transform .35s}
.kb-feature-card-premium:hover .kb-feature-visual img{transform:scale(1.04)}
.kb-feature-card-premium .kb-feature-visual>span{height:100%;display:grid;place-items:center}
.kb-brand-mark{display:grid;place-items:center;width:66px;height:66px;border:1px solid rgba(255,255,255,.24);border-radius:20px;background:rgba(255,255,255,.08)}
.kb-brand-mark::before{content:"";width:39px;height:39px;background:#fff;-webkit-mask:url("../img/favicon.png") center/contain no-repeat;mask:url("../img/favicon.png") center/contain no-repeat}
.kb-feature-card-premium .kb-feature-visual b{position:absolute;left:12px;bottom:12px;padding:5px 9px;border-radius:99px;background:rgba(4,21,36,.82);color:#fff;font-size:9px;letter-spacing:.05em;text-transform:uppercase;backdrop-filter:blur(8px)}
.kb-feature-card-premium>div:last-child{min-height:215px;padding:21px 21px 19px}
.kb-feature-card-premium small{margin:0;color:#1672c3;font-size:9px;letter-spacing:.06em;text-transform:uppercase}
.kb-feature-card-premium h3{margin:8px 0 8px;font-size:18px;line-height:1.25}
.kb-feature-card-premium p{font-size:11px;line-height:1.55;-webkit-line-clamp:3;display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical}
.kb-feature-card-premium strong{padding-top:14px}
.kb-library-section{scroll-margin-top:20px}
.kb-library-top{margin-bottom:22px;display:flex;align-items:end;justify-content:space-between;gap:30px}
.kb-library-top h2{margin:0;font-size:clamp(31px,4vw,44px);letter-spacing:-.045em}
.kb-result-summary{display:flex;align-items:baseline;gap:7px;color:#6d8091}.kb-result-summary strong{color:#0d67b6;font-size:25px}.kb-result-summary span{font-size:12px}
.kb-filter-panel{position:sticky;top:10px;z-index:8;margin-bottom:22px;padding:13px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;border:1px solid var(--kb-border);border-radius:18px;background:rgba(255,255,255,.94);box-shadow:0 12px 35px rgba(6,31,53,.07);backdrop-filter:blur(16px)}
.kb-system-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.kb-system-tabs button{min-height:48px;padding:7px 10px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:12px;background:transparent;color:#536a7e;font-size:11px;transition:.18s}
.kb-system-tabs button b{min-width:23px;padding:2px 6px;border-radius:99px;background:#eaf1f6;color:#6d8091;font-size:9px}
.kb-system-tabs button:hover{background:#f1f6fa;color:#123c60}.kb-system-tabs button.active{background:#092a47;color:#fff;box-shadow:0 7px 17px rgba(7,40,68,.18)}.kb-system-tabs button.active b{background:rgba(255,255,255,.15);color:#fff}
.kb-filter-actions{display:flex;align-items:center;gap:8px}.kb-topic-field{min-width:230px}.kb-topic-field>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.kb-topic-field select{width:100%;height:48px;padding:0 39px 0 14px;border:1px solid var(--kb-border);border-radius:12px;background:#f8fbfd;color:#263f55;font:700 11px inherit}
.kb-filter-actions .kb-clear{width:auto;height:48px;margin:0;padding:0 14px;white-space:nowrap}
.kb-active-search{grid-column:1/-1;padding:9px 13px;display:flex;align-items:center;justify-content:space-between;border-radius:10px;background:#eaf5fc;color:#31546e;font-size:12px}.kb-active-search[hidden]{display:none}.kb-active-search strong{color:#075fa8}.kb-active-search button{width:28px;min-height:28px;padding:0;border-radius:8px;background:rgba(9,77,128,.08);color:#174868;font-size:18px}
.kb-results-premium{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.kb-result-card-premium{min-height:190px;display:grid;grid-template-columns:170px minmax(0,1fr);border-radius:18px}
.kb-result-card-premium[hidden]{display:none!important}
.kb-result-card-premium .kb-card-cover{height:100%;min-height:190px}
.kb-result-card-premium .kb-card-body{min-height:190px;padding:19px 20px}
.kb-result-card-premium .kb-card-body h3{margin:9px 0 7px;font-size:17px}
.kb-result-card-premium .kb-card-body p{-webkit-line-clamp:2;font-size:11px;line-height:1.55}
.kb-card-footer{margin-top:auto;padding-top:15px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e7eef3}.kb-card-footer>span{color:#8394a2;font-size:9px;font-weight:750;text-transform:uppercase;letter-spacing:.06em}.kb-card-footer a{color:#0969b8;font-size:11px;font-weight:850;text-decoration:none}.kb-card-footer a b{margin-left:5px}
.kb-premium .kb-load-more{min-height:50px;border-radius:13px;font-size:12px}.kb-premium .kb-empty>span{width:56px;height:56px;margin:0 auto 15px;display:grid;place-items:center;border-radius:18px;background:#eaf4fb;color:#1473c3;font-size:29px}.kb-premium .kb-empty strong{display:block}.kb-premium .kb-empty button{margin-top:8px}
.kb-help-card-premium{padding:42px 46px;background:radial-gradient(circle at 85% 20%,rgba(108,213,235,.2),transparent 25%),linear-gradient(120deg,#061b2e,#0b4e7e)}.kb-help-card-premium .button{gap:12px}.kb-help-card-premium .button b{font-size:16px}

/* Capturas contextualizadas: cada imagem permanece dentro do passo pertinente. */
.kb-inline-visuals{margin:24px 0 34px;display:grid;grid-template-columns:minmax(0,1fr);gap:14px;clear:both}
.kb-inline-visuals.has-multiple{grid-template-columns:repeat(2,minmax(0,1fr))}
.kb-inline-screen{min-width:0;margin:0;overflow:hidden;border:1px solid #cfdee9;border-radius:18px;background:#fff;box-shadow:0 18px 42px rgba(7,30,52,.09)}
.kb-inline-screen>a{position:relative;display:block;overflow:hidden;background:linear-gradient(145deg,#eaf2f7,#f8fbfd)}
.kb-inline-screen>a:after{content:"Ampliar";position:absolute;right:12px;bottom:12px;padding:6px 9px;border-radius:8px;background:rgba(5,25,43,.84);color:#fff;font-size:9px;font-weight:850;letter-spacing:.06em;text-transform:uppercase;opacity:0;transform:translateY(5px);transition:.2s}
.kb-inline-screen>a:hover:after,.kb-inline-screen>a:focus-visible:after{opacity:1;transform:none}
.kb-article-content .kb-inline-screen img{width:100%;max-width:none;height:auto;margin:0;display:block;border:0;border-radius:0;box-shadow:none;transition:transform .25s}
.kb-inline-screen>a:hover img{transform:scale(1.012)}
.kb-inline-screen.is-portrait{max-width:520px}
.kb-inline-screen figcaption{min-height:58px;padding:12px 15px;display:flex;align-items:center;gap:11px;border-top:1px solid #e2ebf1;background:#fff}
.kb-inline-screen figcaption span{width:31px;height:31px;display:grid;place-items:center;flex:0 0 auto;border-radius:9px;background:#e7f3fc;color:#0870c5;font-size:10px;font-weight:900}
.kb-inline-screen figcaption strong{color:#324d64;font-size:11px;line-height:1.45}
.kb-article-content li>.kb-inline-visuals{margin-top:19px}
.kb-article-content li>.kb-inline-visuals:last-child{margin-bottom:31px}
.kb-article-content .kb-steps{margin:34px 0;padding:0;display:grid;gap:24px;list-style:none}
.kb-article-content .kb-steps>.kb-step{margin:0;padding:23px 24px;overflow:hidden;border:1px solid #d7e4ed;border-radius:20px;background:linear-gradient(180deg,#fff,#fbfdff);box-shadow:0 12px 32px rgba(7,30,52,.055)}
.kb-step-label{margin:0 0 16px;display:flex;align-items:center;gap:10px;color:#617a8e;font-size:10px;font-weight:850;letter-spacing:.09em;text-transform:uppercase}
.kb-step-label span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(145deg,#1684df,#0c66b8);box-shadow:0 8px 18px rgba(12,103,185,.2);color:#fff;font-size:10px}
.kb-step-label strong{color:#31536e;font-size:10px}
.kb-article-content .kb-step-label h2{margin:0;font-size:clamp(1rem,2vw,1.3rem);line-height:1.3;letter-spacing:normal;text-transform:none}
.kb-step-label span{flex-shrink:0}
.kb-step .kb-inline-figure{margin:16px 0 0}
.kb-step .kb-inline-figure img{display:block;width:auto;max-width:100%;height:auto}
.kb-step[id]{scroll-margin-top:95px}
@media print{.kb-step .kb-inline-figure{break-inside:avoid}.kb-step-label{break-after:avoid}}
.kb-article-content .kb-step>p:first-of-type{margin-top:0;color:#173b58;font-size:16px;font-weight:720;line-height:1.65}
.kb-article-content .kb-step>.kb-inline-visuals{margin:22px -24px -23px}
.kb-article-content .kb-step>.kb-inline-visuals .kb-inline-screen{border-right:0;border-bottom:0;border-left:0;border-radius:0;box-shadow:none}
.kb-article-content .kb-step>.kb-inline-visuals .kb-inline-screen:last-child{border-radius:0 0 20px 20px}

@media(max-width:1100px){.kb-featured-grid-premium{grid-template-columns:repeat(2,minmax(0,1fr))}.kb-result-card-premium{grid-template-columns:140px minmax(0,1fr)}.kb-filter-panel{position:static;grid-template-columns:1fr}.kb-filter-actions{justify-content:flex-end}}
@media(max-width:780px){.kb-premium .kb-hero-premium{grid-template-columns:minmax(0,1fr)}.kb-hero-stats{display:none}.kb-system-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.kb-results-premium{grid-template-columns:1fr}.kb-result-card-premium{grid-template-columns:150px minmax(0,1fr)}.kb-library-top{align-items:flex-start;flex-direction:column;gap:8px}}
@media(max-width:600px){.kb-premium,.kb-premium .kb-hero-copy{min-width:0;overflow:hidden}.kb-premium .kb-hero-premium{width:100%;padding:29px 20px}.kb-premium .kb-hero h1{max-width:100%;font-size:32px;overflow-wrap:anywhere}.kb-premium .kb-search-premium{height:auto;max-width:100%;padding:8px 8px 8px 14px;flex-wrap:wrap}.kb-premium .kb-search-premium input{width:calc(100% - 38px);height:44px}.kb-premium .kb-search-premium button{width:100%;height:46px}.kb-premium .kb-quick{max-width:100%;padding-bottom:5px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.kb-premium .kb-quick::-webkit-scrollbar{display:none}.kb-premium .kb-quick>span,.kb-premium .kb-quick button{flex:0 0 auto}.kb-section-head-premium{width:100%;align-items:flex-start;text-align:left}.kb-featured-grid-premium{grid-template-columns:1fr}.kb-feature-card-premium{min-height:0}.kb-feature-card-premium .kb-feature-visual{height:170px}.kb-feature-card-premium>div:last-child{min-height:205px}.kb-filter-panel{padding:10px}.kb-system-tabs{grid-template-columns:1fr}.kb-system-tabs button{justify-content:space-between}.kb-filter-actions{align-items:stretch;flex-direction:column}.kb-topic-field{min-width:0}.kb-filter-actions .kb-clear{width:100%}.kb-result-card-premium{min-height:0;grid-template-columns:110px minmax(0,1fr)}.kb-result-card-premium .kb-card-cover{min-height:174px}.kb-result-card-premium .kb-card-body{min-height:174px;padding:15px}.kb-result-card-premium .kb-card-meta small,.kb-result-card-premium .kb-card-body p{display:none}.kb-result-card-premium .kb-card-body h3{font-size:15px}.kb-card-footer{padding-top:11px}.kb-help-card-premium{padding:30px 24px}.kb-inline-visuals.has-multiple{grid-template-columns:1fr}.kb-inline-screen,.kb-inline-screen.is-portrait{max-width:none}.kb-inline-screen figcaption{align-items:flex-start}.kb-inline-screen>a:after{display:none}.kb-article-content .kb-steps{gap:17px}.kb-article-content .kb-steps>.kb-step{padding:19px 17px}.kb-article-content .kb-step>.kb-inline-visuals{margin-right:-17px;margin-bottom:-19px;margin-left:-17px}}

@media print{.kb-inline-visuals,.kb-inline-visuals.has-multiple{display:block;margin:6mm 0}.kb-inline-screen{margin:0 0 6mm;break-inside:avoid;border-radius:0;box-shadow:none}.kb-inline-screen>a:after{display:none}.kb-article-content .kb-inline-screen img{max-height:118mm;object-fit:contain}.kb-inline-screen figcaption{min-height:0;padding:3mm}}
