html:has(.kbs-detail-header) {scroll-padding-top:0}
body:has(.kbs-detail-header) {--kbs-detail-header-height:64px;--kbs-detail-toc-height:48px;--kbs-detail-anchor-gap:16px}
.kbs-detail-header,.kbs-detail-toc {position:sticky;font-family:var(--kbs-sans);color:#102d29;border-bottom:1px solid #d8b67c70}
.kbs-detail-header {top:0;z-index:50;background:#f5f0e4f2;backdrop-filter:blur(8px)}
.kbs-detail-header-inner,.kbs-detail-toc-inner {max-width:1500px;margin:auto;padding:0 40px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.kbs-detail-header-inner {height:calc(var(--kbs-detail-header-height) - 1px)}
.kbs-detail-header details {margin:0;padding:0;border:0;background:none;box-shadow:none}
.kbs-detail-brand {font:600 22px/1.1 var(--kbs-serif);white-space:nowrap;text-decoration:none}
#kbs-detail-global,.kbs-detail-tools {display:flex;align-items:center;gap:20px}
.kbs-detail-header :is(summary,button),.kbs-detail-tools>a {min-height:44px;align-content:center;padding:0;color:inherit;white-space:nowrap;font:600 14px/1.2 var(--kbs-sans)}
.kbs-detail-header summary {cursor:pointer;list-style:none}
.kbs-detail-header summary::-webkit-details-marker {display:none}
.kbs-detail-header details[open]>summary {text-decoration:underline;text-underline-offset:5px}
.kbs-detail-header button {background:transparent;border:0;cursor:pointer}
.kbs-detail-tools>a {text-decoration:none}
.kbs-detail-header :is(a,summary,button):focus-visible,.kbs-detail-toc a:focus-visible {outline:2px solid #76592e;outline-offset:2px}
.kbs-detail-category-links,.kbs-detail-language .site-languages {position:absolute;top:100%;background:#fffdf8;border:1px solid #d8b67c80;box-shadow:0 10px 24px #102d2922}
.kbs-detail-category-links {inset-inline:40px;padding:14px;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));max-height:65dvh;overflow:auto}
.kbs-detail-category-links>a,.kbs-detail-language .site-languages>a {display:flex;align-items:center;min-height:44px;padding:6px 12px;text-decoration:none;line-height:1.3;font-size:14px}
.kbs-detail-category-links>a:hover,.kbs-detail-language a:hover {background:#f5f0e4}
.kbs-detail-category-links img {display:none}
.kbs-detail-category-links .menu-audio-toggle {justify-self:start;padding:6px 12px}
.kbs-detail-language .site-languages {display:grid;right:40px;min-width:160px}
.kbs-detail-menu-toggle,.kbs-detail-menu-close {display:none}
.kbs-detail-toc {top:var(--kbs-detail-header-height);z-index:40;background:#fffdf8}
.kbs-detail-toc-inner {height:calc(var(--kbs-detail-toc-height) - 1px)}
.kbs-detail-toc-inner>span {font-size:13px;font-weight:700}
.kbs-detail-toc-links {display:flex;gap:24px;align-items:center}
.kbs-detail-toc-links>a {display:flex;align-items:center;min-height:44px;border-bottom:2px solid transparent;color:#526058;text-decoration:none;white-space:nowrap;font-size:13px}
.kbs-detail-toc-links>a[aria-current],.kbs-detail-toc-links>a:hover {border-bottom-color:#102d29;color:#102d29}
.kbs-detail-toc-links>a[aria-current] {font-weight:700}
body.gyeongju-itinerary:has(.kbs-detail-toc) main [id] {scroll-margin-top:calc(var(--kbs-detail-header-height) + var(--kbs-detail-toc-height) + var(--kbs-detail-anchor-gap))}
.kbs-detail-related {margin:18px 0 26px;color:#526058;font-size:14px}
.kbs-detail-related p {margin:0 0 6px}
.kbs-detail-related div {display:flex;flex-wrap:wrap;gap:6px 16px}
.kbs-detail-related a {color:#102d29;text-underline-offset:3px}
@media(max-width:1023px) {
  body:has(.kbs-detail-header) {--kbs-detail-header-height:56px;--kbs-detail-toc-height:44px;--kbs-detail-anchor-gap:12px}
  .kbs-detail-header-inner,.kbs-detail-toc-inner {padding:0 14px;gap:10px}
  .kbs-detail-brand {font-size:clamp(13px,4vw,18px)}
  .kbs-detail-tools {gap:9px}
  .kbs-detail-header :is(summary,button),.kbs-detail-tools>a {font-size:12px}
  .kbs-detail-menu-toggle,.kbs-detail-menu-close {display:block}
  .kbs-detail-language .site-languages {right:14px}
  #kbs-detail-global {display:none;position:absolute;inset:100% 0 auto auto;width:min(360px,100%);max-height:calc(100dvh - var(--kbs-detail-header-height));padding:8px 16px 16px;overflow:auto;overscroll-behavior:contain;background:#fffdf8;border:1px solid #d8b67c80;box-shadow:-10px 10px 24px #102d2922}
  #kbs-detail-global[data-open] {display:block;animation:kbs-detail-drawer-in 180ms ease-out}
  #kbs-detail-global>details {border-top:1px solid #d8b67c50}
  #kbs-detail-global>details>summary {font-size:14px}
  .kbs-detail-category-links {position:static;display:block;max-height:none;padding:0 0 8px;border:0;box-shadow:none}
  .kbs-detail-toc-inner>span {display:none}
  .kbs-detail-toc-links {width:100%;gap:7px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none}
  .kbs-detail-toc-links>a {border:0;border-radius:16px;min-height:32px;padding:0 11px;scroll-snap-align:start;background:#f5f0e4;font-size:12px}
  .kbs-detail-toc-links>a[aria-current] {background:#102d29;color:#f5deb1}
}
@keyframes kbs-detail-drawer-in {from {opacity:0;transform:translateX(20px)}}
@media(prefers-reduced-motion:reduce) {#kbs-detail-global[data-open] {animation:none}html:has(.kbs-detail-header) {scroll-behavior:auto}}
