/* =========================================
   LWL Visuals — Baseline
   ========================================= */

/* =========================================
   LWL Roots + Theme Variables
   ========================================= */

:where(.lwl-visual, .lwl-scene, section[class*="lwl-theme-"]) {
  --lwl-radius-lg: 22px;
  --lwl-radius-md: 18px;
  --lwl-radius-sm: 14px;

  --lwl-border: #cbd5e1;
  --lwl-surface: #ffffff;
  --lwl-surface-2: #f8fafc;
  --lwl-bg: #ffffff;
  --lwl-ink: #0f172a;
  --lwl-ink-2: #334155;
  --lwl-muted: rgba(51, 65, 85, 0.85);
  --lwl-accent: #f59e0b;
  --lwl-accent-2: #fb7185;

  --lwl-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --lwl-glow: 0 18px 36px rgba(245, 158, 11, 0.18);
}

/* DEBUG: outline LWL roots */
/* .lwl-scene, .lwl-visual, section[class*="lwl-theme-"] { outline: 2px solid red; } */

/* =========================================
   LWL Scene Palettes (variable-only)
   ========================================= */

:where(.lwl-scene.lwl-scene--dojo-sunrise) {
  --lwl-bg: linear-gradient(180deg, rgba(255, 248, 235, 0.92) 0%, rgba(255, 255, 255, 0.96) 45%, rgba(255, 248, 235, 0.92) 100%);
  --lwl-surface: rgba(255, 255, 255, 0.78);
  --lwl-surface-2: rgba(255, 248, 235, 0.86);
  --lwl-border: rgba(241, 208, 160, 0.8);
  --lwl-accent: #f59e0b;
  --lwl-accent-2: #fb7185;
  --lwl-ink: #1f2937;
  --lwl-ink-2: #4b5563;
  --lwl-muted: rgba(75, 85, 99, 0.8);
  --lwl-shadow: 0 14px 34px rgba(120, 53, 15, 0.12);
  --lwl-glow: 0 18px 36px rgba(245, 158, 11, 0.25);
}

:where(.lwl-scene.lwl-scene--exam-midnight) {
  --lwl-bg: linear-gradient(180deg, rgba(11, 18, 32, 0.98) 0%, rgba(15, 23, 42, 0.96) 55%, rgba(11, 18, 32, 0.98) 100%);
  --lwl-surface: rgba(15, 23, 42, 0.86);
  --lwl-surface-2: rgba(17, 24, 39, 0.9);
  --lwl-border: rgba(148, 163, 184, 0.45);
  --lwl-accent: #38bdf8;
  --lwl-accent-2: #a78bfa;
  --lwl-ink: #f8fafc;
  --lwl-ink-2: rgba(226, 232, 240, 0.9);
  --lwl-muted: rgba(226, 232, 240, 0.7);
  --lwl-shadow: 0 14px 34px rgba(2, 6, 23, 0.35);
  --lwl-glow: 0 18px 36px rgba(56, 189, 248, 0.2);
}

:where(.lwl-scene.lwl-scene--scribe-parchment) {
  --lwl-bg: linear-gradient(180deg, rgba(253, 248, 240, 0.98) 0%, rgba(255, 255, 255, 0.95) 60%, rgba(253, 248, 240, 0.98) 100%);
  --lwl-surface: rgba(255, 255, 255, 0.9);
  --lwl-surface-2: rgba(253, 248, 240, 0.9);
  --lwl-border: rgba(214, 192, 160, 0.7);
  --lwl-accent: #b45309;
  --lwl-accent-2: #f97316;
  --lwl-ink: #3f2f1f;
  --lwl-ink-2: rgba(63, 47, 31, 0.8);
  --lwl-muted: rgba(63, 47, 31, 0.65);
  --lwl-shadow: 0 12px 30px rgba(90, 62, 30, 0.12);
  --lwl-glow: 0 18px 36px rgba(180, 83, 9, 0.2);
}

:where(.lwl-scene.lwl-scene--lexicon-forge) {
  --lwl-bg: linear-gradient(180deg, rgba(240, 253, 250, 0.98) 0%, rgba(255, 255, 255, 0.96) 55%, rgba(240, 253, 250, 0.98) 100%);
  --lwl-surface: rgba(255, 255, 255, 0.9);
  --lwl-surface-2: rgba(236, 253, 245, 0.92);
  --lwl-border: rgba(110, 231, 183, 0.55);
  --lwl-accent: #10b981;
  --lwl-accent-2: #22d3ee;
  --lwl-ink: #0f172a;
  --lwl-ink-2: rgba(15, 23, 42, 0.8);
  --lwl-muted: rgba(15, 23, 42, 0.65);
  --lwl-shadow: 0 12px 30px rgba(6, 95, 70, 0.12);
  --lwl-glow: 0 18px 36px rgba(16, 185, 129, 0.22);
}

