/* ============================================================
   brand-guide.css — /brand/ 다섯 쪽 전용 레이어
   ------------------------------------------------------------
   eBay Playbook(Foundations)의 레이아웃 문법을 흰 지면으로 옮겼다.
   · 왼쪽 사이드바 + 본문 1000px, 오른쪽 목차 열 없음
   · h1 72 → 헤어라인 → 리드 20 / h2 36 → 헤어라인 → 본문 720px 폭 → 전폭 타일
   · 타일은 --bg-alt 평면, 모서리 0 (Remember Square는 각진 사각형이다)
   · 글자 카드는 상자에 넣지 않는다 — 그림은 타일, 배지·제목·설명은 타일 아래 흰 지면
   로드 순서: theme.remember.css → base.css → site.css → brand-guide.css
   모든 규칙은 body.brand-guide 아래에만 건다. 토큰만. 그림자 없음. 카드 좌측 띠 없음.
   ============================================================ */

body.brand-guide{
  --site-ground: var(--bg-bright);
  --site-surface: var(--bg-bright);
  --bg-rule: color-mix(in srgb, var(--text) 14%, transparent);   /* 제목 아래 헤어라인 */
  --tile: var(--bg-alt);                                         /* 미디어 타일 면 */
  --tile-pad: clamp(28px, 4.5vw, 64px);                          /* 타일 안쪽 여백 — 390px 28 / 1440px 64 */
  --sec: clamp(72px, 7.8vw, 112px);                              /* 섹션 사이 */
  --grid-col: 24px;                                              /* 카드 그리드 열 간격 */
  --grid-row: 56px;                                              /* 카드 그리드 행 간격 */
  background: var(--bg-bright);
}

/* ── 모서리 0 — 상자·타일·그림·스와치 전부. 알약형 컨트롤(버튼·배지·태그)만 예외 ── */
body.brand-guide .site-shell *{ border-radius:0 !important; }
body.brand-guide .site-shell :is(.pill, .bdg, .btn, .btn-dl, .llms-btn, .seg, .seg button, .tfhero .w button, .chips span, .callout .ic, .callout .i){
  border-radius:var(--radius-pill) !important;
}

/* ── 상단바 — 흰 면, 아래 헤어라인은 그대로 ── */
body.brand-guide .site-top{ background:var(--bg-bright); -webkit-backdrop-filter:none; backdrop-filter:none; }
body.brand-guide .site-nav a[aria-current="page"]{ background:var(--text); color:var(--bg-bright); }

/* ── 셸 — 사이드바 + 본문 1000px (1440 기준 본문 시작 x≈408) ── */
body.brand-guide .site-shell{
  grid-template-columns:280px minmax(0,1000px);
  column-gap:96px;
  max-width:1440px; margin:0 auto;
  padding:40px 32px 120px;
}
body.brand-guide .site-toc{ display:none; }
@media (max-width:1280px){ body.brand-guide .site-shell{ grid-template-columns:216px minmax(0,1fr); column-gap:56px; } }
@media (max-width:768px){ body.brand-guide .site-shell{ display:block; padding:24px 16px 96px; } }

body.brand-guide .site-side .group > .caption{ letter-spacing:0; }
body.brand-guide .site-side a[aria-current="page"]{ background:color-mix(in srgb, var(--text) 6%, transparent); color:var(--text); font-weight:600; }
@media (max-width:768px){ body.brand-guide .site-side summary{ background:var(--tile); } }

body.brand-guide .site-foot .inner{ max-width:1440px; padding:0 32px; }
@media (max-width:768px){ body.brand-guide .site-foot .inner{ padding:0 16px; } }

/* ── 문서 머리 — h1 · 헤어라인 · 리드 ── */
body.brand-guide .doc-crumb{ margin-bottom:24px; }
body.brand-guide .llms-btn{ letter-spacing:0; }
/* 2026-10-08 — 문서 제목은 디스플레이(첫 화면용 72px)가 아니라 본문용 제목 크기로. 48 → 섹션 제목 36 → 소제목 24 */
body.brand-guide .doc-title{
  font-size:48px; line-height:1.25; font-weight:600; letter-spacing:var(--ls-head);
  padding-bottom:0; border-bottom:0;   /* 2026-10-09 제목과 그 제목의 설명 문단 사이를 가르던 선을 뺐다(: 필요 없는 구분선) */
}
body.brand-guide .doc-def{
  font-size:20px; line-height:1.6; color:var(--text-muted); letter-spacing:var(--ls-body);
  max-width:700px; margin-top:28px;
}
body.brand-guide .doc-def + .caption{ max-width:700px; margin-top:12px; color:var(--text-faint); }
@media (max-width:768px){
  body.brand-guide .doc-title{ font-size:36px; line-height:1.25; padding-bottom:0; }
  body.brand-guide .doc-def{ font-size:18px; margin-top:20px; }
}

/* 히어로 — 전폭 타일 하나. 모양은 쪽마다 인라인, 자리만 여기서 */
body.brand-guide .bg-hero{ margin:48px 0 0; }
@media (max-width:768px){ body.brand-guide .bg-hero{ margin-top:32px; } }

/* ── 이 페이지에서 — 왼쪽 제목, 오른쪽 두 열 헤어라인 줄 ── */
body.brand-guide .otp{
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:32px;
  margin-top:96px;
}
body.brand-guide .otp-h{ font-size:36px; line-height:1.25; font-weight:600; letter-spacing:var(--ls-head); }
body.brand-guide .otp-list{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:24px;
  grid-template-rows:repeat(var(--rows,3), auto); grid-auto-flow:column;
}
body.brand-guide .otp-list a{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  min-height:44px; padding:0 2px;
  border-top:1px solid var(--bg-rule);
  font-size:15px; line-height:1.4; letter-spacing:var(--ls-body); color:var(--text);
}
body.brand-guide .otp-list a span{ color:var(--text-muted); }
body.brand-guide .otp-list a:hover span{ color:var(--text); transform:translateX(3px); }
@media (prefers-reduced-motion: no-preference){ body.brand-guide .otp-list a span{ transition:transform .2s var(--ease-house), color .15s ease; } }
@media (max-width:768px){
  body.brand-guide .otp{ grid-template-columns:minmax(0,1fr); gap:20px; margin-top:64px; }
  body.brand-guide .otp-h{ font-size:28px; }
  body.brand-guide .otp-list{ grid-template-columns:minmax(0,1fr); grid-template-rows:none; grid-auto-flow:row; }
}

