/* WeissGuitar Learn: the Laboratory as a streaming room (unit B4, 18 Nov 2026; js/lab-hub.js). Always dark. Mobile first: phone rules are the
   base, wider screens add. Rooms: Standards gold #e2b46a, Bebop language coral #e0907a, Learn a solo blue #8fb8e0, Live Room lavender #c9a3e6,
   Practice Bench teal #6cc4b4; brand violet #6036e8 on ink #0d001a. Titles Suwannaphum (already loaded by every Lab page), text Inter. */
html.wg-lab-dark #theme-toggle, html.wg-lab-dark .theme-toggle { display: none; }
html.ldr-on #threshold, html.ldr-on #world, html.ldr-on .lab-mbench { display: none; }
html.ldr-pending #threshold, html.ldr-pending #world { visibility: hidden; }
.lab-hub-b4 { --ldr-ink: #0d001a; --ldr-deep: #07000f; --ldr-raised: #170b28; --ldr-tx: #f5f0fb; --ldr-tx2: #c9bedb; --ldr-tx3: #a596bc; --ldr-line: rgba(255,255,255,.09);
  --ldr-serif: 'Suwannaphum', Georgia, serif; --ldr-sans: 'Inter', system-ui, sans-serif; --ldr-pad: 18px;
  position: relative; z-index: 2; color: var(--ldr-tx); font-family: var(--ldr-sans); margin: 0 calc(-1 * var(--content-padding, 0px)); padding-bottom: 40px; }
