/* BIH JHS Tech Club. Brand tokens match bozomainnovationhub.com:
   plum #24182E, red #CA1F3F, gold #FFBE00 (gold text #8A5C00); Outfit headings, Rubik text. */
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap; src: url(fonts/rubik.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/outfit.woff2) format("woff2"); }

:root {
  --plum: #24182e;
  --plum-2: #3a2b47;
  --plum-tint: #f4f0f6;
  --red: #ca1f3f;
  --red-dark: #a8172f;
  --red-tint: #fdecef;
  --gold: #ffbe00;
  --gold-ink: #8a5c00;
  --gold-tint: #fff7db;
  --green: #1f8a70;
  --green-tint: #e3f5ef;
  --ink: #24182e;
  --text: #3b3343;
  --muted: #6b6373;
  --line: #e8e3ec;
  --paper: #ffffff;
  --bg: #f9f9f9;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(36, 24, 46, 0.08);
  --font: "Rubik", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Outfit", "Rubik", "Segoe UI", Arial, sans-serif;
  /* Older names used by the labs */
  --purple: var(--plum);
  --blue: var(--plum-2);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
a { color: var(--red); }
img { max-width: 100%; }
code { background: var(--plum-tint); padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--plum); padding: 8px 14px; border-radius: 999px; z-index: 100; font-weight: 700; }
.skip:focus { left: 12px; }

