/* 홈 전용 스타일. styles.css 뒤에 로드해 덮어쓴다.
   privacy/terms/404 는 styles.css 만 쓰므로 이 파일의 영향을 받지 않는다.

   🔴 이 페이지의 목적은 «머무는 것»이 아니라 «Instagram·YouTube 로 넘어가는 것»이다 (홈페이지-규칙 §1).

   2026-09-24 3차 — 에디토리얼(신문 지면) 판. 유진님 16:3x (팀장 전달)
     「웹색상은 밝은 크림시문지로 바꾸되 다크모드 기눙도 넣어줘」
     「응 촤대한 고급스럽게, 지금은 너무 유치하니까 고급화하는쪽으로가자」
   짜임새 다섯 가지만 기억하면 된다.
     ① 색은 styles.css 의 토큰 «두 벌»(크림·먹)에서만 온다. 여기에는 색 값을 적지 않는다
        (폰 목업 속 «앱 화면»만 예외 — 늘 어두운 화면이라 --dv-* 고정 토큰을 쓴다)
     ② 제목(h1·h2·h3)만 --font-display(기본 주아 — 규칙 §3 · 명조는 ?font=serif 제안), 읽는 글은 Pretendard(--sans),
        꼬리표·단추·숫자는 영문 대문자 Inter(--en). 꼬리표 크기는 토큰 두 벌(--tag-* · --btn-*)뿐이다 (5차)
     ③ 나누는 것은 «가는 괘선»과 여백뿐이다. 괘선은 세 단 — 머리 3px 이중 · 절 2px · 행 1px. 그림자 카드·알약·무지개 단추를 쓰지 않는다
     ④ 머스터드는 «세 곳»에만 (5차 · 로고와 같은 «점 하나» 규칙) — 로고 점 · 진행 막대 · 누를 때(hover·focus)
     ⑤ 덩어리는 --content 에서 멈추고 margin:auto 로 «어느 폭에서도 가운데»(§6)
   옛 판(2차 · 어두운 먹 + 주아)은 .review/home.css.2cha · git HEAD 판은 .review/home.css.orig */

/* 🔴 2026-09-12 12:32 «고장 수리» — `.intro-modal{display:grid}`·`.drawer{display:flex}` 가
   브라우저 기본 `[hidden]{display:none}` 을 이겨, 닫힌 창이 화면 전체에 투명하게 깔려 클릭을 다 먹었다.
   🔴 이 한 줄을 지우지 마라. display 를 주는 숨김 대상이 또 생기면 같은 고장이 난다. */
[hidden] { display: none !important; }

body { background: var(--bg); color: var(--ink); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── 글씨체 ─────────────────────────────────────────
   🔴 제목 글꼴은 변수 하나(--font-display · styles.css)다. 기본 주아(규칙 §3), 명조는 «제안»(?font=serif).
   🔴 5차 — 주아는 «제목 자리(h1·h2·h3)»에만 쓴다. build.py 의 «제목글꼴_자리»(h1·h2·h3)와 짝이다 (그 글자만 받는다).
      숫자(.ed-day time · .step-number)는 Inter 의 고른 폭 숫자로, 귀 글씨(.np-ear-t)는 Pretendard 600 으로 옮겼다.
   🔴 굵기도 변수로 준다 — 주아는 400 한 벌이라 h 태그 기본(700)을 그대로 두면 가짜 굵게가 된다. */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
}

/* 숫자 — Inter 500 · 줄맞춤 숫자 · 고른 폭 (날짜가 바뀌어도 폭이 흔들리지 않는다) */
.ed-day time,
.step-number {
  font-family: var(--en);
  font-weight: 500;
  font-variant-numeric: lining-nums tabular-nums;
}

/* 영문 꼬리표 — 대문자 (홈페이지-규칙 §4 «누르는 것·꼬리표는 영어»)
   🔴 5차 — 크기·자간은 토큰 두 벌뿐이다: 꼬리표 --tag-*(11px · .14em · 500) · 단추 --btn-*(12px · .12em · 600).
      여기 목록에 선택자를 더하면 .review/shot3.mjs 의 «꼬리표 목록»에도 더한다(두 벌 넘는지 잰다). */
.np-dateline,
.np-ear-k,
.np-tag,
.sec-k,
.fmt-k,
.fp-k > span,
.ed-no,
.fp-list li span,
.sp-list li span,
.ed-day i,
.ed-topics li span,
.ed-hint,
.ed-edge,
.drawer-title,
.oauth-eyebrow,
.intro-k,
.step-number {
  font-family: var(--en);
  font-size: var(--tag-fs);
  font-weight: var(--tag-fw);
  letter-spacing: var(--tag-ls);
  text-transform: uppercase;
}

.btn,
.np-btn,
.lk-cards,
.menu-item.is-en {
  font-family: var(--en);
  font-size: var(--btn-fs);
  font-weight: var(--btn-fw);
  letter-spacing: var(--btn-ls);
  text-transform: uppercase;
}

#intro-title {
  font-family: var(--en);
  font-weight: 600;
  text-transform: uppercase;
}

/* ── 껍데기 — 머리·바닥은 창 폭에 붙고, 읽는 덩어리만 가운데에서 멈춘다 ──
   🔴 2026-09-12 — 머리줄에 최대 폭을 걸면 축소했을 때 햄버거가 «가운데로» 밀려 들어왔다.
      그래서 머리줄은 창 끝에 붙이고, 최대 폭은 «읽는 덩어리»(--content)에만 준다. */
.nav,
.footer-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: var(--shell);
}

.np-inner,
.fmt-inner,
.fp-inner,
.section-inner,
.oauth-inner {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
}

.nameplate,
.formats,
.front,
.sections,
.section,
.oauth-note { padding-inline: var(--shell); }

/* ── 단추 — 먹 한 판 · 각진 모서리 ─────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  color: var(--btn-ink);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--r);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}

.btn svg { width: 17px; height: 17px; flex: none; }
.btn svg:last-child:not(:first-child) { width: 15px; height: 15px; transition: transform .22s var(--ease); }
.btn:hover, .btn:focus-visible { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.btn:hover svg:last-child:not(:first-child) { transform: translateX(3px); }

/* 조용한 단추 — 지난 편·서랍처럼 단추가 «여럿» 모인 자리. 선만 두고 누르면 채운다 */
.ed-cta .btn,
.drawer-foot .btn {
  color: var(--ink);
  background: transparent;
  border-color: var(--rule-2);
}
.ed-cta .btn:hover, .ed-cta .btn:focus-visible,
.drawer-foot .btn:hover, .drawer-foot .btn:focus-visible {
  color: var(--btn-ink);
  background: var(--btn-bg);
  border-color: var(--btn-bg);
}

/* ── 상단 바 ────────────────────────────────────────
   유진님 2026-09-12 09:24 「가만히 있을때는 바로 아래의 색상과 이어지게, 스크롤해서 내리면 딱 나눠지게」.
   맨 위 = 지면과 한 몸(투명). 내리면 = 크림(먹) 띠 + 머리카락 선 한 줄. 문턱은 home.js 가 잰다. */
.site-header {
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}

