/* Rede Lendários · Academy + Comunidade · tema compartilhado 2.2
 * Escopo: todas as páginas autenticadas da Academy; não modifica o Dash.
 * Tema noturno é o padrão. As mídias e suas sobreposições continuam escuras
 * inclusive no modo claro para preservar legibilidade e cores originais.
 */
.v2-theme-area{padding:7px 0 14px;border-bottom:1px solid #30291f;margin-bottom:10px}
.v2-theme-toggle{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;padding:8px 12px;background:#1d1a14;color:#f3e8d0;border:1px solid #3f3525;border-radius:11px;font-size:12px;font-weight:750;cursor:pointer;text-align:left;transition:background .18s ease,border-color .18s ease}
.v2-theme-toggle:hover{background:#302719;border-color:#a98742}
.v2-theme-toggle-icon{display:grid;place-items:center;font-size:20px;width:25px;flex:0 0 25px;color:#f1d886}
.v2-theme-toggle-indicator{margin-left:auto;width:33px;height:19px;border:1px solid #74603b;background:#443722;border-radius:99px;position:relative}
.v2-theme-toggle-indicator:before{content:"";position:absolute;top:3px;left:3px;width:11px;height:11px;border-radius:50%;background:#f1d886;transition:transform .2s ease}
html[data-community-theme="light"] .v2-theme-toggle-indicator{background:#ead49a;border-color:#9a7939}
html[data-community-theme="light"] .v2-theme-toggle-indicator:before{transform:translateX(14px);background:#5e4519}
.v2-theme-toggle:focus-visible,.social-header-search :focus-visible{outline:3px solid #bc963d;outline-offset:3px}

/* Busca foi movida para a área superior direita; no celular quebra para linha inteira. */
.social-header-row{align-items:flex-end}
.social-header-copy{min-width:0;flex:1}
.social-header-search{display:flex;align-items:center;gap:8px;flex:0 1 350px;width:min(100%,350px);min-width:235px;min-height:45px;padding:4px 5px 4px 13px;background:var(--social-card);border:1px solid var(--social-line);border-radius:13px;box-shadow:var(--social-shadow);margin-bottom:1px}
.social-header-search-icon{display:grid;place-items:center;flex:0 0 20px;color:var(--social-accent);font-size:21px;line-height:1}
.social-header-search input{min-width:0;flex:1;width:100%;height:36px;padding:0;border:0;outline:0;background:transparent;color:var(--social-text);font-size:13px}
.social-header-search input::placeholder{color:var(--social-muted);opacity:1}
.social-header-search input::-webkit-search-cancel-button{cursor:pointer}
.social-header-search button{border:0;border-radius:9px;min-height:36px;padding:0 13px;color:#211908;background:#e1c373;font-size:12px;font-weight:850;cursor:pointer}
.social-header-search button:hover{background:#f1d886}
.social-active-filter{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;border:1px solid var(--social-line);border-radius:11px;margin:0 0 17px;padding:11px 14px;background:var(--social-card);color:var(--social-muted);font-size:12px}
.social-active-filter strong{color:var(--social-text)}
.social-active-filter a{color:var(--social-accent);font-weight:800;text-decoration:underline;text-underline-offset:3px}
@media(max-width:760px){.social-header-row{display:flex;flex-direction:column;align-items:stretch;gap:15px}.social-header-search{width:100%;max-width:none;flex:0 0 auto;min-width:0;margin-bottom:0}.social-header-search input{font-size:16px}.social-page-header{margin-bottom:19px}}
@media(max-width:900px){.v2-theme-area{padding-top:4px}.v2-theme-toggle{min-height:48px}}
@media(prefers-reduced-motion:reduce){.v2-theme-toggle,.v2-theme-toggle-indicator:before{transition:none}}

/* O seletor definido no <html> inclui feed, início, formação, atividades,
 * produtos, B-roll, perfil e a página de vídeo. */
html[data-community-theme="light"]{
 --bg:#f4f0e8;--panel:#fffdf9;--panel2:#f7f2e9;--line:#d9d0be;--line2:#c9bea9;
 --text:#272117;--muted:#655b4d;--muted2:#72685b;--gold:#8b651e;--gold2:#775415;
 --shadow:0 9px 28px rgba(59,44,20,.08);color-scheme:light;
}
html[data-community-theme="light"] body.v2-body,html[data-community-theme="light"] body.v2-body .v2-app{background:#f4f0e8;color:#272117;color-scheme:light}
html[data-community-theme="light"] body.v2-body .v2-main{background:#f4f0e8;color:#272117}
html[data-community-theme="light"] body.v2-body .v2-sidebar{background:#fffdf9;border-right:1px solid #d7cbbb;box-shadow:3px 0 18px rgba(49,39,20,.045)}
html[data-community-theme="light"] body.v2-body .v2-brand b,html[data-community-theme="light"] body.v2-body .v2-user-copy b{color:#2c251b}
html[data-community-theme="light"] body.v2-body .v2-brand small,html[data-community-theme="light"] body.v2-body .v2-nav-label{color:#815d18}
html[data-community-theme="light"] body.v2-body .v2-brand-mark,html[data-community-theme="light"] body.v2-body .v2-avatar-fallback{background:#f4e7c8;border-color:#d2bd8d;color:#654712}
html[data-community-theme="light"] body.v2-body .v2-nav-item{color:#554b3c}
html[data-community-theme="light"] body.v2-body .v2-nav-item .v2-nav-icon{color:#8a6928}
html[data-community-theme="light"] body.v2-body .v2-nav-item:hover,html[data-community-theme="light"] body.v2-body .v2-user-card:hover{background:#f5eddb;color:#272117}
html[data-community-theme="light"] body.v2-body .v2-nav-item.active{background:#f1e4c7;box-shadow:inset 0 0 0 1px #d0b576;color:#332511}
html[data-community-theme="light"] body.v2-body .v2-nav-item.active .v2-nav-icon{color:#755213}
html[data-community-theme="light"] body.v2-body .v2-user-copy small,html[data-community-theme="light"] body.v2-body .v2-logout-form button{color:#665b4b}
html[data-community-theme="light"] body.v2-body .v2-sidebar-bottom{border-top-color:#dacfbf}
html[data-community-theme="light"] body.v2-body .v2-theme-area{border-bottom-color:#e4dac8}
html[data-community-theme="light"] body.v2-body .v2-theme-toggle{background:#f6ecda;border:1px solid #d8c59f;color:#423119}
html[data-community-theme="light"] body.v2-body .v2-theme-toggle:hover{background:#eeddb8;border-color:#b7934d}
html[data-community-theme="light"] body.v2-body .v2-theme-toggle-icon{color:#82601c}
html[data-community-theme="light"] body.v2-body .v2-sidebar-hide,html[data-community-theme="light"] body.v2-body .v2-sidebar-show,html[data-community-theme="light"] body.v2-body .v2-mobile-menu{background:#fffdf9;color:#533b15;border-color:#d1bc8c}
html[data-community-theme="light"] body.v2-body .community-mobile-nav{background:#fffdf9;border-color:#d8cfbf;box-shadow:0 10px 30px rgba(45,35,18,.14)}
html[data-community-theme="light"] body.v2-body .community-mobile-nav-item{color:#65594a}
html[data-community-theme="light"] body.v2-body .community-mobile-nav-item.active{background:#f0e5cb;color:#5a3b0a}
html[data-community-theme="light"] body.v2-body .v2-page-head h1,html[data-community-theme="light"] body.v2-body .v2-page h1,html[data-community-theme="light"] body.v2-body .v2-section-title h2,html[data-community-theme="light"] body.v2-body .community-section-head h2{color:#272117}
html[data-community-theme="light"] body.v2-body .v2-page-head p,html[data-community-theme="light"] body.v2-body .community-section-head p,html[data-community-theme="light"] body.v2-body .v2-section-title a{color:#625848}
html[data-community-theme="light"] body.v2-body .v2-eyebrow,html[data-community-theme="light"] body.v2-body .community-section-head a{color:#79571a}
html[data-community-theme="light"] body.v2-body .v2-kpi strong{color:#332511}
html[data-community-theme="light"] body.v2-body .v2-btn:not(.gold){background:#fffdf9;border-color:#d3c7b4;color:#3e3326}
html[data-community-theme="light"] body.v2-body .v2-btn:not(.gold):hover{background:#f3e8d4;border-color:#b89b60}
html[data-community-theme="light"] body.v2-body .v2-empty,html[data-community-theme="light"] body.v2-body .v2-alert{background:#fffdf9;border-color:#d8cfbf;color:#625747}
html[data-community-theme="light"] body.v2-body .v2-alert.success{background:#e6f4e8;border-color:#aacdb0;color:#245432}
html[data-community-theme="light"] body.v2-body .v2-alert.error{background:#fff0ed;border-color:#e0b5ac;color:#87362e}
html[data-community-theme="light"] body.v2-body .v2-alert.warning{background:#fff5da;border-color:#dcc58a;color:#705111}
/* Preserve contrast in feed cards, controls, and commentary. */
html[data-community-theme="light"] body.community-social-page .social-card,html[data-community-theme="light"] body.community-social-page .social-aside-card,html[data-community-theme="light"] body.community-social-page .social-header-search{background:#fffdf9;border-color:#d9d0c1;color:#272117}
html[data-community-theme="light"] body.community-social-page .social-post-menu-content,html[data-community-theme="light"] body.community-social-page .social-comment-bubble{background:#f3ecdf;color:#282219}
html[data-community-theme="light"] body.community-social-page .social-post-text,html[data-community-theme="light"] body.community-social-page .social-comment-bubble p{color:#30291e}
html[data-community-theme="light"] body.community-social-page .social-avatar.member{background:#efe0bb;color:#604310;border-color:#d6bd84}
/* Course home: panels in the light theme, media overlays stay dark. */
html[data-community-theme="light"] body.v2-body :is(.continue-strip,.activity-card,.trending-preview-card,.catalog-card,.broll-card,.welcome-card,.profile-card,.profile-panel,.v2-panel,.panel,.hub-stat,.hub-kpi){background:#fffdf9;border-color:#d9cfbe;box-shadow:0 5px 20px rgba(48,37,17,.055);color:#272117}
html[data-community-theme="light"] body.v2-body :is(.activity-card,.trending-preview-card,.continue-strip,.welcome-card,.catalog-card,.broll-card,.profile-panel) :is(h2,h3,strong,b){color:#282219}
html[data-community-theme="light"] body.v2-body :is(.activity-card,.trending-preview-card,.continue-strip,.welcome-card,.catalog-card,.broll-card,.profile-panel) :is(p,small,.trending-preview-meta,.activity-card-foot span){color:#665a49}
html[data-community-theme="light"] body.v2-body :is(.activity-card,.trending-preview-card,.continue-strip,.welcome-card,.catalog-card,.broll-card,.profile-panel) a:not(.v2-btn){color:#785419}
html[data-community-theme="light"] body.v2-body .community-chip{color:#604d32;border-color:#cbbfa8;background:#f7f0e3}
html[data-community-theme="light"] body.v2-body .community-chip.gold{background:#f4e5bc;border-color:#d0b16a;color:#745118}
html[data-community-theme="light"] body.v2-body :is(.activity-hero,.activity-copy-box,.activity-thread){background:#fffdf9;border-color:#d9cfbe;color:#2e271e}
html[data-community-theme="light"] body.v2-body :is(.activity-hero,.activity-copy-box,.activity-thread) :is(.lead,p){color:#5c5142}
html[data-community-theme="light"] body.v2-body .activity-message{background:#f4efe6;color:#2d261d}
html[data-community-theme="light"] body.v2-body .activity-message.mine{background:#f5e8c9;border-color:#d6bb7f}
html[data-community-theme="light"] body.v2-body .activity-message.admin{background:#e9f0ee;border-color:#b9cbc4}
html[data-community-theme="light"] body.v2-body .activity-message p{color:#352d21}
html[data-community-theme="light"] body.v2-body :is(.activity-update-form textarea,.activity-update-form input,.activity-update-form select,.community-comment-form textarea){background:#fffdf9;border-color:#cbbfae;color:#2c251c}
html[data-community-theme="light"] body.v2-body :is(.activity-update-form textarea,.activity-update-form input)::placeholder{color:#6f6456}
html[data-community-theme="light"] body.v2-body .activity-status-row button:not(.primary){background:#f4ead8;border-color:#cbb894;color:#473418}
html[data-community-theme="light"] body.v2-body .community-pagination a{border-color:#d8c9b2;color:#604419}
/* Video-first cards use dark overlays for legible image titles on both themes. */
html[data-community-theme="light"] body.v2-body :is(.module-card,.hub-hero,.v2-page-head-cover){background-color:#1a1711;color:#fff7e7}
html[data-community-theme="light"] body.v2-body :is(.module-card,.hub-hero,.v2-page-head-cover) :is(h1,h2,h3,strong){color:#fff7e7}
html[data-community-theme="light"] body.v2-body :is(.module-card,.hub-hero,.v2-page-head-cover) p{color:#e5dacf}
/* Isolated course player (curso.php) uses a different CSS layout. */
html[data-community-theme="light"] body:has(.academy-shell){background:#f4f0e8;color:#272117}
html[data-community-theme="light"] .academy-shell{background:#f4f0e8;color:#272117}
html[data-community-theme="light"] .academy-topbar{background:rgba(255,253,249,.97);border-bottom:1px solid #d8cfbf}
html[data-community-theme="light"] .academy-topbar .brand{border-right-color:#d8cfbf}
html[data-community-theme="light"] .academy-topbar .brand-name{color:#5f4214}
html[data-community-theme="light"] .academy-topbar .brand-product,html[data-community-theme="light"] .academy-topbar .hello,html[data-community-theme="light"] .top-progress-copy{color:#675b4b}
html[data-community-theme="light"] .academy-topbar .ghost-link{color:#5e451d}
html[data-community-theme="light"] .academy-topbar .top-progress-track{background:#e8dcbf}
html[data-community-theme="light"] .academy-topbar .top-progress-copy strong{color:#624615}
html[data-community-theme="light"] .academy-topbar .menu-button span{background:#4a3922}
html[data-community-theme="light"] .course-sidebar{background:#fffdf9;border-right-color:#ddd2bf;scrollbar-color:#c4b696 transparent}
html[data-community-theme="light"] .sidebar-head{border-bottom-color:#e3d8c5}
html[data-community-theme="light"] .sidebar-head h2{color:#292219}
html[data-community-theme="light"] .sidebar-head p,html[data-community-theme="light"] .nav-copy small{color:#65594a}
html[data-community-theme="light"] .course-nav :is(.nav-copy strong,.lesson-nav-copy strong){color:#403626}
html[data-community-theme="light"] .course-nav :is(.nav-welcome.active,.nav-module-title.module-active,.nav-lesson.active){background:#f1e4c8}
html[data-community-theme="light"] .course-nav :is(.nav-welcome:hover,.nav-module-title:hover,.nav-lesson:hover){background:#f6eedf}
html[data-community-theme="light"] .course-nav .nav-lesson.active .lesson-nav-copy strong{color:#241b12}
html[data-community-theme="light"] .course-nav .lesson-dot{box-shadow:0 0 0 4px #fffdf9;background:#b3a58e}
html[data-community-theme="light"] .lesson-panel h1{color:#252019}
html[data-community-theme="light"] .lesson-panel .lesson-lead{color:#635848}
html[data-community-theme="light"] .lesson-panel :is(.info-card p,.mission-card p,.overview-row strong){color:#3d3326}
html[data-community-theme="light"] .lesson-panel :is(.info-card,.overview-row){border-color:#e0d5c4}
html[data-community-theme="light"] .lesson-panel .mission-card{background:#f2e6cb;border-color:#dac28a}
html[data-community-theme="light"] .lesson-panel .mission-mark{color:#211908}
html[data-community-theme="light"] .video-column .reel-frame{background:#000}
html[data-community-theme="light"] .video-column .video-foot .secondary-button{background:#fffdf9;color:#4e3d21;border-color:#cbbfa9}
html[data-community-theme="light"] .video-column .lesson-dots button:not(.active):not(.completed){background:#beb09b}
html[data-community-theme="light"] .toast{background:#fffdf9;color:#35291c;border-color:#d1bd90}
@media(max-width:900px){html[data-community-theme="light"] .course-sidebar{box-shadow:10px 0 35px rgba(40,28,10,.23)}}