.lab-hub-b4 *, .ldr-menu * { box-sizing: border-box; }
.ldr-i { width: 16px; height: 16px; flex: none; }
.ldr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lab-hub-b4 a:not(.ldr-btn) { color: inherit; }
.lab-hub-b4 a.ldr-btn-play, .lab-hub-b4 .ldr-btn-play { color: #0d001a; } .lab-hub-b4 a.ldr-btn-1 { color: #fff; } .lab-hub-b4 a.ldr-btn-ghost { color: #f5f0fb; }
.lab-hub-b4 :focus-visible, .ldr-menu :focus-visible { outline: 3px solid #b9a6ff; outline-offset: 3px; border-radius: 6px; }

/* phone menu (every Lab page) */
.ldr-menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 22px; border: 1px solid rgba(255,255,255,.24); background: transparent; color: #f5f0fb; font: 600 14px/1 'Inter', system-ui, sans-serif; cursor: pointer; }
.ldr-menu { position: fixed; z-index: 10050; inset: 0; background: rgba(7,0,15,.72); }
.ldr-menu[hidden] { display: none; }
.ldr-menu nav { position: absolute; left: 0; right: 0; top: 0; padding: 14px 18px 20px; background: #150a25; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; }
.ldr-menu a { padding: 14px 4px; min-height: 48px; font: 500 18px/1.2 'Inter', system-ui, sans-serif; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.1); color: #c9bedb; }
.ldr-menu a[aria-current] { color: #fff; font-weight: 700; }
.ldr-menu-x { align-self: flex-end; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.24); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }

/* billboard */
.ldr-bill { position: relative; background: var(--ldr-ink); overflow: hidden; }
.ldr-bill-art { position: relative; aspect-ratio: 16 / 9; background: #000; }
.ldr-bill-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ldr-bill-art::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, var(--ldr-deep) 0%, rgba(7,0,15,0) 32%), linear-gradient(180deg, rgba(7,0,15,.55), transparent 24%); }
.ldr-bill-art.ldr-playing::after { display: none; }
.ldr-bill-copy { position: relative; z-index: 2; margin: -30px var(--ldr-pad) 0; }
.ldr-room { display: flex; align-items: center; gap: 10px; margin: 0; font: 400 15px/1 var(--ldr-serif); color: #e2b46a; }
.ldr-room::before { content: ''; width: 26px; height: 1px; background: currentColor; }
.ldr-pos { margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--ldr-tx2); max-width: 44ch; }
.ldr-bill h1 { margin: 8px 0 0; font: 700 42px/1 var(--ldr-serif); letter-spacing: -.02em; color: #fff; }
.ldr-line { margin: 8px 0 0; font-size: 17px; line-height: 1.4; color: var(--ldr-tx); max-width: 34ch; }
.ldr-meta { display: none; margin: 8px 0 0; font-size: 14px; color: var(--ldr-tx2); }
.ldr-bridge { margin: 6px 0 0; font-size: 14px; color: #e2b46a; }
.ldr-note { margin: 12px 0 0; display: inline-block; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,.07); color: var(--ldr-tx2); font-size: 14px; }
.ldr-acts { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.ldr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 0; font: 700 16px/1.2 var(--ldr-sans); text-decoration: none; cursor: pointer; text-align: center; }
.ldr-acts .ldr-btn { flex: 1 1 100%; }
.ldr-btn-play { background: #fff; color: var(--ldr-ink); }
.ldr-btn-1 { background: #6036e8; color: #fff; box-shadow: 0 10px 30px rgba(96,54,232,.4); }
.ldr-btn-1:hover { background: #7552ff; }
.ldr-btn-ghost { background: rgba(255,255,255,.07); color: var(--ldr-tx); border: 1px solid rgba(255,255,255,.32); }
.ldr-q { color: var(--ldr-tx2); font-size: 15px; font-weight: 500; text-underline-offset: 4px; background: none; border: 0; padding: 10px 0; min-height: 44px; cursor: pointer; font-family: var(--ldr-sans); }

/* catalogue navigation */
.ldr-nav { display: flex; gap: 10px; padding: 18px var(--ldr-pad) 0; overflow-x: auto; scrollbar-width: none; }
.ldr-nav::-webkit-scrollbar { display: none; }
.ldr-nav a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); text-decoration: none; font-size: 14px; color: var(--ldr-tx2); }
.ldr-nav a i { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.ldr-nav .ldr-nav-all { color: #fff; font-weight: 600; border-color: rgba(255,255,255,.42); }

/* rows and cards */
.ldr-row { margin-top: 32px; }
.ldr-row-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; padding: 0 var(--ldr-pad); }
.ldr-row-h h2 { margin: 0; font: 700 22px/1.15 var(--ldr-serif); color: #fff; }
.ldr-row-h p { display: none; margin: 0; font-size: 15px; color: var(--ldr-tx3); }
.ldr-see { margin-left: auto; min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 600; color: #fff; text-underline-offset: 4px; }
.ldr-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--ldr-pad); padding: 12px var(--ldr-pad) 6px; scrollbar-width: none; }
.ldr-track::-webkit-scrollbar { display: none; }
.ldr-cell { position: relative; flex: none; width: 74vw; max-width: 320px; scroll-snap-align: start; }
.ldr-ep { display: block; text-decoration: none; border-radius: 12px; }
.ldr-art { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #1a0f2b; box-shadow: 0 14px 30px rgba(0,0,0,.45); }
.ldr-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ldr-art::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--acc); z-index: 2; }
.ldr-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,0,15,.9) 0%, rgba(7,0,15,.25) 45%, transparent 65%); pointer-events: none; }
.ldr-art.ldr-playing::after { display: none; }
.ldr-t { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 12px; font: 700 19px/1.12 var(--ldr-serif); color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ldr-acc { position: absolute; z-index: 2; top: 12px; left: 12px; display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: rgba(7,0,15,.7); color: #e6dcf5; }
.ldr-acc .ldr-i { width: 11px; height: 11px; }
.ldr-acc-open { background: #e2b46a; color: #251600; }
.ldr-pv { position: absolute; z-index: 3; top: 6px; right: 6px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 0; background: rgba(255,255,255,.94); color: #0d001a; font: 700 12px/1 var(--ldr-sans); cursor: pointer; }
.ldr-pv .ldr-i { width: 10px; height: 10px; }
.ldr-bill .ldr-pv { position: static; }
.ldr-f { display: -webkit-box; margin-top: 10px; font-size: 14px; color: var(--ldr-tx2); line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ldr-d { display: block; margin-top: 4px; font-size: 13px; color: var(--ldr-tx3); }
.ldr-ep:hover .ldr-art, .ldr-ep:focus-visible .ldr-art { box-shadow: 0 18px 40px rgba(0,0,0,.55), 0 0 0 2px var(--acc); }
.ldr-prog { display: block; height: 3px; margin-top: 10px; border-radius: 3px; background: rgba(255,255,255,.14); overflow: hidden; }
.ldr-prog i { display: block; height: 100%; background: var(--acc); }
/* drawn title card: where no frame shows both complete hands (never a student, never a half hand) */
.ldr-topic { position: absolute; inset: 0; padding: 40px 16px 0; background: radial-gradient(120% 110% at 100% 0%, color-mix(in srgb, var(--acc) 30%, transparent), transparent 62%), linear-gradient(155deg, #241540, #0f0619); }
.ldr-topic > span { position: relative; z-index: 1; display: block; font-size: 12px; font-weight: 600; color: var(--acc); }
.ldr-topic .ldr-i { position: absolute; left: -6px; top: 22%; width: calc(100% + 12px); height: 52%; opacity: .26; color: var(--acc); }
.ldr-allt { flex: none; align-self: flex-start; width: 74vw; max-width: 320px; aspect-ratio: 16 / 9; border-radius: 10px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 22px; text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent); background: linear-gradient(150deg, color-mix(in srgb, var(--acc) 16%, #170b28), #120822); scroll-snap-align: start; }
.ldr-allt b { font: 700 20px/1.15 var(--ldr-serif); color: #fff; } .ldr-allt span { color: var(--acc); font-weight: 600; font-size: 15px; }
.ldr-qa { flex: none; aspect-ratio: 16 / 9; height: auto; border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; background: linear-gradient(150deg, #2b1748, #150a26); border: 1px solid rgba(201,163,230,.38); align-self: flex-start; }
.ldr-qa b { font: 700 18px/1.2 var(--ldr-serif); color: #fff; } .ldr-qa p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ldr-tx2); } .ldr-qa .ldr-qa-k { color: #c9a3e6; font-weight: 600; }

/* inline player and its end state: a stage over the picture, outside the card's link */
.ldr-stage { position: absolute; z-index: 4; left: 0; top: 0; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0d001a; }
.ldr-bill-art > .ldr-stage { inset: 0; height: 100%; aspect-ratio: auto; border-radius: 0; }
.ldr-cell .ldr-art.ldr-playing { visibility: hidden; }
.ldr-player, .ldr-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0d001a; }
.ldr-close { position: absolute; z-index: 6; right: 8px; bottom: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(13,0,26,.9); color: #fff; font: 600 13px/1 var(--ldr-sans); cursor: pointer; }
.ldr-end { position: absolute; z-index: 5; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px; text-align: center; background: #0b0218; }
.ldr-end b { font: 700 18px/1.2 var(--ldr-serif); color: #fff; }
.ldr-end-a { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; align-items: center; }
.ldr-end .ldr-btn { min-height: 44px; padding: 8px 14px; font-size: 13px; }

/* Solar feature and the next step */
.ldr-pad { padding: 12px var(--ldr-pad) 0; }
.ldr-feature { margin: 0 var(--ldr-pad); display: grid; grid-template-columns: 1fr; border-radius: 16px; overflow: hidden; background: var(--ldr-raised); border: 1px solid var(--ldr-line); text-decoration: none; }
.ldr-pad .ldr-feature { margin: 0; }
.ldr-fi { position: relative; display: block; aspect-ratio: 16 / 9; } .ldr-fi img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ldr-fc { padding: 6px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.ldr-k { font-size: 14px; color: var(--acc); font-weight: 600; } .ldr-fh { font: 700 24px/1.1 var(--ldr-serif); color: #fff; } .ldr-fp { color: var(--ldr-tx2); font-size: 15px; max-width: 42ch; }
.ldr-fc .ldr-btn { margin-top: 6px; }

/* the invitation */
.ldr-offer { margin: 44px var(--ldr-pad) 0; padding: 26px 20px; border-radius: 20px; display: grid; grid-template-columns: 1fr; gap: 20px;
  background: radial-gradient(100% 140% at 0% 0%, rgba(96,54,232,.28), transparent 55%), linear-gradient(160deg, #1d1036, #120822); border: 1px solid rgba(185,166,255,.2); }
.ldr-offer h2 { margin: 0; font: 700 25px/1.15 var(--ldr-serif); color: #fff; }
.ldr-inc { margin: 10px 0 0; color: var(--ldr-tx2); font-size: 16px; max-width: 46ch; }
.ldr-offer ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ldr-offer li { padding-left: 26px; position: relative; color: var(--ldr-tx); }
.ldr-offer li::before { content: ''; position: absolute; left: 3px; top: 7px; width: 11px; height: 6px; border-left: 2px solid #e2b46a; border-bottom: 2px solid #e2b46a; transform: rotate(-45deg); }
.ldr-own { margin: 12px 0 0; font-size: 14px; color: var(--ldr-tx3); }
.ldr-price p { margin: 4px 0 0; font-size: 15px; color: var(--ldr-tx2); }
.ldr-price .ldr-p1 { margin: 0; font: 700 30px/1.1 var(--ldr-serif); color: #fff; }
.ldr-price .ldr-p3 { font-size: 14px; color: var(--ldr-tx3); }
.ldr-offer .ldr-btn { margin-top: 18px; width: 100%; }

/* room pages */
.ldr-roompage { padding: 84px var(--ldr-pad) 40px; }
.ldr-roompage h1 { margin: 10px 0 0; font: 700 34px/1.1 var(--ldr-serif); color: #fff; }
.ldr-roompage .ldr-nav { padding-left: 0; padding-right: 0; }
.ldr-back { display: inline-flex; min-height: 44px; align-items: center; color: var(--ldr-tx2); text-underline-offset: 4px; }
.ldr-grid-h { margin: 30px 0 0; font: 700 22px/1.2 var(--ldr-serif); color: #fff; } .ldr-grid-h span { font: 400 14px var(--ldr-sans); color: var(--ldr-tx3); }
.ldr-grid { margin-top: 12px; display: grid; grid-template-columns: 1fr; gap: 18px; }
.ldr-grid .ldr-cell { width: auto; max-width: none; }

@media (min-width: 600px) { .ldr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ldr-acts .ldr-btn { flex: 0 1 auto; } }
@media (min-width: 761px) {
  .ldr-menu-btn { display: none; }
  .lab-hub-b4 { --ldr-pad: 40px; }
  .ldr-bill { min-height: 600px; height: min(82vh, 760px); }
  .ldr-bill-art { position: absolute; top: 0; right: 0; height: 100%; width: 74%; aspect-ratio: auto; }
  .ldr-bill-art img { object-position: 0 50%; }
  .ldr-bill-art::after { background: linear-gradient(90deg, var(--ldr-ink) 0%, rgba(13,0,26,.6) 8%, rgba(13,0,26,0) 22%), linear-gradient(0deg, var(--ldr-deep) 0%, rgba(7,0,15,0) 30%); }
  .ldr-bill-copy { position: absolute; left: var(--ldr-pad); bottom: 64px; width: min(500px, 38vw); margin: 0; }
  .ldr-room { font-size: 18px; } .ldr-pos { font-size: 15px; }
  .ldr-bill h1 { font-size: clamp(46px, 5.2vw, 74px); } .ldr-line { font-size: 20px; } .ldr-meta { display: block; }
  .ldr-row { margin-top: 44px; } .ldr-row-h p { display: block; } .ldr-row-h h2 { font-size: 26px; }
  .ldr-track { gap: 18px; padding-top: 16px; } .ldr-cell, .ldr-allt { width: 296px; }
  .ldr-feature { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } .ldr-fi { aspect-ratio: auto; min-height: 270px; } .ldr-fc { padding: 30px 34px; justify-content: center; } .ldr-fh { font-size: 30px; } .ldr-fc .ldr-btn { align-self: flex-start; }
  .ldr-offer { padding: 36px 40px; gap: 32px; } .ldr-offer h2 { font-size: 30px; }
  .ldr-roompage { padding-top: 96px; }
}
@media (min-width: 761px) and (max-width: 1024px) { .ldr-bill-copy { width: min(500px, 54vw); } .ldr-bill-art { width: 100%; } .ldr-bill-art::after { background: linear-gradient(90deg, rgba(13,0,26,.92) 0%, rgba(13,0,26,.55) 45%, rgba(13,0,26,.15) 70%), linear-gradient(0deg, var(--ldr-deep) 0%, rgba(7,0,15,0) 30%); } }
@media (min-width: 1025px) { .ldr-offer { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; } .ldr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .ldr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .lab-hub-b4 * { scroll-behavior: auto; } }

/* Bundle C (S10 type floor, 18 Nov 2026): the reading text of the Lab front door and the locked episode, 17 px phone / 18 px desktop */
html.wg-lab-dark .ldr-line, html.wg-lab-dark .ldr-why, html.wg-lab-dark .ldr-inc, html.wg-lab-dark .ldr-dr-sub, html.wg-lab-dark .ldr-dr-blk p,
html.wg-lab-dark .ldr-dr-blk li, html.wg-lab-dark .ldr-dr-focus p, html.wg-lab-dark .lab-intro { font-size: 17px; line-height: 1.55; }
@media (min-width: 1024px) {
  html.wg-lab-dark .ldr-line, html.wg-lab-dark .ldr-why, html.wg-lab-dark .ldr-inc, html.wg-lab-dark .ldr-dr-sub, html.wg-lab-dark .ldr-dr-blk p,
  html.wg-lab-dark .ldr-dr-blk li, html.wg-lab-dark .ldr-dr-focus p, html.wg-lab-dark .lab-intro { font-size: 18px; }
}
html.wg-lab-dark .ldr-why { margin: 6px 0 0; color: var(--text-secondary, #c9c2e0); }
html.wg-lab-dark .ldr-acc-own { background: rgba(108, 196, 180, .92); color: #06201b; }
/* Bundle C (18 Nov 2026): the billboard without a hero photo shows the episode's card whole (its own title is on it), beside the copy */
.ldr-bill-card .ldr-bill-art { margin: 16px var(--ldr-pad) 0; border-radius: 12px; overflow: hidden; }
.ldr-bill-card .ldr-bill-art::after { display: none; }
.ldr-bill-card .ldr-bill-art img { object-fit: contain; }
.ldr-bill-card .ldr-bill-copy { margin-top: 18px; }
@media (min-width: 761px) {
  .ldr-bill.ldr-bill-card { height: auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center; padding: 48px var(--ldr-pad); }
  .ldr-bill-card .ldr-bill-art { position: relative; order: 2; width: auto; height: auto; aspect-ratio: 16 / 9; margin: 0; top: auto; right: auto; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
  .ldr-bill-card .ldr-bill-copy { position: relative; order: 1; left: auto; bottom: auto; width: auto; margin: 0; }
}
/* Bundle C: a slot-map card already shows the episode title: the hub's title overlay stays for screen readers only, no darkening gradient */
.ldr-art-card::after { display: none; }
.ldr-art-card .ldr-t { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ldr-fi img { object-fit: contain; }
/* Bundle C (Codex r1 P1-2): the room page's way into the original tune maps (charts, chord strips) */
.ldr-tools { margin: 6px 0 14px; } .ldr-tools a { display: inline-flex; align-items: center; min-height: 44px; color: #c9b8ff; text-underline-offset: 3px; font-size: 17px; }
