/* 생성물: packages/chrome/mrlatte-chrome.css 에서 scripts/sync-chrome.mjs 가 복사한다. 여기를 고치지 말고 정본을 고친다. */
/* mrlatte.net 다섯 사이트(www, news, accounts, ads, start)가 함께 쓰는 머리줄(GNB)과 푸터(2026-11-29 운영자 지시).
   정본은 packages/chrome/mrlatte-chrome.css 하나다. scripts/sync-chrome.mjs 가 사이트마다 복사하고(start 는 index.html 안에 넣는다)
   CI 가 --check 로 사본이 정본과 같은지 본다. 사본을 고치지 말고 정본을 고친 뒤 node scripts/sync-chrome.mjs 를 돌린다.
   사이트가 바꾸는 것은 아래 --mc-* 팔레트 변수뿐이다. 값마다 기본값(accounts, ads 의 라이트 토큰)이 있어 변수를 두지 않은 사이트도 같은 모양이다.

   팔레트: --mc-bar-bg 바 바탕(반투명), --mc-bar-line 바 아래 선, --mc-brand / --mc-brand-muted / --mc-brand-shadow 워드마크와 메뉴 글자,
   --mc-btn-bg / --mc-btn-text / --mc-btn-line / --mc-btn-hover-bg / --mc-btn-hover-line 단추, --mc-focus 초점 테두리,
   --mc-pop-bg / --mc-pop-line 언어 메뉴, --mc-ink 푸터 띠, --mc-foot-gap 푸터 위 여백. */

/* ── 머리줄: 화면 폭 끝까지 가는 sticky 바, 안은 페이지 틀(--page-max-w, --page-gutter) ── */
.gnb {
  position: sticky;
  top: 0;
  z-index: 60;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--mc-bar-line, #e6e9ee);
  background: transparent;
  color: var(--mc-brand, #15181d);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
}
/* 🔴 blur 를 바 자신에 걸지 않는다. backdrop-filter 가 걸린 요소는 안쪽 position:fixed 의 기준 상자가 되어
   www 와 news 의 휴대폰 메뉴(바 안의 fixed 오버레이)가 화면 대신 바 60px 안에 갇힌다. 그래서 뒤판 가상 요소에 건다. */
.gnb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--mc-bar-bg, rgba(242, 244, 247, .82));
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  pointer-events: none;
}
.gnb [hidden] { display: none !important; }
.gnb .gnb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--page-max-w, 80rem);
  height: 60px;
  margin-inline: auto;
  padding-inline: var(--page-gutter, 1rem);
}

