.lesson-nav { flex-wrap: wrap; margin: 24px 0; }
video, figure img { display: block; max-width: 100%; height: auto; }
video { width: 640px; background: #18261f; }
figure { margin: 24px 0; }
figcaption { font-size: 13px; color: #667269; }
pre { overflow-x: auto; padding: 20px; background: #e9ede4; }
dt { font-weight: bold; margin-top: 16px; }
dd { margin-left: 20px; }
.cat-exercise a:link { color: green; }
.cat-exercise a:visited { color: black; }
.cat-exercise ol { list-style-type: upper-alpha; }
.margin-demo { background: #e5e9dc; padding: 1px; }
.box-demo { margin: 20px; border: 4px solid #396348; padding: 24px; background: #fff; }
.effect-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.effect-card { flex: 1 1 220px; padding: 24px; border: 1px solid #bbc9b5; border-radius: 18px; box-shadow: 0 5px 12px #00000014; }
.gradient { background: linear-gradient(135deg, #e0ead8, #f7e7c8); }
button { padding: 12px 18px; background: #233b32; color: white; border: 0; border-radius: 6px; cursor: pointer; font: inherit; }
.transform-demo { transition: transform .3s, background-color .3s; }
.transform-demo:hover, .transform-demo:focus { transform: translateY(-6px) rotate(-3deg); background: #42694c; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #9a592b; outline-offset: 4px; }
fieldset { margin: 24px 0; border: 1px solid #bbc9b5; padding: 20px; }
legend { font-weight: bold; }
label { display: block; margin: 14px 0 6px; }
input:not([type="radio"]):not([type="checkbox"]), select, textarea { display: block; width: 100%; max-width: 540px; padding: 10px; border: 1px solid #889784; font: inherit; background: white; }
.inline { display: flex; gap: 10px; align-items: center; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
#form-result { padding: 16px; background: #e5e9dc; }
@media (prefers-reduced-motion: reduce) { .transform-demo { transition: none; } }
