/* ======================================================================
   아코디언 내비게이션 (2026-10-14) — 홈 + 하위 페이지 52개 상단바. <header class="mf-appbar sxn"> 안의 .sxn-nav
   · 원본 마크업은 홈 index.html 하나. 하위 페이지는 node scripts/sync-nav.js 가 <!-- sxn:begin/end --> 사이에 복사(직접 고치지 말 것)
   · PC(≥900px): 메뉴에 올리거나 누르면 상단바 아래로 검정 패널이 펼쳐진다(아코디언처럼 높이가 열림) — 링크 묶음 + 대표 카드
   · 모바일: 메뉴 버튼(☰) → 전체 화면 검정 시트, 묶음마다 아코디언(한 번에 하나만 열림), 맨 아래 로그인·무료 검사
   · 같은 마크업 하나로 두 모양(링크를 두 번 쓰지 않음). 닫힌 패널은 inert — 키보드가 닫힌 링크로 가지 않는다
   · 글자 대비: 패널 #0a0a0a 위 흰 제목 19:1 · 설명 #a1a1aa 7.7:1 · 묶음 이름 #8b8b95 5.9:1
   그리기·동작은 js/sx-nav.js
   ====================================================================== */
.sxn-nav { display: none; }
.sxn-list { list-style: none; margin: 0; padding: 0; }
.sxn-trigger { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 0; border-radius: 9999px; background: transparent;
    color: #d4d4d8; font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; transition: color .15s ease, background-color .15s ease; }
.sxn-trigger:hover, .sxn-trigger[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.08); }
.sxn-trigger svg { width: 12px; height: 12px; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.sxn-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.sxn a:focus-visible, .sxn button:focus-visible { outline: 2px solid var(--mf-primary-200); outline-offset: 2px; }

/* 패널 — 높이가 0fr → 1fr 로 펼쳐지는 아코디언 */
.sxn-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .34s cubic-bezier(.2,.7,.2,1); }
.sxn-panel.is-open { grid-template-rows: 1fr; }
.sxn-panel > .sxn-panel__clip { min-height: 0; overflow: hidden; }
.sxn-panel__in { opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .34s cubic-bezier(.2,.7,.2,1); }
.sxn-panel.is-open .sxn-panel__in { opacity: 1; transform: none; transition-delay: .05s; }
.sxn-h { margin: 0 0 8px; padding: 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8b8b95; }
.sxn-link { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; transition: background-color .15s ease; }
.sxn-link:hover { background: rgba(255,255,255,.06); }
.sxn-link b { display: block; font-size: 15px; font-weight: 600; color: #fff; }
.sxn-link span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.5; color: #a1a1aa; }
.sxn-feature { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; padding: 18px; border-radius: 14px; overflow: hidden; text-decoration: none; color: #fff;
    border: 1px solid #1e2c31; background: radial-gradient(90% 90% at 50% 0%, rgba(43,108,246,.5), rgba(11,58,143,.18) 55%, transparent), #0a0a0a; font: inherit; text-align: left; cursor: pointer; }
.sxn-feature img { position: absolute; top: 10px; right: 10px; width: 108px; height: auto; filter: drop-shadow(0 10px 20px rgba(0,0,0,.55)); }
.sxn-feature__chrs { position: absolute; top: 14px; right: 14px; display: flex; }
.sxn-feature__chrs img { position: static; width: 58px; margin-left: -14px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.6)); }
.sxn-feature__k { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--mf-primary-200); }
.sxn-feature__t { margin-top: 6px; font-size: 19px; font-weight: 500; line-height: 1.35; letter-spacing: -.01em; }
.sxn-feature__go { margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--mf-primary-200); }
.sxn-feature--mystery img { filter: brightness(0) drop-shadow(0 0 1px rgba(187,208,255,.6)); opacity: .7; }

/* 메뉴 버튼(모바일) */
.sxn-burger { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255,255,255,.22); border-radius: 9999px; background: transparent; color: #fff; cursor: pointer; }
.sxn-burger i { position: relative; display: block; width: 16px; height: 1.5px; background: currentColor; transition: background-color .2s ease; }
.sxn-burger i::before, .sxn-burger i::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: currentColor; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.sxn-burger i::before { transform: translateY(-5px); }
.sxn-burger i::after { transform: translateY(5px); }
.sxn-burger[aria-expanded="true"] i { background: transparent; }
.sxn-burger[aria-expanded="true"] i::before { transform: rotate(45deg); }
.sxn-burger[aria-expanded="true"] i::after { transform: rotate(-45deg); }
.sxn-sheet-cta { display: none; }

