/* Real notice data, shared page header, and quietly separated reading tiles. */
html:has(#bokjifit-pages[data-page=detail]),body:has(#bokjifit-pages[data-page=detail]),#bokjifit-pages[data-page=detail],#bokjifit-pages[data-page=detail] #app{background:#f5f5f5}
#bokjifit-pages #app .bf-detail-page{width:100%;max-width:1168px;margin:0 auto;padding:7px 14px calc(98px + env(safe-area-inset-bottom));box-sizing:border-box;color:#181b21;font-family:Pretendard,'Noto Sans KR',sans-serif;letter-spacing:-.025em}
/* Header typography, icon dimensions and insets remain owned by .bf-page-header. */
#bokjifit-pages[data-page=detail] #app>.bf-route-header{position:sticky;top:0;z-index:120;background:#f5f5f5}
#bokjifit-pages #app .bf-detail-summary-tile{padding:21px 20px 22px;margin:0;border:0;border-radius:20px;background:#fff;box-sizing:border-box;min-width:0}
#bokjifit-pages #app .bf-detail-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 10px;color:#555d69;font-size:12px;line-height:1.6}
#bokjifit-pages #app .bf-detail-badge{display:inline-flex;align-items:center;border-radius:11px;padding:2px 9px;font-size:11px;font-weight:700;line-height:1.5;white-space:nowrap}
#bokjifit-pages #app .bf-detail-open{background:#dff6e9;color:#23744e}
#bokjifit-pages #app .bf-detail-closed{background:#e9ebef;color:#717986}
#bokjifit-pages #app .bf-detail-check{background:#fff0d7;color:#916425}
#bokjifit-pages #app .bf-detail-region{border-radius:10px;background:#f0f2f6;padding:2px 8px;color:#626c7c;font-size:11px}
#bokjifit-pages #app .bf-detail-summary-tile h1{font-size:20px;line-height:1.4;letter-spacing:-.04em;font-weight:800;max-width:none;margin:0 0 8px;overflow-wrap:anywhere;word-break:keep-all}
#bokjifit-pages #app .bf-detail-description{font-size:13px;line-height:1.7;color:#626975;margin:0;overflow-wrap:anywhere}
#bokjifit-pages #app .bf-detail-key{margin:15px 0 16px}
#bokjifit-pages #app .bf-detail-key>strong{display:block;font-size:13px;font-weight:750;margin:0 0 6px}
#bokjifit-pages #app .bf-detail-key>p{border:0;border-radius:8px;background:#f0f3f6;color:#303844;padding:10px 12px;margin:0;font-size:13px;line-height:1.75;overflow-wrap:anywhere}
#bokjifit-pages #app .bf-detail-key>p strong{font-weight:700}
#bokjifit-pages #app .bf-detail-summary-tile .bf-notice-summary{display:grid;gap:10px;margin:0;padding:0;border:0;background:none;border-radius:0}
#bokjifit-pages #app .bf-notice-summary>div{display:grid;grid-template-columns:80px minmax(0,1fr);align-items:start;gap:10px;padding:0;margin:0;border:0;background:none}
#bokjifit-pages #app .bf-notice-summary dt{display:flex;align-items:center;gap:6px;color:#747b87;font-size:12px;font-weight:450;line-height:1.7;min-width:0}
#bokjifit-pages #app .bf-notice-summary dt>span{font-size:13px;flex:0 0 16px}
#bokjifit-pages #app .bf-notice-summary dd{font-size:13px;font-weight:650;color:#303743;line-height:1.7;margin:0;overflow-wrap:anywhere}
#bokjifit-pages #app .bf-detail-toc{position:sticky;top:56px;z-index:90;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);align-items:stretch;gap:0;overflow-x:hidden;overscroll-behavior-x:contain;scrollbar-width:none;background:#f5f5f5;border:0;border-bottom:1px solid #e4e6eb;width:100%;margin:0 0 12px;padding:0;min-height:46px;box-sizing:border-box}
#bokjifit-pages #app .bf-detail-toc::-webkit-scrollbar{display:none}
#bokjifit-pages #app .bf-detail-toc button{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-width:0;border:0;background:none;padding:12px 2px;font:inherit;font-size:12px;font-weight:600;line-height:1.5;color:#646b78;white-space:nowrap}
#bokjifit-pages #app .bf-detail-toc button[aria-current=location]{color:#0755ff;font-weight:750}
#bokjifit-pages #app .bf-detail-toc button[aria-current=location]::after{content:'';position:absolute;inset:auto 0 -1px;height:3px;background:#0755ff;border-radius:3px}
#bokjifit-pages #app .bf-detail-body{display:grid;gap:12px;min-width:0}
#bokjifit-pages #app .bf-detail-body .bf-notice-section{display:block;position:relative;scroll-margin-top:114px;background:#fff;border:0;border-radius:20px;box-shadow:none;padding:24px 20px;margin:0;min-width:0;overflow-wrap:anywhere}
#bokjifit-pages #app .bf-detail-body .bf-notice-section>h2{position:relative;display:block;padding:0 0 0 13px;margin:0 0 15px;color:#171b22;font-size:18px;font-weight:800;line-height:1.4;letter-spacing:-.04em;border:0;background:none}
#bokjifit-pages #app .bf-detail-body .bf-notice-section>h2::before{content:'';position:absolute;left:0;top:3px;width:4px;height:20px;border-radius:4px;background:#0755ff}
#bokjifit-pages #app .bf-detail-body .bf-notice-section>h2::after{content:none}
#bokjifit-pages #app .bf-detail-body p{font-size:14px;line-height:1.85;color:#3d4552;margin:0 0 12px}
#bokjifit-pages #app .bf-detail-body p:last-child{margin-bottom:0}
#bokjifit-pages #app .bf-detail-body .bf-notice-section ul,#bokjifit-pages #app .bf-detail-body .bf-notice-section ol{margin:10px 0 0;padding:0 0 0 19px;color:#3d4552;font-size:14px;line-height:1.85;display:block}
#bokjifit-pages #app .bf-detail-body .bf-notice-section li{margin:0 0 8px;padding:0;background:none;border:0;border-radius:0;display:list-item;font-size:14px;line-height:1.85}
#bokjifit-pages #app .bf-detail-body .bf-notice-section li:last-child{margin-bottom:0}
#bokjifit-pages #app .bf-detail-body .bf-detail-fact-label{font-weight:600;color:#5d6675}
#bokjifit-pages #app .bf-detail-body .bf-procedure li>strong{font-weight:650;color:#363f4e}
#bokjifit-pages #app .bf-detail-body .bf-procedure li>p{margin:3px 0 0;font-size:14px;line-height:1.85}
#bokjifit-pages #app .bf-detail-body .bf-procedure li::before{content:none}
#bokjifit-pages #app .bf-detail-body h3{font-size:15px;line-height:1.6;margin:18px 0 7px;color:#303a48}
#bokjifit-pages #app .bf-detail-body .bf-muted,#bokjifit-pages #app .bf-detail-body .bf-detail-source-note{font-size:12px;line-height:1.75;color:#7b8391;margin-top:12px}
#bokjifit-pages #app .bf-detail-body #source>p{margin:0 0 10px}
#bokjifit-pages #app .bf-detail-body #source a,#bokjifit-pages #app .bf-detail-posters a>span{color:#0755ff;text-decoration:underline;text-underline-offset:3px;font-size:13px;font-weight:550;overflow-wrap:anywhere}
#bokjifit-pages #app .bf-detail-posters{display:grid;gap:18px}
#bokjifit-pages #app .bf-detail-posters figure{margin:0;padding:0;border:0;background:none;box-shadow:none}
#bokjifit-pages #app .bf-detail-posters a{display:flex;flex-direction:column;align-items:center;gap:9px;text-decoration:none}
#bokjifit-pages #app .bf-detail-posters img{display:block;width:auto;max-width:100%;height:auto;max-height:440px;object-fit:contain;border-radius:10px;margin:0}
#bokjifit-pages #app .bf-detail-related-list{display:grid;gap:12px}
#bokjifit-pages #app .bf-detail-related-card{position:relative;display:block;padding:15px 16px 27px;border:1px solid #e5e7ec;border-radius:14px;background:#fff;min-width:0}
#bokjifit-pages #app .bf-detail-related-card>a{display:block;color:#232a35;text-decoration:none;padding:0;margin:0;border:0;border-radius:0;background:none;box-shadow:none}
#bokjifit-pages #app .bf-detail-related-card>a::after{content:'';position:absolute;inset:0;z-index:1;border-radius:inherit}
#bokjifit-pages #app .bf-detail-related-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:11px;color:#727b89;line-height:1.6;margin:0 26px 7px 0}
#bokjifit-pages #app .bf-detail-related-meta .bf-detail-badge{font-size:10px;padding:1px 7px}
#bokjifit-pages #app .bf-detail-related-card>a>strong{display:block;font-size:16px;line-height:1.5;font-weight:750;color:#222934;letter-spacing:-.035em;margin:0 0 5px;overflow-wrap:anywhere}
#bokjifit-pages #app .bf-detail-related-summary{display:block;font-size:12px;line-height:1.75;color:#78818e}
#bokjifit-pages #app .bf-detail-related-arrow{position:absolute;right:14px;bottom:11px;color:#0755ff}
#bokjifit-pages #app .bf-detail-related-card>.bf-iconbutton{position:absolute;top:13px;right:12px;z-index:2;display:grid;place-items:center;width:27px;height:28px;border:0;background:none;padding:3px;color:#5e6878}
#bokjifit-pages #app .bf-detail-related-card>.bf-save-active{color:#0755ff}
#bokjifit-pages #app .bf-detail-related-card>.bf-save-active svg{fill:#0755ff}
#bokjifit-pages #app .bf-detail-actionbar{position:fixed;inset:auto 0 0;z-index:116;display:block;background:#fff;border-top:1px solid #e5e7ec;padding:9px 14px calc(9px + env(safe-area-inset-bottom));box-sizing:border-box}
#bokjifit-pages #app .bf-detail-actionbar>div{display:grid;grid-template-columns:48px minmax(0,1fr);gap:8px;width:100%;max-width:1120px;margin:auto}
#bokjifit-pages #app .bf-detail-actionbar .bf-button,#bokjifit-pages #app .bf-detail-actionbar .bf-detail-save{display:flex;align-items:center;justify-content:center;gap:6px;position:static;width:100%;min-width:0;height:48px;min-height:48px;margin:0;padding:10px 8px;border-radius:10px;box-sizing:border-box;font:inherit;font-size:14px;font-weight:650;line-height:1.4;text-decoration:none;white-space:normal}
#bokjifit-pages #app .bf-detail-actionbar .bf-primary{background:#0755ff;color:#fff;border:1px solid #0755ff}
#bokjifit-pages #app .bf-detail-actionbar .bf-detail-save{background:#fff;border:1px solid #b8c0cd;color:#5a6575}
#bokjifit-pages #app .bf-detail-actionbar .bf-detail-save.bf-save-active{color:#0755ff;border-color:#a7bfff;background:#f7f9ff}
#bokjifit-pages[data-page=detail] #app>.bf-backtop{bottom:calc(83px + env(safe-area-inset-bottom))}
@media(min-width:651px){
 #bokjifit-pages #app .bf-detail-page{padding:20px 24px 110px}
 #bokjifit-pages #app .bf-detail-summary-tile{padding:28px 30px}
 #bokjifit-pages #app .bf-detail-summary-tile h1{font-size:28px}
 #bokjifit-pages #app .bf-detail-description{font-size:15px}
 #bokjifit-pages #app .bf-detail-key>p{font-size:14px}
 #bokjifit-pages #app .bf-notice-summary>div{grid-template-columns:105px minmax(0,1fr)}
 #bokjifit-pages #app .bf-notice-summary dt,#bokjifit-pages #app .bf-notice-summary dd{font-size:14px}
 #bokjifit-pages #app .bf-detail-toc{top:72px;width:100%;gap:0;padding:0;margin:0 0 16px}
 #bokjifit-pages #app .bf-detail-toc button{font-size:14px}
 #bokjifit-pages #app .bf-detail-body{gap:16px}
 #bokjifit-pages #app .bf-detail-body .bf-notice-section{padding:30px;scroll-margin-top:134px}
 #bokjifit-pages #app .bf-detail-body .bf-notice-section>h2{font-size:20px;margin-bottom:18px}
 #bokjifit-pages #app .bf-detail-body .bf-notice-section>h2::before{height:22px}
 #bokjifit-pages #app .bf-detail-related-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 #bokjifit-pages #app .bf-detail-posters{grid-template-columns:repeat(2,minmax(0,1fr))}
 #bokjifit-pages #app .bf-detail-posters:has(figure:only-child){grid-template-columns:1fr}
 #bokjifit-pages #app .bf-detail-actionbar{padding-inline:24px}
 #bokjifit-pages #app .bf-detail-actionbar>div{grid-template-columns:72px minmax(0,1fr)}
}
@media(hover:hover) and (pointer:fine){#bokjifit-pages #app .bf-detail-related-card:has(a:hover){background:#f9fbff}#bokjifit-pages #app .bf-detail-actionbar .bf-primary:hover{filter:brightness(.96)}}

/* 구조화 정보: 지원 조건 칩, 지원 제외, 자주 묻는 질문, 문의처 전화 링크 (기존 지역 태그와 같은 톤) */
#bokjifit-pages #app .bf-detail-body .bf-notice-section ul.bf-condition-chips{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0 0 12px;padding:0}
#bokjifit-pages #app .bf-detail-body .bf-notice-section .bf-condition-chips li{display:inline-flex;margin:0;border-radius:10px;background:#eef3ff;color:#2f4f9a;padding:3px 10px;font-size:12px;font-weight:600;line-height:1.6}
#bokjifit-pages #app .bf-detail-body .bf-notice-section ul.bf-excluded{margin:4px 0 0;color:#5d6675;font-size:13px}
#bokjifit-pages #app .bf-detail-body .bf-faq{display:grid;gap:12px;margin:0}
#bokjifit-pages #app .bf-detail-body .bf-faq dt{font-weight:700;color:#303743;font-size:14px;line-height:1.6}
#bokjifit-pages #app .bf-detail-body .bf-faq dd{margin:2px 0 0;color:#4b5363;font-size:13px;line-height:1.7}
.bf-notice-summary dd a[href^="tel:"],.bf-notice-summary dd a[href^="mailto:"]{color:inherit;text-decoration:underline;text-underline-offset:3px}