:where(.lwl-scene.lwl-scene--atelier-parchment) {
  --lwl-bg: linear-gradient(180deg, rgba(255, 248, 238, 0.98) 0%, rgba(255, 255, 255, 0.96) 60%, rgba(255, 248, 238, 0.98) 100%);
  --lwl-surface: rgba(255, 255, 255, 0.92);
  --lwl-surface-2: rgba(255, 248, 238, 0.9);
  --lwl-border: rgba(210, 187, 153, 0.7);
  --lwl-accent: #b45309;
  --lwl-accent-2: #fb923c;
  --lwl-ink: #3f2f1f;
  --lwl-ink-2: rgba(63, 47, 31, 0.8);
  --lwl-muted: rgba(63, 47, 31, 0.65);
  --lwl-shadow: 0 12px 30px rgba(90, 62, 30, 0.16);
  --lwl-glow: 0 18px 36px rgba(180, 83, 9, 0.2);
}

:where(.lwl-scene.lwl-scene--atelier-twilight) {
  --lwl-bg: linear-gradient(180deg, rgba(250, 247, 255, 1) 0%, rgba(236, 242, 255, 1) 100%);
  --lwl-surface: rgba(255, 255, 255, 0.86);
  --lwl-surface-2: rgba(255, 255, 255, 0.78);
  --lwl-border: rgba(120, 90, 200, 0.18);
  --lwl-accent: #a855f7;
  --lwl-accent-2: #60a5fa;
  --lwl-ink: #1b1630;
  --lwl-ink-2: rgba(27, 22, 48, 0.82);
  --lwl-muted: rgba(27, 22, 48, 0.68);
  --lwl-shadow: 0 16px 34px rgba(60, 30, 120, 0.12);
  --lwl-glow: 0 20px 40px rgba(160, 110, 255, 0.18);
}

:where(.lwl-scene.lwl-scene--film-midnight) {
  --lwl-bg: linear-gradient(180deg, rgba(10, 16, 28, 0.98) 0%, rgba(15, 23, 42, 0.96) 60%, rgba(10, 16, 28, 0.98) 100%);
  --lwl-surface: rgba(15, 23, 42, 0.88);
  --lwl-surface-2: rgba(2, 6, 23, 0.86);
  --lwl-border: rgba(148, 163, 184, 0.4);
  --lwl-accent: #38bdf8;
  --lwl-accent-2: #60a5fa;
  --lwl-ink: #f8fafc;
  --lwl-ink-2: rgba(226, 232, 240, 0.9);
  --lwl-muted: rgba(226, 232, 240, 0.7);
  --lwl-shadow: 0 16px 34px rgba(2, 6, 23, 0.4);
  --lwl-glow: 0 18px 36px rgba(56, 189, 248, 0.2);
}

:where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke) {
  --lwl-bg: linear-gradient(180deg, rgba(6, 16, 14, 0.98) 0%, rgba(9, 24, 22, 0.98) 52%, rgba(6, 16, 14, 0.98) 100%);
  --lwl-surface: rgba(245, 255, 252, 0.94);
  --lwl-surface-2: rgba(231, 252, 245, 0.9);
  --lwl-border: rgba(130, 210, 192, 0.45);
  --lwl-accent: #34d399;
  --lwl-accent-2: #2dd4bf;
  --lwl-ink: #0b1f1a;
  --lwl-ink-2: rgba(11, 31, 26, 0.82);
  --lwl-muted: rgba(11, 31, 26, 0.62);
  --lwl-shadow: 0 18px 40px rgba(2, 10, 8, 0.45);
  --lwl-glow: 0 18px 36px rgba(45, 212, 191, 0.22);
}

/* =========================================
   LWL Core Components (Root Alias)
   ========================================= */

:where(.lwl-visual, .lwl-scene, section[class*="lwl-theme-"]) .lwl-cinematic {
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 20px;
}

:where(.lwl-visual, .lwl-scene, section[class*="lwl-theme-"]) .lwl-title {
  font-weight: 700;
  letter-spacing: 0.2px;
  margin: 0 0 8px;
  color: var(--lwl-ink);
}

:where(.lwl-visual, .lwl-scene, section[class*="lwl-theme-"]) .lwl-muted {
  color: var(--lwl-muted);
}

:where(.lwl-visual, .lwl-scene, section[class*="lwl-theme-"]) .lwl-card {
  border: 1px solid var(--lwl-border);
  border-radius: var(--lwl-radius-md);
  background: var(--lwl-surface);
  box-shadow: var(--lwl-shadow);
  padding: 16px;
}

