/* Escopo isolado: os mapas e a introdução preservam seus estilos. */
body.chemistry318-active{background:#0b1b1b;color:#eaf0e3}body.chemistry318-active #chemistry-study{padding:0!important;max-width:none!important;overflow:visible!important}.c318-page{--acid:#d7ff00;min-height:100vh;background:linear-gradient(90deg,#071719e8,#08191cb8),var(--c318-background) center/cover fixed;padding:0 clamp(18px,4vw,72px) 70px}.c318-page *{box-sizing:border-box}.c318-page [hidden]{display:none!important}.c318-top{display:flex;justify-content:space-between;align-items:center;gap:18px;min-height:85px;max-width:1600px;margin:auto}.c318-top a{color:#e5efca;text-decoration:none;display:inline-flex;align-items:center;gap:9px;padding:12px 0;background:transparent;border:0}.c318-top a:hover{color:var(--acid)}.c318-brand{font-weight:750}.c318-brand svg{color:var(--acid)}.c318-heading{max-width:1400px;margin:36px auto 38px}.c318-heading>span{color:#d7ff00;font-size:.86rem}.c318-heading h1{font-size:clamp(2rem,3.3vw,3.6rem);line-height:1.13;max-width:1150px;color:#f5f4db;margin:14px 0 0;font-family:Georgia,serif;outline:none}.c318-desk{max-width:1400px;margin:auto}.c318-stations{display:flex;gap:8px;padding-bottom:15px;border-bottom:1px solid #c6e1ca55;margin-bottom:28px;flex-wrap:wrap}.c318-page button,.c318-periodic button,.c318-table-launch{font:650 .92rem system-ui;cursor:pointer;border:1px solid #a3bc9a66;border-radius:7px;padding:12px 18px;background:#102d2f;color:#eff5d9;min-height:44px}.c318-page button:hover,.c318-periodic button:hover{border-color:#d7ff00;color:#eaff90}.c318-page button:disabled{opacity:.45;cursor:default}.c318-page button:focus-visible,.c318-periodic :focus-visible,.c318-table-launch:focus-visible{outline:3px solid #d7ff00;outline-offset:3px}.c318-stations button{border:none;background:transparent;border-radius:0;border-bottom:3px solid transparent;min-width:145px}.c318-stations button[aria-pressed=true]{border-bottom-color:#d7ff00;color:#e9ff92;background:#d7ff0010}.c318-reading{display:grid;grid-template-columns:minmax(210px,270px) minmax(0,1fr);gap:36px;align-items:start}.c318-topics{display:flex;flex-direction:column;gap:12px}.c318-topics button{text-align:left;background:#102d2fa8;font-weight:550}.c318-topics button[aria-current=step]{border-left:4px solid #d7ff00;color:#efff9f}.c318-document{background:linear-gradient(115deg,#f3f0de,#e2e1cd);color:#233b3b;padding:clamp(24px,3vw,52px);border-radius:3px 14px 14px 3px;box-shadow:0 14px 50px #0005;min-width:0;min-height:450px}.c318-document h2{font-family:Georgia,serif;font-size:clamp(1.7rem,2.5vw,2.5rem);line-height:1.2;margin:0 0 28px;color:#183837}.c318-document p{font-size:1.08rem;line-height:1.9;max-width:78ch;margin:0 0 22px}.c318-document h3{color:#213c37}.c318-reading-nav{display:flex;justify-content:space-between;gap:15px;margin-top:35px;flex-wrap:wrap}.c318-document button{background:#153b35;color:#f1f4db}.c318-formula{padding:22px 0 36px;border-bottom:1px solid #677d6944}.c318-formula h3{font-size:1.4rem}.c318-math{padding:24px 20px;margin:15px 0 25px;background:#fff8;overflow:auto;border-left:3px solid #7e9d29;font-size:1.65rem;color:#183837}.c318-math math{font-family:math;font-size:1.3em;margin:auto;max-width:none}.c318-investigation,.c318-workspace>[data-panel=quiz]{background:#071d23e8;border:1px solid #86aaa655;border-radius:15px;padding:clamp(20px,3vw,38px)}.c318-investigation h2,.c318-workspace>[data-panel=quiz] h2{font:700 clamp(1.7rem,2.5vw,2.5rem) Georgia,serif;color:#f3efcf;margin:0 0 18px}.c318-investigation header p{line-height:1.8;max-width:90ch;color:#d6e4dd}.c318-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:22px;margin:30px 0}.c318-controls label,.c318-table-tools label{display:flex;flex-direction:column;gap:10px;font-weight:650;min-width:0}.c318-controls output{color:#d7ff00;font-variant-numeric:tabular-nums}.c318-page input[type=range]{accent-color:#d7ff00;min-height:24px;width:100%}.c318-page select,.c318-periodic select,.c318-periodic input{font:inherit;color:#eff5df;background:#102b33;border:1px solid #71928f;padding:12px;border-radius:6px;max-width:100%;min-height:44px}.c318-play,.c318-camera{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:22px 0}.c318-play [data-play]{background:#d7ff00;color:#162718;border-color:#d7ff00}.c318-play label{margin-left:auto;display:flex;align-items:center;gap:12px}.c318-camera span{font-size:.83rem;color:#bfd1cd}.c318-scene{width:100%;aspect-ratio:1000/560;overflow:hidden;background:#0a2027;border-radius:9px;border:1px solid #5e817b;isolation:isolate}.c318-scene canvas{display:block;width:100%;height:100%;touch-action:pan-y}.c318-camera+.c318-scene canvas{touch-action:none}.c318-readout{margin-top:20px;padding:20px 24px;border-left:3px solid #d7ff00;background:#193630;line-height:1.8;min-height:95px;font-variant-numeric:tabular-nums}.c318-model-note{font-size:.85rem;color:#baccc7;line-height:1.75;margin:20px 0 0}.c318-scrubber{display:block;margin-top:25px}.c318-scrubber output{float:right;color:#d7ff00}.c318-atom-picks{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}.c318-atom-picks:empty{display:none}.c318-atom-picks button{font-size:.8rem;padding:8px 14px}.c318-workspace fieldset{border:1px solid #a1bca44d;padding:24px;margin:25px 0}.c318-workspace legend{font-size:1.12rem;line-height:1.7;padding:0 10px}.c318-workspace fieldset label{display:flex;gap:12px;padding:12px;line-height:1.7;align-items:baseline}.c318-workspace input[type=radio]{accent-color:#d7ff00}.c318-correct,.c318-retry{padding:16px;border-left:3px solid #d7ff00;background:#203a30;line-height:1.7}.c318-retry{border-color:#f0c590}.c318-references{max-width:1400px;margin:45px auto;color:#d7e6d5;line-height:1.8}.c318-references summary{cursor:pointer}.c318-references a,.c318-footer a{color:#e1f2ab}.c318-footer{max-width:1400px;margin:50px auto 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:25px;border-top:1px solid #b5cca744;padding-top:30px;align-items:start}.c318-footer a{text-decoration:none;font-weight:650;line-height:1.6}.c318-footer span{display:block;font-weight:400;color:#cad8ce;font-size:.85rem;margin-top:12px}.c318-footer button{background:transparent;border:0;padding:0;text-align:right}.c318-table-launch{position:fixed;bottom:24px;right:24px;z-index:1200;background:#14362c;border-color:#d7ff00;color:#e7ff8c;box-shadow:0 5px 25px #0008}.c318-periodic{color:#e9f0df;background:#0b252c;border:1px solid #94b19c;border-radius:14px;width:min(1440px,96vw);max-height:94dvh;padding:24px;box-sizing:border-box;overflow:auto}.c318-periodic::backdrop{background:#000b;backdrop-filter:blur(5px)}.c318-dialog-head{display:flex;justify-content:space-between;gap:15px;align-items:center;border-bottom:1px solid #63847d;padding-bottom:15px}.c318-dialog-head h2{margin:0;color:#f1f4d7}.c318-table-tools{display:flex;flex-wrap:wrap;gap:20px;align-items:end;margin:24px 0}.c318-table-tools label{flex:1}.c318-table-hint{font-size:.85rem;line-height:1.7;color:#c9d7ce}.c318-table-scroll{overflow-x:auto;overscroll-behavior:contain;border:1px solid #6a8e7544;padding:12px}.c318-grid{display:grid;grid-template-columns:repeat(18,minmax(42px,1fr));grid-template-rows:25px repeat(7,minmax(64px,auto)) 75px 75px;gap:4px;min-width:960px}.c318-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:3px!important;padding:4px!important;background:#1e4246!important;border-color:#5a8279!important;line-height:1.2;min-width:0;min-height:60px!important}.c318-cell small{font-size:.64rem;align-self:flex-start}.c318-cell strong{font-size:1.1rem}.c318-cell span{font-size:.49rem;font-weight:400}.c318-cell[data-block="Nonmetal"],.c318-cell[data-block="Halogen"]{background:#375434!important}.c318-cell[data-block="Noble gas"]{background:#37425e!important}.c318-cell[data-block="Alkali metal"],.c318-cell[data-block="Alkaline earth metal"]{background:#5e4930!important}.c318-cell[data-block="Lanthanide"],.c318-cell[data-block="Actinide"]{background:#4d3f5b!important}.c318-cell[aria-pressed=true]{outline:2px solid #d7ff00;outline-offset:-2px}.c318-cell.c318-dim{opacity:.18}.c318-group{text-align:center;color:#cae3be;font-size:.8rem}.c318-fblock,.c318-flegend{align-self:center;text-align:center;font-size:.75rem;color:#c0d1bd}.c318-fiches{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:25px;margin-top:20px;scroll-margin-top:15px}.c318-element{padding:25px;background:#14343b;border:1px solid #5c817c;border-radius:10px}.c318-element header{display:flex;gap:20px;align-items:center}.c318-symbol{font-size:3.3rem;color:#d7ff00}.c318-element h3{margin:0;font-size:1.65rem}.c318-element header p{font-size:.85rem;line-height:1.7}.c318-element dl>div{display:grid;grid-template-columns:minmax(130px,1fr) minmax(130px,1fr);gap:20px;border-top:1px solid #6a8e7555;padding:14px 0;line-height:1.65}.c318-element dt{color:#bdd2c7;font-size:.85rem}.c318-element dd{margin:0;overflow-wrap:anywhere}.c318-element p{line-height:1.8}.c318-periodic a{color:#e2f8a0}.c318-table-sources{line-height:1.8;margin-top:25px;font-size:.85rem}.c318-table-sources summary{cursor:pointer}@media(max-width:800px){.c318-reading{grid-template-columns:1fr;gap:20px}.c318-topics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.c318-topics button{font-size:.85rem}.c318-footer{grid-template-columns:repeat(2,minmax(0,1fr))}.c318-heading{margin-top:20px}.c318-top{min-height:75px}.c318-page{background-attachment:scroll}.c318-table-launch{right:14px;bottom:14px;font-size:.8rem;padding:10px 14px}.c318-periodic{padding:16px}.c318-element{padding:18px}.c318-play label{margin-left:0}}@media(max-width:500px){.c318-page{padding-left:14px;padding-right:14px}.c318-top{gap:10px;font-size:.8rem}.c318-brand{font-size:0!important;gap:0!important}.c318-brand svg{width:30px}.c318-stations{gap:0}.c318-stations button{min-width:0;flex:1;padding:12px 8px}.c318-document{padding:25px 22px}.c318-document p{font-size:1rem;line-height:1.85}.c318-investigation{padding:18px 12px}.c318-readout{padding:16px;font-size:.94rem}.c318-camera span{width:100%}.c318-camera button,.c318-play button{font-size:.78rem;padding:10px 12px}.c318-element dl>div{grid-template-columns:1fr;gap:3px}.c318-dialog-head h2{font-size:1.4rem}.c318-table-tools{gap:12px}.c318-table-tools label{flex-basis:100%}.c318-topics{grid-template-columns:1fr}.c318-math{font-size:1.25rem;padding:20px 10px}.c318-footer{padding-bottom:45px}.c318-scene{aspect-ratio:1000/560}.c318-model-note{font-size:.8rem}}@media(prefers-reduced-motion:reduce){.c318-page *,.c318-periodic *{scroll-behavior:auto!important;transition:none!important}}
body.portal-theme.chemistry318-active .shell{width:100%;max-width:none;padding:0;margin:0}body.chemistry318-active .topbar,body.chemistry318-active .shell>footer{display:none}#chemistry-study .c318-stations button{border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;padding:14px 22px}#chemistry-study .c318-stations button[aria-pressed=true]{border-bottom-color:#d7ff00;color:#ecff9f;background:#d7ff0010}#chemistry-study .c318-topics button{background:#102d2fb8;text-align:left}#chemistry-study .c318-topics button[aria-current=step]{border-left:4px solid #d7ff00}#chemistry-study .c318-document{color:#233b3b}#chemistry-study .c318-document p{font-size:1.08rem;line-height:1.9;margin-bottom:24px}#chemistry-study .c318-document h2{font-size:clamp(1.7rem,2.5vw,2.5rem);margin-bottom:28px}#chemistry-study .c318-heading h1{font-size:clamp(2rem,3.3vw,3.6rem);margin:15px 0 0}#chemistry-study .c318-play [data-play]{background:#d7ff00;color:#162718;border-color:#d7ff00}#chemistry-study .c318-footer button{background:transparent;border:0}#chemistry-study .c318-top a:hover{color:#d7ff00;text-decoration:none}@media(max-width:500px){#chemistry-study .c318-stations button{padding:12px 8px}#chemistry-study .c318-document p{font-size:1rem}}
.c318-case-answer{margin:30px 0;padding:22px;border:1px solid #6b836750;background:#fff5}.c318-case-answer summary{font-weight:700;cursor:pointer;line-height:1.6}.c318-case-answer p{margin-top:25px!important}
.c318-dialog-head{position:sticky;top:-24px;background:#0b252c;z-index:3;padding-top:12px}.c318-scene:focus-within{outline:2px solid #d7ff00;outline-offset:3px}@media(max-width:500px){.c318-dialog-head{top:-16px}}
@media(max-width:500px){#chemistry-study .c318-math math{font-size:.9em}}