/* ── 본문 리듬 — 섹션 112 · h2 36 + 헤어라인 · 본문 17/1.6 · 폭 720 ── */
body.brand-guide .doc-body{ margin-top:var(--sec); }
body.brand-guide .doc-body > *{ margin-top:32px; margin-bottom:0; }
body.brand-guide .doc-body > :first-child{ margin-top:0; }
body.brand-guide .doc-body > h2{
  font-size:36px; line-height:1.25; font-weight:600; letter-spacing:var(--ls-head);
  margin-top:var(--sec); padding-bottom:20px; border-bottom:1px solid var(--bg-rule);
}
body.brand-guide .doc-body > h3{
  font-size:24px; line-height:1.3; font-weight:600; letter-spacing:var(--ls-h3);
  margin-top:80px;
}
body.brand-guide .doc-body > h2 + *{ margin-top:28px; }
body.brand-guide .doc-body > h2 + h3{ margin-top:48px; }
/* 2026-10-02 제목 바로 뒤 블록이 자기 윗선을 가지면(DO·DON'T, 값 표) 제목 아래 선을 뺀다. 선이 두 줄로 겹쳐 보이지 않게 블록의 윗선이 제목 아래 선을 대신한다 */
body.brand-guide .doc-body > h2:has(+ :is(.doc-dodont, .doc-values)){ border-bottom:0; padding-bottom:0; }
body.brand-guide .doc-body > h2:has(+ :is(.doc-dodont, .doc-values)) + *{ margin-top:24px; }
body.brand-guide .doc-body > h3 + *{ margin-top:16px; }
body.brand-guide .doc-body > p:not([class]){ font-size:17px; line-height:1.6; letter-spacing:var(--ls-body); max-width:720px; }
body.brand-guide .doc-body > p:not([class]) + p:not([class]){ margin-top:16px; }
body.brand-guide .doc-body > p:not([class]) + :is(div, figure){ margin-top:40px; }
body.brand-guide .doc-body > .caption{ margin-top:16px; max-width:720px; color:var(--text-muted); }
@media (max-width:768px){
  body.brand-guide .doc-body > h2{ font-size:28px; line-height:1.3; padding-bottom:16px; }
  body.brand-guide .doc-body > h3{ font-size:21px; margin-top:56px; }
  body.brand-guide .doc-body > p:not([class]){ font-size:16px; }
  body.brand-guide .doc-body > p:not([class]) + :is(div, figure){ margin-top:32px; }
}

/* 왜 이 규칙인가 — 헤어라인 위아래, 상자 없음 */
body.brand-guide .doc-why{ padding:32px 0; border-color:var(--bg-rule); }
/* 2026-10-09 필요 없는 구분선 정리 — '이렇게 정한 이유'는 윗선 하나만(아랫선은 바로 다음 섹션 제목 선과 겹쳐 읽힌다).
   표 바로 뒤 접힌 메모는 표의 마지막 줄 선이 이미 있으니 윗선을 뺀다. */
body.brand-guide .doc-why{ border-bottom:0; padding-bottom:0; border-top:0; padding-top:0; }   /* 2026-10-10 위쪽 선도 뺀다 — 첫 화면 그림과 배경 사이는 여백으로만 가른다 */
body.brand-guide .doc-body > :is(.doc-values, .cp-wrap) + details.memo{ border-top:0; padding-top:0; }
body.brand-guide .doc-why .k{ letter-spacing:0; margin-bottom:16px; }
body.brand-guide .doc-why p:not(.k):not(.src){ font-size:16px; line-height:1.6; max-width:720px; margin-bottom:4px; }
/* 2026-10-10 첫 화면 그림과 "배경"은 한 묶음 — 그림 아래 112 는 다음 섹션만큼 멀어 따로 놀았다. 48 로 붙인다.
   문단 사이 12 는 한 줄짜리 문단에서 행간이 벌어진 것처럼 보여 4 로 줄였다. */
body.brand-guide .site-shell .doc-body:has(> .doc-why:first-child){ margin-top:48px; }
body.brand-guide .doc-why .src{ letter-spacing:0; margin-top:20px; }
body.brand-guide .live-tag{ letter-spacing:0; }

/* 값 표 — 머리줄은 연한 회색 면, 행 사이만 헤어라인 (2026-10-10: 표 위아래 선과 머리줄 아래 선을 뺐다) */
body.brand-guide .doc-values{ border:0; border-top:1px solid var(--bg-rule); background:none; }
body.brand-guide .doc-values th{ letter-spacing:0; padding:14px 16px 14px 0; border-bottom-color:var(--bg-rule); }
body.brand-guide .doc-values td{ padding:14px 16px 14px 0; }
body.brand-guide .doc-values tr:last-child td{ border-bottom:1px solid var(--site-hair); }
/* 머리줄(thead)이 있는 표만 회색 면으로. 묶음 제목 줄이 섞인 토큰 표는 위 규칙 그대로 */
body.brand-guide .doc-values:has(thead){ border-top:0; }
body.brand-guide .doc-values thead th{ background:var(--bg-alt); border-bottom:0; }
body.brand-guide .doc-values:has(thead) :is(th, td):first-child{ padding-left:16px; }
body.brand-guide .doc-values:has(thead) tr:last-child td{ border-bottom:0; }

/* Do / Don't — 글자만. 상자 대신 위 헤어라인 */
body.brand-guide .doc-dodont{ column-gap:var(--grid-col); row-gap:40px; }
body.brand-guide .doc-do, body.brand-guide .doc-dont{ background:none; border:0; border-top:1px solid var(--bg-rule); padding:20px 0 0; }
body.brand-guide .doc-do .tag, body.brand-guide .doc-dont .tag{ letter-spacing:0; margin-bottom:8px; }
body.brand-guide .doc-do p, body.brand-guide .doc-dont p{ font-size:15px; line-height:1.6; }

/* 관련 문서 — 헤어라인 줄 */
body.brand-guide .doc-related{ margin-top:var(--sec); column-gap:var(--grid-col); row-gap:0; }
body.brand-guide .doc-related a{ background:none; border:0; border-top:1px solid var(--bg-rule); padding:20px 0 24px; }
body.brand-guide .doc-related a:hover{ box-shadow:none; background:none; }
body.brand-guide .doc-related a:hover .t{ text-decoration:underline; text-underline-offset:4px; }
body.brand-guide .doc-related .t{ font-size:17px; }
body.brand-guide .doc-related .d{ font-size:14px; margin-top:8px; }

