/* WAHAJ prototype — the Tutorials on one page and the Mission guide's layout (docs/DECISIONS.md V6G-29).
   Flat panels, no shadows, no gradients, no tinted backgrounds. */

/* ---------- Tutorials: the player and what it teaches on the left, the learning path and the mentor on the right ---------- */
.mco { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; padding: 20px 0 22px}
.mco-main { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding-inline-end: 4px; scrollbar-width: none}
.mco-main::-webkit-scrollbar { display: none}
.mco .mc-video { flex: none}
/* the column scrolls; its sections keep their own height and never squeeze into one another */
.mco-main > * { flex: none}
/* before a tutorial plays: its picture, a big play button and its length */
.mc-poster { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #0a0a0b; cursor: pointer}
.mc-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease}
.mc-poster:hover img { transform: scale(1.02)}
.mc-poster i { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #0a0a0b; transition: transform .2s ease}
.mc-poster:hover i { transform: translate(-50%, -50%) scale(1.06)}
.mc-poster em { position: absolute; inset-inline-end: 14px; bottom: 14px; padding: 4px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.75); color: #fff; font-style: normal; font-weight: 700; font-size: 14px}
/* what it teaches, and Previous / Next beside Mark as watched */
.mc-kick { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent)}
.mc-acts { display: flex; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap}
.mc-acts .sp { flex: 1}
.mc-acts .mc-mark { margin-top: 0}
.mc-acts .btn { height: 44px; padding: 0 18px; gap: 8px; font-size: 14.5px}
/* the step it matches, the skills, the sponsor */
.mco-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch}
.mco-cards .mc-sponsor { margin-top: 0; align-content: center; border-color: #232325; background: #0f0f11}
.mco-cards .mc-sponsor .qf { width: 150px}
/* the learning path and the mentor */
.mco-side { min-height: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden}
.mco-ph h4 { margin: 0}
.mco-ph small { display: block; margin: 4px 0 10px; font-size: 13px; color: #98989d}
.mco-side .mc-list { flex: none; gap: 4px}
.mco-side .mc-it { grid-template-columns: 112px minmax(0, 1fr); padding: 6px}
.mco-side .mc-ith { width: 112px; height: 63px}
.mc-mine { color: var(--accent)}
.mc-todo { color: #8e8e93}
.mco-side .mct { margin-top: 12px; flex: 1; min-height: 170px}
[data-theme="light"] .mco-ph small, [data-theme="light"] .mc-todo { color: #6e6e73}
[data-theme="light"] .mco-cards .mc-sponsor { background: #fff; border-color: #e5e5ea}
[data-theme="light"] .mc-poster { background: #f5f5f6}

/* ---------- the Mission guide: a larger window so every tab is in view at once; the same content ---------- */
.modal.fgd-modal { width: 1320px; max-height: 1020px}
.fgd { grid-template-columns: 210px minmax(0, 1fr); gap: 28px; min-height: 0}
.fgd-tabs { position: sticky; top: 0; align-self: start}
.fgd-body { max-height: 820px}
/* the overview: the picture and the story side by side */
.fgd-hero { grid-template-columns: 380px minmax(0, 1fr); gap: 24px; align-items: center}
.fgd-hero img { width: 380px; height: 214px}
.fgd-hero .fgd-lead { font-size: 16px}
/* four numbers, the same size, on one line, each label above its circle */
.lf-bubs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; justify-items: center; gap: 12px; margin: 22px 0 8px; padding: 0}
.lf-bubs .lf-bub, .lf-bubs .lf-bub:nth-child(2), .lf-bubs .lf-bub:nth-child(4) { margin: 0}
.lf-bubs .lf-bc, .lf-bubs .lf-bub.big .lf-bc { width: 100px; height: 100px}
.lf-bubs .lf-bc b, .lf-bubs .lf-bub.big .lf-bc b { font-size: 38px}
/* what you learn and what you earn, side by side */
.fgd-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start}
.fgd-two .fgd-row3 { grid-template-columns: 1fr; gap: 8px}
.fgd-two .fgd-earn { padding: 10px 14px}
/* the parts, three to a row */
.fgd-parts { grid-template-columns: repeat(3, minmax(0, 1fr))}
.fgd-part { padding: 12px}
/* the seven steps: the line under each title stays on one line where it fits */
.fgd-steps li { padding: 10px 14px}
.fgd-steps p { margin: 2px 0 3px}

/* the line under the green kicker is quiet, so the two never read as one shout */
.mco .mc-info .mc-ep { color: #98989d}
[data-theme="light"] .mco .mc-info .mc-ep { color: #6e6e73}
.mco-cards { align-items: start}

/* one size for every tab: the window never jumps when a tab changes */
.modal.fgd-modal { height: 1000px}
.fgd-body { height: 820px}

/* ---------- V6G-35: the Tutorials page fits the screen with no scrolling ---------- */
.mco { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; padding: 18px 0 20px; overflow: hidden}
.mco-main { overflow: hidden; display: flex; flex-direction: column; gap: 16px; padding: 0}
.mco-main > * { flex: none}
.mco .mc-video { width: 100%; aspect-ratio: 16 / 9; border-radius: 18px}
.mco .mc-info { display: flex; flex-direction: column; gap: 8px}
.mc-kickrow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px}
.mco .mc-kick { margin: 0; font-size: 12.5px; letter-spacing: .08em; color: #98989d}
.mc-mine-pill, .mc-seen-pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #0a0a0b; background: var(--accent)}
.mc-seen-pill { color: #f5f5f7; background: #2c2c2e}
.mc-titlerow { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap}
.mco .mc-info h2 { margin: 0; font-size: 28px; line-height: 1.15}
.mco .mc-by { margin: 0; font-size: 14px; color: #a1a1a6}
.mco .mc-about { margin: 0; font-size: 15.5px; line-height: 1.5; color: #d2d2d7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden}
.mco .mc-learn { margin-top: 2px}
.mco .mc-learn li { height: 32px; font-size: 13.5px}
.mco .mc-acts { margin-top: 6px}
/* the right column: the learning path, then the mentor filling the rest */
.mco-side .mc-list { gap: 2px}
.mco-side .mc-it { padding: 5px 6px}
.mco-side .mc-ith { width: 104px; height: 58px}
.mco-side .mc-it { grid-template-columns: 104px minmax(0, 1fr)}
.mco-side .mct { min-height: 0}
/* the sponsor sits in the header */
.mc-top .mc-hsp { margin: 0; padding: 0 18px 0 0; border: 0; background: none; display: inline-flex; align-items: center; gap: 12px; grid-auto-flow: column}
.mc-top .mc-hsp small { font-size: 10.5px; letter-spacing: .12em}
.mc-top .mc-hsp .qf { width: 96px}
[data-theme="light"] .mco .mc-kick, [data-theme="light"] .mco .mc-by { color: #6e6e73}
[data-theme="light"] .mco .mc-about { color: #3a3a3c}
[data-theme="light"] .mc-seen-pill { color: #1d1d1f; background: #e5e5ea}
/* the player takes the height the details leave, so the page is filled and nothing scrolls */
.mco-main > .mc-video { flex: 1 1 auto; min-height: 320px; aspect-ratio: auto}

/* ---------- V6G-36: a shorter 16:9 player with Picture in picture and Full screen; the floating tutorial ---------- */
.mco-main > .mc-video { flex: none}
.mco-main > .mc-vwrap { flex: none; position: relative}
.mco .mc-vwrap .mc-video { width: 100%; aspect-ratio: 16 / 9; min-height: 0}
.mco-main > .mc-info { flex: 1 1 auto; min-height: 0}
.mco .mc-info .mc-acts { margin-top: auto}
.mc-ptools { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 4; display: flex; gap: 6px}
.mc-vt { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 0; background: rgba(0, 0, 0, 0.62); color: #fff; cursor: pointer; transition: background .15s}
.mc-vt:hover { background: rgba(0, 0, 0, 0.85)}
.mc-vwrap:fullscreen { background: #000; display: grid; place-items: center}
.mc-vwrap:fullscreen .mc-video { width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0}
.mc-pip { position: absolute; inset-inline-start: 340px; top: 156px; z-index: 30; width: 400px; border-radius: 16px; overflow: hidden; background: #0a0a0b; border: 1px solid #2c2c2e}
.mc-piph { display: flex; align-items: center; gap: 4px; height: 38px; padding: 0 6px 0 12px; cursor: grab; user-select: none; color: #f5f5f7}
.mc-piph > span { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; font-size: 13px; overflow: hidden}
.mc-piph > span b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600}
.mc-piph > span .ico { color: var(--accent); flex: none}
.mc-piph button { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; border: 0; background: none; color: #c7c7cc; cursor: pointer}
.mc-piph button:hover { background: #1c1c1e; color: #fff}
.mc-pipv { position: relative; width: 100%; aspect-ratio: 16 / 9}
.mc-pipv .mv { position: absolute; inset: 0}
.mc-pip .mv .mv-title, .mc-pip .mv .mv-skip { display: none}
.mc-pip .mv .mv-sub { bottom: 44px; padding: 0 10px}
.mc-pip .mv .mv-sub span { font-size: 12px; padding: 3px 7px; max-width: 360px}
.mc-pip .mv .mv-bar { height: 38px; gap: 6px; padding: 0 8px}
.mc-pip .mv .mv-time { font-size: 11px}
[data-theme="light"] .mc-pip { background: #fff; border-color: #e5e5ea}
[data-theme="light"] .mc-piph { color: #1d1d1f}
[data-theme="light"] .mc-piph button { color: #3a3a3c}
[data-theme="light"] .mc-piph button:hover { background: #f2f2f4; color: #1d1d1f}
