/* Flight with Amelia (Jugami Elementary Science, grades K-5): "bright sky" theme. Version 1.
   The whole look lives in custom properties so the theme can be swapped. */
:root{
  --ink:#14305a;          /* deep sky-navy ink */
  --ink-soft:#4a5f80;
  --paper:#f3f9ff;        /* pale morning sky */
  --card:#fff;
  --sky:#2f8fe0;          /* bright daytime sky */
  --sky-dark:#1a5fa8;
  --sky-pale:#dff0ff;
  --sun:#ffc83d;
  --sun-dark:#8a5a00;
  --cloud:#ffffff;
  --line:#d3e5f7;
  /* one color per force (used on arrows, cards and game buttons) */
  --lift:#1f9d55;  --lift-tint:#e6f8ee;
  --weight:#7a4cc2; --weight-tint:#f1eaff;
  --thrust:#e8590c; --thrust-tint:#fff0e4;
  /* darker text inks (4.5:1+ on white and on the pale tints); the bright colours above stay for art, borders and arrows */
  --lift-text:#157a42; --weight-text:#7a4cc2; --thrust-text:#b8430a; --drag-text:#c2255c;
  --drag:#c2255c;  --drag-tint:#ffe9f1;
  --radius:24px;
  --round:"Trebuchet MS","Segoe UI","Nunito",system-ui,-apple-system,sans-serif;
  --display:"Comic Neue","Chalkboard SE","Trebuchet MS",system-ui,sans-serif;
  /* read-aloud.js v2 theme */
  --ra-accent:#1a5fa8; --ra-accent-ink:#fff; --ra-highlight:#ffc83d; --ra-highlight-bg:#fff8dc;
  --ra-radius:999px; --ra-font-size:1.2em; --ra-sub-ink:#14305a;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}
body{margin:0;background:var(--paper);color:var(--ink);font:20px/1.6 var(--round)}
img,svg{max-width:100%;height:auto}
a{color:#1650a0;text-underline-offset:3px}
a:hover{color:var(--thrust-text)}
:focus-visible{outline:4px solid var(--thrust);outline-offset:3px}
.skip{position:absolute;left:-999px;top:8px;background:var(--sun);color:var(--ink);padding:10px 16px;border-radius:12px;font-weight:800;z-index:10}
.skip:focus{left:8px}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.wrap{max-width:1060px;margin:0 auto;padding:0 18px}
main:focus{outline:none}

/* header: sky bar with a puffy cloud edge */
.site-head{background:linear-gradient(180deg,var(--sky-dark),var(--sky));color:#fff;position:relative;padding-bottom:18px}
.site-head::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:20px;
  background:radial-gradient(circle at 18px 20px,var(--paper) 17px,transparent 18px) 0 0/36px 20px repeat-x}
.bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;padding:10px 18px;max-width:1060px;margin:0 auto}
.brand{display:inline-flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-weight:800;font-size:1.3em;min-height:44px}
.brand img{width:44px;height:44px}
.brand:hover{color:#fff3c4}
.head-nav{margin-left:auto;display:flex;flex-wrap:wrap;gap:6px}
.head-nav a{min-height:44px;display:inline-flex;align-items:center;color:#fff;text-decoration:none;font-weight:700;font-size:.95em;padding:6px 14px;border-radius:999px;background:rgba(255,255,255,.16)}
.head-nav a:hover,.head-nav a:focus-visible{background:rgba(255,255,255,.32);color:#fff}
.crumbs{font-size:.95em;margin:8px 0 0}
.crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px}
.crumbs li{display:inline-flex;align-items:center;min-height:44px}
.crumbs li+li::before{content:"›";margin-right:4px;color:var(--ink-soft)}
.crumbs a{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;padding:0 2px}
.pager{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:14px 0;font-size:1em}
.pager a{background:#fff;border:3px solid var(--sky-dark);color:var(--sky-dark);padding:8px 16px;border-radius:999px;text-decoration:none;font-weight:800;min-height:44px;display:inline-flex;align-items:center}
.pager a:hover{background:var(--sky-pale)}
.pager span{display:inline-flex;align-items:center;min-height:44px;padding:8px 4px;color:var(--ink-soft);font-weight:600;font-style:italic}

/* hero */
.hero{display:grid;gap:18px;align-items:center;background:radial-gradient(circle at 85% 15%,#fff6cf 0,transparent 50%),linear-gradient(180deg,#cfe8ff,#fff);border-radius:var(--radius);padding:22px;margin-top:12px;box-shadow:0 6px 0 var(--line)}
@media (min-width:800px){.hero{grid-template-columns:1.05fr 1fr}}
.kicker{font-size:.9em;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--sky-dark);margin:0}
h1{font-family:var(--display);font-size:clamp(2.2rem,7vw,3.5rem);line-height:1.1;margin:.15em 0 .2em;color:var(--sky-dark)}
.tag{font-size:1.25em;font-weight:700;margin:0 0 10px}
h2{font-family:var(--display);font-size:clamp(1.6rem,5vw,2.1rem);line-height:1.2;color:var(--sky-dark);margin:0 0 10px;scroll-margin-top:12px}
h3{font-size:1.25em;margin:.4em 0 .2em;line-height:1.25}
.hero-art{width:100%;max-width:460px;margin:0 auto;display:block}
.bubble{background:#fff;border:3px solid var(--sky);border-radius:22px;padding:10px 16px}
.bubble p{margin:.3em 0}
.block{background:var(--card);border-radius:var(--radius);padding:22px;margin:24px 0;box-shadow:0 6px 0 var(--line);scroll-margin-top:12px}
.block p,.block li{max-width:64ch}
.word{font-weight:800;color:var(--sky-dark)}
.w-lift{color:var(--lift-text)} .w-weight{color:var(--weight-text)} .w-thrust{color:var(--thrust-text)} .w-drag{color:var(--drag-text)}
.grownups{background:#fff8dc;border-left:6px solid var(--sun);padding:10px 14px;border-radius:12px;font-size:.95em}
.nojs{background:#fff1b8;padding:10px 14px;border-radius:12px;font-weight:700}
.note{font-size:.95em;color:var(--ink-soft)}
.tryit{background:var(--sky-pale);border:3px dashed var(--sky);border-radius:18px;padding:10px 16px;margin:14px 0}
.tryit h3{margin-top:.1em}
.figure{margin:14px 0;text-align:center}
.figure svg{display:block;margin:0 auto;width:100%;max-width:560px}
.figure figcaption{font-size:.95em;color:var(--ink-soft);margin-top:6px}
.split{display:grid;gap:16px;align-items:center}
@media (min-width:760px){.split{grid-template-columns:1.3fr 1fr}}
.split svg{width:100%;max-width:320px;display:block;margin:0 auto}

/* on this page */
.toc{background:#fff;border-radius:var(--radius);padding:14px 20px;margin:20px 0;box-shadow:0 6px 0 var(--line)}
.toc h2{font-size:1.3rem;margin:0 0 6px}
.toc ol{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.toc a{display:inline-flex;align-items:center;min-height:44px;padding:4px 14px;border-radius:999px;background:var(--sky-pale);text-decoration:none;font-weight:700}
.toc a:hover{background:#c6e3ff}

/* lesson cards (hub) */
.cards{list-style:none;margin:0;padding:0;display:grid;gap:18px}
@media (min-width:720px){.cards{grid-template-columns:1fr 1fr}}
.card{background:var(--sky-pale);border-radius:22px;padding:18px;border:3px solid var(--sky);position:relative}
.card.soon{background:#f6f7fb;border-style:dashed;border-color:#b7c3d6}
.card h3 a{text-decoration:none}
.card h3 a::after{content:"";position:absolute;inset:0;border-radius:22px}
.card h3 a:hover{text-decoration:underline}
.card .row{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0}
.card .row svg{width:56px;height:56px}

/* four force cards */
.forces{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:14px}
@media (min-width:700px){.forces{grid-template-columns:1fr 1fr}}
.force{border-radius:20px;padding:14px 16px;background:var(--t);border:3px solid var(--c);display:grid;grid-template-columns:64px 1fr;gap:12px;align-items:start}
.force svg{width:64px;height:64px}
.force h3{margin:0;color:var(--c-ink,var(--c))}
.force p{margin:.2em 0}

/* flyer cards (birds, insects, kites...) */
.flyer{display:grid;gap:14px;align-items:center}
@media (min-width:760px){.flyer{grid-template-columns:220px 1fr}}
.flyer > svg{width:100%;max-width:220px;margin:0 auto;display:block}
.fact{display:inline-block;background:#fff8dc;border:2px solid var(--sun);border-radius:14px;padding:4px 12px;font-weight:700}

/* buttons */
.btn-row{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0}
.btn{font:inherit;font-weight:800;min-height:48px;padding:8px 20px;border-radius:999px;border:3px solid var(--sky-dark);background:var(--sky-dark);color:#fff;cursor:pointer}
.btn:hover{background:var(--sky)}
.btn.alt{background:#fff;color:var(--sky-dark)}
.btn.alt:hover{background:var(--sky-pale)}

/* JS-only parts appear once flight.js runs */
.needs-js{display:none!important}
.js .needs-js{display:inline-flex!important}
.js .needs-js.block-level{display:block!important}
.js noscript{display:none}

/* game: Force Finder (unit) and Sky Spotter (hub) */
.help{background:var(--sky-pale);border-radius:14px;padding:8px 14px}
.game{border:3px solid var(--sky);border-radius:22px;padding:14px;background:linear-gradient(180deg,#e3f2ff,#fff)}
.game .stage{display:block;width:100%;max-width:560px;margin:0 auto;background:#bfe1ff;border-radius:18px}
.game .q{font-size:1.2em;font-weight:800;text-align:center;margin:10px 0 4px;min-height:1.6em}
.picks{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;max-width:560px;margin:10px auto}
@media (min-width:640px){.picks{grid-template-columns:repeat(4,1fr)}}
.picks button{font:inherit;font-weight:800;min-height:64px;border-radius:18px;border:3px solid var(--c);background:var(--t);color:var(--c-ink,var(--ink));cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px}
.picks button:hover{filter:brightness(.96)}
.picks button kbd{font:700 .7em var(--round);background:#fff;border:1px solid var(--c);border-radius:6px;padding:0 6px;color:var(--ink)}
.picks button[disabled]{opacity:.55;cursor:default}
.picks button.right{outline:4px solid var(--lift);opacity:1}
.picks.spot button{--c:var(--sky-dark);--t:#fff}
.status{text-align:center;font-weight:700;min-height:1.6em;margin:6px 0}
.score{text-align:center;font-weight:800;color:var(--sky-dark);margin:4px 0}
.game .btn-row{justify-content:center}
.plane-fly{transition:transform .6s ease}

/* quiz */
.quiz fieldset{border:3px solid var(--line);border-radius:18px;margin:0 0 14px;padding:10px 14px}
.quiz legend{font-weight:800;padding:0 6px}
.choices{display:grid;gap:8px;margin-top:6px}
@media (min-width:640px){.choices{grid-template-columns:1fr 1fr}}
.choices label{display:flex;align-items:center;gap:10px;min-height:48px;border:2px solid #c7d9ee;border-radius:14px;padding:6px 12px;cursor:pointer;background:#fff}
.choices label:hover{background:var(--sky-pale)}
.choices input{width:22px;height:22px;accent-color:var(--sky-dark)}
.choices label.ok{border-color:var(--lift);background:var(--lift-tint)}
.choices label.no{border-color:var(--drag);background:var(--drag-tint)}
.fb{margin:6px 0 0;font-weight:700}
.quiz .score{text-align:left}

/* sources and footer */
.sources li{margin:.3em 0}
.credits{font-size:.95em;color:var(--ink-soft)}
.site-foot{background:var(--sky-dark);color:#fff;margin-top:30px;padding:18px 0 26px}
.site-foot a{color:#fff3c4}
.site-foot p{margin:.4em 0}
.jugami-more{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center}
.jugami-more a{display:inline-flex;align-items:center;min-height:44px;padding:0 4px}

/* gentle motion */
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
.bob{animation:bob 4s ease-in-out infinite}
@media (max-width:420px){body{font-size:18px}.block{padding:16px}.hero{padding:16px}}
.picks.spot{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.js .needs-js[hidden]{display:none!important}
.picks button[disabled]{opacity:.75}
.picks button.wrong{outline:4px dashed var(--drag);opacity:1}
/* feedback that does not rely on colour alone: a mark plus words (round 1 review) */
.picks button{position:relative}
.picks{row-gap:18px;margin-top:18px}
.picks button.right::after,.picks button.wrong::after{position:absolute;top:-13px;right:10px;z-index:1;font:800 .8em/1 var(--round);padding:3px 6px;border-radius:999px;background:#fff;border:2px solid currentColor}
.picks button.right::after{content:"\2713  right";color:#14632f}
.picks button.wrong::after{content:"\2717";color:#9c1c49}
.choices label.ok::after{content:"\2713  right";margin-left:auto;font-weight:800;color:#14632f;white-space:nowrap}
.choices label.no::after{content:"\2717";margin-left:auto;font-weight:800;color:#9c1c49}
.choices{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.flyer > svg{max-width:180px;background:var(--sky-pale);border-radius:50%;padding:14px}
.split svg{max-width:260px;background:var(--sky-pale);border-radius:50%;padding:18px}
.choices input{flex:none}
html:not(.js) .game .picks,html:not(.js) .game [data-status],html:not(.js) .game [data-score]{display:none}
.f-lift{--c:var(--lift);--t:var(--lift-tint);--c-ink:#14632f}
.f-weight{--c:var(--weight);--t:var(--weight-tint);--c-ink:#5a3696}
.f-thrust{--c:var(--thrust);--t:var(--thrust-tint);--c-ink:#a8400a}
.f-drag{--c:var(--drag);--t:var(--drag-tint);--c-ink:#9c1c49}
.ink-lift{color:var(--lift)}.ink-weight{color:var(--weight)}.ink-thrust{color:var(--thrust)}.ink-drag{color:var(--drag)}.ink-sun{color:var(--sun)}
