/* Preview content retains the existing page design. Only edge softness is shared. */
body.keri-subpage:not(.keri-preserve-content){font-family:PreviewPretendard,'Malgun Gothic',sans-serif;background:#fff}
body.keri-subpage:not(.keri-preserve-content) #main :is(.panel,.card,.publication-card,.course-card,.network-path,.b2b-contact-summary){border-radius:16px}
/* Firefox fieldsets otherwise retain a min-content width on narrow screens. */
body.keri-subpage:not(.keri-preserve-content) #main fieldset{min-inline-size:0;max-inline-size:100%}
body.keri-subpage:not(.keri-preserve-content) #main>:is(.subhero,.network-hero,.b2b-contact-hero,.calendar-hero,.card-news-hero,.aiedu-hero){border-radius:20px;overflow:hidden}
/* No second generated masthead or decorative English watermark over an existing page hero. */
body.keri-subpage:not(.keri-preserve-content):not(.has-subhero) .institute-generated-masthead{display:none}
body.keri-subpage:not(.keri-preserve-content) #main .subhero::before,body.keri-subpage:not(.keri-preserve-content) #main .subhero::after,body.keri-subpage:not(.keri-preserve-content) #main .subhero .container::after{content:none!important;display:none!important}
body.keri-subpage:not(.keri-preserve-content) .subhero-identity{display:none!important}
body.keri-subpage:not(.keri-preserve-content) .catalog-external-visual>span{display:none}
@media(max-width:767px){body.keri-subpage:not(.keri-preserve-content) #main>:is(.subhero,.network-hero,.b2b-contact-hero,.calendar-hero,.card-news-hero,.aiedu-hero){border-radius:16px}}

@media(prefers-reduced-motion:no-preference){
 body.keri-subpage:not(.keri-preserve-content) #main>:is(.subhero,.network-hero,.b2b-contact-hero,.calendar-hero,.card-news-hero,.aiedu-hero){animation:preview-intro .42s ease-out both}
 @keyframes preview-intro{from{opacity:.2;transform:translateY(8px)}to{opacity:1;transform:none}}
}
@media(hover:hover) and (pointer:fine){
 body.keri-subpage:not(.keri-preserve-content) #main :is(.panel,.course-card,.publication-card){transition:border-color .18s,box-shadow .18s}
 body.keri-subpage:not(.keri-preserve-content) #main :is(.panel,.course-card,.publication-card):hover{border-color:#a7b9d2;box-shadow:0 6px 20px #1828330b}
}
@media(prefers-reduced-motion:reduce){body.keri-subpage:not(.keri-preserve-content) #main :is(.panel,.course-card,.publication-card){transition:none}}

/* Shared content rhythm. Protected recruitment landings keep their own bodies. */
body.keri-subpage:not(.keri-preserve-content){--subpage-ink:#182f41;--subpage-muted:#536879;--subpage-line:#d9e3ec;--subpage-accent:#245bb5}
body.keri-subpage:not(.keri-preserve-content) #main{color:var(--subpage-ink);line-height:1.8}
body.keri-subpage:not(.keri-preserve-content) #main :is(.section,.b2b-section,.network-section){padding-block:72px}
body.keri-subpage:not(.keri-preserve-content) #main :is(.content,.layout>*,.panel,.card,.b2b-card){min-width:0}
body.keri-subpage:not(.keri-preserve-content) #main :is(h2,h3){letter-spacing:-.035em;line-height:1.45;word-break:keep-all;overflow-wrap:anywhere}
body.keri-subpage:not(.keri-preserve-content) #main :is(.head,.section-title,.b2b-section-head,.network-section-head){margin-bottom:30px}
body.keri-subpage:not(.keri-preserve-content) #main :is(.head,.section-title,.b2b-section-head,.network-section-head) h2{font-size:clamp(25px,2.5vw,34px)}
body.keri-subpage:not(.keri-preserve-content) #main :is(.panel,.card,.publication-card,.course-card,.b2b-card,.network-path,.b2b-contact-summary){border-radius:20px;border-color:var(--subpage-line);box-shadow:none}
body.keri-subpage:not(.keri-preserve-content) #main :is(.btn,.b2b-button,.aiedu-button){box-sizing:border-box;min-height:48px;max-width:100%;padding:12px 22px;border-radius:999px;font-size:15px;font-weight:700;line-height:1.5;text-align:center;white-space:normal;text-decoration:none;box-shadow:none;transform:none}
body.keri-subpage:not(.keri-preserve-content) #main .btn.primary{background:var(--subpage-accent);border-color:var(--subpage-accent);color:#fff}
body.keri-subpage:not(.keri-preserve-content) #main .btn.outline{background:#fff;border:1px solid #8b9eaf;color:#193d59;backdrop-filter:none}
body.keri-subpage:not(.keri-preserve-content) #main :is(.btn,.b2b-button,.aiedu-button):hover{box-shadow:none;transform:none}
body.keri-subpage:not(.keri-preserve-content) #main :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){box-sizing:border-box;min-width:0;max-width:100%;border-radius:10px;font-size:16px;color:#182f41;border-color:#91a5b8}
body.keri-subpage:not(.keri-preserve-content) #main :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select){min-height:48px}
body.keri-subpage:not(.keri-preserve-content) #main :is(input,textarea)::placeholder{color:#607587;opacity:1}
body.keri-subpage:not(.keri-preserve-content) #main :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #245bb5;outline-offset:4px}
body.keri-subpage:not(.keri-preserve-content) #main :is(.table,.archive-toolbar){border-color:var(--subpage-line)}
body.keri-subpage:not(.keri-preserve-content) #main .table :is(th,td){padding:18px 20px;line-height:1.75;overflow-wrap:anywhere}
body.keri-subpage:not(.keri-preserve-content) #main .table th{background:#f3f6fa;color:#29475f}
body.keri-subpage:not(.keri-preserve-content) #main .side{border-radius:18px;border:1px solid var(--subpage-line);background:#f7f9fc;padding:22px}
body.keri-subpage:not(.keri-preserve-content) #main .side a{min-height:44px;display:flex;align-items:center;border-radius:9px;padding:10px 12px}
body.keri-subpage:not(.keri-preserve-content) #main .side a[aria-current=page]{background:#e7effa;color:#184b91}
body.keri-subpage:not(.keri-preserve-content) #main .b2b-contact-points>span{border-radius:999px;padding:6px 12px;background:#edf3fb;color:#214b80;font-size:13px}
@media(max-width:767px){
 body.keri-subpage:not(.keri-preserve-content) #main :is(.section,.b2b-section,.network-section){padding-block:44px}
 body.keri-subpage:not(.keri-preserve-content) #main :is(.head,.section-title,.b2b-section-head,.network-section-head){margin-bottom:24px}
 body.keri-subpage:not(.keri-preserve-content) #main :is(.panel,.card,.b2b-card){border-radius:16px}
 body.keri-subpage:not(.keri-preserve-content) #main .table :is(th,td){padding:14px 12px;font-size:14px}
 body.keri-subpage:not(.keri-preserve-content) #main .side{padding:14px}
}
