@import url("fonts.css");
@import url("interactions.css");
:root { color-scheme: light; font-family: Nunito, Arial, sans-serif; color: #26243c; background: #ddf5ff; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, select, input, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #26243c; outline-offset: 4px; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 10; padding: 14px 20px; background: #ffde17; color: #26243c; font-weight: 700; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
select { min-height: 44px; border: 1px solid #8a8494; padding: 8px; border-radius: 10px; background: #fff9ef; color: #26243c; }
#preview { margin: 24px auto; width: min(100% - 32px, 1440px); position: relative; box-shadow: 0 12px 55px #202a4412; }
.site-view { background: #fff9ed; min-height: 100vh; }
.site-view #preview { margin: 0 auto; box-shadow: none; }
.site-view #preview:not([data-mode=desktop]) { width: min(100%,1440px); }
#preview[data-mode=mobile] { max-width: 390px; }
.site-view #preview[data-layout=mobile] { max-width: 390px; }
#preview[data-mode=desktop] { width: 1440px; max-width: none; }
#artboard > svg { width: 100%; height: auto; display: block; }
#artboard svg a { cursor: pointer; }
#artboard svg a:focus-visible { outline: 3px solid #26243c; outline-offset: 4px; filter: drop-shadow(0 0 2px white); }
#contact-info { scroll-margin-top: 24px; }
#contact-info:focus, #location:focus, #page-content:focus, #enrol:focus { outline: none; }
#location { scroll-margin-top: 24px; }
#footer-overlay { position: absolute; font: 16px/1.5 Nunito,Arial,sans-serif; }
#footer-overlay[hidden] { display: none; }
.contact-footer { padding: 28px 0 32px; border-top: 1px solid #8a8494; scroll-margin-top: 24px; }
.site-error { max-width: 600px; padding: 28px; margin: 40px auto; border: 2px solid #4933b8; border-radius: 24px; background: #fff2bb; }
.site-error .panel-button { margin: 8px 12px 0 0; }
.contact-footer h2 { margin: 0 0 28px; font: 600 32px/1.3 Fredoka,sans-serif; }
.contact-main, .contact-bottom { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 24px 52px; }
.contact-main { align-items: stretch; margin-bottom: 28px; }
.contact-hours { position: relative; min-width: 0; min-height: 248px; padding: 20px; border-radius: 24px; background: #ffde17; }
.contact-hours h3 { margin: 0 64px 20px 0; font-size: 16px; }
.contact-hours dl { margin: 0; }
.contact-hours dt { font-size: 18px; font-weight: 800; }
.contact-hours dd { margin: 8px 0 20px; }
.contact-hours dd:last-child { margin-bottom: 0; }
.contact-time { font: 600 28px/1.3 Fredoka,sans-serif; overflow-wrap: anywhere; }
.contact-icon { display: block; width: 56px; height: 56px; flex: 0 0 56px; }
.contact-icon svg { display: block; width: 100%; height: 100%; }
.contact-hours > .contact-icon { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; }
.contact-channels { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 24px; }
.contact-channel { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 88px; padding: 16px; border: 1px solid #8a8494; border-radius: 20px; background: #fff; text-decoration: none; }
.contact-channel-copy { min-width: 0; }
.contact-channel-copy strong { display: block; font-size: 14px; }
.contact-value { display: block; margin-top: 5px; font-weight: 800; color: #4933b8; overflow-wrap: anywhere; }
.contact-directions, .contact-footer-nav a { min-height: 68px; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; font-weight: 800; text-decoration: none; }
.contact-directions { border: 1px solid #26243c; background: #fff; }
.contact-directions .contact-icon { width: 42px; height: 42px; flex-basis: 42px; }
.contact-footer-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.contact-footer-nav a { justify-content: center; background: #ddf5ff; }
.contact-address { margin: 24px 0 0; color: #49445e; font-size: 14px; overflow-wrap: anywhere; }
#footer-overlay[data-compact=true] :is(.contact-main,.contact-bottom) { grid-template-columns: 1fr; gap: 20px; }
#footer-overlay[data-narrow=true] :is(.contact-channels,.contact-footer-nav) { grid-template-columns: 1fr; }
#footer-overlay[data-narrow=true] .contact-time { font-size: 25px; }
#footer-overlay[data-narrow=true] .contact-footer-nav a { justify-content: flex-start; padding-left: 20px; }
#footer-overlay[data-narrow=true] .contact-directions { gap: 8px; padding: 10px; }
#load-status { text-align: center; font-size: 14px; }
.site-loader { min-height: 70vh; padding: 32px; display: grid; place-content: center; justify-items: center; gap: 16px; }
.site-loader[hidden] { display: none; }
.site-loader p { margin: 0; font: 600 22px/1.4 Fredoka,sans-serif; }
.loading-block { transform-box: fill-box; transform-origin: center bottom; animation: loading-shuffle 1800ms ease-in-out infinite; }
.loading-block:nth-child(2) { animation-delay: 160ms; }
.loading-block:nth-child(3) { animation-delay: 320ms; }
@keyframes loading-shuffle { 0%,100% { translate: 0 0; rotate: -2deg; } 50% { translate: 0 -5px; rotate: 3deg; } }
#preview[aria-busy=true] { max-height: 0; overflow: hidden; opacity: 0; pointer-events: none; }
#calendar-overlay { position: absolute; display: flex; flex-direction: column; background: #fff9ed; border-radius: 28px; overflow: hidden; border: 2px solid #4933b8; box-shadow: 0 4px 0 #26243c20; }
#calendar-overlay[hidden] { display: none; }
#calendar-overlay iframe { display: block; width: 100%; flex: 1; min-height: 0; border: 0; background: #fff9ed; }
.calendar-heading { padding: 20px 24px; background: #91e1ba; border-bottom: 1px solid #8a8494; }
.calendar-heading h2 { margin: 0; font: 600 28px/1.3 Fredoka,sans-serif; color: #4933b8; }
.calendar-heading p { margin: 8px 0 0; font-size: 16px; line-height: 1.55; }
dialog { border: 1px solid #ddd; border-radius: 24px; padding: 26px; width: min(480px, calc(100% - 32px)); color: #202a44; background: #fff9ef; }
dialog::backdrop { background: #202a4477; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dialog-heading strong { font-family: Fredoka, "Arial Rounded MT Bold", sans-serif; font-size: 24px; font-weight: 600; }
.dialog-heading button { background: #fff; border: 1px solid #ddd; border-radius: 50%; width: 44px; height: 44px; font-size: 26px; flex-shrink: 0; }
dialog p { line-height: 1.65; color: #586078; }
#info-copy { white-space: pre-line; line-height: 1.65; margin: 20px 0; }
#info-copy a { display: inline-block; min-height: 44px; }
dialog :is(nav,.menu-actions) { display: grid; gap: 6px; margin-top: 20px; }
dialog :is(nav,.menu-actions) a { min-height: 46px; padding: 14px 16px; border-radius: 12px; font-weight: 700; text-decoration: none; }
dialog :is(nav,.menu-actions) a:not(.primary):hover { background: #ded7fa; }
.menu-actions .primary { text-align: center; }
[data-book-visit] { transform-box: fill-box; transform-origin: center; }
.primary { display: inline-block; border: 0; background: #4055d8; border-radius: 24px; color: #fff; padding: 14px 20px; min-height: 48px; font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#gallery-overlay { position: absolute; padding: 24px; border: 2px solid #4933b8; border-radius: 38px 23px 34px 20px; background: radial-gradient(#4933b812 1px,transparent 1px) 0 0/18px 18px,linear-gradient(135deg,#fff0b7,#fff9ed 65%); font-size: 16px; }
#gallery-overlay h2 { font: 600 28px/1.27 Fredoka, sans-serif; margin: 0; color: #4933b8; }
.gallery-heading { display: flex; align-items: flex-start; gap: 12px; padding: 20px; border: 2px solid #4933b8; border-radius: 17px 30px 21px 28px; background: #ddf5ff; margin-bottom: 20px; }
.gallery-kicker { display: block; font-size: 14px; font-weight: 800; color: #4933b8; margin-bottom: 10px; }
.gallery-heading > div:first-child { flex: 1; min-width: 0; }
.gallery-mascot { width: 84px; flex: 0 0 84px; }
.gallery-mascot svg { display: block; width: 100%; }
.gallery-intro { line-height: 1.55; margin: 12px 0 0; }
.gallery-filters { display: flex; gap: 10px; overflow-x: auto; padding: 8px; }
.gallery-filter { flex-shrink: 0; min-height: 44px; padding: 10px 14px; border: 1px solid #4933b8; border-radius: 24px; background: #fff0b7; color: #26243c; font-weight: 700; }
.gallery-filter:nth-child(even) { background: #ffabd5; }
.gallery-filter[aria-pressed=true] { background: #4933b8; color: white; }
.gallery-status { font-size: 14px; line-height: 1.55; margin: 16px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; padding: 12px 6px; }
.gallery-photo { position: relative; min-width: 0; padding: 0; border: 2px solid #4933b8; border-radius: 18px 27px 20px 29px; background: #91e1ba; color: #26243c; text-align: left; box-shadow: 3px 6px 0 #26243c20; transform: rotate(var(--photo-tilt,-1deg)); transition: transform 320ms cubic-bezier(.2,.7,.2,1),filter 320ms ease; }
.gallery-photo::before { content: ""; position: absolute; z-index: 1; width: 58px; height: 17px; top: -8px; left: 50%; background: #ffd448de; transform: translateX(-50%) rotate(-7deg); }
@media (hover: hover) { #gallery-overlay .gallery-photo:hover { transform: translateY(-4px) rotate(0deg); } }
.gallery-photo:nth-child(6n+2) { background: #ffabd5; }
.gallery-photo:nth-child(6n+3) { background: #c4acff; }
.gallery-photo:nth-child(6n+4) { background: #ffc192; }
.gallery-photo:nth-child(6n+5) { background: #ddf5ff; }
.gallery-photo:nth-child(6n+6) { background: #ffd448; }
.gallery-image-frame { display: grid; aspect-ratio: 4/3; margin: 8px 8px 0; border-radius: 14px; overflow: hidden; background: #fff; }
.gallery-image-frame img { width: 100%; height: 100%; object-fit: cover; }
.gallery-image-error { align-self: center; padding: 12px; font-size: 14px; }
.gallery-caption { display: grid; gap: 6px; padding: 14px; }
.gallery-caption strong { font-size: 16px; line-height: 1.4; }
.gallery-caption > span { width: fit-content; max-width: 100%; padding: 4px 9px; border-radius: 14px; background: #ffffffc9; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.gallery-pagination,.photo-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 24px; font-size: 14px; }
.gallery-pagination button,.photo-controls button { min-width: 64px; min-height: 44px; padding: 10px 14px; border: 1px solid #26243c; border-radius: 16px; background: #ffde17; color: #26243c; font-weight: 700; }
.gallery-pagination button:disabled { background: #efeff7; color: #49445e; cursor: default; }
.gallery-pagination[hidden] { display: none; }
.gallery-empty { grid-column: 1/-1; line-height: 1.55; }
#gallery-overlay[data-mode=mobile] { padding: 16px; }
#gallery-overlay[data-mode=mobile] .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
#gallery-overlay[data-mode=mobile] h2 { font-size: 25px; }
#gallery-overlay[data-mode=mobile] .gallery-heading { padding: 12px; gap: 8px; }
#gallery-overlay[data-mode=mobile] .gallery-mascot { width: 64px; flex-basis: 64px; }
#photo-dialog { width: min(940px,calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
#photo-full { display: block; width: 100%; max-height: 64dvh; object-fit: contain; margin-top: 20px; border-radius: 16px; }
#photo-error { padding: 12px; background: #fff0b7; }
#game-overlay { position: absolute; padding: 24px; border: 0; background: #fff9ed; }
.runaway-status { min-height: 76px; margin: 16px 0 0; font: 600 25px/1.4 Fredoka, sans-serif; }
.runaway-stage { height: 260px; position: relative; overflow: hidden; border-radius: 22px; background: #fff9ed; }
@media (hover: none) and (pointer: coarse) { #game-overlay { display: none; } }
.runaway-button { position: absolute; top: 0; left: 0; width: min(390px,calc(100% - 32px)); min-height: 88px; padding: 16px 24px; display: flex; align-items: center; justify-content: center; text-align: center; background: #ffde17; border: 2px solid #26243c; border-radius: 24px; font-size: 16px; font-weight: 800; line-height: 1.5; text-decoration: none; transition: transform 140ms ease-out; }
.content-panel { position: absolute; font-size: 16px; line-height: 1.65; }
.content-panel h2 { font: 600 28px/1.3 Fredoka,sans-serif; margin: 0 0 16px; }
.content-panel h3 { font: 600 21px/1.35 Fredoka,sans-serif; margin: 0; }
.content-panel p { margin: 12px 0 20px; }
.content-panel :is(p, h2, h3) { overflow-wrap: anywhere; }
.content-panel a { text-underline-offset: 4px; overflow-wrap: anywhere; }
.panel-kicker { font-size: 14px; font-weight: 800; color: #4933b8; }
.panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 20px 0; }
.panel-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.panel-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; border: 1px solid #26243c; border-radius: 24px; background: #ffde17; color: #26243c; font-weight: 800; text-align: center; text-decoration: none; }
.panel-button:disabled { cursor: wait; background: #efeff7; }
.panel-button[hidden] { display: none; }
.section-disclosure { margin-top: 20px; }
.section-read-more { background: #fff; color: #4933b8; border-color: #4933b8; border-radius: 16px; }
.section-dialog { position: fixed; margin: 0; max-width: none; max-height: none; padding: 22px; border: 2px solid #4933b8; border-radius: 24px; overflow: hidden; color: #26243c; }
.section-dialog[open] { display: flex; flex-direction: column; gap: 18px; }
.section-dialog::backdrop { background: #26243c24; }
.section-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.section-dialog-heading strong { min-width: 0; font: 600 23px/1.3 Fredoka,sans-serif; overflow-wrap: anywhere; }
.section-dialog-close { flex-shrink: 0; min-height: 44px; padding: 8px 14px; }
.section-dialog-copy { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; }
.section-dialog-copy p { margin: 0; color: #26243c; white-space: pre-wrap; overflow-wrap: anywhere; }
.kumon-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; margin-top: 24px; }
.kumon-method, .kumon-profile, .kumon-fees, .kumon-times, .kumon-booking { padding: 28px; border: 1px solid #8a8494; border-radius: 28px; background: #fff; }
.kumon-method, .kumon-times { display: flex; flex-direction: column; }
.kumon-method { background: #91e1ba; }
.kumon-profile { display: grid; grid-template-columns: 1fr; align-content: start; gap: 16px; background: #ddf5ff; }
.kumon-profile-copy { min-width: 0; }
.kumon-profile-copy .panel-actions { margin-bottom: 0; }
.instructor-portrait { width: min(100%,140px); margin: 0 auto; }
.instructor-portrait svg { display: block; width: 100%; }
.kumon-fees, .kumon-booking { margin-top: 24px; }
.kumon-fees { background: #fff0b7; }
.fee-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 24px; }
.fee-card { border: 1px solid #8a8494; border-radius: 18px; padding: 20px; background: #fff; }
.fee-card p { margin-bottom: 0; font-weight: 800; }
.kumon-times { background: #c4acff; }
.kumon-times .study-duration { margin-top: 36px; }
.kumon-timetables { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr)); gap: 16px; }
.timetable-block { min-width: 0; padding: 12px; border: 2px solid #4933b8; border-radius: 18px; }
.timetable-classes { background: #fff0b7; }
.timetable-office { background: #ddf5ff; border-color: #49445e; }
.kumon-timetable { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; line-height: 1.5; }
.kumon-timetable caption { text-align: left; font-size: 18px; font-weight: 800; margin: 0 0 12px; }
.timetable-purpose { display: block; min-height: 42px; margin-top: 6px; font-size: 14px; font-weight: 400; }
.kumon-timetable th, .kumon-timetable td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #8a8494; }
.kumon-timetable thead th { background: #4933b8; color: #fff; font-weight: 800; border-bottom: 2px solid #26243c; }
.kumon-timetable th:first-child { width: 48%; }
.kumon-timetable tbody th { font-weight: 700; }
.kumon-timetable td { white-space: nowrap; }
.note-callout { display: grid; grid-template-columns: 32px minmax(0,1fr); align-items: start; gap: 12px; padding: 16px; border-radius: 20px; background: #fff9ed; }
.note-asterisk { display: block; width: 32px; height: 32px; }
.note-asterisk svg { display: block; width: 100%; height: 100%; }
.note-copy { min-width: 0; }
.note-asterisk-art { transform-box: fill-box; transform-origin: center; }
.note-wobble-active .note-asterisk-art { animation: note-wobble 1800ms ease-in-out 1; }
@media (hover: hover) { [data-note]:hover .note-asterisk-art { animation: note-wobble 1800ms ease-in-out 1; } }
@keyframes note-wobble { 0%,100% { rotate: 0deg; } 25% { rotate: -9deg; } 55% { rotate: 8deg; } 80% { rotate: -3deg; } }
.study-pencil { transform-box: fill-box; transform-origin: center bottom; }
[data-character=study-buddy].note-wobble-active .study-pencil { animation: study-write 2200ms ease-in-out 1; }
@media (hover: hover) { [data-character=study-buddy]:hover .study-pencil { animation: study-write 2200ms ease-in-out 1; } }
@keyframes study-write { 0%,100% { rotate: 0deg; } 25%,65% { rotate: -4deg; } 45%,80% { rotate: 3deg; } }
.character-art { transform-box: fill-box; transform-origin: center bottom; }
[data-toon].note-wobble-active .character-art { animation: toon-sway 2800ms ease-in-out 2; }
@media (hover: hover) { [data-toon]:hover .character-art { animation: toon-sway 2800ms ease-in-out 1; } }
@keyframes toon-sway { 0%,100% { rotate: 0deg; translate: 0 0; } 30% { rotate: -3deg; translate: 0 -3px; } 65% { rotate: 3deg; translate: 0 -1px; } }
.career-search-glass { transform-box: fill-box; transform-origin: center; }
.career-eyes { transform-box: fill-box; transform-origin: center; }
[data-toon].note-wobble-active .career-search-glass, [data-toon]:hover .career-search-glass { animation: career-search 2800ms ease-in-out 2; }
[data-toon].note-wobble-active .career-eyes, [data-toon]:hover .career-eyes { animation: career-blink 2800ms ease-in-out 2; }
@keyframes career-search { 0%,100% { translate: 0 0; rotate: 0deg; } 35% { translate: -5px -2px; rotate: -5deg; } 70% { translate: 4px 1px; rotate: 4deg; } }
@keyframes career-blink { 0%,40%,48%,100% { scale: 1 1; } 44% { scale: 1 .15; } }
.curious-hand, .curious-eyebrow { transform-box: fill-box; transform-origin: center bottom; }
[data-toon].note-wobble-active .curious-hand { animation: curious-think 2800ms ease-in-out 2; }
[data-toon].note-wobble-active .curious-eyebrow { animation: curious-brow 2800ms ease-in-out 2; }
@keyframes curious-think { 0%,100% { rotate: 0deg; } 40% { rotate: -4deg; } 75% { rotate: 3deg; } }
@keyframes curious-brow { 0%,100% { translate: 0 0; } 45% { translate: 0 -2px; } }
.kumon-booking { background: #ffabd5; }
.kumon-booking-top { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: stretch; gap: 24px; }
.kumon-booking-copy { min-width: 0; }
.kumon-booking .kumon-profile { padding: 24px; }
.kumon-booking .panel-button { min-height: 52px; padding: 12px 20px; border-color: #4933b8; border-radius: 26px; background: #4933b8; color: #fff; font-weight: 700; line-height: 1.5; cursor: pointer; }
.booking-options { display: grid; grid-auto-rows: 1fr; gap: 16px; margin: 24px 0; }
.booking-option { display: grid; grid-template-rows: auto 1fr; gap: 8px; }
.booking-option-label { font-size: 14px; font-weight: 800; color: #4933b8; }
.booking-option .panel-button { display: flex; width: 100%; gap: 8px; }
.external-mark, .external-mark svg { display: block; width: 20px; height: 20px; flex: 0 0 20px; }
.booking-help { font-size: 14px; line-height: 1.6; background: #fff0b7; }
.kumon-booking-form { width: 100%; margin-top: 24px; }
.kumon-booking-form[hidden] { display: none; }
.kumon-booking-frame { display: block; width: 100%; height: 1000px; margin: 20px 0; border: 1px solid #8a8494; border-radius: 16px; background: #fff; }
.source-credit { display: block; margin-top: 20px; font-size: 14px; line-height: 1.6; }
.reviews-panel { padding: 20px; border: 1px solid #8a8494; border-radius: 28px; background: #fff; scroll-margin-top: 24px; }
.reviews-panel:focus { outline: none; }
.reviews-heading { display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.reviews-heading h2 { margin: 0; flex: 1; min-width: 0; }
.review-map { display: block; width: 48px; flex: 0 0 48px; }
.review-map svg { display: block; width: 100%; }
.review-status { font-size: 14px; }
.review-track { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; padding: 12px; }
.review-card { position: relative; min-width: 0; height: 252px; width: 100%; padding: 16px; border: 2px solid #4933b8; border-radius: 24px; background: var(--review-colour,#fff9ed); box-shadow: 0 5px 0 #26243c20; transition: transform 320ms cubic-bezier(.2,.7,.2,1); }
.review-card::before { content: ""; position: absolute; top: -8px; right: 24px; width: 60px; height: 18px; background: #ffd448; opacity: .85; transform: rotate(7deg); }
.review-preview { display: flex; flex-direction: column; height: 100%; min-height: 0; opacity: 1; transition: opacity 280ms ease; }
.review-excerpt { flex: 1; min-height: 0; overflow: hidden; }
.has-review-overflow .review-excerpt { mask-image: linear-gradient(#000 calc(100% - 24px),transparent); }
.review-preview .review-author { line-height: 1.4; }
.review-preview .review-stars { margin-top: 6px; }
.review-preview .review-stars svg { width: 100px; height: 20px; }
.review-preview .review-date { font-size: 14px; line-height: 1.4; margin: 6px 0 8px; }
.review-preview .review-excerpt { margin: 6px 0 8px; }
.review-more { align-self: flex-start; min-height: 44px; padding: 8px 14px; font-size: 14px; line-height: 1.5; }
.review-full { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; gap: 20px; padding: 24px; border-radius: 22px; background: var(--review-colour,#fff9ed); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 280ms ease, visibility 0s linear 280ms; }
.review-full-heading { display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.review-full-heading h3 { min-width: 0; }
.review-close { flex-shrink: 0; min-height: 44px; }
.review-full-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding-right: 8px; }
.review-full-scroll .review-text { margin: 0; }
.review-card.is-reading .review-preview { opacity: 0; pointer-events: none; }
.review-card.is-reading .review-full { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
.reviews-panel :is(a,button) { transition: transform 280ms cubic-bezier(.2,.7,.2,1), filter 280ms ease; }
@media (hover: hover) {
  .review-card:hover { transform: translateY(-1px) rotate(.2deg); }
  .reviews-panel :is(a,button):not(:disabled):hover { transform: translateY(-2px); filter: drop-shadow(0 3px 2px #26243c20); }
}
.review-carousel-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 12px; }
.review-carousel-controls[hidden] { display: none; }
.review-control { min-width: 0; min-height: 44px; padding: 10px 12px; background: #4933b8; border-color: #4933b8; color: #fff; font-size: 14px; }
.review-control:first-child { justify-self: start; }
.review-control:last-child { justify-self: end; }
.review-position { font-size: 14px; font-weight: 800; white-space: nowrap; }
.review-stars { display: inline-flex; margin-top: 10px; }
.review-stars svg { display: block; width: 120px; height: 24px; }
.review-author { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.review-author img { width: 44px; height: 44px; border-radius: 50%; }
.review-score { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 16px 0 8px; font-weight: 800; }
.reviews-panel > .panel-actions { margin: 12px 0 0; }
.review-score-number { font: 600 56px/1.15 Fredoka,sans-serif; color: #4933b8; }
.review-score-copy { display: grid; gap: 8px; min-width: 0; }
.review-score-label { font-size: 18px; }
.review-score .review-stars { margin: 0; }
.review-text { white-space: pre-wrap; }
#story-overlay { display: grid; gap: 32px; }
.story-chapters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; align-items: start; }
.story-chapter { padding: 28px; border: 1px solid #8a8494; border-radius: 28px; background: #91e1ba; }
.story-chapter:nth-child(2) { background: #fff0b7; }
.story-chapter:nth-child(3) { background: #ffabd5; }
.story-chapter h2 { margin-top: 18px; font-size: 25px; }
.content-panel[hidden] { display: none !important; }
.content-panel[data-mode=mobile] :is(.kumon-intro, .kumon-booking-top, .fee-grid, .story-chapters, .review-track, .transport-route-grid) { grid-template-columns: 1fr; }
.content-panel[data-mode=mobile] :is(.kumon-method, .kumon-profile, .kumon-fees, .kumon-times, .kumon-booking) { padding: 20px; }
.content-panel[data-mode=mobile] .instructor-portrait { max-width: 140px; }
.content-panel[data-mode=mobile] .review-card { height: 320px; padding: 16px; }
.content-panel[data-mode=mobile] .review-full { padding: 20px; }
.content-panel[data-mode=mobile] .reviews-panel { padding: 14px; }
.content-panel[data-mode=mobile] .review-score { flex-wrap: nowrap; gap: 12px; margin: 14px 0 8px; }
.content-panel[data-mode=mobile] .review-score-number { font-size: 48px; }
.content-panel[data-mode=mobile] .review-score-copy { flex: 1; }
.content-panel[data-mode=mobile] .review-score-label { font-size: 14px; line-height: 1.4; }
.content-panel[data-mode=mobile] .review-score .review-stars svg { width: 100px; height: 20px; }
.content-panel[data-mode=mobile] .review-track { padding: 8px 0; }
#transport-overlay { display: grid; gap: 24px; }
.transport-intro, .transport-routes, .transport-faqs, .transport-next { padding: 28px; border: 1px solid #8a8494; border-radius: 28px; background: #fff; }
.transport-intro { background: #91e1ba; }
.transport-routes { background: #ffc192; }
.transport-route-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 24px 0; }
.transport-route { padding: 20px; border-radius: 20px; background: #fff9ed; }
.transport-route p { margin-bottom: 0; }
.transport-faqs { background: #ddf5ff; }
.transport-faq { border-top: 1px solid #8a8494; padding: 8px 0; }
.transport-faq summary { cursor: pointer; min-height: 56px; padding: 12px 0; font-weight: 800; }
.transport-faq p { margin: 8px 0 16px; }
.transport-next { background: #c4acff; }
.transport-next .panel-button { margin: 8px 12px 8px 0; }
.content-panel[data-mode=mobile] :is(.transport-intro, .transport-routes, .transport-faqs, .transport-next) { padding: 20px; }
#enrolment-overlay { padding: 28px; border: 2px solid #4933b8; border-radius: 30px 24px 32px 22px; background: #fff0b7; }
.enrolment-section { scroll-margin-top: 24px; }
.enrolment-section-body { margin-top: 28px; padding-top: 24px; border-top: 1px solid #8a8494; }
.enrolment-section-body[hidden] { display: none; }
.admissions-storage-status { padding: 12px 16px; border-radius: 14px; background: #ddf5ff; font-size: 14px; }
.admissions-storage-status[hidden] { display: none; }
.admissions-storage-status[role=alert] { color: #891c30; background: #fff; border: 1px solid #a12035; }
#enrolment-overlay input, #enrolment-overlay select { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid #8a8494; border-radius: 12px; background: #fff; color: #26243c; }
#enrolment-overlay input[type=checkbox] { width: 24px; height: 24px; min-height: 24px; flex: 0 0 24px; margin: 3px 0; accent-color: #4933b8; }
#enrolment-overlay :is(input,select)[aria-invalid=true] { border: 2px solid #a12035; }
.admissions-progress { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; list-style: none; padding: 0; margin: 28px 0; }
.admissions-progress button { width: 100%; min-height: 48px; padding: 10px; border: 1px solid #4933b8; border-radius: 17px 23px 15px 20px; background: #fff; color: #26243c; font-weight: 800; }
.admissions-progress [aria-current=step] { background: #4933b8; color: #fff; }
.admissions-progress button:disabled { color: #49445e; border-color: #8a8494; background: #fff9ed; cursor: default; }
.admissions-progress[hidden] { display: none; }
.admissions-form { padding: 24px; border-radius: 24px; background: #fff9ed; }
.admissions-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.admissions-form fieldset[hidden] { display: none; }
.admissions-form legend { font: 600 28px/1.35 Fredoka,sans-serif; margin-bottom: 24px; padding: 0; }
.admissions-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.admissions-field { min-width: 0; }
.admissions-field label { display: block; font-weight: 800; margin-bottom: 8px; }
.field-error { display: block; color: #a12035; font-size: 14px; line-height: 1.5; margin-top: 6px; }
.form-error-summary, .form-service-status[role=alert] { padding: 16px; border: 1px solid #a12035; border-radius: 16px; background: #fff; color: #891c30; }
.form-error-summary[hidden] { display: none; }
.form-service-status { font-weight: 700; }
.admissions-step-status { font-size: 14px; font-weight: 800; }
.admissions-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 28px; }
.admissions-submit { background: #4933b8; color: #fff; border-color: #4933b8; }
.admissions-private-note, .admissions-privacy { padding: 20px; border-radius: 18px; background: #ddf5ff; }
.admissions-consent { display: flex; gap: 14px; align-items: flex-start; margin: 24px 0 8px; }
.admissions-protection { min-width: 150px; margin: 12px 0; }
.admissions-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.review-enrol-section { padding: 20px; margin-bottom: 20px; border: 1px solid #8a8494; border-radius: 20px; background: #fff; }
.review-enrol-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.review-enrol-section dl { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px 20px; margin-bottom: 0; }
.review-enrol-section dt { font-weight: 800; overflow-wrap: anywhere; }
.review-enrol-section dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.admissions-success { padding: 28px; border: 2px solid #4933b8; border-radius: 24px; background: #91e1ba; }
.admissions-reference { overflow-wrap: anywhere; font-weight: 800; }
.admissions-alternative a { display: inline-flex; align-items: center; min-height: 44px; }
.admissions-dialog { width: min(520px,calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; }
.admissions-dialog h2 { font: 600 26px/1.3 Fredoka,sans-serif; margin: 0 0 16px; }
.admissions-dialog .panel-button { display: flex; width: 100%; margin-top: 12px; }
.admissions-dialog button:disabled { background: #efeff7; color: #49445e; border-color: #8a8494; cursor: not-allowed; }
.admissions-whatsapp { background: #91e1ba; }
.content-panel[data-mode=mobile]#enrolment-overlay { padding: 16px; }
.content-panel[data-mode=mobile] .admissions-form { padding: 18px; }
.content-panel[data-mode=mobile] :is(.admissions-fields,.review-enrol-section dl) { grid-template-columns: 1fr; }
.content-panel[data-mode=mobile] .review-enrol-section dd { margin-bottom: 12px; }
.content-panel[data-mode=mobile] .admissions-progress { grid-template-columns: repeat(2,minmax(0,1fr)); }
.content-panel[data-mode=mobile] :is(.admissions-private-note,.admissions-privacy,.review-enrol-section) { padding: 16px; }
@media (max-width: 700px) {
  #preview { width: 100%; margin-top: 0; }
  #preview[data-mode=mobile] { width: min(100%, 390px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } .runaway-button { transition: none; } .review-card, .gallery-photo { animation: none !important; transform: none !important; transition: none; } .reviews-panel :is(a,button), .review-preview, .review-full { transition: none; } .review-full { transform: none; } .note-asterisk-art, .study-pencil, .character-art, .loading-block, .career-search-glass, .career-eyes, .curious-hand, .curious-eyebrow { animation: none !important; } }
