/* Shared navigation only: page layouts and Bootstrap's focus trap stay unchanged. */
.site-header{height:55px;padding:0;background:#fff}
.site-header .site-topbar{height:55px;min-height:55px;padding:0;background:#fff;border-bottom:1px solid var(--bar-border);box-shadow:0 2px 10px #1c355610;flex-wrap:nowrap;color:var(--bar-text)}
.site-topbar>.container-fluid,.site-topbar>.container-fluid>.row{height:100%}
.site-header .site-brand-column{display:flex;align-items:center;gap:24px;min-width:0}
.site-header .site-brand{gap:10px;flex-shrink:0;width:auto;color:var(--bar-text);line-height:1;text-decoration:none}
.site-brand-mark{width:34px;height:38px;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:#f3f7fd;border:1px solid #dbe5f2;border-radius:10px}
.site-header .site-brand-logo{width:auto;height:27px;object-fit:contain}
.site-header .site-brand-name{display:flex;flex-direction:column;gap:4px;white-space:nowrap;overflow:visible;text-overflow:clip;min-width:0}
.site-brand-name small{font-size:8px;font-weight:500;color:var(--bar-muted);letter-spacing:.04em}.site-brand-name strong{font-size:18px;font-weight:750;letter-spacing:-.045em;color:var(--bar-text)}
.site-topbar-location{display:flex;align-items:center;gap:10px;padding-left:24px;border-left:1px solid var(--bar-border);min-width:0;line-height:1.4}.site-topbar-location[hidden],.site-topbar-location [hidden]{display:none!important}
.site-topbar-location span{font-size:11px;color:var(--bar-muted);white-space:nowrap}.site-topbar-location span::after{content:'/';margin-left:10px;color:var(--bar-border)}.site-topbar-location strong{font-size:12px;color:var(--bar-text);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.site-topbar-actions{display:flex;align-items:center;gap:17px;flex-shrink:0}
.site-topbar-user{display:flex;align-items:center;gap:8px;min-width:0;max-width:190px;text-decoration:none;border-radius:8px}.site-topbar-user-icon{display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;border:1px solid var(--bar-border);border-radius:50%;background:var(--bar-control);color:var(--bar-text)}
.site-topbar-user-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}.site-topbar-user>div{min-width:0;display:flex;flex-direction:column;gap:2px}.site-topbar-user strong,.site-topbar-user small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px;line-height:1.25}.site-topbar-user strong{font-size:11px;font-weight:600;color:var(--bar-text)}.site-topbar-user small{font-size:9px;color:var(--bar-muted)}
.site-header .site-topbar-menu{height:36px;min-width:44px;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 12px;border:1px solid var(--bar-border);border-radius:10px;background:var(--bar-control);color:var(--bar-text);box-shadow:none;line-height:1;font-size:11px;font-weight:600;white-space:nowrap;transition:background .15s,border-color .15s}
.site-topbar-menu svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}.site-header .site-topbar-menu:hover{background:var(--bar-hover);border-color:var(--bar-border)}.site-header .site-topbar-menu:active{background:var(--bar-hover)}
.site-header :is(.site-topbar-menu,.site-brand):focus-visible{outline:3px solid var(--bar-focus);outline-offset:2px}
@media(max-width:991px){.site-topbar-location,.site-topbar-user{display:none}.site-topbar-actions{gap:12px}}
@media(max-width:480px){.site-header .site-brand-column{padding-left:12px!important;padding-right:8px!important}.site-topbar-actions{padding-right:10px!important}.site-header .site-brand{gap:8px}.site-header .site-topbar-menu{height:40px;padding:0 11px;gap:7px}.site-brand-name strong{font-size:17px}}
@media(max-width:350px){.site-topbar-menu span{display:none}.site-header .site-topbar-menu{width:44px;padding:0}}
@media(prefers-reduced-motion:reduce){.site-header .site-topbar-menu{transition:none}}
#offcanvasDarkNavbar.site-menu{--bs-offcanvas-width:392px;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:22px 0 0 22px;background:#fff;color:var(--cms-ink, #172944);text-align:left;box-shadow:-14px 0 60px #17294426;font-family:inherit;font-size:14px}
.site-menu *{box-sizing:border-box}.site-menu [hidden]{display:none!important}
.site-menu svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.site-menu .site-menu-heading{padding:27px 24px 20px;align-items:center;flex-shrink:0}
.site-menu-heading p{margin:0 0 5px;color:var(--cms-muted, #52657d);letter-spacing:.15em;font-size:9px;font-weight:700}
.site-menu-heading h2{margin:0;color:var(--cms-ink, #172944);font-size:25px;font-weight:750;letter-spacing:-.05em;line-height:1.25}
.site-menu-close{width:40px;height:40px;margin-left:auto;border:1px solid var(--cms-line, #dce4ef);border-radius:12px;background:var(--cms-wash, #f4f7fb);color:var(--cms-muted, #52657d);display:grid;place-items:center;flex-shrink:0;padding:0}
.site-menu-close:hover{background:var(--cms-selected, #e5effb);color:var(--cms-brand, #1b3c66)}.site-menu-close:active{background:var(--cms-selected, #e5effb)}
.site-menu-profile{display:flex;align-items:center;gap:12px;margin:0 20px 17px;padding:15px 13px;border:1px solid var(--cms-line, #dce4ef);border-radius:15px;background:linear-gradient(120deg,var(--cms-wash, #f4f7fb),var(--cms-wash, #f4f7fb));flex-shrink:0;min-width:0}
.site-menu-avatar{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border:1px solid var(--cms-line, #dce4ef);border-radius:13px;background:var(--cms-selected, #e5effb);color:var(--cms-brand, #1b3c66);overflow:hidden}.site-menu-avatar svg{width:27px;height:27px}
.site-menu-profile>div{min-width:0;flex:1}.site-menu-profile strong{display:block;font-size:15px;line-height:1.4;overflow-wrap:anywhere}.site-menu-honorific{font-size:12px;font-weight:400;margin-left:3px;color:var(--cms-muted, #52657d)}.site-menu-profile p{margin:4px 0 0;color:var(--cms-muted, #52657d);font-size:11px;overflow-wrap:anywhere}
a.site-menu-profile{color:inherit;text-decoration:none}a.site-menu-profile:hover{border-color:var(--cms-line-strong, #a9bed6);background:var(--cms-selected, #e5effb)}.site-topbar-user:hover{background:var(--bar-hover)}.site-topbar-user:focus-visible{outline:3px solid var(--bar-focus);outline-offset:3px}
.site-menu-role{flex-shrink:0;padding:5px 8px;border:1px solid var(--cms-line, #dce4ef);border-radius:6px;background:#fff;color:var(--cms-muted, #52657d);font-size:10px;font-weight:600;max-width:85px;overflow-wrap:anywhere}
.site-menu-search{display:flex;align-items:center;gap:8px;margin:0 20px 14px;border:1px solid var(--cms-line, #dce4ef);background:var(--cms-wash, #f4f7fb);border-radius:11px;padding:0 11px;flex-shrink:0;min-height:43px;color:var(--cms-muted, #52657d)}
.site-menu-search:focus-within{background:#fff;border-color:var(--cms-brand, #1b3c66);box-shadow:0 0 0 3px #3169ac25}.site-menu-search svg{width:18px;height:18px}
.site-menu-search input{min-width:0;width:100%;border:0;background:transparent;padding:10px 0;font:inherit;font-size:12px;color:var(--cms-ink, #172944);outline:none}.site-menu-search input::placeholder{color:var(--cms-muted, #52657d)}.site-menu-search input::-webkit-search-cancel-button{display:none}
.site-menu-search button{border:0;background:transparent;color:var(--cms-muted, #52657d);padding:8px 0;min-height:40px;flex-shrink:0;font-size:11px}
.site-menu .site-menu-body{padding:0 14px 16px;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--cms-line, #dce4ef) transparent}
.site-menu-body::-webkit-scrollbar{width:5px}.site-menu-body::-webkit-scrollbar-thumb{background:var(--cms-line, #dce4ef)}.site-menu-body::-webkit-scrollbar-track{background:transparent}
.site-menu-list{margin:0;padding:0;gap:4px;list-style:none}.site-menu-list>.nav-item{margin:0;padding:0}
.site-menu .site-menu-home,.site-menu-group>summary{display:flex;align-items:center;gap:11px;width:100%;min-height:49px;border-radius:11px;padding:9px 13px;color:var(--cms-ink, #172944);font-size:14px;font-weight:600;text-decoration:none;line-height:1.4;cursor:pointer;list-style:none;transition:background .15s,color .15s}
.site-menu-group>summary::-webkit-details-marker{display:none}.site-menu-group>summary::after{content:'';width:6px;height:6px;border-right:1.7px solid var(--cms-line-strong, #a9bed6);border-bottom:1.7px solid var(--cms-line-strong, #a9bed6);transform:rotate(45deg);margin-left:4px;margin-right:3px;flex-shrink:0;transition:transform .15s}
.site-menu-group[open]>summary::after{transform:rotate(225deg)}.site-menu-group[open]>summary{color:var(--cms-brand, #1b3c66);background:var(--cms-wash, #f4f7fb)}
.site-menu .site-menu-home:hover,.site-menu-group>summary:hover{background:var(--cms-selected, #e5effb);color:var(--cms-brand, #1b3c66)}
.site-menu-icon{width:30px;height:30px;display:grid;place-items:center;color:var(--cms-muted, #52657d);background:var(--cms-wash, #f4f7fb);border:1px solid var(--cms-line, #dce4ef);border-radius:9px;flex-shrink:0}.site-menu-icon svg{width:18px;height:18px}
.site-menu-group[open] .site-menu-icon{background:var(--cms-selected, #e5effb);color:var(--cms-brand, #1b3c66);border-color:var(--cms-line, #dce4ef)}
.site-menu-count{margin-left:auto;color:var(--cms-muted, #52657d);font-size:10px;font-weight:500;min-width:14px;text-align:center}
.site-menu-links{list-style:none;padding:4px 0 6px 42px;margin:0 8px 4px 0;position:relative}.site-menu-links::before{content:'';position:absolute;left:28px;top:10px;bottom:15px;width:1px;background:var(--cms-selected, #e5effb)}
.site-menu .site-menu-links .dropdown-item{min-height:40px;display:flex;align-items:center;padding:9px 12px;border-radius:8px;color:var(--cms-muted, #52657d);font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;text-decoration:none;gap:8px}
.site-menu .site-menu-links .dropdown-item:hover{background:var(--cms-wash, #f4f7fb);color:var(--cms-brand, #1b3c66)}
.site-menu .site-menu-list a[aria-current=page]{color:var(--cms-brand, #1b3c66);background:var(--cms-selected, #e5effb);font-weight:700}.site-menu .site-menu-list a[aria-current=page]::after{content:'현재';margin-left:auto;white-space:nowrap;font-size:9px;color:var(--cms-brand, #1b3c66);font-weight:500}
.site-menu .site-menu-home[aria-current=page] .site-menu-icon{background:var(--cms-selected, #e5effb);color:var(--cms-brand, #1b3c66);border-color:var(--cms-line, #dce4ef)}
.site-menu-footer{flex-shrink:0;margin:0 20px;padding:14px 0 max(16px,env(safe-area-inset-bottom));border-top:1px solid var(--cms-line, #dce4ef);display:flex;align-items:center;justify-content:space-between;gap:12px}
.site-menu-logout{display:flex;align-items:center;gap:7px;min-height:40px;padding:7px 10px;border:1px solid var(--cms-line, #dce4ef);border-radius:9px;color:var(--cms-muted, #52657d);background:var(--cms-wash, #f4f7fb);font-size:11px;text-decoration:none;white-space:nowrap}.site-menu-logout svg{width:17px;height:17px}.site-menu-logout:hover{color:#a84444;background:#fff5f4;border-color:#efd9d6}
.site-menu-visits{display:flex;gap:12px;flex-wrap:wrap;justify-content:end;color:var(--cms-muted, #52657d);font-size:10px}.site-menu-visits b{color:var(--cms-muted, #52657d);font-weight:600;margin-left:3px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.site-menu-empty{margin:20px 8px;padding:24px 10px;border:1px dashed var(--cms-line, #dce4ef);border-radius:12px;background:var(--cms-wash, #f4f7fb);text-align:center;color:var(--cms-muted, #52657d);font-size:12px;line-height:1.8}
.site-menu :is(a,button,summary,input):focus-visible{outline:3px solid var(--cms-focus, #3169ac);outline-offset:2px}.site-menu input:focus-visible{outline:none}
@media(max-width:420px){#offcanvasDarkNavbar.site-menu{width:calc(100vw - 16px);border-radius:18px 0 0 18px}.site-menu .site-menu-heading{padding:22px 19px 17px}.site-menu-profile{margin:0 15px 14px}.site-menu-search{margin:0 15px 12px}.site-menu-search input{font-size:16px}.site-menu-close{width:44px;height:44px}.site-menu-footer{margin:0 15px}.site-menu .site-menu-links .dropdown-item{min-height:44px}}
@media(max-height:540px){.site-menu .site-menu-heading{padding:9px 16px}.site-menu-heading p{display:none}.site-menu-heading h2{font-size:20px}.site-menu-close{height:36px;width:36px}.site-menu-profile{margin:0 15px 8px;padding:7px 10px}.site-menu-avatar{width:32px;height:32px}.site-menu-profile p{margin-top:0}.site-menu-search{margin-bottom:7px;min-height:36px}.site-menu-search input{padding:6px 0}.site-menu-footer{padding:7px 0}.site-menu-visits{font-size:9px}.site-menu .site-menu-body{padding-bottom:8px}}
.new-user-badge{display:inline-flex;align-items:center;flex-shrink:0;white-space:nowrap;border-radius:999px;background:var(--cms-selected, #e5effb);color:var(--cms-brand, #1b3c66);padding:2px 7px;font-size:10px;font-weight:700;line-height:1.5;vertical-align:middle}
.new-user-badge[hidden]{display:none!important}
.site-topbar-menu{position:relative}
.new-user-badge[data-new-user-badge=dot]{position:absolute;right:3px;top:3px;width:8px;height:8px;padding:0;background:#df604e;box-shadow:0 0 0 2px #fff}
@media(prefers-reduced-motion:reduce){.site-menu *,#offcanvasDarkNavbar.site-menu{transition:none!important;scroll-behavior:auto!important}}
.site-menu-footer{flex-wrap:wrap}.site-menu-footer .site-menu-logout{white-space:nowrap}
.site-menu-list [data-menu-hidden=true]{display:none!important}
.site-menu-favorites{margin:0 0 12px;padding:9px 0 13px;border-bottom:1px solid var(--cms-line, #dce4ef)}
.site-menu-favorites>header{display:flex;align-items:center;justify-content:space-between;padding:0 12px 5px}.site-menu-favorites h3{margin:0;font-size:12px;font-weight:700;color:var(--cms-muted, #52657d)}
.site-menu-favorites p{margin:4px 12px 0;font-size:11px;line-height:1.5;color:var(--cms-muted, #52657d)}.site-menu-favorites p:empty{display:none}
.site-menu-favorites>header button{border:0;background:none;color:var(--cms-brand, #1b3c66);font-size:11px;padding:5px}
.site-favorite-links{list-style:none;margin:0;padding:0}.site-menu-favorite-row{display:flex;align-items:center;gap:3px;min-width:0}
.site-menu .site-menu-favorite-row>a{flex:1;min-width:0;width:auto}.site-favorite-links .dropdown-item{display:flex;align-items:center;min-height:40px;padding:9px 12px;border-radius:8px;color:var(--cms-muted, #52657d);white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.5}
.site-favorite-links .dropdown-item:hover,.site-favorite-links [aria-current=page]{background:var(--cms-selected, #e5effb);color:var(--cms-brand, #1b3c66)}
.site-favorite-star{display:grid;place-items:center;flex:none;width:32px;height:36px;padding:7px;border:0;border-radius:8px;background:transparent;color:var(--cms-muted, #52657d)}
.site-menu .site-favorite-star svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6}.site-menu .site-favorite-star[aria-pressed=true]{color:#a67b22}.site-menu .site-favorite-star[aria-pressed=true] svg{fill:#efcc78}
.site-favorite-star:hover{background:#f6f3e9}.site-favorite-star:disabled{opacity:.5}.site-menu .site-menu-links:has(.site-favorite-star){padding-left:22px}.site-menu-links:has(.site-favorite-star)::before{left:12px}
@media(pointer:coarse){.site-favorite-star{width:40px;height:44px}.site-favorite-links .dropdown-item{min-height:44px}}

/* Shared top bar colors. The drawer keeps its own light surface. */
.site-header .site-topbar {
    --bar-text: #193962;
    --bar-muted: #536780;
    --bar-control: #edf3fc;
    --bar-border: #d4dfed;
    --bar-hover: #e1ebfa;
    --bar-focus: var(--cms-focus, #3169ac);
}
@media (max-width: 700px) {
    .site-header .site-topbar {
        --bar-text: #fff;
        --bar-muted: #d4e4fa;
        --bar-control: #264d7f;
        --bar-border: #476c98;
        --bar-hover: #345f94;
        --bar-focus: #b5dcff;
        background-color: #183c70;
        border-bottom-color: #183c70;
    }
}