.site-header.is-stuck {
  background: var(--header-bg);
  border-bottom-color: var(--rule);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* 🔴 2026-09-12 유진님 15:16 「좌측 상단의 메뉴가 확대됨에 따라 같이 커져」 — 머리줄 부품은
   clamp 의 «최댓값»이 100% 배율 값이고, 가운데 vw 는 1280 에서 최댓값을 막 넘게 잡았다.
   하한(34~40px)을 둬서 무한정 작아지지 않는다. */
/* 🔴 --header-h 는 머리줄 높이 — home.js(상단바)가 실제 높이를 재서 덮어쓴다. JS 가 없을 때의 받침값이 여기다.
   html scroll-padding-top(키보드 초점·닻이 머리줄 밑에 숨지 않게)이 이 값을 쓴다 */
:root { --header-h: clamp(52px, 5.32vw, 68px); --lockup-h: clamp(28px, 2.98vw, 38px); }
html { scroll-padding-top: calc(var(--header-h, 64px) + 8px); }
.nav { justify-content: space-between; gap: 12px; min-height: clamp(52px, 5.32vw, 68px); }   /* 🔴 --header-h 로 쓰지 마라 — home.js 가 잰 값을 거기 되써서 창을 줄여도 머리줄이 안 줄어든다 */
.nav .brand-link { margin-right: auto; gap: 10px; }   /* 햄버거가 «좌측 상단» 첫 자리 (09-12 08:18) */

/* 🔴 5차 — 머리줄 로고 = 인장 + 작은 판 워드마크 한 벌(lockup · 316.4:100). 파일은 build.py 의 LOCKUP 한 줄.
   제호가 보이는 동안(맨 위)은 «인장 네모만» 보이게 오른쪽을 가린다 — 같은 이름이 위아래 두 번 찍히지 않게.
   내려서 머리줄이 붙으면(is-stuck) 워드마크가 펼쳐진다. 인장은 언제나 보인다(두 판 모두).
   🔴 .js 가 있을 때만 가린다 (JS 가 없으면 is-stuck 이 안 붙는다) · 키보드로 닿으면 펼친다. */
.brand-lockup {
  display: block;
  flex: none;
  width: calc(var(--lockup-h) * 3.347);
  height: var(--lockup-h);
  object-fit: cover;
  object-position: left center;
  border-radius: 0;
  transition: width .3s var(--ease);
}
.js .site-header:not(.is-stuck) .brand-lockup { width: var(--lockup-h); }
.js .site-header .brand-link:focus-visible .brand-lockup { width: calc(var(--lockup-h) * 3.347); }

.nav-actions { display: flex; align-items: center; gap: 6px; }

.menu-btn,
.icon-link {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: clamp(40px, 3.4vw, 44px);
  height: clamp(40px, 3.4vw, 44px);
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;      /* 🔴 5차 — 가만히 있을 때는 선이 없다. 누를 때만 선 (네모 다섯이 줄지어 서지 않게) */
  border-radius: var(--r);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.menu-btn svg { width: clamp(17px, 1.6vw, 21px); height: clamp(17px, 1.6vw, 21px); }
.icon-link svg { width: clamp(15px, 1.4vw, 18px); height: clamp(15px, 1.4vw, 18px); }
.menu-btn:hover, .menu-btn:focus-visible,
.icon-link:hover, .icon-link:focus-visible { border-color: var(--rule-2); }

.nav-actions .theme-btn { height: clamp(40px, 3.4vw, 44px); min-width: clamp(40px, 3.4vw, 44px); margin-right: 4px; }

/* ── 제호 (nameplate) — 첫 화면 맨 위 ─────────────────
   신문 1면 머리: 날짜줄 → 귀(모토 · 두 판) + 큰 활자 제호 → 태그라인 → 이중 괘선.
   🔴 5차 — 사진 띠(.np-strip)는 지웠다: 옛 AI 배너 조각 · 「The News」 가짜 제호 · 권리 기록 없음.
   🔴 바탕 무늬·질감을 넣지 않는다 (홈페이지-규칙 §3 A안 — 「나중에 제안줄게」). */
.nameplate { padding-top: clamp(4px, 1vh, 14px); }

.np-dateline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 18px;
  margin: 0;
  padding: 10px 0 9px;
  border-block: 1px solid var(--rule-2);
  color: var(--muted);
  line-height: 1.3;
}
.np-date { color: var(--ink); }

.np-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 2.6vw, 44px);
  padding-block: clamp(20px, 3.4vw, 48px) clamp(16px, 2.6vw, 36px);
}

.np-mast { text-align: center; }

.np-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.4rem, 9vw, 9rem);
  font-weight: var(--fw-display-strong);
  line-height: .98;
  letter-spacing: var(--ls-display-tight);
}

.np-tag {
  margin: clamp(10px, 1.2vw, 16px) 0 0;
  color: var(--ink-2);
  line-height: 1.3;
}

/* 🔴 레터링 제호 «제안» (5차 · ?masthead=lettering) — 기본은 위의 주아 활자 h1(규칙 §3).
   켜면 h1 글자는 읽기 도구용으로만 남기고(sr-only) D4 v2 워드마크 윤곽을 보인다. 600px 밑은 두 줄 판. */
.np-letter { display: none; color: var(--ink); }
.np-letter-dot { fill: var(--logo-dot); }
:root[data-masthead="lettering"] .np-title-t {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
:root[data-masthead="lettering"] .np-letter-wide {
  display: block;
  width: clamp(15rem, 34vw, 34rem);
  height: auto;
  margin-inline: auto;
}

/* 폰 CTA — 640px 밑에서만 태그라인 밑에 둘 (먹 한 판 · 선 한 판). 넓은 창에서는 두 판 절의 단추가 같은 일을 한다 */
.np-cta { display: none; }
.np-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule-ink);
  border-radius: var(--r);
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.np-btn-solid { color: var(--btn-ink); background: var(--btn-bg); border-color: var(--btn-bg); }
.np-btn:hover, .np-btn:focus-visible { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }

/* 귀(ear) — 제호 양옆. 5차 — 네모 상자 대신 «윗 괘선 한 올» (상자 → 선) */
.np-ear {
  max-width: 240px;
  padding: 10px 0 0;
  border-top: 1px solid var(--rule-2);
}
.np-ear-l { justify-self: start; }
.np-ear-r { justify-self: end; text-align: right; }
.np-ear p { margin: 0; }
.np-ear-k { color: var(--muted); line-height: 1.3; }
.np-ear-t { margin-top: 7px !important; color: var(--ink); font-family: var(--sans); font-size: clamp(1rem, 1.15vw, 1.14rem); font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.np-ear-s { margin-top: 5px !important; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* 가는 이중 괘선 — 제호 밑 (괘선 세 단 중 «머리» 단) */
.np-rule {
  height: 0;
  margin: 0;
  border: 0;
  border-top: 3px double var(--rule-ink);
}

/* ── 두 판 — 카드뉴스 · 세로 영상을 나란히 ──────────── */
/* 🔴 5차 — 절 사이 간격은 토큰 하나(--sp-section · styles.css)다. 절은 «위»로만 띄운다 → 어느 두 절 사이도 같은 값 */
.formats { padding-block: var(--sp-section) 0; }

/* 절 머리 — 모든 절은 이 한 줄로 연다: 2px 먹 괘선 + 왼쪽 꼬리표 + 오른쪽 꼬리표/링크 */
.sec-k {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 18px;
  margin: 0 0 clamp(26px, 3.4vw, 52px);
  padding-top: 10px;
  border-top: 2px solid var(--rule-ink);
  color: var(--ink);
}
.sec-k > :last-child { color: var(--muted); }
/* 오른쪽 칸이 링크일 때 — 글자는 그대로, 누르는 자리만 위아래로 넓힌다(자리를 밀지 않게 음수 여백) */
.sec-k a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block: -12.5px;
  padding-block: 12.5px;          /* 26-09-26: 12 → 12.5 — 누르는 높이 43 → 44 (§8 · 44px) */
  color: var(--ink) !important;
  text-decoration: underline;
  text-decoration-color: var(--rule-2);
  text-underline-offset: .4em;
  transition: text-decoration-color .2s var(--ease);
}
.sec-k a:hover, .sec-k a:focus-visible { text-decoration-color: var(--accent); }

.fmt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fmt {
  display: grid;
  /* 🔴 5차 — 글칸을 22rem 에서 멈추고 «쌍째» 가운데로 민다(그림 + 글이 칸 가운데에 온다 · 규칙 §6) */
  grid-template-columns: auto minmax(0, 22rem);
  justify-content: center;
  align-items: center;
  gap: clamp(22px, 2.6vw, 44px);
  padding-inline: clamp(20px, 3vw, 52px);
}
.fmt + .fmt { border-left: 1px solid var(--rule); }   /* 신문의 단 사이 세로 괘선 */

.fmt-art { display: grid; place-items: center; }

.fmt-k {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.4;
}
.fmt-k span + span::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--rule-2);
}

.fmt h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(1.75rem, 2.4vw, 2.7rem);
  line-height: 1.2;
}
/* 둘째 줄 — 5차: 머스터드를 빼고 한 단 낮은 먹(--ink-2)으로. 머스터드는 로고 점·진행 막대·누를 때만 */
.fmt h2 .accent { color: var(--ink-2); }

.fmt-lead {
  max-width: 32ch;
  margin: 0 0 24px;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.7;
}

/* ── 스마트폰 «그림» — CSS 로 직접 그린다 ────────────
   🔴 남의 기기 사진·남의 앱 화면 캡처를 쓰지 않는다 (§3.6). 상표 선: 짜임·«보통 기호»만, 그 회사 로고·글꼴·색 금지.
   🔴 폰 속은 «늘 어두운 앱 화면»이다 — 판(크림/먹)과 상관없이 --dv-* 고정 토큰(styles.css)을 쓴다.
   🔴 2026-09-12 유진님 14:54 「확대하면 모서리가 알약처럼 변해」 — 치수를 «전부» 폰 폭 하나에 매단다.
      반지름이 px 고정이면 폰이 작아질 때 모서리 비율만 커진다. 비율은 합격받은 100% 값 그대로다.
      폭 = 높이 × 9 ÷ 19.5. 창 크기별 덮어쓰기는 height 가 아니라 «--폰높이» 를 바꾼다.
   ⚠️ cqw 를 .device 자신에 쓰지 않는다 — 자기 자신의 container 라 자기 폭을 못 읽는다. */
/* 🔴 5차 — .device-link 는 이제 «링크가 아니다»(div). 링크는 폰 전체를 덮는 투명한 .dv-cover 이고,
   재생 단추(.dv-play)는 그 «형제»로 위에 겹친다 → 링크 안에 단추가 든 중첩(a button)이 사라졌다. */
.device-link {
  --폰높이: min(540px, 64vh);
  --폰폭: calc(var(--폰높이) * 9 / 19.5);
  display: block;
}

.device {
  position: relative;
  aspect-ratio: 9 / 19.5;
  height: var(--폰높이);
  padding: calc(var(--폰폭) * .0305);
  border-radius: calc(var(--폰폭) * .1286);
  background: linear-gradient(150deg, #3a3936 0%, #1c1d20 46%, #0e0f11 100%);
  box-shadow: var(--shadow-device);
  transition: transform .5s var(--ease);
  /* 기기가 커져도 «안쪽 글»은 기기 폭에 맞춰 커진다 */
  container-type: inline-size;
}

.device-link:hover .device,
.device-link:has(.dv-cover:focus-visible) .device { transform: translateY(-5px); }

.dv-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}
.dv-cover:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; }