/* Header: plum bar, white logo, like the BIH site */
.site-head { background: rgba(36, 24, 46, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; }
.brand img { height: 40px; width: auto; display: block; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.nav a { text-decoration: none; color: rgba(255, 255, 255, 0.82); font-weight: 500; font-size: 14.5px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: #fff; }
.nav a[aria-current] { color: #fff; background: rgba(255, 255, 255, 0.1); }
.nav a.nav-cta { background: var(--red); color: #fff; padding: 9px 18px; margin-left: 6px; }
.nav a.nav-cta:hover { background: var(--red-dark); }

/* Eyebrow label: small uppercase, gold */
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 8px; }
.chip-label { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; }
.chip-label i { color: var(--gold); font-style: normal; }

/* Hero: plum with soft gold and red glows */
.hero { position: relative; overflow: hidden; background: var(--plum); color: #fff; padding: 72px 0 80px; }
.hero::before, .hero::after { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; filter: blur(120px); opacity: 0.28; pointer-events: none; }
.hero::before { background: var(--gold); top: -120px; left: 8%; }
.hero::after { background: var(--red); bottom: -200px; right: 6%; }
.hero .wrap { position: relative; }
.hero h1 { color: #fff; font-size: clamp(36px, 6vw, 60px); line-height: 1.05; margin: 0 0 18px; font-weight: 500; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { max-width: 620px; font-size: 18px; color: rgba(255, 255, 255, 0.85); margin: 0 0 30px; font-weight: 300; }
.hero .stats { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 40px; }
.hero .stat b { display: block; font-family: var(--display); font-size: 34px; line-height: 1; color: var(--gold); font-weight: 500; }
.hero .stat span { font-size: 13px; color: rgba(255, 255, 255, 0.7); text-transform: uppercase; letter-spacing: 0.1em; }
.continue { display: none; margin-top: 26px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 18px; padding: 14px 18px; max-width: 560px; }
.continue.show { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.continue span { color: rgba(255, 255, 255, 0.85); font-size: 15px; flex: 1 1 220px; }
.continue b { color: #fff; }

/* Buttons: rounded pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font: 500 16px/1.2 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(202, 31, 63, 0.25); }
.btn-primary:hover { background: var(--red-dark); }
.btn-light { background: #fff; color: var(--plum); }
.btn-dark { background: var(--plum); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-outline:hover { border-color: var(--plum); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; background: transparent; }
.btn-small { padding: 8px 16px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
section { padding: 56px 0; }
.section-title { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; margin: 0 0 10px; font-weight: 500; }
.section-lead { color: var(--muted); margin: 0 0 28px; max-width: 720px; font-size: 17px; }
.band-white { background: var(--paper); }
.band-gold { background: var(--gold); color: var(--plum); text-align: center; }
.band-gold .section-title { color: var(--plum); }
.band-gold p { max-width: 640px; margin: 0 auto 24px; color: rgba(36, 24, 46, 0.8); font-size: 17px; }
.band-gold .btns { justify-content: center; }
.band-gold .btn-outline { background: transparent; border-color: var(--plum); color: var(--plum); }

/* Numbered steps ("01 Learn") */
.steps4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.step-card { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; }
.band-white .step-card { background: var(--bg); }
.step-card .n { position: absolute; top: 18px; right: 22px; font: 300 34px/1 var(--display); color: #d6d0db; }
.step-card .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; margin-bottom: 16px; background: var(--red-tint); }
.step-card:nth-child(2) .ico { background: var(--gold-tint); }
.step-card:nth-child(3) .ico { background: var(--plum-tint); }
.step-card:nth-child(4) .ico { background: var(--green-tint); }
.step-card h3 { margin: 0 0 6px; font-size: 21px; font-weight: 500; }
.step-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Course map */
.level { margin-bottom: 36px; }
.level-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.level-head h3 { margin: 0; font-size: 20px; font-weight: 500; }
.level-head span { color: var(--muted); font-size: 14px; }
.level-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex-shrink: 0; align-self: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; transition: transform 0.15s, box-shadow 0.15s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .num { font-size: 12px; font-weight: 700; color: var(--accent, var(--red)); text-transform: uppercase; letter-spacing: 0.12em; }
.card h4 { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 500; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; flex-grow: 1; }
.card .status { position: absolute; top: 18px; right: 18px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; display: none; }
.card .status.started { display: inline-block; background: var(--gold-tint); color: var(--gold-ink); }
.card .status.done { display: inline-block; background: var(--green-tint); color: var(--green); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--plum-tint); color: var(--plum); }
.tag-lab { background: var(--gold-tint); color: var(--gold-ink); }

.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.how div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.how b { color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 17px; display: block; margin-bottom: 6px; }
.how p { margin: 0; color: var(--muted); font-size: 15px; }

/* Session page */
.session-hero { position: relative; overflow: hidden; background: var(--plum); color: #fff; padding: 40px 0 44px; }
.session-hero::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--gold); filter: blur(120px); opacity: 0.18; right: -60px; top: -140px; pointer-events: none; }
.session-hero .wrap { position: relative; }
.crumbs { font-size: 14px; color: rgba(255, 255, 255, 0.7); margin-bottom: 14px; }
.crumbs a { color: rgba(255, 255, 255, 0.85); }
.session-hero .eyebrow { color: var(--gold); }
.session-hero h1 { margin: 0 0 10px; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1; color: #fff; font-weight: 500; }
.session-hero p { margin: 0 0 22px; color: rgba(255, 255, 255, 0.82); max-width: 720px; font-size: 17px; font-weight: 300; }
.course-bar { display: flex; align-items: center; gap: 12px; max-width: 520px; margin-top: 22px; font-size: 13.5px; color: rgba(255, 255, 255, 0.75); }
.course-bar .meter { flex: 1; height: 8px; background: rgba(255, 255, 255, 0.15); }
.course-bar .meter span { background: var(--gold); }
.meta { font-size: 13px; color: var(--muted); margin-top: 14px; }
.session-hero .meta { color: rgba(255, 255, 255, 0.6); }

.outcomes { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.outcomes h2 { margin: 0 0 10px; font-size: 22px; font-weight: 500; }
.outcomes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.outcomes li { padding-left: 30px; position: relative; }
.outcomes li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-tint); color: var(--green); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.need { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.need span { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13.5px; color: var(--text); }

/* The step-by-step path through a session */
.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.path > li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; scroll-margin-top: 90px; }
.path > li::before { counter-increment: step; content: counter(step, decimal-leading-zero); width: 56px; height: 56px; border-radius: 16px; background: var(--plum-tint); color: var(--plum); font: 500 22px/56px var(--display); text-align: center; }
.path > li.done { border-color: #bfe3d7; background: linear-gradient(0deg, #fbfefd, #fff); }
.path > li.done::before { content: "✓"; background: var(--green); color: #fff; }
.path > li.current { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint); }
.path > li.current::before { background: var(--red); color: #fff; }
.path h3 { margin: 4px 0 4px; font-size: 20px; font-weight: 500; }
.path h3 small { font: 600 12.5px var(--font); color: var(--muted); letter-spacing: 0.04em; margin-left: 6px; white-space: nowrap; }
.path p { margin: 0 0 12px; color: var(--muted); }
.path .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mark-done { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--text); cursor: pointer; border: 2px solid var(--line); border-radius: 999px; padding: 7px 14px 7px 10px; background: #fff; }
.mark-done input { width: 18px; height: 18px; accent-color: var(--green); margin: 0; }
.path > li.done .mark-done { border-color: #bfe3d7; color: var(--green); }
.path-done { display: none; text-align: center; background: var(--green-tint); border-radius: var(--radius); padding: 22px; margin-top: 16px; }
.path-done.show { display: block; }
.path-done h3 { margin: 0 0 6px; color: var(--green); }
details.answers { margin-top: 12px; background: var(--gold-tint); border-radius: 14px; padding: 2px 16px; }
details.answers summary { cursor: pointer; font-weight: 600; color: var(--gold-ink); padding: 10px 0; }
details.answers[open] { padding-bottom: 12px; }
.answers-body h3 { font-size: 16px; margin: 14px 0 4px; }
.answers-body p, .answers-body li { color: var(--text); font-size: 15px; }
.answers-body ol, .answers-body ul { padding-left: 20px; }

.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.help-grid div { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.help-grid b { display: block; font-family: var(--display); font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.help-grid p { margin: 0; color: var(--muted); font-size: 14.5px; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h2 { margin-top: 0; font-size: 21px; font-weight: 500; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pack-list { padding-left: 20px; margin: 0; color: var(--muted); }
.pack-list li { margin-bottom: 4px; }

.pager { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pager a { flex: 1 1 260px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 500; font-size: 17px; }
.pager a:hover { border-color: var(--plum); }
.pager a small { display: block; color: var(--muted); font: 500 12.5px var(--font); text-transform: uppercase; letter-spacing: 0.1em; }
.pager a.next { text-align: right; }

/* Getting-started page */
.start-list { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.start-list li { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 20px 84px; }
.start-list li::before { counter-increment: s; content: counter(s, decimal-leading-zero); position: absolute; left: 22px; top: 18px; font: 300 34px/1 var(--display); color: var(--red); }
.start-list b { display: block; font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink); }
.start-list p { margin: 4px 0 0; color: var(--muted); }

/* 3D lab */
.lab { display: grid; grid-template-columns: minmax(0, 1fr) 380px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; outline: none; }
.lab:focus-visible { box-shadow: 0 0 0 3px var(--gold); }
.lab-canvas { position: relative; height: 600px; overflow: hidden; container-type: inline-size;
  /* Warm drawing paper with a faint grid, behind a transparent 3D canvas */
  background-color: #fbf6ee;
  background-image: radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.9), rgba(251, 246, 238, 0) 65%),
    linear-gradient(rgba(36, 24, 46, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(36, 24, 46, 0.055) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px, 28px 28px; }
.lab-canvas canvas { display: block; width: 100% !important; height: 100% !important; touch-action: none; }
.lab-status { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); }
.lab-hint { position: absolute; left: 12px; top: 10px; font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, 0.88); padding: 4px 12px; border-radius: 999px; pointer-events: none; }
.lab-side { border-left: 1px solid var(--line); display: flex; flex-direction: column; max-height: 600px; overflow: auto; }
.lab-info, .lab-controls, .lab-missions { flex-shrink: 0; }
.lab-info { padding: 16px 18px; background: #fcfbfd; border-bottom: 1px solid var(--line); min-height: 140px; font-size: 14.5px; }
.lab-info h4 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.lab-info p { margin: 0 0 8px; }
.lab-info ul { margin: 0 0 8px; padding-left: 18px; }
.lab-controls { padding: 12px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.lab-group { display: flex; flex-wrap: wrap; gap: 6px; }
.lab-group-title { width: 100%; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.lab-btn { font: inherit; font-size: 13.5px; font-weight: 500; padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.lab-btn:hover { border-color: var(--plum); }
.lab-btn.active { background: var(--plum); border-color: var(--plum); color: #fff; }
.lab-btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chip { display: inline-block; margin: 0 6px 6px 0; font-size: 13px; }
.drill { font: 700 26px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 2px; }
.drill .ok { color: var(--green); }
.drill mark { background: var(--gold); color: var(--plum); border-radius: 4px; padding: 0 2px; }

.mini-sheet { border-collapse: collapse; width: 100%; font-size: 13px; }
.mini-sheet th { background: var(--plum-tint); color: var(--muted); font-weight: 600; padding: 4px 8px; border: 1px solid var(--line); text-align: left; }
.mini-sheet td { border: 1px solid var(--line); padding: 3px 6px; }
.mini-sheet input { width: 100%; border: 0; font: inherit; padding: 3px; background: transparent; }
.mini-sheet input:focus { outline: 2px solid var(--plum); }
.mini-sheet .fx td { background: #fcfbfd; }
.mini-sheet .fx td:last-child { font-weight: 700; color: var(--plum); }

.lab-field { display: block; font-size: 13.5px; width: 100%; }
.lab-field input { display: block; width: 100%; margin-top: 6px; padding: 9px 12px; font: 600 15px ui-monospace, Menlo, monospace; border: 2px solid var(--line); border-radius: 12px; }
.meter { width: 100%; height: 10px; background: var(--plum-tint); border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; transition: width 0.3s, background 0.3s; }
.crack { margin: 0; font-size: 13.5px; width: 100%; }
.script { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 4px; }
.blk { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 13px; font-weight: 700; color: #fff; padding: 6px 10px; border-radius: 8px; }
.blk input { width: 52px; border: 0; border-radius: 999px; padding: 2px 6px; font: inherit; color: var(--ink); text-align: center; }
.blk button { margin-left: auto; background: rgba(0, 0, 0, 0.18); color: #fff; border: 0; border-radius: 6px; cursor: pointer; font-size: 11px; padding: 2px 6px; }
/* Scratch's own block colours, so pupils recognise them */
.blk.motion { background: #4c97ff; border-color: #4c97ff; color: #fff; }
.blk.control { background: #ffab19; border-color: #ffab19; color: #fff; }
.blk.pen { background: #0fbd8c; border-color: #0fbd8c; color: #fff; }
.blk.looks { background: #9966ff; border-color: #9966ff; color: #fff; }
.blk.c-end { padding: 3px 10px; font-size: 11px; opacity: 0.85; border-radius: 0 0 8px 8px; }
.blk.running { outline: 3px solid var(--red); outline-offset: 1px; }
.script .empty { color: var(--muted); font-size: 13px; }
.readout { margin: 6px 0 0; font: 13px ui-monospace, Menlo, monospace; width: 100%; }

/* Warm-up banner on session pages (sits in the plum hero) */
.warmup-banner { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 9px 16px; border-radius: 999px; background: rgba(255, 190, 0, 0.14); border: 1px solid rgba(255, 190, 0, 0.5); color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; }
.warmup-banner:hover { background: rgba(255, 190, 0, 0.24); }
.warmup-banner b { color: var(--gold); font-weight: 600; }

/* Footer: plum, like the BIH site */
footer { background: var(--plum); color: rgba(255, 255, 255, 0.78); padding: 56px 0 28px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.foot-grid h4 { color: var(--gold); font-size: 17px; font-weight: 500; margin: 6px 0 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-grid a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.foot-grid a:hover { color: #fff; text-decoration: underline; }
.foot-brand img { height: 40px; width: auto; }
.foot-brand p { margin: 16px 0 0; max-width: 300px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 40px; padding-top: 20px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }

/* Missions */
.lab-missions:empty { display: none; }
.lab-missions { padding: 14px 18px; background: linear-gradient(135deg, var(--gold-tint), #fff); border-bottom: 1px solid var(--line); font-size: 14px; }
.lab-missions.pop { animation: pop 0.5s ease; }
@keyframes pop { 0% { background: var(--green-tint); } 100% { background: var(--gold-tint); } }
.mission-head { display: flex; align-items: center; gap: 8px; }
.mission-head b { color: var(--gold-ink); font-size: 15px; font-family: var(--display); font-weight: 600; }
.mission-head span { margin-left: auto; font-weight: 700; color: var(--muted); font-size: 13px; }
.mission-reset { border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; font-size: 13px; padding: 2px 7px; }
.mission-meter { margin: 8px 0 10px; height: 8px; }
.mission-meter span { background: var(--gold); }
.mission-next { background: #fff; border: 2px solid var(--gold); border-radius: 14px; padding: 10px 12px; }
.mission-next.done { border-color: var(--green); }
.mission-label { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-ink); }
.mission-next b { display: block; font-size: 15px; line-height: 1.35; margin: 2px 0; color: var(--ink); }
.mission-next small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.lab-missions details { margin-top: 8px; font-size: 13px; }
.lab-missions summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.lab-missions ol { list-style: none; padding: 4px 0 0; margin: 0; }
.lab-missions li { padding: 2px 0; color: var(--muted); }
.lab-missions li.ok { color: var(--ink); }
.speak { border: 0; background: var(--plum-tint); border-radius: 8px; cursor: pointer; font-size: 14px; padding: 1px 6px; vertical-align: 1px; margin-left: 4px; }

/* Shared form bits inside labs */
.lab-group > div { width: 100%; }
.lab-field select, .lab-field textarea { display: block; width: 100%; margin-top: 6px; padding: 8px 10px; font: inherit; font-size: 14px; border: 2px solid var(--line); border-radius: 12px; }
.lab-field + .lab-field { margin-top: 8px; }
.lab-field.inline-field { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 8px; font-weight: 600; }
.lab-field.inline-field input, .lab-field.inline-field select { margin-top: 0; font-family: inherit; font-size: 14px; padding: 7px 9px; }
.field-label { font-size: 13px; font-weight: 700; margin: 12px 0 6px; }
label.inline { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; margin: 8px 0; }
.check { font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 10px; margin: 8px 0; }
.check.good { background: var(--green-tint); color: #146356; }
.check.bad { background: var(--red-tint); color: var(--red-dark); }
.btns-inline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.small-tip { font-size: 12.5px; color: var(--muted); }
/* Slides lab */
.bullet-edit { margin: 6px 0; padding-left: 20px; font-size: 13px; }
.bullet-edit li { margin-bottom: 4px; }
.bullet-edit li > * { vertical-align: middle; }
.bullet-edit input { width: calc(100% - 70px); padding: 5px 7px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; }
.bullet-edit .wc { display: inline-block; width: 30px; text-align: right; font-size: 11.5px; color: var(--muted); }
.bullet-edit .wc.bad { color: var(--red); font-weight: 800; }
.bullet-edit button { border: 0; background: var(--red-tint); color: var(--red); border-radius: 6px; cursor: pointer; margin-left: 4px; }
/* Document lab ribbon */
.rb-b { font-weight: 900 !important; }
.rb-i { font-style: italic; }
.rb-u { text-decoration: underline; }
/* Phishing lab */
.mail-card { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.mail-row { margin: 2px 0; }
.mail-row span { color: var(--muted); display: inline-block; width: 62px; }
.mail-row.addr { font: 12.5px ui-monospace, Menlo, monospace; color: var(--gold-ink); padding-left: 62px; word-break: break-all; }
.mail-card p { margin: 10px 0; }
.mail-link { color: #1d4ed8; text-decoration: underline; cursor: pointer; font-weight: 700; }
.hover-tip { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; word-break: break-all; }
.mail-count { color: var(--muted); }
.mail-done { font-size: 15px; }
/* Capstone lab */
.stepper { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.stepper .lab-btn { padding: 6px 10px; font-size: 12.5px; }
.stepper .lab-btn.ok::after { content: " ✅"; }
.track-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.track { text-align: left; font: inherit; font-size: 12.5px; padding: 8px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.track b { display: block; font-size: 13px; color: var(--plum); }
.track small { display: block; color: var(--muted); margin-top: 3px; font-size: 11.5px; }
.track.active { border-color: var(--plum); background: var(--plum-tint); }
.test-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.test-row input { padding: 7px 8px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; font-size: 13px; min-width: 0; }

/* Mentor guides */
.table-wrap { overflow-x: auto; max-width: 100%; }
.guide { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 36px; max-width: 900px; }
.guide h1 { font-size: clamp(26px, 3.5vw, 34px); line-height: 1.2; margin: 0 0 14px; font-weight: 500; }
.guide h2 { font-size: 22px; margin: 32px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 500; }
.guide h3 { font-size: 17px; margin: 20px 0 6px; }
.guide blockquote { margin: 0 0 8px; padding: 14px 18px; background: var(--gold-tint); border-left: 4px solid var(--gold); border-radius: 12px; }
.guide blockquote p { margin: 0; }
.guide table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0; }
.guide th, .guide td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.guide th { background: var(--plum-tint); color: var(--ink); }
.guide ul.checklist { list-style: none; padding-left: 4px; }
.guide li { margin: 4px 0; }
.guide li.task input { margin-right: 6px; transform: scale(1.15); accent-color: var(--green); }

.save-all { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 18px 0; }
.save-all p { margin: 0; color: var(--muted); }
.save-all button:disabled { opacity: 0.6; cursor: progress; }

@media (max-width: 900px) {
  .lab { grid-template-columns: 1fr; }
  .lab-side { border-left: 0; border-top: 1px solid var(--line); max-height: none; }
  .lab-canvas { height: 380px; }
  .two { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-head { position: relative; }
  .site-head .wrap { flex-direction: column; align-items: stretch; padding-top: 12px; padding-bottom: 10px; gap: 8px; min-height: 0; }
  .brand img { height: 30px; }
  .nav { justify-content: space-between; flex-wrap: nowrap; }
  .nav a { padding: 6px 5px; font-size: 13px; white-space: nowrap; }
  .nav a.nav-cta { margin-left: 0; padding: 6px 10px; }
  .hero { padding: 44px 0 52px; }
  section { padding: 40px 0; }
  .btn { width: 100%; }
  .path > li { grid-template-columns: 1fr; padding: 18px; }
  .path > li::before { width: 44px; height: 44px; font-size: 18px; line-height: 44px; border-radius: 12px; }
  .foot-grid { grid-template-columns: 1fr; }
  .guide { padding: 20px 16px; }
  .start-list li { padding-left: 22px; padding-top: 58px; }
}
@media (max-width: 360px) {
  .nav { flex-wrap: wrap; justify-content: flex-start; row-gap: 4px; }
}
@media print {
  .site-head, footer, .no-print { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .session-hero { padding: 0 !important; background: none !important; color: var(--ink); }
  .session-hero::after { display: none; }
  .session-hero h1, .crumbs, .crumbs a, .session-hero .meta { color: var(--ink); }
  .guide { border: 0; box-shadow: none; padding: 0; max-width: none; }
  .guide h2 { break-after: avoid; }
  .guide tr, .guide li { break-inside: avoid; }
}
.mentor-table { max-width: 900px; background: #fff; font-size: 14.5px; border-radius: 14px; overflow: hidden; }
.mentor-table th, .mentor-table td { padding: 8px 12px; }

/* 3D lab callouts: cards pinned to parts with a dot and a dashed leader line */
.lab-callouts { position: absolute; inset: 0; pointer-events: none; }
.lab-callouts.off { display: none; }
.lab-leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lab-leaders line { stroke: var(--plum); stroke-width: 1.4; stroke-dasharray: 4 4; opacity: 0.75; }
.callout { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; gap: 8px; align-items: flex-start; max-width: 190px; text-align: left; font: inherit; color: var(--ink); background: #fffdf9; border: 1.5px solid rgba(36, 24, 46, 0.18); border-radius: 12px; padding: 8px 11px; box-shadow: 0 6px 16px rgba(36, 24, 46, 0.1); will-change: transform; }
button.callout { cursor: pointer; }
button.callout:hover, button.callout:focus-visible { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-tint), 0 6px 16px rgba(36, 24, 46, 0.12); }
.callout b { display: block; font: 600 12.5px/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.callout small { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.callout-icon { font-size: 18px; line-height: 1; margin-top: 1px; }
.callout.done { border-color: #bfe3d7; }
.callout.done b::after { content: " ✓"; color: var(--green); }
.callout-dot { position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--red); box-shadow: 0 0 0 0 rgba(202, 31, 63, 0.45); animation: dot-pulse 2.2s infinite; }
@keyframes dot-pulse { 0% { box-shadow: 0 0 0 0 rgba(202, 31, 63, 0.45); } 70% { box-shadow: 0 0 0 10px rgba(202, 31, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(202, 31, 63, 0); } }
@media (prefers-reduced-motion: reduce) { .callout-dot { animation: none; } }
/* Small canvases (phones): titles only */
@container (max-width: 560px) { .callout small { display: none; } .callout { padding: 6px 9px; max-width: 150px; } .callout-icon { font-size: 15px; } }

/* View toolbar under the model */
.lab-viewbar { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px; background: rgba(255, 253, 249, 0.95); border: 1.5px solid rgba(36, 24, 46, 0.14); border-radius: 999px; box-shadow: 0 6px 16px rgba(36, 24, 46, 0.1); }
.lab-viewbar button { width: 36px; height: 34px; border: 0; background: transparent; border-radius: 999px; font: 600 17px/1 var(--font); color: var(--ink); cursor: pointer; }
.lab-viewbar button:hover { background: var(--plum-tint); }
.lab-viewbar button.on { background: var(--gold-tint); }
/* Floating text labels in the 3D labs (drawn as HTML so they stay sharp) */
.tag3d { position: absolute; left: 0; top: 0; pointer-events: none; white-space: nowrap; text-align: center; font: 600 13px/1.2 var(--display); padding: 3px 9px; border-radius: 8px; box-shadow: 0 2px 8px rgba(36, 24, 46, 0.1); border: 1px solid rgba(36, 24, 46, 0.12); will-change: transform; }
.tag3d.bare { box-shadow: none; border: 0; padding: 0; }
/* Lab pictures on session cards */
.card-thumb { display: block; width: calc(100% + 44px); max-width: none; height: 160px; margin: -22px -22px 8px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 1px solid var(--line); background: #fbf6ee; }
.callout.tour { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 190, 0, 0.45), 0 8px 20px rgba(36, 24, 46, 0.16); z-index: 2; }
.lab-callouts.touring .callout:not(.tour) { opacity: 0.18; }
.lab-callouts.touring .callout-dot, .lab-callouts.touring .lab-leaders { opacity: 0.35; }
.callout { transition: opacity 0.25s; }
.callout[hidden], .callout-dot[hidden], .tag3d[hidden] { display: none; }
.callout { z-index: 1; }
.tag3d { z-index: 0; }
.lab-hint { transition: opacity 0.6s; }
.lab-canvas.touched .lab-hint { opacity: 0; }
