@import "https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap";:root{--bg:#fff;--surface:#f8f9fa;--border:#e2e4e8;--text-1:#1a1a1a;--text-2:#6b7280;--accent:#2563eb;--accent-hover:#1d4ed8;--rank-front:#1e3a5f;--rank-rear:#5a7da8;--officer:#b45309;--nco:#047857;--colors-bearer:#dc2626;--field:#f1f5f0;--grid:#d6dbd4;--font-serif:"Source Serif 4", Georgia, serif;--font-sans:"Inter", system-ui, sans-serif;--font-mono:"JetBrains Mono", "Courier New", monospace;--radius:6px;--shadow:0 1px 3px #00000014;--shadow-md:0 4px 12px #0000001a}*,:before,:after{box-sizing:border-box;margin:0;padding:0}html{scroll-behavior:smooth;font-size:16px}body{background:var(--bg);color:var(--text-1);font-family:var(--font-sans);-webkit-font-smoothing:antialiased;font-size:.9375rem;line-height:1.6}h1,h2,h3,h4,h5{font-family:var(--font-serif);color:var(--text-1);line-height:1.25}a{color:var(--accent);text-decoration:none}a:hover{color:var(--accent-hover);text-decoration:underline}button{font-family:var(--font-sans);cursor:pointer;background:0 0;border:none}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}.app-shell{flex-direction:column;min-height:100vh;display:flex}.top-nav{z-index:100;background:var(--bg);border-bottom:1px solid var(--border);align-items:center;gap:2rem;height:52px;padding:0 1.5rem;display:flex;position:sticky;top:0}.top-nav__logo{font-family:var(--font-serif);color:var(--text-1);white-space:nowrap;font-size:1.125rem;font-weight:600}.top-nav__logo span{color:var(--accent)}.top-nav__links{gap:1.5rem;margin-left:auto;display:flex}.top-nav__links a{color:var(--text-2);font-size:.875rem;transition:color .15s}.top-nav__links a:hover,.top-nav__links a.active{color:var(--accent);text-decoration:none}.body-layout{flex:1;display:flex;overflow:hidden}.sidebar{background:var(--surface);border-right:1px solid var(--border);flex-shrink:0;width:220px;padding:1rem 0;overflow-y:auto}.sidebar__lesson{margin-bottom:.25rem}.sidebar__lesson-header{text-transform:uppercase;letter-spacing:.05em;color:var(--text-2);cursor:pointer;-webkit-user-select:none;user-select:none;text-align:left;background:0 0;border:none;justify-content:space-between;align-items:center;width:100%;padding:.4rem 1rem;font-size:.75rem;font-weight:600;transition:color .15s;display:flex}.sidebar__lesson-header:hover,.sidebar__lesson-header.open{color:var(--text-1)}.sidebar__chevron{font-size:.7rem;transition:transform .2s}.sidebar__chevron.open{transform:rotate(90deg)}.sidebar__articles{transition:max-height .25s;overflow:hidden}.sidebar__article-link{color:var(--text-2);padding:.35rem 1rem .35rem 1.5rem;font-size:.8125rem;line-height:1.3;transition:color .15s,background .15s;display:block}.sidebar__article-link:hover{color:var(--text-1);background:#2563eb0d;text-decoration:none}.sidebar__article-link.active{color:var(--accent);background:#2563eb14;font-weight:500}.main-content{flex:1;max-width:960px;padding:1.75rem 2rem;overflow-y:auto}.breadcrumbs{color:var(--text-2);flex-wrap:wrap;gap:.4rem;margin-bottom:1rem;font-size:.8125rem;display:flex}.breadcrumbs__sep{color:var(--border)}.breadcrumbs a{color:var(--text-2)}.breadcrumbs a:hover{color:var(--accent);text-decoration:none}.breadcrumbs__current{color:var(--text-1);font-weight:500}.prev-next{border-top:1px solid var(--border);justify-content:space-between;gap:1rem;margin-top:2.5rem;padding-top:1.5rem;display:flex}.prev-next a{color:var(--accent);align-items:center;gap:.3rem;font-size:.875rem;display:flex}.prev-next a:hover{text-decoration:underline}.prev-next__spacer{flex:1}.footer{border-top:1px solid var(--border);color:var(--text-2);flex-wrap:wrap;gap:1.5rem;padding:1rem 1.5rem;font-size:.8125rem;display:flex}@media (width<=768px){.sidebar{display:none}.main-content{padding:1rem}}.drill-page__title{margin-bottom:.25rem;font-size:1.75rem;font-weight:700}.drill-page__meta{color:var(--text-2);font-size:.8125rem;font-family:var(--font-mono);margin-bottom:1.25rem}.command-block{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-wrap:wrap;align-items:baseline;gap:.5rem 1rem;margin-bottom:1.25rem;padding:.75rem 1rem;display:flex}.command-block__item{font-size:.9375rem;font-family:var(--font-serif)}.command-block__item.preparatory{color:var(--text-2);font-style:italic}.command-block__item.execution{text-transform:uppercase;color:var(--text-1);font-weight:700}.sub-movement-tabs{flex-wrap:wrap;gap:.5rem;margin-bottom:.75rem;display:flex}.sub-movement-tab{border-radius:var(--radius);border:1px solid var(--border);color:var(--text-2);padding:.3rem .85rem;font-size:.8125rem;font-weight:500;transition:all .15s}.sub-movement-tab:hover{border-color:var(--accent);color:var(--accent)}.sub-movement-tab.active{background:var(--accent);border-color:var(--accent);color:#fff}.canvas-container{background:var(--field);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:.75rem;position:relative;overflow:hidden}.canvas-container svg{width:100%;height:auto;display:block}.canvas-toggles{gap:4px;display:flex;position:absolute;top:8px;right:8px}.canvas-toggle-btn{border:1px solid var(--border);width:28px;height:28px;color:var(--text-2);cursor:pointer;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#ffffffd9;border-radius:4px;justify-content:center;align-items:center;font-size:.8rem;transition:all .15s;display:flex}.canvas-toggle-btn:hover{border-color:var(--accent);color:var(--accent)}.canvas-toggle-btn.active{background:var(--accent);border-color:var(--accent);color:#fff}.keyframe-label{color:var(--text-2);font-size:.8125rem;font-family:var(--font-mono);text-align:center;min-height:1.2em;margin-bottom:.5rem}.controls{flex-wrap:wrap;align-items:center;gap:.5rem;margin-bottom:1rem;display:flex}.ctrl-btn{border-radius:var(--radius);border:1px solid var(--border);background:var(--bg);width:36px;height:36px;color:var(--text-1);justify-content:center;align-items:center;font-size:.9rem;transition:all .15s;display:flex}.ctrl-btn:hover{border-color:var(--accent);color:var(--accent)}.ctrl-btn.play-btn{background:var(--accent);border-color:var(--accent);color:#fff;width:44px;height:44px;font-size:1rem}.ctrl-btn.play-btn:hover{background:var(--accent-hover)}.progress-bar{flex:1;align-items:center;gap:4px;min-width:120px;display:flex}.progress-bar__track{background:var(--border);cursor:pointer;border-radius:2px;flex:1;height:4px;position:relative}.progress-bar__fill{background:var(--accent);border-radius:2px;height:100%;transition:width .15s}.progress-bar__steps{display:flex;position:absolute;inset:0}.progress-bar__step{flex:1;position:relative}.progress-bar__dot{border:2px solid var(--bg);background:var(--border);cursor:pointer;border-radius:50%;width:10px;height:10px;transition:background .15s,transform .15s;position:absolute;top:50%;right:0;transform:translate(50%,-50%)}.progress-bar__dot:hover{transform:translate(50%,-50%)scale(1.3)}.progress-bar__dot.active{background:var(--accent)}.progress-bar__dot.visited{background:var(--accent);opacity:.5}.speed-controls{gap:2px;margin-left:.25rem;display:flex}.speed-btn{font-size:.75rem;font-family:var(--font-mono);border:1px solid var(--border);color:var(--text-2);border-radius:4px;padding:.2rem .5rem;transition:all .15s}.speed-btn:hover{border-color:var(--accent);color:var(--accent)}.speed-btn.active{background:var(--accent);border-color:var(--accent);color:#fff}.keyboard-hint{color:var(--text-2);font-size:.7rem;font-family:var(--font-mono);white-space:nowrap;margin-left:auto}kbd{font-family:var(--font-mono);border:1px solid var(--border);background:var(--surface);color:var(--text-2);border-radius:3px;padding:.1em .35em;font-size:.7rem;display:inline-block}.legend{color:var(--text-2);flex-wrap:wrap;align-items:center;gap:.6rem 1.2rem;margin-bottom:1.5rem;font-size:.8125rem;display:flex}.legend__item{align-items:center;gap:.4rem;display:flex}.legend__swatch{border-radius:2px;flex-shrink:0;width:12px;height:9px}.casey-text-panel{border:1px solid var(--border);border-radius:var(--radius);margin-bottom:1.25rem;overflow:hidden}.casey-text-panel__header{background:var(--surface);border-bottom:1px solid var(--border);text-transform:uppercase;letter-spacing:.05em;color:var(--text-2);padding:.5rem 1rem;font-size:.8125rem;font-weight:600}.casey-text-panel__body{max-height:300px;padding:.75rem 1rem;overflow-y:auto}.casey-paragraph{color:var(--text-1);border-left:3px solid #0000;border-radius:0 2px 2px 0;margin-bottom:.75rem;padding-left:.75rem;font-size:.9rem;line-height:1.6;transition:border-color .3s,background .3s}.casey-paragraph.active{border-left-color:var(--accent);background:#2563eb0d}.casey-paragraph__num{font-family:var(--font-mono);color:var(--text-2);margin-right:.4rem;font-size:.75rem}.reenactor-notes{border:1px solid var(--border);border-radius:var(--radius);margin-bottom:1.25rem;overflow:hidden}.reenactor-notes__header{background:var(--surface);cursor:pointer;-webkit-user-select:none;user-select:none;text-align:left;width:100%;color:var(--text-2);border:none;justify-content:space-between;align-items:center;padding:.6rem 1rem;font-size:.875rem;font-weight:600;transition:color .15s;display:flex}.reenactor-notes__header:hover{color:var(--text-1)}.reenactor-notes__body{border-top:1px solid var(--border);color:var(--text-1);padding:.75rem 1rem;font-size:.9rem;line-height:1.6}.keyframe-description{color:var(--text-2);min-height:2.5em;margin-bottom:1rem;font-size:.9rem;line-height:1.5}.landing{max-width:680px}.landing__hero{margin-bottom:2.5rem}.landing__hero h1{margin-bottom:.5rem;font-size:2.5rem}.landing__hero .subtitle{color:var(--text-2);margin-bottom:1.5rem;font-size:1.125rem}.landing__cta{background:var(--accent);color:#fff;border-radius:var(--radius);align-items:center;gap:.5rem;padding:.7rem 1.5rem;font-size:.9375rem;font-weight:600;text-decoration:none;transition:background .15s;display:inline-flex}.landing__cta:hover{background:var(--accent-hover);color:#fff;text-decoration:none}.landing__section{margin-bottom:2rem}.landing__section h2{margin-bottom:.5rem;font-size:1.25rem}.landing__section p{color:var(--text-2);font-size:.9375rem}.about-page{max-width:680px}.about-page h1{margin-bottom:1rem;font-size:2rem}.about-page h2{margin:1.5rem 0 .4rem;font-size:1.2rem}.about-page p{color:var(--text-2);margin-bottom:.75rem;font-size:.9375rem}