.device-slit {
  position: absolute;
  top: calc(var(--폰폭) * .0135);
  left: 50%;
  width: 28%;
  height: calc(var(--폰폭) * .0169);
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--dv-frame-edge);
}

.device-screen {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--폰폭) * .1016);
  background: var(--dv-screen);
  color: var(--dv-ink);
  font-family: var(--sans);
  line-height: 1.35;
}

.device-media img { display: block; width: 100%; height: 100%; }

/* ── 피드 한 장 판 (인스타) — 계정 줄 · 그림(4:5) · 동작 줄 · 설명란 ── */
.dv-top {
  display: flex;
  align-items: center;
  gap: 6cqw;
  padding: 3.4cqw 4cqw;
  font-size: 4.4cqw;
  font-weight: 700;
}
.dv-top img { width: 8.6cqw; height: 8.6cqw; border-radius: 50%; }
.dv-top span { flex: 1; }

.dv-dots {
  width: 5cqw;
  height: 1.3cqw;
  background-image: radial-gradient(circle, var(--dv-dots) 30%, transparent 34%);
  background-size: 2cqw 1.3cqw;
}

.device:not(.device--reel) .device-screen { grid-template-rows: auto auto auto auto 1fr auto; }
.device:not(.device--reel) .dv-media { aspect-ratio: 4 / 5; overflow: hidden; }
.device:not(.device--reel) .dv-media img { object-fit: cover; }

.dv-acts {
  display: flex;
  align-items: center;
  gap: 4.6cqw;
  padding: 3.4cqw 4cqw 1.6cqw;
}
.dv-acts svg { width: 6.6cqw; height: 6.6cqw; display: block; }
.dv-mark { margin-left: auto; }

.dv-cap { padding: 0 4cqw 3cqw; font-size: 3.9cqw; }
.dv-cap p { margin: 0 0 1.2cqw; }
.dv-cap b { font-weight: 800; }
.dv-cap-sub { color: var(--dv-dim); }
.dv-cap-foot { color: var(--dv-faint); font-size: 3.3cqw; letter-spacing: .04em; }

/* 맨 아래 줄 — «보통 기호»(집 · 돋보기 · 하트 · 사람)뿐이다.
   🔴 이 줄이 없으면 화면 아래가 그냥 검게 남아 «깨진 것»처럼 보인다 (실측) */
.dv-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 3cqw 4cqw;
  border-top: 1px solid var(--dv-line);
  color: var(--dv-dim);
}
.dv-nav svg { width: 6.2cqw; height: 6.2cqw; display: block; }
.dv-nav > :first-child { color: var(--dv-ink); }

/* 다음 글이 «살짝» 보이는 자리 — 없으면 설명란과 맨 아래 줄 사이가 통째로 빈다 */
.dv-peek {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-top: 1px solid var(--dv-line);
  opacity: .55;
}
.dv-peek-img { background: linear-gradient(160deg, #26262a, #17181b); }

/* ── 세로 영상 판 (유튜브) ──────────────────────────
   🔴 격자를 쓰지 않는다 — 2026-09-12 에 media·cap 이 같은 행을 요구해 칸이 하나 더 생겨
      영상이 화면 왼쪽에만 들어갔다(실측). 그림이 화면 전체를 덮고 글·기호는 그 «위»에 얹는다. */
.device--reel .device-screen { display: block; }
.device--reel .dv-media { position: absolute; inset: 0; }
.device--reel .dv-media img { object-fit: cover; }

.dv-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--dv-scrim-top), transparent 16%),
    linear-gradient(to top, var(--dv-scrim-bot), transparent 34%);
}

.dv-over {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.dv-rail {
  position: absolute;
  right: 3.2cqw;
  bottom: 27cqw;
  display: grid;
  gap: 6.4cqw;
  justify-items: center;
}
.dv-act { display: grid; justify-items: center; gap: 1.2cqw; }
.dv-act svg { width: 8cqw; height: 8cqw; display: block; filter: drop-shadow(0 1px 2px var(--dv-glyph-shadow)); }
.dv-act b { font-size: 3.1cqw; font-weight: 700; letter-spacing: .01em; }

.dv-foot { padding: 0 22cqw 7cqw 4cqw; }

.dv-who {
  display: flex;
  align-items: center;
  gap: 2.4cqw;
  margin: 0 0 2.4cqw;
  font-size: 4cqw;
  font-weight: 700;
}
.dv-who img { width: 8.4cqw; height: 8.4cqw; border-radius: 50%; }
.dv-who em {
  font-style: normal;
  padding: 1cqw 3.4cqw;
  border-radius: 999px;
  background: var(--dv-ink);
  color: var(--dv-screen);
  font-size: 3.4cqw;
  font-weight: 800;
}

.dv-title {
  margin: 0;
  font-size: 4cqw;
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 1px 3px var(--dv-glyph-shadow);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.dv-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: .9cqw;
  background: var(--dv-bar);
}
.dv-bar i { display: block; width: 34%; height: 100%; background: var(--dv-accent); }

/* 🔴 2026-09-12 유진님 15:17 「재생버튼을 누르면 이 웹에서 소개영상을 띄워야지 유튜브 채널로 가는거 아니야. 기억해.」
   🔴 5차 — 덮개 링크(.dv-cover)의 «형제»다. z-index 로 그 위에 겹친다. 링크 밖이라 이동을 막는 꼼수가 필요 없다.
   크기는 max(44px, 15cqw) — 작은 폰에서도 손가락 자리 44px 밑으로 안 내려간다. */
.dv-play {
  position: absolute;
  left: 50%;
  top: 44%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: max(44px, 15cqw);
  height: max(44px, 15cqw);
  padding: 0;
  transform: translate(-50%, -50%);
  color: var(--dv-ink);
  background: var(--dv-play-bg);
  border: 2px solid var(--dv-play-ring);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(2px);
  transition: background .2s var(--ease), color .2s, transform .2s var(--ease);
}
.dv-play:hover, .dv-play:focus-visible {
  background: var(--dv-accent);
  color: var(--dv-on-accent);
  transform: translate(-50%, -50%) scale(1.08);
}
.dv-play:focus-visible { outline: 2px solid var(--dv-accent); outline-offset: 3px; }
.dv-play svg { width: 7cqw; height: 7cqw; margin-left: .6cqw; }

/* 🔴 목업이 «작을 때» 안 들어가는 글자를 뺀다 (2026-09-12 유진님 17:18 「폰에서 보면 스마트폰안 디테일이 다깨지는데」).
   겹침은 «폭»이 아니라 실제 폰의 «최소 글자 크기»가 만든다 → 창 폭이 아니라 «목업 폭»으로 가른다.
   남는 글씨는 12px 로 못박는다 — 어차피 폰이 그 밑으로는 안 그린다. */
@container (max-width: 220px) {
  .dv-act b,
  .dv-who em,
  .dv-cap-foot { display: none; }
  .dv-who,
  .dv-title { font-size: 12px; }
  .dv-title { -webkit-line-clamp: 2; }
  .dv-foot { padding-right: 14cqw; }
}

/* ── 절 공통 ─────────────────────────────────────── */
/* 🔴 5차 — 절은 위로 --sp-section 만큼 띄우고, 맨 끝 절만 아래도 띄운다(구글 칸과의 사이). 덮어쓰기(.section--about)는 지웠다 */
.section { padding-block: var(--sp-section) 0; }
.section--about { padding-bottom: var(--sp-section); }

/* 절 머리 — 왼쪽 제목 · 오른쪽 짧은 글 · 아래 굵은 괘선.
   🔴 5차 — 제목은 두 판 h2 와 «같은 단»(clamp(1.9rem,3vw,2.8rem)). 크게 남는 것은 제호 하나다. 위로 맞춘다(start) */
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  gap: 14px clamp(24px, 4vw, 72px);
  margin-bottom: clamp(26px, 3.4vw, 48px);
  padding-bottom: clamp(20px, 2.4vw, 32px);
  border-bottom: 2px solid var(--rule-ink);
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: var(--ls-display-tight);
}

.section-heading p {
  max-width: 46ch;
  margin: 0;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.75;
}
.section-heading p b { color: var(--ink); font-weight: 600; }

/* 우리가 하는 일 — 세 단. 칸을 «상자»로 나누지 않고 단 사이 세로 괘선만 긋는다 (유진님 10:19) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 4px clamp(18px, 2.6vw, 40px) 0;
  border-left: 1px solid var(--rule);
}
.card:first-child { padding-left: 0; border-left: 0; }
.card:last-child { padding-right: 0; }

.step-number {
  display: block;
  margin: 0 0 14px;
  color: var(--muted);          /* 5차 — 큰 머스터드 숫자를 «01 —» 꼬리표로 낮췄다 */
  line-height: 1.3;
}

.card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.15rem, 1.4vw, 1.32rem);
  line-height: 1.35;
}

.card p {
  max-width: 36ch;
  margin: 0;
  color: var(--ink-2);
  font-size: .95rem;
  line-height: 1.78;
}

