/* UI UX Pro Max refinement. Keep the approved HAS identity and page content. */
:root{--ui-muted:#51493f;--ui-border:#c8bfb1;--ui-accent-text:#a83b12;--ui-space:clamp(56px,7vw,96px);--ui-radius:16px;--ui-focus:#2456ae}
html{scroll-padding-top:calc(var(--header-h,130px) + 20px);scroll-padding-bottom:110px}
a,button{touch-action:manipulation}
a:focus-visible,button:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--ui-focus);outline-offset:4px;scroll-margin-block:calc(var(--header-h,130px) + 24px) 110px}
header nav[aria-label="주요 메뉴"] a:focus-visible{outline-offset:-3px;border-radius:4px}
.learning-copy h1,.section-top h2,.introduction-heading h1,.director-greeting h2{ text-wrap:balance;overflow-wrap:break-word}
.learning-intro{max-width:38em;line-height:1.85}
.learning-copy .academy-cards{gap:16px}
.academy-text-cards .academy-card{border-color:var(--ui-border);border-radius:var(--ui-radius)}
.academy-text-cards .academy-card-copy{padding:24px 20px;min-height:154px}
.academy-card-copy>span{color:var(--ui-muted)}
.section:is(.division-curriculum,.care-proof,.academy-system,.syntax-books,.high-progress){padding-block:var(--ui-space)}
.section-top{gap:32px;margin-bottom:40px}
.curriculum-subject{border-color:var(--ui-border);border-radius:var(--ui-radius)}
.curriculum-subject-heading{padding:32px}
.curriculum-subject h4{line-height:1.55}
.curriculum-subject p,.curriculum-support p{line-height:1.85}
.button{transition:background-color .2s,color .2s,border-color .2s;min-height:48px}
.button:active{filter:brightness(.93)}
.hero-consult,.proof-consult>div{gap:12px}
.button.consult-secondary,.contact-grid .button.consult-secondary{background:transparent;color:var(--ink);border:1px solid var(--ui-border)}
.button.consult-secondary:hover{background:var(--cream);border-color:var(--ink)}
.contact-section .button.consult-secondary{color:var(--cream);border-color:#9a9183}
.contact-section .button.consult-secondary:hover{background:#28241f;border-color:var(--cream)}
.viewer-controls button,.result-gallery-controls button,.gallery-controls button{min-width:44px;min-height:44px}
header nav[aria-label="주요 메뉴"] a:is(:hover,:focus-visible){color:var(--ui-accent-text)}
.director-letter{max-width:850px}
.director-letter>p{line-height:1.9}
@media(max-width:760px){
 header nav[aria-label="주요 메뉴"]{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;overflow:visible;padding-inline:0}
 header nav[aria-label="주요 메뉴"] a{justify-content:center;text-align:center;white-space:normal;word-break:keep-all;line-height:1.45;font-size:clamp(.8rem,2.7vw,.95rem)!important;min-width:0;min-height:48px}
 .learning-copy .academy-cards{gap:10px}
 .academy-text-cards .academy-card-copy{padding:20px 12px;min-height:144px}
 .section-top{gap:24px;margin-bottom:32px}
 .curriculum-subject-heading{padding:26px 24px}
 .hero-consult .button,.proof-consult .button{flex:1 1 140px;padding:16px 20px;text-align:center}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.button{transition:none}}

/* All media captions stay hidden, including text updated by photo slideshows. */
figure figcaption{display:none!important}

/* White lettering on orange actions in both campuses, including hover/focus. */
.button:not(.consult-secondary),.contact-grid .button.light:not(.consult-secondary),.parent-faq .button.light:not(.consult-secondary),.contact-section .button:not(.consult-secondary){color:#fff}
header nav a.nav-contact,header nav .nav-contact:is(:hover,:focus-visible,:active){color:#fff!important}

#stories.showing-mock-result .record-copy{visibility:hidden}
#stories.showing-mock-result #exam-image{object-fit:contain;background:var(--cream)}

/* Separate examples together; the new photo is not attributed to the 96-point student. */
.student-results-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px;align-items:start}
.student-results-group .record-feature{display:flex;flex-direction:column;gap:28px;align-items:stretch;min-width:0}
.student-results-group .high-exam-evidence{max-width:none;width:100%;margin:0;min-width:0}
.student-results-group .high-exam-evidence img{height:510px;object-fit:contain;background:var(--cream)}
@media(max-width:900px){.student-results-group{gap:28px}.student-results-group .high-exam-evidence img{height:470px}}
@media(max-width:640px){.student-results-group{grid-template-columns:1fr;gap:40px}.student-results-group .high-exam-evidence{max-width:420px;margin:auto}.student-results-group .high-exam-evidence img{height:auto}}
