/* IDOLCOSME — 흰 바탕 + 차분한 남색 히어로 띠 + 파스텔 알약. 포인트는 분홍. 다크모드는 바탕·글자·카드만 어둡게(아래 '다크모드').
   layout: 띠(band)는 화면 끝까지, 내용은 .wrap(최대 1120px) 안에 왼쪽 정렬. 첫 화면은 그룹마다 한 칸씩 넘어가는 그룹 색 칸(.kv),
   멤버·그룹 페이지 히어로는 남색 띠에 이름 알약.
   그룹 색(.grp-*): 르세라핌은 공식 색 Fearless Blue(팬톤 7453 C, #7BA6DE). 아일릿·아이브는 공식 색이 없어 최신 앨범 색
   (아일릿 파랑 #0B80E8 + 검정 #0B0D11, 아이브 노랑 #F6E82F·분홍 #F33C9A + 검정). 넓은 칸·알약에서는 남색 글자가 읽히게 밝게 풀어서 써요. */
:root {
  /* 바탕·글자·선: 다크모드에서 바뀌는 색 */
  --bg: #FFFFFF;          /* 페이지 바탕 */
  --surface: #FFFFFF;     /* 카드·상자 */
  --field: #FFFFFF;       /* 검색칸·고르기 칸 */
  --fill: #F6F6FA;        /* 작은 버튼·꼬리표 */
  --bg-soft: #F6F6FA;     /* 연회색 띠(섹션·꼬리말) */
  --bg-pink: #FEF1F5;     /* 연분홍 띠 */
  --ink: #24263D;
  --ink-2: #5E6278;
  --ink-3: #80859A;
  --ink-off: #A2A6B6;     /* 누를 수 없는 판매처 */
  --line: #E7E8F0;
  --line-2: #D3D6E2;
  --pink-ink: #C24576;    /* 분홍 글자·포커스 테두리 */
  --hover-pink: #FDEBF2;
  --solid: #2A3059;       /* 진한 버튼(영상 보기·판매처·지금 언어) */
  --solid-2: #353C6E;
  --on-solid: #FFFFFF;
  --head-bg: rgba(255, 255, 255, 0.96);
  --logo-ink: #2A3059;    /* 로고의 남색 부분 */
  --chip-bg: rgba(255, 255, 255, 0.88);  /* 종류 그림 위 작은 이름표 */
  --chip-ink: #24263D;
  --plat-bg: rgba(255, 255, 255, 0.7);
  --flag-ring: rgba(36, 38, 61, 0.14);
  --chk-bg: #F7C4D6;      /* 고른 종류 칸 */
  --chk-line: #F7C4D6;
  --chk-ink: #24263D;
  --ad-ink: #7A4A00;
  --ad-bg: #FFF3D1;
  --shadow: 0 1px 0 var(--line), 0 22px 36px -30px rgba(42, 48, 89, 0.38);
  --panel-shadow: 0 18px 30px -24px rgba(42, 48, 89, 0.3);
  --pic-skin: url("cat/skin.svg"); --pic-base: url("cat/base.svg"); --pic-eye: url("cat/eye.svg"); --pic-cheek: url("cat/cheek.svg"); --pic-lip: url("cat/lip.svg");
  --pic-hair: url("cat/hair.svg"); --pic-body: url("cat/body.svg"); --pic-scent: url("cat/scent.svg"); --pic-device: url("cat/device.svg"); --pic-etc: url("cat/etc.svg");
  --kv-ink: #24263D;      /* 첫 화면 그룹 칸: 글자·막대 */
  --kv-ink-2: #3F4360;
  --kv-on-ink: #FFFFFF;
  --kv-track: rgba(36, 38, 61, 0.16);
  --kv-pill-shadow: 0 16px 28px -18px rgba(42, 48, 89, 0.5);
  --moon: block;          /* 다크모드 버튼: 밝을 때는 달, 어두울 때는 해 */
  --sun: none;
  /* 늘 같은 색: 남색 띠, 파스텔 알약과 그 위 글자 */
  --white: #FFFFFF;
  --navy: #2A3059;
  --navy-2: #353C6E;
  --on-pastel: #24263D;
  --on-pastel-2: #5E6278;
  --pink: #E9779F;
  --pink-pastel: #F7C4D6;
  --pink-soft: #FDEBF2;
  --butter: #FBE7A8;
  --mint: #C5EBDD;
  --peach: #FBD3BE;
  --sky: #C7E3F4;
  /* 그룹 색 기본값(그룹 밖에서 쓰일 때) */
  --g: var(--pink-pastel);
  --g-light: var(--pink-soft);
  --g-mid: #F2A9C4;
  --g-deep: #C24576;
  --font-kr: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --font-en: "Poppins", "Noto Sans KR", "Noto Sans JP", system-ui, sans-serif;
  --font-text: var(--font-kr);
  --r-pill: 999px;
  --r-card: 20px;
  --r-big: 28px;
  --wrap: 1120px;
  color-scheme: light;
}
.grp-lesserafim { --g: #7BA6DE; --g-light: #DCE7F7; --g-mid: #5F8FD4; --g-deep: #2F5B9D; }
.grp-illit { --g: #91C6F5; --g-light: #DAECFC; --g-mid: #54A6EF; --g-deep: #0A66C2; }
.grp-ive { --g: #F9EF6D; --g-light: #FDFAD5; --g-mid: #FAA7D2; --g-deep: #C21E78; }
.page[lang="ja"] { --font-text: var(--font-jp); --font-en: "Poppins", "Noto Sans JP", "Noto Sans KR", system-ui, sans-serif; }
/* ---------- 다크모드 ----------
   기기가 어두운 화면이면 자동으로, 머리말 달/해 버튼으로 고르면 그 값으로(<html data-mode="dark|light">, assets/app.js).
   남색 띠와 파스텔 알약은 그대로 두고 바탕·글자·카드만 어둡게. 아래 두 덩어리는 값이 똑같아야 해요(scripts/build.py가 확인). */
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]) {
    --bg: #101325;
    --surface: #1A1E36;
    --field: #1A1E36;
    --fill: #262C47;
    --bg-soft: #15192D;
    --bg-pink: #261521;
    --ink: #EDF0F8;
    --ink-2: #BEC3D7;
    --ink-3: #9EA3B9;
    --ink-off: #6F7387;
    --line: #2C314A;
    --line-2: #404663;
    --pink-ink: #FBA3C1;
    --hover-pink: #4A283F;
    --solid: #E4E7F6;
    --solid-2: #FBFCFF;
    --on-solid: #22274E;
    --head-bg: #101325;
    --logo-ink: #FFFFFF;
    --chip-bg: rgba(16, 19, 37, 0.55);
    --chip-ink: #EDF0F8;
    --plat-bg: rgba(255, 255, 255, 0.12);
    --flag-ring: rgba(255, 255, 255, 0.18);
    --chk-bg: #4A283F;
    --chk-line: #F7C4D6;
    --chk-ink: #EDF0F8;
    --ad-ink: #F6D389;
    --ad-bg: #403012;
    --shadow: 0 0 0 1px #2C314A;
    --panel-shadow: 0 18px 30px -24px rgba(0, 0, 0, 0.7);
    --tile: #20243C;        /* 종류 그림 칸(어두울 때는 모두 같은 색, 그림만 색) */
    --pic-skin: url("cat/dark/skin.svg"); --pic-base: url("cat/dark/base.svg"); --pic-eye: url("cat/dark/eye.svg"); --pic-cheek: url("cat/dark/cheek.svg"); --pic-lip: url("cat/dark/lip.svg");
    --pic-hair: url("cat/dark/hair.svg"); --pic-body: url("cat/dark/body.svg"); --pic-scent: url("cat/dark/scent.svg"); --pic-device: url("cat/dark/device.svg"); --pic-etc: url("cat/dark/etc.svg");
    --kv-ink: #EDF0F8;
    --kv-ink-2: #C9CDE0;
    --kv-on-ink: #1A1E36;
    --kv-track: rgba(255, 255, 255, 0.22);
    --kv-pill-shadow: none;
    --moon: none;
    --sun: block;
    /* 그룹 색으로 물든 넓은 칸(카드·영상 자리·지금 장면) */
    --g-card: #1C2A44; --g-hi: #22324F; --g-wash-1: #19253C; --g-wash-2: #2A4066; --g-text: #A9C5EB; --name-pill: #A9C5EB;
    color-scheme: dark;
  }
  :root:not([data-mode="light"]) .grp-lesserafim { --g-card: #1C2A44; --g-hi: #22324F; --g-wash-1: #19253C; --g-wash-2: #2A4066; --g-text: #A9C5EB; --name-pill: #A9C5EB; }
  :root:not([data-mode="light"]) .grp-illit { --g-card: #0E2A4D; --g-hi: #11315A; --g-wash-1: #0C2240; --g-wash-2: #0F3A6E; --g-text: #91C6F5; --name-pill: #91C6F5; }
  :root:not([data-mode="light"]) .grp-ive { --g-card: #36142D; --g-hi: #401835; --g-wash-1: #2B1024; --g-wash-2: #521B44; --g-text: #F9EF6D; --name-pill: #F9EF6D; }
  :root:not([data-mode="light"]) .kv-slide { --kv-base-1: var(--g-wash-1); --kv-base-2: var(--g-wash-2); --kv-blob: var(--g-wash-2); --kv-blob-2: var(--g-wash-2); --kv-glow: rgba(255, 255, 255, 0.05); --s-ink: #EDF0F8; --s-ink-2: #C9CDE0; --s-on-ink: #1A1E36; --s-title: var(--g-text); }
}
:root[data-mode="dark"] {
  --bg: #101325;
  --surface: #1A1E36;
  --field: #1A1E36;
  --fill: #262C47;
  --bg-soft: #15192D;
  --bg-pink: #261521;
  --ink: #EDF0F8;
  --ink-2: #BEC3D7;
  --ink-3: #9EA3B9;
  --ink-off: #6F7387;
  --line: #2C314A;
  --line-2: #404663;
  --pink-ink: #FBA3C1;
  --hover-pink: #4A283F;
  --solid: #E4E7F6;
  --solid-2: #FBFCFF;
  --on-solid: #22274E;
  --head-bg: #101325;
  --logo-ink: #FFFFFF;
  --chip-bg: rgba(16, 19, 37, 0.55);
  --chip-ink: #EDF0F8;
  --plat-bg: rgba(255, 255, 255, 0.12);
  --flag-ring: rgba(255, 255, 255, 0.18);
  --chk-bg: #4A283F;
  --chk-line: #F7C4D6;
  --chk-ink: #EDF0F8;
  --ad-ink: #F6D389;
  --ad-bg: #403012;
  --shadow: 0 0 0 1px #2C314A;
  --panel-shadow: 0 18px 30px -24px rgba(0, 0, 0, 0.7);
  --tile: #20243C;        /* 종류 그림 칸(어두울 때는 모두 같은 색, 그림만 색) */
  --pic-skin: url("cat/dark/skin.svg"); --pic-base: url("cat/dark/base.svg"); --pic-eye: url("cat/dark/eye.svg"); --pic-cheek: url("cat/dark/cheek.svg"); --pic-lip: url("cat/dark/lip.svg");
  --pic-hair: url("cat/dark/hair.svg"); --pic-body: url("cat/dark/body.svg"); --pic-scent: url("cat/dark/scent.svg"); --pic-device: url("cat/dark/device.svg"); --pic-etc: url("cat/dark/etc.svg");
  --kv-ink: #EDF0F8;
  --kv-ink-2: #C9CDE0;
  --kv-on-ink: #1A1E36;
  --kv-track: rgba(255, 255, 255, 0.22);
  --kv-pill-shadow: none;
  --moon: none;
  --sun: block;
  /* 그룹 색으로 물든 넓은 칸(카드·영상 자리·지금 장면) */
  --g-card: #1C2A44; --g-hi: #22324F; --g-wash-1: #19253C; --g-wash-2: #2A4066; --g-text: #A9C5EB; --name-pill: #A9C5EB;
  color-scheme: dark;
}
:root[data-mode="dark"] .grp-lesserafim { --g-card: #1C2A44; --g-hi: #22324F; --g-wash-1: #19253C; --g-wash-2: #2A4066; --g-text: #A9C5EB; --name-pill: #A9C5EB; }
:root[data-mode="dark"] .grp-illit { --g-card: #0E2A4D; --g-hi: #11315A; --g-wash-1: #0C2240; --g-wash-2: #0F3A6E; --g-text: #91C6F5; --name-pill: #91C6F5; }
:root[data-mode="dark"] .grp-ive { --g-card: #36142D; --g-hi: #401835; --g-wash-1: #2B1024; --g-wash-2: #521B44; --g-text: #F9EF6D; --name-pill: #F9EF6D; }
:root[data-mode="dark"] .kv-slide { --kv-base-1: var(--g-wash-1); --kv-base-2: var(--g-wash-2); --kv-blob: var(--g-wash-2); --kv-blob-2: var(--g-wash-2); --kv-glow: rgba(255, 255, 255, 0.05); --s-ink: #EDF0F8; --s-ink-2: #C9CDE0; --s-on-ink: #1A1E36; --s-title: var(--g-text); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-kr); font-size: 1rem; line-height: 1.65; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
[hidden] { display: none !important; }
.page { font-family: var(--font-text); word-break: keep-all; overflow-wrap: anywhere; }
.page[lang="ja"] { word-break: normal; line-break: strict; }
a { color: inherit; }
img { max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.3; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pink-ink); outline-offset: 3px; border-radius: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 0.5rem; z-index: 40; background: var(--ink); color: var(--bg); padding: 0.4rem 0.8rem; border-radius: 8px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * 24px); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 48rem) { .wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }

/* ---------- header ----------
   마몽드처럼 두 모습: 맨 위에서는 가운데 큰 심볼 로고(넓은 화면은 아래 줄에 메뉴), 조금이라도 내리면 얇은 한 줄에 글자 로고만(.is-small, assets/app.js).
   머리말은 화면 위에 고정. 높이는 --head-top(맨 위)·--head-c(내린 뒤)로 정해 두고 페이지 위 여백·첫 페이지 칸 높이에 써요(내려도 내용이 안 움직여요).
   첫 페이지 맨 위에서는 바탕이 투명해서 첫 화면 칸 색이 머리말 뒤까지 이어져요 */
:root { --head-c: 65px; --head-top: 117px; }
@media (max-width: 51.99rem) { :root { --head-c: 97px; --head-top: 97px; } }
.page { padding-top: var(--head-top); }
:root:has(.kv) .page { padding-top: 0; }   /* 첫 페이지: 첫 화면 칸이 머리말 뒤에서 시작 */
.site-head { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 20; background: var(--head-bg); border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease, border-color 0.3s ease; }
:root:has(.kv) .site-head:not(.is-small) { background: transparent; border-bottom-color: transparent; }
.head-row { position: relative; display: flex; align-items: center; gap: 0.75rem 1.25rem; min-height: calc(var(--head-c) - 1px); }
.head-tools { display: flex; align-items: center; gap: 0.75rem 1.25rem; flex: none; }
.site-head:not(.is-small) .logo .wordmark, .site-head.is-small .logo .mark { display: none; }   /* 맨 위: 심볼만 / 내린 뒤: 글자만 */
/* 로고: 브러시 IC 심볼 + IDOL COSME 글자 (templates/logo.j2) */
.logo { display: inline-flex; align-items: center; gap: 10px; margin: 0 auto 0 0; text-decoration: none; flex: none; }
.logo svg { display: block; flex: none; height: auto; }
.logo .mark { width: 40px; aspect-ratio: 516 / 578; }
/* 글자 로고는 심볼과 비슷한 크기로(브러시 i 높이가 심볼의 3/4쯤). 머리말 오른쪽 메뉴가 들어가게 화면 폭에 따라 줄어요 */
.logo .wordmark { width: clamp(160px, 100vw - 848px, 228px); aspect-ratio: 12811 / 1910; }
.logo .mark .mark-navy, .logo .wordmark .word-navy { fill: var(--logo-ink); }
.logo-rev .mark .mark-navy, .logo-rev .wordmark .word-navy { fill: var(--white); }  /* 남색 바탕: 남색 부분만 흰색, 분홍은 그대로 */
.logo-xl { flex-direction: column; gap: clamp(12px, 2vw, 16px); margin: 0; }
.logo-xl .mark { width: clamp(84px, 13vw, 112px); }
.logo-xl .wordmark { width: clamp(190px, 31vw, 260px); }
.head-nav { display: flex; align-items: center; gap: 0.25rem 1.1rem; font-size: 0.9375rem; font-weight: 500; }
.head-nav a { text-decoration: none; color: var(--ink); white-space: nowrap; }
.head-nav a:hover { color: var(--pink-ink); }
.search-btn { display: inline-flex; flex: none; align-items: center; gap: 0.35rem; border: 0; background: var(--fill); border-radius: var(--r-pill); padding: 0.45rem 0.9rem; cursor: pointer; font-size: 0.9375rem; font-weight: 500; white-space: nowrap; }
.search-btn:hover { background: var(--hover-pink); }
/* 다크모드 버튼: 언어 선택 오른쪽 동그란 버튼 */
.theme-btn { display: inline-grid; place-items: center; flex: none; width: 2.45rem; height: 2.45rem; padding: 0; border: 0; border-radius: 50%; background: var(--fill); cursor: pointer; }
.theme-btn:hover { background: var(--hover-pink); }
.theme-btn svg { width: 19px; height: 19px; }
.theme-btn .i-moon { display: var(--moon); }
.theme-btn .i-sun { display: var(--sun); }
.search-btn svg { width: 18px; height: 18px; }
.btn-pink { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0.45rem 1.1rem; border-radius: var(--r-pill); background: var(--pink-pastel); color: var(--on-pastel); font-weight: 700; font-size: 0.9375rem; text-decoration: none; white-space: nowrap; }
.btn-pink:hover { background: #F3B1C9; }
.btn-dark { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.55rem 1.3rem; border-radius: var(--r-pill); background: var(--solid); color: var(--on-solid); font-weight: 700; text-decoration: none; }
.btn-dark:hover { background: var(--solid-2); }
/* 언어 선택: 오른쪽 맨 위, 국기 + KR / JP / EN */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); flex: none; }
.lang-switch a { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.28rem 0.6rem; border-radius: var(--r-pill); color: var(--ink-2); text-decoration: none;
  font-family: "Poppins", system-ui, sans-serif; font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.02em; line-height: 1.3; }
.lang-switch a:hover { background: var(--fill); color: var(--ink); }
.lang-switch a[aria-current] { background: var(--solid); color: var(--on-solid); }
.lang-switch img { display: block; width: 20px; height: 14px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px var(--flag-ring); }
.lang-switch a[aria-current] img { box-shadow: 0 0 0 1px rgba(36, 38, 61, 0.14); }  /* 지금 언어 칸(다크모드에서는 밝은 칸) 위 국기 테두리 */
/* 머리말이 그룹 색 칸 위에 투명하게 떠 있을 때(첫 화면·멤버·그룹 페이지 맨 위): 검색·언어·다크모드 버튼의 흰 바탕과 테두리 없이 아이콘·글자만.
   지금 언어 칸만 그대로, 마우스를 올리면 글자색으로 아주 옅게 */
:root:has(.kv) .site-head:not(.is-small) :is(.search-btn, .theme-btn, .lang-switch) { background: transparent; border-color: transparent; }
:root:has(.kv) .site-head:not(.is-small) :is(.search-btn, .theme-btn, .lang-switch a:not([aria-current])):hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.lang-pill { gap: 0.5em; }
.lang-pill img { width: 1.3em; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(36, 38, 61, 0.14); }
@media (max-width: 63.99rem) {
  .head-cta { display: none; }
  /* 태블릿·폰: 검색 버튼은 돋보기만(다크모드 버튼과 같은 동그라미) */
  .search-btn { justify-content: center; width: 2.45rem; height: 2.45rem; padding: 0; }
  .search-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* 태블릿 폭: 메뉴가 한 줄에 들어가게 헤더 로고를 조금 작게 */
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .site-head .logo { gap: 8px; }
  .site-head .logo .mark { width: 34px; }
  .site-head .logo .wordmark { width: clamp(110px, 100vw - 712px, 200px); }
}
@media (min-width: 48rem) and (max-width: 51.99rem) { .site-head .logo .wordmark { width: 200px; } }  /* 두 줄 머리말: 첫 줄에 자리가 넉넉해요 */
@media (min-width: 64rem) { .head-nav .nav-products { display: none; } }
/* 넓은 화면 맨 위: 첫 줄 가운데 심볼, 오른쪽 도구 / 둘째 줄 가운데 메뉴 */
@media (min-width: 52rem) {
  .site-head:not(.is-small) .head-row { flex-wrap: wrap; align-content: flex-start; row-gap: 0; min-height: calc(var(--head-top) - 1px); }
  .site-head:not(.is-small) .logo { position: absolute; left: 50%; top: 9px; margin: 0; transform: translateX(-50%); }
  .site-head:not(.is-small) .logo .mark { width: 42px; }
  .site-head:not(.is-small) .head-tools { order: 1; height: 64px; margin-left: auto; }
  .site-head:not(.is-small) .head-nav { order: 2; flex-basis: 100%; justify-content: center; height: 52px; gap: 0.25rem 2.5rem; font-size: 1rem; }
  /* 맨 위: 오른쪽은 돋보기·언어·다크모드만, '전체 화장품'은 둘째 줄 메뉴 글자로(분홍 버튼은 내린 뒤 한 줄 머리말에) */
  .site-head:not(.is-small) .head-cta { display: none; }
  .site-head:not(.is-small) .head-nav .nav-products { display: block; }
  .site-head:not(.is-small) .search-btn { justify-content: center; width: 2.45rem; height: 2.45rem; padding: 0; }
  .site-head:not(.is-small) .search-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* 폰·작은 태블릿: 첫 줄 로고·언어·다크모드 버튼, 둘째 줄 메뉴·검색 */
@media (max-width: 51.99rem) {
  .head-tools { display: contents; }
  .head-row { flex-wrap: wrap; align-content: center; gap: 0 0.5rem; padding-block: 0.6rem; }
  /* 맨 위: 첫 줄 가운데 심볼(언어·다크모드는 오른쪽) */
  .site-head:not(.is-small) .logo { position: absolute; left: 50%; top: 0.6rem; margin: 0; transform: translateX(-50%); }
  .site-head:not(.is-small) .logo .mark { width: 30px; }
  .site-head:not(.is-small) .lang-switch { margin-left: auto; }
  .site-head:not(.is-small) .lang-switch a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }  /* 맨 위: 가운데 로고 자리가 나게 국기만 */
  .head-row::after { content: ""; order: 4; flex-basis: 100%; }
  .site-head .logo { order: 1; }
  .lang-switch { order: 2; }
  .theme-btn { order: 3; width: 34px; height: 34px; }
  .theme-btn svg { width: 18px; height: 18px; }
  .head-nav { order: 5; flex: 1 1 0; min-width: 0; margin-top: 0.5rem; justify-content: flex-start; gap: 0.25rem 1rem; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
  .head-nav::-webkit-scrollbar { display: none; }
  .search-btn { order: 6; margin-top: 0.5rem; width: 34px; height: 34px; }
}
@media (max-width: 47.99rem) {
  .site-head .logo { gap: 7px; }
  .site-head .logo .mark { width: 27px; }
  .site-head .logo .wordmark { width: clamp(80px, 100vw - 273px, 170px); }  /* 첫 줄: 로고 · 언어 · 다크모드 버튼 */
  .lang-switch a { gap: 0.25rem; padding: 0.25rem 0.4rem; font-size: 0.6875rem; }
  .lang-switch img { width: 17px; height: 12px; }
}
@media (max-width: 22.49rem) {
  .site-head:not(.is-small) .lang-switch a { padding-inline: 0.2rem; }
  .site-head:not(.is-small) .logo .mark { width: 26px; }
  .lang-switch a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .site-head .logo .wordmark { width: clamp(80px, 100vw - 224px, 150px); }  /* 국기만 보이는 폭: 로고에 자리가 조금 더 */
}

/* search panel (header) & hero search */
.search-panel { border-top: 1px solid var(--line); background: var(--bg); padding-block: 1rem 1.25rem; box-shadow: var(--panel-shadow); }
.search-box { position: relative; }
.search-input { width: 100%; height: 56px; padding: 0 1.25rem 0 3.1rem; border: 1.5px solid var(--line-2); border-radius: var(--r-pill); background: var(--field); color: var(--ink); font: inherit; font-size: 1.0625rem; }
.search-input:focus { outline: none; border-color: var(--pink-ink); }
.search-box > svg { position: absolute; left: 1.15rem; top: 18px; width: 20px; height: 20px; color: var(--ink-2); pointer-events: none; }
.search-results { margin-top: 0.75rem; display: grid; gap: 1rem; max-height: min(60vh, 34rem); overflow-y: auto; }
.sr-group h3 { font-size: 0.8125rem; font-weight: 700; color: var(--ink-3); margin-bottom: 0.4rem; }
.sr-list { display: grid; gap: 0.25rem; }
.sr-list a { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.75rem; padding: 0.55rem 0.7rem; border-radius: 14px; text-decoration: none; }
.sr-list a:hover, .sr-list a.is-active { background: var(--fill); }
.sr-name { font-weight: 700; }
.sr-sub { display: block; font-size: 0.8125rem; color: var(--ink-2); }
.sr-empty { color: var(--ink-2); padding: 0.4rem 0.2rem; }
.sr-chip { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--g); color: var(--on-pastel); font-family: var(--font-en); font-weight: 800; font-size: 1rem; }
.sr-art { width: 2.6rem; height: 2.6rem; border-radius: 12px; }

/* ---------- pills (hero) ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; padding: 0.16em 0.62em 0.14em; border-radius: var(--r-pill);
  font-family: var(--font-en); font-weight: 800; font-size: clamp(1.35rem, 3.5vw, 3.2rem); line-height: 1.2; letter-spacing: -0.01em;
  text-decoration: none; background: var(--white); color: var(--on-pastel); white-space: nowrap; }
a.pill { transition: transform 0.18s ease, box-shadow 0.18s ease; }
a.pill:hover { transform: translateY(-4px); box-shadow: 0 10px 0 -2px rgba(255, 255, 255, 0.14); }
.tone-1 { background: var(--g); color: var(--on-pastel); }
.tone-2 { background: var(--white); color: var(--on-pastel); }
.tone-3 { background: var(--g-light); color: var(--on-pastel); }
.c-pink { background: var(--pink-pastel); color: var(--on-pastel); }
.c-white { background: var(--white); color: var(--on-pastel); }
.c-sky { background: var(--sky); color: var(--on-pastel); }

.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.hero-inner { position: relative; z-index: 1; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.25rem, 5vw, 4rem); display: grid; gap: clamp(1.75rem, 4vw, 3rem); }
.scroll-cue { flex: none; display: grid; justify-items: center; gap: 2px;
  color: rgba(255, 255, 255, 0.72); font-family: "Poppins", var(--font-text); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; }
.scroll-cue svg { width: 18px; height: 18px; }
.scroll-cue:hover { color: var(--white); }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue svg { animation: nudge 1.8s ease-in-out infinite; }
  @keyframes nudge { 50% { transform: translateY(4px); } }
}
.board-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(0.5rem, 1vw, 0.8rem); }
.hero-search { width: min(100%, 44rem); margin: 0 auto; }
.hero-search .search-input { border-color: transparent; height: 60px; box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.35); }
.hero-search .search-input:focus { border-color: var(--pink-pastel); }
.hero-search .search-results { background: var(--surface); color: var(--ink); border-radius: 22px; padding: 0.9rem; text-align: left; }
.hero-search .search-results:empty { display: none; }
/* ---------- 첫 화면: 그룹 칸 (마몽드 첫 화면처럼 한 칸씩 넘어가요) ----------
   칸마다 그룹 색 배경, 왼쪽에 그룹 이름·설명·자세히 보기, 오른쪽에 멤버 이름 알약. 아래 3칸 막대·멈춤, 양옆 화살표.
   칸을 밀고 시차를 주는 움직임은 assets/app.js.
   칸 글자색은 --s-*, 막대·화살표 색은 --kv-* (다크모드에서는 칸 바탕이 그룹 색으로 물든 어두운 색) */
.kv { --kv-pad: max(20px, env(safe-area-inset-left, 0px)); --kv-pad-r: max(20px, env(safe-area-inset-right, 0px));
  position: relative; overflow: hidden; height: 100vh; height: 100svh; min-height: 31rem;
  background: var(--bg); color: var(--kv-ink); touch-action: pan-y; }
.kv-track { position: absolute; inset: 0; }
.kv-slide { --kv-base-1: var(--g-light); --kv-base-2: var(--g); --kv-blob: var(--g); --kv-glow: rgba(255, 255, 255, 0.75);
  --kv-tone-1: var(--g-mid); --kv-tone-2: var(--white); --kv-tone-3: var(--g-light); --kv-pill-ink: var(--on-pastel);
  --s-ink: #24263D; --s-ink-2: #3F4360; --s-on-ink: #FFFFFF; --s-title: var(--s-ink);
  position: absolute; inset: 0; overflow: hidden; visibility: hidden; display: flex; flex-direction: column;
  padding: calc(var(--head-top) + clamp(1.75rem, 5vh, 3rem)) var(--kv-pad-r) calc(4.25rem + env(safe-area-inset-bottom, 0px)) var(--kv-pad); }
.kv-slide.is-on, .kv-slide.is-moving { visibility: visible; }
.kv-bg { position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 70% at 16% 38%, var(--kv-glow), transparent 72%),
              radial-gradient(48% 62% at 88% 12%, var(--kv-blob), transparent 74%),
              radial-gradient(52% 58% at 62% 104%, var(--kv-blob-2, var(--kv-blob)), transparent 74%),
              linear-gradient(118deg, var(--kv-base-1) 8%, var(--kv-base-2) 100%); }
.kv-text, .kv-visual { position: relative; z-index: 1; }
.kv-text { flex: none; max-width: 36rem; }
.kv-title { color: var(--s-title); font-size: clamp(2.25rem, 9.5vw, 3.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
.page[lang="ja"] .kv-title, .page[lang="en"] .kv-title { font-family: var(--font-en); letter-spacing: -0.015em; }
.kv-copy { margin-top: 0.7rem; color: var(--s-ink-2); font-size: 0.9375rem; font-weight: 500; line-height: 1.65; }
.kv-copy span { display: block; text-wrap: balance; }  /* 두 문장을 한 줄씩. 넘치면 한 글자만 남지 않게 고르게 */
.page[lang="ja"] .kv-copy span { word-break: auto-phrase; }  /* 일본어는 말 덩어리 사이에서 줄바꿈 */
.kv-btn { display: inline-flex; align-items: center; min-height: 44px; margin-top: 1.1rem; padding: 0.45rem 1.4rem; border: 1.5px solid var(--s-ink); border-radius: var(--r-pill);
  color: var(--s-ink); font-size: 0.9375rem; font-weight: 700; text-decoration: none; transition: background-color 0.2s ease, color 0.2s ease; }
.kv-btn:hover { background: var(--s-ink); color: var(--s-on-ink); }
/* 칸 색: 르세라핌 Fearless Blue(팬톤 7453 C), 아일릿 최신 앨범 파랑(#0B80E8), 아이브 최신 앨범 노랑(#F6E82F)·분홍(#F33C9A).
   바탕은 그 색을 밝게 푼 그라데이션, 알약(과 아일릿·아이브 그룹 이름)은 원래 색 그대로 */
.kv-slide.grp-lesserafim { --kv-base-1: #EEF3FB; --kv-base-2: #C2D6F1; --kv-blob: #A3C0E9; --kv-tone-1: #7BA6DE; --kv-tone-3: #DCE7F7; }
.kv-slide.grp-illit { --kv-base-1: #F1F8FF; --kv-base-2: #CBE3FB; --kv-blob: #9ACAF6; --kv-tone-1: #0B80E8; --kv-tone-3: #0B80E8; --s-title: #0B80E8; }
.kv-slide.grp-ive { --kv-base-1: #FFFDF1; --kv-base-2: #FFF4B5; --kv-blob: #FBEC80; --kv-blob-2: #FDD3E7; --kv-tone-1: #F6E82F; --kv-tone-3: #F33C9A; --s-title: #F33C9A; }
.kv-visual { flex: 1; min-height: 0; display: grid; place-items: center; container-type: inline-size; }
/* 이름 덩어리: 줄마다 시작을 조금씩 어긋나게(알약 글자 크기 기준) */
/* 알약 글자 크기는 오른쪽(폰에서는 아래) 칸 너비에 맞춰서(cqw): 가장 긴 줄이 칸에 들어가게. 언어마다 이름 길이가 달라 비율이 달라요 */
.kv-names { display: grid; justify-items: center; row-gap: clamp(0.55rem, 1.8vh, 1.2rem); font-size: min(10.2cqw, 3.25rem, 5.8vh); }
.page[lang="ja"] .kv-names { font-size: min(8.5cqw, 2.9rem, 5.2vh); }
.page[lang="en"] .kv-names { font-size: min(7.6cqw, 2.7rem, 4.9vh); }
.kv-row { position: relative; display: flex; align-items: center; gap: 0.3em; }
.kv-row:nth-child(1) { left: -0.45em; }
.kv-row:nth-child(2) { left: 0.55em; }
.kv-row:nth-child(3) { left: -0.15em; }
.kv .pill { font-size: 1em; padding: 0.22em 0.62em 0.2em; color: var(--kv-pill-ink); box-shadow: var(--kv-pill-shadow); }
.kv .pill.tone-1 { background: var(--kv-tone-1); }
.kv .pill.tone-2 { background: var(--kv-tone-2); }
.kv .pill.tone-3 { background: var(--kv-tone-3); }
.kv a.pill:hover { box-shadow: var(--kv-pill-shadow); }
/* 아래 3칸 막대(지금 칸이 진하게)와 멈춤 버튼, 오른쪽 끝 '스크롤' */
.kv-ctrl { position: absolute; z-index: 2; left: var(--kv-pad); bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 0.6rem; }
.kv-bar { display: flex; width: min(52vw, 450px); }
.kv-seg { flex: 1; display: grid; align-items: center; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.kv-seg span { display: block; height: 4px; background: var(--kv-track); transition: background-color 0.6s ease; }
.kv-seg[aria-current="true"] span { background: var(--kv-ink); }
.kv-toggle { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--kv-ink); cursor: pointer; transition: color 0.6s ease; }
.kv-toggle svg { width: 16px; height: 16px; }
.kv-toggle .i-play { display: none; margin-left: 2px; }
.kv.is-paused .kv-toggle .i-play { display: block; }
.kv.is-paused .kv-toggle .i-pause { display: none; }
.kv-scroll { position: absolute; z-index: 2; right: var(--kv-pad-r); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); color: var(--kv-ink-2); transition: color 0.6s ease; }
.kv-scroll:hover { color: var(--kv-ink); }
.kv-arrow { display: none; }
.kv.is-dragging { cursor: grabbing; -webkit-user-select: none; user-select: none; }
.kv-slide img { -webkit-user-drag: none; }
@media (min-width: 48rem) {
  .kv { --kv-pad: max(88px, env(safe-area-inset-left, 0px)); --kv-pad-r: max(88px, env(safe-area-inset-right, 0px)); min-height: 34rem; }
  .kv-slide { padding-top: calc(var(--head-top) + clamp(2.5rem, 7vh, 5rem)); padding-bottom: 6rem; }
  .kv-title { font-size: clamp(3rem, 7vw, 4.25rem); }
  .kv-copy { margin-top: 0.9rem; font-size: 1.125rem; }
  .kv-btn { margin-top: 1.6rem; }
  .kv-ctrl { bottom: 2.25rem; }
  .kv-scroll { bottom: 2rem; }
  .kv-arrow { display: grid; place-items: center; position: absolute; z-index: 2; top: calc(50% + var(--head-top) / 2); width: 60px; height: 60px; margin-top: -30px; padding: 0; border: 0;
    border-radius: 50%; background: none; color: var(--kv-ink); cursor: pointer; transition: color 0.6s ease; }
  .kv-arrow svg { width: 22px; height: 44px; }
  .kv-prev { left: max(16px, env(safe-area-inset-left, 0px)); }
  .kv-next { right: max(16px, env(safe-area-inset-right, 0px)); }
}
/* 넓은 화면: 글자는 왼쪽(내용 폭의 40%), 이름 덩어리는 그 오른쪽 나머지(가운데보다 조금 아래). 막대는 글자 아래, 칸 높이의 아래쪽 1/4쯤(마몽드처럼) */
@media (min-width: 75rem) {
  .kv { --kv-pad: max(clamp(96px, 8.3vw, 160px), env(safe-area-inset-left, 0px)); --kv-pad-r: max(clamp(96px, 8.3vw, 160px), env(safe-area-inset-right, 0px)); --kv-ctrl-y: 25%;
    --kv-col: calc((100% - var(--kv-pad) - var(--kv-pad-r)) * 0.4); }
  .kv-slide { display: block; padding: 0; }
  .kv-text { position: absolute; left: var(--kv-pad); bottom: calc(var(--kv-ctrl-y) + clamp(2.75rem, 8vh, 5.5rem)); width: var(--kv-col); max-width: none; }
  .kv-title { font-size: clamp(3rem, min(4.4vw, 8.6vh), 5.25rem); }
  .kv-copy { font-size: clamp(1.0625rem, 0.45vw + 0.75rem, 1.375rem); }
  .kv-visual { position: absolute; top: calc(var(--head-top) + 3%); bottom: 0; right: var(--kv-pad-r); left: calc(var(--kv-pad) + var(--kv-col) + 2vw); }
  .kv-names { font-size: min(9.6cqw, 7.4vh, 4.75rem); }
  .page[lang="ja"] .kv-names { font-size: min(8.1cqw, 6.4vh, 4.1rem); }
  .page[lang="en"] .kv-names { font-size: min(7.3cqw, 6vh, 3.8rem); }
  .kv-row:nth-child(1) { left: -0.7em; }
  .kv-row:nth-child(2) { left: 0.9em; }
  .kv-row:nth-child(3) { left: -0.25em; }
  .kv-ctrl { bottom: var(--kv-ctrl-y); width: var(--kv-col); }   /* 막대는 글자 칸 폭 안에서(최대 450px) */
  .kv-bar { flex: 0 1 450px; width: auto; min-width: 0; }
}
/* ---------- 멤버·그룹 페이지 맨 위: 첫 화면 그룹 칸과 같은 모양 ----------
   넘기기 없이 그 그룹 한 칸만(templates/member.j2·group.j2). 폰·태블릿은 글자 아래 이름 알약(높이는 내용만큼),
   넓은 화면은 첫 화면처럼 왼쪽 글자·오른쪽 이름(높이는 화면의 70%쯤, 둘 다 머리말 아래 가운데).
   멤버 페이지: 이름 위에 그룹 페이지로 가는 작은 버튼, 오른쪽 알약 중 지금 멤버는 제목 색 테두리 */
.kv.kv-page { height: auto; min-height: 0; }
.kv-page .kv-slide { position: relative; visibility: visible; padding-bottom: clamp(2.5rem, 6vh, 3.5rem); }
.kv-page .kv-visual { flex: none; margin-top: clamp(1.75rem, 5vh, 3rem); }
.kv-crumb { display: inline-flex; align-items: center; min-height: 34px; margin-bottom: 0.85rem; padding: 0.2rem 1rem; border: 1.5px solid var(--s-ink); border-radius: var(--r-pill);
  color: var(--s-ink); font-family: var(--font-en); font-size: 0.875rem; font-weight: 700; text-decoration: none; transition: background-color 0.2s ease, color 0.2s ease; }
.kv-crumb:hover { background: var(--s-ink); color: var(--s-on-ink); }
.kv-names .pill[aria-current="page"] { outline: 0.06em solid var(--s-title); outline-offset: 0.08em; }
.kv-names .pill[aria-current="page"]:focus-visible { outline-color: var(--pink-ink); }
@media (min-width: 48rem) {
  .kv-page .kv-slide { padding-bottom: clamp(3rem, 7vh, 4.5rem); }
  .kv-crumb { margin-bottom: 1.1rem; font-size: 0.9375rem; }
}
@media (min-width: 75rem) {
  .kv.kv-page { height: clamp(34rem, 72vh, 46rem); height: clamp(34rem, 72svh, 46rem); }
  .kv-page .kv-slide { position: absolute; padding: 0; }
  .kv-page .kv-text { top: var(--head-top); bottom: clamp(1.5rem, 4vh, 3rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
  .kv-page .kv-visual { top: var(--head-top); bottom: clamp(1.5rem, 4vh, 3rem); margin-top: 0; }
}
/* ---------- 첫 페이지: 한 화면에 한 칸 ----------
   칸(.snap-sec)마다 머리말 아래 화면을 꽉 채우고(내용은 세로 가운데), 내릴 때마다 다음 칸 맨 위에 딱 맞춰 멈춰요(한 번에 한 칸만).
   마지막 칸(.sec-last: 최근 영상 + 화장대 찾기)은 꼬리말과 합쳐서 한 화면(--foot-h는 assets/app.js). 화면 높이가 아주 낮으면(눕힌 폰) 그냥 자유롭게 내려가요.
   칸마다 내용이 한 화면에 들어가게: 폰에서는 그룹 카드를 작게, 최근 영상은 옆으로 넘기기, 장면은 3개까지 */
@media (min-height: 30rem) {
  :root:has(.snap-sec) { scroll-snap-type: y mandatory; scroll-padding-top: var(--head-c); }
  .snap-sec { scroll-snap-align: start; scroll-snap-stop: always; }
  .sec.snap-sec { display: flex; flex-direction: column; justify-content: center; padding-block: clamp(1.25rem, 4.5vh, 3.5rem);
    min-height: calc(100vh - var(--head-c)); min-height: calc(100svh - var(--head-c)); }
  .sec-last.snap-sec { min-height: calc(100vh - var(--head-c) - var(--foot-h, 0px)); min-height: calc(100svh - var(--head-c) - var(--foot-h, 0px)); }
  :root:has(.snap-sec) .site-foot { scroll-snap-align: end; }   /* 꼬리말 끝까지 내려갈 수 있게 */
}
.mt-block { margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-height: 30rem) {
  /* 칸 안 간격과 상품 그림 높이를 화면 높이에 맞춰서 */
  .snap-sec .mt-block { margin-top: clamp(1.25rem, 3.5vh, 3rem); }
  .snap-sec .pager { margin-top: clamp(0.75rem, 2vh, 1.75rem); }
  .snap-sec .lede { margin-top: clamp(0.6rem, 1.6vh, 1.1rem); }
  .snap-sec .pcard-art { max-height: 26vh; }
  .sec-clip .band-head { margin-bottom: clamp(1rem, 2.5vh, 2.25rem); }
}
/* 영상 칸: 넓은 화면에서 화면이 낮으면 영상 폭을 줄여 한 화면에(16:9 그대로) */
@media (min-width: 60rem) and (min-height: 30rem) {
  .sec-clip .clip-body { grid-template-columns: min(60%, calc((100vh - 28.5rem) * 1.7778)) minmax(0, 1fr); }
}
@media (min-width: 48rem) and (max-width: 59.99rem) {
  .sec-clip .clip-body { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
}
/* 폰: 장면은 한 줄로 짧게, 아주 낮은 폰은 장면 2개 */
@media (max-width: 47.99rem) {
  .sec-clip .scene { padding-block: 0.4rem; }
  .sec-clip .scene-meta { display: none; }
  .sec-clip .scene-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sec-clip .scene-brand { display: inline; margin-right: 0.35em; }
  .sec-clip .scene-body { padding-top: 0.2rem; }
}
@media (max-width: 47.99rem) and (max-height: 50rem) {
  .sec-clip .clip-meta { display: none; }
}
@media (max-width: 47.99rem) and (max-height: 45rem) {
  .sec.snap-sec { padding-block: 1rem; }
  .sec-clip .scene:nth-child(n+3) { display: none; }
  .sec-clip .clip { padding: 0.9rem; }
  .sec-clip .clip-body { margin-top: 0.75rem; }
  .sec-clip .band-title { font-size: 1.3rem; }
  .snap-sec .headline { font-size: 1.5rem; }
  .snap-sec .lede { font-size: 0.875rem; line-height: 1.6; }
  .snap-sec .pcard-art { max-height: 20vh; }
  .sec-last .cta-box h2 { font-size: 1.2rem; }
}
@media (max-width: 47.99rem) and (max-height: 42rem) {
  .snap-sec .pcard-art { max-height: 17vh; }
  .snap-sec .headline { font-size: 1.4rem; }
}
/* 마지막 칸: 최근 영상 카드는 낮게, 그 아래 남색 상자에 '화장대 찾기'(검색 + 전체 화장품). 꼬리말은 같은 바탕으로 이어져요 */
.sec-last .sec-head { margin-bottom: clamp(0.75rem, 2vh, 1.5rem); }
.sec-last .vcard-top { min-height: 0; gap: 0.6rem; padding: 0.85rem 1.1rem; }
.sec-last .vcard-date { font-size: 1.35rem; }
.sec-last .vcard-body { gap: 0.15rem; padding: 0.75rem 1.1rem 0.95rem; }
.cta-box { display: grid; gap: 1rem 2.5rem; align-items: center; margin-top: clamp(1.25rem, 4vh, 2.75rem); padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: var(--r-big); background: var(--navy); color: var(--white); }
.cta-box h2 { font-size: clamp(1.3rem, 1.1vw + 1rem, 1.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.4; }
.cta-side { display: grid; gap: 0.75rem; justify-items: start; min-width: 0; }
.cta-search { width: 100%; text-align: left; }
.cta-box .btn-pink { min-height: 46px; padding-inline: 1.5rem; font-size: 0.9375rem; }
@media (min-width: 60rem) {
  .cta-box { grid-template-columns: minmax(0, 1fr) minmax(0, 34rem); }
  .cta-side { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .cta-side .btn-pink { min-height: 60px; }
}
/* 폰: 마지막 칸이 한 화면에 들어가게 영상 카드(날짜 한 줄)·남색 상자·꼬리말을 작게 */
@media (max-width: 47.99rem) {
  .sec-last .vcard-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.65rem 0.95rem; }
  .sec-last .vcard-date { font-size: 1.1rem; }
  .sec-last .vcard-body { padding: 0.55rem 0.95rem 0.75rem; }
  .sec-last .vcard-title { font-size: 0.9375rem; }
  .sec-last .vcard-meta { font-size: 0.8125rem; }
  .cta-box { gap: 0.7rem; margin-top: 1rem; padding: 1.1rem; }
  .cta-box h2 { font-size: 1.2rem; }
  .cta-box .hero-search .search-input { height: 50px; }
  .cta-box .btn-pink { min-height: 42px; }
  :root:has(.snap-sec) .site-foot { padding-block: 0.9rem 1.25rem; font-size: 0.75rem; line-height: 1.55; }
  :root:has(.snap-sec) .foot-grid { gap: 0.35rem; }
  :root:has(.snap-sec) .foot-logo .wordmark { width: 140px; }
  :root:has(.snap-sec) .foot-logo .mark { width: 24px; }
}
@media (max-width: 47.99rem) and (max-height: 50rem) {
  .sec-last .vcard-meta + .vcard-meta { display: none; }   /* 장면 수 줄 */
}
@media (max-width: 47.99rem) and (max-height: 45rem) {
  .sec-last .vcard-meta { display: none; }
  .sec-last .vcard-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sec-last .cta-box h2 { font-size: 1.1rem; }
  .sec-last .sec-head { margin-bottom: 0.6rem; }
  .sec-last .cta-box { margin-top: 0.75rem; padding: 0.9rem; gap: 0.55rem; }
  .sec-last .cta-box .hero-search .search-input { height: 46px; }
  .sec-last .cta-box .btn-pink { min-height: 40px; }
}
/* 첫 페이지 꼬리말: 낮게, 넓은 화면은 로고 옆에 글 */
:root:has(.snap-sec) .site-foot { padding-block: 1.25rem 1.75rem; }
@media (min-width: 64rem) {
  :root:has(.snap-sec) .foot-grid { grid-template-columns: auto minmax(0, 1fr); column-gap: 3rem; max-width: calc(var(--wrap) + 2 * 24px); }
  :root:has(.snap-sec) .foot-logo { grid-row: 1 / span 3; }
}
/* 장면 목록: 첫 페이지 폰·태블릿에서는 3개까지(전체는 위 버튼으로 멤버 페이지에서) */
@media (max-width: 59.99rem) {
  .sec-clip .scene:nth-child(n+4) { display: none; }
  .sec-clip .band-text { display: none; }
}
/* 그룹 카드: 넓은 화면은 네 장을 한 줄로(이름은 길이만큼 줄바꿈), 폰은 2×2 작은 카드(이름 목록 없이) */
@media (min-width: 64rem) {
  .snap-sec .gcards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .snap-sec .gcard { min-height: 0; }
  .snap-sec .gcard-names { display: flex; flex-wrap: wrap; align-content: flex-start; }
  .snap-sec .gcard-names a { padding-inline: 0.85rem; }
}
@media (min-width: 64rem) and (max-height: 52rem) {
  .snap-sec .gcard { padding: 1.25rem; gap: 0.45rem; }
  .snap-sec .gcard-names { gap: 0.4rem; padding-top: 0.4rem; }
  .snap-sec .gcard-names a { min-height: 2.1rem; font-size: 0.8125rem; }
  .snap-sec .gcard-btn { margin-top: 0.25rem; }
}
@media (max-width: 47.99rem) {
  .snap-sec .gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .snap-sec .gcard { min-height: 0; grid-template-rows: auto auto 1fr; padding: 1.1rem 1rem; gap: 0.35rem; }
  .snap-sec .gcard-title { font-size: 1.25rem; }
  .snap-sec .gcard-text { font-size: 0.8125rem; }
  .snap-sec .gcard-names { display: none; }
  .snap-sec .gcard-btn { align-self: end; margin-top: 0.75rem; }
  /* 최근 영상: 옆으로 넘기기 */
  .snap-sec .vcards { grid-auto-flow: column; grid-auto-columns: min(80%, 20rem); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 0.25rem; }
  .snap-sec .vcards::-webkit-scrollbar { display: none; }
  .snap-sec .vcard { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: no-preference) {
  .pop { animation: pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.35) both; animation-delay: calc(var(--i, 0) * 55ms + 120ms); }
  @keyframes pop { from { transform: translateY(18px) scale(0.86); opacity: 0.25; } }
}

/* ---------- sections ---------- */
.sec { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.sec-soft { background: var(--bg-soft); }
.sec-pink { background: var(--bg-pink); }
.headline { font-size: clamp(1.7rem, 2.6vw + 1rem, 2.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.32; }
.headline .hl { display: block; color: var(--pink-ink); }
.headline .dk { display: block; color: var(--ink); }
.lede { margin-top: 1.1rem; color: var(--ink-2); max-width: 36rem; font-size: 0.9375rem; line-height: 1.75; }
.sec-head { display: grid; gap: 0.25rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.sec-title { font-size: clamp(1.4rem, 1.4vw + 1rem, 1.9rem); font-weight: 800; letter-spacing: -0.02em; }
.sec-sub { color: var(--ink-2); font-size: 0.9375rem; }
.more-link { display: inline-flex; margin-top: 1.5rem; font-weight: 700; color: var(--pink-ink); text-decoration: none; }
.more-link:hover { text-decoration: underline; }

/* product cards */
.pcard { display: grid; gap: 0.35rem; text-decoration: none; min-width: 0; align-content: start; }
.pcard-art { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: var(--r-card); overflow: hidden; max-width: 100%;
  background: var(--pic, none) center / auto 46% no-repeat, var(--tile, var(--art-bg, #F4EFF8)); }  /* 종류 그림: assets/cat/*.svg (scripts/icons.py) */
.pcard-cat { position: absolute; z-index: 1; left: 0.8rem; top: 0.75rem; padding: 0.05rem 0.6rem; border-radius: var(--r-pill); background: var(--chip-bg); color: var(--chip-ink); font-size: 0.75rem; font-weight: 700; }
.pcard-n { position: absolute; z-index: 1; right: 0.8rem; bottom: 0.7rem; padding: 0.05rem 0.6rem; border-radius: var(--r-pill); background: var(--chip-bg); color: var(--chip-ink); font-size: 0.75rem; font-weight: 700; }
.pcard-brand { margin-top: 0.55rem; font-size: 0.8125rem; color: var(--ink-3); font-weight: 500; }
.pcard-name { font-weight: 700; font-size: 1.0625rem; line-height: 1.4; color: var(--ink); }
.pcard:hover .pcard-name { color: var(--pink-ink); }
.pcard-who { font-size: 0.875rem; color: var(--ink-2); }
.pcard-flags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.art-skin { --art: linear-gradient(135deg, #DDF5F0 0%, #9ED9D0 100%); --art-bg: #DDF5F0; --pic: var(--pic-skin); }
.art-base { --art: linear-gradient(135deg, #FCEDE3 0%, #EDBFA1 100%); --art-bg: #FCEDE3; --pic: var(--pic-base); }
.art-eye { --art: linear-gradient(135deg, #EEE8FF 0%, #BFB0EF 100%); --art-bg: #EEE8FF; --pic: var(--pic-eye); }
.art-cheek { --art: linear-gradient(135deg, #FFE7DD 0%, #F5B5A0 100%); --art-bg: #FFE7DD; --pic: var(--pic-cheek); }
.art-lip { --art: linear-gradient(135deg, #FDE3EC 0%, #F1A9C2 100%); --art-bg: #FDE3EC; --pic: var(--pic-lip); }
.art-hair { --art: linear-gradient(135deg, #E5EDFD 0%, #A9BFEE 100%); --art-bg: #E5EDFD; --pic: var(--pic-hair); }
.art-body { --art: linear-gradient(135deg, #ECF7E0 0%, #B5DB9F 100%); --art-bg: #ECF7E0; --pic: var(--pic-body); }
.art-scent { --art: linear-gradient(135deg, #FFF6D9 0%, #EDCF84 100%); --art-bg: #FFF6D9; --pic: var(--pic-scent); }
.art-device { --art: linear-gradient(135deg, #F2F4F8 0%, #BEC6D3 100%); --art-bg: #F2F4F8; --pic: var(--pic-device); }
.art-etc { --art: linear-gradient(135deg, #F4EFF8 0%, #CBC0DE 100%); --art-bg: #F4EFF8; --pic: var(--pic-etc); }
.badge { display: inline-flex; align-items: center; padding: 0.05rem 0.55rem; border-radius: 8px; font-size: 0.75rem; font-weight: 700; line-height: 1.7; }
.badge.ad { background: var(--ad-bg); color: var(--ad-ink); }
.badge.off { background: var(--fill); color: var(--ink-2); border: 1px solid var(--line); }
.badge.soft { background: var(--fill); color: var(--ink-2); }

/* carousel */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 21.5rem); gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 0.25rem; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.75rem; font-family: var(--font-en); font-weight: 600; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.pager button { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface); cursor: pointer; }
.pager button:hover { border-color: var(--ink); }
.pager button:disabled { opacity: 0.35; cursor: default; }
.pager svg { width: 16px; height: 16px; }

/* grids */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
@media (min-width: 48rem) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.25rem; } }
@media (min-width: 70rem) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* band with the video (home) */
.band-head { display: grid; gap: 1rem 3rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
@media (min-width: 60rem) { .band-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; } }
.band-title { font-size: clamp(1.45rem, 1.6vw + 1rem, 2rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.38; }
.band-side { display: grid; gap: 1rem; justify-items: start; }
.band-text { color: var(--ink-2); max-width: 34rem; }

/* clip = one member in one video: 영상(왼쪽 위) + 번호 목록(옆) */
.clip { background: var(--surface); border-radius: var(--r-big); padding: clamp(1.1rem, 2.5vw, 1.75rem); box-shadow: var(--shadow); scroll-margin-top: 80px; }
.clip-stack { display: grid; gap: 1.25rem; }
.clip-head { display: grid; gap: 0.3rem; }
.clip-who { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; }
.clip-who a { display: inline-flex; padding: 0.05rem 0.75rem; border-radius: var(--r-pill); background: var(--g); color: var(--on-pastel); font-weight: 800; font-family: var(--font-en); font-size: 0.875rem; text-decoration: none; }
.clip-who span { font-family: var(--font-en); font-weight: 600; font-size: 0.8125rem; color: var(--ink-3); }
.clip-title { font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.3rem); font-weight: 800; }
.clip-title a { text-decoration: none; }
.clip-title a:hover { color: var(--pink-ink); }
.clip-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.7rem; color: var(--ink-2); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.tag { display: inline-flex; padding: 0 0.55rem; border-radius: var(--r-pill); background: var(--fill); color: var(--ink-2); font-size: 0.75rem; font-weight: 600; line-height: 1.75; }
.clip-body { display: grid; gap: 1rem 1.5rem; margin-top: 1.1rem; }
@media (min-width: 60rem) { .clip-body { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: stretch; } }

.player { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, var(--g-wash-1, var(--g-light)) 0%, var(--g-wash-2, var(--g)) 100%); align-self: start; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player-cover { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.55rem; padding: 1rem 1.25rem; border: 0; background: none; color: var(--ink); text-align: center; text-decoration: none; cursor: pointer; }
.player-play { display: grid; place-items: center; width: clamp(3.5rem, 6vw, 4.5rem); aspect-ratio: 1; border-radius: 50%; background: var(--white); color: var(--g-deep); box-shadow: 0 14px 30px -14px rgba(42, 48, 89, 0.45); transition: transform 0.18s ease; }
.player-play svg { width: 42%; height: 42%; margin-left: 6%; }
.player-cover:hover .player-play { transform: scale(1.06); }
.player-text { font-weight: 800; }
.player-note { max-width: 28rem; font-size: 0.8125rem; line-height: 1.6; color: var(--ink-2); }
.player.is-on .player-cover { display: none; }

.scene-wrap { position: relative; min-width: 0; }
@media (min-width: 60rem) {
  .scene-wrap { min-height: 12rem; }
  .scene-wrap .scenes { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 0.25rem; }
  /* 목록 옆 스크롤 막대: 그룹 색 얇은 길(4px) 위에 조금 더 굵은 알약 손잡이(6px). 크롬·사파리는 ::-webkit-scrollbar, 파이어폭스는 scrollbar-color */
  .scene-wrap .scenes::-webkit-scrollbar { width: 14px; }
  .scene-wrap .scenes::-webkit-scrollbar-track { margin-block: 4px; border: 5px solid transparent; border-radius: 999px; background: var(--g-hi, var(--g-light)) padding-box; }
  .scene-wrap .scenes::-webkit-scrollbar-thumb { min-height: 44px; border: 4px solid transparent; border-radius: 999px; background: var(--g-text, var(--g-mid)) padding-box; }
  .scene-wrap .scenes::-webkit-scrollbar-thumb:hover, .scene-wrap .scenes::-webkit-scrollbar-thumb:active { background-color: var(--solid); }
  @supports not selector(::-webkit-scrollbar) {
    .scene-wrap .scenes { scrollbar-width: thin; scrollbar-color: var(--g-text, var(--g-mid)) var(--g-hi, var(--g-light)); }
  }
  /* 목록이 더 있으면 아래쪽을 흐리게(스크롤 막대는 가리지 않게) */
  .scene-wrap::after { content: ""; position: absolute; left: 0; right: 14px; bottom: 0; height: 3rem; background: linear-gradient(to bottom, transparent, var(--surface)); pointer-events: none; opacity: 0; transition: opacity 0.2s ease; }
  .scene-wrap.more::after { opacity: 1; }
}
.scenes { display: grid; align-content: start; gap: 0.25rem; }
.scene { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 0.75rem; padding: 0.55rem 0.6rem; border-radius: 14px; scroll-margin-top: 90px; }
.scene:target, .scene.is-now { background: var(--g-hi, var(--g-light)); }
.scene-jump { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; border-radius: var(--r-pill); }
.scene-n { display: inline-grid; place-items: center; width: 1.85rem; height: 1.85rem; border-radius: 50%; background: var(--g); color: var(--on-pastel); font-family: var(--font-en); font-weight: 700; font-size: 0.8125rem; font-variant-numeric: tabular-nums; transition: background 0.15s ease, color 0.15s ease; }
.scene-t { min-width: 3.4rem; font-family: var(--font-en); font-weight: 700; font-size: 1rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.scene-jump:hover .scene-n, .scene.is-now .scene-n { background: var(--solid); color: var(--on-solid); }
.scene-jump:hover .scene-t { color: var(--g-text, var(--g-deep)); }
.scene-body { display: grid; gap: 0.1rem; min-width: 0; padding-top: 0.1rem; }
.scene-name { font-weight: 700; text-decoration: none; line-height: 1.45; }
.scene-name:hover { color: var(--pink-ink); }
.scene-brand { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--ink-3); }
.scene-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.55rem; color: var(--ink-2); font-size: 0.8125rem; }
.sw { display: inline-block; flex: none; width: 1.35em; height: 1.35em; background: var(--pic, none) center / contain no-repeat; }  /* 종류 그림 */
@media (prefers-reduced-motion: no-preference) {
  .clip.rise .scene-n { animation: rise 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.35) both; animation-delay: calc(min(var(--i), 24) * 60ms); }
  @keyframes rise { from { transform: translateY(12px) scale(0.6); opacity: 0.15; } }
}

/* group cards 2x2 */
.gcards { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; } }
/* 카드 아무 데나 누르면 그룹 페이지(제목 링크를 카드 전체로 늘림), 이름 알약은 멤버 페이지로 */
.gcard { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; align-content: start; gap: 0.6rem; min-height: 16rem; padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--r-big); background: var(--g-card, var(--g)); color: var(--ink); }
.gcard-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.gcard-title { font-family: var(--font-en); font-size: clamp(1.5rem, 1.2vw + 1.1rem, 2rem); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.gcard-link { color: inherit; text-decoration: none; }
.gcard-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.gcard-link:focus-visible { outline: none; }
.gcard-link:focus-visible::after { outline: 3px solid var(--pink-ink); outline-offset: 3px; }
.gcard-text { font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.gcard-names { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: end; gap: 0.5rem; padding-top: 0.6rem; }
@media (max-width: 25.99rem) { .gcard-names { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gcard-names a { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 2.5rem; padding: 0.3rem 0.6rem; border-radius: var(--r-pill); background: var(--name-pill, var(--white)); color: var(--on-pastel);
  font-family: var(--font-en); font-weight: 800; font-size: clamp(0.85rem, 0.4vw + 0.75rem, 1rem); text-decoration: none; white-space: nowrap; transition: background 0.15s ease, color 0.15s ease; }
.gcard-names a:hover { background: var(--solid); color: var(--on-solid); }
.gcard-btn { justify-self: start; margin-top: 0.5rem; padding: 0.35rem 1rem; border-radius: var(--r-pill); font-size: 0.875rem; font-weight: 700; background: var(--solid); color: var(--on-solid); }
.gcard:has(.gcard-link:hover) .gcard-btn { background: var(--solid-2); }
.gc-all { background: var(--navy); color: var(--white); }
.gc-all .gcard-text { color: rgba(255, 255, 255, 0.78); }
.gc-all .gcard-names a { font-family: var(--font-text); font-weight: 700; font-size: 0.875rem; }
.gc-all .gcard-names li:nth-child(3n+1) a { background: var(--butter); }
.gc-all .gcard-names li:nth-child(3n+2) a { background: var(--mint); }
.gc-all .gcard-names li:nth-child(3n) a { background: var(--peach); }
.gc-all .gcard-names a:hover { background: var(--white); color: var(--on-pastel); }
.gc-all .gcard-btn { background: var(--white); color: var(--on-pastel); }
.gc-all:has(.gcard-link:hover) .gcard-btn { background: var(--pink-pastel); }

/* recent video cards */
.vcards { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .vcards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.vcard { display: grid; background: var(--surface); border-radius: var(--r-card); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); }
.vcard-top { display: grid; align-content: space-between; gap: 1.5rem; min-height: 8.5rem; padding: 1rem 1.2rem; background: linear-gradient(135deg, var(--g-wash-1, var(--g-light)) 0%, var(--g-wash-2, var(--g)) 100%); color: var(--ink); }
.vcard-date { font-family: var(--font-en); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.vcard-plat { justify-self: start; padding: 0 0.6rem; border-radius: var(--r-pill); background: var(--plat-bg); font-size: 0.75rem; font-weight: 600; line-height: 1.8; }
.vcard-body { display: grid; gap: 0.25rem; padding: 1.1rem 1.2rem 1.25rem; }
.vcard-title { font-weight: 800; font-size: 1.0625rem; line-height: 1.45; }
.vcard:hover .vcard-title { color: var(--pink-ink); }
.vcard-meta { font-size: 0.875rem; color: var(--ink-2); }

/* CTA band */

/* footer */
.site-foot { background: var(--bg-soft); color: var(--ink-2); font-size: 0.8125rem; padding-block: 2.5rem 3rem; }
.foot-grid { display: grid; gap: 0.6rem; max-width: 46rem; }
.foot-logo { justify-self: start; gap: 8px; }
.foot-logo .mark { width: 30px; }
.foot-logo .wordmark { width: 170px; }

/* ---------- member / group page (맨 위 칸은 위 .kv-page) ---------- */
.contract { background: var(--ad-bg); color: var(--ad-ink); border-radius: var(--r-card); padding: 1.25rem 1.4rem; display: grid; gap: 0.6rem; }
.contract h2 { font-size: 1.125rem; font-weight: 800; }
.contract p { font-size: 0.875rem; }
.ct-list { display: grid; gap: 0.45rem; }
.ct-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.7rem; }
.ct-brand { font-weight: 800; }
.ct-role, .ct-period { font-size: 0.8125rem; }
.ct-src { font-size: 0.8125rem; font-weight: 700; }
.cat-block + .cat-block { margin-top: 3rem; }
.cat-title { display: flex; align-items: center; gap: 0.6rem; font-size: 1.25rem; font-weight: 800; margin-bottom: 1.1rem; }
.cat-title .sw { width: 1.3em; height: 1.3em; }
.cat-n { font-family: var(--font-en); color: var(--ink-3); font-weight: 700; font-size: 1rem; }
.empty { color: var(--ink-2); padding-block: 1rem; }

/* ---------- product page ---------- */
.phead { display: grid; gap: 1.5rem; padding-block: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 56rem) { .phead { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 3rem; } }
.phead .pcard-art { aspect-ratio: 4 / 3; border-radius: var(--r-big); }
@media (max-width: 55.99rem) { .phead .pcard-art { display: none; } }
.pcat { display: inline-flex; align-items: center; gap: 0.45rem; justify-self: start; padding: 0.2rem 0.8rem; border-radius: var(--r-pill); background: var(--fill); font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.pcat:hover { background: var(--hover-pink); }
.ptitle { font-size: clamp(1.7rem, 2.4vw + 1rem, 2.7rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; margin-top: 0.9rem; }
.ptitle .brand { display: block; font-size: 1rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; margin-bottom: 0.35rem; }
.alt-names { display: grid; gap: 0.2rem; margin-top: 1rem; font-size: 0.875rem; color: var(--ink-2); }
.alt-names div { display: grid; grid-template-columns: minmax(2.6rem, max-content) minmax(0, 1fr); gap: 0.6rem; }
.alt-names dt { font-weight: 700; }
.alt-names dd { margin: 0; }
.who-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.who-pills a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.95rem; border-radius: var(--r-pill); background: var(--g); color: var(--on-pastel); text-decoration: none; font-weight: 800; }
.who-pills a span { font-size: 0.8125rem; font-weight: 600; color: var(--on-pastel-2); }
.who-pills a:hover { background: var(--g-mid); }
.who-ad { padding: 0 0.5rem; border-radius: 6px; background: #FFF3D1; color: #7A4A00; font-style: normal; font-size: 0.75rem; font-weight: 700; line-height: 1.7; }
.ev-list { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .ev-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ev { display: grid; grid-template-columns: minmax(4.75rem, auto) minmax(0, 1fr); gap: 0.3rem 1.1rem; padding: 1.2rem 1.3rem; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); }
.ev-t { font-family: var(--font-en); font-weight: 800; font-size: 1.6rem; color: var(--pink-ink); text-decoration: none; font-variant-numeric: tabular-nums; line-height: 1.15; }
.ev-t:hover { text-decoration: underline; }
.ev-body { display: grid; gap: 0.2rem; min-width: 0; }
.ev-who a { font-weight: 800; text-decoration: none; }
.ev-video a { text-decoration: none; }
.ev-video a:hover, .ev-who a:hover { color: var(--pink-ink); }
.ev-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; color: var(--ink-2); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }

/* buy box: 판매처 이름은 모두 보이고, 공식 링크가 없는 곳은 회색 */
.buy { display: grid; gap: 0.25rem; padding: clamp(1.3rem, 3vw, 2rem); border-radius: var(--r-big); background: var(--surface); border: 1.5px solid var(--line-2); }
.buy h2 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.35rem; font-weight: 800; }
.buy-region h3 { font-size: 1rem; font-weight: 700; margin: 1rem 0 0.6rem; }
.buy-list { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.store { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 46px; padding: 0.5rem 1.25rem; border-radius: var(--r-pill); background: var(--solid); color: var(--on-solid); border: 1.5px solid var(--solid); font-weight: 700; text-decoration: none; }
a.store:hover { background: var(--solid-2); border-color: var(--solid-2); }
.store.is-off { background: var(--fill); color: var(--ink-off); border: 1.5px dashed var(--line-2); cursor: not-allowed; }
.store small { font-size: 0.75rem; font-weight: 600; }
.buy-official { margin-top: 1rem; padding: 0.7rem 0.9rem; border-radius: 12px; background: var(--fill); font-size: 0.8125rem; color: var(--ink-2); line-height: 1.7; }
.disclosure, .note { margin-top: 0.6rem; font-size: 0.8125rem; color: var(--ink-2); line-height: 1.7; }

/* ---------- products page ---------- */
.list-hero { background: var(--bg-soft); padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.list-hero .search-box { margin-top: 1.5rem; max-width: 40rem; }
.filters { display: grid; gap: 1rem; margin-top: 1.25rem; }
.f-cats { display: flex; flex-wrap: wrap; gap: 0.45rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.f-cats label { position: relative; cursor: pointer; }
.f-cats input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.f-cats label > span { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.95rem; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: 0.9375rem; font-weight: 600; }
.f-cats label:hover > span { border-color: var(--ink-2); }
.f-cats input:checked + span { background: var(--chk-bg); border-color: var(--chk-line); color: var(--chk-ink); }
.f-cats input:focus-visible + span { outline: 3px solid var(--pink-ink); outline-offset: 2px; }
.f-row { display: flex; flex-wrap: wrap; align-items: end; gap: 0.75rem 1rem; }
.f-field { display: grid; gap: 0.25rem; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.f-field select { font: inherit; font-size: 0.9375rem; font-weight: 500; color: var(--ink); background: var(--field); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0.55rem 0.9rem; max-width: 100%; }
.f-count { margin-left: auto; font-family: var(--font-en); font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; }

/* about & language chooser */
.about { display: grid; gap: 2rem; max-width: 44rem; }
.about h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.35rem; }
.about p { color: var(--ink-2); }
.page-title { font-size: clamp(1.8rem, 2.6vw + 1rem, 2.75rem); font-weight: 800; letter-spacing: -0.03em; }
.choose { display: grid; gap: 1rem; justify-items: center; text-align: center; }