/* ── 지난 편 — «한 번 밀면 한 편» ─────────────────────
   🔴 2026-09-12 유진님 12:39 — 세로 스크롤은 언제나 페이지 몫이다. 옆으로는
      끌기·스와이프·화살표·방향키로 «한 편씩», 휠로 옆은 «눌러서 잡았을 때»만 (home.js §6).
   🔴 JS 가 없거나 움직임을 마다한 설정이면 «그냥 위아래로 쌓인다» (아래 되돌림 블록). */
.section--rail { padding-bottom: clamp(40px, 6vh, 72px); }

.ed-rail {
  /* 🔴 트랙과 칸이 «둘 다» 읽으므로 공통 조상에 둔다 — 자식에만 두면 트랙 calc 가 조용히 무효가 된다 (실측) */
  --칸: 74%;                 /* 나머지 26% 가 좌우 13% 씩 — 오른쪽 전날 · 왼쪽 다음날 */
  --페이드: 16%;              /* 🔴 --칸 과 한 쌍: (100-74)/2/74 ≒ 17.6% → 16% */
  margin-inline: calc(-1 * var(--shell));
}

.ed-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  padding-block: clamp(14px, 2.4vh, 28px) clamp(48px, 7vh, 76px);
  touch-action: pan-y;          /* 🔴 세로 스크롤은 늘 페이지 몫이다 */
  outline-offset: -3px;
  transition: box-shadow .45s var(--ease), background .45s var(--ease);
}
.ed-stage:focus-visible { outline: 2px solid var(--focus); }

/* 잡힌 것이 «눈에 보인다» — 유진님 16:05 「다른 부분(위 아래)은 음영처리해서 이슈에 집중되게」.
   🔴 덮개를 따로 만들지 않는다 — 무대 «바깥»으로 퍼지는 그림자 하나. 안(고른 칸)은 또렷한 그대로다. */
.ed-stage.is-held {
  outline: 1px solid var(--focus);
  background: var(--bg);
  box-shadow: 0 0 0 100vmax var(--scrim);
}
/* 🔴 1.05 는 무대의 위쪽 여백에 들어가는 값이다. 더 키우면 위가 잘린다 */
.ed-stage.is-held .ed[aria-hidden="false"] { transform: scale(1.05); }
.ed-stage.is-held .ed[aria-hidden="true"] { opacity: .08; }
/* 🔴 5차 — 잡힌 동안 머리줄은 «흐리게(opacity .3)» 대신 inert 로 막고 불투명하게 둔다(home.js 잡기()).
   흐린 글자는 대비 검사에 걸리고, 흐려도 눌리던 것이 더 나빴다. 바탕을 채워 뒤 그림자가 비치지 않게 한다 */
body.ed-held .site-header { background: var(--header-bg); }

/* 🔴 지금 편이 «언제나» 정중앙 (유진님 13:54). 앞의 (100% - 칸)/2 가 가운데로 미는 몫이다.
   가장자리 편에서도 가운데를 옮기지 않는다 — 빈 것 자체가 「여기가 끝」이다. */
.ed-track {
  display: flex;
  width: 100%;
  will-change: transform;
  transform: translate3d(calc((100% - var(--칸)) / 2 - var(--i, 0) * var(--칸)), 0, 0);
  transition: transform .5s var(--ease);
}

/* 이웃 예고 — 가장자리로 갈수록 사라진다 (유진님 13:54). 덮개를 양 끝이 진하고 가운데가 0 으로 */
.ed[aria-hidden="true"] {
  opacity: .26;
  -webkit-mask-image: linear-gradient(to right, var(--mask-on) 0%, transparent var(--페이드),
                                      transparent calc(100% - var(--페이드)), var(--mask-on) 100%);
          mask-image: linear-gradient(to right, var(--mask-on) 0%, transparent var(--페이드),
                                      transparent calc(100% - var(--페이드)), var(--mask-on) 100%);
  transition: opacity .5s var(--ease);
}
.ed[aria-hidden="false"] { opacity: 1; transition: opacity .5s var(--ease), transform .5s var(--ease); }

/* 왼쪽 이웃만 안을 뒤집어 «표지»가 안쪽 가장자리에 오게 한다.
   🔴 grid-row 를 같이 못박는다 — 칸만 지정하면 «두 줄»로 쌓인다 (실측) */
.ed[data-곁="왼"] { grid-template-columns: minmax(0, var(--글폭)) minmax(0, var(--cover-w)); }
.ed[data-곁="왼"] .ed-text { grid-column: 1; grid-row: 1; }
.ed[data-곁="왼"] .ed-cover { grid-column: 2; grid-row: 1; }

/* 끝의 «빈 자리» 표시 (유진님 16:29 「양쪽에 전날, 다음날께 왜 안보여?」) — 누를 수 없다.
   🔴 5차 — 옅게(.45) 두지 않고 --muted 글자색 그대로 (대비 5.6↑). 작고 조용한 것은 «색»이 아니라 «크기»로 */
.ed-edge {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .5s var(--ease);
}
.ed-edge-new { left: 6.5%; }
.ed-edge-old { left: 93.5%; }
.ed-stage.is-first .ed-edge-new,
.ed-stage.is-last .ed-edge-old { opacity: 1; }
.ed-stage.is-held .ed-edge { opacity: .08 !important; }
/* 🔴 좁은 창에서는 빈칸이 45px 뿐이라 가로 글씨가 지금 편을 덮는다 → 세로로 세운다 (실측 360) */
@media (max-width: 760px) {
  .ed-edge { writing-mode: vertical-rl; letter-spacing: .18em; }
}

.ed-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 0;
  color: var(--muted);
  white-space: nowrap;
  pointer-events: none;
}
.ed-stage.is-held .ed-hint { color: var(--ink); }

.ed-nav {
  position: absolute;
  right: var(--shell);
  bottom: 14px;
  display: flex;
  gap: 6px;
}
.ed-nav button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s, opacity .25s;
}
.ed-nav button:hover:not(:disabled) { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.ed-nav button:disabled { opacity: .3; cursor: default; }
.ed-nav svg { width: 18px; height: 18px; }

.ed {
  flex: 0 0 var(--칸);
  /* 🔴 2026-09-12 유진님 16:05 「여전히 이슈가 왼쪽으로 쏠려있어」 — 글칸이 1fr 이라 칸을 다 먹는데 글은
     620px 에서 멈춰 남는 폭이 글 오른쪽에 쌓였다 (1920 에서 126px). 글칸을 글 폭에서 멈추고 가운데로 민다. */
  --글폭: 620px;
  --cover-w: clamp(210px, 26vw, 360px);
  justify-content: center;
  /* 🔴 flex 항목의 «자동 최소 폭»을 끈다 — 안 끄면 칸이 --칸 보다 넓어져 한 칸에 15px 씩 밀린다 (실측 390) */
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, var(--cover-w)) minmax(0, var(--글폭));
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  padding-inline: var(--shell);
  box-sizing: border-box;
}

/* 표지 — 720×900(4:5) 원본 그대로. 한 점도 자르지 않는다.
   🔴 5차 — 평평하게: 그림자·둥근 모서리·떨어진 액자(outline)를 지우고 머리카락 선 한 올(box-shadow 1px)만.
      outline 은 «초점 표시» 몫으로 비워 둔다 — 전에는 장식 outline 이 초점 고리를 가렸다(A11Y-01). */
.ed-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--rule);
}
.ed-cover:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.ed-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.ed-cover:hover img { transform: scale(1.03); }

/* 날짜줄 — 호수(꼬리표) · 날짜(제목 글꼴 큰 숫자) · 요일(작은 딱지) */
.ed-day {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--rule-ink);
  line-height: 1.1;
}
.ed-no { order: -1; flex-basis: 100%; color: var(--muted); }
.ed-day time { color: var(--ink); font-size: clamp(1.6rem, 2.7vw, 2.6rem); letter-spacing: -.02em; }
.ed-day i { font-style: normal; color: var(--muted); }   /* 5차 — 요일 딱지의 테두리를 지웠다 (상자 → 글자) */

/* 🔴 이슈는 «제목만 행별로» (유진님 11:19 ⑦). 요약문을 붙이지 않는다 */
.ed-topics { margin: 0 0 16px; padding: 0; list-style: none; }
.ed-topics li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-size: clamp(.94rem, 1.2vw, 1.06rem);
  line-height: 1.45;
}
.ed-topics li span { flex: none; color: var(--muted); }

.ed-more { margin: 0 0 18px; color: var(--muted); font-size: .82rem; }

.ed-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-cta .btn { min-height: 46px; padding: 11px 18px; }

/* 어디쯤 왔는지 — 무대 «맨 아래 모서리»에 머리카락 한 줄 */
.ed-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--rule);
  overflow: hidden;
}
.ed-progress i {
  display: block;
  width: calc(100% / var(--n, 3));
  height: 100%;
  background: var(--accent);
  transform: translateX(var(--p, 0));
  transition: transform .5s var(--ease);
}

/* 🔴 되돌림 — JS 가 없으면 옆으로 미는 장치 대신 «그냥 위아래로 쌓인다» */
html:not(.js) .ed-stage { overflow: visible; padding-block: 0; }
html:not(.js) .ed-track { flex-direction: column; gap: 56px; transform: none; }
html:not(.js) .ed { flex: none; }
html:not(.js) .ed-progress,
html:not(.js) .ed-hint,
html:not(.js) .ed-edge,
html:not(.js) .ed-nav { display: none; }

