/* Contact dialog styles shared by the non-Academy pages. */
.maju-contact-host{--contact-rule:#cfd5d7;color:#252824}
.maju-contact-host .academy-modal{
 width:900px;max-width:calc(100% - 48px);max-height:88dvh;padding:0;border:0;
 background:#fff;color:#252824;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable both-edges
}
#maju-open .maju-contact-host .academy-modal{max-width:calc(100% - 48px);padding:0;border:0;background:#fff;color:#252824}
.maju-contact-host .academy-modal::backdrop{background:#0006}
.maju-contact-host .academy-modal-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;min-width:0;box-sizing:border-box;margin-top:12px;padding:24px 28px;background:#fff;border:0}
.maju-contact-host .academy-modal-head h2{margin:4px 0 0;font:300 30px/36px 'tablet-gothic',Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase;outline:none}
.maju-contact-host .academy-modal-head p{margin:0;font:600 12px/25px 'tablet-gothic',Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase}
.maju-contact-host .academy-modal-head .close-button{width:44px;height:44px;margin:-8px 0;padding:0;border:0;background:transparent;display:flex;align-items:center;justify-content:center;flex:none}
.maju-contact-host .academy-modal-head .close-button svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1;background:none;-webkit-mask:none;mask:none}
.maju-contact-host .academy-modal-head .close-button svg>*{display:initial}
.maju-contact-host .academy-modal-body{width:100%;max-width:100%;min-width:0;box-sizing:border-box;padding:16px 28px 28px;font:300 13px/25px 'Pretendard Home','Pretendard',sans-serif;letter-spacing:0}
.maju-contact-host .academy-modal-body [lang=ko]{font:300 13px/25px 'Pretendard Home','Pretendard',sans-serif;letter-spacing:0;color:#252824;word-break:keep-all;overflow-wrap:break-word}
.maju-contact-host .academy-modal-body [lang=en]{font:300 13px/25px 'tablet-gothic',Arial,sans-serif;letter-spacing:.1em;color:#252824}
.maju-contact-host .academy-modal-body p{margin:0}
.maju-contact-host .modal-address{display:grid;gap:4px;margin:0 0 16px;font-style:normal}
.maju-contact-host .modal-address a{color:inherit;text-decoration:none}
.maju-contact-host .modal-address a[href^="tel:"]{margin-bottom:40px}
.maju-contact-host .modal-address a:hover{text-decoration:underline;text-underline-offset:3px}
.maju-contact-host .visit-directions-intro{margin:16px 0}
.maju-contact-host .visit-directions-intro h3{display:flex;align-items:baseline;gap:10px;margin:0 0 4px;font-size:14px;font-weight:600;line-height:25px}
.maju-contact-host .visit-directions-intro h3 [lang=ko]{font-size:14px;font-weight:600}
.maju-contact-host .visit-directions-intro h3 .visit-directions-heading-en{font:600 14px/25px 'tablet-gothic',Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase}
.maju-contact-host .academy-location-map-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:20px 0;align-items:stretch}
.maju-contact-host .academy-location-map-grid .academy-map,.maju-contact-host .academy-naver-map{margin:0;min-width:0;aspect-ratio:13/9;overflow:hidden}
.maju-contact-host .academy-location-map-grid .academy-map svg{width:100%;height:100%;object-fit:contain}
.maju-contact-host .naver-map-card{display:flex;width:100%;height:100%;flex-direction:column;align-items:flex-start;justify-content:center;padding:clamp(20px,4vw,48px);background:#f4f5f2}
.maju-contact-host .naver-map-mark{display:grid;width:36px;height:36px;place-items:center;border-radius:50%;background:#03c75a;color:#fff;font:700 22px/1 Arial,sans-serif}
.maju-contact-host .naver-map-title{margin:20px 0 4px;font-size:18px;font-weight:600;line-height:27px}
.maju-contact-host .naver-map-address{margin:0 0 24px;color:#5e625d}
.maju-contact-host .naver-map-card>a{display:inline-flex;align-items:center;gap:8px;padding:12px 18px;background:#03c75a;color:#fff;text-decoration:none;font-weight:600;line-height:25px}
.maju-contact-host .naver-map-card>a:hover{background:#02b351}
.maju-contact-host .academy-map{margin:0}
.maju-contact-host .academy-map svg{display:block;width:100%;height:100%}
.maju-contact-host .academy-modal-body>h3{margin:0;font-size:13px;font-weight:300;line-height:25px}
.maju-contact-host .modal-transit-directions>.transit-direction-group{padding:16px 0;border-top:1px solid var(--contact-rule)}
.maju-contact-host .modal-transit-directions>.transit-direction-group>h4,
.maju-contact-host .transit-direction-pair>.transit-direction-group>h4{margin:0 0 4px;font-size:14px;font-weight:700;line-height:25px}
.maju-contact-host .transit-routes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:40px;align-items:start}
.maju-contact-host .transit-routes>section{padding:20px 0 24px}
.maju-contact-host .transit-routes h4{margin:0 0 4px;font-size:14px;line-height:25px}
.maju-contact-host .transit-routes>section>p{min-height:50px;margin:0 0 16px}
.maju-contact-host .transit-routes dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 20px;margin:0}
.maju-contact-host .transit-routes dt{font-weight:600}
.maju-contact-host .transit-routes dd{margin:0;padding-top:0}
.maju-contact-host .transit-routes dt:first-of-type{grid-column:1;grid-row:1}
.maju-contact-host .transit-routes dt:last-of-type{grid-column:2;grid-row:1}
.maju-contact-host .transit-routes dd:first-of-type{grid-column:1;grid-row:2}
.maju-contact-host .transit-routes dd:last-of-type{grid-column:2;grid-row:2}
.maju-contact-host .transit-direction-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:40px}
.maju-contact-host .transit-direction-pair>.transit-direction-group{padding:16px 0;border-top:1px solid var(--contact-rule)}
.maju-contact-host .transit-direction-pair .transit-routes{grid-template-columns:minmax(0,1fr)}
@media(max-width:760px){
 .maju-contact-host .academy-modal{width:calc(100% - 24px);max-width:none;max-height:calc(100dvh - 24px);scrollbar-gutter:auto}
 #maju-open .maju-contact-host .academy-modal{width:calc(100% - 24px);max-width:none}
 .maju-contact-host .academy-modal-head{padding:18px 16px;gap:12px}
 .maju-contact-host .academy-modal-head .close-button{margin-right:-12px}
 .maju-contact-host .academy-modal-body{padding:12px 16px 20px}
 .maju-contact-host .academy-location-map-grid,.maju-contact-host .transit-direction-pair{grid-template-columns:minmax(0,1fr)}
 .maju-contact-host .academy-location-map-grid{width:auto;margin:20px 0}
 .maju-contact-host .transit-routes{grid-template-columns:minmax(0,1fr)}
 .maju-contact-host .transit-routes>section{padding:16px 0;border-top:0}
 .maju-contact-host .transit-routes>section>p{min-height:0;margin:0 0 16px}
 .maju-contact-host .transit-routes dl{gap:4px 16px}
}

@media(max-width:1100px){
 .maju-contact-host .transit-direction-pair{border-bottom:1px solid var(--contact-rule)}
}

/* iPhone Safari can request a desktop-width layout; keep directions readable there. */
@media(pointer:coarse){
 .maju-contact-host .academy-modal{width:calc(100% - 24px);max-width:none;max-height:calc(100dvh - 24px);scrollbar-gutter:auto}
 #maju-open .maju-contact-host .academy-modal{width:calc(100% - 24px);max-width:none}
 .maju-contact-host .academy-location-map-grid{grid-template-columns:minmax(0,1fr);width:auto;margin:20px 0;gap:24px}
 .maju-contact-host .academy-location-map-grid .academy-naver-map{height:auto;aspect-ratio:auto;overflow:visible}
 .maju-contact-host .academy-location-map-grid .academy-map{height:auto;aspect-ratio:auto;overflow:visible}
 .maju-contact-host .naver-map-card{height:auto;min-height:0;padding:24px}
 .maju-contact-host .academy-location-map-grid .academy-map svg{display:block;width:100%;height:auto;object-fit:contain}
 .maju-contact-host .academy-map svg{display:block;width:100%;height:auto}
}

/* Match the approved Academy Contact dialog inside the homepage typography scope. */
#maju-open .maju-contact-host .modal-eyebrow{display:none}
#maju-open .maju-contact-host .academy-modal-head h2{margin:4px 0 0;font:300 30px/36px 'tablet-gothic',Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase}
#maju-open .maju-contact-host .academy-modal-body p{margin:0;font-weight:300}
#maju-open .maju-contact-host .academy-modal-body>h3{margin:0;font-size:13px;font-weight:300;line-height:25px}
#maju-open .maju-contact-host .visit-directions-intro h3{font-size:14px;font-weight:600;line-height:25px}
#maju-open .maju-contact-host .visit-directions-intro h3 [lang=ko]{font-size:14px;font-weight:600}
#maju-open .maju-contact-host .visit-directions-intro h3 .visit-directions-heading-en{font:600 14px/25px 'tablet-gothic',Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase}
#maju-open .maju-contact-host .naver-map-title{margin:20px 0 4px;font-size:18px;font-weight:600;line-height:27px}
#maju-open .maju-contact-host .naver-map-address{margin:0 0 24px;color:#5e625d}
#maju-open .maju-contact-host .naver-map-card>a{color:#fff;text-decoration:none;font-weight:600}
#maju-open .maju-contact-host .academy-modal-body a{color:inherit}
#maju-open .maju-contact-host .transit-routes h4{font-size:14px;font-weight:600;line-height:25px}
#maju-open .maju-contact-host .modal-transit-directions>.transit-direction-group>h4,
#maju-open .maju-contact-host .transit-direction-pair>.transit-direction-group>h4{font-size:14px;font-weight:700;line-height:25px}
#maju-open .maju-contact-host .academy-modal-body p{max-width:none;color:#252824;font-size:13px;line-height:25px;font-weight:300}
#maju-open .maju-contact-host .academy-modal-body p.naver-map-title{margin:20px 0 4px;color:#252824;font-size:18px;line-height:27px;font-weight:600}
#maju-open .maju-contact-host .academy-modal-body p.naver-map-address{margin:0 0 24px;color:#5e625d}
