/* Ethan Kids v6: organized learning navigation and colorful visual system */
:root{--navy:#152c58;--sun:#ffce3c;--sky:#dff3ff;--grass:#d9f7e7;--coral:#ffede0}
body:not(.auth-page){background:linear-gradient(135deg,#fffdf5,#f0f8ff 45%,#fef2fb);color:var(--navy)}
body:not(.auth-page) header{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:14px clamp(12px,3vw,40px);background:#fff;border-bottom:4px solid #ffd64b}
body:not(.auth-page) header .brand{flex-shrink:0}
body:not(.auth-page) header .academy-nav{display:flex;flex:1;flex-wrap:wrap;gap:10px;align-items:stretch;overflow:visible;width:auto}
body:not(.auth-page) .nav-group{background:#f5f8ff;border:1px solid #dce7ff;border-radius:15px;padding:6px 8px;min-width:0}
body:not(.auth-page) .nav-group:nth-child(2){background:#e8f8ff}body:not(.auth-page) .nav-group:nth-child(3){background:#f0fff2}body:not(.auth-page) .nav-group:nth-child(4){background:#fff2e8}
body:not(.auth-page) .nav-group-label{display:block;font-size:10px;font-weight:900;letter-spacing:.12em;color:#364a70;padding:2px 9px 5px}
body:not(.auth-page) .nav-links{display:flex;flex-wrap:wrap;gap:5px}
body:not(.auth-page) header .academy-nav a{display:inline-flex;align-items:center;min-height:37px;white-space:nowrap;font-weight:750;font-size:12px;border-radius:10px;background:#fff;color:#18355e;border:1px solid #d8e2f4;padding:7px 10px;text-decoration:none}
body:not(.auth-page) header .academy-nav a:hover,body:not(.auth-page) header .academy-nav a[aria-current=page]{background:#176bd0;color:white;border-color:#176bd0}
body:not(.auth-page) .hero{background:linear-gradient(120deg,#1174d2,#5434bd 70%,#b739a3)!important}
body:not(.auth-page) .hero h1,body:not(.auth-page) .hero p{color:white}
body:not(.auth-page) .hero img{max-width:100%;object-fit:contain}
.learning-map{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:17px;margin:20px 0}
.learning-map article{background:white;border:2px solid #dbe8ff;border-top:8px solid #2a8ddd;border-radius:22px;padding:22px;box-shadow:0 8px 0 #e9e9ff}
.learning-map article:nth-child(4n+2){border-top-color:#21a66d}.learning-map article:nth-child(4n+3){border-top-color:#f1a100}.learning-map article:nth-child(4n){border-top-color:#d8589e}
.learning-map .art{font-size:2.5rem;display:block;margin-bottom:12px}.learning-map h2,.learning-map h3{margin:.25em 0;color:#152c58}.learning-map p{line-height:1.55;color:#34476d}.learning-map a,.kid-action{display:inline-block;background:#155fc0;color:#fff!important;text-decoration:none;border-radius:13px;padding:12px 16px;font-weight:800;margin-top:10px}
.kid-lesson{background:#fff;border:2px solid #dbe8ff;border-radius:22px;padding:clamp(16px,3vw,28px);margin:18px 0;box-shadow:0 7px 0 #eaf0ff}.kid-lesson h2{color:#17356c}.kid-lesson p,.kid-lesson li{line-height:1.7}.kid-lesson code{background:#eaf3ff;border-radius:5px;padding:2px 5px;overflow-wrap:anywhere}
.kid-lesson input,.kid-lesson select,.kid-lesson textarea{font:inherit;max-width:100%;border:2px solid #b9c9e6;border-radius:10px;padding:10px;background:#fff;color:#152c58}.kid-lesson button{font:inherit;background:#155fc0;color:white;border:0;border-radius:12px;padding:11px 17px;cursor:pointer;font-weight:800;margin:5px}.kid-lesson button:hover{background:#0d4593}.kid-lesson .feedback{font-weight:800;min-height:1.5em;color:#15543a}.kid-lesson .example{background:#e9f9f0;border-left:5px solid #1ba36e;border-radius:10px;padding:13px;margin:12px 0}.kid-lesson .challenge{background:#fff3cf;border-left:5px solid #f2ad00;border-radius:10px;padding:13px;margin:12px 0}
@media(max-width:850px){body:not(.auth-page) header .academy-nav{display:grid;grid-template-columns:1fr 1fr;overflow:visible}body:not(.auth-page) .nav-links{flex-wrap:wrap}body:not(.auth-page) header .academy-nav a{white-space:normal}}
@media(max-width:500px){body:not(.auth-page) header .academy-nav{grid-template-columns:1fr}body:not(.auth-page) .hero{grid-template-columns:1fr!important}body:not(.auth-page) .hero img{max-height:240px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important}}