/* ── 스크롤 등장 — «스르륵» ─────────────────────────
   🔴 «기본은 보이는 쪽»이다. `.js` 는 home.js 가 붙이므로 JS 가 안 돌면 아무것도 숨지 않는다. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .62s var(--ease), transform .62s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ── 화면 전환 — JS 가 없으면 모든 화면이 그대로 보인다 (심사자·검색엔진용) ── */
.js .view { display: none; }
.js .view.is-active { display: block; animation: view-in .38s var(--ease) both; }
.js .view:focus { outline: none; }
@keyframes view-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ── 목록 서랍 ───────────────────────────────────────
   🔴 2026-09-12 유진님 16:07 「확대하면 존나 커져」 — 머리줄과 같은 결로 clamp 최댓값 = 100% 값.
      폰(≤640)은 아래에서 «옛 값 그대로» 둔다 (44px 밑으로 안 내린다). */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--scrim);
  opacity: 0;
  transition: opacity .28s var(--ease);
}
.drawer-backdrop.is-open { opacity: 1; }

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 41;
  display: flex;
  flex-direction: column;
  width: min(86vw, clamp(240px, 25.1vw, 320px));
  height: 100dvh;
  padding: clamp(12px, 1.26vw, 16px) clamp(12px, 1.26vw, 16px) clamp(16px, 1.73vw, 22px);
  background: var(--surface);
  border-right: 1px solid var(--rule);
  box-shadow: var(--shadow-pop);
  transform: translateX(-102%);
  transition: transform .3s var(--ease);
}
.drawer.is-open { transform: none; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 14px;
  border-bottom: 2px solid var(--rule-ink);
}
.drawer-title { color: var(--ink); }

.drawer-nav { display: flex; flex-direction: column; padding: 10px 0; }

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: clamp(44px, 4.07vw, 52px);
  padding: clamp(10px, .95vw, 12px) clamp(12px, 1.18vw, 15px);
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: clamp(13.5px, 1.28vw, 1.02rem);
  font-weight: 600;
  text-decoration: none;
  transition: background .18s var(--ease), color .18s, box-shadow .18s var(--ease);
}
.menu-item:hover, .menu-item:focus-visible { background: var(--bg-2); color: var(--ink); }
.menu-item[aria-current="page"] { color: var(--ink); box-shadow: inset 3px 0 0 var(--rule-ink); }

.menu-out { display: inline-grid; place-items: center; opacity: .5; }
.menu-out svg { width: 16px; height: 16px; }

.drawer-foot { display: grid; gap: 8px; margin-top: auto; }
.drawer-foot .btn {
  width: 100%;
  min-height: clamp(42px, 3.76vw, 48px);
  padding-block: clamp(10px, 1.10vw, 14px);
}

/* ── 소개 영상 «틀» — 종이 한 장이 떠오른다 ──────────
   유진님 2026-09-12 11:19 · 15:17. 영상이 생기면 .intro-slot 안만 <video> 로 바꾼다.
   🔴 «누르면 커졌다가 닫으면 줄어드는» 움직임은 그대로다. 빈 창으로 두지 않는다(§5). */
.intro-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: var(--shell);
  background: var(--scrim);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .28s var(--ease);
}
.intro-modal.is-open { opacity: 1; }

.intro-box {
  position: relative;
  width: min(560px, 100%);
  padding: clamp(34px, 5vw, 56px) clamp(26px, 4vw, 44px);
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow-pop);
  transform: scale(.86);
  opacity: 0;
  transition: transform .34s var(--ease), opacity .28s var(--ease);
}
.intro-modal.is-open .intro-box { transform: scale(1); opacity: 1; }
.intro-box::before {           /* 5차 — 안쪽 네 올 액자 대신 «윗 3px 이중 괘선» 한 줄 (제호 밑 괘선과 같은 단) */
  content: "";
  position: absolute;
  inset: 12px 12px auto;
  height: 0;
  border-top: 3px double var(--rule-ink);
  pointer-events: none;
}

.intro-slot { display: grid; justify-items: center; gap: 8px; text-align: center; }
.intro-slot p { margin: 0; }
/* 🔴 2026-09-27 소개 영상 — 세로 9:16 · 화면 높이의 78% 안 */
.intro-video { display: block; width: min(100%, calc(78vh * 9 / 16)); aspect-ratio: 9 / 16; border-radius: 12px; background: #000; }
.intro-k { color: var(--muted); }
#intro-title {
  padding-block: 8px 10px;
  border-block: 1px solid var(--rule-ink);
  color: var(--ink);
  font-size: 1.1rem;
  letter-spacing: .08em;
}
.intro-sub { color: var(--muted); font-size: .9rem; }

.intro-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.intro-close:hover, .intro-close:focus-visible { background: var(--btn-bg); color: var(--btn-ink); }
.intro-close svg { width: 18px; height: 18px; }

/* ── Google OAuth 안내 — «작게 · 맨 아래 · 접지 않는다» (홈페이지-규칙 §7) ──
   🔴 문구는 한 글자도 안 바꾼다 — 심사에 쓰인 문장이다. 크기와 자리만.
   🔴 «작게»이지 «흐리게»가 아니다 — 글자색은 ink-2/muted(대비 5.6 이상)로 둔다. */
.oauth-note {
  color: var(--ink-2);
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
}

.oauth-inner {
  padding-block: 14px 10px;
  font-size: 12.5px;
  line-height: 1.5;
}

.oauth-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 3px;
}
.oauth-eyebrow { margin: 0; color: var(--muted); }
.oauth-note h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.oauth-lead { margin: 0 0 3px; color: var(--ink-2); }

.oauth-list { display: block; margin: 0 0 3px; padding: 0; list-style: none; color: var(--ink-2); }
.oauth-list li { display: inline; }
.oauth-list li + li::before { content: " · "; color: var(--muted); }
.oauth-list strong { margin-right: 3px; color: var(--ink); font-weight: 600; }

.oauth-strong { margin: 0; color: var(--ink-2); }

/* 「문의 및 데이터 삭제 요청」 — 🔴 작게 두되 «누를 수 있어야» 한다 */
.oauth-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 20px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--rule);
}
.oauth-contact > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.oauth-contact h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.oauth-contact p { margin: 0; color: var(--ink-2); }

.oauth-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.oauth-links a {
  padding: 11px 2px;         /* 🔴 폰에서 손가락으로 누를 자리 — 글자가 작아도 이건 안 줄인다 (5차 8 → 11) */
  color: var(--ink);
  font-size: 12.5px;
  text-decoration-color: var(--rule-2);
  white-space: nowrap;
}
.oauth-links a:hover { text-decoration-color: var(--accent); }
/* 5차 — 메일은 상자 단추가 아니라 «밑줄 글자»(상자 → 선). 문구는 그대로 */
.oauth-mail {
  font-weight: 600;
  text-decoration-color: var(--ink) !important;
}

/* ── 바닥 — 구글 칸과 «한 덩어리» (유진님 16:08) ── */
.site-footer { background: var(--bg-2); border-top: 0; }
.footer-inner {
  padding-block: 12px 18px;
  gap: 8px clamp(10px, 2.4vw, 30px);
  font-size: 12.5px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.footer-brand img { width: 24px; height: 24px; }
.footer-links a { color: var(--ink-2); padding-block: 11px; }
.footer-links a:hover { color: var(--ink); }
/* 🔴 바닥 줄은 창 폭에 붙는 .nav 와 달리 «읽는 폭»에서 가운데로 모은다 (구글 칸과 같은 가장자리) */
.site-footer .footer-inner {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--shell));
  margin-inline: auto;
}

/* ════════════════════════════════════════════════════
   창 크기별 — «폭»과 «높이»를 같이 본다 (홈페이지-규칙 §8①)
   ════════════════════════════════════════════════════ */

/* 넓은 창 */
@media (min-width: 1500px) {
  :root { --content: 1440px; }
}

/* 두 판을 «나란히» 둘 폭이 안 되면 한 줄씩 — 유튜브 판은 좌우를 뒤집어 지그재그로 */
@media (max-width: 1180px) {
  .fmt-grid { grid-template-columns: minmax(0, 1fr); }
  .fmt,
  .fmt:first-child,
  .fmt:last-child {
    grid-template-columns: auto minmax(0, 22rem);
    justify-content: center;
    padding: clamp(28px, 4vw, 44px) 0;
  }
  .fmt:first-child { padding-top: 0; }
  .fmt:last-child { padding-bottom: 0; }
  .fmt + .fmt { border-left: 0; border-top: 1px solid var(--rule); }
  /* 🔴 `.fmt.fmt-youtube` 로 세기를 맞춘다 — 유튜브 판은 :last-child(0,2,0)라 `.fmt-youtube`(0,1,0)가 진다 (§8⑦) */
  .fmt.fmt-youtube { grid-template-columns: minmax(0, 22rem) auto; }
  .fmt-youtube .fmt-art { order: 2; }
  .device-link { --폰높이: min(500px, 58vh); }
}