/* 오른쪽 칸 — 로그인(하위 페이지는 .sxn-auth, 로그인 상태면 sx-nav.js가 '마이페이지'로) · 무료 검사 · 메뉴 버튼 */
.sxn .sx-nav-right { display: flex; align-items: center; gap: 8px; }
.sxn .sxn-auth { display: flex; align-items: center; gap: 8px; }
.sxn .sx-nav-cta { display: none; background: #fff; color: #000; border: 1px solid #fff; }
.sxn .sx-nav-cta:hover { background: #d4d4d8; border-color: #d4d4d8; }
@media (min-width: 900px) { .sxn .sx-nav-cta { display: inline-flex; } }
.sxn-greet { display: none; font-size: 13.5px; color: #d4d4d8; white-space: nowrap; } /* 마이페이지 인사말 — 좁은 휴대폰은 숨김 */
@media (min-width: 480px) { .sxn-greet:not(:empty) { display: inline; } }
/* 지금 보고 있는 페이지 — 링크 이름 앞 블루 점, PC는 그 묶음 메뉴 아래에도 점 */
.sxn-link[aria-current="page"] b::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px 0; border-radius: 50%; vertical-align: middle;
    background: var(--mf-primary-200); box-shadow: 0 0 8px rgba(187,208,255,.8); }
.sxn-trigger.is-cur { color: #fff; }
/* 모바일 시트가 열린 동안 상단바를 하단 탭바(z-index 60) 위로 — 시트 맨 아래 버튼이 탭바에 가리지 않게 */
.mf-appbar.sxn.is-sheet { z-index: 70; }
/* 가이드·유형 페이지: 상단바 아래 선이 읽은 만큼 차오른다(content-aside.js — 옛 왼쪽 레일의 진행선을 옮김) */
.sxn-read { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.sxn-read i { display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--mf-primary), var(--mf-primary-200)); box-shadow: 0 0 8px rgba(187,208,255,.6); }

/* ── 모바일: 전체 화면 시트 + 아코디언 ── */
@media (max-width: 899.98px) {
    .sxn.is-sheet .sxn-nav { display: block; position: fixed; left: 0; right: 0; top: 60px; bottom: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain;
        padding: 8px 20px 28px; background: #000; border-top: 1px solid #1e2c31; animation: sxn-sheet .28s cubic-bezier(.2,.7,.2,1) both; }
    @keyframes sxn-sheet { from { opacity: 0; transform: translateY(-10px); } }
    .sxn-item { border-bottom: 1px solid #1e2c31; }
    .sxn-trigger { width: 100%; height: 58px; padding: 0 4px; justify-content: space-between; border-radius: 0; font-size: 17px; font-weight: 500; color: #fff; }
    .sxn-trigger:hover, .sxn-trigger[aria-expanded="true"] { background: transparent; }
    .sxn-trigger svg { width: 14px; height: 14px; color: #a1a1aa; }
    .sxn-panel__in { padding: 0 0 14px; }
    .sxn-col + .sxn-col { margin-top: 10px; }
    .sxn-link { padding: 10px 4px; }
    .sxn-feature { display: none; }
    .sxn-sheet-cta { display: grid; gap: 10px; margin-top: 22px; }
    .sxn-sheet-cta a, .sxn-sheet-cta button { display: flex; align-items: center; justify-content: center; height: 52px; border-radius: 9999px; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; }
    .sxn-sheet-cta .is-primary { background: #fff; color: #000; border: 0; }
    .sxn-sheet-cta .is-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
    html.sxn-lock, html.sxn-lock body { overflow: hidden; }
}

/* ── PC: 상단바 아래로 펼쳐지는 패널 ── */
@media (min-width: 900px) {
    .sxn-burger { display: none; }
    .sxn-nav { display: block; margin: 0 auto 0 28px; }
    .sxn-list { display: flex; align-items: center; gap: 2px; }
    .sxn-trigger.is-cur { position: relative; }
    .sxn-trigger.is-cur::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--mf-primary-200); }
    .sxn-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; background: #0a0a0a; border-bottom: 1px solid #1e2c31; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
    .sxn-panel:not(.is-open) { border-bottom-color: transparent; box-shadow: none; }
    .sxn-panel__in { max-width: 1160px; margin: 0 auto; padding: 26px 20px 30px; display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)) 300px; gap: 28px; align-items: start; }
    .sxn-scrim { position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
    .sxn-scrim.is-on { opacity: 1; pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .sxn-panel, .sxn-panel__in, .sxn-trigger svg, .sxn-burger i::before, .sxn-burger i::after { transition: none; }
    .sxn.is-sheet .sxn-nav { animation: none; }
}
