/* 라떼군 포털 패밀리의 머리줄(GNB)과 푸터. 정본은 mrlatte-app/portal/chrome.css 이고 워크스페이스 scripts/sync-portal.mjs 가
   mrlatte.app 첫 화면(site/index.html 의 portal-chrome 사이)과 서브도메인 서비스(<서비스>.mrlatte.app)에 배급한다. 배급본은 고치지 않는다.
   머리줄은 로고 왼쪽, 오른쪽은 지면의 단추들이다. 서브도메인은 로고 옆에 서비스 이름(.gnb-svc), 가운데에 그 서비스의 메뉴(.gnb-nav),
   오른쪽 끝에 「전체 서비스」(.gnb-all, 포털과 서브도메인 서비스 목록)를 둔다.
   푸터는 모든 포털 지면이 같고(2026-12-01 운영자 지시: 완전히 같은 푸터) 꼴은 www.mrlatte.net 의 잉크 띠다(같은 날 운영자 지시:
   www 를 참고해서): 왼쪽에 포털 이름과 한 줄 소개, 오른쪽에 서비스, 안내, 문의 칸, 아래 © 줄(기울인 이름, © Mr. Latte, 소셜 아이콘).
   마크업은 chrome.js 의 footGridHtml, footBottomHtml 이 그린다. 서비스만의 링크는 푸터에 두지 않는다.
   머리줄 색은 --mc-* 팔레트가 정하고 지면의 :root, 어둡게, 사진 배경이 값을 바꾼다. 푸터 띠 색은 --mc-ink 하나다. */