/* 태블릿 — 제호의 귀를 제호 «밑»으로 */
@media (max-width: 860px) {
  .np-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 18px; }
  .np-mast { grid-column: 1 / -1; order: -1; }
  .np-ear { max-width: none; }
  .np-title { font-size: clamp(3.4rem, 13vw, 6.4rem); }
  .section-heading { grid-template-columns: minmax(0, 1fr); align-items: start; }
  :root[data-masthead="lettering"] .np-letter-wide { width: min(72vw, 30rem); }
}

@media (max-width: 1040px) {
  .ed { --cover-w: clamp(190px, 30vw, 300px); }
}

@media (max-width: 720px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .card,
  .card:first-child,
  .card:last-child { padding: 22px 0 24px; border-left: 0; border-top: 1px solid var(--rule); }
  .card:first-child { border-top: 0; padding-top: 4px; }
}

/* 지난 편 — 폰에서는 한 칸으로 쌓는다 (옆으로 넘기는 것은 그대로).
   🔴 한 화면 안에 표지 + 제목 넉 줄 + 단추가 다 들어가야 한다 — 자르지 않고 «비율 그대로 줄이기»만.
   🔴 폰에서는 «뒤집지 않는다» — 한 줄로 쌓여 폭 전체가 내용이라 이유가 없고, 뒤집으면 쌓임이 갈라진다. */
@media (max-width: 760px) {
  .ed,
  .ed[data-곁="왼"] {
    /* 🔴 `minmax(0, 1fr)` — 그냥 1fr 이면 단추 두 개가 칸 최소 폭을 밀어 덩어리가 8px 밀린다 (실측) */
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    justify-items: center;
    gap: 16px;
  }
  .ed[data-곁="왼"] .ed-text,
  .ed[data-곁="왼"] .ed-cover { grid-column: 1; grid-row: auto; }
  .ed-cover { width: auto; max-width: 100%; }
  .ed-cover img {
    width: auto;
    height: min(38vh, 380px);
    max-width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: contain;
  }
  .ed-text { width: 100%; }
  .ed-day { margin-bottom: 10px; padding-bottom: 10px; }
  .ed-day time { font-size: clamp(1.3rem, 6vw, 1.7rem); }
  .ed-topics { margin-bottom: 12px; }
  .ed-topics li { padding: 7px 0; font-size: .9rem; gap: 10px; }
  .ed-more { display: none; }          /* 관문 안내는 절 머리글에 이미 있다 */
  .ed-cta { flex-wrap: nowrap; }
  .ed-cta .btn { flex: 1 1 0; min-height: 44px; padding: 11px 10px; }
  .ed-progress { bottom: 10px; }
}

/* 폰 */
@media (max-width: 640px) {
  body { word-break: keep-all; overflow-wrap: anywhere; }
  .menu-btn, .icon-link,
  .nav-actions .theme-btn { width: 44px; min-width: 44px; height: 44px; }
  .nav-actions { gap: 2px; }
  .nav-actions .theme-btn { margin-right: 0; padding: 0; }

  .np-dateline { justify-content: center; }
  .np-dateline > span:first-child { display: none; }    /* 호수는 날짜줄이 좁을 때 먼저 뺀다 — 지난 편에 있다 */
  .np-head { gap: 10px; padding-block: 18px 16px; }
  .np-title { font-size: clamp(3.2rem, 19vw, 5rem); }
  .np-ear { padding: 8px 0 0; }
  .np-ear-t { font-size: .95rem; }
  .np-ear-s { display: none; }         /* 5차 — 귀 부제는 폰에서 뺀다. 그 자리를 CTA 두 단추가 쓴다 */
  .np-cta { display: flex; justify-content: center; gap: 8px; margin: 16px 0 0; }
  .np-btn { flex: 1 1 0; max-width: 160px; }

  /* 두 판 — 폰(목업) 위, 글 아래. 덩어리째 가운데 */
  .fmt,
  .fmt:first-child,
  .fmt:last-child,
  .fmt.fmt-youtube {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 22px;
    text-align: center;
  }
  .fmt-youtube .fmt-art { order: 0; }
  .fmt-k { justify-content: center; }
  .fmt-lead { margin-inline: auto; }
  .device-link { --폰높이: min(420px, 54vh); }
  .fmt .btn { width: 100%; max-width: 340px; }

  .section-heading h2 { font-size: clamp(1.9rem, 9vw, 2.5rem); }

  /* 🔴 폰 서랍은 «옛 값 그대로» — 여기서 줄이면 누르는 자리가 44px 밑으로 내려간다 */
  .drawer { width: min(320px, 86vw); padding: 16px 16px 22px; }
  .menu-item { min-height: 52px; padding: 12px 15px; font-size: 1.02rem; }
  .drawer-foot .btn { min-height: 48px; padding-block: 14px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* 레터링 제호 «제안» — 600px 밑은 두 줄 판(wordmark-stack) */
@media (max-width: 600px) {
  :root[data-masthead="lettering"] .np-letter-wide { display: none; }
  :root[data-masthead="lettering"] .np-letter-stack { display: block; width: min(52vw, 13rem); height: auto; margin-inline: auto; }
}

/* 🔴 아주 좁은 창(320 · 1280 창을 400% 확대한 것과 같다) — 머리줄에 단추 넷 + 로고가 한 줄로 들어가게
   로고는 늘 «인장 네모»만 보인다(워드마크를 펼치지 않는다). 이름은 alt 가 말한다 */
@media (max-width: 360px) {
  .brand-lockup,
  .js .site-header .brand-link:focus-visible .brand-lockup { width: var(--lockup-h); }
  .nav { gap: 6px; }
}

/* 🔴 손가락(터치)으로 누르는 창 — 머리줄 단추 · 지난 편 화살표 · 서랍/창 닫기를 44×44 밑으로 안 내린다 (5차 · WCAG 2.5.5) */
@media (pointer: coarse) {
  .menu-btn, .icon-link,
  .nav-actions .theme-btn,
  .ed-nav button,
  .intro-close { min-width: 44px; min-height: 44px; }
  .ed-nav button { width: 44px; height: 44px; }
  /* 5차 검수(checks5 · 터치 전수)에서 걸린 자리 — 머리줄 이름 28×36 · 구글 칸 링크 41 · 바닥 링크 41 · 「문의」 22 폭 */
  .site-header .brand-link { min-width: 44px; min-height: 44px; }
  .oauth-links a, .footer-links a { display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px; padding-block: 0; }
}

/* 좁고 «낮은» 창 (작은 폰) — 그림 → 글씨 → 여백 순으로 줄인다 (실측 360×640) */
@media (max-width: 900px) and (max-height: 720px) {
  .device-link { --폰높이: min(340px, 50vh); }
}

/* 세로가 짧은 창 (창을 확대했을 때가 대표적이다)
   🔴 200% 로 확대하면 폭뿐 아니라 «높이»도 반이 된다 — 폭 규칙에 안 걸리는 자리라 높이로 가른다.
   🔴 표지는 «폭»으로만 줄인다 — 높이를 직접 주면 4:5 가 깨져 object-fit 이 잘라낸다 (실측) */
@media (max-height: 620px) {
  .device-link { --폰높이: min(440px, 76vh); }
  .np-head { padding-block: 14px 12px; }
  .np-title { font-size: clamp(2.8rem, 6.4vw, 5.4rem); }
  .ed { --cover-w: min(clamp(150px, 22vw, 230px), 32vh); }
  .ed-stage { padding-block: clamp(4px, 1.2vh, 8px) clamp(22px, 6vh, 34px); }
  .ed-day { margin-bottom: clamp(4px, 1.2vh, 8px); padding-bottom: 6px; }
  .ed-day time { font-size: clamp(1.1rem, 2vw, 1.5rem); }
  .ed-topics { margin-bottom: clamp(5px, 1.6vh, 10px); }
  .ed-topics li { padding: clamp(2px, .8vh, 5px) 0; font-size: clamp(.78rem, 1.1vw, .95rem); }
  .ed-more { display: none; }
  .ed-cta { flex-wrap: nowrap; }
  .ed-cta .btn { flex: 1 1 0; min-height: clamp(34px, 9vh, 40px); padding: clamp(6px, 1.6vh, 9px) 12px; }
  .ed-nav button { width: 40px; height: 40px; }
  .ed-nav svg { width: 16px; height: 16px; }
  /* 낮은 창에서는 안내가 단추 위에 얹힌다 — 비어 있는 왼쪽 아래로 비킨다 (실측) */
  .ed-hint { left: var(--shell); bottom: 8px; transform: none; }
}

/* 🔴 낮고 «좁은» 창 — 안내가 비켜설 자리가 없다. 넘기는 길은 화살표·끌기·방향키로 남는다 */
@media (max-height: 620px) and (max-width: 760px) {
  .ed-hint { display: none; }
  .device-link { --폰높이: min(320px, 70vh); }
}

/* 아주 넓고 «높은» 창 (2560×1440 · 3440×1440 · 3840×2160) — 가운데 작은 섬처럼 뜨지 않게 한 단계 키운다.
   🔴 높이 조건을 같이 건다 — 넓기만 하고 낮은 창(확대한 창)은 여기 안 걸린다 */
@media (min-width: 2000px) and (min-height: 1100px) {
  :root { --content: 1760px; --tag-fs: 12.5px; --lockup-h: 46px; }
  body { font-size: 18px; }
  .np-title { font-size: clamp(9rem, 7vw, 12rem); }
  .np-ear { max-width: 300px; }
  /* 5차 — 머리줄 단추 52px · 로고 46px (창 끝에 붙는 배치는 유진님 09-12 결정 그대로) */
  .menu-btn, .icon-link { width: 52px; height: 52px; }
  .nav-actions .theme-btn { height: 52px; min-width: 52px; }
  :root[data-masthead="lettering"] .np-letter-wide { width: 44rem; }
  .np-ear-t { font-size: 1.3rem; }
  .np-ear-s { font-size: 14px; }
  .device-link { --폰높이: min(760px, 58vh); }
  .fmt h2 { font-size: clamp(2.7rem, 2vw, 3.4rem); }
  .fmt-lead { font-size: 1.15rem; }
  .btn { min-height: 56px; padding-inline: 26px; }
  .section-heading h2 { font-size: clamp(2.7rem, 2vw, 3.4rem); }   /* 두 판 h2 와 같은 단 */
  .section-heading p { font-size: 1.12rem; }
  .card h3 { font-size: 1.5rem; }
  .card p { font-size: 1.06rem; }
}

/* ── 5차 (2026-09-25) — 캐릭터 «편집자» ─────────────
   유진님 09-25 05:1x 「완전히 새 캐릭터 허용」 · 00:27 「로고,배너, 캐릭터를 전체 수정해도 되니 고급스럽게 제작 수정해둬」
   D4 v2 획 체계로 새로 그린 어른 한 사람(머리 = ㅎ 의 ㅇ · 모자 = ㅎ 가로획 · 꼭지 = 머스터드 점 하나).
   색은 토큰 넷(--ch-line · --ch-face · --ch-coat · --ch-dot · styles.css)으로만 칠한다. 먹 판에서는 로고처럼 뒤집힌다.
   🔴 무한 흔들림(옛 새싹)은 없다. 원본·닮음 대조: .review/brand5/D4v2/ */
.ch { display: block; width: 100%; height: 100%; overflow: visible; }
.ch .ch-l { fill: var(--ch-line); }
.ch .ch-c { fill: var(--ch-coat); }
.ch .ch-f, .ch .ch-fc { fill: var(--ch-face); }
.ch .ch-d { fill: var(--ch-dot); }
.ch .ch-ls { fill: none; stroke: var(--ch-line); stroke-linejoin: miter; stroke-linecap: butt; }
.ch .ch-ko { fill: none; stroke: var(--ch-face); stroke-linejoin: miter; stroke-linecap: butt; }

/* 소개 절 — 오른쪽 위에 «신문 읽기» 판 한 명 (높이 clamp(140px,14vw,200px) · 위로 맞춤). 860px 밑에서는 뺀다 */
.section--about .section-heading { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto; }
.about-side p { margin: 0; }
.about-figure {
  align-self: start;
  justify-self: end;
  height: clamp(140px, 14vw, 200px);
  aspect-ratio: 1 / 2;
  margin: 0;
}

/* 소개 영상 창 — 같은 인물 120px */
.intro-ch { height: 120px; aspect-ratio: 1 / 2; margin-bottom: 6px; }

@media (max-width: 860px) {
  .section--about .section-heading { grid-template-columns: minmax(0, 1fr); }
  .about-figure { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  /* 🔴 `.js .reveal` 보다 세게 써야 이긴다 — 안 그러면 움직임을 마다한 사람에게 글이 안 보인다 */
  .js .reveal, .reveal { opacity: 1; transform: none; transition: none; }
  .ed-cover:hover img, .device-link:hover .device, .device-link:focus-visible .device { transform: none; }
  .intro-box { transition: opacity .2s; transform: none; }
  .intro-modal.is-open .intro-box { transform: none; }
}

/* ══ 2026-09-26 업그레이드 — «1면 = 오늘 종합» + «분야 탭 셋» ══════════════════
   계획: docs/drafts/2026-09-25-전면개편-계획.md §3 (홈페이지 = 1면 = 오늘 종합 · 섹션 탭 셋)
   🔴 규칙 §1 — 이슈는 «제목 한 줄»만. 더 보려면 유튜브·인스타로 간다
   🔴 분야 색(--sec-*)은 «칩 · 탭 표시 · 캐릭터 판» 세 곳에만. 바탕 무늬·면 채우기로 쓰지 않는다(§3 A안)
   🔴 사진 테두리 = 브랜드 시트 «먹 괘선 1.5px + 안쪽 흰 여백 · 모서리 직각 · 무거운 그림자 없음» */
.front { padding-block: var(--sp-section) 0; }
.sections { padding-block: var(--sp-section) 0; }

.fp-lead {
  display: grid;
  grid-template-columns: auto minmax(0, 34rem) auto;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
}
.fp-art { display: grid; place-items: center; }

.fp-k {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0 0 16px;
  color: var(--muted);
}

/* 칩 — 브랜드 시트 «● 종합» 판. 점 + 한글 분야 이름 · 각진 모서리 */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .32em .8em .3em .7em;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.3;
  color: var(--sec-on);
  border-radius: var(--r);
  background: var(--chip-bg);
  border-bottom: 2px solid var(--chip-edge, transparent);
}
.chip i { width: .55em; height: .55em; border-radius: 50%; background: var(--chip-dot); flex: none; }
.chip--jonghap { --chip-bg: var(--sec-jonghap); --chip-dot: var(--sec-jonghap-dot); color: #f3eee3; }
.chip--jeongchi { --chip-bg: var(--sec-jeongchi); --chip-dot: var(--sec-jeongchi-dot); }
.chip--gyeongje { --chip-bg: var(--sec-gyeongje); --chip-dot: var(--sec-gyeongje-dot); }
.chip--yeonye { --chip-bg: var(--sec-yeonye); --chip-dot: var(--sec-yeonye-dot); --chip-edge: var(--sec-yeonye-dot); }
/* 먹 판의 종합 칩 = 시트의 «on-ink» 판 — 먹 위 먹 칩은 안 보이므로 크림 테두리 네모 */
:root[data-theme="dark"] .chip--jonghap { background: transparent; box-shadow: inset 0 0 0 2px #f3eee3; }

.fp-text h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: var(--ls-display-tight);
  word-break: keep-all;
  text-wrap: balance;          /* 「10만 / 명」처럼 한 글자만 넘어가는 줄을 막는다 */
}

.fp-list, .sp-list {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule-ink);
}
.fp-list li, .sp-list li {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr);
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.45;
  word-break: keep-all;
}
.fp-list li span, .sp-list li span { color: var(--muted); font-variant-numeric: tabular-nums; }
.fp-list li:first-child { font-weight: 700; }

.fp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.btn-line {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--rule-ink);
}
.lk-cards {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule-2);
  text-underline-offset: .45em;
}
.lk-cards:hover, .lk-cards:focus-visible { text-decoration-color: var(--accent); }