/* 왼쪽: 사이트 그림 + 워드마크 「라떼군 <이름>」. 접두(.b)는 흐리게, 이름은 굵게. h1 이나 p 로 감싸도, h1 자신이 워드마크여도 같다. */
.gnb h1,
.gnb .site-title {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.gnb .gnb-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
  color: var(--mc-brand, #15181d);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-decoration: none;
  text-shadow: var(--mc-brand-shadow, none);
  white-space: nowrap;
}
.gnb .gnb-brand .b { flex-shrink: 0; color: var(--mc-brand-muted, #5b6270); font-weight: 700; }
.gnb .gnb-brand > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* 그림은 크기를 박아 둔다. 그림이 늦게 와도 워드마크가 밀리지 않는다. */
.gnb .gnb-mark {
  display: block;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin: 0 2px 0 0;
  border-radius: 50%;
}
/* 언어 고르기가 있는 바(accounts, ads)는 좁은 폭에서 접두(Mr. Latte)를 감추고 그림이 그 자리를 맡는다. 「Mr. Latte」는 「라떼군」보다
   25px 길어 영어, 일본어, 중국어는 360, 390px 에서 언어 단추, 다른 단추와 한 줄에 못 들어간다(ads 실측). 한국어는 320px 에서도 들어가고,
   언어 단추가 없는 www, news, start 는 360px 에서도 영어와 일본어 제목이 그대로 들어간다(2026-11-29 실측). */
@media (max-width: 430px) { html:not([lang="ko"]) .gnb:has(.lang-dd) .gnb-brand .b { display: none; } }

/* 오른쪽: 사이트 메뉴 → 언어 → 로그인이나 프로필 → 휴대폰 메뉴 순서(워크스페이스 AGENTS.md 「GNB 우측 순서」). */
.gnb .gnb-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* 단추 한 모양(로그인, 광고 관리, 언어, 꾸미기, 메뉴). 높이, 테두리, 둥근 정도, 글자 크기가 다섯 사이트에서 같다. */
.gnb .gnb-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  height: 36px;
  min-height: 0;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--mc-btn-line, #d5dae2);
  border-radius: 8px;
  background: var(--mc-btn-bg, #ffffff);
  color: var(--mc-btn-text, #15181d);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  text-decoration: none;
  text-shadow: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.gnb .gnb-btn:hover { border-color: var(--mc-btn-hover-line, #646b78); background: var(--mc-btn-hover-bg, #eef1f5); }
.gnb .gnb-btn:focus-visible,
.gnb .gnb-link:focus-visible,
.gnb .gnb-brand:focus-visible,
.gnb .gnb-avatar:focus-visible { outline: 2px solid var(--mc-focus, #2f5fd0); outline-offset: 2px; }
.gnb .gnb-btn.gnb-icon { width: 36px; padding: 0; }
.gnb .gnb-btn svg { flex: none; }
/* 손가락으로 누르는 자리는 모양을 두고 누르는 영역만 44px 로 넓힌다. */
@media (pointer: coarse) { .gnb .gnb-btn::after { content: ""; position: absolute; inset: -4px; } }

/* 로그인한 사람의 그림 단추. 안쪽(사진, 첫 글자)은 사이트가 그린다. */
.gnb .gnb-avatar { flex: none; box-sizing: border-box; width: 32px; height: 32px; min-height: 0; border-radius: 50%; }

/* 사이트 메뉴의 글자 링크(www, news). 단추와 같은 높이와 둥근 정도이고 테두리가 없다. */
.gnb .gnb-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
  height: 36px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--mc-brand, #15181d);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  text-shadow: var(--mc-brand-shadow, none);
  cursor: pointer;
}
.gnb .gnb-link:hover,
.gnb .gnb-link[aria-current="page"] { background: var(--mc-btn-hover-bg, #eef1f5); text-shadow: none; }

/* 로그인 칸(accounts, ads). 로그인 전은 「로그인」 단추(.gnb-btn.gnb-signin), 로그인 뒤는 그림 단추(.gnb-me-btn)와 팝오버(.gnb-pop)다.
   첫 그림은 <html data-auth> 가 가른다: 없음 = 로그인 단추, pending = 그림 단추 크기의 자리 표시, in = 그림 단추.
   동작은 gnb-account.js(정본 packages/chrome/)가 맡는다. www, news 의 site-auth 와 start 의 계정 단추는 같은 자리, 같은 크기를 자기 지면에서 그린다. */
.gnb .gnb-auth { position: relative; display: flex; align-items: center; }
.gnb .gnb-me { position: relative; display: flex; }
.gnb .gnb-auth > .gnb-skel,
.gnb .gnb-auth > .gnb-me { display: none; }
html[data-auth="pending"] .gnb .gnb-auth > .gnb-skel { display: block; }
html[data-auth="pending"] .gnb .gnb-auth > .gnb-signin,
html[data-auth="in"] .gnb .gnb-auth > .gnb-signin { display: none; }
html[data-auth="in"] .gnb .gnb-auth > .gnb-me { display: flex; }
.gnb .gnb-skel { background: var(--mc-btn-hover-bg, #eef1f5); }
/* 🔴 그림 단추에 overflow:hidden 을 걸지 않는다. 손가락 기기에서 누르는 영역을 넓히는 ::after 가 잘린다. 사진은 자기가 둥글다. */
.gnb .gnb-me-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid var(--mc-btn-line, #d5dae2);
  background: var(--mc-pop-bg, #ffffff);
  color: var(--mc-btn-text, #15181d);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.gnb .gnb-me-btn:hover { border-color: var(--mc-btn-hover-line, #646b78); }
.gnb .gnb-me-btn img,
.gnb .gnb-pop-ava img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
@media (pointer: coarse) { .gnb .gnb-me-btn::after { content: ""; position: absolute; inset: -6px; } }

/* 계정 팝오버: 머리(그림, 이름, 이메일) 아래 선 하나, 그 아래 줄들. 🔴 줄은 링크든 단추든 같은 높이이고 줄 사이 간격은 하나다
   (워크스페이스 docs/rules/ui-canon.md 「같은 메뉴의 행동은 같은 행 스타일」). 다른 사이트로 가는 줄(새 탭)은 끝에 ↗ 가 붙는다. */
.gnb .gnb-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  box-sizing: border-box;
  width: 272px;
  max-width: calc(100vw - 2rem);
  margin: 0;
  padding: 6px;
  border: 1px solid var(--mc-pop-line, #e6e9ee);
  border-radius: 12px;
  background: var(--mc-pop-bg, #ffffff);
  box-shadow: 0 10px 30px rgba(20, 23, 28, .14);
  color: var(--mc-btn-text, #15181d);
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}
.gnb .gnb-pop-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0 0 6px;
  padding: 8px 10px 12px;
  border-bottom: 1px solid var(--mc-pop-line, #e6e9ee);
}
.gnb .gnb-pop-ava {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mc-btn-hover-bg, #eef1f5);
  font-size: 14px;
  font-weight: 700;
}
.gnb .gnb-pop-who { display: flex; flex-direction: column; min-width: 0; }
.gnb .gnb-pop-name,
.gnb .gnb-pop-email { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gnb .gnb-pop-name { font-size: 14px; font-weight: 700; }
.gnb .gnb-pop-email { color: var(--mc-brand-muted, #5b6270); font-size: 12.5px; }
.gnb .gnb-pop-rows { display: grid; gap: 2px; }
.gnb .gnb-pop-row {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--mc-btn-text, #15181d);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: left;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.gnb .gnb-pop-row:hover { background: var(--mc-btn-hover-bg, #eef1f5); }
.gnb .gnb-pop-row:focus-visible { outline: 2px solid var(--mc-focus, #2f5fd0); outline-offset: -2px; }
.gnb .gnb-pop-row[target="_blank"]::after { content: "\2197"; content: "\2197" / ""; margin-left: .3em; font-size: .85em; }
@media (pointer: coarse) { .gnb .gnb-pop-row { padding-block: 12px; } }

/* 언어 고르기(accounts, ads). 단추는 .gnb-btn 이고 메뉴만 여기서 그린다. 네이티브 select 는 쓰지 않는다. */
.gnb .lang-dd { position: relative; }
.gnb .lang-dd-globe { flex-shrink: 0; opacity: .85; }
/* 캐럿이 열림을 말한다. 지구본만 있으면 눌러야 열리는 것인지 알 수 없다. */
.gnb .lang-dd-caret { flex-shrink: 0; transition: transform .18s; }
.gnb .lang-dd-btn[aria-expanded="true"] .lang-dd-caret { transform: rotate(180deg); }
/* 사이트 메뉴(글자 링크)도 있는 바(ads)는 휴대폰에서 언어 단추를 지구본과 캐럿만 남긴다. 이름은 단추의 aria-label 이 말한다.
   그대로 두면 390px 에서 워드마크가 말줄임으로 잘린다(2026-11-29 실측: 「라떼군 광고」, 「Ads」). */
@media (max-width: 480px) { .gnb:has(.gnb-link) .lang-dd-btn > span { display: none; } }
.gnb .lang-dd-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  box-sizing: border-box;
  min-width: 148px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--mc-pop-line, #e6e9ee);
  border-radius: 12px;
  background: var(--mc-pop-bg, #ffffff);
  box-shadow: 0 10px 30px rgba(20, 23, 28, .14);
}
.gnb .lang-dd-menu li { margin: 0; padding: 0; }
.gnb .lang-dd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 9px 11px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--mc-btn-text, #15181d);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.gnb .lang-dd-item:hover { background: var(--mc-btn-hover-bg, #eef1f5); }
.gnb .lang-dd-item[aria-selected="true"] { font-weight: 700; }
/* 🔴 선택을 색으로만 알리지 않는다. 체크가 있어야 색을 못 가리는 사람에게도 읽힌다. */
.gnb .lang-dd-check { visibility: hidden; color: var(--mc-focus, #2f5fd0); }
.gnb .lang-dd-item[aria-selected="true"] .lang-dd-check { visibility: visible; }

/* ── 푸터: 화면 폭 끝까지 가는 잉크 띠(ads.mrlatte.net 이 기준). 브랜드와 한 줄 소개 / 그 사이트의 이동 / 약관 / 라떼군 / 문의, 아래 © 행.
   🔴 모바일에서 링크 칸을 1열로 쌓지 않는다. .foot-cols 가 2열로 나란히 두고, 640px 부터는 display:contents 로 풀려
   칸들이 .foot-grid 의 줄에 직접 선다. 칸 폭은 칸 수와 상관없이 같고 오른쪽 끝에 붙어, 칸이 적은 사이트도
   「라떼군」과 「문의」가 다른 사이트와 같은 자리에 선다(ads 의 1.5fr + 1fr 넷 격자와 같은 폭). ── */
footer.site-foot {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: var(--mc-foot-gap, 48px) 0 0;
  padding: 32px 0 20px;
  border: 0;
  background: var(--mc-ink, #1c1f26);
  color: #ffffff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}
.site-foot [hidden] { display: none !important; }
.site-foot :focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.site-foot .site-foot-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--page-max-w, 80rem);
  margin-inline: auto;
  padding-inline: var(--page-gutter, 1rem);
}
.site-foot .foot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.site-foot .foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
@media (min-width: 640px) {
  .site-foot .foot-grid { display: flex; align-items: flex-start; gap: 32px; }
  .site-foot .foot-grid > :first-child { flex: 1 1 0; min-width: 0; }
  .site-foot .foot-cols { display: contents; }
  .site-foot .foot-cols > * { flex: 0 0 calc((100% - 128px) / 5.5); min-width: 0; }
}
.site-foot .fbrand { margin: 0; color: #ffffff; font-size: 17px; font-weight: 900; line-height: 1.4; letter-spacing: -.01em; }
.site-foot .ftag { max-width: 30rem; margin: 6px 0 0; color: rgba(255, 255, 255, .64); font-size: 13px; line-height: 1.6; text-align: left; text-wrap: pretty; }
.site-foot .fh { margin: 0 0 6px; color: #ffffff; font-size: 13px; font-weight: 700; line-height: 1.5; }
.site-foot .flinks { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.site-foot .flinks li { margin: 0; padding: 0; }
/* 링크 한 줄 = 24px(WCAG 2.5.8 최소 타깃). 줄 간격을 따로 벌리지 않는다. */
.site-foot .flinks a,
.site-foot .flinks button {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .64);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.site-foot .flinks a:hover,
.site-foot .flinks button:hover { color: #ffffff; text-decoration: underline; }
.site-foot .foot-bottom {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
}
.site-foot .foot-mark { color: rgba(255, 255, 255, .72); font-size: 15px; font-style: italic; font-weight: 900; }
.site-foot .foot-bottom > a { color: inherit; text-decoration: none; }
.site-foot .foot-bottom > a:hover { color: #ffffff; text-decoration: underline; }
/* 소셜: © 행 오른쪽. 아이콘 16px, 누르는 칸 24px. mrlatte 다섯 사이트에만 둔다. */
.site-foot .foot-social { display: flex; gap: 6px; margin-left: auto; }
.site-foot .foot-social a { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: rgba(255, 255, 255, .55); }
.site-foot .foot-social a:hover { color: #ffffff; }
.site-foot .foot-social svg { width: 16px; height: 16px; fill: currentColor; }
