/* EWA v2.9.0 — DARK ACADEMY
   Visual reference: EWA v2.4.2.
   STRICT PALETTE: BLACK + WHITE + Branding & SaaS Accent only.
   No fourth chromatic color.
*/
:root{
  --ewa-black:#000000;
  --ewa-white:#ffffff;
  --ewa-accent:#ff6500;
  --ewa-max:1440px;
  --ewa-radius:22px;
  --ewa-radius-sm:14px;
  --ewa-line:rgba(255,255,255,.14);
  --ewa-line-strong:rgba(255,255,255,.26);
  --ewa-muted:rgba(255,255,255,.68);
  --ewa-faint:rgba(255,255,255,.48);
  --ewa-panel:rgba(255,255,255,.055);
  --ewa-panel-strong:rgba(255,255,255,.085);
  --ewa-shadow:0 24px 70px rgba(0,0,0,.46);
  --ewa-shadow-sm:0 12px 34px rgba(0,0,0,.32);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--ewa-black)}
body[data-ewa-theme="brand"]{
  margin:0;background:var(--ewa-black)!important;color:var(--ewa-white)!important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased
}
body[data-ewa-theme="brand"] .ewa-container{width:min(calc(100% - 48px),var(--ewa-max));margin-inline:auto}
body[data-ewa-theme="brand"] :where(h1,h2,h3,h4,h5,h6,strong,b,label,legend){color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] :where(p,li,small,.ewa-muted,.description){color:var(--ewa-muted)!important}
body[data-ewa-theme="brand"] a{transition:.18s ease}
body[data-ewa-theme="brand"] img{max-width:100%;height:auto}
body[data-ewa-theme="brand"] .ewa-section{padding:88px 0;background:var(--ewa-black)!important}
body[data-ewa-theme="brand"] .ewa-section-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:32px}
body[data-ewa-theme="brand"] .ewa-section-head h2{font-size:clamp(30px,4vw,52px);line-height:1.02;letter-spacing:-.045em;margin:7px 0 0}
body[data-ewa-theme="brand"] :where(.ewa-kicker,.ewa-eyebrow){display:inline-flex;align-items:center;gap:10px;color:var(--ewa-accent)!important;font-size:11px;font-weight:850;letter-spacing:.16em;text-transform:uppercase}
body[data-ewa-theme="brand"] :where(.ewa-kicker,.ewa-eyebrow):before{content:"";width:28px;height:1px;background:var(--ewa-accent)}
body[data-ewa-theme="brand"] .ewa-text-link{color:var(--ewa-white)!important;font-weight:800;text-decoration:none}
body[data-ewa-theme="brand"] .ewa-text-link:hover{color:var(--ewa-accent)!important}

/* Header */
body[data-ewa-theme="brand"] .ewa-header{position:sticky;top:0;z-index:1000;background:rgba(0,0,0,.88)!important;border-bottom:1px solid var(--ewa-line)!important;backdrop-filter:blur(18px);box-shadow:none!important}
body[data-ewa-theme="brand"] .ewa-header-inner{min-height:78px;display:flex;align-items:center;gap:28px}
body[data-ewa-theme="brand"] .ewa-brand{display:flex;align-items:center;gap:12px;text-decoration:none}
body[data-ewa-theme="brand"] .ewa-logo-img{width:46px;height:46px;object-fit:contain;border-radius:12px}
body[data-ewa-theme="brand"] .ewa-brand-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--ewa-accent)!important;color:var(--ewa-white)!important;font-weight:900}
body[data-ewa-theme="brand"] .ewa-brand-text strong{display:block;color:var(--ewa-white)!important;font-size:15px}
body[data-ewa-theme="brand"] .ewa-brand-text small{display:block;color:var(--ewa-muted)!important;font-size:11px;margin-top:3px}
body[data-ewa-theme="brand"] .ewa-nav{margin-left:auto}
body[data-ewa-theme="brand"] .ewa-nav ul{display:flex;align-items:center;gap:26px;list-style:none;margin:0;padding:0}
body[data-ewa-theme="brand"] .ewa-nav a{color:var(--ewa-muted)!important;text-decoration:none;font-size:13px;font-weight:700}
body[data-ewa-theme="brand"] .ewa-nav a:hover,body[data-ewa-theme="brand"] .ewa-nav .current-menu-item>a{color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-header-actions{display:flex;align-items:center;gap:12px}
body[data-ewa-theme="brand"] .ewa-cart-link{color:var(--ewa-white)!important;font-weight:800;text-decoration:none}
body[data-ewa-theme="brand"] .ewa-menu-toggle{display:none;background:var(--ewa-black)!important;color:var(--ewa-white)!important;border:1px solid var(--ewa-line);border-radius:10px;padding:9px 12px}

/* Buttons */
body[data-ewa-theme="brand"] .ewa-btn,
body[data-ewa-theme="brand"] button[type=submit],
body[data-ewa-theme="brand"] input[type=submit]{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:0 22px;border:1px solid var(--ewa-accent)!important;border-radius:12px;background:var(--ewa-accent)!important;color:var(--ewa-white)!important;font-weight:850;text-decoration:none;box-shadow:none!important}
body[data-ewa-theme="brand"] .ewa-btn:hover,
body[data-ewa-theme="brand"] button[type=submit]:hover,
body[data-ewa-theme="brand"] input[type=submit]:hover{background:var(--ewa-white)!important;border-color:var(--ewa-white)!important;color:var(--ewa-black)!important;transform:translateY(-1px)}
body[data-ewa-theme="brand"] :where(.ewa-btn-ghost,.ewa-btn-secondary,.ewa-btn-outline){background:transparent!important;color:var(--ewa-white)!important;border-color:var(--ewa-line-strong)!important}
body[data-ewa-theme="brand"] :where(.ewa-btn-ghost,.ewa-btn-secondary,.ewa-btn-outline):hover{background:var(--ewa-white)!important;color:var(--ewa-black)!important;border-color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-btn-small{min-height:40px;padding:0 16px;font-size:13px}

/* Hero */
body[data-ewa-theme="brand"] .ewa-hero{position:relative;isolation:isolate;overflow:hidden;background:var(--ewa-black)!important;color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-hero-fullscreen{min-height:min(820px,calc(100vh - 78px));display:flex;align-items:center}
body[data-ewa-theme="brand"] :where(.ewa-hero-background,.ewa-teacher-photo-bg){position:absolute;inset:0;z-index:-3;background-position:right center;background-size:cover;background-repeat:no-repeat}
body[data-ewa-theme="brand"] .ewa-hero-overlay{position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,var(--ewa-black) 0%,rgba(0,0,0,.96) 35%,rgba(0,0,0,.70) 64%,rgba(0,0,0,.22) 100%)!important}
body[data-ewa-theme="brand"] .ewa-hero-content{position:relative;z-index:1;padding:96px 0}
body[data-ewa-theme="brand"] .ewa-hero-copy{max-width:820px}
body[data-ewa-theme="brand"] .ewa-hero h1{color:var(--ewa-white)!important;font-size:clamp(54px,7vw,100px);line-height:.92;letter-spacing:-.06em;margin:18px 0 30px;max-width:900px}
body[data-ewa-theme="brand"] .ewa-hero h1 :where(span,em){color:var(--ewa-accent)!important;font-style:normal}
body[data-ewa-theme="brand"] .ewa-hero :where(p,.ewa-hero-lead){color:var(--ewa-muted)!important;font-size:clamp(18px,1.8vw,22px);line-height:1.65;max-width:760px}
body[data-ewa-theme="brand"] .ewa-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}
body[data-ewa-theme="brand"] .ewa-hero-mini{margin-top:42px}

/* Page heroes */
body[data-ewa-theme="brand"] :where(.ewa-page-hero,.ewa-dashboard-hero){padding:74px 0 54px;background:var(--ewa-black)!important;color:var(--ewa-white)!important;border-bottom:1px solid var(--ewa-line)!important}
body[data-ewa-theme="brand"] :where(.ewa-page-hero,.ewa-dashboard-hero) :where(h1,h2,h3,strong){color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] :where(.ewa-page-hero,.ewa-dashboard-hero) :where(p,small){color:var(--ewa-muted)!important}

/* Universal dark cards/surfaces */
body[data-ewa-theme="brand"] :where(.ewa-course-card,.ewa-book-card,.ewa-testimonial-card,.ewa-news-card,.ewa-post-card,.ewa-panel,.ewa-dashboard-card,.ewa-stat,.ewa-stat-card,.ewa-learning-pulse,.ewa-engagement-panel,.ewa-payment-panel,.ewa-member-state,.ewa-quiz-card,.ewa-review-card,.ewa-quiz-result,.ewa-diary-answer,.ewa-explanation,.ewa-review-answer,.ewa-auth-shell,.ewa-auth-form,.ewa-form,.ewa-content,.ewa-demo-lecture-card,.ewa-unlock-card,.ewa-product-order-card,.ewa-cart-panel,.ewa-checkout-card){
 background:var(--ewa-panel)!important;color:var(--ewa-white)!important;border:1px solid var(--ewa-line)!important;border-radius:var(--ewa-radius)!important;box-shadow:var(--ewa-shadow-sm)!important
}
body[data-ewa-theme="brand"] :where(.ewa-course-card,.ewa-book-card,.ewa-testimonial-card,.ewa-news-card,.ewa-post-card,.ewa-panel,.ewa-dashboard-card,.ewa-stat,.ewa-stat-card,.ewa-learning-pulse,.ewa-engagement-panel,.ewa-payment-panel,.ewa-member-state,.ewa-quiz-card,.ewa-review-card,.ewa-quiz-result,.ewa-diary-answer,.ewa-explanation,.ewa-review-answer,.ewa-auth-shell,.ewa-auth-form,.ewa-form,.ewa-content,.ewa-demo-lecture-card,.ewa-unlock-card,.ewa-product-order-card,.ewa-cart-panel,.ewa-checkout-card) :where(h1,h2,h3,h4,h5,h6,strong,b,label){color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] :where(.ewa-course-card,.ewa-book-card,.ewa-testimonial-card,.ewa-news-card,.ewa-post-card,.ewa-panel,.ewa-dashboard-card,.ewa-stat,.ewa-stat-card,.ewa-learning-pulse,.ewa-engagement-panel,.ewa-payment-panel,.ewa-member-state,.ewa-quiz-card,.ewa-review-card,.ewa-quiz-result,.ewa-diary-answer,.ewa-explanation,.ewa-review-answer,.ewa-auth-shell,.ewa-auth-form,.ewa-form,.ewa-content,.ewa-demo-lecture-card,.ewa-unlock-card,.ewa-product-order-card,.ewa-cart-panel,.ewa-checkout-card) :where(p,small,li){color:var(--ewa-muted)!important}

/* Grids/cards */
body[data-ewa-theme="brand"] :where(.ewa-course-grid,.ewa-book-grid){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
body[data-ewa-theme="brand"] :where(.ewa-course-card,.ewa-book-card,.ewa-news-card,.ewa-post-card){overflow:hidden}
body[data-ewa-theme="brand"] :where(.ewa-course-card,.ewa-book-card,.ewa-news-card,.ewa-post-card):hover{transform:translateY(-4px);border-color:var(--ewa-line-strong)!important;box-shadow:var(--ewa-shadow)!important}
body[data-ewa-theme="brand"] .ewa-course-body,body[data-ewa-theme="brand"] .ewa-news-body,body[data-ewa-theme="brand"] .ewa-post-body{padding:24px}
body[data-ewa-theme="brand"] :where(.ewa-course-media,.ewa-news-image,.ewa-post-image,.ewa-book-placeholder,.ewa-course-placeholder){background:var(--ewa-black)!important;color:var(--ewa-faint)!important}
body[data-ewa-theme="brand"] :where(.ewa-access-pill,.ewa-news-label,.ewa-badge){background:var(--ewa-accent)!important;color:var(--ewa-white)!important;border:0!important}
body[data-ewa-theme="brand"] .ewa-course-link{color:var(--ewa-white)!important;font-weight:850;text-decoration:none}
body[data-ewa-theme="brand"] .ewa-course-link:hover{color:var(--ewa-accent)!important}

/* Feature/member/CTA */
body[data-ewa-theme="brand"] .ewa-trust{background:var(--ewa-black)!important}
body[data-ewa-theme="brand"] .ewa-trust-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);gap:72px;align-items:center}
body[data-ewa-theme="brand"] .ewa-trust h2{color:var(--ewa-white)!important;font-size:clamp(40px,5vw,72px);line-height:.98;letter-spacing:-.055em;margin:18px 0}
body[data-ewa-theme="brand"] .ewa-feature-stack{border:1px solid var(--ewa-line);border-radius:var(--ewa-radius);overflow:hidden;background:var(--ewa-panel)!important}
body[data-ewa-theme="brand"] .ewa-feature-stack>div{padding:30px 34px;border-bottom:1px solid var(--ewa-line)}
body[data-ewa-theme="brand"] .ewa-feature-stack>div:last-child{border-bottom:0}
body[data-ewa-theme="brand"] .ewa-feature-stack :where(h3,strong){color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-feature-stack :where(p,small){color:var(--ewa-muted)!important}
body[data-ewa-theme="brand"] .ewa-feature-stack span{color:var(--ewa-accent)!important;font-weight:900}
body[data-ewa-theme="brand"] .ewa-membership{background:var(--ewa-black)!important;border-block:1px solid var(--ewa-line)}
body[data-ewa-theme="brand"] .ewa-membership-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);gap:54px;align-items:center}
body[data-ewa-theme="brand"] .ewa-cta{background:var(--ewa-black)!important}
body[data-ewa-theme="brand"] .ewa-cta-inner{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:42px;border:1px solid var(--ewa-line);border-radius:var(--ewa-radius);background:var(--ewa-panel)!important}