/* 캐릭터 판 — 그 분야의 «종이» 위에 선다. 색은 파일 안(분야 옷 색) */
.plate {
  display: block;
  aspect-ratio: 1 / 2;
  padding: 6% 10% 4%;
  background: var(--plate);
  box-shadow: inset 0 0 0 1px var(--rule-2);
}
.plate img { display: block; width: 100%; height: 100%; }
.plate--jonghap { --plate: var(--sec-jonghap-paper); }
.plate--jeongchi { --plate: var(--sec-jeongchi-paper); }
.plate--gyeongje { --plate: var(--sec-gyeongje-paper); }
.plate--yeonye { --plate: var(--sec-yeonye-paper); }
.fp-ch { align-self: end; height: clamp(180px, 17vw, 260px); }
.about-figure .plate, .intro-chr { height: 100%; }
.intro-ch .plate { height: 100%; }

/* ── 분야 탭 ── */
.tabs {
  display: flex;
  margin: 0 0 clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--rule-2);
}
.tab {
  position: relative;
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 52px;
  padding: 10px 12px;
  color: var(--muted);
  background: none;
  border: 0;
  font-family: var(--sans);
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  word-break: keep-all;
}
.tab i { width: .55em; height: .55em; border-radius: 50%; background: var(--tab-c); flex: none; }
.tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 4px;
  background: var(--tab-bar, var(--tab-c));
  transform: scaleX(0);
  transition: transform .25s var(--ease);
}
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab:hover { color: var(--ink); }
.tab:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.tab--jeongchi { --tab-c: var(--sec-jeongchi); }
.tab--gyeongje { --tab-c: var(--sec-gyeongje); }
.tab--yeonye { --tab-c: var(--sec-yeonye-flat); --tab-bar: var(--sec-yeonye); }
/* 먹 판 — 흑연·청록 표시는 먹 위에서 흐리다 → 은회 · 밝은 청록 (그래픽 3:1 이상) */
:root[data-theme="dark"] .tab--jeongchi { --tab-c: var(--sec-jeongchi-dot); }
:root[data-theme="dark"] .tab--gyeongje { --tab-c: #2f9aa3; }

.sp {
  display: grid;
  grid-template-columns: auto minmax(0, 34rem) auto;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}
.sp:focus-visible { outline: 2px solid var(--focus); outline-offset: 8px; }
.sp + .sp { margin-top: 40px; }       /* JS 가 없어 셋 다 보일 때만 쓰인다 */
.sp-cover {
  display: block;
  width: clamp(170px, 17vw, 250px);
  padding: 6px;
  background: #fff;
  box-shadow: 0 0 0 1.5px var(--rule-ink);
  transition: transform .25s var(--ease);
}
.sp-cover img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.sp-cover:hover, .sp-cover:focus-visible { transform: translateY(-3px); }
.sp-text h3 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  line-height: 1.2;
  word-break: keep-all;
  text-wrap: balance;
}
.sp-ch { height: clamp(170px, 15vw, 230px); }