:where(.lwl-visual, .lwl-scene, section[class*="lwl-theme-"]) .lwl-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--lwl-border);
  background: var(--lwl-surface-2);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lwl-ink);
}

:where(.lwl-visual, .lwl-scene, section[class*="lwl-theme-"]) .lwl-intro {
  margin: 12px 0 18px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--lwl-ink-2);
}

:where(.lwl-visual, .lwl-scene, section[class*="lwl-theme-"]) .lwl-callout {
  border-radius: var(--lwl-radius-md);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: var(--lwl-surface-2);
  color: var(--lwl-ink);
  padding: 14px 16px;
}

:where(.lwl-visual, .lwl-scene, section[class*="lwl-theme-"]) .lwl-callout--warning {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(255, 247, 237, 0.9);
}

:where(.lwl-visual, .lwl-scene, section[class*="lwl-theme-"]) .lwl-callout--neutral {
  border-color: rgba(100, 116, 139, 0.4);
  background: rgba(248, 250, 252, 0.92);
}

:where(.lwl-visual, .lwl-scene, section[class*="lwl-theme-"]) .lwl-callout--dojo {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(254, 240, 199, 0.6);
}

:where(.lwl-visual, .lwl-scene, section[class*="lwl-theme-"]) .lwl-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--lwl-border);
  border-radius: var(--lwl-radius-sm);
  overflow: hidden;
  background: var(--lwl-surface);
}

:where(.lwl-visual, .lwl-scene, section[class*="lwl-theme-"]) .lwl-table thead tr {
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
}

:where(.lwl-visual, .lwl-scene, section[class*="lwl-theme-"]) .lwl-table th,
:where(.lwl-visual, .lwl-scene, section[class*="lwl-theme-"]) .lwl-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  text-align: left;
}

:where(.lwl-visual, .lwl-scene, section[class*="lwl-theme-"]) .lwl-table tbody tr:hover {
  background: rgba(148, 163, 184, 0.12);
}

:where(.lwl-visual, .lwl-scene, section[class*="lwl-theme-"]) .lwl-hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0), var(--lwl-accent), rgba(148, 163, 184, 0));
  margin: 16px 0;
}

/* =========================================
   Sunrise Glass (Grammar Dojo)
   ========================================= */

:where(.lwl-scene.lwl-scene--dojo-sunrise) {
  position: relative;
  background: var(--lwl-bg);
  overflow: hidden;
}

:where(.lwl-scene.lwl-scene--dojo-sunrise)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 80% at 10% 0%, rgba(255, 214, 165, 0.5), rgba(255, 255, 255, 0) 60%),
              radial-gradient(90% 90% at 90% 10%, rgba(251, 191, 36, 0.35), rgba(255, 255, 255, 0) 60%);
  opacity: 0.7;
  pointer-events: none;
}

:where(.lwl-scene.lwl-scene--dojo-sunrise) > * {
  position: relative;
  z-index: 1;
}

:where(.lwl-scene.lwl-scene--dojo-sunrise) .lwl-title {
  text-shadow: 0 6px 18px rgba(245, 158, 11, 0.18);
}

:where(.lwl-scene.lwl-scene--dojo-sunrise) .lwl-card,
:where(.lwl-scene.lwl-scene--dojo-sunrise) .lwl-callout {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(241, 208, 160, 0.8);
  box-shadow: var(--lwl-shadow);
  backdrop-filter: blur(10px);
}

:where(.lwl-scene.lwl-scene--dojo-sunrise) .lwl-callout--warning {
  border-color: rgba(245, 158, 11, 0.7);
  background: rgba(255, 237, 213, 0.8);
}

:where(.lwl-scene.lwl-scene--dojo-sunrise) .lwl-callout--dojo {
  border-color: rgba(245, 158, 11, 0.8);
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.2);
}

:where(.lwl-scene.lwl-scene--dojo-sunrise) .lwl-title::after {
  content: "";
  display: block;
  height: 3px;
  width: 56px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lwl-accent), rgba(251, 191, 36, 0.2));
}

:where(.lwl-scene.lwl-scene--dojo-sunrise) .lwl-table {
  background: rgba(255, 255, 255, 0.88);
}

:where(.lwl-scene.lwl-scene--dojo-sunrise) .lwl-table tbody tr:nth-child(even) {
  background: rgba(255, 248, 235, 0.7);
}

:where(.lwl-scene.lwl-scene--dojo-sunrise) .lwl-card h4 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.5);
  background: rgba(255, 237, 213, 0.7);
}