/* ── 이전 · 다음 — 각진 두 블록 ── */
body.brand-guide .pgn{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--grid-col); margin-top:56px; }
body.brand-guide .pgn a{
  display:flex; flex-direction:column; gap:8px; min-height:152px; justify-content:space-between;
  background:var(--tile); padding:28px 32px;
}
body.brand-guide .pgn .next{ grid-column:2; align-items:flex-end; text-align:right; }
body.brand-guide .pgn .k{ font-size:14px; color:var(--text-muted); letter-spacing:var(--ls-label); }
body.brand-guide .pgn .t{ font-size:22px; font-weight:600; letter-spacing:var(--ls-h3); line-height:1.3; }
body.brand-guide .pgn .ar{ font-size:22px; line-height:1; color:var(--text); }
body.brand-guide .pgn a:hover{ background:color-mix(in srgb, var(--text) 8%, var(--bg-bright)); }
@media (prefers-reduced-motion: no-preference){ body.brand-guide .pgn a{ transition:background .2s var(--ease-house); } }
@media (max-width:640px){
  body.brand-guide .pgn{ grid-template-columns:minmax(0,1fr); }
  body.brand-guide .pgn .next{ grid-column:auto; }
  body.brand-guide .pgn a{ min-height:120px; padding:24px; }
}

/* ============================================================
   브랜드 문서 공통 부품 — 전에는 심볼·서체·그래픽 세 쪽 <style>에 같은 벌이 반복돼 있었다.
   ============================================================ */
body.brand-guide .pg{ font-family:var(--site-mono); font-size:11px; letter-spacing:0; color:var(--text-muted); white-space:nowrap; }
body.brand-guide .bdg{
  display:inline-flex; align-items:center; gap:6px;
  font-size:12px; font-weight:600; letter-spacing:var(--ls-label); line-height:1.4;
  padding:3px 10px;
  background:color-mix(in srgb, var(--text) 6%, transparent); color:var(--text-muted);
  width:fit-content; align-self:flex-start;
}
body.brand-guide .bdg.is-ink{ background:var(--text); color:var(--bg-bright); }
body.brand-guide .bdg.is-line{ background:transparent; border:1px solid var(--bg-rule); }

/* 작은 라벨(로고·전체 보기 쪽) */
body.brand-guide .pill{
  display:inline-flex; align-items:center; gap:6px;
  font-family:var(--site-mono); font-size:10.5px; letter-spacing:0; text-transform:uppercase;
  padding:4px 10px;
  background:color-mix(in srgb, var(--text) 6%, transparent); color:var(--text-muted);
}
body.brand-guide .pill.ok{ background:color-mix(in srgb, var(--green-500) 14%, transparent); color:var(--green-700); }
body.brand-guide .pill.no{ background:color-mix(in srgb, var(--red-500) 12%, transparent); color:var(--red-700); }
/* DO / DON'T 표시는 한 모양 — 작은 글자, DON'T 는 취소선(.doc-do .tag 와 같음) */
body.brand-guide :is(.pill, .bdg).dd{ background:none; border:0; padding:0; color:var(--text); }
body.brand-guide :is(.pill, .bdg).dd.no{ color:var(--text-faint); text-decoration:line-through; }
body.brand-guide .strike{ position:relative; }
body.brand-guide .strike::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(to top right, transparent calc(50% - .7px), var(--red-500) calc(50% - .7px), var(--red-500) calc(50% + .7px), transparent calc(50% + .7px));
}

/* 콜아웃 — 각진 면. 좌측 띠 없이 아이콘 점으로 구분. (.ic · .i 두 마크업 모두) */
body.brand-guide .callout{
  display:grid; grid-template-columns:auto minmax(0,1fr); gap:16px; align-items:start;
  background:var(--tile); border:0; padding:28px 32px;
}
body.brand-guide .callout :is(.ic, .i){
  width:24px; height:24px; margin-top:1px;
  display:grid; place-items:center; font-size:12px; font-weight:700;
  background:var(--text); color:var(--bg-bright);
}
body.brand-guide .callout p{ margin:0 0 6px; font-size:15px; line-height:1.6; color:var(--text-muted); max-width:720px; }
body.brand-guide .callout p:last-child{ margin-bottom:0; }
body.brand-guide .callout b{ color:var(--text); font-weight:600; }
body.brand-guide .callout a{ color:var(--text); text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--bg-rule); }
@media (max-width:640px){ body.brand-guide .callout{ padding:24px; } }

/* 규칙 — 짧은 규칙 여러 개. 상자 대신 위 헤어라인 */
body.brand-guide .rules{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr)); column-gap:var(--grid-col); row-gap:40px; }
body.brand-guide .rule{ border-top:1px solid var(--bg-rule); padding-top:20px; display:flex; flex-direction:column; gap:8px; }
body.brand-guide .rule .n{ font-size:28px; font-weight:700; letter-spacing:var(--ls-head); line-height:1.2; margin-bottom:8px; }
body.brand-guide .rule .t{ font-size:16px; font-weight:600; letter-spacing:var(--ls-body); line-height:1.4; }
body.brand-guide .rule .d{ font-size:15px; color:var(--text-muted); line-height:1.6; margin:0; }
body.brand-guide .rule .pg{ margin-top:auto; padding-top:8px; }
@media (max-width:560px){ body.brand-guide .rules{ grid-template-columns:minmax(0,1fr); } }

/* PDF 발췌 그림 — 이미지를 타일 안에 크게. 캡션은 타일 아래 */
body.brand-guide figure.fig{ margin:0; }
body.brand-guide figure.fig img{ display:block; width:100%; height:auto; background:var(--tile); padding:var(--tile-pad); border:0; box-sizing:border-box; }
body.brand-guide figure.fig figcaption{ display:flex; gap:12px; align-items:baseline; justify-content:space-between; font-size:14px; color:var(--text-muted); margin-top:16px; line-height:1.5; }
body.brand-guide .fig2{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:var(--grid-col); row-gap:var(--grid-row); }
body.brand-guide .fig2 figure.fig img{ padding:clamp(24px,3vw,40px); }
body.brand-guide .doc-body > figure.fig + figure.fig{ margin-top:var(--grid-row); }
@media (max-width:640px){ body.brand-guide .fig2{ grid-template-columns:minmax(0,1fr); } }

/* 세그먼트 컨트롤 */
body.brand-guide .seg{ display:inline-flex; flex-wrap:wrap; gap:4px; padding:4px; background:color-mix(in srgb, var(--text) 6%, transparent); }
body.brand-guide .seg button{
  font:inherit; font-size:13px; font-weight:600; letter-spacing:var(--ls-label); line-height:1.3;
  border:0; background:transparent; color:var(--text-muted); cursor:pointer;
  padding:6px 12px; min-height:32px;
}
body.brand-guide .seg button[aria-pressed="true"]{ background:var(--bg-bright); color:var(--text); }
body.brand-guide .seg button:focus-visible{ outline:2px solid var(--text); outline-offset:1px; }
@media (prefers-reduced-motion: no-preference){ body.brand-guide .seg button{ transition:background .15s ease, color .15s ease; } }

