/* 도구 탭(/tools/)과 임시 첫 쪽 — 2026-11-03 사용자 «측면에 밑줄그어진 세로형 탭» · «간단하게 ui 생성기» ·
   «사이드에 서브탭은 완전 측면으로 넘겨 · 움직임멈춤 체크박스 삭제하고 그 위치에 열기 버튼 · 쓸모없는 텍스트를 없애거나 최소화».
   토큰 · 단추 · 옮겨 온 칸(끌어 보기 · 세 걸음 · 숫자로 다듬기 · 틀 견본)은 home.css(.hm) 를 그대로 쓴다.
   글자 단 12 · 14 · 16 · 20 + 제목 하나(40) · 쉬는 것 그림자 없음 · 인라인 style 없음(CSP) */

/* 도구 쪽 — 세로 탭(레일)은 본문 기준 폭(1040) 밖 왼쪽 여백에, 본문은 화면 가운데 기준(11-03 «사이트탭도 아예 기준내용 밖으로 뺴버려»).
   가운데 칸이 본문, 왼쪽 칸이 여백 — 레일은 그 여백의 왼쪽 끝(위 막대 «burbielab» 과 같은 줄)에 붙는다 */
.hm.tl { max-width: none; margin: clamp(8px, 2vw, 24px) 0 0; display: grid; grid-template-columns: minmax(148px, 1fr) minmax(0, 1040px) minmax(0, 1fr); column-gap: 24px; align-items: start; }
.hm .tl-side { grid-column: 1; justify-self: start; width: 148px; position: sticky; top: 88px; }
.hm .tl-side ul { margin: 0; padding: 0; list-style: none; }
.hm .tl-side li { border-bottom: 1px solid #d9d9d3; }
.hm .tl-side a { display: block; padding: 12px 2px 10px; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--fg); text-decoration: none; }
.hm .tl-side li:has(a[aria-current="page"]) { border-bottom: 2px solid var(--fg); }   /* 지금 탭 — 굵은 밑줄 */
.hm .tl-side a[aria-current="page"] { font-weight: 700; }
@media (hover: hover) { .hm .tl-side a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.hm .tl-main { grid-column: 2; container: hm / inline-size; min-width: 0; }   /* 옮겨 온 칸의 @container hm 규칙이 본문 폭을 보게 */
.hm .tl-title { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }   /* 이름 왼쪽 · «열기» 오른쪽(옛 움직임 멈춤 자리) */
.hm .tl-title h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.03em; }
.hm.tl .cmpw { margin-top: 28px; }
.hm.tl .cmp-cap { justify-content: space-between; }
.hm.tl .gal a { gap: 0; }

/* 임시 첫 쪽 — 문 셋(그림 + 한 낱말) */
.hm.hb { margin-top: clamp(24px, 5vw, 64px); }
.hm .hb-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.hm .hb-doors a { display: grid; gap: 12px; align-content: start; height: 100%; padding: 12px 12px 18px; border-radius: var(--r); background: var(--card); color: var(--fg); text-decoration: none; transition: transform var(--eq-duration) var(--eq-ease); }
.hm .hb-doors .im { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: calc(var(--r) - 8px); background: var(--bg); }
.hm .hb-doors .im img { width: 100%; height: 100%; object-fit: cover; }
.hm .hb-doors .im svg { width: 64px; height: 64px; fill: none; stroke: var(--link); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hm .hb-doors b { padding: 0 6px; font-size: 20px; line-height: 1.3; }
@media (hover: hover) { .hm .hb-doors a:hover { transform: translateY(-4px); } }
.hm .hb-doors a:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .hm .hb-doors a { transition: none; } .hm .hb-doors a:hover { transform: none; } }

@media (max-width: 760px) {
  .hm.tl { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hm .tl-side, .hm .tl-main { grid-column: 1; width: auto; }
  .hm .tl-side { position: static; }
  .hm .tl-side ul { display: flex; gap: 20px; overflow-x: auto; border-bottom: 1px solid #d9d9d3; }
  .hm .tl-side li { flex: none; border-bottom: 0; }
  .hm .tl-side li:has(a[aria-current="page"]) { border-bottom: 2px solid var(--fg); }
  .hm .tl-side a { padding: 10px 2px 8px; }
  .hm .hb-doors { grid-template-columns: minmax(0, 1fr); }
}