@media (prefers-reduced-motion: no-preference) {
  :where(.lwl-scene.lwl-scene--dojo-sunrise) .lwl-card:hover,
  :where(.lwl-scene.lwl-scene--dojo-sunrise) .lwl-callout:hover {
    transform: translateY(-1px);
    box-shadow: var(--lwl-glow);
  }

  :where(.lwl-scene.lwl-scene--dojo-sunrise)::before {
    background-size: 140% 140%;
    animation: lwl-sunrise-shimmer 20s ease-in-out infinite;
  }
}

@keyframes lwl-sunrise-shimmer {
  0% { background-position: 0% 0%, 100% 0%; }
  50% { background-position: 10% 8%, 90% 12%; }
  100% { background-position: 0% 0%, 100% 0%; }
}

/* =========================================
   Atelier Twilight
   ========================================= */

:where(.lwl-scene.lwl-scene--atelier-twilight) {
  position: relative;
  background: var(--lwl-bg);
  overflow: hidden;
}

:where(.lwl-scene.lwl-scene--atelier-twilight)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1100px 650px at 18% 8%, rgba(170, 120, 255, 0.35), transparent 60%),
              radial-gradient(900px 600px at 85% 10%, rgba(120, 210, 255, 0.25), transparent 55%),
              radial-gradient(800px 520px at 55% 30%, rgba(255, 255, 255, 0.8), transparent 55%);
  opacity: 0.95;
  pointer-events: none;
}

:where(.lwl-scene.lwl-scene--atelier-twilight) > * {
  position: relative;
  z-index: 1;
}

:where(.lwl-scene.lwl-scene--atelier-twilight) .lwl-card {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(120, 90, 200, 0.18);
  box-shadow: 0 14px 40px rgba(60, 30, 120, 0.12);
  backdrop-filter: blur(10px);
}

:where(.lwl-scene.lwl-scene--atelier-twilight) .lwl-cinematic,
:where(.lwl-scene.lwl-scene--atelier-twilight) .lwl-cinematic p,
:where(.lwl-scene.lwl-scene--atelier-twilight) .lwl-cinematic li {
  color: #1b1630;
}

:where(.lwl-scene.lwl-scene--atelier-twilight) .lwl-table {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(120, 90, 200, 0.16);
}

:where(.lwl-scene.lwl-scene--atelier-twilight) .lwl-table thead tr {
  background: rgba(170, 120, 255, 0.14);
  color: #1b1630;
}

:where(.lwl-scene.lwl-scene--atelier-twilight) .lwl-table thead th {
  border-bottom-color: rgba(120, 90, 200, 0.18);
}

:where(.lwl-scene.lwl-scene--atelier-twilight) .lwl-table td {
  color: #1b1630;
  border-top-color: rgba(120, 90, 200, 0.14);
}

:where(.lwl-scene.lwl-scene--atelier-twilight) .lwl-title {
  text-shadow: 0 6px 18px rgba(160, 110, 255, 0.18);
}

:where(.lwl-scene.lwl-scene--atelier-twilight) .lwl-muted {
  opacity: 0.85;
}

/* =========================================
   Personal Trials — Mint Smoke
   ========================================= */

/* Snippet template (admin/dev):
<!-- LWL: PLACE_LANDING v1 | place=personal_trials | area=personal_trials | level=C1 | style=centered-cinematic | theme=personal_trials_mint_smoke -->
<div class="lwl-scene lwl-scene--personal-trials-mint-smoke">
  <div class="lwl-cinematic"> ... </div>
</div>
*/

:where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke) {
  position: relative;
  background: var(--lwl-bg);
  overflow: hidden;
  color: rgba(226, 255, 248, 0.92);
}

:where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 720px at 12% 8%, rgba(45, 212, 191, 0.18), transparent 60%),
              radial-gradient(960px 620px at 85% 6%, rgba(16, 185, 129, 0.16), transparent 62%),
              radial-gradient(760px 520px at 50% 36%, rgba(255, 255, 255, 0.08), transparent 60%);
  opacity: 0.95;
  filter: blur(2px);
  pointer-events: none;
}

:where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke)::after {
  content: "";
  position: absolute;
  inset: -10% -5%;
  background: radial-gradient(2px 2px at 12% 18%, rgba(255, 255, 255, 0.35), transparent 60%),
              radial-gradient(2px 2px at 78% 28%, rgba(255, 255, 255, 0.28), transparent 60%),
              radial-gradient(3px 3px at 38% 68%, rgba(45, 212, 191, 0.25), transparent 60%),
              radial-gradient(2px 2px at 62% 78%, rgba(255, 255, 255, 0.25), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}

:where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke) > * {
  position: relative;
  z-index: 1;
}

:where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke) .lwl-cinematic,
:where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke) .lwl-cinematic p,
:where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke) .lwl-cinematic li {
  color: rgba(226, 255, 248, 0.9);
}