/* Course content — every item readable */
body[data-ewa-theme="brand"] .ewa-course-content-section{background:var(--ewa-black)!important}
body[data-ewa-theme="brand"] .ewa-content-glass-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
body[data-ewa-theme="brand"] .ewa-lesson-glass{background:var(--ewa-panel)!important;color:var(--ewa-white)!important;border:1px solid var(--ewa-line)!important;border-radius:var(--ewa-radius)!important;padding:30px!important;box-shadow:var(--ewa-shadow-sm)!important}
body[data-ewa-theme="brand"] .ewa-lesson-top{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:22px}
body[data-ewa-theme="brand"] .ewa-lesson-number{color:var(--ewa-accent)!important;font-weight:900;letter-spacing:.1em}
body[data-ewa-theme="brand"] .ewa-lesson-glass :where(h2,h3,h4,strong){color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-lesson-glass :where(p,small,.ewa-course-preview-sub,.ewa-lock-label){color:var(--ewa-muted)!important}
body[data-ewa-theme="brand"] .ewa-lesson-blocks{display:grid;gap:10px}
body[data-ewa-theme="brand"] .ewa-lesson-block-button{width:100%;min-height:66px;display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:14px;padding:12px 16px;border:1px solid var(--ewa-line)!important;border-radius:14px!important;background:var(--ewa-black)!important;color:var(--ewa-white)!important;text-align:left;text-decoration:none;box-shadow:none!important}
body[data-ewa-theme="brand"] .ewa-lesson-block-button:hover{border-color:var(--ewa-accent)!important}
body[data-ewa-theme="brand"] .ewa-lesson-block-button :where(span,strong,b){color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-lesson-block-button .ewa-block-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--ewa-accent)!important;color:var(--ewa-white)!important;font-size:11px;font-weight:900}
body[data-ewa-theme="brand"] .ewa-course-preview-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);gap:42px;align-items:center}
body[data-ewa-theme="brand"] .ewa-course-preview-image{border-radius:var(--ewa-radius);overflow:hidden;background:var(--ewa-black);border:1px solid var(--ewa-line)}

/* Dashboard/player */
body[data-ewa-theme="brand"] :where(.ewa-dashboard-app,.ewa-player-app,.ewa-quiz-mount,.ewa-content-viewer){color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-dashboard-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:18px}
body[data-ewa-theme="brand"] .ewa-dashboard-grid>*{grid-column:span 6}
body[data-ewa-theme="brand"] .ewa-learning-pulse,body[data-ewa-theme="brand"] .ewa-engagement-panel{padding:24px}
body[data-ewa-theme="brand"] .ewa-pulse-grid,body[data-ewa-theme="brand"] .ewa-engagement-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body[data-ewa-theme="brand"] .ewa-stat{padding:18px}
body[data-ewa-theme="brand"] .ewa-stat strong{display:block;font-size:clamp(24px,3vw,38px);letter-spacing:-.04em;color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] :where(.ewa-progress,.ewa-progress-bar,.ewa-quiz-progress,.ewa-player-progress){background:rgba(255,255,255,.12)!important}
body[data-ewa-theme="brand"] :where(.ewa-progress,.ewa-progress-bar,.ewa-quiz-progress,.ewa-player-progress)>span{background:var(--ewa-accent)!important}

