/* Scoped navigation layer: no framework/data/graph-engine changes. */
@font-face{font-family:Pretendard;src:url('fonts/Pretendard-Regular.ttf') format('truetype');font-style:normal;font-weight:100 500;font-display:swap}
@font-face{font-family:Pretendard;src:url('fonts/Pretendard-Bold.ttf') format('truetype');font-style:normal;font-weight:600 900;font-display:swap}
.uk-nav.ui-levels{display:block!important;height:auto!important;min-height:92px;padding:0!important;overflow:visible!important;background:#0c2035!important;border:0!important;box-shadow:0 1px 0 #cbd9e5;position:sticky;top:0;z-index:60;font:600 13px/1.4 Pretendard,var(--font,system-ui)}
.ui-levels *{box-sizing:border-box}.ui-levels [hidden]{display:none!important}
.ui-primary{display:flex;align-items:center;gap:28px;max-width:1420px;margin:auto;min-height:50px;padding:0 24px}
.ui-levels .uk-brand{color:#fff;font-size:15px;font-weight:800;white-space:nowrap;text-decoration:none;margin:0;flex:none}
.ui-levels .uk-brand span{color:#76c5ec}
.ui-level-links{display:flex;align-self:stretch;gap:16px;min-width:0;flex-wrap:wrap}
.uk-nav.ui-levels:has(.ui-subnav[hidden]){min-height:56px}
.ui-primary{min-height:56px}
.ui-level{flex:none}
.ui-resources{position:relative;color:#dbeafa;font-size:12px}
.ui-resources>summary{cursor:pointer;white-space:nowrap;padding:10px 8px;border:1px solid #6c8597;border-radius:5px;list-style:none}
.ui-resource-menu{position:absolute;right:0;top:calc(100% + 8px);width:240px;max-height:70vh;overflow:auto;background:#fff;border:1px solid #ceddd7;border-radius:8px;padding:8px;box-shadow:0 12px 35px #142f3530;z-index:250}
.ui-resource-menu a{display:block;color:#25493e!important;padding:10px 12px;text-decoration:none;font-size:13px;white-space:normal}
.ui-resource-menu a:hover{background:#eaf3ef}
.dashboard-page .ui-resources{color:#25493e}
@media(min-width:701px) and (max-width:1100px){.ui-primary{flex-wrap:wrap;gap:0 16px}.ui-level-links{order:3;width:100%;min-height:46px}.ui-primary>.uk-brand{min-height:42px;display:flex;align-items:center}}
.ui-level{display:flex;align-items:center;position:relative;white-space:nowrap;color:#bdcddd;text-decoration:none;padding:10px 2px;font-weight:650}
.ui-level:hover{color:#fff}.ui-level[aria-current]{color:#fff}
.ui-level[aria-current]:after{content:'';position:absolute;bottom:0;left:0;right:0;height:3px;background:#73c2e8}
.ui-utilities{margin-left:auto;display:flex;align-items:center;gap:10px;flex:none}
.ui-levels .uk-tour-btn,.ui-levels .uk-lang{margin:0}
.ui-subnav{display:flex;align-items:center;gap:8px;padding:5px max(24px,calc((100vw - 1372px)/2));height:42px;overflow-x:auto;scrollbar-width:thin;background:#fff;border-bottom:1px solid #dce6ef}
.ui-levels .ui-subnav a.uk-link{display:inline-flex;align-items:center;min-height:30px;flex:none;color:#475f73;background:transparent;text-decoration:none;white-space:nowrap;padding:5px 13px;border-radius:4px;font:600 13px/1.4 Pretendard,var(--font,system-ui)}
.ui-levels .ui-subnav a.uk-link:hover{background:#f0f5fa;color:#154b75}
.ui-levels .ui-subnav a.uk-link.active{background:#eaf3fa;color:#14598c}
.ui-levels a:focus-visible,.ui-story-detail summary:focus-visible{outline:3px solid #38a3e4;outline-offset:2px}
body:has(.ui-levels) .uk-flow{position:relative;top:auto;z-index:auto;font-size:11px;box-shadow:none}
body:has(.ui-levels) [id]{scroll-margin-top:calc(var(--ui-nav-height,92px) + 16px)}
.ui-story-detail{margin-top:16px;border-top:1px solid #d8e3ec;padding-top:12px}
.ui-story-detail summary{font:600 13px/1.5 var(--font,system-ui);color:#346a94;cursor:pointer}
.ui-story-detail[open] summary{margin-bottom:12px}
.ui-start{display:flex;flex-wrap:wrap;gap:10px 22px;margin:22px 0 26px;padding:14px 0;border-top:1px solid #d8e3ec;border-bottom:1px solid #d8e3ec;font:600 13px/1.5 Pretendard,var(--font,system-ui)}
.ui-start a{color:#245d87;text-decoration:none}.ui-start a:hover{text-decoration:underline}
.ui-graph-page #app{height:calc(100vh - var(--ui-nav-height,92px));height:calc(100dvh - var(--ui-nav-height,92px));position:relative}
/* Theory is a viewport application: reserve actual header/notice height, not legacy 82px. */
body:has(#viz){display:flex;flex-direction:column;height:100vh;height:100dvh}
body:has(#viz)>:not(#app){flex-shrink:0}
body:has(#viz) #app{flex:1;min-height:0;height:auto!important;grid-template-rows:minmax(0,1fr) 48px;grid-template-columns:minmax(0,1fr) 340px}
body:has(#viz) .uk-flow,body:has(#viz) #app>.hd{display:none}
body:has(#viz) #app>.cv{grid-row:1;grid-column:1}
body:has(#viz) #app>.pn{grid-row:1;grid-column:2}
body:has(#viz) #app>.nb{grid-row:2}
body:has(#viz) .cv,body:has(#viz) .pn{min-width:0;min-height:0}
body:has(#viz) .cv svg{aspect-ratio:auto}
body:has(#viz) .tv-sub{position:static;text-align:right;border-radius:0;border-width:0 0 1px;padding:5px 14px;font-size:11px}
body:has(#viz) .tv-banner{position:static;margin:0;border-radius:0;max-height:20vh;overflow:auto}
body:has(#viz) .nb .stp:focus-visible{outline:3px solid #38a3e4;outline-offset:3px}
.ui-theory-tools{position:relative;color:#dbeafa}
.ui-theory-tools>summary{list-style:none;cursor:pointer;font:18px/1 system-ui;padding:8px;border:1px solid #53718b;border-radius:5px}
.ui-theory-tools>summary::-webkit-details-marker{display:none}
.ui-theory-help{position:absolute;right:0;top:calc(100% + 10px);width:min(390px,calc(100vw - 28px));background:white;box-shadow:0 8px 28px #132a4240;border:1px solid #cbd9e5;border-radius:6px;z-index:250;color:#375c78}
body:has(#viz) .ui-theory-help .tv-sub{text-align:left;padding:14px;line-height:1.8;font-size:12px}
.ui-theory-help .ui-language-note{padding:12px 14px;display:block;border:0;font-weight:400}
.ui-theory-help .ui-language-note button{display:block;margin-top:5px}
.ui-theory-modal{position:fixed;inset:0;margin:auto;border:1px solid #bfd1e0;border-radius:10px;width:min(540px,calc(100vw - 28px));max-height:85vh;max-height:85dvh;padding:24px;background:#fff;color:#20394e;box-shadow:0 18px 65px #081b3555;font:14px/1.7 Pretendard,system-ui;overflow:auto}
.ui-theory-modal:not([open]){display:none}.ui-theory-modal::backdrop{background:#071a32a6}
.ui-theory-modal h2{font-size:20px;line-height:1.4;margin:0 42px 14px 0;letter-spacing:0}
.ui-theory-modal h3{font-size:13px;color:#32678c;margin:16px 0 5px}
.ui-theory-modal p{margin:4px 0}.ui-theory-modal a{color:#176295;overflow-wrap:anywhere}
.ui-theory-modal .tm-x{position:absolute;right:12px;top:12px;cursor:pointer;border:0;border-radius:4px;background:#edf3f8;color:#315775;font-size:22px;width:32px;height:32px}
.ui-theory-modal .tm-meta{color:#61788b;font-size:12px}.ui-theory-modal .tm-draft{background:#f3f6f9;border-left:2px solid #adc4d7;padding:8px 10px;font-size:12px;color:#506779;margin-top:16px}
.ui-theory-modal .tm-reference{border-top:1px solid #dae4ed;margin-top:16px;padding-top:8px}
.ui-theory-modal :focus-visible{outline:3px solid #38a3e4;outline-offset:3px}
body:has(#viz) .th:focus-visible .c-main{stroke:#142e48;stroke-width:3}
@media(max-width:700px){
 .ui-theory-help{position:fixed;left:14px;right:14px;top:calc(var(--ui-nav-height,128px) + 8px);width:auto}
 body:has(#viz) #app{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(120px,1fr) minmax(60px,.42fr) 42px}
 body:has(#viz) #app>.pn{grid-column:1;grid-row:2}
 body:has(#viz) #app>.nb{grid-row:3}
 body:has(#viz) .uk-tour-btn{display:none}
 .ui-theory-modal{padding:20px}.ui-theory-modal h2{font-size:18px}
 body:has(#viz) .hd{padding:0 12px;gap:10px}
 body:has(#viz) .hd h1{font-size:11px;letter-spacing:0}
 body:has(#viz) .step-lbl{font-size:10px;letter-spacing:0;white-space:nowrap}
 body:has(#viz) .pn{border-left:0;border-top:1px solid #dce6ef;padding:10px 14px}
 body:has(#viz) .ov-ctrl{gap:0;padding:4px;max-width:calc(100% - 8px)}
 body:has(#viz) .ov-ctrl .sc-btn{padding:3px 7px}
 .ui-primary{padding:0 14px;gap:16px;flex-wrap:wrap;min-height:86px;row-gap:0}
 .ui-levels .uk-brand{height:40px;display:flex;align-items:center}
 .ui-level-links{order:3;width:100%;height:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px;overflow:visible}
 .ui-level-links .ui-level{min-height:42px;white-space:normal;line-height:1.5}
 .ui-level{font-size:13px;padding:8px 0}
 .ui-utilities{height:40px;gap:8px}.ui-levels .uk-tour-btn{font-size:10px;padding:5px 7px}
 .ui-subnav{padding:5px 10px;gap:3px}.ui-levels .ui-subnav a.uk-link{font-size:12px;padding:5px 10px}
 .ui-graph-page #panel{width:230px;max-width:58vw;padding:12px}
 .ui-graph-page #info{width:calc(100% - 28px)}
}
@media print{.uk-nav.ui-levels{display:none!important}.ui-story-detail{display:block}body:has(.ui-levels) .uk-flow{display:none}}
/* Search and persistent detail close control, including narrow touch screens. */
.ui-theory-find{display:grid;place-items:center;width:36px;height:36px;border:1px solid #53718b;border-radius:5px;background:transparent;color:#dbeafa;cursor:pointer;flex:none}
.ui-theory-find:hover{background:#24445f}.ui-theory-find:focus-visible{outline:3px solid #73c2e8;outline-offset:2px}
#theoryModal{padding:0;overflow:hidden}
#theoryModal[open]{display:flex;flex-direction:column}
#theoryModal .tm-head{position:relative;flex:none;padding:20px 24px 14px;border-bottom:1px solid #dae4ed;max-height:30vh;max-height:30dvh;overflow:auto}
#theoryModal .tm-head h2{margin:0 44px 0 0;overflow-wrap:anywhere}
#theoryModal .tm-body{padding:16px 24px;min-height:0;overflow:auto;overscroll-behavior:contain}
#theoryModal .tm-actions{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;flex:none;padding:12px 16px;border-top:1px solid #dae4ed;background:#f6f9fc}
#theoryModal .tm-actions button{min-height:44px;padding:8px 12px;border:1px solid #bfd1e0;border-radius:5px;background:#fff;color:#176295;font:inherit;cursor:pointer}
#theoryModal .tm-actions button:disabled{opacity:.45;cursor:default}
#theoryModal .tm-actions .tm-back{grid-column:1/-1;background:#e8f1f8}
#theoryModal .tm-position{text-align:center;color:#506779;font-size:12px;line-height:1.4}
#viz .th[data-theory-selected] .c-main,#viz .th:focus-visible .c-main{stroke:#122f49!important;stroke-width:3px!important;stroke-dasharray:2 1;vector-effect:non-scaling-stroke}
.ui-theory-modal .tm-x{width:40px;height:40px;z-index:1}
.ui-theory-search[open]{display:flex;flex-direction:column}
.ui-theory-search{padding:0;width:min(640px,calc(100vw - 28px));height:min(680px,85vh);height:min(680px,85dvh);overflow:hidden}
.ts-head{padding:24px 24px 0;flex:none}.ts-label{display:block;font-size:12px;color:#506779;margin:12px 0 6px}
#theory-query,.ts-filters select{width:100%;min-width:0;border:1px solid #bfd1e0;background:#fff;border-radius:5px;padding:10px;color:#20394e;font:inherit}
#theory-query{font-size:16px;min-height:44px}.ts-filters{display:flex;gap:8px;margin-top:10px}.ts-filters select{font-size:12px;min-height:42px}.ts-filters select:first-child{flex:2}.ts-filters select:last-child{flex:1}
.ts-status{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 24px;font-size:12px;flex:none}
.ts-reset{border:0;background:none;color:#176295;cursor:pointer;font:inherit;padding:6px}.ts-reset:hover{text-decoration:underline}
.ts-results{list-style:none;margin:0;padding:0 16px 12px;overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;border-top:1px solid #dae4ed}
.ts-results li{margin:0;padding:0}.ts-result{width:100%;display:flex;flex-direction:column;gap:3px;text-align:left;font:inherit;line-height:1.5;color:#20394e;background:#fff;border:0;border-bottom:1px solid #e5edf3;border-radius:4px;padding:14px 10px;cursor:pointer}
.ts-result:hover,.ts-result:focus-visible{background:#edf5fb}.ts-result:focus-visible{outline-offset:-3px}.ts-result strong{font-size:14px}.ts-result span{font-size:12px;color:#61788b}
.ts-results .ts-empty{padding:32px 12px;color:#61788b}.ui-theory-search .ts-note{padding:10px 24px;margin:0;font-size:11px;background:#f4f7fa;color:#61788b;flex:none}
@media(max-width:700px){.ts-head{padding:20px 16px 0}.ts-status{padding:8px 16px}.ts-results{padding:0 8px 8px}#theoryModal .tm-body{padding:20px}.ui-theory-search .ts-note{padding:8px 16px}}

/* Shared light navigation: 2026-09-27. */
.uk-nav.ui-levels{background:#fff!important;box-shadow:none;border-bottom:1px solid #e0e7e3!important}
.ui-levels .uk-brand,.ui-levels .uk-brand span{color:#16624e!important}
.ui-level{color:#52645d!important}.ui-level[aria-current]{color:#16624e!important}.ui-level[aria-current]:after{background:#16624e}
.ui-levels .ui-subnav a.uk-link.active{background:#eaf3ee;color:#16624e}
.ui-utilities{color:#52645d}.ui-subnav{border-bottom:0}
.ui-utilities label,.ui-utilities span{color:#52645d!important}
.ui-levels .uk-lang{background:#fff!important;color:#263d34!important;border:1px solid #c6d5cb;color-scheme:light}.ui-levels .uk-tour-btn{background:#f1f6f3!important;color:#315b47!important;border-color:#c6d5cb!important}
.ui-levels #site-language{background:#fff!important;color:#263d34!important;border:1px solid #c6d5cb!important;border-radius:7px;color-scheme:light}