:where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke) .lwl-title {
  color: #e8fff6;
  text-shadow: 0 8px 22px rgba(45, 212, 191, 0.24);
}

:where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke) .lwl-card,
:where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke) .lwl-callout {
  background: rgba(245, 255, 252, 0.95);
  border: 1px solid rgba(130, 210, 192, 0.55);
  box-shadow: 0 16px 36px rgba(4, 14, 12, 0.2), 0 0 0 1px rgba(45, 212, 191, 0.08);
  backdrop-filter: blur(10px);
  color: var(--lwl-ink);
}

:where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke) .lwl-card .lwl-title {
  color: var(--lwl-ink);
  text-shadow: none;
}

:where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke) .lwl-muted {
  color: rgba(226, 255, 248, 0.75);
}

:where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke) .lwl-card .lwl-muted,
:where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke) .lwl-callout .lwl-muted {
  color: rgba(11, 31, 26, 0.65);
}

:where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke) .lwl-callout--neutral {
  border-color: rgba(120, 200, 184, 0.45);
  background: rgba(236, 255, 250, 0.92);
}

:where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke) .lwl-callout--booster {
  border-color: rgba(45, 212, 191, 0.8);
  background: rgba(209, 250, 229, 0.92);
  box-shadow: 0 18px 40px rgba(45, 212, 191, 0.18);
}

:where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke) .lwl-callout--warning {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(255, 247, 237, 0.92);
  color: #3f2f1f;
}

:where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke) .lwl-table {
  background: rgba(245, 255, 252, 0.96);
  border-color: rgba(120, 200, 184, 0.5);
  color: var(--lwl-ink);
}

:where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke) .lwl-table thead tr {
  background: rgba(8, 24, 20, 0.94);
  color: #e8fff6;
}

:where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke) .lwl-table th,
:where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke) .lwl-table td {
  border-bottom-color: rgba(180, 230, 216, 0.7);
}

:where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke) .lwl-table tbody tr:nth-child(even) {
  background: rgba(231, 252, 245, 0.7);
}

:where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke) .lwl-table tbody tr:hover {
  background: rgba(165, 243, 226, 0.18);
}

:where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke) .lwl-hr {
  background: linear-gradient(90deg, rgba(45, 212, 191, 0), rgba(45, 212, 191, 0.8), rgba(45, 212, 191, 0));
}

:where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke) a {
  color: #7ef3d4;
  text-decoration-color: rgba(126, 243, 212, 0.55);
}

:where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke) .lwl-card a,
:where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke) .lwl-callout a {
  color: #0f766e;
  text-decoration-color: rgba(15, 118, 110, 0.4);
}

@media (prefers-reduced-motion: no-preference) {
  :where(.lwl-scene.lwl-scene--personal-trials-mint-smoke, .lwl-theme-personal_trials_mint_smoke, .lwl-theme--personal-trials-mint-smoke)::before {
    background-size: 130% 130%;
    animation: lwl-mint-smoke-drift 26s ease-in-out infinite;
  }
}

@keyframes lwl-mint-smoke-drift {
  0% { background-position: 0% 0%, 100% 0%, 50% 50%; }
  50% { background-position: 8% 6%, 92% 10%, 52% 54%; }
  100% { background-position: 0% 0%, 100% 0%, 50% 50%; }
}

/* Debug fingerprint */
.lwl-at-debug-badge {
  display: none;
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 99999;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(160, 110, 255, 0.25);
  box-shadow: 0 10px 25px rgba(80, 30, 140, 0.15);
  backdrop-filter: blur(8px);
  color: #1b1630;
}

body.lwl-debug-atelier .lwl-at-debug-badge {
  display: block;
}

/* Make Tutor/LMS content breathe a bit */
.lwl-visual section,
section.lwl-theme-sunrise,
section.lwl-theme-midnight-steel {
  box-shadow: var(--lwl-shadow);
}

/* Consistent “card” feel if you add this class later */
.lwl-card {
  border: 1px solid var(--lwl-border);
  border-radius: var(--lwl-radius-md);
  background: var(--lwl-surface);
}

/* Tables: keep clean and readable even when inline-styled */
section.lwl-theme-sunrise table,
section.lwl-theme-midnight-steel table {
  border-radius: 16px;
  overflow: hidden;
}

/* Make badges feel consistent even if inline styles vary */
[data-lwl-skill] {
  line-height: 1;
  white-space: nowrap;
}

/* =========================================
   Theme: Sunrise (Grammar Dojo)
   ========================================= */

