/* Page-local educational demo styles; shared company theme supplies the shell. */
.lesson-intro { padding-bottom: 64px; }
.lesson-section { padding: 72px 0; }
.draft-label { margin-left: 14px; padding: 4px 8px; border: 1px solid var(--panel-border); border-radius: 4px; letter-spacing: .08em; color: var(--muted); }
.lesson-links { display: flex; flex-wrap: wrap; gap: 16px 28px; }
.lesson-links a, .text-link { color: var(--text); text-underline-offset: 5px; font-size: .9rem; }
.replay-panel { border: 1px solid #2a3545; border-radius: 12px; background: #0e1420; overflow: hidden; }
.replay-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid #2a3545; font-size: .7rem; letter-spacing: .06em; color: #b8c8dc; }
.replay-heading label { display: flex; align-items: center; gap: 8px; }
.replay-heading select { color: #e1e8f0; background: #182130; border: 1px solid #42516a; border-radius: 4px; padding: 6px; max-width: 100%; }
.replay-body { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 28px; padding: 24px; }
#mazeGrid { display: block; width: 100%; height: auto; }
.replay-inspector .kicker { letter-spacing: .08em; color: #b8c8dc; font-size: .65rem; }
.probability { display: grid; grid-template-columns: 46px 1fr 46px; align-items: center; gap: 10px; margin-bottom: 15px; color: #b8c8dc; font: .7rem var(--mono); }
.probability progress { width: 100%; height: 12px; accent-color: #46c18d; }
#mazeStatus { color: #e1e8f0; font: .85rem var(--mono); margin: 25px 0 12px; }
.replay-note { color: #a9b8cc; font-size: .75rem; margin-top: 12px; }
.replay-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 24px 18px; }
.replay-controls button { cursor: pointer; color: #e1e8f0; background: #1a2639; border: 1px solid #42516a; border-radius: 5px; padding: 9px 14px; font: .8rem var(--sans); min-height: 42px; }
.replay-controls button:hover { border-color: #e1e8f0; }
.replay-controls button:disabled { opacity: .45; cursor: default; }
#replayPlay { background: #e1e8f0; color: #0e1420; }
#tokenCount { margin-left: auto; color: #a9b8cc; font-size: .7rem; }
.token-strip { border-top: 1px solid #2a3545; padding: 16px 24px; color: #b8c8dc; font-size: .7rem; min-height: 68px; overflow-wrap: anywhere; }
.caption { color: var(--muted); font-size: .78rem; margin-top: 14px; line-height: 1.7; }
.original-viewer { margin-top: 24px; color: var(--muted); font-size: .85rem; }
.original-viewer summary { cursor: pointer; padding: 10px 0; }
.original-viewer img, .sample-figure img { display: block; width: 100%; height: auto; border-radius: 8px; }
.learning-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.learning-steps article { border-top: 1px solid var(--panel-border); padding-top: 20px; }
.learning-steps .kicker { display: block; letter-spacing: .1em; margin-bottom: 12px; }
.learning-steps h3 { font: 500 1.1rem var(--display); margin-bottom: 12px; }
.learning-steps p, .experiment-note { color: var(--muted); font-size: .85rem; }
.experiment-note { margin: 26px 0 20px; }
.sample-figure { max-width: 768px; }
.maze-animation { max-width: 100%; margin-bottom: 36px; }
.pong-animation, .snake-animation { max-width: 100%; }
.animation-toggle { margin-top: 12px; padding: 9px 14px; border: 1px solid var(--panel-border); border-radius: 5px; background: var(--panel); color: var(--text); font: .8rem var(--sans); cursor: pointer; min-height: 42px; }
.translation-panel { padding: 28px; border: 1px solid var(--panel-border); border-radius: 12px; background: var(--bg-2); }
.translation-panel .kicker { color: var(--muted); letter-spacing: .08em; }
.translation-label { display: block; color: var(--muted); font-size: .8rem; margin: 20px 0 8px; }
.translation-picker { width: 100%; border: 1px solid #42516a; border-radius: 5px; background: #182130; }
.translation-picker summary { padding: 12px; color: var(--text); font: .95rem/1.6 var(--sans); cursor: pointer; overflow-wrap: anywhere; }
.translation-choices { display: grid; gap: 4px; padding: 8px; border-top: 1px solid #42516a; }
.translation-choices button { width: 100%; min-height: 44px; text-align: left; padding: 10px 12px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--text); font: .9rem/1.5 var(--sans); cursor: pointer; }
.translation-choices button:hover, .translation-choices button[aria-current="true"] { background: #26364d; border-color: #627c9d; }
.translation-tokens { color: #b8c8dc; font-size: .8rem; overflow-wrap: anywhere; }
.translation-output { margin: 24px 0; padding: 8px 0 20px; border-top: 1px solid var(--panel-border); border-bottom: 1px solid var(--panel-border); }
#translationOutput { min-height: 2.4em; font: 500 clamp(1.4rem, 4vw, 2rem)/1.5 var(--display); overflow-wrap: anywhere; }
.translation-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.translation-controls[hidden] { display: none; }
.translation-controls button { min-height: 42px; padding: 9px 14px; border: 1px solid #42516a; border-radius: 5px; color: #e1e8f0; background: #1a2639; cursor: pointer; font: .8rem var(--sans); }
.translation-controls button:disabled { opacity: .45; cursor: default; }
.translation-controls button:hover { border-color: var(--white); }
@media (max-width: 600px) { .translation-panel { padding: 18px; } }
.nav-link[aria-current] { color: var(--white); border-bottom-color: var(--white); }
select:focus-visible, summary:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }
@media (max-width: 600px) {
  .lesson-section { padding: 56px 0; }
  .replay-body { grid-template-columns: 1fr; padding: 18px; gap: 22px; }
  .replay-inspector { padding: 0 4px; }
  .replay-heading { padding: 16px 18px; }
  .learning-steps { grid-template-columns: 1fr; }
  .replay-controls { padding: 0 18px 18px; }
}
