/* 상단 메뉴 한 벌(#104) — 소개 사이트(랜딩 · 데모 · 반 친구 등장)와 제작실 공개 화면(체험 · 사과 잡기)이 이 파일 하나를 쓴다.
   화면 전체 폭의 띠 + 가운데 --wrap(1180px) 안에 로고 · 메뉴 · 언어 · 단추. 색 · 글꼴은 :root 토큰(site.css 첫 블록 = 제작실 /tokens.css).
   마크업: src/landing/partials/topbar.html · src/story_studio/templates/_try_top.html — 클래스 · 항목이 같아야 한다(시험이 본다). */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: var(--gap); min-height: 64px; box-sizing: border-box; max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.brand-name { display: inline-flex; flex-direction: column; gap: 4px; line-height: 1; }
.brand-name small { font: .72rem/1 var(--f-body); color: var(--ink-2); }
.brand-dot { width: 22px; height: 22px; border-radius: 50% 50% 46% 54%; background: var(--green);
  box-shadow: inset -5px -4px 0 var(--yellow); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font: var(--s-small)/1.6 var(--f-body); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--green);
  text-decoration-thickness: 2.5px; text-underline-offset: 7px; }
.top-act { display: flex; align-items: center; gap: 14px; }
.lang-sw { display: inline-flex; align-items: center; gap: 2px; padding: 3px 3px 3px 9px; border: 1.5px solid var(--line); border-radius: 999px;
  font: .8rem/1 var(--f-body); letter-spacing: .05em; }
.lang-sw .globe { width: 15px; height: 15px; margin-right: 3px; fill: none; stroke: var(--ink-2); stroke-width: 1.7; }
.lang-sw a, .lang-sw span { padding: 6px 9px; border-radius: 999px; color: var(--ink-2); text-decoration: none; }
.lang-sw [aria-current] { background: var(--ink); color: var(--paper); }
.lang-sw a:hover { color: var(--ink); background: var(--paper-2); }
.lang-sw [lang="en"] { order: 2; }
/* 단추 — 로고만 빼고 메뉴와 같은 글꼴 · 크기(제목 글꼴 Jua 를 쓰지 않는다). 다른 페이지 CSS 의 .btn 에 기대지 않는다 */
.top-cta, .top-login { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 38px; padding: 0 16px;
  border-radius: 999px; border: 2px solid var(--green); font: var(--s-small)/1 var(--f-body); text-decoration: none; white-space: nowrap; }
.top-cta { background: var(--green); color: var(--green-ink); }
.top-login { background: transparent; color: var(--green); }
.top-cta:hover, .top-login:hover { filter: brightness(1.06); }
@media (max-width: 960px) {
  /* 메뉴를 숨기지 않는다 — 둘째 줄로 내려 페이지 링크를 늘 보인다(휴대폰에서 페이지 이동이 안 되던 것) */
  .top-in { flex-wrap: wrap; row-gap: 4px; padding-block: 8px; }
  .top-act { margin-left: auto; }
  .nav { order: 3; width: 100%; margin-left: 0; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
  .nav a { flex: 1; text-align: center; padding: 6px 4px; border-radius: 8px; white-space: nowrap; }
}
@media (max-width: 720px) { .top-cta { display: none; } }  /* 좁은 화면에서도 로그인은 남긴다(맨 오른쪽) */
@media (max-width: 460px) {  /* 영어 메뉴 네 개가 폰 폭에서 넘치지 않게(#101) */
  .nav { gap: 4px; }
  .nav a { padding: 6px 1px; font-size: .86rem; letter-spacing: -.01em; }
}