section.lwl-theme-sunrise {
  /* soft dawn glow */
  background: radial-gradient(circle at 25% 18%, rgba(255, 221, 158, 0.65) 0%, rgba(255, 255, 255, 0) 45%),
              radial-gradient(circle at 75% 10%, rgba(255, 187, 224, 0.45) 0%, rgba(255, 255, 255, 0) 42%),
              linear-gradient(180deg, #ffffff 0%, #f8fafc 55%, #ffffff 100%);
  border: 1px solid #cbd5e1;
}

section.lwl-theme-sunrise h1,
section.lwl-theme-sunrise h2,
section.lwl-theme-sunrise h3 {
  color: #0f172a;
}

section.lwl-theme-sunrise p,
section.lwl-theme-sunrise li,
section.lwl-theme-sunrise td {
  color: #334155;
}

/* Optional: auto-highlight your “Dojo headers” if you later add a class */
section.lwl-theme-sunrise .lwl-header-pill {
  background: #0f172a;
  border: 1px solid #334155;
  color: #f8fafc;
}

/* =========================================
   Theme: Midnight-steel (Exam Dojo)
   ========================================= */

section.lwl-theme-midnight-steel {
  /* steel-night aura */
  background: radial-gradient(circle at 30% 10%, rgba(56, 189, 248, 0.25) 0%, rgba(15, 23, 42, 0) 45%),
              radial-gradient(circle at 70% 0%, rgba(167, 139, 250, 0.22) 0%, rgba(15, 23, 42, 0) 48%),
              linear-gradient(180deg, #0b1220 0%, #0f172a 45%, #0b1220 100%);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* Improve contrast automatically for common text inside your section */
section.lwl-theme-midnight-steel h1,
section.lwl-theme-midnight-steel h2,
section.lwl-theme-midnight-steel h3,
section.lwl-theme-midnight-steel strong {
  color: #f8fafc;
}

section.lwl-theme-midnight-steel p,
section.lwl-theme-midnight-steel li,
section.lwl-theme-midnight-steel td {
  color: rgba(226, 232, 240, 0.92);
}

/* Make inner "white cards" still look good on dark */
section.lwl-theme-midnight-steel > div,
section.lwl-theme-midnight-steel .lwl-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(203, 213, 225, 0.9);
  color: #0f172a;
}

/* Inside those white cards, reset text colors */
section.lwl-theme-midnight-steel > div p,
section.lwl-theme-midnight-steel > div li,
section.lwl-theme-midnight-steel > div td {
  color: #334155;
}

/* Tables: make header row pop on midnight theme */
section.lwl-theme-midnight-steel thead tr {
  background: #0f172a !important;
}

/* =========================================
   Grid collapse fix
   ========================================= */

@media (max-width: 840px) {
  /* Your content uses grids; make sure they stack neatly */
  section.lwl-theme-sunrise [style*="grid-template-columns: repeat(2"],
  section.lwl-theme-sunrise [style*="grid-template-columns: 1fr 1fr"],
  section.lwl-theme-sunrise [style*="grid-template-columns:1fr 1fr"],
  section.lwl-theme-midnight-steel [style*="grid-template-columns: repeat(2"],
  section.lwl-theme-midnight-steel [style*="grid-template-columns: 1fr 1fr"],
  section.lwl-theme-midnight-steel [style*="grid-template-columns:1fr 1fr"] {
    display: block !important;
  }
}

/* =========================================
   TutorLMS Course Sidebar + Columns — Restore & Beautify (Scoped)
   ========================================= */

body.single-course .tutor-course-single-sidebar,
body.single-course .tutor-course-single-sidebar-wrapper,
body.single-course .tutor-course-topic-sidebar,
body.single-course .tutor-course-topic-nav,
body.single-course .tutor-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
  padding: 14px;
}

body.single-course .tutor-course-topic-nav h3,
body.single-course .tutor-course-topic-sidebar h3,
body.single-course .tutor-course-single-sidebar h3 {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0));
  color: #0f172a;
  font-weight: 700;
}

body.single-course .tutor-course-topic-sidebar .tutor-accordion-item-header,
body.single-course .tutor-course-topic-nav .tutor-accordion-item-header {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  font-weight: 600;
}

body.single-course .tutor-course-topic-nav ul,
body.single-course .tutor-course-topic-sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

body.single-course .tutor-course-topic-nav a,
body.single-course .tutor-course-topic-sidebar a,
body.single-course .tutor-course-single-sidebar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

body.single-course .tutor-course-topic-nav a:hover,
body.single-course .tutor-course-topic-sidebar a:hover,
body.single-course .tutor-course-single-sidebar a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  border-color: rgba(148, 163, 184, 0.8);
}

