/* Light theme for the website. Active when <html data-theme="light"> (set from the header toggle, saved in localStorage "lms-theme").
   The site is dark by default; this file only re-colours. Loaded last in layouts/app.blade.php. */
html[data-theme="light"] {
  --ds-ink: #0d1526;
  --ds-ink-muted: #35415a;
  --ds-ink-subtle: #56627a;
  --ds-ink-tertiary: #5d687e;
  --ds-canvas: #f6f8fc;
  --ds-surface-1: #ffffff;
  --ds-surface-2: #eef2f9;
  --ds-surface-3: #e6ebf5;
  --ds-surface-4: #dde4f1;
  --ds-hairline: #dde3ee;
  --ds-hairline-strong: #c5cede;
  --ds-hairline-tertiary: #aab5ca;
  --ds-band-a: #eef3fd;
  --ds-band-b: #f1f0fc;
  --ds-edge-highlight: inset 0 0 0 transparent;
  --c-bg-dark: var(--ds-canvas);
  --c-surface-dark: #fff;
  --c-text-dark: var(--ds-ink);
  --lx-surface: #fff;
  --lx-soft: var(--ds-surface-2);
  --lx-text: var(--ds-ink);
  --lx-muted: var(--ds-ink-subtle);
  --lx-line: var(--ds-hairline);
  color-scheme: light;
}
html[data-theme="light"] body.lx-site { background: var(--ds-canvas); color: var(--ds-ink); }
html[data-theme="light"] :is(.ds, .ds-input, .ds-select, .ds-textarea, .input) { color-scheme: light; }

/* bars that float over the page */
html[data-theme="light"] :is(.lx-hdr, .lx-appnav, .lx-buybar, .lx-lp-sticky, .lx-lp-top, .ds-live__bar, .ds-live__chat) {
  background: rgb(255 255 255 / .9) !important; color: var(--ds-ink); border-color: var(--ds-hairline) !important;
}

/* see-through boxes over the moving background */
html[data-theme="light"] body :is(.ds-card, .card, .lx-cat, .lx-ccard, .lx-mentor, .lx-quote, .ds-cta, .lx-stats__item, .lx-cm-card, .ds-auth__card, .ds-statgrid, .ds-plan, .ds-hc, .ds-how li, .ds-tools a:not(.ds-tools__all), .ds-phero__chip),
html[data-theme="light"] body #ictlab :is(.card, .ictw, .tab, .ict-lock, .ict-stats div, .ict-badges li) {
  background-color: rgb(255 255 255 / .82) !important;
  box-shadow: 0 10px 30px -18px rgb(13 21 38 / .28), inset 0 0 0 1px var(--ds-hairline);
}
html[data-theme="light"] .lx-bgfx { opacity: .45; }

