/* Brahmastra classes: the DBMS room look (indigo ink, violet and coral accents, no teal), on the shared engine styles */
body[data-theme="tealroom"]
{
  --accent: #4F46E5;
  --accent-2: #C026D3;
  --accent-3: #F59E0B;
  --accent-ink: #312E81;
  --accent-t: #EEF2FF;
  --wash-a: rgba(99, 102, 241, .09);
  --wash-b: rgba(192, 38, 211, .05);
  --amb: #4F46E5;
  --amb-op: .11;
  --enter: lcLift;
}
.lc-note-do { border-left-color: #4F46E5; background: #F5F7FF; color: #312E81; }
.lc-dots { background: radial-gradient(circle at 5px 5.5px, #F87171 4.5px, transparent 5px), radial-gradient(circle at 20px 5.5px, #FBBF24 4.5px, transparent 5px), radial-gradient(circle at 35px 5.5px, #22C55E 4.5px, transparent 5px); }
/* a definition */
.b-def { border-left: 6px solid #4F46E5; background: #F5F7FF; border-radius: 0 14px 14px 0; padding: 10px 16px; margin: 10px 0; font-size: 19px; line-height: 1.5; color: #1E1B4B; }
.b-def b { color: #312E81; }
/* an everyday picture before a rule */
.b-life { display: flex; gap: 14px; align-items: flex-start; border: 2px solid #FDE68A; background: #FFFBEB; border-radius: 16px; padding: 12px 16px; margin: 10px 0; font-size: 18px; line-height: 1.5; color: #422006; }
.b-life svg { flex: 0 0 44px; width: 44px; height: 44px; }
/* the background of an idea: where it came from */
.b-back { border-left: 6px solid #C026D3; background: #FDF4FF; border-radius: 0 14px 14px 0; padding: 10px 16px; margin: 10px 0; font-size: 18px; line-height: 1.55; color: #3B0764; }
/* C editor inside the class */
.c-space { margin: 12px 0; }
.lc-step .ced { font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .b-life, .b-back { animation: none !important; } }
/* the preprocessor studio */
.c-studio { display: grid; gap: 12px; margin: 12px 0; }
.c-studio-in, .c-studio-out { border: 1.5px solid #E0E3F5; border-radius: 14px; background: #FBFBFF; padding: 10px 14px; }
.c-studio-in > b, .c-studio-out > b { display: block; font: 800 13px/1.2 "Plus Jakarta Sans", Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #4F46E5; margin-bottom: 6px; }
.c-studio-out { border-color: #A7F3D0; background: #F0FDF4; }
.c-studio-out > b { color: #047857; }
.c-studio-out pre { margin: 0; font: 600 15px/1.5 "JetBrains Mono", Consolas, monospace; white-space: pre-wrap; color: #0F172A; max-height: 260px; overflow: auto; }
.c-studio-go { justify-self: start; }
.b-mindcards svg { background: radial-gradient(circle at 50% 50%, #EEF2FF 0, #FFFFFF 60%); border-color: #C7D2FE; }
.b-mindcards .lc-flymap-say { color: #1E1B4B; background: #F5F7FF; border-left: 6px solid #4F46E5; border-radius: 0 12px 12px 0; padding: 10px 16px; margin-top: 10px; }
/* a written answer: the question, then the model answer point by point */
.b-ans { border: 2px solid #E0E3F5; border-radius: 16px; background: #FFFFFF; padding: 14px 18px; margin: 12px 0; }
.b-ans-q { font: 700 19px/1.45 "Plus Jakarta Sans", Arial, sans-serif; color: #1E1B4B; margin: 0 0 10px; padding-left: 12px; border-left: 5px solid #C026D3; }
.b-ans-a { border-top: 1.5px dashed #D9DCEB; padding-top: 10px; }
.b-ans-lead { font-size: 18px; line-height: 1.55; color: #0F172A; margin: 0 0 8px; }
.b-ans-pts { margin: 0; padding-left: 22px; font-size: 17.5px; line-height: 1.55; color: #0F172A; }
.b-ans-pts li { margin: 4px 0; }
.b-ans-pts b { color: #4338CA; }
.lc-purpose { border-left-color: #4F46E5; background: #F5F7FF; max-width: none; }
.c-studio { grid-template-columns: minmax(0, 1fr); }
.c-studio-in, .c-studio-out { min-width: 0; overflow-x: auto; }
/* a wide table scrolls inside its step on a phone, never the page */
@media (max-width: 640px) { .lc-step table.lc-trace { display: block; max-width: 100%; overflow-x: auto; } }
/* today's written test */
.b-test { border: 2px solid #C7D2FE; border-radius: 18px; background: #FFFFFF; padding: 16px 18px; margin: 12px 0; }
.bt-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1.5px dashed #D9DCEB; padding-bottom: 10px; margin-bottom: 8px; }
.bt-head b { display: block; font: 800 20px/1.2 "Plus Jakarta Sans", Arial, sans-serif; color: #1E1B4B; }
.bt-head span { color: #475569; font-size: 15px; }
.bt-clock { font: 800 34px/1 "JetBrains Mono", Consolas, monospace; color: #312E81; background: #EEF2FF; border-radius: 14px; padding: 10px 16px; min-width: 140px; text-align: center; }
.bt-clock.low { color: #B45309; background: #FEF3C7; }
.bt-clock.over { color: #BE123C; background: #FFE4E6; }
.bt-steps { margin: 6px 0 0; padding-left: 22px; font-size: 17px; line-height: 1.5; }
.bt-steps li { margin: 12px 0; }
.bt-steps li > div { margin-top: 8px; }
.bt-up { display: grid; gap: 10px; }
.bt-tips { display: flex; gap: 12px; align-items: flex-start; background: #FFFBEB; border: 1px solid #FCD34D; border-radius: 12px; padding: 12px 14px; margin: 8px 0 10px; }
.bt-tips > svg { width: 26px; height: 26px; flex: none; color: #B45309; margin-top: 2px; }
.bt-tips b { display: block; color: #78350F; margin-bottom: 4px; }
.bt-tips ul { margin: 0; padding-left: 18px; color: #451A03; font-size: 14.5px; line-height: 1.55; }
.bt-thumbs figure.bt-badpg img { border: 3px solid #DC2626; }
.bt-thumbs figure.bt-badpg figcaption { color: #DC2626; font-weight: 700; }
.bt-warn { color: #B91C1C; font-weight: 600; }
.bt-file span { display: inline-block; border: 2px dashed #A5B4FC; border-radius: 12px; padding: 12px 16px; color: #4338CA; font-weight: 700; cursor: pointer; background: #F5F7FF; }
.bt-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.bt-thumbs figure { margin: 0; width: 92px; }
.bt-thumbs img { width: 92px; height: 120px; object-fit: cover; border: 1px solid #CBD5E1; border-radius: 6px; display: block; }
.bt-thumbs figcaption { font-size: 12px; color: #64748B; text-align: center; }
.bt-msg { font-weight: 700; color: #4338CA; min-height: 22px; }
.bt-score { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 8px 0; }
.bt-score b { font: 800 44px/1 "Plus Jakarta Sans", sans-serif; color: #312E81; }
.bt-score b small { font-size: 24px; color: #64748B; }
.bt-score span { color: #475569; font-weight: 600; }
.bt-check { background: #FFFBEB; border: 1.5px solid #FDE68A; border-radius: 10px; padding: 8px 12px; color: #78350F; }
.bt-q { border: 1.5px solid #E0E3F5; border-radius: 14px; padding: 12px 14px; margin: 10px 0; }
.bt-qh { display: flex; justify-content: space-between; font: 800 18px "Plus Jakarta Sans", sans-serif; }
.bt-qh span { color: #4338CA; }
.bt-qq { color: #334155; border-left: 4px solid #C026D3; padding-left: 10px; margin: 6px 0; }
.bt-fb { font-size: 17px; color: #0F172A; }
.bt-pts { list-style: none; padding: 0; margin: 6px 0; }
.bt-pts li { display: flex; gap: 10px; align-items: baseline; margin: 5px 0; }
.bt-pts li i { flex: 0 0 68px; font-style: normal; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; text-align: center; border-radius: 99px; padding: 2px 0; }
.bt-pts li.full i { background: #ECFDF5; color: #047857; }
.bt-pts li.partial i { background: #FEF3C7; color: #B45309; }
.bt-pts li.missing i { background: #FFE4E6; color: #BE123C; }
.bt-pr { color: #475569; font-size: 15px; }
.bt-model summary { cursor: pointer; font-weight: 800; color: #4338CA; }
.bt-model { background: #F8FAFC; border-radius: 10px; padding: 8px 12px; margin-top: 8px; }
.bt-sch { color: #B45309; }
.bt-after { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
@media (max-width: 560px) { .bt-head { flex-direction: column; align-items: flex-start; } .bt-clock { font-size: 28px; } }
.b-test a.lc-btn { text-decoration: none; display: inline-block; }

/* figures: code in SVG text shows each character as typed (no != or ++ ligatures) */
.lc-figure svg text, .lc-mindmap svg text { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
.bt-mm { font: 800 12.5px "JetBrains Mono", monospace; font-style: normal; color: #312E81; background: #EEF2FF; border-radius: 6px; padding: 1px 6px; margin-right: 4px; white-space: nowrap; }

/* Prose tables and point lists (15 Nov 2026): never a typewriter font or a plain bullet for prose.
   table.lc-trace.b-tab keeps the press-by-press reveal of lc-trace; ul.b-pts gives each point a card and a drawn tick. */
.lc-step table.lc-trace.b-tab { border-collapse: separate; border-spacing: 0; width: 100%; margin: 10px 0 16px; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 17px; line-height: 1.5; background: #FFFFFF; border: 1.5px solid #E2E8F0; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(15, 23, 42, .05); }
.lc-step table.lc-trace.b-tab th { background: linear-gradient(180deg, #EEF2FF, #E0E7FF); color: #312E81; font: 800 13px/1.3 "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: .05em; text-transform: uppercase; padding: 11px 16px; border: 0; border-bottom: 1.5px solid #C7D2FE; text-align: left; }
.lc-step table.lc-trace.b-tab td { border: 0; border-top: 1px solid #EEF2F7; padding: 12px 16px; vertical-align: top; color: #0F172A; }
.lc-step table.lc-trace.b-tab tbody tr:first-child td { border-top: 0; }
.lc-step table.lc-trace.b-tab tbody tr:nth-child(even) td { background: #F8FAFC; }
.lc-step table.lc-trace.b-tab td:first-child { font-weight: 700; color: #312E81; }
.lc-step table.lc-trace.b-tab td code { font-family: 'JetBrains Mono', monospace; font-size: .92em; background: #F1F5F9; padding: 1px 5px; border-radius: 5px; }
.lc-step ul.b-pts { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.lc-step ul.b-pts li { position: relative; border: 1.5px solid #E2E8F0; border-radius: 12px; background: #FFFFFF; padding: 9px 16px 9px 44px; font-size: 17.5px; line-height: 1.45; color: #0F172A; box-shadow: 0 1px 4px rgba(15, 23, 42, .04); }
.lc-step ul.b-pts li::before { content: ""; position: absolute; left: 14px; top: 12px; width: 20px; height: 20px; border-radius: 50%; background: #EEF2FF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%234F46E5' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.lc-step ul.b-pts li b { color: #312E81; }
/* the examiner's remark at the foot of a marked test (15 Nov 2026) */
.bt-remark { margin: 10px 0 14px; padding: 12px 16px; border-left: 5px solid #7C3AED; border-radius: 0 12px 12px 0; background: #F5F3FF; color: #1E1B4B; font-size: 16.5px; line-height: 1.5; }
.bt-remark b { display: block; font: 800 12px/1.4 "Plus Jakarta Sans", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #6D28D9; margin-bottom: 2px; }
/* marked like a script (15 Nov 2026): red ink in a hand, each mark beside the student's own words */
.bt-qh .bt-ring, .bt-ring { color: #C81E1E !important; display: inline-grid; place-items: center; min-width: 54px; height: 44px; padding: 0 8px; border: 2.5px solid #DC2626; border-radius: 50% / 46%; color: #C81E1E; font: 700 22px/1 Kalam, cursive; transform: rotate(-4deg); }
.bt-ring small { font-size: 15px; margin-left: 1px; color: #C81E1E !important; }
.bt-marked { display: grid; gap: 0; margin: 8px 0 10px; border-top: 1px solid #E2E8F0; }
.bt-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; padding: 8px 2px; border-bottom: 1px solid #E2E8F0; background: repeating-linear-gradient(to bottom, transparent 0 33px, #EEF2F7 33px 34px); }
.bt-ans { border-right: 2px solid #FCA5A5; padding-right: 12px; }
.bt-hand { display: block; font: 400 19px/1.45 Kalam, cursive; color: #1D3F94; }
.bt-none { display: block; font: 400 16px/1.45 Kalam, cursive; color: #94A3B8; }
.bt-ans small { display: block; margin-top: 2px; font: 600 12.5px/1.35 "Plus Jakarta Sans", sans-serif; color: #64748B; }
.bt-red { display: grid; grid-template-columns: 30px auto; column-gap: 8px; align-items: start; color: #C81E1E; font: 400 18px/1.4 Kalam, cursive; }
.bt-red b { font: 700 21px/1.2 Kalam, cursive; color: #C81E1E; }
.bt-red span { grid-column: 1 / -1; padding-left: 38px; font-size: 16.5px; line-height: 1.4; color: #B91C1C; }
.bt-tk { width: 28px; height: 28px; fill: none; stroke: #DC2626; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.bt-redhand { font: 400 18px/1.5 Kalam, cursive !important; color: #B91C1C !important; }
@media (max-width: 640px) { .bt-row { grid-template-columns: 1fr; } .bt-ans { border-right: 0; } }

/* a program's Input, above its console (18 Nov 2026, C Day 4): what is typed into the page's Input box before the run */
.lc-input { background: #FFFBEB; border-top: 1px solid #FDE68A; color: #0F172A; }
.lc-input .lc-console-head { color: #92400E; }
.lc-input-body { font-family: var(--mono, "JetBrains Mono", monospace); font-size: calc(clamp(14.5px, 0.5vw + 11px, 18px) * var(--fs, 1)); line-height: 1.55; padding: 6px 16px 12px; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-variant-ligatures: none; }
.lc-input-line { font-weight: 700; color: #78350F; }
.lc-input-none { color: #64748B; font-style: italic; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: .82em; }

/* Lean, stylish step headers (his review, 20 Nov 2026: headers took too much room; the content must show):
   a smaller kicker, a heading about a quarter smaller with a short accent line under it, tighter spacing */
body[data-brahma] .lc-step .lc-part { font-size: 11px; padding: 3px 10px; margin-bottom: 6px; letter-spacing: .09em; }
body[data-brahma] .lc-step h2 { font-size: calc(clamp(22px, 1.75vw, 29px) * var(--fs, 1)); line-height: 1.18; letter-spacing: -.015em; margin: 0 0 12px; }
body[data-brahma] .lc-step h2::after { content: ''; display: block; width: 44px; height: 3px; margin-top: 7px; border-radius: 3px; background: linear-gradient(90deg, #4F46E5, #A855F7); }
body[data-brahma] .lc-step.lc-hero h2::after { display: none; }
