/* Forms that feel alive, and motion that stays out of the way. Applies to
   every page drawn from the design; inline styles are respected and only
   interaction states are added. */
:root { --ml-teal: #1E8574; --ml-gold: #E0A526; --ml-red: #B3261E; }

/* Fields: a soft lift on hover, a teal glow on focus, a check when valid. */
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea {
  transition: border-color .2s ease, box-shadow .25s ease, background-color .2s ease, transform .2s ease !important;
}
input:not([type=checkbox]):not([type=radio]):not([type=range]):hover, select:hover, textarea:hover { border-color: #b9b2a3 !important; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):focus, select:focus, textarea:focus {
  outline: none !important; border-color: var(--ml-teal) !important; box-shadow: 0 0 0 4px rgba(30,133,116,.16) !important;
}
aside input:focus, aside select:focus, aside textarea:focus { box-shadow: 0 0 0 4px rgba(224,165,38,.28) !important; border-color: var(--ml-gold) !important; }
input.ml-valid { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E8574' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 18px !important; padding-right: 38px !important; }
aside input.ml-valid { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E0A526' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") !important; }
input.ml-invalid { border-color: var(--ml-red) !important; box-shadow: 0 0 0 4px rgba(179,38,30,.12) !important; }
.ml-hint { display: block; font: 600 12.5px/1.3 Rubik, sans-serif; color: var(--ml-red); margin-top: 6px; animation: ml-in .25s ease both; }
@keyframes ml-in { from { opacity: 0; transform: translateY(-4px); } }

/* Something missing: a short shake, then the highlight. */
.ml-shake, .ml-flag { animation: ml-shake .42s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes ml-shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }

/* Choices (amounts, tiles, girl/boy): lift on hover, spring when picked. */
[role=button], [data-ask], [data-kid] [style*="cursor:pointer"], [data-kid] [style*="cursor: pointer"] { transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, background-color .2s ease, border-color .2s ease, color .2s ease !important; }
[role=button]:hover, [data-ask]:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(14,42,36,.12); }
.ml-pop { animation: ml-pop .45s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes ml-pop { 0% { transform: scale(.94); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }

/* Buttons that send something: working, then done. */
.ml-loading { position: relative; color: transparent !important; pointer-events: none; }
.ml-loading::after { content: ''; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2.5px solid rgba(26,26,26,.25); border-top-color: #1A1A1A; animation: ml-spin .7s linear infinite; }
@keyframes ml-spin { to { transform: rotate(360deg); } }
.ml-done { background: var(--ml-teal) !important; color: #fff !important; border-color: var(--ml-teal) !important; animation: ml-pop .5s cubic-bezier(.2,1.6,.4,1) both; }

/* The scholarship choice: three cards with a ring that fills to the percentage. */
[data-ask] { position: relative; overflow: hidden; }
[data-ask] .ml-ring { display: block; width: 86px; height: 86px; margin: 0 auto 8px; }
[data-ask] .ml-ring circle { fill: none; stroke-width: 9; }
[data-ask] .ml-ring .bg { stroke: #EEE8DC; } [data-ask] .ml-ring .fg { stroke: var(--ml-teal); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1s cubic-bezier(.2,.8,.2,1), stroke .25s; }
[data-ask] .ml-ring text { font: 400 21px 'Archivo Black', sans-serif; fill: #1A1A1A; }
[data-ask][aria-pressed=true] .ml-ring .fg { stroke: var(--ml-gold); }
[data-ask] .ml-cover { display: block; font-size: 12px; color: #6b6b6b; margin-top: 4px; }
[data-ask] .ml-badge { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--ml-teal); color: #fff; display: grid; place-items: center; font-weight: 800; transform: scale(0); transition: transform .35s cubic-bezier(.2,1.6,.4,1); }
[data-ask][aria-pressed=true] .ml-badge { transform: scale(1); }

/* Headlines that reveal word by word. */
.ml-word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.ml-word > span { display: inline-block; will-change: transform; }

/* Lenis smooth scrolling (computers only). */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .ml-shake, .ml-flag, .ml-pop, .ml-done, .ml-hint { animation: none !important; }
  [role=button]:hover, [data-ask]:hover { transform: none; }
  [data-ask] .ml-ring .fg { transition: none; }
}

/* Address suggestions, as on the concert page. */
.ml-ac { position: absolute; z-index: 60; background: #fff; border: 1px solid #E3DED2; border-radius: 12px; box-shadow: 0 16px 40px rgba(14,42,36,.18); overflow: hidden; animation: ml-in .18s ease both; }
.ml-ac button { display: block; width: 100%; text-align: left; border: 0; background: #fff; padding: 11px 14px; font: 400 14.5px/1.35 Rubik, sans-serif; color: #1A1A1A; cursor: pointer; border-top: 1px solid #F0EBE1; }
.ml-ac button:first-child { border-top: 0; } .ml-ac button:hover, .ml-ac button.on { background: #E8F3EF; }
.ml-ac small { display: block; padding: 7px 14px; font: 600 11px Rubik, sans-serif; color: #888; background: #FAF8F3; }

/* The registration panel shows in full: no scrolling inside it. It stays pinned beside
   the classes only while it fits on the screen (see delight.js). */


/* Instructor profiles and questions. */
[data-inst] { transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
[data-inst]:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(14,42,36,.12); }
dialog.ml-prof { border: 0; border-top: 6px solid var(--ml-gold); border-radius: 22px; padding: 28px; width: min(620px, 94vw); max-height: 90vh; overflow-y: auto; background: #F6F3EC; color: #1A1A1A; font: 400 16px/1.6 Rubik, sans-serif; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
dialog.ml-prof[open] { animation: ml-rise .38s cubic-bezier(.2,.8,.2,1) both; }
dialog.ml-prof::backdrop { background: rgba(14,42,36,.55); backdrop-filter: blur(3px); }
@keyframes ml-rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.ml-prof .ml-x { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 30px; cursor: pointer; color: #555; }
.ml-prof h2 { font: 400 30px/1 'Archivo Black', sans-serif; text-transform: uppercase; margin: 4px 0; }
.ml-prof .ml-k { font: 700 11.5px Rubik, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--ml-teal); }
.ml-prof .ml-head { display: flex; gap: 18px; align-items: center; } .ml-prof .ml-head img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; flex: none; border: 4px solid #fff; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.ml-prof .ml-role { color: #555; font-size: 14.5px; } .ml-prof .ml-bio { margin: 16px 0; }
.ml-prof .ml-box { background: #fff; border: 1px solid #E3DED2; border-radius: 16px; padding: 16px 18px; }
.ml-prof .ml-box b { font: 400 18px 'Archivo Black', sans-serif; text-transform: uppercase; }
.ml-prof .ml-dates { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; } .ml-prof .ml-dates span { background: #E8F3EF; color: #14544a; font: 700 12.5px Rubik, sans-serif; padding: 5px 10px; border-radius: 999px; }
.ml-prof .ml-price b { font: 800 16px Rubik, sans-serif; text-transform: none; } .ml-prof .ml-left { margin-top: 8px; font-weight: 700; color: var(--ml-teal); }
.ml-prof .ml-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.ml-b { border: 0; border-radius: 12px; padding: 14px 20px; font: 800 15px Rubik, sans-serif; cursor: pointer; } .ml-b.gold { background: var(--ml-gold); color: #1A1A1A; } .ml-b.line { background: #fff; border: 2px solid #1A1A1A; color: #1A1A1A; }
.ml-prof .ml-small { font-size: 13px; color: #6b6b6b; margin-top: 12px; }
.ml-ask label { display: block; font: 700 11.5px Rubik, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #555; margin: 12px 0 0; }
.ml-ask input, .ml-ask textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid #E3DED2; border-radius: 10px; font: 16px Rubik, sans-serif; text-transform: none; letter-spacing: 0; background: #fff; box-sizing: border-box; }
.ml-ask .ml-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .ml-ask .ml-b { margin-top: 16px; width: 100%; } .ml-err { color: #B3261E; font-weight: 700; margin-top: 10px; }
@media (max-width: 560px) { dialog.ml-prof { padding: 22px 18px; } .ml-prof .ml-head img { width: 80px; height: 80px; } .ml-ask .ml-2 { grid-template-columns: 1fr; } .ml-prof h2 { font-size: 24px; } }

/* The stages rail, the milestone line, and session filters. */
.ml-rail { position: absolute; left: -26px; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: rgba(26,26,26,.08); }
.ml-rail i { display: block; height: 100%; background: linear-gradient(#E0A526, #1E8574); border-radius: 3px; transform-origin: top; }
.ml-line { position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: #E0A526; transform-origin: left; }
.ml-dot { position: absolute; left: -1px; top: -6px; width: 14px; height: 14px; border-radius: 50%; background: #E0A526; box-shadow: 0 0 0 4px #F6F3EC; }
[data-filter] { cursor: pointer; user-select: none; }
[data-filter][aria-pressed=true] { background: #0E2A24 !important; color: #fff !important; border-color: #0E2A24 !important; }
[data-ml-hide] { display: none !important; }
.ml-showing { font: 600 13px Rubik, sans-serif; color: #555; align-self: center; } .ml-showing button { border: 0; background: none; color: #1E8574; font: 800 13px Rubik, sans-serif; text-decoration: underline; cursor: pointer; }

/* The promo video. */
.ml-play { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 16px 10px 10px; background: #1A1A1A; color: #fff; font: 800 14px Rubik, sans-serif; cursor: pointer; transition: transform .2s; }
.ml-play span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #E0A526; color: #1A1A1A; font-size: 11px; padding-left: 2px; }
.ml-play:hover { transform: translateY(-2px); }
dialog.ml-video { border: 0; padding: 0; background: #000; width: min(1000px, 94vw); border-radius: 16px; overflow: hidden; }
dialog.ml-video::backdrop { background: rgba(0,0,0,.75); }
dialog.ml-video .ml-frame { position: relative; aspect-ratio: 16 / 9; } dialog.ml-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
dialog.ml-video .ml-x { position: absolute; top: 8px; right: 10px; z-index: 2; border: 0; background: rgba(0,0,0,.5); color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; cursor: pointer; }
