/* Canonical header, footer and floating styles, loaded after page styles.
   Keep page palettes inside #main-content; these components match index.html. */
:is(.dewford-header,.dewford-drawer,.dewford-footer,.dewford-floating-links,.dewford-scroll-top) {
 --dewford-purple:#52196d;
 --id-color:#52196d;
 --dewford-purple-dark:#1c1c1c;
 --id-color-dark:#1c1c1c;
 --dewford-orange:#a7a7a7;
 --sub-color:#a7a7a7;
 --text-color:#1c1c1c;
 --headings-color:#1c1c1c;
}
html body:is(.dewford-home,.dewford-subpage) .dewford-header {background:var(--id-color);color:#fff;}
html body:is(.dewford-home,.dewford-subpage) .dewford-header:not(.is-scrolled) {background:transparent;}
html body:is(.dewford-home,.dewford-subpage) .dewford-header:is(.is-scrolled,:hover,:focus-within) {background:var(--id-color);}
html body:is(.dewford-home,.dewford-subpage) .dewford-header .dewford-navigation > li > a {color:#fff;}
html body:is(.dewford-home,.dewford-subpage) .dewford-header .sub-menu {color:#2b2b2b;}
html body:is(.dewford-home,.dewford-subpage) .dewford-header .sub-menu a {color:inherit;}
html body:is(.dewford-home,.dewford-subpage) .dewford-header .dewford-navigation > li > a:is(:hover,:focus-visible) {color:#f5a100!important;}
html body:is(.dewford-home,.dewford-subpage) .dewford-header .dewford-navigation > li > a:is(:hover,:focus-visible) * {color:inherit!important;}
html body:is(.dewford-home,.dewford-subpage) .dewford-header .sub-menu a:is(:hover,:focus-visible) {background:var(--id-color);color:#fff!important;}
html body:is(.dewford-home,.dewford-subpage) .dewford-header .sub-menu a:is(:hover,:focus-visible) * {color:inherit!important;}
html body:is(.dewford-home,.dewford-subpage) .dewford-header .dewford-header-talk {background:transparent!important;--button-surface:transparent;}
html body:is(.dewford-home,.dewford-subpage) .dewford-header .dewford-header-talk > span {background:#f5a100;color:#fff;}
html body:is(.dewford-home,.dewford-subpage) :is(.dewford-header,.dewford-drawer) button,
html body:is(.dewford-home,.dewford-subpage) .dewford-header .dewford-header-talk {transition:color .25s,border-color .25s;}
html body:is(.dewford-home,.dewford-subpage) .dewford-drawer {background:var(--id-color);color:#fff;}
html body:is(.dewford-home,.dewford-subpage) .dewford-drawer::backdrop {background:var(--id-color);}
html body:is(.dewford-home,.dewford-subpage) .dewford-drawer .dewford-dialog-submenu a {transition:background-color .2s;}
html body:is(.dewford-home,.dewford-subpage) .dewford-drawer .dewford-dialog-submenu a:is(:hover,:focus-visible) {background:rgb(255 255 255 / 16%);color:#fff!important;}
html body:is(.dewford-home,.dewford-subpage) .page-wrapper .dewford-drawer .dewford-dialog-row > :is(a,button):is(:hover,:focus-visible) {color:#f5a100!important;}
html body:is(.dewford-home,.dewford-subpage) .dewford-footer {--sub-color:#f5a100;}
html body:is(.dewford-home,.dewford-subpage) .dewford-footer .footer-column .widget-title .dewford-footer-mobile-link {font-weight:700!important;}
html body:is(.dewford-home,.dewford-subpage) .dewford-footer .theme-btn :is(.btn-title,.dewford-korean-text,.icon) {border-color:#fff;}
html body:is(.dewford-home,.dewford-subpage) .dewford-footer .theme-btn .icon {transition:all .3s;}
html body:is(.dewford-home,.dewford-subpage) .dewford-floating-links {color:#1c1c1c;}
html body:is(.dewford-home,.dewford-subpage) .dewford-floating-links a {transition:color .25s,border-color .25s;}
html body:is(.dewford-home,.dewford-subpage) .dewford-floating-links a svg {transition:transform .2s;}
html body:is(.dewford-home,.dewford-subpage) .dewford-scroll-top {background:#000!important;--button-surface:#000;color:#fff;transition:color .25s,border-color .25s;}
@media(prefers-reduced-motion:reduce){
 html body:is(.dewford-home,.dewford-subpage) :is(.dewford-header,.dewford-drawer) button,
 html body:is(.dewford-home,.dewford-subpage) :is(.dewford-header-talk,.dewford-dialog-submenu a,.dewford-floating-links a,.dewford-floating-links a svg,.dewford-scroll-top) {transition:none;}
}
@media(max-width:767px){
 html body:is(.dewford-home,.dewford-subpage) .dewford-drawer {padding:90px 24px 48px;}
 html body:is(.dewford-home,.dewford-subpage) .dewford-dialog-layout {gap:20px;}
 html body:is(.dewford-home,.dewford-subpage) .dewford-dialog-row {gap:16px;}
 html body:is(.dewford-home,.dewford-subpage) .dewford-dialog-submenu {padding:0 20px 14px 0;}
 html body:is(.dewford-home,.dewford-subpage) .page-wrapper .dewford-footer .dewford-footer-contact-row .info .dewford-footer-contact-value {font-weight:500!important;}
}

/* Keep the floating contact controls clear of footer registration and tuition links. */
html body:is(.dewford-home,.dewford-subpage){--dewford-floating-bottom:max(120px,calc(env(safe-area-inset-bottom) + 96px));}
html body:is(.dewford-home,.dewford-subpage) .dewford-naver-floating{bottom:var(--dewford-floating-bottom)!important;}
html body:is(.dewford-home,.dewford-subpage) .dewford-kakao-floating{bottom:calc(var(--dewford-floating-bottom) + 58px)!important;}
html body:is(.dewford-home,.dewford-subpage) .dewford-scroll-top{bottom:calc(var(--dewford-floating-bottom) + 116px)!important;}

/* Administrator access beside the shared footer copyright. */
html body:is(.dewford-home,.dewford-subpage) .dewford-footer .copyright{display:flex;align-items:center;gap:10px;}
html body:is(.dewford-home,.dewford-subpage) .dewford-footer a.dewford-footer-login{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;color:inherit;cursor:pointer;}
html body:is(.dewford-home,.dewford-subpage) .dewford-footer a.dewford-footer-login:focus-visible{outline:2px solid currentColor;outline-offset:3px;}

/* Mobile subpage content follows the Vision & Mission type scale. */
@media(max-width:767.98px){
 html body.dewford-subpage #main-content.dewford-subpage-content > section:not(.dewford-page-title) h2.title {font-size:32px!important;line-height:1.3!important;}
 html body.dewford-subpage #main-content.dewford-subpage-content > section:not(.dewford-page-title) :is(h3.title,h4.title,h5.title,.dewford-icon-copy-title,.project-list-item > .title) {font-size:clamp(18px,4.8vw,24px)!important;line-height:1.4!important;}
 html body.dewford-subpage #main-content.dewford-subpage-content > section:not(.dewford-page-title) :is(.text,p,.dewford-icon-copy-text,.dewford-why-card-description,.dewford-program-description) {font-size:var(--dewford-mobile-body,clamp(16px,4vw,18px))!important;}
 html body.dewford-subpage #main-content.dewford-subpage-content > section:not(.dewford-page-title) .sub-title {font-size:var(--dewford-mobile-body,clamp(16px,4vw,18px))!important;}
}
