/* The classroom demo (/schools/demo, js/class-demo.js): two mock laptops, and the principal's and
   IT's views. Theme tokens only (themes.css). Prefix cd-. The pages inside the laptops have their
   own style (css/class-room.css). */
.cd { padding-bottom: 64px; }
.cd p { margin: 0; }
.cd-wip { margin-top: 20px; padding: 16px 20px; border: 2px dashed var(--gold); border-radius: var(--r-lg); background: var(--surface); display: grid; gap: 10px; }
.cd-wip h2 { margin: 0; font-size: 18px; color: var(--text); }
.cd-wip p { color: var(--text-soft); }
.cd-head { margin-top: 28px; display: grid; gap: 12px; }
.cd-head h1 { margin: 0; }
.cd-head > p:not(.tag) { color: var(--text-soft); max-width: 46em; }
.cd-views { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }
.cd-views button {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--text); font: 600 15px var(--font-ui); cursor: pointer;
}
.cd-views button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.cd-laptops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding: 0 24px; max-width: 2200px; margin: 0 auto; }
.cd-laptops[hidden] { display: none; }
.cd-laptop { margin: 0; display: flex; flex-direction: column; align-items: center; }
.cd-lid { width: 100%; padding: 14px 14px 18px; border-radius: 18px 18px 6px 6px; background: #1b1f27; border: 1px solid #3a4150; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.cd-screen { position: relative; width: 100%; overflow: hidden; border-radius: 4px; background: #0f172a; }
.cd-screen iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #0f172a; }
.cd-deck { width: 112%; height: 16px; margin-top: -1px; border-radius: 0 0 14px 14px; background: linear-gradient(#5b6273, #2b303a); }
.cd-laptop figcaption { margin-top: 12px; font: 600 14px var(--font-mono); color: var(--text-muted); text-align: center; }
@media (max-width: 899px) {
  .cd-laptops { grid-template-columns: minmax(0, 1fr); padding: 0 16px; }
  .cd-deck { width: 104%; }
}

.cd-pane { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-alt); overflow: hidden; }
.cd-bar { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); font: 600 13px var(--font-mono); color: var(--text-muted); }
.cd-body { padding: 16px; display: grid; gap: 14px; }
.cd-body h2 { margin: 0; font-size: 22px; color: var(--text); }
.cd-card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 14px; display: grid; gap: 10px; }
.cd-card h3 { margin: 0; font-size: 16px; color: var(--text); }
.cd-card ul { margin: 0; padding-left: 20px; }
.cd-hint { color: var(--text-muted); font-size: 14px; }
.cd-step { color: var(--text); font-weight: 600; }
.cd code { font-family: var(--font-mono); font-size: .95em; color: var(--teal-text); }
.cd-scroll { overflow-x: auto; }
.cd-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cd-table th, .cd-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cd-table thead th { color: var(--text-muted); font-size: 13px; }
.cd-live { font: 700 11px var(--font-mono); padding: 1px 6px; border-radius: 999px; background: var(--teal); color: var(--accent-ink); }
.cd-solo { max-width: 900px; }
.cd-table tbody th { color: var(--text); }
.cd-it ul { margin: 0; padding-left: 20px; color: var(--text-soft); display: grid; gap: 4px; }
.cd-it p { color: var(--text-soft); }
.cd-laptops.cd-one { grid-template-columns: minmax(0, 1100px); justify-content: center; }
