/* One shared, bilingual navigation for the main site, Guide and Guestbook. */
:root{--site-header-height:120px;--nav-gold:#99702b;--nav-active:#f3ead5;--nav-text:#24211c;--nav-secondary:#82745d;--nav-bg:#fffefa;--nav-border:#e4dac7}
html[data-theme=dark]{--nav-gold:#e0bf7b;--nav-active:#3c311e;--nav-text:#f2ede4;--nav-secondary:#bfb29a;--nav-bg:#171614;--nav-border:#49402f}
html{scroll-padding-top:calc(var(--site-header-height) + 24px)}
body{min-width:280px}
body header.unified-header{position:sticky;top:0;z-index:50;display:grid;grid-template-columns:140px minmax(0,1fr) auto;align-items:center;gap:22px;max-width:1440px;width:100%;height:auto;min-height:112px;margin:0 auto;padding:20px clamp(20px,3vw,48px);background:var(--nav-bg);border-bottom:1px solid var(--nav-border);box-shadow:0 5px 22px #34261004}
body header.site-header.unified-header{grid-template-columns:140px minmax(0,1fr)}
body header.unified-header>a{margin:0!important;justify-self:start}
body header.unified-header .brand{font-size:26px}
body header.unified-header .brand>span{font-size:7px;letter-spacing:1px}
body header.unified-header nav.site-navigation{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:stretch;gap:7px;flex:none;order:initial;width:100%;margin:0;padding:0;min-width:0}
body header.unified-header nav.site-navigation a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:64px;padding:10px 5px;border:1px solid transparent;border-radius:7px;color:var(--nav-text);background:transparent;text-align:center;white-space:normal;font-weight:500;text-decoration:none;line-height:1.25;transition:background .18s,color .18s,border-color .18s}
body header.unified-header nav.site-navigation a>.nav-en{display:block;margin:0;color:inherit;font-family:'DM Sans','Noto Sans KR',system-ui,sans-serif;font-size:14px;line-height:1.25;letter-spacing:-.25px;font-weight:600;overflow-wrap:normal}
body header.unified-header nav.site-navigation a>.nav-ko{display:block;margin:0;color:var(--nav-secondary);font-size:12px;line-height:1.4;letter-spacing:-.2px;font-weight:400}
body header.unified-header nav.site-navigation a:hover{background:var(--nav-active);color:var(--nav-gold)}
body header.unified-header nav.site-navigation a[aria-current]{background:var(--nav-active);color:var(--nav-gold);border-color:var(--nav-border);box-shadow:inset 0 -3px 0 #b18b43}
body header.unified-header nav.site-navigation a[aria-current]>.nav-ko{color:var(--nav-gold)}
body header.unified-header .theme-control{margin:0;order:initial;justify-self:end;display:flex;flex-direction:column;align-items:flex-start;gap:5px;font-size:10px}
body header.unified-header .theme-control>span{display:block;font-size:10px}
body header.unified-header .theme-control select{font-size:11px;max-width:125px;min-height:36px}
body main,body footer{width:100%;max-width:1240px}
body[data-site-page=guide] main,body[data-site-page=guestbook] main,body[data-site-page=guide] footer,body[data-site-page=guestbook] footer{max-width:1120px}
body main section{min-width:0;scroll-margin-top:0}
body img,body video{max-width:100%;height:auto}
body .section-heading{gap:24px}
@media(min-width:1600px){body main,body footer{max-width:1380px}.hero{column-gap:70px}.hero-copy h1{font-size:70px}.profile-editorial{padding:35px 40px}body[data-site-page=guide] main,body[data-site-page=guestbook] main{max-width:1200px}}
@media(max-width:1190px){body header.unified-header,body header.site-header.unified-header{grid-template-columns:1fr auto;gap:15px;padding:17px 30px;min-height:0}body header.unified-header nav.site-navigation{grid-column:1/-1;grid-row:2;gap:8px}body header.unified-header .theme-control{grid-column:2;grid-row:1;flex-direction:row;align-items:center}body header.unified-header nav.site-navigation a{min-height:61px;padding:9px 5px}body header.unified-header nav.site-navigation a>.nav-en{font-size:15px}body header.unified-header nav.site-navigation a>.nav-ko{font-size:12px}.hero{column-gap:30px}}
@media(max-width:760px){body header.unified-header,body header.site-header.unified-header{position:relative;padding:18px 22px;gap:17px}body header.unified-header nav.site-navigation{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}body header.unified-header nav.site-navigation a{min-height:64px;padding:9px 4px}body header.unified-header nav.site-navigation a>.nav-en{font-size:13px}body header.unified-header nav.site-navigation a>.nav-ko{font-size:11px}body header.unified-header .theme-control{flex-direction:column;align-items:flex-end}body header.unified-header .theme-control>span{display:none}html{scroll-padding-top:22px}body .section-heading{flex-wrap:wrap;gap:15px}.hero-copy h1{font-size:clamp(32px,7.5vw,52px)}.hero{grid-template-columns:1fr;padding-left:22px;padding-right:22px}.profile-editorial{width:100%}.hero-bottom{grid-column:1}.credentials{gap:28px}.calendar-layout{grid-template-columns:1fr}.project-grid{grid-template-columns:1fr}.about{grid-template-columns:1fr}.about>.section-label{margin-bottom:20px}.mindset{grid-template-columns:1fr}.definition{flex-wrap:wrap}.hero-bottom{flex-wrap:wrap;gap:12px}}
@media(max-width:360px){body header.unified-header,body header.site-header.unified-header{padding:16px}body header.unified-header nav.site-navigation{grid-template-columns:repeat(3,minmax(0,1fr))}body header.unified-header nav.site-navigation a>.nav-en{font-size:12px}.theme-control select{max-width:110px!important}.hero-copy h1{font-size:30px}.hero-bottom{letter-spacing:0}}
@media(prefers-reduced-motion:reduce){body header.unified-header nav.site-navigation a{transition:none}}

/* Text-only navigation: a stronger current item, quieter surrounding items. */
:root{--nav-quiet:#858079;--nav-quiet-ko:#a39b8e}
html[data-theme=dark]{--nav-quiet:#aaa397;--nav-quiet-ko:#958d80}
body header.unified-header nav.site-navigation a{background:transparent;border-color:transparent;border-radius:0;box-shadow:none;color:var(--nav-quiet);transition:color .2s}
body header.unified-header nav.site-navigation a>.nav-en{font-weight:500;transform:scale(1);transition:transform .25s,color .2s;transform-origin:center}
body header.unified-header nav.site-navigation a>.nav-ko{color:var(--nav-quiet-ko);font-weight:400;transform:scale(1);transition:transform .25s,color .2s;transform-origin:center}
body header.unified-header nav.site-navigation a:hover{background:transparent;border-color:transparent;box-shadow:none;color:var(--nav-text)}
body header.unified-header nav.site-navigation a:hover>.nav-ko{color:var(--nav-secondary)}
body header.unified-header nav.site-navigation a[aria-current]{background:transparent;border-color:transparent;box-shadow:none;color:var(--nav-text);font-weight:700}
body header.unified-header nav.site-navigation a[aria-current]>.nav-en{font-weight:700;transform:scale(1.07);color:var(--nav-text)}
body header.unified-header nav.site-navigation a[aria-current]>.nav-ko{font-weight:600;transform:scale(1.04);color:var(--nav-gold)}
@media(prefers-reduced-motion:reduce){body header.unified-header nav.site-navigation a>.nav-en,body header.unified-header nav.site-navigation a>.nav-ko{transition:none}}

/* Anchor fallback; JS aligns the actual section content below the header. */
html{scroll-padding-top:var(--site-header-height)}@media(max-width:760px){html{scroll-padding-top:0}}

/* Dedicated pages begin directly beneath the shared header. */
body[data-site-page=experience] main>section:first-child,body[data-site-page=teaching] main>section:first-child,body[data-site-page=calendar] main>section:first-child,body[data-site-page=projects] main>section:first-child{padding-top:32px;margin-top:0}body[data-site-page=experience] main>section:first-child>.section-label{padding-top:0}body[data-site-page=teaching] main>.process{border-top:0;border-radius:0 0 5px 5px}

/* Numbered pages use the same gold star beside the brand name. */
body .brand{display:inline-flex;flex-direction:column;align-items:center;line-height:1.2;gap:6px}
body .brand>.subpage-wordmark,body header.unified-header .brand>.subpage-wordmark{position:relative;display:block;font-size:26px;font-weight:700;letter-spacing:1px;color:var(--nav-text);white-space:nowrap}
body .brand .subpage-star{position:absolute;left:100%;top:50%;transform:translateY(-50%);font-size:25px;line-height:1;color:var(--nav-gold);margin-left:7px;letter-spacing:0}
body .brand>.subpage-wordmark+span,body header.unified-header .brand>.subpage-wordmark+span{display:block;font-size:6px;letter-spacing:1.1px;margin:0;text-align:center;color:var(--nav-gold)}
body footer .brand>.subpage-wordmark{font-size:25px}
