/* RP Academy 10.7.3: adição visual incremental, sem apagar CSS preexistente */
:root{color-scheme:light}
.rp-newbrand{display:flex!important;align-items:center;gap:9px;min-width:0;text-decoration:none!important;padding:14px 8px!important}
.rp-newbrand .rp-brand-icon{display:block;width:65px;max-height:65px;object-fit:contain;flex:none}
.rp-newbrand .rp-brand-details{display:flex;flex-direction:column;min-width:0;gap:1px;line-height:1.2}
.rp-newbrand strong{font-size:19px;letter-spacing:-.035em;white-space:nowrap;color:#fff}
.rp-newbrand small{font-size:9px;letter-spacing:.085em;color:#eec36a;white-space:normal}
.rp-logo-top{display:flex;align-items:center;gap:5px;text-decoration:none;min-width:112px;color:#0c343c}
.rp-logo-top img{width:46px;height:40px;object-fit:contain}
.rp-logo-top span{display:flex;flex-direction:column;line-height:1.15;font-size:12px}
.rp-logo-top strong{font-weight:850}
.rp-logo-top small{font-size:9px;white-space:nowrap;color:#6c777b}
.topbar .rp-top-kicker{font-size:9px;letter-spacing:.075em;margin-left:8px;flex:1}
.rp-top-nav{display:flex;align-items:center;gap:4px;flex-shrink:0}
.rp-top-nav button,.rp-top-nav a{cursor:pointer;display:inline-flex;align-items:center;min-height:34px;padding:5px 9px;border:1px solid #d4e4e1;border-radius:9px;background:#fff;color:#12434b;font-size:11px;font-weight:750;text-decoration:none;white-space:nowrap}
.rp-top-nav button:disabled{opacity:.5;cursor:default}
.rp-theme-button{font-size:14px;display:inline-flex;align-items:center;gap:4px;min-height:40px!important;white-space:nowrap}
.rp-theme-button span{font-size:10px;font-weight:750}
.mobile-menu .rp-menu-toggle{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:0;min-width:46px;min-height:45px;font-size:18px}
.rp-menu-toggle small{font-size:9px;letter-spacing:.06em;line-height:1.15;font-weight:850}
.rp-hero-logo{max-width:min(410px,100%);height:auto;max-height:122px;object-fit:contain;display:block;margin:-24px 0 20px -13px}
.hero h1{font-size:clamp(29px,3.2vw,52px)}
.rp-about-top{min-height:116px;justify-content:flex-start;padding:18px 25px}
.rp-about-logo{display:block;max-width:min(490px,95%);max-height:115px;width:auto;height:auto;object-fit:contain}
.rp-about-modal .developer-content h2{margin:0 0 12px;color:#174950;font-size:26px}
.rp-blog-highlight{background:linear-gradient(112deg,#113c44,#1b6570);color:#fff;border-radius:16px;padding:20px 24px;margin-bottom:20px;box-shadow:0 6px 18px #113a4411}
.rp-blog-highlight strong{font-size:21px;color:#f1c368}
.rp-blog-highlight p{color:#fff;margin:6px 0 15px}
.rpblog-wrap{width:100%;max-width:1180px;margin:0 auto;color:#163942;min-width:0}
.rpblog-hero{border-radius:23px;background:linear-gradient(125deg,#0b343f,#195861);padding:34px;color:#fff;margin-bottom:22px}
.rpblog-hero h1{font-size:clamp(28px,4vw,44px);line-height:1.16;color:#fff;margin:7px 0}
.rpblog-hero p{max-width:760px;margin:0;color:#deeeec;font-size:14px;line-height:1.7}
.rpblog-hero .eyebrow{color:#f3c772}
.rpblog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch}
.rpblog-card{overflow:hidden;background:#fff;border:1px solid #d8e4e2;border-radius:17px;box-shadow:0 5px 20px #133b4510;min-width:0;display:flex;flex-direction:column}
.rpblog-cover{display:block;max-width:100%;width:100%;height:230px;object-fit:cover}
.rpblog-card-body{padding:22px;display:flex;flex:1;flex-direction:column;align-items:start;gap:8px;min-width:0}
.rpblog-card small,.rpblog-article header small{color:#91712c;font-size:11px;font-weight:850}
.rpblog-card h2{font-size:22px;margin:0;color:#133b42;overflow-wrap:anywhere;line-height:1.2}
.rpblog-card p{font-size:13px;color:#4d6870;line-height:1.75;overflow-wrap:anywhere;flex:1}
.rpblog-empty{background:#fff;border:1px dashed #d3e0dd;padding:30px;border-radius:18px;grid-column:1/-1}
.rpblog-subscribe{background:#ecf5f2;border:1px solid #d1e4df;padding:16px 20px;border-radius:14px;margin-bottom:19px;color:#214a50}
.rpblog-subscribe-inner{display:flex;align-items:center;flex-wrap:wrap;gap:13px}
.rpblog-subscribe-inner>span{display:flex;flex:1;min-width:160px;flex-direction:column}
.rpblog-subscribe small,.rpblog-muted{color:#648186;font-size:12px}
.rpblog-opt{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:750}
.rpblog-return{display:inline-block;margin:0 0 18px;color:#1c6671;font-weight:750;text-decoration:underline}
.rpblog-article{background:#fff;border:1px solid #d6e5e1;border-radius:22px;padding:clamp(20px,4vw,45px);overflow:hidden}
.rpblog-article>header h1{font-size:clamp(26px,4vw,46px);line-height:1.2;color:#123b44;margin:8px 0 12px}
.rpblog-article header p{font-size:16px;line-height:1.7;color:#54717a}
.rpblog-featured{display:block;max-width:100%;width:100%;height:auto;max-height:480px;object-fit:contain;margin:22px 0;border-radius:13px}
.rpblog-article-body{font-size:15px;line-height:1.86;color:#2d4d55;overflow-wrap:anywhere;word-break:normal}
.rpblog-article-body h1{font-size:26px}.rpblog-article-body h2{font-size:22px}.rpblog-article-body h3{font-size:18px}
.rpblog-article-body h1,.rpblog-article-body h2,.rpblog-article-body h3{color:#16434b;margin:21px 0 9px;line-height:1.3}
.rpblog-article-body p{margin:0 0 17px;text-align:justify;hyphens:auto}
.rpblog-article-body ul{padding-left:24px;margin:12px 0 20px}
.rpblog-article-body a{color:#16717a;text-decoration:underline;overflow-wrap:anywhere}
.rpblog-share{border-top:1px solid #dbe9e5;padding-top:20px;margin-top:34px}
.rpblog-share h2{font-size:18px}
.rpblog-actions{display:flex;flex-wrap:wrap;gap:9px;margin:11px 0 17px}
.rpblog-share button,.rpblog-tools button{cursor:pointer;background:#e8f1ee;border:1px solid #c5ddd5;color:#174750;border-radius:10px;padding:9px 12px;font-size:12px;font-weight:750}
.rpblog-admin-section,.rpblog-editor{background:#fff;border:1px solid #d9e7e3;border-radius:19px;padding:clamp(16px,3vw,27px);margin:18px 0}
.rpblog-admin-section h2,.rpblog-editor h2{margin:0 0 12px;color:#183d46}
.rpblog-admin-line,.rpblog-mail-row{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:14px 0;border-top:1px solid #e3eeeb}
.rpblog-admin-line>div{min-width:200px;flex:1;display:flex;flex-direction:column;overflow-wrap:anywhere}
.rpblog-admin-line small{color:#587279}
.rpblog-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.rpblog-fields label:first-child,.rpblog-fields label:nth-child(2){grid-column:1/-1}
.rpblog-editor label{display:flex;flex-direction:column;gap:7px;font-weight:750;color:#2f555d;margin-bottom:14px;font-size:13px;min-width:0}
.rpblog-editor input,.rpblog-editor textarea{min-width:0;width:100%;box-sizing:border-box;max-width:100%;font:inherit;font-size:14px;border:1px solid #c8d9d6;background:#fff;color:#173e46;padding:11px 12px;border-radius:9px;resize:vertical}
.rpblog-editor input[type=file]{font-size:12px}
.rpblog-tools{display:flex;gap:6px;flex-wrap:wrap}
.rpblog-preview{border:1px solid #cbdcd8;border-radius:14px;background:#fbfdfc;padding:22px;margin-top:20px;overflow-wrap:anywhere}
.rpblog-error{border-left:4px solid #bd655e;background:#fff0ed;padding:15px;color:#973c35}
/* Tema noturno: aplicado ao fundo e componentes de leitura, preservando o contraste de botões e banners */
html[data-study-theme=dark]{color-scheme:dark;--bg:#0c1e25;--white:#152d35;--ink:#e8f3f2;--muted:#b5cbd0;--line:#34515b;--shadow:0 10px 30px #0004;--tr-track:#294a52}
html[data-study-theme=dark] body,html[data-study-theme=dark] .main-area{background:#0c1e25;color:#e3f1ef}
html[data-study-theme=dark] .topbar{background:#152c35!important;color:#eef6f3;border-color:#35545d!important}
html[data-study-theme=dark] .topbar a,html[data-study-theme=dark] .topbar button{color:#eaf5f3}
html[data-study-theme=dark] .rp-top-nav :is(button,a),html[data-study-theme=dark] .rp-theme-button,html[data-study-theme=dark] .rp1072-help-link,html[data-study-theme=dark] .rp62-profile-button{background:#24434b!important;border-color:#41616b!important;color:#fff!important}
html[data-study-theme=dark] .rp-logo-top small{color:#b8d3d5}
html[data-study-theme=dark] .card,html[data-study-theme=dark] .v5-panel,html[data-study-theme=dark] .atlas-panel,html[data-study-theme=dark] .lesson-body,html[data-study-theme=dark] .lesson-body.redesigned,html[data-study-theme=dark] .rpblog-card,html[data-study-theme=dark] .rpblog-article,html[data-study-theme=dark] .rpblog-admin-section,html[data-study-theme=dark] .rpblog-editor,html[data-study-theme=dark] .rpblog-empty,html[data-study-theme=dark] .rpblog-preview,html[data-study-theme=dark] .rpblog-subscribe,html[data-study-theme=dark] .rp1072-student,html[data-study-theme=dark] .rp1072-message,html[data-study-theme=dark] .atlas-card,html[data-study-theme=dark] .v5-news,html[data-study-theme=dark] .v5-resource,html[data-study-theme=dark] .v5-cert,html[data-study-theme=dark] .learning-chart,html[data-study-theme=dark] .mindmap-area,html[data-study-theme=dark] .concept-workbench,html[data-study-theme=dark] .diagram-detail,html[data-study-theme=dark] .module-card,html[data-study-theme=dark] .tr-card,html[data-study-theme=dark] .rp62-meta,html[data-study-theme=dark] .rp62-meta-detail{background:#17323b!important;color:#e8f3f2!important;border-color:#3a5d65!important}
html[data-study-theme=dark] :is(.card,.v5-panel,.atlas-panel,.lesson-body,.rpblog-wrap,.rp62-meta,.rpblog-article,.rpblog-admin-section,.rpblog-editor,.developer-content,.rp1072-page) :is(h1,h2,h3,h4,strong,b,label,p,small,span,li,summary){color:inherit}
html[data-study-theme=dark] :is(.card,.v5-panel,.atlas-panel,.lesson-body,.rpblog-wrap,.rp62-meta,.rpblog-article,.rpblog-admin-section,.rpblog-editor,.developer-content,.rp1072-page) a:not(.btn){color:#a4e5d9}
html[data-study-theme=dark] :is(.rpblog-article-body,.rpblog-card h2,.rpblog-article-body h2,.rpblog-article-body h3,.rpblog-article header h1,.rpblog-editor label,.rpblog-admin-section h2,.rpblog-editor h2,.rpblog-card p,.rpblog-article p,.rpblog-subscribe p){color:#e7f2ef!important}
html[data-study-theme=dark] :is(.rpblog-share button,.rpblog-tools button,.rpblog-editor input,.rpblog-editor textarea,.rp1072-form input,.rp1072-form textarea,.rp1072-form select){background:#203f48!important;color:#f1f6f5!important;border-color:#51747e!important}
html[data-study-theme=dark] .developer-modal{background:#17323b;color:#e8f3f2}
html[data-study-theme=dark] .developer-content p,html[data-study-theme=dark] .developer-content h2,html[data-study-theme=dark] .developer-content h3{color:#e8f3f2}
html[data-study-theme=dark] .v5-page .v5-hero,html[data-study-theme=dark] .rpblog-hero{background:linear-gradient(120deg,#0b353e,#1d5963)!important;color:white!important}
html[data-study-theme=dark] :is(input,textarea,select):focus{outline:2px solid #f2c565;outline-offset:1px}
html[data-study-theme=dark] .modal,html[data-study-theme=dark] .modal-cover .modal{background:#17323b;color:#e8f3f2}
html[data-study-theme=dark] .modal :is(p,small,strong,span,div){color:inherit}
html[data-study-theme=dark] .btn.gold,html[data-study-theme=dark] .btn.gold :is(span,b){color:#142d33!important}
@media(min-width:851px){.topbar .rp-top-kicker{display:none}.rp-logo-top{flex:1}}
@media(max-width:1120px){.topbar{gap:8px}.rp-logo-top small{display:none}.rp-logo-top{min-width:42px}.rp-top-nav a{display:none}}
@media(max-width:850px){.rp-newbrand{padding:13px 6px!important}.rp-logo-top{display:none}.topbar{gap:6px}.rp-menu-toggle{min-width:40px}.topbar .top-right{gap:6px}.rp-top-nav button{padding:6px 8px}.rp-theme-button span{display:none}.rp-hero-logo{max-width:330px}}
@media(max-width:620px){.topbar .tag-online{display:none!important}.rp-top-nav a{display:none}.topbar{padding-inline:8px!important}.rp1072-help-link{font-size:11px;padding:6px!important}.topbar .rp62-profile-button{padding:4px 7px}.topbar .icon-button{min-width:30px}.rpblog-grid{grid-template-columns:1fr}.rpblog-hero{padding:24px 18px}.rpblog-card-body{padding:18px}.rpblog-fields{grid-template-columns:1fr}.rpblog-fields label:first-child,.rpblog-fields label:nth-child(2){grid-column:1}.rpblog-article-body p{text-align:left;hyphens:none}.rpblog-article{padding:18px}}
@media(max-width:385px){.topbar #fontBtn{display:none}.topbar .rp-theme-button{min-width:30px}.rp-top-nav button{font-size:10px}.topbar .rp62-profile-button span:last-child{display:none}}

.rpblog-hero p,.rpblog-card p,.rpblog-subscribe p{text-align:left!important;hyphens:none!important;word-spacing:normal!important}

.nav-link[hidden], #rpb-admin-nav[hidden]{display:none!important}
