/* PATTRI — recursos interativos: glossário, resumo, índice e calculadora (só paleta da marca) */
.gl-term{appearance:none;-webkit-appearance:none;border:0;border-bottom:1.5px dotted var(--blue,#516DF4);border-radius:0;margin:0;font-weight:inherit;line-height:inherit;text-align:inherit;cursor:help;color:inherit;background:none;font:inherit;padding:0;text-decoration:none;transition:background .2s,color .2s}
.gl-term:hover,.gl-term:focus-visible,.gl-term[aria-expanded="true"]{background:rgba(81,109,244,.12);color:#142599;outline:none;border-radius:3px}
.gl-pop{position:absolute;z-index:1200;width:min(320px,calc(100vw - 24px));background:#0B1156;color:#fff;border-radius:14px;padding:1rem 1.1rem;box-shadow:0 18px 40px -12px rgba(11,17,86,.55);font-size:.9rem;line-height:1.5;opacity:0;transform:translateY(6px);pointer-events:none;transition:opacity .18s,transform .18s}
.gl-pop.is-open{opacity:1;transform:none;pointer-events:auto}
.gl-pop strong{display:block;font-family:var(--font-display,inherit);color:#89C8FC;font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;margin-bottom:.35rem}
.gl-pop a{display:inline-block;margin-top:.55rem;color:#89C8FC;font-weight:600;font-size:.82rem}
.gl-pop::after{content:"";position:absolute;left:var(--arrow,24px);top:-6px;width:12px;height:12px;background:#0B1156;transform:rotate(45deg);border-radius:2px}
.gl-pop.is-above::after{top:auto;bottom:-6px}
@media (max-width:640px){.gl-pop{position:fixed;left:12px!important;right:12px;bottom:12px;top:auto!important;width:auto;transform:translateY(12px)}.gl-pop.is-open{transform:none}.gl-pop::after{display:none}}

/* Resumo em 30 segundos */
.post-summary{margin:0 0 1.75rem;border:1px solid rgba(81,109,244,.28);border-radius:16px;background:#F4F7FF;overflow:hidden}
.post-summary summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:.7rem;padding:1rem 1.25rem;font-weight:700;color:#0B1156;font-family:var(--font-display,inherit)}
.post-summary summary::-webkit-details-marker{display:none}
.post-summary summary .ps-badge{background:#142599;color:#fff;border-radius:999px;font-size:.72rem;padding:.2rem .6rem;letter-spacing:.06em;text-transform:uppercase}
.post-summary summary svg{margin-left:auto;width:20px;height:20px;transition:transform .25s}
.post-summary[open] summary svg{transform:rotate(180deg)}
.post-summary ul{margin:0;padding:0 1.25rem 1.2rem 2.4rem;color:#1B1E3C}
.post-summary li{margin:.4rem 0}

/* Índice "Neste artigo" */
.post-toc{background:#fff;border:1px solid rgba(11,17,86,.08);border-radius:18px;padding:1.25rem 1.4rem;margin-bottom:1.25rem;box-shadow:0 20px 40px -32px rgba(11,17,86,.25)}
.post-toc ol{list-style:none;margin:0;padding:0;border-left:2px solid #E4E7F5}
.post-toc a{display:block;padding:.4rem 0 .4rem .85rem;margin-left:-2px;border-left:2px solid transparent;color:#5B6088;font-size:.88rem;line-height:1.35;text-decoration:none;transition:color .2s,border-color .2s}
.post-toc a:hover{color:#142599}
.post-toc a.is-active{color:#142599;font-weight:700;border-left-color:#516DF4}
.post-toc-mobile{display:none}
.post-progress-label{font-size:.72rem;color:#5B6088;margin-top:.8rem}
@media (max-width:960px){.post-toc{display:none}.post-toc-mobile{display:block;margin:0 0 1.5rem;border:1px solid #E4E7F5;border-radius:14px;background:#fff}.post-toc-mobile summary{padding:.9rem 1.1rem;font-weight:700;color:#0B1156;cursor:pointer}.post-toc-mobile ol{margin:0;padding:0 1.1rem 1rem 2.2rem}.post-toc-mobile a{color:#142599;display:block;padding:.3rem 0}}

/* Calculadora */
.calc-pl{margin:1.75rem 0;border-radius:20px;background:linear-gradient(135deg,#0B1156,#142599);color:#fff;padding:1.6rem;box-shadow:0 24px 50px -28px rgba(11,17,86,.6)}
.calc-pl h3{margin:0 0 .3rem;color:#fff;font-size:1.2rem}
.calc-pl .calc-sub{margin:0 0 1.2rem;color:rgba(255,255,255,.78);font-size:.9rem}
.calc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:1.2rem}
.calc-pl label{display:block;font-size:.8rem;font-weight:600;color:#89C8FC;margin-bottom:.35rem}
.calc-pl input[type=number],.calc-pl select{width:100%;box-sizing:border-box;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.08);color:#fff;border-radius:10px;padding:.65rem .8rem;font:inherit}
.calc-pl select option{color:#0B1156}
.calc-pl input:focus,.calc-pl select:focus{outline:2px solid #89C8FC;outline-offset:1px}
.calc-result{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.8rem}
.calc-box{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.14);border-radius:12px;padding:.8rem .9rem}
.calc-box span{display:block;font-size:.74rem;color:#89C8FC;text-transform:uppercase;letter-spacing:.06em}
.calc-box strong{display:block;font-size:1.2rem;margin-top:.15rem;color:#fff}
.calc-fator{margin-top:1rem;padding:.9rem 1rem;border-radius:12px;background:rgba(137,200,252,.14);font-size:.92rem}
.calc-note{margin:.9rem 0 0;font-size:.76rem;color:rgba(255,255,255,.65)}

/* Página /glossario */
.gl-search{width:100%;box-sizing:border-box;margin:0 0 1.5rem;padding:.85rem 1rem;border-radius:12px;border:1px solid #CBD2F0;font:inherit;color:#1B1E3C}
.gl-search:focus{outline:2px solid #516DF4}
.gl-letter{font-family:var(--font-display,inherit);color:#516DF4;font-size:1.4rem;margin:1.8rem 0 .4rem;border-bottom:1px solid #E4E7F5;padding-bottom:.3rem}
.gl-item{padding:.7rem 0}
.gl-item h3{margin:0 0 .2rem;font-size:1.05rem;color:#0B1156}
.gl-item p{margin:0;color:#1B1E3C}

.post-content .calc-pl p,.post-content .calc-pl .calc-fator{color:#fff}
.post-content .calc-pl .calc-sub{color:rgba(255,255,255,.82)}
.post-content .calc-pl .calc-note{color:rgba(255,255,255,.7)}
.post-content .calc-pl strong{color:#fff}
.post-content .calc-pl .calc-box span{color:#89C8FC}
.post-content .calc-pl h3{color:#fff;margin-top:0}
