/* Conhecimento 3.0 · Biblioteca e leitor compartilhados, mobile-first. */
.k3-root{--k3-navy:#1e2543;--k3-green:#54b275;--k3-darkgreen:#286744;--k3-pale:#f0fff5;--k3-line:#d9e6dd;--k3-muted:#607568;font-family:Outfit,system-ui,sans-serif;color:var(--k3-navy);width:100%;max-width:1080px;margin:0 auto;padding:12px 18px 76px;overflow:visible!important;height:auto!important;min-height:0!important;flex:none!important}
.k3-root *{box-sizing:border-box}
.k3-root a{color:inherit;text-decoration:none}
.k3-root button,.k3-root input,.k3-root textarea{font:inherit}
.k3-root button,.k3-root a{touch-action:manipulation}
.k3-root a:focus-visible,.k3-root button:focus-visible,.k3-root input:focus-visible,.k3-root textarea:focus-visible{outline:3px solid #327f52;outline-offset:3px}
.k3-root img{display:block;max-width:100%}
.k3-root h1,.k3-root h2,.k3-root h3{font-family:Outfit,system-ui,sans-serif;color:var(--k3-navy);font-weight:760;letter-spacing:-.038em;line-height:1.18}
.k3-eyebrow{font-size:11px;letter-spacing:.11em;font-weight:820;text-transform:uppercase;color:var(--k3-darkgreen);margin:0 0 8px}
.k3-intro{padding:18px 0 0}
.k3-intro h1{font-size:clamp(28px,3.4vw,42px);margin:0 0 9px}
.k3-intro>p:last-child{font-size:15px;line-height:1.55;color:var(--k3-muted);margin:0 0 19px}
.k3-tabs{display:flex;gap:5px;border:1px solid var(--k3-line);background:#ecf4ee;border-radius:13px;max-width:480px;padding:4px;margin:0 0 26px}
.k3-tabs a{flex:1 1 0;text-align:center;display:grid;place-items:center;border-radius:9px;min-height:42px;font-size:13px;font-weight:700;color:#617466}
.k3-tabs a[aria-current=page]{background:#fff;color:var(--k3-navy);box-shadow:0 2px 10px #1e254315}
.k3-section{margin:0 0 35px;scroll-margin-top:76px}
.k3-section>h2,.k3-section-title h2,.k3-explore>h2,.k3-comments>h2{font-size:clamp(21px,2.2vw,27px);letter-spacing:-.036em;margin:0 0 14px}
.k3-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 13px}
.k3-section-title h2{margin:0}
.k3-section-title a,.k3-section-title>span{color:var(--k3-darkgreen);font-size:12px;font-weight:740;white-space:nowrap}
.k3-card{position:relative;background:#fff;border:1px solid var(--k3-line);border-radius:17px;overflow:hidden;min-width:0;box-shadow:0 5px 25px rgba(30,37,67,.025)}
.k3-card-featured{display:grid;grid-template-columns:minmax(0,44%) minmax(0,56%);min-height:248px}
.k3-card-photo{display:block;min-height:220px;overflow:hidden;background:#eaf2eb}
.k3-card-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 45%}
.k3-card-photo .k3-photo-placeholder,.k3-card-thumb .k3-photo-placeholder{height:100%;min-height:120px;display:grid;place-items:center;background:#e7f1e9;color:#335d43;font-size:11px;font-weight:750}
.k3-card-copy{padding:18px;display:flex;flex-direction:column;min-width:0}
.k3-meta{font-size:10px;text-transform:uppercase;font-weight:780;letter-spacing:.045em;color:var(--k3-darkgreen);margin:0 0 9px;line-height:1.35}
.k3-meta span{color:#b0bfaf;margin:0 3px}
.k3-card h3{margin:0 0 10px;font-size:clamp(18px,2.25vw,25px);line-height:1.18}
.k3-card h3 a:hover{color:#286744}
.k3-card-summary{font-size:13px;line-height:1.58;color:var(--k3-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 14px}
.k3-card-foot{display:flex;align-items:center;justify-content:space-between;gap:13px;border-top:1px solid #edf0ed;padding-top:11px;margin-top:auto;font-size:11px;color:#64806b}
.k3-card-foot a{color:var(--k3-darkgreen);font-size:12px;font-weight:760;display:flex;align-items:center;gap:5px;white-space:nowrap}
.k3-icon{width:17px;height:17px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none;vertical-align:middle}
.k3-list{display:grid;gap:11px}
.k3-card-compact{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;padding:11px;min-height:110px}
.k3-card-thumb{display:block;background:#e9f2ec;border-radius:10px;overflow:hidden}
.k3-card-thumb img{height:100%;min-height:88px;width:100%;object-fit:cover}
.k3-card-compact .k3-card-copy{padding:1px 22px 0 0;justify-content:space-between}
.k3-card-compact h3{font-size:17px;line-height:1.24;margin:0 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.k3-card-compact .k3-meta{font-size:9px;margin-bottom:4px}
.k3-save{background:#fff;border:1px solid #cfdfd3;border-radius:50%;height:35px;width:35px;display:grid;place-items:center;position:absolute;top:12px;right:11px;z-index:1;color:#3e7351;cursor:pointer}
.k3-save[aria-pressed=true]{background:#e1f3e6;color:#1e6440}
.k3-save .k3-icon{width:16px;height:16px}
.k3-archived{grid-column:1/-1;color:#818c85;font-size:11px;line-height:1.4}
.k3-resume{display:grid;gap:6px;background:#eff8f0;border:1px solid #d0e6d5;border-radius:15px;padding:17px 18px}
.k3-resume span{font-size:10px;font-weight:800;color:#317346;letter-spacing:.08em}
.k3-resume strong{font-size:17px;line-height:1.3}
.k3-resume small{font-size:12px;color:#366e47;font-weight:740}
.k3-pdg-note,.k3-saved-head{background:#f0f8f1;border:1px solid #d9ebdc;border-radius:17px;padding:22px}
.k3-pdg-note h3{margin:0 0 10px;font-size:20px}
.k3-pdg-note p,.k3-saved-head p{font-size:13px;line-height:1.55;color:#607569;margin:0 0 11px}
.k3-pdg-note a{font-size:12px;font-weight:750;color:var(--k3-darkgreen)}
.k3-saved-head h2{font-size:28px;max-width:440px;margin:0 0 10px}
.k3-preserved{margin-top:22px;border-top:1px solid #dee9df;padding-top:17px}
.k3-preserved strong{font-size:13px}
.k3-preserved p{font-size:12px;line-height:1.55;color:#687d6c;margin:5px 0}
.k3-empty{border:1px dashed #c6d9c9;border-radius:12px;padding:22px;font-size:13px;color:#6b7c70}
.k3-empty a{color:var(--k3-darkgreen);font-weight:750}
.k3-search{min-height:53px;display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #c6dacc;border-radius:12px;padding:0 15px;margin:0 0 14px}
.k3-search input{width:100%;height:50px;font-size:16px;color:var(--k3-navy);background:transparent;border:0;outline:none}
.k3-search input::placeholder{color:#84998a}
.k3-search .k3-icon{width:20px;height:20px}
.k3-filters{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;margin:0 0 12px;padding:0 0 2px}
.k3-filters button{background:#fff;border:1px solid #d7e4d9;color:#5b7061;border-radius:999px;padding:10px 14px;font-size:12px;font-weight:700;white-space:nowrap;min-height:39px}
.k3-filters button[aria-pressed=true]{background:var(--k3-navy);color:#fff;border-color:var(--k3-navy)}
.k3-results{font-size:11px;color:#7a8f7e;margin:0 0 25px}
.k3-section-result>h2{font-size:21px;margin:0 0 12px}
.k3-show-more{border:1px solid #cfe1d1;background:#fff;padding:12px 18px;border-radius:11px;font-size:13px;font-weight:740;color:var(--k3-darkgreen);margin:17px 0}
.k3-no-results{padding:18px 10px;font-size:13px;color:#6a8070}
.k3-status{font-size:12px;color:#36714a;min-height:1em;margin:20px 0;line-height:1.5}
.k3-status:empty{display:none}
/* Author from the published expert/professional portal profile: never a copied avatar. */
.k3-author{display:flex;align-items:center;gap:8px;min-width:0;margin:0 0 13px}
.k3-author-photo,.k3-author-initial{width:33px;height:33px;border-radius:50%;flex:none;object-fit:cover;object-position:center;background:#e3f0e7;border:1px solid #dceadd}
.k3-author-initial{display:grid;place-items:center;color:#267149;font-size:13px;font-weight:780}
.k3-author-identity{display:grid;gap:2px;min-width:0}
.k3-author-identity small{font-size:8px;letter-spacing:.10em;font-weight:800;color:#8d9e91}
.k3-author-name{color:var(--k3-navy);font-size:12px;font-weight:760;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.k3-author-name:hover{text-decoration:underline}
.k3-author-links{display:flex;gap:6px;margin-left:auto;flex:none}
.k3-author-social{width:34px;height:34px;border:1px solid #dae8de;color:#326d48;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:850}
.k3-author-social svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}
.k3-author--compact{gap:6px;margin:0}
.k3-author--compact .k3-author-photo,.k3-author--compact .k3-author-initial{width:25px;height:25px}
.k3-author--compact .k3-author-name{font-size:11px}
.k3-author--compact .k3-author-identity small{display:none}
.k3-author--compact .k3-author-social{height:30px;width:30px}
.k3-author--reader{margin:0;flex:1;min-width:0}
.k3-author--reader .k3-author-photo,.k3-author--reader .k3-author-initial{height:42px;width:42px}
.k3-author--reader .k3-author-name{font-size:14px}
.k3-author--reader .k3-author-social{height:40px;width:40px}
/* Immersive reader remains inside the portal for logged users and on public static pages. */
.k3-reader{max-width:920px;padding:0 0 100px}
.k3-reader-top{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:62px;padding:10px 18px;border-bottom:1px solid #e2ece4;background:#fff}
.k3-reader-back{font-size:13px;font-weight:750;display:flex;align-items:center;gap:5px;color:var(--k3-navy)}
.k3-reader-top>div{display:flex;gap:7px}
.k3-icon-button{border:1px solid #d5e6d8;background:#fff;border-radius:50%;width:42px;height:42px;display:grid;place-items:center}
.k3-icon-button[aria-pressed=true]{background:#e5f3e8}
.k3-read-progress{height:3px;background:#e8f1e9;position:sticky;top:0;z-index:12}
.k3-read-progress i{display:block;width:100%;height:100%;background:var(--k3-green);transform:scaleX(0);transform-origin:left;transition:transform .15s}
.k3-article-head{max-width:760px;margin:0 auto;padding:26px 24px 0}
.k3-article-head h1{font-size:clamp(30px,4vw,50px);margin:12px 0 18px;line-height:1.11}
.k3-article-lead{font-size:clamp(15px,1.7vw,19px);line-height:1.6;color:#55695e;margin:0 0 20px}
.k3-article-credit{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 20px}
.k3-article-credit>small{font-size:11px;color:#7c917f}
.k3-article-photo{margin:0;border-radius:16px;overflow:hidden}
.k3-article-photo img{width:100%;aspect-ratio:16/9;object-fit:cover}
.k3-article-photo figcaption{text-align:right;font-size:10px;color:#8b9d8f;margin:7px 0 0}
.k3-article-prose{max-width:720px;margin:30px auto 0;padding:0 24px}
.k3-article-prose>p,.k3-article-prose>ul,.k3-article-prose>ol{font-size:17px;line-height:1.78;color:#2f4037;margin:0 0 22px}
.k3-article-prose>ul,.k3-article-prose>ol{padding-left:26px}
.k3-article-prose>li{margin-bottom:8px}
.k3-article-prose>h2{font-size:clamp(23px,3vw,31px);margin:34px 0 16px}
.k3-article-prose>h3{font-size:20px;margin:27px 0 12px}
.k3-article-prose>blockquote{font-size:21px;font-weight:700;line-height:1.48;letter-spacing:-.025em;color:var(--k3-navy);margin:26px 0;padding:4px 18px;border-left:3px solid var(--k3-green);background:transparent}
.k3-article-prose a:not([class]){color:#286744;text-decoration:underline;text-underline-offset:3px}
.k3-reader .k3-source{border-top:1px solid #dee9e0;padding:18px 0;margin:40px 0;font-size:12px;color:#65776a}
.k3-source p{font-size:12px;color:#667e69;margin:0 0 6px}
.k3-source a{font-size:12px;font-weight:700;color:#326d49}
/* Social interactions should complement, not compete with reading. */
.k3-social{margin:53px 0 22px;scroll-margin-top:95px}
.k3-social-call{background:#ecf7ef;border:1px solid #d1e9d7;border-radius:18px;padding:23px 20px}
.k3-social-call h2{font-size:clamp(22px,2.8vw,29px);margin:0 0 10px}
.k3-social-call>p:not(.k3-eyebrow){font-size:14px;line-height:1.6;color:#526e5a;margin:0 0 18px}
.k3-social-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.k3-action,.k3-reading-bar button{border:1px solid #d7e6da;background:#fff;border-radius:10px;display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;font-size:12px;font-weight:730;color:#385b46;white-space:nowrap;padding:0 10px}
.k3-action .k3-icon{width:17px;height:17px}
.k3-action[aria-pressed=true],.k3-reading-bar button[aria-pressed=true]{background:#dff0e3;border-color:#aad1b5;color:#215c3e}
.k3-action small{font-size:10px;color:#73877a}
.k3-comments{margin-top:32px;scroll-margin-top:95px}
.k3-comments h2{display:flex;align-items:center;gap:8px}
.k3-comments h2 small{font-size:11px;color:#588165;border-radius:50px;background:#e7f2e9;padding:3px 9px}
.k3-comments>p{font-size:14px;line-height:1.55;color:#627668;margin:0 0 17px}
.k3-comments form{border:1px solid #dce8df;border-radius:14px;padding:18px;background:#fff}
.k3-comments form label{display:block;font-size:12px;color:#376047;font-weight:760;margin-bottom:9px}
.k3-comments textarea{display:block;width:100%;resize:vertical;min-height:120px;background:#fcfffc;border:1px solid #cfe2d2;border-radius:11px;padding:12px;font-size:16px;line-height:1.55;color:var(--k3-navy)}
.k3-comments form>div{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.k3-comments form small{font-size:11px;color:#839789}
.k3-comments form button{min-height:44px;border-radius:10px;border:0;background:var(--k3-navy);color:#fff;padding:0 15px;font-size:12px;font-weight:750}
.k3-comment-list{margin:22px 0}
.k3-comment{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;border-bottom:1px solid #e4ede6;padding:14px 0}
.k3-comment-avatar img,.k3-comment-avatar span{width:36px;height:36px;object-fit:cover;border-radius:50%;background:#e7f2e9;display:grid;place-items:center;color:#376e4d}
.k3-comment strong{font-size:13px}
.k3-comment p{font-size:14px;line-height:1.58;color:#526a59;margin:5px 0;overflow-wrap:anywhere;white-space:pre-wrap}
.k3-comment button{font-size:11px;color:#826c69;text-decoration:underline}
.k3-guest-invite{background:#fff;border:1px solid #d5e6db;padding:16px;border-radius:12px;line-height:1.6!important}
.k3-join{color:var(--k3-darkgreen)!important;font-weight:780}
.k3-reading-bar{position:sticky;bottom:0;z-index:12;background:rgba(255,255,255,.97);padding:10px 8px;display:flex;justify-content:center;gap:8px;border-top:1px solid #e1ece2}
.k3-reading-bar button{flex:1;max-width:180px;font-size:11px;min-width:0}
.k3-reading-bar button:first-child{background:var(--k3-navy);color:#fff;border-color:var(--k3-navy)}
.k3-reading-bar button:first-child[aria-pressed=true]{background:#def2e4;color:#286b44;border-color:#b2d8bc}
.k3-related{margin:36px auto;max-width:760px;padding:0 24px}
/* Keep all surfaces scrollable. Never adopt the authenticated portal's 100vh body lock. */
.k3-root,.k3-root .k3-section,.k3-root .k3-article-prose{max-height:none;overflow:visible}
@media(max-width:850px){
 .k3-root{padding:11px 16px 100px}
 .k3-card-featured{display:block;min-height:0}
 .k3-card-photo{height:178px;min-height:0}
 .k3-card-photo img{height:178px}
 .k3-card-copy{padding:15px}
 .k3-card h3{font-size:23px}
 .k3-card-compact{grid-template-columns:88px minmax(0,1fr);padding:9px;gap:10px;min-height:104px}
 .k3-card-thumb img{height:93px;min-height:0}
 .k3-card-compact h3{font-size:15px}
 .k3-card-compact .k3-card-copy{padding:0 20px 0 0}
 .k3-intro h1{font-size:34px}
 .k3-article-prose>p,.k3-article-prose>ul,.k3-article-prose>ol{font-size:18px;line-height:1.73}
 .k3-article-head{padding:26px 20px 0}
 .k3-article-prose{padding:0 20px}
 .k3-reader{padding-bottom:105px}
 .k3-reading-bar{position:fixed;bottom:0;left:0;right:0;margin:auto;max-width:760px}
 body:has(#professional-mobile-nav:not([hidden])) .k3-reading-bar{bottom:68px}
}
@media(max-width:420px){
 .k3-root{padding-left:16px;padding-right:16px}
 .k3-intro h1{font-size:33px}
 .k3-author--compact .k3-author-photo,.k3-author--compact .k3-author-initial{width:25px;height:25px}
 .k3-author--compact .k3-author-name{font-size:10px}
 .k3-author--compact .k3-author-social{height:28px;width:28px}
 .k3-card-compact{grid-template-columns:78px minmax(0,1fr)}
 .k3-card-compact .k3-card-copy{padding-right:12px}
 .k3-card-compact h3{font-size:14px}
 .k3-card-thumb img{height:100%}
 .k3-article-head h1{font-size:34px}
 .k3-social-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}
 .k3-social-buttons .k3-action:last-child{grid-column:1/-1}
 .k3-reading-bar button{font-size:10px;padding:0 5px;gap:4px}
 .k3-reading-bar button .k3-icon{width:16px;height:16px}
}
@media(max-width:350px){
 .k3-card-compact{grid-template-columns:72px minmax(0,1fr)}
 .k3-card-compact .k3-card-copy{padding-right:9px}
 .k3-card-compact h3{font-size:13px}
 .k3-author--compact .k3-author-social{height:26px;width:26px}
 .k3-author--reader .k3-author-social{height:34px;width:34px}
 .k3-article-credit>small{margin-left:50px}
}
@media(prefers-reduced-motion:reduce){.k3-root *{scroll-behavior:auto!important;transition:none!important}}

/* A assinatura no celular deve mostrar o nome inteiro, sem disputar espaço com o tempo. */
@media(max-width:540px){
 .k3-article-credit{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
 .k3-article-credit .k3-author--reader{width:100%;min-width:0}
 .k3-author--reader .k3-author-identity{flex:1;min-width:0}
 .k3-author--reader .k3-author-name{white-space:nowrap;overflow:visible;text-overflow:clip}
 .k3-author--reader .k3-author-links{margin-left:auto}
 .k3-article-credit>small{display:block;margin-left:50px}
}


/* Conhecimento 3.0 · uma única margem de leitura · 2026-10-13.
 * O painel do portal e o main público não somam recuos ao módulo.
 * :has(> .k3-root) mantém a correção restrita à experiência Conhecimento.
 */
main:has(> .k3-root){padding:0;border:0;border-radius:0;box-shadow:none;background:transparent}
.k3-root.k3-reader{background:#fff}
.k3-reader :is(.k3-article-head,.k3-article-prose,.k3-related){overflow-wrap:break-word}
/* O botão Salvar não pode cobrir o metadado do destaque no desktop. */
@media(min-width:851px){
 .k3-card-featured:has(.k3-save) .k3-meta{padding-right:34px}
}
@media(max-width:850px){
 .layout:has(> main > .k3-root){padding-inline:0;max-width:100%}
 .k3-root.k3-workspace{padding-inline:16px}
 .k3-root.k3-reader{padding-inline:0;padding-top:0}
 .k3-reader-top{padding-inline:20px}
 .k3-article-head,.k3-article-prose{padding-inline:20px}
 .k3-related{padding-inline:16px}
 /* Sem uma segunda margem vazia à direita do texto dos cards compactos. */
 .k3-card-compact{grid-template-columns:clamp(72px,20vw,88px) minmax(0,1fr);gap:10px}
 .k3-card-compact .k3-card-copy{padding-right:0}
 /* Reserva somente o espaço necessário ao Salvar, sem estreitar o título/autoria. */
 .k3-card-compact:has(.k3-save) .k3-meta{padding-right:36px;min-height:35px}
}

/* Continuity, preferences and readable touch targets. */
.k3-article-prose [data-k3-text]>p,.k3-article-prose [data-k3-text]>ul{font-size:18px;line-height:1.73}
.k3-preferences,.k3-continuity,.k3-privacy{max-width:720px;margin:20px auto;padding:16px 20px;border:1px solid #d8e7dd;border-radius:12px;background:#f4faf5;color:#344a3b}
.k3-preferences summary,.k3-privacy summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:650}
.k3-preferences fieldset{border:0;padding:12px 0;display:grid;gap:6px}
.k3-preferences label,.k3-privacy label{display:flex;align-items:center;gap:10px;min-height:44px;font-size:15px}
.k3-preferences input,.k3-privacy input{width:20px;height:20px;accent-color:#286b44}
.k3-continuity small{display:block;margin-top:12px;line-height:1.5;color:#526a59}
.k3-continuity p,.k3-privacy p{font-size:14px;line-height:1.6}
.k3-continuity button{margin:4px 6px 4px 0;min-height:44px}
.k3-root :is(button,a,input,textarea):focus-visible{outline:3px solid #227546;outline-offset:3px}
.k3-author--compact .k3-author-social,.k3-author--reader .k3-author-social{min-width:44px;min-height:44px}
@media(max-width:540px){.k3-author--compact{flex-wrap:wrap;gap:5px}.k3-author--compact .k3-author-links{margin-left:0}.k3-continuity{margin-inline:20px}.k3-privacy{margin-inline:16px}}

.k3-root [hidden]{display:none!important}

.k3-toc{margin:12px 0 28px;padding:12px 16px;background:#f4faf5;border:1px solid #d8e7dd;border-radius:12px}.k3-toc summary{font-size:15px;min-height:44px;cursor:pointer;padding:10px 0}.k3-toc nav{display:grid;gap:5px}.k3-toc a{font-size:15px;line-height:1.45;padding:10px 0;min-height:44px;color:#286744}.k3-article-prose h2[id]{scroll-margin-top:80px}
.k3-save{min-width:44px;min-height:44px}.k3-card-compact:has(.k3-save) .k3-meta{padding-right:44px;min-height:40px}
/* The reading surface must not inherit the login demo's fixed-height body. */
html:has(.k3-root){height:auto;overflow-y:auto}
body:has(.k3-root){height:auto;min-height:100dvh;overflow-y:auto}
main:has(> .k3-root){overflow:visible;height:auto;max-height:none}