/* ── 머리줄: 화면 폭 끝까지 가는 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: 19px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-decoration: none;
  text-shadow: var(--mc-brand-shadow, none);
  white-space: nowrap;
}
.gnb .gnb-brand .b { flex-shrink: 0; color: var(--mc-brand, #15181d); font-weight: 800; }
.gnb .gnb-brand > span:last-child { color: var(--mc-accent, #8a5a36); }
.gnb .gnb-brand > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* 그림은 크기를 박아 둔다. 그림이 늦게 와도 워드마크가 밀리지 않는다. */
.gnb .gnb-mark {
  display: block;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 50%;
}
/* 머리줄은 로고만 보인다(2026-11-30 운영자 지시). 이름은 화면 낭독기와 검색을 위해 h1 안에 남긴다. */
.gnb .gnb-brand > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* 오른쪽: 시작 페이지로 설정(글자 링크, 넓은 화면만) → 꾸미기 → 로그인이나 프로필 → 메뉴. */
.gnb .gnb-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* 단추 한 모양(꾸미기, 메뉴). 로그인은 같은 크기에 채운 색(.gnb-primary)이다. */
.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-btn.gnb-primary { border-color: var(--mc-primary, #1c1f26); background: var(--mc-primary, #1c1f26); color: var(--mc-on-primary, #ffffff); }
.gnb .gnb-btn.gnb-primary:hover { border-color: var(--mc-primary-hover, #343943); background: var(--mc-primary-hover, #343943); }

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

/* 글자 링크(시작 페이지로 설정). 단추와 같은 높이와 둥근 정도이고 테두리가 없다. 좁은 화면에서는 메뉴에만 있다. */
.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; }
.gnb .gnb-link { font-size: 13px; color: var(--mc-brand-muted, #5b6270); }
@media (max-width: 767px) { .gnb .gnb-link { display: none; } }

/* ── 푸터: 화면 폭 끝까지 가는 잉크 띠(www.mrlatte.net 과 같은 꼴, 정본 mrlatte packages/chrome/mrlatte-chrome.css 를 옮겼다).
   🔴 모바일에서 링크 칸을 1열로 쌓지 않는다. .foot-cols 가 2열로 나란히 두고, 640px 부터는 display:contents 로 풀려
   칸들이 .foot-grid 의 줄에 직접 선다. 칸 폭은 www 와 같아 서비스, 안내, 문의가 www 의 이동, 라떼군, 문의 자리에 선다. ── */
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 .fbrand a { color: inherit; text-decoration: none; }
.site-foot .fbrand a:hover { text-decoration: underline; }
.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 .flinks .strong { color: #ffffff; font-weight: 700; }
.site-foot .flinks a[aria-current="page"] { color: #ffffff; }
.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; text-decoration: none; }
.site-foot .foot-bottom a { color: inherit; text-decoration: none; }
.site-foot .foot-bottom a:hover { color: #ffffff; text-decoration: underline; }
.site-foot .foot-bottom .foot-mark:hover { color: #ffffff; }
/* 소셜: © 줄 오른쪽(www 와 같다). 아이콘 16px, 누르는 칸 24px. */
.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; }

/* ── 서브도메인 서비스의 머리줄 ──
   포털 그림(→ mrlatte.app) | 서비스 이름(→ 그 서비스 첫 화면). 포털 첫 화면은 이름을 숨기지만(로고만) 서브도메인은 서비스 이름을 보인다.
   고른 안: 포털 그림과 서비스 이름을 나란히(네이버 뉴스, 다음 카페처럼 어느 서비스든 포털의 한 칸으로 읽힌다).
   버린 안: 서비스마다 제 로고만(포털 패밀리로 읽히지 않는다), 머리줄 아래 서비스 띠(서비스가 적을 때 빈 띠가 되고 화면 한 줄을 늘 쓴다). */
.gnb .site-title { gap: 0; }
.gnb .gnb-svc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 36px;
  margin: 0 0 0 12px;
  padding: 0 0 0 12px;
  border-left: 1px solid var(--mc-bar-line, #e6e9ee);
  color: var(--mc-svc, var(--mc-brand, #15181d));
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}
.gnb .gnb-svc > span { overflow: hidden; text-overflow: ellipsis; }
.gnb .gnb-svc svg { flex: none; color: var(--mc-svc-accent, currentColor); }
.gnb .gnb-svc:focus-visible { outline: 2px solid var(--mc-focus, #2f5fd0); outline-offset: 2px; border-radius: 6px; }
@media (max-width: 380px) { .gnb .gnb-svc { margin-left: 8px; padding-left: 8px; font-size: 16px; } }

/* 그 서비스의 메뉴(구역이나 지면). 넓은 화면만 보이고, 좁은 화면은 서비스가 제 지면 안에 둔다. */
.gnb .gnb-nav { display: none; align-items: center; gap: 2px; min-width: 0; margin: 0 0 0 auto; }
.gnb .gnb-nav a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--mc-brand-muted, #5b6270);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.gnb .gnb-nav a:hover,
.gnb .gnb-nav a[aria-current="page"] { background: var(--mc-btn-hover-bg, #eef1f5); color: var(--mc-brand, #15181d); }
.gnb .gnb-nav a:focus-visible { outline: 2px solid var(--mc-focus, #2f5fd0); outline-offset: 2px; }
@media (min-width: 960px) { .gnb .gnb-nav { display: flex; } .gnb .gnb-nav + .gnb-actions { margin-left: 8px; } }

/* 「전체 서비스」: 포털과 서브도메인 서비스 목록을 여는 단추와 펼침 칸. 목록은 portal/chrome.js 가 그린다. */
.gnb .gnb-all { position: relative; }
.gnb .mc-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  box-sizing: border-box;
  width: min(320px, calc(100vw - 24px));
  margin: 0;
  padding: 8px;
  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, .16);
  color: var(--mc-brand, #15181d);
  text-align: left;
  text-shadow: none;
}
.gnb .mc-pop h2 { margin: 4px 8px 6px; color: var(--mc-brand-muted, #5b6270); font-size: 12px; font-weight: 800; line-height: 1.4; }
.gnb .mc-pop ul { margin: 0; padding: 0; list-style: none; }
.gnb .mc-pop a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 8px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}
.gnb .mc-pop a:hover,
.gnb .mc-pop a[aria-current="page"] { background: var(--mc-btn-hover-bg, #eef1f5); }
.gnb .mc-pop a:focus-visible { outline: 2px solid var(--mc-focus, #2f5fd0); outline-offset: -2px; }
.gnb .mc-pop img { flex: none; width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.gnb .mc-pop .mc-t { display: flex; flex-direction: column; min-width: 0; }
.gnb .mc-pop b { font-size: 14px; font-weight: 700; line-height: 1.35; }
.gnb .mc-pop small { overflow: hidden; color: var(--mc-brand-muted, #5b6270); font-size: 12px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
