/* Blueprint Mover pages (/blueprintmover/ and /blueprintmover/docs/). Loaded after site.css and padseat.css and uses
   their tokens, section modes and ps-* layout pieces. Light-only like the other studio pages (color-scheme: only light).
   Editor colours below come from the engine's StyleColors.cpp, so the key matches what the panel shows. */
:root {
  --ue-panel: #242424;      /* editor panel */
  --ue-deep: #161616;       /* chip ground, dark enough for AccentGray text */
  --ue-fore: #C0C0C0;       /* Skip */
  --ue-green: #8BC24A;      /* Add */
  --ue-blue: #26BBFF;       /* Rename, Update */
  --ue-orange: #FE9B07;     /* Replace, connections that break */
  --ue-gray: #808080;       /* Not supported */
  --ue-red: #FF4040;        /* Refused */
  --ue-purple: #B565D0;     /* Remove (AccentPurple #A139BF, lifted a step so it reads on the chip) */
}

kbd { display: inline-block; font-family: var(--mono); font-size: .8em; font-weight: 500; line-height: 1.3; padding: 0 6px 1px; border: 1px solid currentColor; border-bottom-width: 2px; border-radius: 4px; white-space: nowrap; }

/* screenshots with a full-size link */
.bm-shot { margin: 0; min-width: 0; }
.bm-shot > a { display: block; border-radius: 4px; }
.bm-shot img { width: 100%; border: 1px solid var(--rule-d); border-radius: 4px; background: var(--ue-panel); }
.bm-shot figcaption { margin-top: 10px; font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--mute-d); max-width: 110ch; }
.bm-shot figcaption a { color: inherit; text-decoration-color: var(--signal); white-space: nowrap; }
.bm-shot + .bm-shot { margin-top: 28px; }

/* mode switcher: the panel's own Copy | Move to Parent | Rename / Change Type bar */
.bm-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; max-width: 660px; margin-top: 34px; padding: 3px;
  border: 1.5px solid var(--rule-d); border-radius: 6px; background: var(--ue-deep); }
.bm-tabs[hidden] { display: none; }
.bm-tabs button { appearance: none; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 3px; background: transparent; color: var(--mute-d);
  font-family: var(--text); font-weight: 650; font-size: 15px; line-height: 1.2; cursor: pointer; }
.bm-tabs button:hover { color: var(--on-dark); }
.bm-tabs button[aria-selected="true"] { background: var(--on-dark); color: var(--ink); }
.bm-tabs button:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.bm-mode { margin-top: 34px; }
.bm-mode[hidden] { display: none; }
.bm-modes:not(.is-tabbed) .bm-mode + .bm-mode { margin-top: 64px; padding-top: 28px; border-top: 1.5px solid var(--rule-d); }
.bm-mode:focus-visible { outline-offset: 8px; }
.bm-notes { display: grid; gap: 28px 56px; margin-top: 28px; align-items: start; }
@media (min-width: 960px) { .bm-notes { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.bm-notes .h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.bm-notes p { max-width: 62ch; color: #D9D8D3; }

/* numbered callouts that name the panel's own steps */
.bm-call { margin-top: 18px; border-top: 1.5px solid var(--on-dark); }
.bm-call li { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 4px 16px; padding: 10px 0 11px; border-bottom: 1px solid var(--rule-d); font-size: 15px; line-height: 1.45; }
.bm-call b { font-family: var(--mono); font-size: 12.5px; font-weight: 500; line-height: 1.5; padding-top: 1px; color: var(--on-dark); }
.bm-call span { color: #C9CBC6; }
@media (max-width: 520px) { .bm-call li { grid-template-columns: minmax(0, 1fr); } }

/* action key: each action as the panel draws it, on an editor-dark chip */
.bm-key { display: grid; align-content: start; border-top: 1.5px solid var(--ink); }
.bm-keyhead { font-family: var(--display); font-stretch: 90%; font-weight: 680; font-size: 18px; line-height: 1.25; margin: 6px 0 12px; }
.bm-key li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 16px; align-items: baseline; padding: 9px 0 10px; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.45; }
.bm-chip { justify-self: start; padding: 2px 8px 3px; border-radius: 3px; background: var(--ue-deep); color: var(--c, var(--ue-fore)); font-family: var(--text); font-weight: 700; font-size: 14px; line-height: 1.35; white-space: nowrap; }
.dark .bm-key { border-top-color: var(--on-dark); }
.dark .bm-key li { border-bottom-color: var(--rule-d); color: #C9CBC6; }
.dark .bm-chip { box-shadow: inset 0 0 0 1px var(--rule-d); }
.bm-key .lab { grid-column: 1 / -1; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--mute); padding-bottom: 0; }
.dark .bm-key .lab { color: var(--mute-d); }
.ps-doc .bm-key { margin-top: 14px; max-width: 76ch; }
.ps-doc .bm-key li { padding-left: 0; }
.ps-doc .bm-key li::before { content: none; }
@media (max-width: 340px) { .bm-key li { grid-template-columns: minmax(0, 1fr); } }

/* docs: screenshots get the full article width; small crops stay at 1:1 pixels */
.bm-figs { display: grid; gap: 16px; margin-top: 16px; }
.bm-figs .ps-fig > a { display: block; border-radius: 4px; }
.bm-figs .ps-fig img { background: var(--ue-panel); }
.bm-figs .ps-fig--native img { width: auto; max-width: 100%; }
.bm-figs .ps-fig figcaption a { color: inherit; text-decoration-color: var(--signal); white-space: nowrap; }

/* docs glossary and settings tables sit closer to the text */
.ps-doc .bm-words { margin-top: 18px; }
.ps-doc .note + .note { margin-top: 10px; }
.ps-doc h2 .tag { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--mute); vertical-align: middle; }

/* the comparison list next to the problem text keeps its rows at their own height */
.ps-two .ps-cmp { align-content: start; }

/* the test table is short enough to stay a table on phones */
@media (max-width: 699px) {
  .ps-table.bm-compact table { display: table; min-width: 0; }
  .ps-table.bm-compact thead { display: table-header-group; }
  .ps-table.bm-compact tbody { display: table-row-group; }
  .ps-table.bm-compact tr { display: table-row; padding: 0; }
  .ps-table.bm-compact th, .ps-table.bm-compact td { display: table-cell; padding: 9px 10px 10px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; font-size: 14px; }
  .ps-table.bm-compact th { border-bottom-color: var(--ink); font-size: 11px; }
}

/* opener: the hero card starts level with the headline instead of sinking to the bottom of the text column */
@media (min-width: 1024px) {
  .ps-cover { align-items: start; }
  .ps-cover .ps-shot { margin-top: clamp(28px, 4vw, 56px); }
}