/* QUIZ — explicit high contrast */
body[data-ewa-theme="brand"] .ewa-quiz-page-section{background:var(--ewa-black)!important}
body[data-ewa-theme="brand"] .ewa-quiz-exam{background:var(--ewa-black)!important;color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-quiz-workspace{display:grid;grid-template-columns:220px minmax(0,1fr);gap:28px}
body[data-ewa-theme="brand"] .ewa-question-palette{background:var(--ewa-panel)!important;border:1px solid var(--ewa-line)!important;border-radius:18px!important;padding:20px!important;color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-question-palette :where(h2,h3,strong,span){color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-palette-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
body[data-ewa-theme="brand"] .ewa-palette-btn{min-width:0;height:44px;border-radius:10px;background:var(--ewa-black)!important;border:1px solid var(--ewa-line)!important;color:var(--ewa-white)!important;font-weight:800}
body[data-ewa-theme="brand"] .ewa-palette-btn:hover,body[data-ewa-theme="brand"] .ewa-palette-btn.is-current{border-color:var(--ewa-accent)!important;box-shadow:inset 0 0 0 1px var(--ewa-accent)!important}
body[data-ewa-theme="brand"] .ewa-palette-btn.is-correct{background:var(--ewa-accent)!important;border-color:var(--ewa-accent)!important;color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-palette-btn.is-wrong{background:var(--ewa-white)!important;border-color:var(--ewa-white)!important;color:var(--ewa-black)!important}
body[data-ewa-theme="brand"] .ewa-question{background:var(--ewa-black)!important;color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-question :where(h1,h2,h3,h4,strong,.ewa-question-label){color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-question-label{color:var(--ewa-accent)!important}
body[data-ewa-theme="brand"] .ewa-quiz-options{display:grid;gap:14px;margin-top:26px}
body[data-ewa-theme="brand"] .ewa-option-card{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:14px;min-height:66px;padding:14px 18px;background:var(--ewa-panel)!important;border:1px solid var(--ewa-line)!important;border-radius:14px!important;color:var(--ewa-white)!important;cursor:pointer}
body[data-ewa-theme="brand"] .ewa-option-card:hover{border-color:var(--ewa-accent)!important}
body[data-ewa-theme="brand"] .ewa-option-letter{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--ewa-black)!important;color:var(--ewa-white)!important;border:1px solid var(--ewa-line)!important;font-weight:900}
body[data-ewa-theme="brand"] .ewa-option-text{color:var(--ewa-white)!important;font-weight:650}
body[data-ewa-theme="brand"] .ewa-option-state{color:var(--ewa-muted)!important}
body[data-ewa-theme="brand"] .ewa-option-card.is-correct{background:var(--ewa-accent)!important;border-color:var(--ewa-accent)!important}
body[data-ewa-theme="brand"] .ewa-option-card.is-correct :where(.ewa-option-text,.ewa-option-letter,.ewa-option-state){color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-option-card.is-wrong{background:var(--ewa-white)!important;border-color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-option-card.is-wrong :where(.ewa-option-text,.ewa-option-letter,.ewa-option-state){color:var(--ewa-black)!important}
body[data-ewa-theme="brand"] .ewa-quiz-controls{display:flex;justify-content:space-between;gap:14px;padding-top:24px;margin-top:28px;border-top:1px solid var(--ewa-line)}
body[data-ewa-theme="brand"] .ewa-quiz-timer,body[data-ewa-theme="brand"] .ewa-quiz-progressbar{color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] :where(.ewa-quiz-results,.ewa-quiz-review){background:var(--ewa-black)!important;color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-result-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
body[data-ewa-theme="brand"] .ewa-result-score{background:var(--ewa-panel)!important;border:1px solid var(--ewa-line)!important;border-radius:14px!important;padding:18px;color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-review-filters button{background:var(--ewa-black)!important;color:var(--ewa-white)!important;border:1px solid var(--ewa-line)!important}
body[data-ewa-theme="brand"] .ewa-review-filters button.is-active{background:var(--ewa-accent)!important;border-color:var(--ewa-accent)!important}

/* Content viewer; runtime unchanged */
body[data-ewa-theme="brand"] .ewa-content-viewer-container{width:min(calc(100% - 48px),1180px);margin:auto}
body[data-ewa-theme="brand"] .ewa-content-viewer-stage{background:var(--ewa-black)!important;color:var(--ewa-white)!important;border:1px solid var(--ewa-line)!important;border-radius:var(--ewa-radius)!important;box-shadow:var(--ewa-shadow-sm)!important;overflow:hidden}
body[data-ewa-theme="brand"] .ewa-video-shell{position:relative;width:100%;aspect-ratio:16/9;background:var(--ewa-black);overflow:hidden;border-radius:18px}
body[data-ewa-theme="brand"] .ewa-video-shell :where(iframe,video){position:absolute;inset:0;width:100%;height:100%;border:0}
body[data-ewa-theme="brand"] :where(.ewa-code-frame,.ewa-content-viewer-frame){display:block;width:100%;max-width:1080px;height:1200px;min-height:1200px;margin:0 auto;border:0;background:var(--ewa-black)}
body[data-ewa-theme="brand"] .ewa-rich-content{max-width:900px;margin:auto;padding:clamp(24px,5vw,64px);color:var(--ewa-white)!important;line-height:1.78}
body[data-ewa-theme="brand"] .ewa-rich-content :where(h1,h2,h3,h4,strong,b,p,li){color:var(--ewa-white)!important}

/* Forms/auth/store/checkout */
body[data-ewa-theme="brand"] :where(input,textarea,select){width:100%;background:var(--ewa-black)!important;color:var(--ewa-white)!important;border:1px solid var(--ewa-line-strong)!important;border-radius:11px!important;min-height:46px;padding:10px 13px;box-shadow:none!important}
body[data-ewa-theme="brand"] :where(input,textarea,select):focus{outline:0!important;border-color:var(--ewa-accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--ewa-accent) 30%,transparent)!important}
body[data-ewa-theme="brand"] :where(input,textarea)::placeholder{color:var(--ewa-faint)!important}
body[data-ewa-theme="brand"] .ewa-product-gallery{background:var(--ewa-black)!important;border-color:var(--ewa-line)!important}
body[data-ewa-theme="brand"] .ewa-product-price{color:var(--ewa-white)!important}

/* Footer */
body[data-ewa-theme="brand"] .ewa-footer{background:var(--ewa-black)!important;color:var(--ewa-white)!important;padding:64px 0 28px;border-top:1px solid var(--ewa-line)!important}
body[data-ewa-theme="brand"] .ewa-footer-grid{display:grid;grid-template-columns:1.4fr .8fr .8fr;gap:48px}
body[data-ewa-theme="brand"] .ewa-footer :where(h2,h3,h4,strong,b){color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-footer :where(p,li,small,a,span){color:var(--ewa-muted)!important}
body[data-ewa-theme="brand"] .ewa-footer a:hover{color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-footer-bottom{margin-top:48px;padding-top:22px;border-top:1px solid var(--ewa-line);display:flex;justify-content:space-between;gap:20px}

/* Empty/loading */
body[data-ewa-theme="brand"] :where(.ewa-empty,.ewa-loading){padding:28px;border:1px dashed var(--ewa-line-strong);border-radius:16px;background:var(--ewa-panel)!important;color:var(--ewa-muted)!important}

/* Remove theme switching remnants */
.ewa-theme-picker,.ewa-theme-toggle,.ewa-theme-menu,.ewa-theme-swatch{display:none!important}

/* Responsive */
@media(max-width:1050px){
 body[data-ewa-theme="brand"] :where(.ewa-course-grid,.ewa-book-grid){grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-ewa-theme="brand"] :where(.ewa-trust-grid,.ewa-membership-grid,.ewa-course-preview-grid){grid-template-columns:1fr;gap:36px}
 body[data-ewa-theme="brand"] .ewa-content-glass-grid{grid-template-columns:1fr}
 body[data-ewa-theme="brand"] .ewa-quiz-workspace{grid-template-columns:1fr}
 body[data-ewa-theme="brand"] .ewa-question-palette{order:2}
}
@media(max-width:820px){
 body[data-ewa-theme="brand"] .ewa-container,body[data-ewa-theme="brand"] .ewa-content-viewer-container{width:min(calc(100% - 32px),var(--ewa-max))}
 body[data-ewa-theme="brand"] .ewa-menu-toggle{display:block;margin-left:auto}
 body[data-ewa-theme="brand"] .ewa-nav{display:none;position:absolute;top:78px;left:16px;right:16px;background:var(--ewa-black)!important;border:1px solid var(--ewa-line);border-radius:16px;box-shadow:var(--ewa-shadow);padding:18px}
 body[data-ewa-theme="brand"] .ewa-nav.is-open{display:block}
 body[data-ewa-theme="brand"] .ewa-nav ul{display:grid;gap:4px}
 body[data-ewa-theme="brand"] .ewa-nav a{display:block;padding:11px 10px;color:var(--ewa-white)!important}
 body[data-ewa-theme="brand"] .ewa-header-actions .ewa-cart-link{display:none}
 body[data-ewa-theme="brand"] .ewa-section{padding:64px 0}
 body[data-ewa-theme="brand"] .ewa-dashboard-grid>*{grid-column:1/-1}
 body[data-ewa-theme="brand"] .ewa-result-grid{grid-template-columns:repeat(2,1fr)}
 body[data-ewa-theme="brand"] .ewa-footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
 body[data-ewa-theme="brand"] .ewa-container,body[data-ewa-theme="brand"] .ewa-content-viewer-container{width:min(calc(100% - 24px),var(--ewa-max))}
 body[data-ewa-theme="brand"] .ewa-header-inner{min-height:70px}
 body[data-ewa-theme="brand"] .ewa-brand-text small{display:none}
 body[data-ewa-theme="brand"] .ewa-header-actions .ewa-btn{display:none}
 body[data-ewa-theme="brand"] .ewa-hero-content{padding:72px 0}
 body[data-ewa-theme="brand"] .ewa-hero h1{font-size:clamp(46px,14vw,68px)}
 body[data-ewa-theme="brand"] .ewa-actions{display:grid;grid-template-columns:1fr}
 body[data-ewa-theme="brand"] .ewa-actions .ewa-btn{width:100%}
 body[data-ewa-theme="brand"] :where(.ewa-course-grid,.ewa-book-grid){grid-template-columns:1fr}
 body[data-ewa-theme="brand"] .ewa-section-head{display:block}
 body[data-ewa-theme="brand"] .ewa-lesson-glass{padding:20px!important}
 body[data-ewa-theme="brand"] .ewa-lesson-block-button{grid-template-columns:36px 1fr auto;padding:10px 12px}
 body[data-ewa-theme="brand"] .ewa-palette-grid{grid-template-columns:repeat(5,1fr)}
 body[data-ewa-theme="brand"] .ewa-result-grid{grid-template-columns:1fr 1fr}
 body[data-ewa-theme="brand"] .ewa-footer-grid{grid-template-columns:1fr}
 body[data-ewa-theme="brand"] .ewa-footer-bottom{display:block}
}


/* EWA 2.9.1 — Homepage Class Launcher */
body[data-ewa-theme="brand"] .ewa-home-classes{padding-top:62px;padding-bottom:62px;border-bottom:1px solid var(--ewa-line)}
body[data-ewa-theme="brand"] .ewa-class-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
body[data-ewa-theme="brand"] .ewa-class-tile{
  aspect-ratio:1.45/1;min-height:116px;display:grid;place-items:center;text-align:center;padding:14px;
  background:var(--ewa-accent)!important;color:var(--ewa-white)!important;border:1px solid var(--ewa-accent)!important;
  border-radius:18px;text-decoration:none;font-weight:900;font-size:clamp(15px,1.6vw,22px);line-height:1.12;
  box-shadow:none!important
}
body[data-ewa-theme="brand"] .ewa-class-tile span{color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-class-tile:hover{background:var(--ewa-white)!important;border-color:var(--ewa-white)!important;transform:translateY(-2px)}
body[data-ewa-theme="brand"] .ewa-class-tile:hover span{color:var(--ewa-black)!important}
body[data-ewa-theme="brand"] .ewa-class-grid-compact{margin-bottom:42px}
body[data-ewa-theme="brand"] .ewa-class-page-actions{margin:0 0 28px}
body[data-ewa-theme="brand"] .ewa-home-course-card .ewa-course-body{display:flex;align-items:center;justify-content:space-between;gap:18px}
body[data-ewa-theme="brand"] .ewa-home-course-card .ewa-course-body h3{margin:0;font-size:20px}
body[data-ewa-theme="brand"] .ewa-home-course-card .ewa-course-link{white-space:nowrap;color:var(--ewa-accent)!important}

/* Quiz typography normalization */
body[data-ewa-theme="brand"] .ewa-question>h2{
  font-size:clamp(22px,2.1vw,30px)!important;
  line-height:1.28!important;
  letter-spacing:-.025em!important;
  font-weight:800!important;
  color:var(--ewa-white)!important;
}
body[data-ewa-theme="brand"] .ewa-option-text{
  font-size:clamp(17px,1.55vw,21px)!important;
  line-height:1.45!important;
  font-weight:650!important;
  color:var(--ewa-white)!important;
}
body[data-ewa-theme="brand"] .ewa-option-letter{font-size:15px!important}
@media(max-width:620px){
  body[data-ewa-theme="brand"] .ewa-class-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
  body[data-ewa-theme="brand"] .ewa-class-tile{min-height:76px;aspect-ratio:1/1;padding:7px;border-radius:12px;font-size:clamp(10px,3.2vw,13px)}
  body[data-ewa-theme="brand"] .ewa-home-course-card .ewa-course-body{display:block}
  body[data-ewa-theme="brand"] .ewa-home-course-card .ewa-course-link{display:inline-block;margin-top:12px}
  body[data-ewa-theme="brand"] .ewa-question>h2{font-size:21px!important}
  body[data-ewa-theme="brand"] .ewa-option-text{font-size:17px!important}
}


/* EWA 2.9.2 — compact classes, dynamic accent, news detail, visible testimonial navigation */
body[data-ewa-theme="brand"] .ewa-home-classes{padding-top:52px;padding-bottom:52px}
body[data-ewa-theme="brand"] .ewa-class-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
body[data-ewa-theme="brand"] .ewa-class-tile{
  aspect-ratio:auto!important;
  min-height:82px!important;
  max-height:96px;
  padding:12px 14px!important;
  border-radius:14px!important;
  font-size:clamp(13px,1.15vw,17px)!important;
}
body[data-ewa-theme="brand"] .ewa-class-tile:hover{background:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-news-card-link{display:block;color:inherit!important;text-decoration:none}
body[data-ewa-theme="brand"] .ewa-news-card-link:hover h3{color:var(--ewa-accent)!important}
body[data-ewa-theme="brand"] .ewa-news-read{display:inline-flex;gap:6px;margin-top:14px;color:var(--ewa-accent)!important;font-weight:850;font-size:13px}
body[data-ewa-theme="brand"] .ewa-news-detail-container{width:min(calc(100% - 48px),1000px)}
body[data-ewa-theme="brand"] .ewa-news-detail-hero h1{max-width:1000px}
body[data-ewa-theme="brand"] .ewa-news-date{color:var(--ewa-muted)!important}
body[data-ewa-theme="brand"] .ewa-news-detail-image{margin:0 0 36px;border-radius:22px;overflow:hidden;border:1px solid var(--ewa-line)}
body[data-ewa-theme="brand"] .ewa-news-detail-image img{display:block;width:100%;max-height:620px;object-fit:cover}
body[data-ewa-theme="brand"] .ewa-news-detail-copy{font-size:18px;line-height:1.8;color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-news-detail-copy :where(p,li){color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-news-detail-copy :where(h2,h3,h4,strong){color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-news-back{margin-top:38px;padding-top:24px;border-top:1px solid var(--ewa-line)}

/* What Students Say navigation */
body[data-ewa-theme="brand"] .ewa-stack-controls{
  display:flex!important;align-items:center;justify-content:center;gap:12px;margin-top:24px;position:relative;z-index:5
}
body[data-ewa-theme="brand"] .ewa-stack-controls button{
  display:inline-flex!important;align-items:center;justify-content:center;min-width:110px;min-height:44px;
  background:var(--ewa-black)!important;color:var(--ewa-white)!important;border:1px solid var(--ewa-line-strong)!important;
  border-radius:12px!important;font-weight:800!important;cursor:pointer!important
}
body[data-ewa-theme="brand"] .ewa-stack-controls button:hover{background:var(--ewa-accent)!important;border-color:var(--ewa-accent)!important}
body[data-ewa-theme="brand"] .ewa-stack-controls [data-stack-count]{color:var(--ewa-muted)!important;font-size:12px}

/* Slider arrows in News/Posts remain visible too */
body[data-ewa-theme="brand"] .ewa-slider-btn{
  display:grid!important;place-items:center!important;width:46px!important;height:46px!important;
  border-radius:50%!important;border:1px solid var(--ewa-line-strong)!important;
  background:var(--ewa-black)!important;color:var(--ewa-white)!important;
  font-size:22px!important;cursor:pointer!important;z-index:8!important
}
body[data-ewa-theme="brand"] .ewa-slider-btn:hover{background:var(--ewa-accent)!important;border-color:var(--ewa-accent)!important}

@media(max-width:620px){
  body[data-ewa-theme="brand"] .ewa-class-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  body[data-ewa-theme="brand"] .ewa-class-tile{
    min-height:58px!important;max-height:68px;padding:6px!important;border-radius:9px!important;
    font-size:clamp(9px,2.9vw,12px)!important
  }
  body[data-ewa-theme="brand"] .ewa-news-detail-container{width:min(calc(100% - 24px),1000px)}
  body[data-ewa-theme="brand"] .ewa-news-detail-copy{font-size:16px}
  body[data-ewa-theme="brand"] .ewa-stack-controls{gap:8px}
  body[data-ewa-theme="brand"] .ewa-stack-controls button{min-width:88px;min-height:40px;font-size:12px}
}


/* EWA 2.9.11 — dashboard review + lecture performance */
body[data-ewa-theme="brand"] .ewa-review-attempt-btn,
body[data-ewa-theme="brand"] .ewa-review-close{appearance:none;background:transparent!important;border:0!important;padding:0;cursor:pointer;font:inherit}
body[data-ewa-theme="brand"] .ewa-review-attempt-btn{color:var(--ewa-accent)!important;font-weight:850}
body[data-ewa-theme="brand"] .ewa-review-close{min-height:42px;padding:0 16px;border:1px solid var(--ewa-line-strong)!important;border-radius:10px!important;color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-attempt-review-host:empty{display:none}
body[data-ewa-theme="brand"] .ewa-full-quiz-review{margin-top:18px;padding:22px;background:var(--ewa-panel)!important;border:1px solid var(--ewa-line)!important;border-radius:20px}
body[data-ewa-theme="brand"] .ewa-attempt-review-question{padding:20px 0;border-top:1px solid var(--ewa-line)}
body[data-ewa-theme="brand"] .ewa-attempt-review-question:first-of-type{border-top:0}
body[data-ewa-theme="brand"] .ewa-attempt-review-question h4{margin:10px 0 14px;font-size:18px;line-height:1.45;color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-lecture-performance{margin-top:28px}
body[data-ewa-theme="brand"] .ewa-lecture-performance-list{display:grid;gap:10px}
body[data-ewa-theme="brand"] .ewa-lecture-performance-list article{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;background:var(--ewa-panel)!important;border:1px solid var(--ewa-line)!important;border-radius:14px}
body[data-ewa-theme="brand"] .ewa-lecture-performance-list article>div{display:grid;gap:4px}
body[data-ewa-theme="brand"] .ewa-lecture-performance-list small,
body[data-ewa-theme="brand"] .ewa-lecture-performance-list span{color:var(--ewa-muted)!important}
body[data-ewa-theme="brand"] .ewa-lecture-performance-list strong{color:var(--ewa-white)!important;font-size:16px}
body[data-ewa-theme="brand"] .ewa-pulse-grid{grid-template-columns:repeat(3,minmax(0,1fr))}


/* EWA 2.9.12 — Mistake Diary: Course > Quiz > MCQ */
body[data-ewa-theme="brand"] .ewa-mistake-course-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body[data-ewa-theme="brand"] .ewa-mistake-course{
  background:var(--ewa-panel)!important;border:1px solid var(--ewa-line)!important;border-radius:18px;overflow:hidden
}
body[data-ewa-theme="brand"] .ewa-mistake-course>summary{
  list-style:none;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:14px;align-items:center;
  min-height:88px;padding:18px;cursor:pointer
}
body[data-ewa-theme="brand"] .ewa-mistake-course>summary::-webkit-details-marker,
body[data-ewa-theme="brand"] .ewa-mistake-quiz>summary::-webkit-details-marker{display:none}
body[data-ewa-theme="brand"] .ewa-mistake-folder-icon{
  width:40px;height:40px;border-radius:10px;display:grid;place-items:center;background:var(--ewa-accent)!important;
  color:var(--ewa-white)!important;font-size:18px
}
body[data-ewa-theme="brand"] .ewa-mistake-course-copy{display:grid;gap:3px;min-width:0}
body[data-ewa-theme="brand"] .ewa-mistake-course-copy small{color:var(--ewa-muted)!important}
body[data-ewa-theme="brand"] .ewa-mistake-course-copy strong{color:var(--ewa-white)!important;font-size:17px;overflow-wrap:anywhere}
body[data-ewa-theme="brand"] .ewa-mistake-course>summary>b{color:var(--ewa-accent)!important;font-size:12px;white-space:nowrap}
body[data-ewa-theme="brand"] .ewa-mistake-course-body{padding:0 14px 14px;border-top:1px solid var(--ewa-line)}
body[data-ewa-theme="brand"] .ewa-mistake-quiz-list{display:grid;gap:9px;padding-top:14px}
body[data-ewa-theme="brand"] .ewa-mistake-quiz{background:var(--ewa-black)!important;border:1px solid var(--ewa-line)!important;border-radius:13px;overflow:hidden}
body[data-ewa-theme="brand"] .ewa-mistake-quiz>summary{list-style:none;display:flex;justify-content:space-between;gap:14px;align-items:center;padding:15px 16px;cursor:pointer}
body[data-ewa-theme="brand"] .ewa-mistake-quiz>summary span{display:grid;gap:3px;min-width:0}
body[data-ewa-theme="brand"] .ewa-mistake-quiz>summary small{color:var(--ewa-muted)!important}
body[data-ewa-theme="brand"] .ewa-mistake-quiz>summary strong{color:var(--ewa-white)!important;overflow-wrap:anywhere}
body[data-ewa-theme="brand"] .ewa-mistake-quiz>summary>b{color:var(--ewa-accent)!important;font-size:12px;white-space:nowrap}
body[data-ewa-theme="brand"] .ewa-mistake-quiz .ewa-diary-items{padding:0 14px 14px;border-top:1px solid var(--ewa-line)}
body[data-ewa-theme="brand"] .ewa-diary-clean{display:grid;gap:4px;padding:18px 4px 6px}
body[data-ewa-theme="brand"] .ewa-diary-clean strong{color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-diary-clean span{color:var(--ewa-muted)!important;font-size:13px}


/* EWA 2.9.13 — dashboard courses mirror homepage course cards */
body[data-ewa-theme="brand"] .ewa-dashboard-course-grid{margin-top:0}
body[data-ewa-theme="brand"] .ewa-dashboard-course-card .ewa-course-body p,
body[data-ewa-theme="brand"] .ewa-dashboard-course-card .ewa-progress{display:none!important}


/* EWA 2.9.14 — combined UX fixes */

/* Course Player: reserve real space for content type so title can never overlap it. */
body[data-ewa-theme="brand"] .ewa-lesson-block-button{
  grid-template-columns:112px minmax(0,1fr) auto!important;
  column-gap:18px!important;
}
body[data-ewa-theme="brand"] .ewa-lesson-block-button>.ewa-block-type{
  display:block!important;
  width:auto!important;
  min-width:0!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
  line-height:1.35!important;
  font-size:12px!important;
  letter-spacing:.10em!important;
  text-transform:uppercase!important;
}
body[data-ewa-theme="brand"] .ewa-lesson-block-button>strong{
  min-width:0!important;
  width:100%!important;
  display:block!important;
  font-size:15px!important;
  line-height:1.4!important;
  overflow-wrap:anywhere!important;
}
body[data-ewa-theme="brand"] .ewa-lesson-block-button>span:last-child{
  justify-self:end!important;
  white-space:nowrap!important;
}

/* Quiz Review: clear correct/incorrect hierarchy and quiz-option-sized typography. */
body[data-ewa-theme="brand"] .ewa-full-quiz-review{
  --ewa-review-green:#15803d;
  --ewa-review-green-soft:rgba(21,128,61,.12);
  --ewa-review-red:#b91c1c;
  --ewa-review-red-soft:rgba(185,28,28,.12);
  --ewa-review-yellow:#facc15;
  --ewa-review-text:var(--ewa-white);
  background:#080b10!important;
  color:var(--ewa-review-text)!important;
  border:1px solid var(--ewa-line-strong)!important;
}
body[data-ewa-theme="brand"] .ewa-full-quiz-review .ewa-dashboard-section-head :where(h3,p,small,strong,span){
  color:var(--ewa-white)!important;
}
body[data-ewa-theme="brand"] .ewa-attempt-review-question{
  margin:16px 0!important;
  padding:20px!important;
  border:2px solid transparent!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.035)!important;
}
body[data-ewa-theme="brand"] .ewa-attempt-review-question.is-correct{
  border-color:var(--ewa-review-green)!important;
  background:var(--ewa-review-green-soft)!important;
}
body[data-ewa-theme="brand"] .ewa-attempt-review-question.is-wrong{
  border-color:var(--ewa-review-red)!important;
  background:var(--ewa-review-red-soft)!important;
}
body[data-ewa-theme="brand"] .ewa-attempt-review-question :where(
  .ewa-diary-qhead span,
  .ewa-diary-qhead small,
  h4,
  .ewa-diary-answer,
  .ewa-diary-answer b,
  .ewa-explanation summary,
  .ewa-explanation p
){
  font-size:clamp(17px,1.55vw,21px)!important;
  line-height:1.45!important;
  font-weight:650!important;
}
body[data-ewa-theme="brand"] .ewa-attempt-review-question h4{
  margin:14px 0 18px!important;
  color:var(--ewa-white)!important;
  font-weight:800!important;
  letter-spacing:-.015em!important;
}
body[data-ewa-theme="brand"] .ewa-attempt-review-question .ewa-diary-qhead :where(span,small){
  color:var(--ewa-white)!important;
}
body[data-ewa-theme="brand"] .ewa-attempt-review-question .ewa-review-student-answer,
body[data-ewa-theme="brand"] .ewa-attempt-review-question .ewa-review-correct-answer{
  display:block!important;
  width:100%!important;
  margin:10px 0!important;
  padding:16px 18px!important;
  border-radius:14px!important;
  border:2px solid transparent!important;
  box-shadow:none!important;
}
body[data-ewa-theme="brand"] .ewa-attempt-review-question .ewa-review-student-answer.is-correct,
body[data-ewa-theme="brand"] .ewa-attempt-review-question .ewa-review-correct-answer.is-correct{
  background:var(--ewa-review-green)!important;
  border-color:#22c55e!important;
  color:#fff!important;
}
body[data-ewa-theme="brand"] .ewa-attempt-review-question .ewa-review-student-answer.is-wrong{
  background:var(--ewa-review-red)!important;
  border-color:#ef4444!important;
  color:#fff!important;
}
body[data-ewa-theme="brand"] .ewa-attempt-review-question :where(
  .ewa-review-student-answer.is-correct,
  .ewa-review-correct-answer.is-correct,
  .ewa-review-student-answer.is-wrong
) :where(b,strong,span,p){
  color:#fff!important;
}
body[data-ewa-theme="brand"] .ewa-attempt-review-question .ewa-review-explanation{
  margin-top:12px!important;
  padding:0!important;
  border:2px solid var(--ewa-review-yellow)!important;
  border-radius:14px!important;
  overflow:hidden!important;
  background:var(--ewa-review-yellow)!important;
  color:#111!important;
  box-shadow:none!important;
}
body[data-ewa-theme="brand"] .ewa-attempt-review-question .ewa-review-explanation summary{
  padding:15px 18px!important;
  cursor:pointer!important;
  color:#111!important;
  font-weight:850!important;
  background:var(--ewa-review-yellow)!important;
}
body[data-ewa-theme="brand"] .ewa-attempt-review-question .ewa-review-explanation p{
  margin:0!important;
  padding:0 18px 18px!important;
  color:#111!important;
  background:var(--ewa-review-yellow)!important;
}
body[data-ewa-theme="brand"] .ewa-attempt-review-question .ewa-review-explanation :where(b,strong,span,small){
  color:#111!important;
}

/* Non-dark fallback: review text follows a light-surface contrast model. */
body:not([data-ewa-theme="brand"]) .ewa-full-quiz-review{
  color:#111!important;
}
body:not([data-ewa-theme="brand"]) .ewa-attempt-review-question :where(h4,.ewa-diary-qhead span,.ewa-diary-qhead small){
  color:#111!important;
}


/* EWA 2.9.15 — instant quiz feedback + performance analytics */
body[data-ewa-theme="brand"] .ewa-option-card{
  grid-template-columns:54px minmax(0,1fr) 34px!important;
  text-align:left!important;
  justify-items:stretch!important;
}
body[data-ewa-theme="brand"] .ewa-option-card .ewa-option-letter{
  justify-self:start!important;
}
body[data-ewa-theme="brand"] .ewa-option-card .ewa-option-text{
  text-align:left!important;
  justify-self:stretch!important;
  width:100%!important;
}
body[data-ewa-theme="brand"] .ewa-option-card.is-correct{
  background:#16a34a!important;
  border-color:#22c55e!important;
}
body[data-ewa-theme="brand"] .ewa-option-card.is-correct :where(.ewa-option-text,.ewa-option-letter,.ewa-option-state){
  color:#fff!important;
}
body[data-ewa-theme="brand"] .ewa-option-card.is-incorrect{
  background:#dc2626!important;
  border-color:#ef4444!important;
}
body[data-ewa-theme="brand"] .ewa-option-card.is-incorrect :where(.ewa-option-text,.ewa-option-letter,.ewa-option-state){
  color:#fff!important;
}
body[data-ewa-theme="brand"] .ewa-palette-btn.is-correct{
  background:#16a34a!important;
  border-color:#22c55e!important;
  color:#fff!important;
}
body[data-ewa-theme="brand"] .ewa-palette-btn.is-wrong{
  background:#dc2626!important;
  border-color:#ef4444!important;
  color:#fff!important;
}
body[data-ewa-theme="brand"] .ewa-palette-btn.is-correct.is-current,
body[data-ewa-theme="brand"] .ewa-palette-btn.is-wrong.is-current{
  box-shadow:0 0 0 2px #fff inset!important;
}
body[data-ewa-theme="brand"] .ewa-quiz-controls{
  display:grid!important;
  grid-template-columns:1fr auto 1fr!important;
  align-items:center!important;
}
body[data-ewa-theme="brand"] .ewa-quiz-controls [data-quiz-prev]{justify-self:start!important}
body[data-ewa-theme="brand"] .ewa-quiz-controls [data-quiz-next]{justify-self:end!important}
body[data-ewa-theme="brand"] .ewa-btn-finish{
  justify-self:center!important;
  background:#fbbf24!important;
  border-color:#fbbf24!important;
  color:#111!important;
}
body[data-ewa-theme="brand"] .ewa-btn-finish:hover{
  background:#f59e0b!important;
  border-color:#f59e0b!important;
  color:#111!important;
}
body[data-ewa-theme="brand"] .ewa-quiz-performance-card{
  padding:24px!important;
  border:1px solid var(--ewa-line-strong)!important;
  border-radius:20px!important;
  background:var(--ewa-panel)!important;
  color:var(--ewa-white)!important;
}
body[data-ewa-theme="brand"] .ewa-performance-hero{
  display:flex;justify-content:space-between;gap:24px;align-items:center
}
body[data-ewa-theme="brand"] .ewa-performance-hero h2{margin:5px 0 6px!important;color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-performance-hero p{color:var(--ewa-muted)!important}
body[data-ewa-theme="brand"] .ewa-performance-percent{
  min-width:150px;text-align:center;padding:18px;border-radius:16px;background:#fbbf24!important;color:#111!important
}
body[data-ewa-theme="brand"] .ewa-performance-percent strong{display:block;font-size:42px;line-height:1;color:#111!important}
body[data-ewa-theme="brand"] .ewa-performance-percent span{display:block;margin-top:5px;font-weight:800;color:#111!important}
body[data-ewa-theme="brand"] .ewa-performance-stats{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:20px
}
body[data-ewa-theme="brand"] .ewa-performance-stats>div{
  padding:16px;border:1px solid var(--ewa-line)!important;border-radius:14px;background:var(--ewa-black)!important
}
body[data-ewa-theme="brand"] .ewa-performance-stats>div.is-correct{background:#22c55e!important;border-color:#22c55e!important}
body[data-ewa-theme="brand"] .ewa-performance-stats>div.is-wrong{background:#ef4444!important;border-color:#ef4444!important}
body[data-ewa-theme="brand"] .ewa-performance-stats :where(b,span){display:block;color:var(--ewa-white)!important}
body[data-ewa-theme="brand"] .ewa-performance-stats b{font-size:26px}
body[data-ewa-theme="brand"] .ewa-performance-stats span{font-size:12px;margin-top:4px}
body[data-ewa-theme="brand"] .ewa-performance-stats>div.is-correct :where(b,span),
body[data-ewa-theme="brand"] .ewa-performance-stats>div.is-wrong :where(b,span){color:#111!important}
body[data-ewa-theme="brand"] .ewa-performance-footer{
  display:flex;justify-content:space-between;gap:14px;margin-top:16px;padding-top:16px;border-top:1px solid var(--ewa-line)
}
body[data-ewa-theme="brand"] .ewa-performance-footer :where(span,strong){color:var(--ewa-white)!important}

body[data-ewa-theme="brand"] .ewa-mcq-performance-boxes{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px
}
body[data-ewa-theme="brand"] .ewa-mcq-performance-boxes>div{
  padding:18px;border-radius:14px;border:1px solid transparent
}
body[data-ewa-theme="brand"] .ewa-mcq-performance-boxes>.is-total{background:#fbbf24!important;border-color:#fbbf24!important}
body[data-ewa-theme="brand"] .ewa-mcq-performance-boxes>.is-correct{background:#22c55e!important;border-color:#22c55e!important}
body[data-ewa-theme="brand"] .ewa-mcq-performance-boxes>.is-wrong{background:#ef4444!important;border-color:#ef4444!important}
body[data-ewa-theme="brand"] .ewa-mcq-performance-boxes :where(strong,span){display:block;color:#111!important}
body[data-ewa-theme="brand"] .ewa-mcq-performance-boxes strong{font-size:30px;line-height:1}
body[data-ewa-theme="brand"] .ewa-mcq-performance-boxes span{margin-top:7px;font-size:13px;font-weight:800}


/* EWA 2.9.16 — Interactive Text is always a clean light reading surface */
body[data-ewa-theme="brand"] .ewa-content-viewer-stage:has(.ewa-code-frame),
body[data-ewa-theme="brand"] .ewa-content-viewer-stage:has(.ewa-content-viewer-frame){
  background:#fff!important;
  border-color:#e7e7e7!important;
}
body[data-ewa-theme="brand"] :where(.ewa-code-frame,.ewa-content-viewer-frame){
  background:#fff!important;
  color-scheme:light!important;
}


/* EWA 2.9.17 — global floating social dock */
.ewa-floating-socials{
  position:fixed;
  right:24px;
  bottom:26px;
  z-index:9998;
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
}
.ewa-floating-social{
  width:54px;
  height:54px;
  flex:0 0 54px;
  border-radius:50%;
  display:grid;
  place-items:center;
  text-decoration:none!important;
  border:1px solid rgba(255,255,255,.20);
  box-shadow:0 10px 28px rgba(0,0,0,.24);
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}
.ewa-floating-social:hover,
.ewa-floating-social:focus-visible{
  transform:translateY(-3px) scale(1.055);
  box-shadow:0 14px 34px rgba(0,0,0,.30);
  outline:none;
}
.ewa-floating-social img{
  display:block;
  width:25px;
  height:25px;
  object-fit:contain;
  filter:brightness(0) invert(1);
}
.ewa-floating-social-whatsapp{background:#25D366!important}
.ewa-floating-social-instagram{
  background:radial-gradient(circle at 30% 107%,#fdf497 0 5%,#fdf497 5% 15%,#fd5949 45%,#d6249f 60%,#285AEB 90%)!important
}
.ewa-floating-social-facebook{background:#1877F2!important}
.ewa-floating-social-youtube{background:#FF0000!important}

@media(max-width:700px){
 .ewa-floating-socials{
   right:14px;
   bottom:18px;
   gap:8px;
 }
 .ewa-floating-social{
   width:48px;
   height:48px;
   flex-basis:48px;
 }
 .ewa-floating-social img{
   width:22px;
   height:22px;
 }
}
@media(max-width:380px){
 .ewa-floating-socials{right:10px;bottom:12px}
 .ewa-floating-social{width:44px;height:44px;flex-basis:44px}
 .ewa-floating-social img{width:20px;height:20px}
}


/* EWA 2.9.18 — one visual language for every MCQ review surface */
body[data-ewa-theme="brand"] :where(.ewa-full-quiz-review,.ewa-quiz-review,.ewa-mistake-diary){
  --ewa-review-green:#15803d;
  --ewa-review-green-border:#22c55e;
  --ewa-review-green-soft:rgba(21,128,61,.12);
  --ewa-review-red:#c81e1e;
  --ewa-review-red-border:#ef4444;
  --ewa-review-red-soft:rgba(185,28,28,.12);
  --ewa-review-yellow:#facc15;
}

body[data-ewa-theme="brand"] :where(.ewa-full-quiz-review,.ewa-quiz-review,.ewa-mistake-diary) .ewa-unified-review-question,
body[data-ewa-theme="brand"] .ewa-full-quiz-review .ewa-attempt-review-question{
  margin:18px 0!important;
  padding:22px 24px!important;
  border:2px solid transparent!important;
  border-radius:20px!important;
  box-shadow:none!important;
}

body[data-ewa-theme="brand"] :where(.ewa-full-quiz-review,.ewa-quiz-review,.ewa-mistake-diary) .ewa-unified-review-question.is-correct,
body[data-ewa-theme="brand"] .ewa-full-quiz-review .ewa-attempt-review-question.is-correct{
  border-color:var(--ewa-review-green)!important;
  background:var(--ewa-review-green-soft)!important;
}
body[data-ewa-theme="brand"] :where(.ewa-full-quiz-review,.ewa-quiz-review,.ewa-mistake-diary) .ewa-unified-review-question.is-wrong,
body[data-ewa-theme="brand"] .ewa-full-quiz-review .ewa-attempt-review-question.is-wrong{
  border-color:var(--ewa-review-red)!important;
  background:var(--ewa-review-red-soft)!important;
}

/* Match the actual quiz option typography on every review screen. */
body[data-ewa-theme="brand"] :where(.ewa-full-quiz-review,.ewa-quiz-review,.ewa-mistake-diary) .ewa-unified-review-question :where(
 .ewa-diary-qhead span,
 .ewa-diary-qhead small,
 h4,
 .ewa-diary-answer,
 .ewa-diary-answer b,
 .ewa-explanation summary,
 .ewa-explanation p
),
body[data-ewa-theme="brand"] .ewa-full-quiz-review .ewa-attempt-review-question :where(
 .ewa-diary-qhead span,
 .ewa-diary-qhead small,
 h4,
 .ewa-diary-answer,
 .ewa-diary-answer b,
 .ewa-explanation summary,
 .ewa-explanation p
){
  font-size:clamp(17px,1.55vw,21px)!important;
  line-height:1.45!important;
}

body[data-ewa-theme="brand"] :where(.ewa-full-quiz-review,.ewa-quiz-review,.ewa-mistake-diary) .ewa-unified-review-question h4,
body[data-ewa-theme="brand"] .ewa-full-quiz-review .ewa-attempt-review-question h4{
  margin:16px 0 18px!important;
  color:var(--ewa-white)!important;
  font-weight:800!important;
  letter-spacing:-.01em!important;
}
body[data-ewa-theme="brand"] :where(.ewa-full-quiz-review,.ewa-quiz-review,.ewa-mistake-diary) .ewa-unified-review-question .ewa-diary-qhead,
body[data-ewa-theme="brand"] .ewa-full-quiz-review .ewa-attempt-review-question .ewa-diary-qhead{
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  gap:16px!important;
}
body[data-ewa-theme="brand"] :where(.ewa-full-quiz-review,.ewa-quiz-review,.ewa-mistake-diary) .ewa-unified-review-question .ewa-diary-qhead :where(span,small),
body[data-ewa-theme="brand"] .ewa-full-quiz-review .ewa-attempt-review-question .ewa-diary-qhead :where(span,small){
  color:var(--ewa-white)!important;
  font-weight:850!important;
  text-transform:uppercase!important;
}

/* Student answer: green when correct, red when wrong. Correct answer: always green. */
body[data-ewa-theme="brand"] :where(.ewa-full-quiz-review,.ewa-quiz-review,.ewa-mistake-diary) :where(.ewa-review-student-answer,.ewa-review-correct-answer){
  width:100%!important;
  display:block!important;
  padding:17px 20px!important;
  margin:11px 0!important;
  border:2px solid transparent!important;
  border-radius:15px!important;
  box-shadow:none!important;
  font-weight:700!important;
}
body[data-ewa-theme="brand"] :where(.ewa-full-quiz-review,.ewa-quiz-review,.ewa-mistake-diary) :where(.ewa-review-student-answer.is-correct,.ewa-review-correct-answer.is-correct){
  background:var(--ewa-review-green)!important;
  border-color:var(--ewa-review-green-border)!important;
  color:#fff!important;
}
body[data-ewa-theme="brand"] :where(.ewa-full-quiz-review,.ewa-quiz-review,.ewa-mistake-diary) .ewa-review-student-answer.is-wrong{
  background:var(--ewa-review-red)!important;
  border-color:var(--ewa-review-red-border)!important;
  color:#fff!important;
}
body[data-ewa-theme="brand"] :where(.ewa-full-quiz-review,.ewa-quiz-review,.ewa-mistake-diary) :where(.ewa-review-student-answer,.ewa-review-correct-answer) :where(b,strong,span,p){
  color:#fff!important;
}

/* Explanation is consistently yellow on all review surfaces. */
body[data-ewa-theme="brand"] :where(.ewa-full-quiz-review,.ewa-quiz-review,.ewa-mistake-diary) .ewa-review-explanation{
  margin-top:13px!important;
  padding:0!important;
  border:2px solid var(--ewa-review-yellow)!important;
  border-radius:15px!important;
  overflow:hidden!important;
  background:var(--ewa-review-yellow)!important;
  box-shadow:none!important;
  color:#111!important;
}
body[data-ewa-theme="brand"] :where(.ewa-full-quiz-review,.ewa-quiz-review,.ewa-mistake-diary) .ewa-review-explanation summary{
  padding:16px 20px!important;
  cursor:pointer!important;
  background:var(--ewa-review-yellow)!important;
  color:#111!important;
  font-weight:850!important;
}
body[data-ewa-theme="brand"] :where(.ewa-full-quiz-review,.ewa-quiz-review,.ewa-mistake-diary) .ewa-review-explanation p{
  margin:0!important;
  padding:0 20px 18px!important;
  background:var(--ewa-review-yellow)!important;
  color:#111!important;
}

/* Keep review action separate from the answer/explanation color system. */
body[data-ewa-theme="brand"] .ewa-unified-review-question .ewa-diary-master{
  margin-top:14px!important;
}


/* EWA 2.9.19 — prominent dark-purple Mistake Diary dashboard block */
body[data-ewa-theme="brand"] .ewa-dashboard-mistake-diary{
  background:linear-gradient(145deg,#24113f 0%,#190b30 58%,#110720 100%)!important;
  border:1px solid #62368a!important;
  box-shadow:0 18px 52px rgba(61,27,98,.30)!important;
}
body[data-ewa-theme="brand"] .ewa-dashboard-mistake-diary .ewa-dashboard-section-head :where(h2,strong){
  color:#fff!important;
}
body[data-ewa-theme="brand"] .ewa-dashboard-mistake-diary .ewa-dashboard-section-head p{
  color:#cbbcdf!important;
}
body[data-ewa-theme="brand"] .ewa-dashboard-mistake-diary .ewa-dashboard-section-head .ewa-kicker{
  color:#d9c4f3!important;
}
body[data-ewa-theme="brand"] .ewa-dashboard-mistake-diary .ewa-diary-count{
  background:#3b1c59!important;
  border:1px solid #71449a!important;
  color:#eadcff!important;
}
body[data-ewa-theme="brand"] .ewa-dashboard-mistake-diary .ewa-mistake-course>summary{
  background:#2c1848!important;
  border-color:#68428c!important;
}
body[data-ewa-theme="brand"] .ewa-dashboard-mistake-diary .ewa-mistake-course>summary:hover{
  background:#38205a!important;
  border-color:#8c61b1!important;
}


/* EWA 2.9.20 — automatic dark-color lesson palette */
body[data-ewa-theme="brand"] .ewa-player-main .ewa-player-lesson{
  --lesson-bg:#1a1228;
  --lesson-border:#4c3567;
  --lesson-head:#2a1b3b;
  background:linear-gradient(145deg,var(--lesson-head) 0%,var(--lesson-bg) 66%,#09080d 100%)!important;
  border:1px solid var(--lesson-border)!important;
  box-shadow:0 18px 44px rgba(0,0,0,.22)!important;
  border-radius:22px!important;
  overflow:hidden;
}
body[data-ewa-theme="brand"] .ewa-player-main .ewa-player-lesson:nth-child(8n+1){
  --lesson-bg:#170b2b;--lesson-border:#5b3486;--lesson-head:#25133f;
}
body[data-ewa-theme="brand"] .ewa-player-main .ewa-player-lesson:nth-child(8n+2){
  --lesson-bg:#0b1f2d;--lesson-border:#2e6178;--lesson-head:#113347;
}
body[data-ewa-theme="brand"] .ewa-player-main .ewa-player-lesson:nth-child(8n+3){
  --lesson-bg:#102619;--lesson-border:#386a4a;--lesson-head:#173824;
}
body[data-ewa-theme="brand"] .ewa-player-main .ewa-player-lesson:nth-child(8n+4){
  --lesson-bg:#2b140b;--lesson-border:#82502f;--lesson-head:#3c1f10;
}
body[data-ewa-theme="brand"] .ewa-player-main .ewa-player-lesson:nth-child(8n+5){
  --lesson-bg:#2a0d1d;--lesson-border:#7a3557;--lesson-head:#3a1429;
}
body[data-ewa-theme="brand"] .ewa-player-main .ewa-player-lesson:nth-child(8n+6){
  --lesson-bg:#111b31;--lesson-border:#405b8b;--lesson-head:#1b2a4a;
}
body[data-ewa-theme="brand"] .ewa-player-main .ewa-player-lesson:nth-child(8n+7){
  --lesson-bg:#25200b;--lesson-border:#74612e;--lesson-head:#373013;
}
body[data-ewa-theme="brand"] .ewa-player-main .ewa-player-lesson:nth-child(8n){
  --lesson-bg:#111f1f;--lesson-border:#3f6c6c;--lesson-head:#193030;
}

body[data-ewa-theme="brand"] .ewa-player-main .ewa-player-lesson .ewa-player-lesson-head{
  background:transparent!important;
  border-bottom:1px solid color-mix(in srgb,var(--lesson-border) 72%,transparent)!important;
}
body[data-ewa-theme="brand"] .ewa-player-main .ewa-player-lesson .ewa-player-lesson-head :where(h2,p,span){
  color:#fff!important;
}
body[data-ewa-theme="brand"] .ewa-player-main .ewa-player-lesson .ewa-player-lesson-head p{
  color:rgba(255,255,255,.72)!important;
}
body[data-ewa-theme="brand"] .ewa-player-main .ewa-player-lesson .ewa-complete-btn{
  border-color:var(--lesson-border)!important;
  background:rgba(0,0,0,.20)!important;
  color:#fff!important;
}
body[data-ewa-theme="brand"] .ewa-player-main .ewa-player-lesson .ewa-complete-btn:hover{
  background:rgba(255,255,255,.07)!important;
}
body[data-ewa-theme="brand"] .ewa-player-main .ewa-player-lesson .ewa-player-block{
  background:rgba(0,0,0,.10)!important;
  border-color:color-mix(in srgb,var(--lesson-border) 58%,transparent)!important;
}


/* EWA 2.9.21 — compact square homepage class tiles with Google/Microsoft-like colors */
body[data-ewa-theme="brand"] .ewa-home-classes .ewa-class-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,150px))!important;
  gap:16px!important;
  justify-content:start!important;
}
body[data-ewa-theme="brand"] .ewa-home-classes .ewa-class-tile{
  width:150px!important;
  aspect-ratio:1/1!important;
  min-height:0!important;
  padding:14px!important;
  border-radius:18px!important;
  display:grid!important;
  place-items:center!important;
  text-align:center!important;
  border:0!important;
  box-shadow:0 12px 28px rgba(0,0,0,.18)!important;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}
body[data-ewa-theme="brand"] .ewa-home-classes .ewa-class-tile:hover{
  transform:translateY(-4px) scale(1.02);
  box-shadow:0 16px 34px rgba(0,0,0,.24)!important;
  filter:saturate(1.06);
}
body[data-ewa-theme="brand"] .ewa-home-classes .ewa-class-tile span{
  color:#111!important;
  font-weight:900!important;
  font-size:16px!important;
  line-height:1.15!important;
}
body[data-ewa-theme="brand"] .ewa-home-classes .ewa-class-color-1{background:#4285F4!important}
body[data-ewa-theme="brand"] .ewa-home-classes .ewa-class-color-2{background:#EA4335!important}
body[data-ewa-theme="brand"] .ewa-home-classes .ewa-class-color-3{background:#FBBC05!important}
body[data-ewa-theme="brand"] .ewa-home-classes .ewa-class-color-4{background:#34A853!important}
body[data-ewa-theme="brand"] .ewa-home-classes .ewa-class-color-5{background:#00A4EF!important}
body[data-ewa-theme="brand"] .ewa-home-classes .ewa-class-color-6{background:#F25022!important}
body[data-ewa-theme="brand"] .ewa-home-classes .ewa-class-color-7{background:#7FBA00!important}
body[data-ewa-theme="brand"] .ewa-home-classes .ewa-class-color-8{background:#FFB900!important}


/* EWA 2.9.22 — centered homepage class grid with unique per-class colors */
body[data-ewa-theme="brand"] .ewa-home-classes .ewa-class-grid{
  grid-template-columns:repeat(4,150px)!important;
  justify-content:center!important;
  justify-items:center!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
body[data-ewa-theme="brand"] .ewa-home-classes .ewa-class-tile{
  background:var(--ewa-class-tile-color)!important;
  color:#111!important;
}
body[data-ewa-theme="brand"] .ewa-home-classes .ewa-class-tile span{
  color:#111!important;
}


/* EWA 2.9.24 — compact News/Post cards using the same dark lesson palette */
body[data-ewa-theme="brand"] :where(.ewa-news-section,.ewa-posts-section) .ewa-slider{
  overflow:hidden!important;
}
body[data-ewa-theme="brand"] :where(.ewa-news-section,.ewa-posts-section) .ewa-slider-track{
  align-items:stretch!important;
}

/* News and Posts now share the same compact card footprint. */
body[data-ewa-theme="brand"] :where(.ewa-news-card,.ewa-post-card){
  --content-card-bg:#170b2b;
  --content-card-border:#5b3486;
  --content-card-head:#25133f;
  flex:0 0 340px!important;
  width:340px!important;
  max-width:340px!important;
  display:flex!important;
  flex-direction:column!important;
  grid-template-columns:none!important;
  min-height:0!important;
  background:linear-gradient(145deg,var(--content-card-head) 0%,var(--content-card-bg) 70%,#09080d 100%)!important;
  border:1px solid var(--content-card-border)!important;
  border-radius:20px!important;
  box-shadow:0 16px 38px rgba(0,0,0,.24)!important;
  overflow:hidden!important;
}

/* Same 8-tone sequence as course lessons. */
body[data-ewa-theme="brand"] :where(.ewa-news-section,.ewa-posts-section) .ewa-slider-track>:nth-child(8n+1){
  --content-card-bg:#170b2b;--content-card-border:#5b3486;--content-card-head:#25133f;
}
body[data-ewa-theme="brand"] :where(.ewa-news-section,.ewa-posts-section) .ewa-slider-track>:nth-child(8n+2){
  --content-card-bg:#0b1f2d;--content-card-border:#2e6178;--content-card-head:#113347;
}
body[data-ewa-theme="brand"] :where(.ewa-news-section,.ewa-posts-section) .ewa-slider-track>:nth-child(8n+3){
  --content-card-bg:#102619;--content-card-border:#386a4a;--content-card-head:#173824;
}
body[data-ewa-theme="brand"] :where(.ewa-news-section,.ewa-posts-section) .ewa-slider-track>:nth-child(8n+4){
  --content-card-bg:#2b140b;--content-card-border:#82502f;--content-card-head:#3c1f10;
}
body[data-ewa-theme="brand"] :where(.ewa-news-section,.ewa-posts-section) .ewa-slider-track>:nth-child(8n+5){
  --content-card-bg:#2a0d1d;--content-card-border:#7a3557;--content-card-head:#3a1429;
}
body[data-ewa-theme="brand"] :where(.ewa-news-section,.ewa-posts-section) .ewa-slider-track>:nth-child(8n+6){
  --content-card-bg:#111b31;--content-card-border:#405b8b;--content-card-head:#1b2a4a;
}
body[data-ewa-theme="brand"] :where(.ewa-news-section,.ewa-posts-section) .ewa-slider-track>:nth-child(8n+7){
  --content-card-bg:#25200b;--content-card-border:#74612e;--content-card-head:#373013;
}
body[data-ewa-theme="brand"] :where(.ewa-news-section,.ewa-posts-section) .ewa-slider-track>:nth-child(8n){
  --content-card-bg:#111f1f;--content-card-border:#3f6c6c;--content-card-head:#193030;
}

body[data-ewa-theme="brand"] .ewa-news-card-link{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  color:inherit!important;
  text-decoration:none!important;
}

body[data-ewa-theme="brand"] :where(.ewa-news-image,.ewa-post-image){
  display:block!important;
  width:100%!important;
  height:190px!important;
  min-height:190px!important;
  max-height:190px!important;
  flex:0 0 190px!important;
  background:#090b0f!important;
  overflow:hidden!important;
}
body[data-ewa-theme="brand"] :where(.ewa-news-image,.ewa-post-image) img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}

body[data-ewa-theme="brand"] :where(.ewa-news-body,.ewa-post-body){
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  padding:20px!important;
  background:transparent!important;
}

body[data-ewa-theme="brand"] :where(.ewa-news-body,.ewa-post-body) h3{
  margin:0 0 16px!important;
  font-size:21px!important;
  line-height:1.2!important;
  color:#fff!important;
}
body[data-ewa-theme="brand"] .ewa-post-body h3 a{
  color:#fff!important;
  text-decoration:none!important;
}
body[data-ewa-theme="brand"] .ewa-post-body p{
  font-size:12px!important;
  line-height:1.55!important;
  color:rgba(255,255,255,.70)!important;
  margin:0 0 16px!important;
}
body[data-ewa-theme="brand"] .ewa-post-date{
  color:rgba(255,255,255,.65)!important;
  margin-bottom:9px!important;
}
body[data-ewa-theme="brand"] :where(.ewa-news-read,.ewa-post-body .ewa-course-link){
  margin-top:auto!important;
  color:#fff!important;
  font-weight:850!important;
  font-size:13px!important;
}
body[data-ewa-theme="brand"] :where(.ewa-news-card,.ewa-post-card):hover{
  transform:translateY(-4px)!important;
  border-color:color-mix(in srgb,var(--content-card-border) 80%,#fff 20%)!important;
  box-shadow:0 20px 46px rgba(0,0,0,.30)!important;
}


/* EWA 2.9.25 — homepage course preview uses the same course-player content system */
body[data-ewa-theme="brand"] .ewa-course-content-player-style .ewa-public-player-layout{
  margin-top:8px!important;
}
body[data-ewa-theme="brand"] .ewa-course-content-player-style .ewa-public-player-main{
  min-width:0!important;
}
body[data-ewa-theme="brand"] .ewa-course-content-player-style .ewa-lesson-block-button.is-locked{
  cursor:not-allowed!important;
  opacity:.62!important;
}
body[data-ewa-theme="brand"] .ewa-course-content-player-style .ewa-lock-label{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:42px!important;
  padding:0 15px!important;
  border:1px solid var(--ewa-line-strong)!important;
  border-radius:999px!important;
  color:var(--ewa-white)!important;
  font-size:10px!important;
  letter-spacing:.12em!important;
}

/* v3.3.0 isolated mobile social dock correction — 50% mobile size only. */
@media (max-width:700px){
  .ewa-floating-socials{right:7px!important;bottom:9px!important;gap:4px!important}
  .ewa-floating-social{width:24px!important;height:24px!important;flex:0 0 24px!important;border-width:1px!important}
  .ewa-floating-social img{width:11px!important;height:11px!important}
}
@media (max-width:380px){
  .ewa-floating-socials{right:5px!important;bottom:6px!important}
  .ewa-floating-social{width:22px!important;height:22px!important;flex-basis:22px!important}
  .ewa-floating-social img{width:10px!important;height:10px!important}
}