/* small highlight text: the bright accent is unreadable on white, so it is darkened */
html[data-theme="light"] :is(.ds-eyebrow, html body .lx-home .lx-shead__kicker, .ds-phero__eyebrow, .ds-hx__eyebrow, .ds-hc__cat) { color: color-mix(in oklab, var(--accent) 45%, #111) !important; }
html[data-theme="light"] :is(.lx-shead__title, .ds-h2) :is(em, span, mark) { color: color-mix(in oklab, var(--accent) 55%, #000); }
/* the hero titles colour their last word with the brand colour in dark mode; keep it, a shade deeper */
html[data-theme="light"] :is(.ds-phero__title, .ds-hx__title) em { color: color-mix(in oklab, var(--ds-primary) 88%, #000); }
html[data-theme="light"] :is(h1, h2, h3, h4) { color: var(--ds-ink); }

/* heading sizes that today are written for html.dark */
html[data-theme="light"] body.lx-site .ds-hx__title { margin: 16px 0 0; font-size: clamp(36px, 5.6vw, 68px); line-height: 1.18; font-weight: 700; overflow-wrap: anywhere; }
html[data-theme="light"] body.lx-site .lx-home .lx-shead__title, html[data-theme="light"] body.lx-site .ds-h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.25; letter-spacing: normal; font-weight: 600; }
html[data-theme="light"] body.lx-site .lx-home .ds-band--cta .ds-cta h2 { font-size: clamp(28px, 4.5vw, 48px); line-height: 1.25; }
html[data-theme="light"] body.lx-site .ds-hc__title { margin: 6px 0 8px; font-size: 20px; line-height: 1.4; font-weight: 600; letter-spacing: normal; }
html[data-theme="light"] body.lx-site .ds-phero__title { margin: 8px 0 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.25; font-weight: 600; overflow-wrap: anywhere; }
html[data-theme="light"] body.lx-site .ds-phero--lg .ds-phero__title { font-size: clamp(32px, 5.2vw, 56px); }
html[data-theme="light"] body.lx-site .ds-phero--sm .ds-phero__title { font-size: clamp(24px, 3vw, 32px); }
html[data-theme="light"] body.lx-site :is(h1, h2, h3) { font-family: var(--ds-font-display); font-weight: 600; color: var(--ds-ink); }

/* floating chips in the heroes */
html[data-theme="light"] :is(.ds-hx__chip, .ds-phero__side [class*="chip"], .ds-phero__float, .ds-phero__art span) { background: #fff !important; color: var(--ds-ink); box-shadow: 0 10px 28px -16px rgb(13 21 38 / .35), inset 0 0 0 1px var(--ds-hairline); }

/* ICT lab */
html[data-theme="light"] #ictlab { --ink: #0d1526; --ink-muted: #35415a; --ink-subtle: #56627a; --canvas: #f1f4fa; --s1: #ffffff; --s2: #eef2f9; --s3: #e6ebf5; --hair: #dde3ee; --hair-strong: #c5cede; color: var(--ink); }

html[data-theme="light"] .ds-phero__chips span { background: #fff !important; color: var(--ds-primary); box-shadow: 0 10px 28px -16px rgb(13 21 38 / .35), inset 0 0 0 1px var(--ds-hairline); }

/* ---- found by the page-by-page check ---- */
/* pale coloured text on white */
html[data-theme="light"] body :is(.ds-badge--brand) { color: color-mix(in oklab, var(--ds-primary) 80%, #000) !important; }
html[data-theme="light"] body .lx-ccard__badge { color: #fff; }
html[data-theme="light"] body :is(.ds-badge--success, .lx-buybar__off, .lx-lp-price__off, .ds-buycard__save) { color: #17692c !important; }
html[data-theme="light"] body .ds-hc__tag { color: color-mix(in oklab, var(--accent) 45%, #111); }
html[data-theme="light"] body .ds-errcode { color: #7b869c; }
html[data-theme="light"] body .lx-lp-top__timer { color: #6b4300; background: #fff4dc; }
html[data-theme="light"] body .lx-lp-top__time { color: #4a2e00; }
html[data-theme="light"] body .ds-class-bar { background: #fff; color: var(--ds-ink); border-color: var(--ds-hairline); }
html[data-theme="light"] body .ds-class-bar :is(a, button) { color: var(--ds-ink); }
html[data-theme="light"] body #ictlab :is(.chl, .lock) { color: #8a5800 !important; }

/* labels that sit on a picture keep white text */
html[data-theme="light"] body :is(.lx-ccard__cat, .lx-post__cat, .ds-hc__badge, .lx-ccard__badge) { color: #fff; }
/* the video area is dark in both modes */
html[data-theme="light"] body :is(.ds-class-player, .ds-video) { --ds-ink: #f7f8f8; --ds-ink-muted: #d0d6e0; --ds-ink-subtle: #8d97ab; --lx-text: #f7f8f8; color: #f7f8f8; }
/* tiny decorations in the bright accent */
html[data-theme="light"] body :is(.ds-marq, .ds-hx) [style*="--accent"], html[data-theme="light"] body .ds-marq__item::before, html[data-theme="light"] body .ds-marq span::before { color: color-mix(in oklab, var(--accent) 50%, #000); }
html[data-theme="light"] body :is(.ds-hx__eyebrow i, .ds-phero__eyebrow i, .lx-home .lx-shead__kicker::before) { background: color-mix(in oklab, var(--accent) 60%, #000); }

html[data-theme="light"] body.lx-bg .card[role="dialog"] { background-color: #fff !important; }


/* ---- home hero on white: the orbit, icons and chips need more contrast (user report 26 Nov) ---- */
html[data-theme="light"] .ds-hx__grid { background-image: radial-gradient(circle, rgb(37 99 235 / .28) 1px, transparent 1.5px); }
html[data-theme="light"] .ds-hx__fx i { background: rgb(37 99 235 / .7); }
html[data-theme="light"] .ds-hx__blob--a { background: radial-gradient(circle, rgb(37 99 235 / .30), transparent 65%); }
html[data-theme="light"] .ds-hx__blob--b { background: radial-gradient(circle, rgb(37 99 235 / .22), transparent 65%); }
html[data-theme="light"] .ds-hx__blob--c { background: radial-gradient(circle, rgb(245 165 36 / .22), transparent 65%); }
html[data-theme="light"] .ds-hx__ring--1 { border-color: rgb(37 99 235 / .45); }
html[data-theme="light"] .ds-hx__ring--2 { border-color: rgb(37 99 235 / .28); }
html[data-theme="light"] .ds-hx__ring--3 { border-color: color-mix(in oklab, var(--accent) 70%, #000); }
html[data-theme="light"] .ds-hx__node { background: #fff; color: color-mix(in oklab, var(--ds-primary) 90%, #000); box-shadow: inset 0 0 0 1px var(--ds-hairline-strong), 0 10px 24px -8px rgb(13 21 38 / .35); }
html[data-theme="light"] .ds-hx__ring--3 .ds-hx__node { color: color-mix(in oklab, var(--accent) 55%, #000); }
html[data-theme="light"] .ds-hx__core { box-shadow: 0 18px 50px -10px rgb(37 99 235 / .55), inset 0 0 0 1px rgb(255 255 255 / .25); }
html[data-theme="light"] .ds-hx__chip { background: #fff !important; color: var(--ds-ink); font-weight: 500; box-shadow: 0 14px 30px -12px rgb(13 21 38 / .45), inset 0 0 0 1px var(--ds-hairline-strong); }
html[data-theme="light"] .ds-hx__chip--b { color: color-mix(in oklab, var(--ds-primary) 88%, #000); }
/* blinking cursors: the bright accent cannot be seen on white */
html[data-theme="light"] :is(.ds-hx__cursor, .ds-cta__cursor, .ds-phero__cursor) { color: color-mix(in oklab, var(--accent) 50%, #000); }
/* the running light round a course picture */
html[data-theme="light"] .ds-hc__thumb--pic .ds-hc__glow { background: conic-gradient(from 0deg, transparent 0 38%, rgb(37 99 235 / .95) 62%, color-mix(in oklab, var(--accent) 70%, #000) 76%, transparent 90%); }
/* ICT lab headings: the accent word and eyebrow, a shade deeper on white */
html[data-theme="light"] #ictlab :is(.ict-eyebrow, .ict-sec h2 em) { color: color-mix(in oklab, var(--accent) 55%, #000); }
html[data-theme="light"] #ictlab .ict-eyebrow::before { background: color-mix(in oklab, var(--accent) 60%, #000); }

/* ---- code, output, circuit and flowchart areas: light too (user: "boxes look black") ---- */
html[data-theme="light"] .ds-term { background: #fff; box-shadow: inset 0 0 0 1px var(--ds-hairline-strong), 0 24px 50px -24px rgb(13 21 38 / .35); }
html[data-theme="light"] .ds-term__bar { background: var(--ds-surface-2); }
html[data-theme="light"] .ds-term__bar i:nth-child(1) { background: #ff5f57; }
html[data-theme="light"] .ds-term__bar i:nth-child(2) { background: #febc2e; }
html[data-theme="light"] .ds-term__bar i:nth-child(3) { background: #28c840; }
html[data-theme="light"] .ds-term pre { color: #1e2a44; }

html[data-theme="light"] body #ictlab { --ok: #1f8a3a; --bad: #c9353a; }
html[data-theme="light"] body #ictlab :is(.editor, .out, .codebox, .io div, .tcase, .vis, .sqlta, .sqlres, .col) { background: #fbfcfe; }
html[data-theme="light"] body #ictlab :is(.vis3, .fled, .flscroll, .ictw-stage) { background: #f3f6fc; }
html[data-theme="light"] body #ictlab :is(.sw, .tg, .ictw-sw)[aria-pressed=true] { background: #dbe6ff; color: #12306e; }
html[data-theme="light"] body #ictlab :is(.opt, .opt2:not(:disabled), .mini, .pchip, .ictw-swap):hover { background: #e7eefc; }
html[data-theme="light"] body #ictlab :is(.opt, .opt2).ok { background: #e3f5e8; }
html[data-theme="light"] body #ictlab :is(.opt, .opt2).no { background: #fbe6e7; }
html[data-theme="light"] body #ictlab :is(.pitem.on, .osil.on, .tcard.on) { background: #e7eefc; }
html[data-theme="light"] body #ictlab .bw.dim .b { background: #c9d3e6; }
html[data-theme="light"] body #ictlab .ffb { background: #eef3fd; }
html[data-theme="light"] body #ictlab .kc.v2 { background: #fff1d6; color: #7a4a00; }
html[data-theme="light"] body #ictlab .kc.v1 { background: #dbe6ff; color: #12306e; }
html[data-theme="light"] body #ictlab :is(.topo .nd rect, .modesvg .mn, .ictw-svg .g) { fill: #eef3fd; }
html[data-theme="light"] body #ictlab .topo .nd.hub rect { fill: #fff4dc; }
html[data-theme="light"] body #ictlab .topo .nd.bad rect { fill: #fbe6e7; }
html[data-theme="light"] body #ictlab .ictw-svg .bub { fill: #f3f6fc; }
html[data-theme="light"] body #ictlab .sqlres .tt th { background: #e9eef8; }
html[data-theme="light"] body #ictlab .sqlerr { background: #fbe6e7; color: #8f1d22; }
html[data-theme="light"] body #ictlab .erd .hd { fill: #dbe6ff; }
html[data-theme="light"] body #ictlab .face.back { background: linear-gradient(160deg, #e3f5e8, #e7eefc); }
html[data-theme="light"] body #ictlab .fterm { background: #e7eefc; }
html[data-theme="light"] body #ictlab .ntn { background: #dbe6ff; color: #12306e; }
html[data-theme="light"] body #ictlab :is(.tab[aria-selected=true] small, .ictw-bit.on small) { color: #fff; }
/* code colours that read on white */
html[data-theme="light"] body #ictlab .tk-k { color: #1d4ed8; }
html[data-theme="light"] body #ictlab .tk-s { color: #9a5b00; }
html[data-theme="light"] body #ictlab .tk-n { color: #0f7a45; }
html[data-theme="light"] body #ictlab .tk-c { color: #6b7488; }
html[data-theme="light"] body #ictlab .tk-p { color: #7c3aed; }
/* green / red / amber messages */
html[data-theme="light"] body #ictlab :is(.pill.ok, .tcase.pass .st, .tick, .tt tr.one td, .sidelab.send, .sqlok, .tc.g b, .ictw-live) { color: #17692c; }
html[data-theme="light"] body #ictlab :is(.pill.bad, .tcase.fail .st, .mini.del, .nt .tt th.bad, .tc.r b, .ictw-err) { color: #b3262c; }
html[data-theme="light"] body #ictlab .sqlres .tt td.nm { color: #0f7a45; }
html[data-theme="light"] body #ictlab .warn { color: #6b4300; background: #fff4dc; }
html[data-theme="light"] body #ictlab .ictw-expr { color: #8a5800; }
/* course page: "you are enrolled" note */
html[data-theme="light"] body .ds-buycard__enrolled { color: #17692c; }
html[data-theme="light"] body #ictlab tr.cur td { background: #dbe6ff; color: #12306e; }
html[data-theme="light"] body #ictlab .editor textarea { caret-color: #0d1526; }

/* ---- full check, round 2 (26 Nov): ICT tools ---- */
/* the lab's orange accent is too pale for text on white */
html[data-theme="light"] body #ictlab { --accent: #b36b00; }
html[data-theme="light"] body #ictlab .bmb > .tg1 { color: #b36b00; }
/* flashcards */
html[data-theme="light"] body #ictlab .face.front { background: linear-gradient(160deg, #e7eefc, #f6f8fc); }
/* OSI: the data packet */
html[data-theme="light"] body #ictlab .pb.data { background: #dbe6ff !important; color: #0d1526; }
/* flowchart drawing (its own <style> paints for dark) */
html[data-theme="light"] body #ictlab .fl-s { fill: #ffffff; }
html[data-theme="light"] body #ictlab .fl-t { fill: #e7eefc; --c: #56627a; }
html[data-theme="light"] body #ictlab .fl-n text { fill: #0d1526; }
html[data-theme="light"] body #ictlab .fl-a { stroke: #56627a; }
html[data-theme="light"] body #ictlab .fl-j { fill: #56627a; }
html[data-theme="light"] body #ictlab .fl-l { fill: #8a5800; }
/* ER diagram */
html[data-theme="light"] body #ictlab .erd .bx { fill: #ffffff; }
html[data-theme="light"] body #ictlab .erd .hd { fill: #dbe6ff; }
html[data-theme="light"] body #ictlab .erd .tn { fill: #12306e; }
/* topology: hovered computer outline */
html[data-theme="light"] body #ictlab .topo .nd:hover rect, html[data-theme="light"] body #ictlab .topo .nd:focus-visible rect { stroke: #0d1526; }
html[data-theme="light"] body #ictlab .topo .lk.bad .ln { stroke: #c9353a; }
/* status colours a shade deeper so text reads on white (e.g. quiz result "০%") */
html[data-theme="light"] { --ds-danger: #c9353a; --ds-success: #1f8a3a; --ds-warning: #b45f06; }
