/* HN_A11Y 20261014 : 화면모드(자동/밝게/어둡게) · 글자크기 5단계 */

/* ── 조절기 ── */
.hn-a11y{position:relative;display:flex;align-items:center;gap:8px}
.hn-a11y__fs{display:flex;gap:6px}
.hn-a11y__fsb{color:inherit;font-size:15px;font-weight:800;font-family:inherit;line-height:1;cursor:pointer}
.hn-a11y__fsb sup{margin-left:1px;font-size:11px}
.hn-a11y__fsb:disabled{opacity:.4;cursor:default}
.hn-a11y__open{color:inherit;cursor:pointer}
.hn-a11y__ico{display:block;width:18px;height:18px;margin:auto;border:2px solid currentColor;border-radius:50%;background:linear-gradient(90deg,currentColor 50%,transparent 50%)}
.hn-a11y__panel{position:absolute;top:calc(100% + 10px);right:0;z-index:1200;width:264px;padding:16px;border:1px solid #e3e8ee;border-radius:14px;
  background:#fff;color:#1a1f26;box-shadow:0 16px 40px rgba(10,20,35,.22);text-align:left}
.hn-a11y__panel[hidden]{display:none}
.hn-a11y__tt{display:flex;justify-content:space-between;margin:0 0 8px;color:#6b7480;font-size:13px;font-weight:700}
.hn-a11y__tt b{color:#1f6db6}
.hn-a11y__seg{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin:0 0 14px;padding:4px;border-radius:10px;background:#f1f4f7}
.hn-a11y__seg:last-child{margin-bottom:0}
.hn-a11y__seg button{height:38px;border:0;border-radius:7px;background:none;color:#3a4350;font-size:14px;font-weight:600;font-family:inherit;cursor:pointer}
.hn-a11y__seg button[aria-pressed="true"]{background:#fff;color:#1f6db6;box-shadow:0 1px 4px rgba(0,0,0,.14)}
.hn-a11y__seg button:disabled{opacity:.4;cursor:default}
.hn-a11y button:focus-visible{outline:2px solid #4d9be0;outline-offset:2px}
@media (max-width:1024px){.hn-a11y__fs{display:none}}

/* ── 글자크기 (본문 영역만 비율 확대) ── */
html[data-fs="0"]{--hn-zoom:.9}
html[data-fs="1"]{--hn-zoom:1}
html[data-fs="2"]{--hn-zoom:1.1}
html[data-fs="3"]{--hn-zoom:1.2}
html[data-fs="4"]{--hn-zoom:1.3}
.hn-sub__body,.site-shell .section,.notice-bar{zoom:var(--hn-zoom,1)}

/* ── 다크모드 ── */
html[data-theme="dark"]{color-scheme:dark;--ink:#eef2f6;--text:#cfd6de;--muted:#9aa5b1;--line:#2c3540;--bg:#161b21}
html[data-theme="dark"] .hn-sub{--hn-c:#4d9be0;--hn-cd:#24588f;--hn-ink:#eef2f6;--hn-tx:#cfd6de;--hn-mu:#9aa5b1;--hn-ln:#2f3944;--hn-bg:#1b2128;--hn-bg2:#222a33;--hn-on:#1d3550}
html[data-theme="dark"] body,html[data-theme="dark"] .site-shell,html[data-theme="dark"] .sub-layout{background:#12171d;color:#cfd6de}
html[data-theme="dark"] .notice-inner,html[data-theme="dark"] .intro-card,html[data-theme="dark"] .band-panel,html[data-theme="dark"] .quick-links,
html[data-theme="dark"] .event-card,html[data-theme="dark"] .board-card,html[data-theme="dark"] .partner,html[data-theme="dark"] .content-article,
html[data-theme="dark"] .side-card,html[data-theme="dark"] .mini-panel{background:#1b2128;border-color:#2c3540}
html[data-theme="dark"] .notice-label{background:#1d3550;color:#9cc8f2}
html[data-theme="dark"] .notice-track div,html[data-theme="dark"] .notice-track a{color:#cfd6de}
html[data-theme="dark"] .notice-date{color:#9aa5b1}
html[data-theme="dark"] .section-head h2,html[data-theme="dark"] .intro-card h3,html[data-theme="dark"] .mini-panel h4,html[data-theme="dark"] .quick-item h4,
html[data-theme="dark"] .event-body h3,html[data-theme="dark"] .board-title h3,html[data-theme="dark"] .calendar-item b,html[data-theme="dark"] .greeting-copy h4,
html[data-theme="dark"] .content-title-wrap h3,html[data-theme="dark"] .contact-mini h3,html[data-theme="dark"] .signature strong{color:#eef2f6}
html[data-theme="dark"] .section-head p,html[data-theme="dark"] .intro-card p,html[data-theme="dark"] .mini-panel p,html[data-theme="dark"] .quick-item p,
html[data-theme="dark"] .event-body p,html[data-theme="dark"] .calendar-item p,html[data-theme="dark"] .greeting-copy p,html[data-theme="dark"] .content-title-wrap p,
html[data-theme="dark"] .signature,html[data-theme="dark"] .contact-mini p{color:#aeb8c3}
html[data-theme="dark"] .intro-icon,html[data-theme="dark"] .quick-ico,html[data-theme="dark"] .calendar-item,html[data-theme="dark"] .article-badge,
html[data-theme="dark"] .greeting-photo,html[data-theme="dark"] .contact-mini,html[data-theme="dark"] .page-meta div{background:#222a33;border-color:#2c3540}
html[data-theme="dark"] .mini-links a,html[data-theme="dark"] .quick-item a,html[data-theme="dark"] .tool-btn{background:#222a33;border-color:#2c3540;color:#dfe5eb}
html[data-theme="dark"] .mini-links a span{color:#9aa5b1}
html[data-theme="dark"] .quick-item:hover{background:#222a33}
html[data-theme="dark"] .event-thumb{background:#2a323c}
html[data-theme="dark"] .board-list li{border-color:#2c3540}
html[data-theme="dark"] .board-list a{color:#dfe5eb}
html[data-theme="dark"] .board-list span{color:#9aa5b1}
html[data-theme="dark"] .page-meta,html[data-theme="dark"] .content-top{border-color:#2c3540}
html[data-theme="dark"] .hero:after{background:linear-gradient(180deg,rgba(18,23,29,0) 0%,#12171d 100%)}
html[data-theme="dark"] .sub-hero:after{background:linear-gradient(180deg,rgba(18,23,29,0) 0%,#12171d 100%)}
html[data-theme="dark"] .breadcrumb{background:rgba(27,33,40,.94);border-color:#2c3540;color:#cfd6de}
html[data-theme="dark"] .breadcrumb a{color:#cfd6de}
html[data-theme="dark"] .breadcrumb strong{color:#7fbcf2}
html[data-theme="dark"] .search-box{background:rgba(27,33,40,.96);border-color:#2c3540}
html[data-theme="dark"] .search-form input{background:#12171d;color:#eef2f6}
html[data-theme="dark"] .side-menu{background:#161c22}
html[data-theme="dark"] .side-menu-head{background:rgba(22,28,34,.94);border-color:#2c3540}
html[data-theme="dark"] .side-menu-title{color:#eef2f6}
html[data-theme="dark"] .side-close{background:#222a33;border-color:#2c3540}
html[data-theme="dark"] .side-close:before,html[data-theme="dark"] .side-close:after{background:#dfe5eb}
html[data-theme="dark"] .side-menu-search{background:#222a33;border-color:#2c3540}
html[data-theme="dark"] .side-menu-search .search-form input{background:#1b2128;color:#eef2f6}
html[data-theme="dark"] .side-nav-link{background:#1b2128;border-color:#2c3540;color:#dfe5eb}
html[data-theme="dark"] .side-nav-link:hover,html[data-theme="dark"] .side-nav-link.is-active{background:#1d3550;border-color:#2f5a86}
html[data-theme="dark"] .hn-a11y__panel{border-color:#2f3944;background:#1b2128;color:#eef2f6}
html[data-theme="dark"] .hn-a11y__tt{color:#9aa5b1}
html[data-theme="dark"] .hn-a11y__tt b{color:#7fbcf2}
html[data-theme="dark"] .hn-a11y__seg{background:#12171d}
html[data-theme="dark"] .hn-a11y__seg button{color:#cfd6de}
html[data-theme="dark"] .hn-a11y__seg button[aria-pressed="true"]{background:#2a323c;color:#7fbcf2}
/* 유관기관 로고는 원본색 보존을 위해 흰 카드 유지 */
html[data-theme="dark"] .hn-partner a{background:#fff;border-color:#2c3540}
/* 에디터 본문 · 컨텐츠 페이지의 직접 지정 글자색 보정 */
html[data-theme="dark"] #bo_v_con :is(p,li,dd,dt,td,th,span,strong,b,em,h1,h2,h3,h4,h5,h6,div,font,label),
html[data-theme="dark"] #ctt :is(p,li,dd,dt,td,th,span,strong,b,em,h1,h2,h3,h4,h5,h6,div,font,label){color:#cfd6de !important;background-color:transparent !important}
html[data-theme="dark"] #bo_v_con a,html[data-theme="dark"] #ctt a{color:#7fbcf2 !important}
