/* 토큰·기본 */
:root{--primary:#0659FD;--primary-deep:#1046c8;--bg:#f5f8ff;--page-bg:#fafcff;--card:#fff;--tx:#172542;--sub:#64748b;--bd:#e3eaf6;--layout-width:1180px;--layout-gutter:24px}
*,*:before,*:after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
html,body,body *{word-break:keep-all}
body{margin:0;background:var(--page-bg);color:var(--tx);font-family:Pretendard,"Pretendard Variable",-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR",sans-serif;line-height:1.6}
img{max-width:100%}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
h1,h2,h3{overflow-wrap:break-word}
/* INNER: 상단 헤더·본문 컨테이너·푸터가 같은 폭과 안전 여백을 공유 */
.site-header .header-inner,.hero-inner,.page-container,.layout-inner,.seo-index-inner,.site-info-footer .site-info-inner{width:100%;max-width:var(--layout-width);margin-inline:auto;padding-left:max(var(--layout-gutter),env(safe-area-inset-left,0px));padding-right:max(var(--layout-gutter),env(safe-area-inset-right,0px))}
/* 헤더 */
.site-header{background:#fff;border-bottom:1px solid #eaf0fa}
.site-header .header-inner{display:flex;align-items:center;gap:24px;min-height:76px}
.site-header .brand{display:inline-flex;align-items:center;flex-shrink:0}
.site-header .brand-logo{display:block;width:150px;max-width:100%;height:auto;aspect-ratio:718/196;object-fit:contain}
.site-header .gnb{display:flex;align-items:center;gap:22px;margin-left:auto}
.site-header .gnb a{display:inline-flex;align-items:center;min-height:44px;color:#273650;font-size:14px;font-weight:650;white-space:nowrap}
.site-header .gnb a:hover,.site-header .gnb a[aria-current="page"]{color:var(--primary)}
.bookmark-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:0 17px;border:0;border-radius:100px;background:var(--primary);color:#fff;font-size:13px;font-weight:750;font-family:Pretendard,"Pretendard Variable",-apple-system,BlinkMacSystemFont,"Noto Sans KR",sans-serif;white-space:nowrap}
.bookmark-btn .material-symbols-rounded{font-family:"Material Symbols Rounded";font-size:18px}
.bookmark-help{width:100%;margin:0;padding-bottom:10px;color:#52647f;font-size:13px;line-height:1.6;font-family:Pretendard,"Pretendard Variable",-apple-system,BlinkMacSystemFont,"Noto Sans KR",sans-serif}
.bookmark-btn:focus-visible,.back-to-top:focus-visible{outline:3px solid #3BD9FD;outline-offset:3px}
.site-header a:focus-visible,.crumb a:focus-visible,.listing-card:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
/* 서브 페이지 히어로·섹션 */
.sub-hero{padding:64px 0;background:#f4f8ff}
.sub-hero__eyebrow{color:var(--primary);font-size:14px;font-weight:750}
.sub-hero__title{margin:12px 0;font-size:clamp(28px,4vw,40px);line-height:1.3;font-weight:750}
.sub-hero__desc{margin:0;color:#52647f;font-size:16px;line-height:1.7}
.sub-section{padding:56px 0}
.sub-section__title{margin:0 0 18px;font-size:26px}
.sub-more{display:inline-flex;align-items:center;min-height:44px;margin-top:12px;color:var(--primary);font-weight:700}
/* 경로 */
.crumb{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:18px;color:#64748b;font-size:13px}
.crumb a{display:inline-flex;align-items:center;color:#52647f}
.crumb a:hover{color:var(--primary)}
.crumb .crumb-home,.crumb .crumb-home:visited{color:var(--primary)}
.crumb svg{width:17px;height:17px}
.crumb-separator{color:#94a3b8}
/* 푸터 */
.site-info-footer{padding:30px 0;border-top:1px solid #e3eaf6;background:#fff;color:#64748b;font-size:13px;text-align:center}
.site-info-footer nav{display:flex;justify-content:center;flex-wrap:wrap;gap:4px 20px;margin-bottom:12px}
.site-info-footer nav a{display:inline-flex;align-items:center;min-height:32px;color:#334155}
.site-info-footer a:hover,.site-info-footer a:focus-visible{color:var(--primary);text-decoration:underline}
.site-info-footer p{margin:0 0 8px}
.site-info-footer small{color:#94a3b8;font-size:13px}
/* 맨 위로 */
.back-to-top{display:none;position:fixed;right:24px;bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:9999;width:46px;height:46px;padding:0;border:0;border-radius:50%;background:var(--primary);color:#fff;box-shadow:0 4px 14px rgba(0,45,120,.22);align-items:center;justify-content:center}
.back-to-top.is-visible{display:flex}
.back-to-top svg{width:22px;height:22px}
@media(max-width:1024px){
.sub-hero{padding:56px 0}
.sub-section{padding:48px 0}
}
@media(max-width:768px){
:root{--layout-gutter:20px}
.site-header .header-inner{flex-wrap:wrap;gap:0 12px;min-height:0;padding-top:10px;padding-bottom:0}
.site-header .brand{min-height:44px}
.site-header .gnb{order:3;width:100%;margin-left:0;gap:22px;overflow-x:auto;scrollbar-width:none}
.site-header .gnb::-webkit-scrollbar{display:none}
.bookmark-btn{margin-left:auto;min-height:44px;padding:0 15px}
.bookmark-help{padding-bottom:12px}
.sub-hero{padding:44px 0}
.sub-section{padding:40px 0}
.back-to-top{right:18px;bottom:calc(20px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:580px){
:root{--layout-gutter:16px}
.bookmark-btn .material-symbols-rounded{font-size:16px}
.sub-hero{padding:36px 0}
.sub-hero__desc{font-size:15px}
.sub-section{padding:32px 0}
.sub-section__title{font-size:22px}
.crumb{gap:0 8px}
.crumb a{min-height:44px}
.site-info-footer{padding:20px 0}
.site-info-footer nav{gap:0 16px;margin-bottom:8px}
.site-info-footer nav a{min-height:32px}
.site-info-footer p{margin-bottom:6px}
}
@media(max-width:480px){
.site-header .brand-logo{width:128px}
.bookmark-btn{gap:5px;padding:0 13px}
}
@media(prefers-reduced-motion:reduce){
html:focus-within{scroll-behavior:auto}
}
@media print{
.site-header,.site-info-footer,.back-to-top{display:none!important}
}

/* Bookmark guidance: consistent on home and subpages */
.site-header .header-inner{position:relative}
.site-header .bookmark-help{position:absolute;right:0;top:calc(100% + 6px);z-index:90;width:min(390px,calc(100vw - 32px));padding:12px 14px;margin:0;border:1px solid #dce5f3;border-radius:10px;background:#fff;box-shadow:0 8px 22px rgba(22,50,91,.13);color:#52647f;line-height:1.6}
.site-header .bookmark-help[hidden]{display:none}
@media(max-width:580px){.site-header .bookmark-help{right:0}}
