@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800;900&family=Noto+Serif+KR:wght@500;600;700;900&display=swap');
/* The home's established emblem, ink and gold form one public identity. */
:root{--brand-paper:#fcfbf7;--brand-surface:#fffdf8;--brand-ink:#13232d;--brand-gold:#78571f;--brand-line:#d8cebc;--brand-radius:10px}
body,.ency-body{background:var(--brand-paper);color:var(--brand-ink);font-family:'Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',sans-serif}
main h1,main h2,.ency-intro h1,.ency-title h2,.ency-library h2{font-family:'Noto Serif KR',Georgia,serif}
.brand-header,.nasabu-home .brand-header{position:relative;z-index:5;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px 24px;width:min(1140px,calc(100% - 40px));max-width:1140px;margin:0 auto;padding:16px 0;border-bottom:1px solid var(--brand-line);background:var(--brand-paper)}
.brand-home{display:inline-flex;align-items:center;gap:10px;min-height:44px;text-decoration:none!important;font-size:22px;font-weight:800;line-height:1.4;white-space:nowrap;color:var(--brand-ink)!important;letter-spacing:-.04em}
.brand-home .brand-mark{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;flex:none;border:1px solid #b69551;border-radius:50%;font:24px Georgia,serif;color:var(--brand-gold)}
.brand-home .brand-sub{font-size:15px;margin-left:3px;font-weight:500}
.brand-location{margin:0;text-align:center;color:var(--brand-gold);font-size:16px;font-weight:700;line-height:1.5;word-break:keep-all;overflow-wrap:anywhere}
.brand-menu{grid-column:3;min-width:0}
.brand-menu>summary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid var(--brand-line);border-radius:var(--brand-radius);font-size:15px!important;font-weight:700;line-height:1.5!important;cursor:pointer;list-style:none;color:var(--brand-ink);background:var(--brand-surface);white-space:nowrap}
.brand-menu>summary::-webkit-details-marker{display:none}
.brand-menu>summary:after{content:'＋';font-size:17px;color:var(--brand-gold)}
.brand-menu[open]>summary:after{content:'−'}
.brand-menu nav{position:absolute;top:calc(100% - 1px);right:0;width:min(480px,100%);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:12px;border:1px solid var(--brand-line);border-radius:12px;background:var(--brand-surface);box-shadow:0 12px 28px #13232d18;z-index:10}
.brand-menu nav a{display:flex;align-items:center;min-width:0;min-height:44px;padding:8px 10px;border-radius:7px;color:var(--brand-ink);font-size:15px!important;font-weight:600;line-height:1.5!important;text-decoration:none;white-space:normal;word-break:keep-all;overflow-wrap:anywhere}
.brand-menu nav a:hover,.brand-menu nav a[aria-current=page]{background:#f1eadb;color:var(--brand-gold)}
.brand-header a:focus-visible,.brand-header summary:focus-visible{outline:3px solid #b59147;outline-offset:3px}
/* Brief introduction; search and types remain in the first reading screen. */
.ency-intro{padding-block:22px 16px;margin-bottom:16px;display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.ency-intro .ency-kicker{margin:0;font-size:14px;letter-spacing:.06em;color:var(--brand-gold)}
.ency-intro h1{margin:0;font-size:32px;line-height:1.35;letter-spacing:-.04em}
.ency-intro .guide-line{margin:0!important;line-height:1.5!important}
.ency-intro .guide-avatar{width:40px;height:40px}
.ency-intro .guide-message{line-height:1.5;word-break:keep-all;overflow-wrap:break-word}
.ency-intro .ency-context{margin:0!important;max-width:none;font-size:14px!important;line-height:1.5!important;color:#46535d}
.ency-search-label{font-size:14px;color:var(--brand-gold);margin-bottom:5px}
#ency-search{font-size:16px;min-height:46px;background:var(--brand-surface);border-radius:var(--brand-radius)}
#search-results:empty{display:none}
.ency-types{margin:12px 0 0;gap:6px}
.ency-types button{border-radius:var(--brand-radius);background:var(--brand-surface);font-size:16px;min-height:44px}
.ency-topics{margin-top:12px}
.ency-topics button{border-radius:8px;min-height:44px}
.ency-reading .ency-tradition{font-size:14px;letter-spacing:.02em}
.ency-reading .reading-copy{line-height:1.65!important}
.ency-title,.ency-taste,.ency-library details{border-color:var(--brand-line)}
.ency-bottom a{display:inline-flex;align-items:center;min-height:44px;line-height:1.5}
.ency-footer{font-family:inherit;color:#46535d;line-height:1.65}
/* Equal entrance tracks retain the original portraits and meaningful words. */
.nasabu-home .home-entrances{align-items:stretch}
.nasabu-home .home-entrances a{min-width:0;border-radius:var(--brand-radius)}
.home-entrances .entrance-label{word-break:keep-all;overflow-wrap:normal}
.home-entrances .entrance-word{white-space:nowrap}
.info-main,.ency-layout,.ux-room{min-width:0}
@media(max-width:760px){
 .brand-header,.nasabu-home .brand-header{width:calc(100% - 36px);padding:10px 0;gap:6px 12px;grid-template-columns:minmax(0,1fr) auto}
 .brand-home{font-size:20px;gap:8px}
 .brand-home .brand-mark{width:34px;height:34px;font-size:22px}
 .brand-home .brand-sub{font-size:14px}
 .brand-menu{grid-column:2;grid-row:1}
 .brand-location{grid-column:1/-1;grid-row:2;text-align:left;font-size:14px;line-height:1.5;padding-left:42px}
 .brand-menu>summary{font-size:14px!important;padding:8px 10px}
 .brand-menu nav{width:100%;padding:8px;gap:3px}
 .brand-menu nav a{font-size:14px!important;padding:8px}
 .ency-intro{padding-block:14px 12px;margin-bottom:12px;gap:6px}
 .ency-intro h1{font-size:28px;line-height:1.35}
 .ency-intro .ency-kicker{font-size:13px}
 .ency-intro .guide-line{font-size:15px!important}
 .ency-intro .guide-avatar{width:36px;height:36px}
 .ency-intro .guide-message br{display:none}
 .ency-intro .ency-context{font-size:14px!important}
 .ency-layout{padding-inline:18px}
 .ency-topics button{font-size:15px!important;padding:6px 3px}
 .nasabu-home .home-entrances{gap:7px;padding-top:12px}
 .nasabu-home .home-entrances a{grid-template-rows:34px 48px minmax(40px,auto);gap:6px;padding:10px 5px;align-content:start}
 .home-entrances .guide-avatar{width:34px;height:34px}
 .home-entrances .entrance-label{font-size:16px;line-height:24px;letter-spacing:-.04em}
 .home-entrances small{font-size:14px!important;line-height:20px!important;letter-spacing:-.04em;align-self:start}
 .home-entrances .entrance-word{white-space:nowrap}
 .info-main{padding-top:20px}
}
@media(max-width:374px){.home-entrances .entrance-label{font-size:15px}.brand-home{font-size:19px}.brand-home .brand-sub{font-size:13px}}
@media(prefers-reduced-motion:reduce){.brand-header *{transition:none!important}}
/* Home entrances share ivory; only their service accents differ. */
.nasabu-home .home-entrances .entrance-saju{--entrance-accent:#916a27;--entrance-pressed:#f3e8ce}
.nasabu-home .home-entrances .entrance-ency{--entrance-accent:#39756e;--entrance-pressed:#e0eeea}
.nasabu-home .home-entrances .entrance-play{--entrance-accent:#182e43;--entrance-pressed:#e2e8ef}
.nasabu-home .home-entrances a{background:#fffdf5;color:var(--entrance-accent);border-color:var(--entrance-accent);transition:background-color .12s ease,box-shadow .12s ease,transform .12s ease}
.nasabu-home .home-entrances a .entrance-label{color:var(--entrance-accent)}
.nasabu-home .home-entrances a small{color:#505851}
.nasabu-home .home-entrances a .entrance-status{color:var(--entrance-accent)}
.nasabu-home .home-entrances a:is(:active,.nasabu-pressed){background-color:var(--entrance-pressed)!important;color:var(--entrance-accent)!important;box-shadow:inset 0 0 0 1px var(--entrance-accent)!important}
.nasabu-home .home-entrances a:focus-visible{outline:2px solid var(--entrance-accent);outline-offset:3px}
@media(prefers-reduced-motion:reduce){.nasabu-home .home-entrances a{transition:none!important}}

/* Keep the three entrances equal in size; give the saju guide first visual priority. */
.nasabu-home .home-entrances .entrance-saju{border-width:2px;box-shadow:0 2px 8px #916a271a}
.nasabu-home .entrance-saju .entrance-label{font-weight:900}
.home-entrances .entrance-status span{white-space:nowrap}
/* Flexible text must be allowed to shrink and wrap without hiding any explanation. */
.ency-title>div:last-child{min-width:0;flex:1}
.ency-layout :is(p,li,dd,dt,summary,a){word-break:keep-all;overflow-wrap:anywhere}
.ency-reading summary:after,.ency-library summary:after{flex-shrink:0}
.ency-bottom{flex-wrap:wrap}
.saju-guide .saju-details{margin-top:12px;border-top:1px solid var(--brand-line)}
.saju-guide .saju-details>summary{min-height:48px;padding:12px 0;font-size:18px;font-weight:700;color:var(--brand-gold);cursor:pointer;word-break:keep-all;overflow-wrap:anywhere}
.saju-guide .saju-details>section{margin-top:0}
@media(max-width:760px){.nasabu-home .home-entrances a{grid-template-columns:minmax(0,1fr)}.home-entrances .entrance-status span{display:block}.nasabu-home .home-entrances .entrance-saju{padding:9px 4px}}
