/* Trilha do Emprego V5 — Design System refinements */
:root{--v5-accent:#29dafa;--v5-violet:#8a6bff;--v5-border:#2e506f}
html{scroll-behavior:smooth;scroll-padding-top:90px}
body{overflow-x:hidden}
button,input,textarea,select{font:inherit}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #42e7ff;outline-offset:3px}
:focus-visible{scroll-margin-top:110px}
.premium-card,.premium-tool,.quick-start-card,.aside-panel{box-shadow:0 12px 28px #0002}
.premium-card:hover,.premium-tool:hover,.quick-start-card:hover{box-shadow:0 20px 32px #0005}
.premium-tool-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.portal-hero{background:radial-gradient(ellipse at 80% 10%,#172653 0%,transparent 46%),radial-gradient(ellipse at 23% 40%,#12395a 0%,transparent 45%),#061326}
.hero-screen{isolation:isolate;min-height:300px}.hero-screen img{height:100%;min-height:300px;object-fit:cover}
.hero-panel{right:16px;top:16px;width:166px;padding:9px;gap:7px;background:linear-gradient(135deg,#0a1f3cd9,#122f51d0);box-shadow:0 12px 24px #0017}
.hero-panel-item{padding:8px 11px;background:#112a47d4;backdrop-filter:blur(12px)}
.hero-note{right:17px;top:auto;bottom:10px;font-size:.85rem;border-radius:9px;background:#061a31c7;padding:10px 14px;max-width:205px}
.portal-perks span{display:inline-flex;align-items:center;gap:7px}
.portalsearch{display:flex;gap:9px;max-width:550px;margin-top:22px;padding:6px;border:1px solid #46688a;background:#edf8ff;border-radius:13px;box-shadow:0 10px 28px #0003}.portalsearch label{display:none}.portalsearch input{flex:1;min-width:0;padding:11px 12px;border:0;background:transparent;color:#12253a;outline:none}.portalsearch input::placeholder{color:#56728e}.portalsearch button{border:0;border-radius:9px;background:linear-gradient(110deg,#2ce0fc,#13a2ed);color:#04203c;font-weight:850;padding:10px 17px;cursor:pointer}
.hero-quicklinks{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:12px;color:#9bbcd9;font-size:.74rem}.hero-quicklinks a{border:1px solid #3c5d7d;background:#0c2944;border-radius:50px;padding:5px 10px;color:#c4e9ff}.hero-quicklinks a:hover{border-color:#3de5ff}
.favorites-bar{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;background:linear-gradient(100deg,#102b46,#1a264e);padding:17px 20px;border:1px solid #2b5476;border-radius:13px;margin:24px 0}
.favorites-bar p{color:#b4c9de;font-size:.84rem;margin:3px 0 0}.favorites-bar h2{font-size:1.02rem;margin:0}
.favorites-link,.mini-action{display:inline-flex;justify-content:center;align-items:center;gap:8px;border:1px solid #3c87af;border-radius:9px;padding:9px 13px;background:#0e344f;color:#d9f9ff;font-size:.83rem;font-weight:750;text-decoration:none;cursor:pointer}
.favorites-link:hover,.mini-action:hover{border-color:#36e0ff;background:#114464;color:white}
.mini-action[aria-pressed="true"],.mini-action.saved{background:#244873;border-color:#49d5ff}
.story-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:12px 0 21px}.story-actions small{color:#a6bad0}
.reading-track{height:3px;position:fixed;left:0;right:0;top:0;z-index:300;background:transparent;pointer-events:none}.reading-fill{height:100%;width:0;background:linear-gradient(90deg,#28e5ff,#8b6eff);box-shadow:0 0 10px #22dafe}
.story-text{line-height:1.76}.story-text p{margin:0 0 18px}.story-text h2{border-bottom:1px solid #243d58;padding-bottom:11px}
.story-cover{box-shadow:0 17px 35px #0004}.story-aside .aside-panel:hover{border-color:#47708d}.story-aside a.toc-active{color:#31dfff!important;font-weight:800}
.article-end{margin-top:28px!important}
.article-added-tools{margin:24px 0;padding:22px;background:linear-gradient(130deg,#0d3048,#151e40);border:1px solid #2b6582;border-radius:13px}.article-added-tools h3{font-size:1.08rem;margin:0 0 10px}.article-added-tools p{color:#b6ccdf;font-size:.87rem;margin:0 0 12px}
.tool-v5-hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(220px,.75fr);align-items:center;gap:32px;margin:34px 0 26px;border-radius:22px;padding:30px;background:radial-gradient(circle at 100% 30%,#2b2d7b77,transparent 45%),linear-gradient(135deg,#102e4d,#0a1b35);border:1px solid #325679}
.tool-v5-hero h1{font-size:clamp(2.05rem,3.4vw,3.15rem);margin:12px 0}.tool-v5-hero p{max-width:620px;color:#b8d1e5;line-height:1.65}.tool-v5-decoration{min-height:190px;border:1px solid #355c7f;border-radius:18px;padding:20px;background:linear-gradient(160deg,#1c4163,#171c42);display:flex;flex-direction:column;justify-content:space-between;box-shadow:inset 0 0 35px #41dcf912}.tool-v5-decoration span{color:#3fe5ff;font-size:2.5rem}.tool-v5-decoration strong{font-size:1.1rem}.tool-v5-decoration small{color:#bfd7e7;line-height:1.4}
.message-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:23px;align-items:start}.message-panel{background:#0b223b;border:1px solid #30516f;border-radius:18px;padding:24px;box-shadow:0 18px 35px #0002}.message-panel h2{font-size:1.25rem;margin:0 0 16px}.message-panel label{display:block;margin:13px 0 7px;color:#d9e9f8;font-size:.86rem;font-weight:750}.message-panel input,.message-panel textarea,.message-panel select{display:block;width:100%;padding:12px 13px;border:1px solid #45617b;border-radius:10px;color:#f2f8ff;background:#081a30}.message-panel textarea{min-height:112px;resize:vertical}.message-panel button{padding:12px 15px;border-radius:9px;cursor:pointer;background:#22d9f5;border:0;color:#092033;font-weight:850}.message-output{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;color:#e6efff;min-height:240px;background:#081a30;border:1px solid #254c6b;border-radius:12px;padding:17px}.message-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.message-panel .secondary-action{background:#153455;border:1px solid #3c688a;color:#e4f5ff}.message-status{color:#5ef2cb;margin-top:12px;min-height:22px;font-size:.84rem}.v5-disclaimer{font-size:.78rem;line-height:1.6;color:#a7c1d8;margin-top:14px}
.progress-tip{font-size:.79rem;color:#97bdd6}
.is-hidden{display:none!important}
@media(max-width:1190px){.premium-tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1050px){.hero-screen img{aspect-ratio:16/10}.hero-panel{width:148px}.hero-note{display:none}}
@media(max-width:850px){.tool-v5-hero,.message-grid{grid-template-columns:1fr}.tool-v5-decoration{min-height:120px}.hero-screen{min-height:0}.hero-screen img{min-height:0}}
@media(max-width:650px){.portal-hero h1{font-size:clamp(2.05rem,8vw,2.68rem)}.portal-hero .hero-actions{display:grid;gap:10px}.hero-visual{margin-top:4px}.hero-screen img{height:auto;aspect-ratio:16/10}.hero-panel{width:138px;top:9px;right:8px}.hero-panel-item{padding:6px 7px}.hero-panel-item b{font-size:.75rem}.hero-panel-item small{font-size:.61rem}.mini-stat-grid{grid-template-columns:1fr 1fr}.mini-stat{padding:11px}.quick-start-grid,.premium-grid,.premium-tool-grid{grid-template-columns:1fr!important;gap:13px}.premium-card .photo{aspect-ratio:16/9}.premium-card h3{font-size:1.08rem}.premium-copy{padding:17px}.premium-card p{font-size:.85rem}.premium-copy .label-cat{font-size:.69rem}.premium-card .card-read{font-size:.86rem}.quick-start-card{min-height:0;padding:19px}.quick-start-card strong{font-size:1rem}.quick-start-card small{font-size:.84rem}.premium-tool{min-height:92px;padding:17px}.premium-tool strong{font-size:.95rem}.premium-tool small{font-size:.82rem}.favorites-bar{align-items:stretch}.favorites-link{width:100%}.message-panel{padding:18px}.tool-v5-hero{padding:21px}.tool-v5-decoration{display:none}.portal-section .section-head p{line-height:1.5}.story-text{font-size:1rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.premium-card,.premium-tool,.quick-start-card,.premium-card .photo img{transition:none}}
/* Evita quebra horizontal com URLs longas e títulos nos artigos */
.story-layout>article,.story-text,.story-head{min-width:0;max-width:100%}
.story-text a,.story-text li,.story-text p,.story-aside a{overflow-wrap:anywhere}
@media(max-width:850px){.hero-grid{grid-template-columns:minmax(0,1fr)}.hero-copy,.hero-visual{min-width:0;max-width:100%}}
