
/* pe-unified.css asks for JetBrains Mono files that never shipped; V1's own
   Iosevka is already on the page, so it stands in without a 404. */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/learn-bitcoin-app/fonts/iosevka-400-DnzhOSIo.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/learn-bitcoin-app/fonts/iosevka-400-DnzhOSIo.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/learn-bitcoin-app/fonts/iosevka-700-BxdwZZnN.woff2") format("woff2");
}
html.pe-unified {
  /* V1 palette. The course bundle also re-declares `--ink-*` on :root with its
     own light values, and those load after theme.css, so the tokens are pinned
     on html.pe-unified (higher specificity) to keep the V1 nav and the paywall
     drawer reading light-on-dark instead of dark-on-dark. */
  --bg: #060a16;
  --panel: #0a1224;
  --panel-2: #0e1a31;
  --ink: #dfe8ff;
  --ink-strong: #f4f8ff;
  --ink-soft: #a6b8d8;
  --ink-muted: #7889a9;
  --line: rgba(110, 150, 220, 0.26);
  --line-mid: rgba(110, 150, 220, 0.4);
  --line-soft: rgba(110, 150, 220, 0.14);
  --blue: #4d8dff;
  --blue-deep: #1d4ed8;
  --ok: #23d39c;
  --green: #23d39c;
  --amber: #f5b14c;
  --pe-accent: #4d8dff;
}

/* Learn Bitcoin inside Protocol Explorer V1.
   The top bar is V1's generic nav: gate.js builds `.pe-nav` (and `.pe-tabbar`
   on mobile) from theme.css, exactly like /, /pricing and /designed-to-scale.
   This file only handles the course surface: park the app's own marketing bar
   and keep the fixed nav from covering the hero. */

/* ------------------------------------------------------------- app chrome */
/* The mirrored course ships its own marketing bar and theme button. V1 owns
   the menu, so those are parked instead of merged. */
.site-header,
.site-theme-button,
[data-theme-choice] {
  display: none !important;
}

/* gate.js inserts a fixed nav and sets body.pe-has-nav; the course page has no
   app shell to add its own offset, so reserve the bar height here. */
/* .pe-nav is 52px on desktop (theme.css) and 48px + safe area on touch. */
body.pe-has-nav {
  padding-top: 52px !important;
}

@media (max-width: 860px) {
  body.pe-has-nav {
    padding-top: calc(60px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }
}

/* The course owns its own lesson drawer; the V1 mobile tabbar stays. */
body.pe-has-nav .pe-tabbar {
  z-index: 700;
}

/* The lesson-list menu belongs to the course, so its trigger lives in the
   course's own strip (below the site bar), not beside the course wordmark. */
@media (max-width: 720px) {
  .pe-nav .pe-menu-btn {
    display: none !important;
  }
}

/* The lesson bar carries the course's own unlock pill, so the generic nav
   PRO/ALL button would be a second entry point to the same drawer. */
.pe-nav .pe-pro-cta {
  display: none !important;
}

/* In-course "Unlock Bitcoin" pill, matching the accent used by the lesson bar. */
.btc-lessonbar .btc-unlock {
  align-self: center;
  height: 28px;
  padding: 0 12px;
  margin-left: auto;
  border-radius: 7px;
  border: 1px solid var(--accent, #5cc4e8);
  background: color-mix(in srgb, var(--accent, #5cc4e8) 12%, transparent);
  color: var(--accent, #5cc4e8);
  font: 600 10px/1 Iosevka, ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.btc-lessonbar .btc-unlock:hover {
  background: color-mix(in srgb, var(--accent, #5cc4e8) 22%, transparent);
}

/* The course canvas sits directly under the hero card, so the section's own
   72px bottom padding reads as dead space between the two. */
#pe-bitcoin-guide {
  padding-bottom: 40px !important;
}

#pe-bitcoin-guide .pe-seo-lead {
  max-width: 88ch !important;
}

/* The STAGE dots in the lesson bar are a concept map, not navigation.
   They jump to the first lesson of the stage the way they are shipped, which
   put four of the six dots behind the paywall; they are a read-only indicator
   now (learn-bitcoin-chrome.js marks them, v1-bridge.js also swallows the
   click, so nothing here can open a sales sheet). */
.btc-stages-row button {
  pointer-events: none;
  cursor: default;
}