/* 잘못된 예 — 그림은 타일, DO/DON'T와 설명은 타일 아래 */
body.brand-guide .nogrid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); column-gap:var(--grid-col); row-gap:var(--grid-row); }
@media (max-width:900px){ body.brand-guide .nogrid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px){ body.brand-guide .nogrid{ grid-template-columns:minmax(0,1fr); } }
body.brand-guide .nocard{ background:none; border:0; padding:0; display:flex; flex-direction:column; gap:0; }
body.brand-guide .nocard .thumb{
  --thumb-pad:clamp(24px,2.6vw,32px);
  position:relative; overflow:hidden; background:var(--tile); padding:var(--thumb-pad);
}
body.brand-guide .nocard .thumb svg{ display:block; width:100%; height:auto; }
body.brand-guide .nocard .thumb.is-x::after{
  content:""; position:absolute; inset:var(--thumb-pad); pointer-events:none;
  background:linear-gradient(to top right, transparent calc(50% - 1px), var(--red-500) calc(50% - 1px), var(--red-500) calc(50% + 1px), transparent calc(50% + 1px));
}
body.brand-guide .nocard .tag{ font-family:var(--site-mono); font-size:11px; font-weight:700; letter-spacing:0; margin-top:16px; }
body.brand-guide .nocard .tag.no{ color:var(--text-faint); text-decoration:line-through; }
body.brand-guide .nocard .tag.ok{ color:var(--text); }
body.brand-guide .nocard p:not(.tag){ font-size:15px; line-height:1.6; color:var(--text-muted); margin:8px 0 0; padding:0; }

/* ── 글자 크기 하한 · 자간 — 양수 자간 금지 ── */
body.brand-guide .caption{ letter-spacing:var(--ls-label); }

/* PDF에서 잘라 온 그림은 자체 바탕이 있다 — 회색 판 안에 한 번 더 넣으면 상자가 이중으로 보인다.
   판과 안쪽 여백을 빼고 그림 자체를 타일로 쓴다. (2026-09-28 이중 상자 수정) */
body.brand-guide .fig img[src*="/assets/brand/fig/"],
body.brand-guide figure.fig img[src*="/assets/brand/fig/"]{ padding:0; background:none; }
/* 바탕이 균일한 #F7F7F7 PDF 발췌는 같은 색으로 안쪽 여백을 더 준다 — 글자가 판 가장자리에 붙지 않게.
   #F7F7F7은 PDF 발췌 이미지의 바탕색이라 토큰이 아니라 원본 값을 쓴다. */
