/* Shared brand treatment for catalog/account surfaces, not the study-session layout. */
html[data-smarti-ui="site"][data-theme] {
  --page:var(--sm-canvas); --surface:var(--sm-surface); --sidebar:var(--sm-surface);
  --ink:var(--sm-ink); --ink-soft:var(--sm-muted); --muted:var(--sm-muted);
  --line:var(--sm-line); --line-strong:var(--sm-blue); --blue:var(--sm-blue);
  --blue-soft:var(--sm-soft); --blue-deep:var(--sm-blue-deep); --shadow:var(--sm-shadow);
  --course-ink:var(--sm-ink); --course-muted:var(--sm-muted); --course-card:var(--sm-surface);
  --course-line:var(--sm-line); --course-blue:var(--sm-blue); --course-canvas:var(--sm-canvas);
}
html[data-smarti-ui="site"][data-theme] body { background:#fff; color:var(--sm-canvas-ink); font-family:var(--sm-font); }
html[data-smarti-ui="site"][data-theme] :is(h1,h2,h3,h4,button,input,select,textarea) { font-family:var(--sm-font); }
html[data-smarti-ui="site"][data-theme] :is(h1,h2,h3) { letter-spacing:-.025em; text-shadow:none; }
html[data-smarti-ui="site"][data-theme] :is(.course-app-shell,.course-catalog-main,.app-shell,.main-content) { background:#fff; color:var(--sm-canvas-ink); }
html[data-smarti-ui="site"][data-theme] :is(.course-catalog-card,.course-catalog-feature,.course-card,.exam-card,.finance-course-entry,.course-loading-shell,.workspace-panel,.settings-panel) { background:var(--sm-card-background); color:var(--sm-ink); border-color:var(--sm-line); border-radius:20px; box-shadow:var(--sm-shadow); }
html[data-smarti-ui="site"][data-theme] :is(.course-app-header,.topbar,.course-app-footer) { background:#fff; color:var(--sm-canvas-ink); border-color:#dce6f4; box-shadow:none; }
html[data-smarti-ui="site"][data-theme] :is(.course-brand,.brand-wordmark,.course-app-footer a) { color:var(--sm-canvas-ink); }
html[data-smarti-ui="site"][data-theme] :is(.button-primary,.course-primary-action,.course-summary-action) { background:linear-gradient(#086fed,#034cc3); color:#fff; border-color:#0861d4; border-radius:11px; text-shadow:none; }
html[data-smarti-ui="site"][data-theme] :is(.button-secondary,.course-secondary-action) { background:var(--sm-soft); color:var(--sm-ink); border-color:var(--sm-line); border-radius:10px; }
html[data-smarti-ui="site"][data-theme] :is(a,button,input,select,summary):focus-visible { outline:3px solid var(--sm-gold); outline-offset:3px; }
/* Account dialogs can open from any family; their children must share the surface. */
html[data-smarti-ui] :is(.cloud-dialog,.cloud-modal,.account-dialog,.account-dashboard,.account-sidebar,.account-dashboard-main,.account-section,.account-profile-actions,.account-payment-method,.account-subscription-card,.account-security-card,.guest-profile-card) { color:var(--sm-ink); background:var(--sm-card-background); border-color:var(--sm-line); }
html[data-smarti-ui] :is(.account-section-heading h3,.account-profile-actions h4,.account-detail-list dd,.account-identity-copy strong,.account-nav-button,.account-outline-action,.account-profile-form label) { color:var(--sm-ink); }
html[data-smarti-ui] :is(.account-section-heading p,.account-profile-actions p,.account-detail-list dt,.account-identity-copy span,.account-profile-form small,.account-sync-copy,.account-dashboard-message) { color:var(--sm-muted); }
html[data-smarti-ui] :is(.account-nav-button.is-active,.account-nav-button:hover,.account-outline-action,.account-profile-form input,.account-profile-form input[readonly]) { background:var(--sm-soft); color:var(--sm-ink); border-color:var(--sm-line); }
html[data-smarti-ui] :is(.account-form-actions .button-primary,.account-primary-action) { color:#fff; background:linear-gradient(#086fed,#034cc3); border-radius:10px; }
html[data-smarti-ui] :is(.account-danger-action,.account-danger-action:hover) { color:var(--sm-red); background:var(--sm-red-soft); border-color:var(--sm-red); }
html[data-smarti-ui] :is(.account-profile-form input,.account-nav-button,.account-outline-action) { font-family:var(--sm-font); }
@media(prefers-reduced-motion:reduce) { html[data-smarti-ui="site"][data-theme] { scroll-behavior:auto; } }

/* Older discovery cards must not retain their charcoal theme or decorative layers. */
html[data-smarti-ui="site"][data-theme] .course-entry-summary-card.course-product-view { background:var(--sm-card-background); color:var(--sm-ink); border:1px solid var(--sm-line); border-radius:20px; box-shadow:var(--sm-shadow); }
html[data-smarti-ui="site"][data-theme] .course-entry-summary-card.course-product-view::before,html[data-smarti-ui="site"][data-theme] .course-entry-summary-card.course-product-view::after { content:none; }
html[data-smarti-ui="site"][data-theme] .course-product-content :is(h1,h2,p,.course-product-status) { color:var(--sm-ink); font-family:var(--sm-font); text-shadow:none; }
html[data-smarti-ui="site"][data-theme] .course-product-content h2 { font-weight:750; }
html[data-smarti-ui="site"][data-theme] .course-product-art { max-height:260px; object-fit:contain; filter:none; }
html[data-smarti-ui="site"][data-theme] .course-app-header .course-menu-toggle { background:#f3f7ff; color:var(--sm-canvas-ink); border-color:#dce6f4; }
html[data-smarti-ui="site"][data-theme] .course-app-header .course-menu-toggle>span { background:currentColor; }

html[data-smarti-ui="site"][data-theme] .course-catalog-header .course-brand { display:grid; grid-template-columns:max-content .8em; align-items:end; gap:0; width:max-content; font-size:28px; font-weight:800; line-height:1; letter-spacing:-.05em; }
html[data-smarti-ui="site"][data-theme] .course-catalog-header .course-brand img { width:.8em; height:1.3em; object-fit:contain; }
html[data-smarti-ui="site"][data-theme] .course-catalog-header .site-brand-caption { grid-column:1/-1; margin-top:5px; color:#99630b; font-size:9px; text-align:center; letter-spacing:.25em; }

html[data-smarti-ui="site"][data-theme] .course-brand.smarti-marty-lockup{font-size:28px;color:var(--sm-canvas-ink)}
html[data-smarti-ui="site"][data-theme] .course-brand.smarti-marty-lockup .smarti-marty-i{width:.78em;height:1.42em}
html[data-smarti-ui="site"][data-theme] .course-brand.smarti-marty-lockup .smarti-marty-sub{color:#99630b}