body.single-course .tutor-course-topic-nav a:focus-visible,
body.single-course .tutor-course-topic-sidebar a:focus-visible,
body.single-course .tutor-course-single-sidebar a:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.45);
  outline-offset: 2px;
}

body.single-course .tutor-course-topic-nav .active a,
body.single-course .tutor-course-topic-sidebar .active a,
body.single-course .tutor-course-topic-nav .is-active > a,
body.single-course .tutor-course-topic-sidebar .is-active > a,
body.single-course .tutor-course-topic-nav a[aria-current="page"],
body.single-course .tutor-course-topic-sidebar a[aria-current="page"] {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.18);
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.9), #ffffff);
}

@media (max-width: 980px) {
  body.single-course .tutor-course-single-sidebar,
  body.single-course .tutor-course-single-sidebar-wrapper,
  body.single-course .tutor-course-topic-sidebar,
  body.single-course .tutor-course-topic-nav,
  body.single-course .tutor-card {
    margin-top: 18px;
  }
}

/* =========================================
   Animations
   ========================================= */

.lwl-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.lwl-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.lwl-visual.lwl-animate-in,
section.lwl-theme-sunrise.lwl-animate-in,
section.lwl-theme-midnight-steel.lwl-animate-in {
  animation: lwl-fade-rise 520ms ease both;
}

@keyframes lwl-fade-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .lwl-card,
  body.single-course .tutor-course-topic-nav a,
  body.single-course .tutor-course-topic-sidebar a,
  body.single-course .tutor-course-single-sidebar a {
    transition: none;
  }

  .lwl-visual.lwl-animate-in,
  section.lwl-theme-sunrise.lwl-animate-in,
  section.lwl-theme-midnight-steel.lwl-animate-in {
    animation: none;
  }
}

/* =========================================
   TutorLMS Sidebar – Journey skin
   ========================================= */

body.single-lesson .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper.tutor-lesson-sidebar,
body.single-tutor_quiz .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper,
body.single-tutor_assignments .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper,
body.single-course .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper,
body.single-courses .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.08);
  padding: 14px;
  overflow: hidden;
  backdrop-filter: blur(6px);
}

body.single-lesson .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-single-sidebar-title,
body.single-tutor_quiz .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-single-sidebar-title,
body.single-tutor_assignments .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-single-sidebar-title,
body.single-course .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-single-sidebar-title,
body.single-courses .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-single-sidebar-title {
  padding: 12px 14px;
  margin: 0 0 12px;
  border-radius: 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0));
  color: #0f172a;
  font-weight: 700;
}

body.single-lesson .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-accordion-item-header,
body.single-tutor_quiz .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-accordion-item-header,
body.single-tutor_assignments .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-accordion-item-header,
body.single-course .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-accordion-item-header,
body.single-courses .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-accordion-item-header {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  color: #0f172a;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

body.single-lesson .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-accordion-item-header:hover,
body.single-tutor_quiz .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-accordion-item-header:hover,
body.single-tutor_assignments .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-accordion-item-header:hover,
body.single-course .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-accordion-item-header:hover,
body.single-courses .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-accordion-item-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  border-color: rgba(148, 163, 184, 0.8);
}

body.single-lesson .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-accordion-item-header.is-active,
body.single-tutor_quiz .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-accordion-item-header.is-active,
body.single-tutor_assignments .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-accordion-item-header.is-active,
body.single-course .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-accordion-item-header.is-active,
body.single-courses .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-accordion-item-header.is-active {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.18);
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.9), #ffffff);
}

body.single-lesson .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-summary,
body.single-tutor_quiz .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-summary,
body.single-tutor_assignments .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-summary,
body.single-course .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-summary,
body.single-courses .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  font-size: 0.85rem;
}

body.single-lesson .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-item > a,
body.single-tutor_quiz .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-item > a,
body.single-tutor_assignments .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-item > a,
body.single-course .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-item > a,
body.single-courses .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-item > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

body.single-lesson .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-item > a:hover,
body.single-tutor_quiz .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-item > a:hover,
body.single-tutor_assignments .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-item > a:hover,
body.single-course .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-item > a:hover,
body.single-courses .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-item > a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  border-color: rgba(148, 163, 184, 0.8);
}

body.single-lesson .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-item.is-active > a,
body.single-tutor_quiz .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-item.is-active > a,
body.single-tutor_assignments .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-item.is-active > a,
body.single-course .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-item.is-active > a,
body.single-courses .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-item.is-active > a {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.18);
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.9), #ffffff);
}

body.single-lesson .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-form-check-input.tutor-form-check-circle,
body.single-tutor_quiz .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-form-check-input.tutor-form-check-circle,
body.single-tutor_assignments .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-form-check-input.tutor-form-check-circle,
body.single-course .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-form-check-input.tutor-form-check-circle,
body.single-courses .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-form-check-input.tutor-form-check-circle {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(148, 163, 184, 0.8);
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(2, 6, 23, 0.08);
}