@media (max-width: 1100px) {
  .fp-lead, .sp { grid-template-columns: auto minmax(0, 1fr); }
  .fp-ch, .sp-ch { display: none; }
}
@media (max-width: 760px) {
  .fp-lead { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .fp-text { width: 100%; }
  .sp { grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr); align-items: start; gap: 16px; }
  .sp-cover { width: 100%; padding: 4px; }
  .sp-text h3 { font-size: 1.35rem; margin-bottom: 12px; }
  .sp-list li { font-size: .95rem; padding: 9px 0; }
  .tab { flex-direction: column; gap: 4px; font-size: 13px; padding: 8px 4px; line-height: 1.25; }
}
/* 폰 — 표지는 작게 왼쪽에 두고 글이 옆에 선다(표지가 화면을 다 먹으면 «다 보여주는» 대문이 된다 · 규칙 §1) */
@media (max-width: 420px) {
  .sp { grid-template-columns: minmax(0, 6.2rem) minmax(0, 1fr); gap: 14px; }
  .sp-text h3 { font-size: 1.2rem; }
  .fp-cta .btn { flex: 1 1 auto; padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .tab::after, .sp-cover { transition: none; }
  .sp-cover:hover, .sp-cover:focus-visible { transform: none; }
}

/* 아주 좁은 창(360 폰을 150·200% 확대 = CSS 240·180px) — 26-09-26 재기에서 가로넘침 31·91px 로 걸린 자리 */
@media (max-width: 300px) {
  .sp { grid-template-columns: minmax(0, 1fr); }
  .sp-cover { width: min(56vw, 170px); justify-self: center; }
  .fp-cta .btn { flex: 1 1 100%; }
  .tab { font-size: 12px; }
}
@media (max-width: 280px) {
  .nav-actions .icon-link { display: none; }   /* 두 계정 단추는 서랍(MENU) 안에 그대로 있다 */
  .nav { gap: 4px; }
}
@media (max-width: 280px) {
  .np-cta { flex-wrap: wrap; }
  .np-cta .np-btn { flex: 1 1 100%; min-width: 0; }
}

/* ── 채널 성장 (GROWTH · 2026-09-26 7차 시안) ───────────────
   🔴 수·그래프는 data/growth.json 에서만(build.py 가 표·큰 수를, home.js 가 SVG 를). 색은 styles.css 두 벌의 --chart-*.
   🔴 그래프 하나 = 계열 하나(두 축 그래프 금지). 빠진 날은 선을 «끊고» 옅은 띠만 둔다. */
.sec-links { display: inline-flex; flex-wrap: wrap; gap: 4px 18px; }
.sec-links a { letter-spacing: normal; }   /* 링크 글자가 한글(지난 편·채널 성장)이라 꼬리표용 영문 자간을 푼다 · 09-26 */
.section--growth { padding-bottom: var(--sp-section); }
.gr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(28px, 3vw, 48px) clamp(24px, 3vw, 56px);
}
.gr-card { min-width: 0; padding-top: 12px; border-top: 1px solid var(--rule-2); }
.gr-k {
  display: flex; justify-content: space-between; gap: 12px;
  margin: 0 0 6px; color: var(--muted);
  font-family: var(--en); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.gr-card h3 { margin: 0; color: var(--ink); font-size: 1.15rem; line-height: 1.3; }
.gr-big { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 0; color: var(--ink); }
.gr-big b { font-family: var(--en); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.gr-big span { color: var(--muted); font-size: .95rem; }
.gr-delta { margin: 6px 0 0; color: var(--ink-2); font-size: .92rem; }
.gr-delta b { font-family: var(--en); font-weight: 600; font-variant-numeric: tabular-nums; }
.gr-fig { position: relative; margin: 16px 0 0; min-height: 190px; }
.gr-fig svg { display: block; width: 100%; height: 190px; overflow: visible; }
.gr-fig text { fill: var(--muted); font-family: var(--en); font-size: 11px; font-variant-numeric: tabular-nums; }
.gr-fig .gr-axis { stroke: var(--rule-2); stroke-width: 1; }
.gr-fig .gr-gridline { stroke: var(--chart-grid); stroke-width: 1; }
.gr-fig .gr-gapband { fill: var(--chart-gap); }
.gr-fig .gr-line { fill: none; stroke: var(--chart-line); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.gr-fig .gr-dot { fill: var(--chart-line); stroke: var(--bg); stroke-width: 2; }
.gr-fig .gr-cross { stroke: var(--rule-2); stroke-width: 1; }
.gr-fig .gr-hot { fill: var(--bg); stroke: var(--chart-line); stroke-width: 2.5; }
.gr-fig .gr-last { fill: var(--ink); font-weight: 600; }
.gr-tip {
  position: absolute; top: 0; z-index: 2; pointer-events: none;
  padding: 6px 9px; background: var(--btn-bg); color: var(--btn-ink);
  font-size: .82rem; line-height: 1.35; white-space: nowrap; box-shadow: var(--shadow-pop);
}
.gr-tip b { font-family: var(--en); font-variant-numeric: tabular-nums; }
.gr-nojs { margin: 0; padding: 14px 0; color: var(--muted); font-size: .9rem; }
.js .gr-nojs { display: none; }
.gr-note, .gr-gap { margin: 10px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.6; }
.gr-gap { margin-top: clamp(24px, 3vw, 40px); }
.gr-card--soon { display: flex; flex-direction: column; }
.gr-tag { color: var(--ink); }
.gr-soon {
  margin: 14px 0 0; padding: 18px; border: 1px dashed var(--rule-2);
  color: var(--ink-2); font-size: .95rem; line-height: 1.7;
}
.gr-table-wrap { margin-top: 20px; }
.gr-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .85rem; }
.gr-table caption { caption-side: top; text-align: left; padding-bottom: 8px; color: var(--muted); font-size: .85rem; }
.gr-table th, .gr-table td { padding: 7px 4px; border-bottom: 1px solid var(--rule); text-align: right; overflow-wrap: anywhere; }
.gr-table thead th { color: var(--muted); font-weight: 600; line-height: 1.3; vertical-align: bottom; border-bottom: 2px solid var(--rule-ink); }
.gr-table th:first-child { text-align: left; width: 3.6em; }
.gr-table td { color: var(--ink); font-family: var(--en); font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .gr-table { font-size: .76rem; } .gr-table th, .gr-table td { padding-inline: 2px; } }
/* ── 채널 성장 — 유튜브 분석 묶음 (2026-10-02 · 유진님 id 4674·4677) ─────────
   «기준» 줄 · 채널 시작일 · 증감 막대 · 가로 막대(유입·연령). 색은 기존 --chart-line · --muted 만 쓴다(새 색 0). */
.gr-asof { margin: 8px 0 0; color: var(--muted); font-family: var(--en); font-size: .78rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.gr-since { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin: 0 0 clamp(24px, 3vw, 40px); padding: 12px 0; border-bottom: 1px solid var(--rule-2); color: var(--ink-2); font-size: .95rem; }
.gr-since b { color: var(--ink); font-family: var(--en); font-weight: 700; font-variant-numeric: tabular-nums; }
.gr-since-k { color: var(--muted); font-family: var(--en); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.gr-sub { margin-top: clamp(48px, 6vw, 80px); margin-bottom: clamp(24px, 3vw, 40px); }
.gr-sub-lead { margin: 12px 0 0; max-width: 46rem; color: var(--ink-2); font-size: .95rem; line-height: 1.7; }
.gr-big .gr-big-lost { margin-left: 14px; color: var(--muted); }
.gr-legend { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--muted); font-size: .82rem; }
.gr-key { display: inline-block; width: 10px; height: 10px; }
.gr-key + .gr-key, .gr-legend .gr-key--down { margin-left: 10px; }
.gr-key--up, .gr-fig .gr-bar-up { background: var(--chart-line); fill: var(--chart-line); }
.gr-key--down, .gr-fig .gr-bar-down { background: var(--muted); fill: var(--muted); }
.gr-fig .gr-colhot { fill: var(--chart-gap); }
.gr-bars { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.gr-bars li { display: grid; grid-template-columns: minmax(6.5em, 34%) 1fr 8.4em; align-items: center; gap: 10px; font-size: .88rem; color: var(--ink-2); }
.gr-bar { display: block; height: 10px; background: var(--chart-gap); }
.gr-bar i { display: block; height: 100%; min-width: 1px; background: var(--chart-line); }
.gr-bar-v { color: var(--ink); font-family: var(--en); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.gr-bar-v small { margin-left: 6px; color: var(--muted); font-size: .78rem; }
.gr-bars--demo li { grid-template-columns: 3.4em 1fr; }
.gr-bar2 { display: grid; grid-template-columns: 1fr 4.6em; align-items: center; gap: 4px 10px; }
.gr-bar--f i { background: var(--muted); }