body.brand-guide .fig img[src*="/assets/brand/fig/"][src*="/fig/typeface-"],
body.brand-guide .fig img[src*="/assets/brand/fig/"][src*="/fig/logo-service-feature"],
body.brand-guide .fig img[src*="/assets/brand/fig/"][src*="/fig/logo-slogan-lockup"],
body.brand-guide .fig img[src*="/assets/brand/fig/"][src*="/fig/logo-partnership-horizontal"],
body.brand-guide .fig img[src*="/assets/brand/fig/"][src*="/fig/graphic-simplified-layout"]{ background:#F7F7F7; padding:var(--tile-pad); }

/* ============================================================
   사이드바 없는 대문 쪽(/start/) — body.brand-guide.bg-solo  (2026-09-28 추가)
   eBay·당근 Get Started처럼 가운데 한 열. 머리·타일·h2 문법은 위와 같다.
   ============================================================ */
body.brand-guide.bg-solo .site-shell{ display:block; max-width:1120px; padding:56px 32px 120px; }
body.brand-guide.bg-solo .site-foot .inner{ max-width:1120px; }
@media (max-width:768px){ body.brand-guide.bg-solo .site-shell{ padding:32px 16px 96px; } }

/* 작은 알약 버튼(카드 아래 '보러 가기' 등)과 그림 속 버튼 — 모서리 0 규칙의 예외 */
body.brand-guide .site-shell :is(.bg-go, .is-pill){ border-radius:var(--radius-pill) !important; }
body.brand-guide .bg-go{
  display:inline-flex; align-items:center; gap:6px; width:fit-content;
  font-size:14px; font-weight:600; letter-spacing:var(--ls-label); line-height:1.3; color:var(--text);
  padding:8px 16px; border:1px solid color-mix(in srgb, var(--text) 22%, transparent); background:none;
}
@media (prefers-reduced-motion: no-preference){ body.brand-guide .bg-go{ transition:background .15s ease, color .15s ease, border-color .15s ease; } }

/* 새 창 아이콘 — 빌더(/builder.html)로 가는 링크 뒤 ↗. 스크린 리더엔 "(새 창)"만 읽힌다. (2026-09-28)
   brand-guide.css를 안 읽는 쪽(foundation·blueprint·makers)은 같은 두 줄을 쪽 <style>에 둔다. */
.nwin{ display:inline-block; width:12px; height:12px; margin-left:4px; vertical-align:-1px; flex:none; }
.nwin-sr{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* ── 공용으로 올린 규칙 (2026-09-28 Foundation 개편 뒤 정리) ── */
/* 실행 중인 부품: 테두리 없이 회색 타일 위에, 라벨과 12px 간격 */
body.brand-guide .doc-live{ border:0; background:var(--tile); }
body.brand-guide .live-tag + .doc-live{ margin-top:12px; }
/* 동그라미가 뜻인 작은 점과 재생 버튼은 모서리 0 예외 */
body.brand-guide .site-shell :is(.live-tag::before, .play){ border-radius:var(--radius-pill) !important; }
body.brand-guide .site-shell .live-tag::before{ display:none; }   /* 글자 옆 점은 쓰지 않는다 (2026-10-10) */
@media (min-width:768px){ body.brand-guide .doc-body :is(p, li) code{ white-space:nowrap; } }   /* .grid--4 같은 코드가 줄 끝에서 잘리지 않게 */
/* 칸이 적고 값이 짧은 표: 폰에서 옆으로 밀지 않고 줄바꿈으로 한 화면에 */
@media (max-width:640px){
  body.brand-guide .doc-values.bg-table{ overflow:visible; }
  body.brand-guide .doc-values.bg-table table{ min-width:0; width:100%; }
  body.brand-guide .doc-values.bg-table :is(th, td){ white-space:normal; overflow-wrap:anywhere; padding:10px 10px 10px 0; font-size:14px; }
  body.brand-guide .doc-values.bg-table:has(thead) :is(th, td):first-child{ padding-left:10px; }
  body.brand-guide .doc-values.bg-table th{ white-space:nowrap; overflow-wrap:normal; }   /* 머리글이 한 글자씩 끊기지 않게 */
  /* 토큰 이름은 단어 중간에서 끊지 않는다 — 칸이 이름 폭만큼 넓어지고 설명 칸이 줄어든다(2026-10-09 FGI) */
  body.brand-guide .doc-values.bg-table td.k:not(.kr), body.brand-guide .doc-values.bg-table td.k:not(.kr) :is(button, code, span){ overflow-wrap:break-word; }
}

/* 한글 라벨 자간 — 영문 대문자용 라벨 스타일(고정폭 글꼴 + 자간 .04em)이 한글에도 먹어 글자가 벌어졌다.
   한글은 자간을 넓히지 않는다(UI 원칙). 본문 글꼴 + 자간 0으로. (2026-09-29) */
body.brand-guide :is(.doc-why .k, .site-side .group > .caption){ font-family:inherit; letter-spacing:0; font-weight:600; }

/* ── 왼쪽 메뉴 고정 (2026-09-30) ──
   sticky가 .inner에 걸려 있었는데, 감싼 <details>가 .inner와 높이가 같아 붙을 공간이 없었다. 바깥 <details>를 붙인다.
   화면이 메뉴보다 낮으면 메뉴 안에서만 스크롤한다. */
@media (min-width:769px){
  body.brand-guide .site-side > details{
    position:sticky; top:calc(var(--site-top-h) + 24px);
    max-height:calc(100vh - var(--site-top-h) - 48px); overflow-y:auto; overscroll-behavior:contain;
    scrollbar-width:thin;
    /* 2026-10-02 링크는 선택 배경을 넓히려 좌우로 12px씩 밖으로 나간다(site.css margin:0 -12px).
       그 12px을 칸 안쪽 여백으로 받아 가로 스크롤을 없애고, 바닥 여백으로 마지막 항목이 잘리지 않게 한다. */
    margin-inline:-12px; padding:0 12px 24px; overflow-x:hidden;
  }
  body.brand-guide .site-side .inner{ position:static; }
  /* 2026-10-10 메뉴가 화면 아래에서 잘렸다 — 줄 높이·묶음 간격을 줄여 한 화면에 다 보이게 한다.
     묶음 이름은 작고 옅게, 누르는 항목은 검정으로 — 색 말고 크기·농도로 가른다. 항목이 하나뿐인 첫 묶음은 이름을 감춘다. */
  body.brand-guide .site-side a{ padding:3px 12px; color:var(--text); }
  body.brand-guide .site-side .group{ margin-bottom:16px; }
  body.brand-guide .site-shell .site-side .group > .caption{ font-size:12px; font-weight:500; color:var(--text-faint); margin-bottom:4px; }
  body.brand-guide .site-side .group:first-child > .caption{ display:none; }
}

/* ── 상단 메뉴 유리 효과 — 스크롤하면 반투명 + 뒤 배경 흐림 (2026-09-30) ──
   /js/site-chrome.js 가 스크롤 4px 넘으면 .is-scrolled 를 붙인다. */
body.brand-guide .site-top{ transition:background-color .25s ease, backdrop-filter .25s ease, border-color .25s ease; }
body.brand-guide .site-top.is-scrolled{
  background:color-mix(in srgb, var(--bg-bright) 68%, transparent);
  -webkit-backdrop-filter:saturate(1.6) blur(18px); backdrop-filter:saturate(1.6) blur(18px);
  border-bottom-color:color-mix(in srgb, var(--text) 8%, transparent);
}
@media (prefers-reduced-transparency: reduce){
  body.brand-guide .site-top.is-scrolled{ background:var(--bg-bright); -webkit-backdrop-filter:none; backdrop-filter:none; }
}

/* ============================================================
   공통 크롬 (2026-10-02) — 오른쪽 목차 · 검색 · 마지막 수정. 동작은 /js/site-chrome.js
   ============================================================ */

/* 목차·검색에서 제목으로 내려갈 때 상단 메뉴에 가리지 않게 */
body.brand-guide .site-shell :is(h2, h3)[id]{ scroll-margin-top:calc(var(--site-top-h) + 32px); }

/* ── 오른쪽 목차 — 1200px 이상에선 사이드바가 있는 모든 쪽이 같은 세 열을 쓴다.
   그래야 왼쪽 메뉴 폭과 본문 시작 x가 쪽마다 같다. (2026-10-02 — 전에는 h2[id]가 있는 쪽만 세 열이라
   /foundation/ 인덱스만 사이드바 280 · 본문 x 408로 어긋났다)
   1440: 사이드바 216 · 본문 872 · 목차 176 / 1200: 200 · 696 · 160. 본문 안 목차(.otp)는 이 폭에서 숨긴다.
   목차가 생기지 않는 쪽(섹션 제목 h2[id]도, .otp 링크도 없는 쪽)은 본문이 목차 열까지 넓게 쓴다.
   판정은 마크업만 보고 한다(:has) — 스크립트가 목차를 끼워도 본문 폭이 다시 흔들리지 않는다. ── */
body.brand-guide .bg-toc{ display:none; }
@media (min-width:1200px){
  body.brand-guide:not(.bg-solo) .site-shell{
    grid-template-columns:200px minmax(0,1fr) 160px; column-gap:40px;
  }
  body.brand-guide:not(.bg-solo) .site-shell:not(:has(> article :is(h2[id]:not(.otp-h), .otp a[href^="#"]))) > article{ grid-column:2 / -1; }
  body.brand-guide:not(.bg-solo) .site-shell:has(> article h2[id]:not(.otp-h)) > article > .otp{ display:none; }
  body.brand-guide .bg-toc{
    display:block; position:sticky; top:calc(var(--site-top-h) + 24px); align-self:start;
    max-height:calc(100vh - var(--site-top-h) - 48px); overflow-y:auto; overscroll-behavior:contain; scrollbar-width:none;
    padding-top:4px;
  }
  body.brand-guide .bg-toc::-webkit-scrollbar{ display:none; }
}
@media (min-width:1440px){
  body.brand-guide:not(.bg-solo) .site-shell{
    grid-template-columns:216px minmax(0,1fr) 176px; column-gap:56px;
  }
}
body.brand-guide .bg-toc .k{ margin:0 0 12px; font-size:14px; font-weight:600; line-height:1.4; letter-spacing:var(--ls-label); color:var(--text); }
body.brand-guide .bg-toc ol{ list-style:none; margin:0; padding:0; }
body.brand-guide .bg-toc a{
  display:block; padding:6px 0;
  font-size:14px; line-height:1.45; letter-spacing:var(--ls-body); color:var(--text-muted);
  overflow-wrap:anywhere;
}
body.brand-guide .bg-toc .l3 a{ padding-left:14px; }
body.brand-guide .bg-toc a:hover{ color:var(--text); }
body.brand-guide .bg-toc a[aria-current="true"]{ color:var(--text); font-weight:600; }
body.brand-guide .bg-toc a:focus-visible{ outline:2px solid var(--text); outline-offset:2px; }
@media (prefers-reduced-motion: no-preference){ body.brand-guide .bg-toc a{ transition:color .15s ease; } }

/* ── 마지막 수정 — 이전 · 다음 아래 한 줄 ── */
body.brand-guide .bg-lastmod{ margin:32px 0 0; font-size:14px; line-height:1.5; letter-spacing:var(--ls-label); color:var(--text-muted); }
body.brand-guide .bg-lastmod time{ font-variant-numeric:tabular-nums; }

/* ── 검색 버튼 — 상단 메뉴 오른쪽 끝. 알약형(모서리 0 규칙의 예외) ── */
body.brand-guide .bg-search-btn{
  flex:none; display:inline-flex; align-items:center; gap:8px;
  height:34px; padding:0 10px 0 12px; margin-left:calc(var(--space-2) - var(--space-5));
  font:inherit; font-size:13.5px; font-weight:600; letter-spacing:var(--ls-label); color:var(--text-muted);
  background:transparent; border:1px solid color-mix(in srgb, var(--text) 16%, transparent);
  border-radius:var(--radius-pill); cursor:pointer;
}
body.brand-guide .bg-search-btn svg{ flex:none; width:16px; height:16px; }
body.brand-guide .bg-search-btn kbd{ font-family:var(--site-mono); font-size:12px; font-weight:500; letter-spacing:0; color:var(--text-faint); }
body.brand-guide .bg-search-btn:hover{ background:color-mix(in srgb, var(--text) 5%, transparent); color:var(--text); }
body.brand-guide .bg-search-btn:focus-visible{ outline:2px solid var(--text); outline-offset:2px; }
@media (prefers-reduced-motion: no-preference){ body.brand-guide .bg-search-btn{ transition:background .15s ease, color .15s ease; } }
/* 폰 — 아이콘만. 메뉴 네 개와 한 줄에 들어가게 간격을 조금씩 줄인다 */
@media (max-width:768px){
  body.brand-guide .bg-search-btn{ width:34px; padding:0; justify-content:center; }
  body.brand-guide .bg-search-btn :is(.t, kbd){ display:none; }
  body.brand-guide .bg-search-btn svg{ width:17px; height:17px; }
}
@media (max-width:480px){
  body.brand-guide .site-top{ gap:12px; }
  body.brand-guide .bg-search-btn{ margin-left:2px; width:32px; height:32px; }
  body.brand-guide .site-nav a{ padding:7px 6px; }
}
@media (max-width:380px){
  body.brand-guide .site-top{ gap:8px; }
  body.brand-guide .site-nav a{ padding:7px 5px; }
  body.brand-guide .site-top .brand .brand-wm{ height:12px; }
}

/* ── 검색 창 — 각진 패널, 헤어라인 테두리, 그림자 없음 ── */
html.bg-search-open{ overflow:hidden; }
body.brand-guide .bg-search{
  width:min(680px, calc(100vw - 32px)); max-width:none;
  height:auto; max-height:min(620px, calc(100dvh - 96px));
  margin:min(12vh, 120px) auto auto; padding:0;
  border:1px solid color-mix(in srgb, var(--text) 18%, transparent); border-radius:0; box-shadow:none;
  background:var(--bg-bright); color:var(--text);
  overflow:hidden;
}
body.brand-guide .bg-search::backdrop{ background:color-mix(in srgb, var(--black) 36%, transparent); }
body.brand-guide .bg-search .box{ display:flex; flex-direction:column; max-height:inherit; height:100%; }
body.brand-guide .bg-search[open] .box{ max-height:min(620px, calc(100dvh - 96px)); }
body.brand-guide .bg-search .bar{
  flex:none; display:flex; align-items:center; gap:12px;
  height:64px; padding:0 16px 0 20px;
  border-bottom:1px solid var(--bg-rule);
}
body.brand-guide .bg-search .bar > svg{ flex:none; width:20px; height:20px; color:var(--text-muted); }
body.brand-guide .bg-search input{
  flex:1; min-width:0; height:100%; border:0; outline:none; background:transparent; padding:0;
  font:inherit; font-size:18px; letter-spacing:var(--ls-body); color:var(--text);
}
body.brand-guide .bg-search input::placeholder{ color:var(--text-faint); }
body.brand-guide .bg-search input::-webkit-search-cancel-button{ display:none; }
body.brand-guide .bg-search .close{
  flex:none; height:32px; padding:0 14px;
  font:inherit; font-size:14px; font-weight:600; letter-spacing:var(--ls-label); color:var(--text-muted);
  background:transparent; border:1px solid color-mix(in srgb, var(--text) 16%, transparent); border-radius:var(--radius-pill); cursor:pointer;
}
body.brand-guide .bg-search .close:hover{ color:var(--text); background:color-mix(in srgb, var(--text) 5%, transparent); }
body.brand-guide .bg-search .close:focus-visible{ outline:2px solid var(--text); outline-offset:2px; }
body.brand-guide .bg-search .st{ flex:none; margin:0; padding:16px 20px 8px; font-size:14px; line-height:1.5; letter-spacing:var(--ls-label); color:var(--text-muted); }
body.brand-guide .bg-search .res{ flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; list-style:none; margin:0; padding:0 8px 8px; }
body.brand-guide .bg-search .res a{ display:flex; flex-direction:column; gap:2px; padding:12px; color:var(--text); }
body.brand-guide .bg-search .res [aria-selected="true"] a{ background:var(--bg-alt); }
body.brand-guide .bg-search .res .c{ font-size:14px; line-height:1.45; letter-spacing:var(--ls-label); color:var(--text-muted); }
body.brand-guide .bg-search .res .h{ font-size:16px; line-height:1.45; font-weight:600; letter-spacing:var(--ls-body); }
body.brand-guide .bg-search .res .sn{
  margin-top:2px; font-size:14px; line-height:1.55; letter-spacing:var(--ls-body); color:var(--text-muted);
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden;
}
body.brand-guide .bg-search mark{ background:none; color:var(--text); font-weight:600; }
body.brand-guide .bg-search .ft{
  flex:none; display:flex; gap:20px; margin:0; padding:12px 20px;
  border-top:1px solid var(--bg-rule);
  font-size:14px; line-height:1.4; letter-spacing:var(--ls-label); color:var(--text-muted);
}
body.brand-guide .bg-search .ft span{ display:inline-flex; align-items:center; gap:4px; }
body.brand-guide .bg-search .ft kbd{
  font-family:var(--site-mono); font-size:12px; line-height:1; color:var(--text-muted);
  padding:4px 6px; border:1px solid var(--bg-rule);
}
@media (hover:none), (max-width:768px){ body.brand-guide .bg-search .ft{ display:none; } }
/* 폰 — 화면 전체를 쓰는 검색 화면 */
@media (max-width:640px){
  body.brand-guide .bg-search{ width:100vw; height:100dvh; max-height:none; margin:0; border:0; }
  body.brand-guide .bg-search[open] .box{ max-height:none; height:100dvh; }
  body.brand-guide .bg-search .bar{ height:60px; padding:0 12px 0 16px; }
  body.brand-guide .bg-search input{ font-size:17px; }
  body.brand-guide .bg-search .st{ padding:14px 16px 6px; }
  body.brand-guide .bg-search .res{ padding:0 4px 24px; }
}

/* ============================================================
   메타 글씨 · 라벨 글꼴 (2026-10-02 공개 전 정리)
   · 메뉴 묶음 이름, '이렇게 정한 이유', 출처, 표 머리, Live 라벨, 쪽 번호, 배지, 알약, DO/DON'T는
     13px(--fs-caption) 아래로 내리지 않는다. 전에는 10.5~12px이었다.
   · 고정폭 글꼴은 토큰 · 코드 · 값에만 쓴다. 한글이 든 라벨과 캡션은 본문 글꼴 + 라벨 자간(--ls-label).
   · 값 칸 안에 한글 낱말이 섞이면 그 낱말만 <span class="kr">로 감싼다. 토큰 · 숫자는 고정폭 그대로 둔다.
     .kr은 쪽 <style>의 고정폭 규칙보다 우선하도록 .site-shell 아래에 건다.
   ============================================================ */
body.brand-guide :is(.site-side .group > .caption, .doc-why .k, .doc-why .src, .live-tag, .doc-values th, .pill, .bdg),
body.brand-guide .site-shell .kr{
  font-family:var(--font-sans); letter-spacing:var(--ls-label);
}
body.brand-guide :is(.site-side .group > .caption, .doc-why .k, .doc-why .src, .live-tag, .doc-values th, .pg, .pill, .bdg, .llms-btn, .nocard .tag, .doc-do .tag, .doc-dont .tag, .callout .ic, .callout .i, .bg-search-btn kbd, .site-foot .fine){
  font-size:var(--fs-caption);
}

/* 마지막 줄에 한 단어만 떨어지지 않게(2026-10-09 FGI — 모바일 첫 문단 끝 "않습니다."·DON'T 끝 "쓰기.") */
body.brand-guide :is(.doc-def, .doc-body p, .doc-body li, .doc-body figcaption, .doc-why p){ text-wrap:pretty; }
/* 문장 줄바꿈(site-chrome.js ⑥)은 넓은 화면에서만. 좁은 카드·칸의 짧은 글은 두 줄 길이를 고르게 */
@media (max-width:1023px){ br.sl{ display:none; } }
body.brand-guide .site-shell :is(p.d, p.t, p.note, .dd p, .dont p){ text-wrap:balance; }
body.brand-guide .site-shell :is(.caption, td){ text-wrap:pretty; }

/* 푸터 맨 아래 줄 — 왼쪽 안내 문구, 오른쪽 리멤버 로고타입 (2026-10-13. 워드마크 아래 설명 문장은 뺐다).
   로고는 PC 최소 높이 12px보다 크게, 워드마크와 떨어뜨려 둔다. 대문의 어두운 푸터에서는 워드마크처럼 뒤집는다 */
.site-foot .fine{ display:flex; align-items:center; justify-content:space-between; gap:16px 24px; flex-wrap:wrap; }
.site-foot .fine .foot-logo{ display:block; height:14px; width:auto; }
body.hm .site-foot .fine .foot-logo{ filter:invert(1) brightness(.975); }

/* 줄바꿈 다듬기 (2026-10-16 줄바꿈 검토) — 제목 · 목차 · 표 칸의 마지막 줄에 낱말 하나만 남지 않게 줄 길이를 고르게 나눈다
   ("B. Medium Size는 지면 폭의 0.6 · 1/2 · / 1/3"). 표 칸은 그대로 둔다 — 좁은 폰 표에서 묶으면 옆 칸 낱말이 중간에서 잘렸다. */
body.brand-guide .site-shell :is(h1, h2, h3, h4, .otp-list a){ text-wrap:balance; }
/* 폰에서 토큰 이름이 하이픈에서 잘리지 않게 묶으면(site-chrome.js ⑦), 칸 네 개가 다 토큰인 표(버튼 전체 값)는 화면보다 넓어진다.
   그런 표만 표 안에서 옆으로 밀리고, 페이지는 넘치지 않는다. 화면에 들어가는 표는 그대로다 (2026-10-16) */
@media (max-width:640px){ body.brand-guide .doc-values.bg-table{ overflow-x:auto; } }
/* 폰 표 쌓기 (2026-10-16, site-chrome.js ⑨) — 토큰 표는 폰에서 한 항목씩: 첫 칸(이름)을 맨 위에, 나머지 칸은 '머리글 이름 · 값' 줄로 */
@media (max-width:640px){
  body.brand-guide .doc-values.bg-table.stk{ overflow:visible; }
  body.brand-guide .doc-values.bg-table.stk thead{ display:none; }
  body.brand-guide .doc-values.bg-table.stk :is(table, tbody){ display:block; width:100%; min-width:0; }
  body.brand-guide .doc-values.bg-table.stk tr{ display:block; padding:14px 0 12px; border-top:1px solid var(--bg-rule); }
  body.brand-guide .doc-values.bg-table.stk tbody tr:first-child{ border-top:0; }
  body.brand-guide .doc-values.bg-table.stk tbody th{ display:block; padding:16px 0 4px !important; border:0 !important; }
  body.brand-guide .doc-values.bg-table.stk td{ display:flex; gap:12px; padding:3px 0 !important; border:0 !important; white-space:normal; overflow-wrap:normal; }
  body.brand-guide .doc-values.bg-table.stk td::before{ content:attr(data-l); flex:0 0 84px; color:var(--text-faint); font-family:var(--font-sans); font-size:13px; letter-spacing:0; line-height:1.6; }
  body.brand-guide .doc-values.bg-table.stk td > .v{ flex:1 1 auto; min-width:0; text-wrap:pretty; }
  body.brand-guide .doc-values.bg-table.stk td:first-child{ display:block; padding:0 0 6px !important; }
  body.brand-guide .doc-values.bg-table.stk td:first-child::before{ content:none; }
  body.brand-guide .doc-values.bg-table.stk td.st{ display:none; }
}
/* 쌓지 않는 표 칸("인스타그램 세로 / 피드")과 목차 줄("AI 채팅에 주소 하나 붙여 / 넣기")도 두 줄 길이를 고르게 (2026-10-16) */
body.brand-guide .site-shell .doc-values:not(.stk) td, body.brand-guide .otp-list a .otp-t{ text-wrap:balance; }
body.brand-guide .otp-list a .otp-t, body.brand-guide .otp-list a:hover .otp-t{ color:var(--text); transform:none; }   /* 화살표 span 규칙(옅은 색 · 마우스 올리면 밀기)이 글자에 옮지 않게 */
body.brand-guide .bg-toc a{ text-wrap:balance; }   /* 오른쪽 목차("AI 채팅에 주소 하나 붙여 / 넣기") — 두 줄 길이를 고르게 (2026-10-16) */

/* ── ⑦ Human · AI 보기 (2026-10-23 — 레퍼런스 sinas 의 Human/Machine 토글). 토글은 화면 아래 가운데에 떠 있고,
   AI 를 고르면 본문(article)과 오른쪽 목차를 숨기고 그 자리에 AI 문서 원문(.ha-view)을 둔다. 스크립트는 site-chrome.js ⑦ ── */
.ha-seg{
  position:fixed; left:50%; bottom:20px; transform:translateX(-50%); z-index:60;
  display:flex; gap:2px; padding:4px; border-radius:var(--radius-pill);
  background:color-mix(in srgb, var(--text) 90%, transparent);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); box-shadow:var(--shadow-badge);
}
.ha-seg button{
  display:inline-flex; align-items:center; gap:8px; height:36px; padding:0 16px 0 12px;
  border:0; border-radius:var(--radius-pill); background:transparent; cursor:pointer;
  font:inherit; font-size:15px; font-weight:600; letter-spacing:var(--ls-label);
  color:color-mix(in srgb, var(--bg-bright) 60%, transparent);
  transition:color .2s ease, background-color .2s ease;
}
.ha-seg button:hover{ color:var(--bg-bright); }
.ha-seg button[aria-checked="true"]{ color:var(--bg-bright); background:color-mix(in srgb, var(--bg-bright) 14%, transparent); }
.ha-seg button:focus-visible{ outline:2px solid var(--bg-bright); outline-offset:-2px; }
.ha-seg i{ width:12px; height:12px; border-radius:50%; box-shadow:inset 0 0 0 1.5px currentColor; }
.ha-seg [aria-checked="true"] i{ box-shadow:inset 0 0 0 1.5px var(--orange-500); background:radial-gradient(circle, var(--orange-500) 0 2.5px, transparent 3px); }   /* 고른 쪽만 오렌지 라디오 — 두 바탕(검정 알약 · 오프화이트 알약) 모두에서 보인다 (2026-10-23) */

/* AI 보기 — 화면 전체를 덮는 검은 터미널. 본문은 그대로 두고 덮기만 해서, Human 으로 돌아오면 보던 자리 그대로다 */
.ha-view{
  position:fixed; inset:0; z-index:55; overflow-y:auto; overscroll-behavior:contain;
  background:var(--black); color:color-mix(in srgb, var(--off-white) 88%, transparent);
}
.ha-view[hidden]{ display:none; }
body.is-ai{ overflow:hidden; }
.ha-col{ max-width:720px; margin:0 auto; padding:40px 24px 128px; }
.ha-src{ display:block; margin-bottom:24px; text-align:center; font-family:var(--site-mono); font-size:13px; letter-spacing:0;
  color:color-mix(in srgb, var(--off-white) 48%, transparent); text-decoration:none; overflow-wrap:anywhere; }
.ha-src:hover{ color:var(--off-white); }
.ha-acts{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }   /* 복사 · 파일 받기 — 받은 .txt 는 Claude 프로젝트 · ChatGPT 에 첨부해 둔다 */
.ha-copy{
  display:flex; align-items:center; justify-content:center; width:100%; text-decoration:none; height:48px; border:1px solid color-mix(in srgb, var(--off-white) 24%, transparent); border-radius:0;
  background:transparent; color:var(--off-white); cursor:pointer;
  font-family:var(--site-mono); font-size:14px; letter-spacing:0; transition:background-color .2s ease, color .2s ease;
}
.ha-copy:hover, .ha-copy.is-done{ background:var(--off-white); color:var(--black); }
.ha-copy:focus-visible{ outline:2px solid var(--off-white); outline-offset:2px; }
.ha-pre{
  margin:32px 0 0; white-space:pre-wrap; overflow-wrap:anywhere;
  font-family:var(--site-mono); font-size:15px; line-height:1.6; letter-spacing:0; color:inherit;
}
@media (max-width:768px){ .ha-col{ padding:24px 16px 112px; } }
@media (prefers-reduced-motion: reduce){ .ha-seg button, .ha-copy{ transition:none; } }
/* 검은 터미널 위에서는 토글을 뒤집는다 — 오프화이트 알약, 검은 글자 */
body.is-ai .ha-seg{ background:color-mix(in srgb, var(--off-white) 94%, transparent); box-shadow:none; }
body.is-ai .ha-seg button{ color:color-mix(in srgb, var(--black) 55%, transparent); }
body.is-ai .ha-seg button:hover{ color:var(--black); }
body.is-ai .ha-seg button[aria-checked="true"]{ color:var(--black); background:color-mix(in srgb, var(--black) 10%, transparent); }
body.is-ai .ha-seg button:focus-visible{ outline-color:var(--black); }
/* AI 보기 문법 색 — 리멤버 8색 램프의 200~300 단계(검은 바탕 대비 7:1 이상). 제목 기호만 오렌지 */
.ha-pre .t-m{ color:var(--orange-400); }
.ha-pre .t-h{ color:var(--off-white); font-weight:600; }
.ha-pre .t-p{ color:color-mix(in srgb, var(--off-white) 34%, transparent); }
.ha-pre .t-q{ color:color-mix(in srgb, var(--off-white) 58%, transparent); }
.ha-pre .t-b{ color:var(--off-white); font-weight:600; }
.ha-pre .t-c{ color:var(--cyan-200); }
.ha-pre .t-k{ color:var(--cyan-100); }
.ha-pre .t-v{ color:var(--purple-300); }
.ha-pre .t-x{ color:var(--yellow-200); white-space:nowrap; }
.ha-pre .t-x i{ display:inline-block; width:.8em; height:.8em; margin-right:.35em; vertical-align:-.05em; box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--off-white) 24%, transparent); }
.ha-pre .t-n{ color:var(--green-200); }
.ha-pre .t-f{ color:var(--magenta-200); }
.ha-pre .t-s{ color:var(--yellow-300); }
/* 사이드 메뉴가 창보다 길면 아래 끝을 흐리게 — 메뉴가 더 있다는 표시 (2026-10-23 "AI로 만들기가 안 보여"). 끝까지 내리면 여백 위에 겹쳐 항목을 가리지 않는다 */
@media (min-width:769px){
  body.brand-guide .site-side > details::after{
    content:""; position:sticky; bottom:-24px; display:block; height:40px; margin-top:-40px; pointer-events:none;
    background:linear-gradient(color-mix(in srgb, var(--site-ground) 0%, transparent), var(--site-ground));
  }
}