body.single-lesson .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-item > a:focus-visible,
body.single-tutor_quiz .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-item > a:focus-visible,
body.single-tutor_assignments .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-item > a:focus-visible,
body.single-course .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-item > a:focus-visible,
body.single-courses .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-item > a:focus-visible,
body.single-lesson .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-single-sidebar-title .tutor-iconic-btn:focus-visible,
body.single-tutor_quiz .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-single-sidebar-title .tutor-iconic-btn:focus-visible,
body.single-tutor_assignments .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-single-sidebar-title .tutor-iconic-btn:focus-visible,
body.single-course .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-single-sidebar-title .tutor-iconic-btn:focus-visible,
body.single-courses .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-single-sidebar-title .tutor-iconic-btn:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.45);
  outline-offset: 2px;
}

body.single-lesson .tutor-course-single-content-wrapper .tutor-course-topic-single-header,
body.single-tutor_quiz .tutor-course-single-content-wrapper .tutor-course-topic-single-header,
body.single-tutor_assignments .tutor-course-single-content-wrapper .tutor-course-topic-single-header,
body.single-course .tutor-course-single-content-wrapper .tutor-course-topic-single-header,
body.single-courses .tutor-course-single-content-wrapper .tutor-course-topic-single-header {
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
}

body.single-lesson .tutor-course-single-content-wrapper .tutor-course-topic-single-body,
body.single-tutor_quiz .tutor-course-single-content-wrapper .tutor-course-topic-single-body,
body.single-tutor_assignments .tutor-course-single-content-wrapper .tutor-course-topic-single-body,
body.single-course .tutor-course-single-content-wrapper .tutor-course-topic-single-body,
body.single-courses .tutor-course-single-content-wrapper .tutor-course-topic-single-body {
  padding-top: 16px;
}

/* =========================================
   TutorLMS Layout balance
   ========================================= */

@media (min-width: 1024px) {
  body.single-lesson .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper.tutor-lesson-sidebar,
  body.single-tutor_quiz .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper,
  body.single-tutor_assignments .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper,
  body.single-course .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper,
  body.single-courses .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper {
    flex: 0 0 320px;
    max-width: 340px;
    align-self: flex-start;
  }

  body.single-lesson .tutor-course-single-content-wrapper .tutor-course-topic-single-body,
  body.single-tutor_quiz .tutor-course-single-content-wrapper .tutor-course-topic-single-body,
  body.single-tutor_assignments .tutor-course-single-content-wrapper .tutor-course-topic-single-body,
  body.single-course .tutor-course-single-content-wrapper .tutor-course-topic-single-body,
  body.single-courses .tutor-course-single-content-wrapper .tutor-course-topic-single-body {
    gap: 24px;
  }
}

/* =========================================
   Reduced motion
   ========================================= */

@media (prefers-reduced-motion: reduce) {
  body.single-lesson .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-accordion-item-header,
  body.single-tutor_quiz .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-accordion-item-header,
  body.single-tutor_assignments .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-accordion-item-header,
  body.single-course .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-accordion-item-header,
  body.single-courses .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-accordion-item-header,
  body.single-lesson .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-item > a,
  body.single-tutor_quiz .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-item > a,
  body.single-tutor_assignments .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-item > a,
  body.single-course .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-item > a,
  body.single-courses .tutor-course-single-content-wrapper .tutor-course-single-sidebar-wrapper .tutor-course-topic-item > a {
    transition: none;
  }
}

/* =========================================
   Theme polish
   ========================================= */

section.lwl-theme-sunrise h1,
section.lwl-theme-sunrise h2,
section.lwl-theme-sunrise h3,
section.lwl-theme-midnight-steel h1,
section.lwl-theme-midnight-steel h2,
section.lwl-theme-midnight-steel h3 {
  margin-bottom: 12px;
}

section.lwl-theme-sunrise p,
section.lwl-theme-sunrise li,
section.lwl-theme-midnight-steel p,
section.lwl-theme-midnight-steel li {
  line-height: 1.65;
}

section.lwl-theme-sunrise table thead tr {
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
}

section.lwl-theme-sunrise table tr:hover,
section.lwl-theme-midnight-steel table tr:hover {
  background: rgba(148, 163, 184, 0.12);
}

section.lwl-theme-sunrise [data-lwl-skill],
section.lwl-theme-midnight-steel [data-lwl-skill] {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

section.lwl-theme-sunrise [data-lwl-skill]:hover,
section.lwl-theme-midnight-steel [data-lwl-skill]:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}
