/* DBHelm chrome injected around the course apps by sync-learn.mjs. It reads the
   course's own colour variables so it follows the course light/dark theme. */
.dbh-bar { background: var(--panel); border-bottom: 1px solid var(--border); font-size: .8rem; line-height: 1; }
.dbh-bar-in { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 22px; }
.dbh-bar a { color: var(--muted); text-decoration: none; }
.dbh-bar a:hover { color: var(--text); text-decoration: none; }
.dbh-home { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; color: var(--text) !important; }
.dbh-home img { width: 18px; height: 18px; border-radius: 5px; }
.dbh-sep { color: var(--faint); }
.dbh-switch { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--border); border-radius: 8px; }
.dbh-switch a { padding: 4px 9px; border-radius: 6px; }
.dbh-switch a[aria-current="page"] { color: var(--text); background: var(--panel2); font-weight: 600; }
.dbh-cta { margin-left: auto; padding: 5px 11px; border-radius: 7px; border: 1px solid var(--border); color: var(--text) !important; font-weight: 600; }
.dbh-cta:hover { border-color: var(--muted); }

/* The playground fills the viewport under the course bar; the DBHelm bar sits above it. */
.dbh .pg { height: calc(100vh - 57px - 37px); }

.dbh-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.dbh-foot a { color: var(--muted); }
.dbh-foot .dbh-foot-brand { color: var(--text); font-weight: 600; }

@media (max-width: 640px) {
  .dbh-bar-in { gap: 7px; padding: 0 12px; }
  .dbh-learn, .dbh-learn + .dbh-sep { display: none; }
  .dbh-cta { padding: 5px 8px; }
  .dbh-cta-long { display: none; }
}

.product-note { margin: 22px 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius, 10px); background: var(--panel); font-size: .92rem; }
.product-note .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.product-note p { margin: 6px 0 8px; color: var(--muted); }
.product-note.end { padding: 18px 20px; }
.product-note.end b { font-size: 1.05rem; }

/* Static lesson pages */
.static-nav { display: flex; }
.live-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius, 10px); background: var(--panel); }
.lesson-index { list-style: none; padding: 0; margin: 0; }
.lesson-index li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.lesson-index .muted { font-size: .9rem; margin-top: 3px; }
.code-note { padding: 8px 12px; font-size: .85rem; color: var(--muted); }
@media (max-width: 860px) {
  .static-nav { display: flex !important; flex-wrap: nowrap; overflow-x: auto; }
}
