/* My Journey inside the app: the design's pages (shared.css) under the app's own
   header and workspace tabs. Only what the two stylesheets need to agree on. */

.mj-app { background-attachment: local; }
/* The site's own .folder cards (styles.css) lift 8px on hover; My Journey's .folder sections share the
   name and bounced under the pointer on every scroll. A section never moves; only its cards may. */
.mj-app .folder, .mj-app .folder:hover { transform: none; transition: none; }
.mj-app .book-index { position: relative; z-index: 29; }   /* above the page, below the sticky top bar (30): it scrolls under the bar, never over it */
.mj-boot-note {
  max-width: 640px; margin: 24px auto; padding: 14px 18px;
  border: 1.5px solid var(--gm-paper-ink, #13233F); border-radius: 12px;
  background: var(--gm-surface, #FFFDF8); font: 500 .95rem var(--gm-font, "Hanken Grotesk", sans-serif);
}
/* Untracked badges: say so instead of showing an empty bar as if the student fell short. */
.mj-untracked { font-size: .8rem; color: var(--ink-2, #46566B); font-style: italic; }
.mj-app .mj-lab-only { display: none !important; }
/* The trail is a full-screen map: on small screens it keeps only the app header. */
@media (max-width: 760px) {
  .mj-app[data-mj-page="trail"] .book-index { display: none; }
}
.mj-app [data-class-wall] { display: none; }
/* Preview note: what the candidate does not switch on yet. */

/* ── one menu: the breadcrumb under the workspace tabs (the old journey bar is gone) ── */
.mj-crumbs {
  max-width: 1280px; margin: 0 auto; padding: 22px 24px 0;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
  font: 600 .86rem/1.3 var(--display, "Space Grotesk", sans-serif); color: var(--ink-2, #46566B);
}
.mj-crumbs a { color: var(--ink, #13233F); text-decoration: underline; text-decoration-color: var(--gold, #C39A4C); text-underline-offset: 3px; }
.mj-crumbs a:hover { color: var(--gold-ink, #806020); }
.mj-crumbs [aria-current] { color: var(--gold-ink, #806020); }
.mj-app[data-mj-page="trail"] .mj-crumbs { display: none; }        /* the map is the page */
.mj-app .wrap { padding-top: 0; }

/* ── highlights the way the app does them ── */
/* "Why it helps" is the page's lede, not a coloured box. */
.mj-app .why { display: block; margin: 6px 0 4px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink-2, #46566B); font-size: 1.04rem; max-width: 66ch; }
.mj-app .why b { color: var(--ink, #13233F); }
/* Notes are a paper sheet, like the dashboard's "Due today" panel. */
.mj-app .note { border: 1.5px solid var(--ink, #13233F); border-radius: 12px; background: var(--surface, #FFFDF8); box-shadow: 5px 5px 0 var(--gold-soft, #F1E6CB), 5px 5px 0 1.5px var(--ink, #13233F); padding: 12px 16px; max-width: 70ch; }

/* ── Home: the hero shows the student's own GuideMate, without loose try-on buttons ── */
.mj-app .pick-wrap { display: none; }

/* ── Badges: the unlock stage grows with its card instead of clipping it ── */
.mj-app .u-stage { height: auto; min-height: 470px; display: grid; place-items: center; padding: 34px 14px; }
.mj-app .u-card { position: relative; left: auto; top: auto; transform: none; }
.mj-app .play .u-card { animation-name: mjCardIn; }
@keyframes mjCardIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

/* ── Themes: Apply sits right under the swatches (text and arrow, the app's button style) ── */
.apply-row { display: grid; gap: 4px; margin-top: 10px; }
.mj-apply { justify-self: start; border: 0; background: transparent; padding: 2px 0; cursor: pointer; font: 700 1rem var(--display, "Space Grotesk", sans-serif); color: var(--gold-ink, #806020); }
.mj-apply::after { content: "\00a0→"; display: inline-block; transition: transform .15s ease; }
.mj-apply:hover::after { transform: translateX(3px); }
.mj-apply:disabled { color: var(--strong, #2f7d52); cursor: default; } .mj-apply:disabled::after { content: ""; }
.mj-apply[hidden] { display: none; }
.mj-apply:focus-visible { outline: 2px solid var(--gold, #C39A4C); outline-offset: 3px; }
.apply-row { margin: 4px 0 12px; padding: 10px 12px; border: 1.3px dashed var(--line-strong, #D9C79C); border-radius: 10px; background: var(--surface, #FFFDF8); }

/* ── popups: the app's reset (styles.css `* { margin: 0 }`) removed the browser's centring ── */
.mj-app dialog.mj-dlg { margin: auto; }
.mj-app dialog.mj-dlg:focus { outline: none; }
