/* 사이드 메뉴 부품(2026-10-24 개편, 어랍쇼 시안 PC v2·폰 v4): PC는 왼쪽 세로, 폰(760px 아래)은 서랍.
   묶음 제목은 작고 흐린 고딕 대문자 + 가는 밑줄, 항목은 명조(분류 줄과 같은 글꼴)라 둘이 구분된다. 색·글꼴은 site.css 토큰만. */
.sidenav-layout { display: grid; grid-template-columns: 168px minmax(0, 1fr); column-gap: clamp(20px, 3vw, 48px); align-items: start; }
.sidenav-layout > * { min-width: 0; }
.sidenav { position: sticky; top: 24px; padding-top: 36px; }
.sidenav h2 { margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font: 600 10.5px var(--sans); letter-spacing: .18em; color: var(--faint); text-transform: uppercase; }
.sidenav ul + h2 { margin-top: 26px; }
/* 이름 | 글 수 | (섞기) 세 칸: 글 수는 그 묶음에서 가장 긴 이름 바로 뒤에 줄 맞춰 붙는다(2026-10-26 어랍쇼 '숫자가 멀다'). 줄(a)은 subgrid로 앞 두 칸을 같이 씀 */
.sidenav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: max-content max-content 1fr; row-gap: 2px; }
.sidenav li { display: contents; }
.sidenav a { grid-column: 1 / 3; display: grid; grid-template-columns: subgrid; align-items: baseline; padding: 7px 0; text-decoration: none; font: 400 15px var(--serif); color: var(--muted); transition: color .2s; }
.sidenav a:hover, .sidenav a[aria-current] { color: var(--ink); }
.sidenav a[aria-current] { font-weight: 700; }
.sidenav small { justify-self: end; padding-left: 18px; font: 400 11px var(--serif); color: var(--faint); font-variant-numeric: tabular-nums; }
.sidenav-shuffle { grid-column: 3; justify-self: start; align-self: center; margin-left: 8px; padding: 4px; border: 0; background: none; color: var(--faint); cursor: pointer; line-height: 0; transition: color .2s; }
.sidenav-shuffle:hover, .sidenav-shuffle:focus-visible { color: var(--ink); }
.sidenav-shuffle svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.sidenav-shuffle.spin svg { animation: sidenav-spin .45s ease; }
@keyframes sidenav-spin { 50% { transform: scaleX(-1); } }
.sidenav-toggle { display: none; }
.sidenav-scrim { display: none; }
@media (max-width: 760px) {
  .sidenav-layout { grid-template-columns: minmax(0, 1fr); }
  /* 머리줄 메뉴 줄의 지금 메뉴 이름 앞에 가는 ☰ */
  .sidenav-toggle { display: inline-flex; align-self: baseline; font: inherit; border: 0; background: none; padding: 0 6px 0 0; margin-right: -6px; color: var(--ink); cursor: pointer; }
  .sidenav-toggle svg { display: block; width: 1.25em; height: .72em; stroke: currentColor; stroke-width: 1.3; fill: none; } /* 높이 = 메뉴 글자(대문자) 높이, 글자 바닥선에 맞춤(2026-10-25 어랍쇼: 글자보다 아래로 처짐) */
  .sidenav-toggle.hint svg { animation: sidenav-hint .6s ease-in-out 4 alternate; } /* 처음 2초쯤 깜빡여 있다는 걸 알림(어랍쇼 2026-10-24) */
  .sidenav {
    position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: min(78vw, 300px); overflow-y: auto;
    padding: calc(24px + env(safe-area-inset-top, 0px)) 22px 24px; background: var(--wall); border-right: 1px solid var(--line);
    transform: translateX(-102%); transition: transform .25s ease; visibility: hidden;
  }
  .sidenav.open { transform: none; visibility: visible; }
  .sidenav-scrim.open { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(35, 34, 31, .35); }
}
@keyframes sidenav-hint { to { opacity: .15; } }
@media (prefers-reduced-motion: reduce) { .sidenav { transition: none; } .sidenav-toggle.hint svg { animation: none; } }
