/* ============================================================
   Papatto Widgets — Structure Layer
   구조(레이아웃/간격/컴포넌트 트리)는 톤앤매너와 무관하게 고정.
   Role 기반 네이밍 컨벤션(papatto_naming_convention.md) 준수:
   Role(컴포넌트명) / Token Ref(크기) / Semantic Tag(HTML태그)는 독립 축.
   ============================================================ */
/* ReviewSection 리뷰 본문 전용 서체 — 지금은 톤앤매너 무관 고정값(추후 테마별
   --font-family 토큰으로 전환 예정, 그 전까지는 여기서 직접 로드). */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Serif:ital,wght@0,400;0,500&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

/* 시맨틱 태그는 페이지 조립 시점에 코드가 결정 (h1이 올지 h2가 올지 미리 알 수 없음).
   태그 자체의 브라우저 기본 font-size/weight/line-height가 토큰 값을 덮어쓰지 않도록,
   부모(Role 클래스가 걸린 wrapper)의 값을 그대로 상속받게 강제한다. */
h1, h2, h3, h4, h5, h6,
p, small, button, label {
  font: inherit;
  color: inherit;
}

.page {
  max-width: 500px;
  margin: 0 auto;
}

/* PC(뷰포트가 페이지 폭 500px보다 넓을 때): 모바일 화면을 얹어둔 "미리보기 프레임"처럼 — 위쪽 여백,
   위쪽 두 모서리 라운드, 뒤로 연하고 넓게 퍼지는 그림자(에디터 미리보기와 같은 결). overflow:clip은
   안쪽 sticky(topbar)를 깨뜨리는 스크롤 컨테이너를 만들지 않으면서 모서리를 자르기 위함. */
@media (min-width: 501px) {
  /* 프레임 밖 배경 — 사용자가 고른 색(--pp-backdrop, app.js가 STYLE_OVERRIDES에서 주입, 기본 #E8E8EA) 위에 위→아래로
     진해지는 검정 그라디언트를 화면 고정으로 겹쳐 몰입감을 준다(에디터와 같은 값). body(.theme-*)의 테마 배경보다 우선. */
  /* 프레임 밖 배경 위에 고정 크기(180px) 타일로 반복되는 아주 옅은 노이즈(SVG feTurbulence)를 얹어
     밋밋함을 줄인다. body 크기(%)로 그리면 콘텐츠 길이가 바뀔 때마다 다시 늘려 그려져 스크롤 중
     "움직이는" 것처럼 보였다 — 고정 타일 반복으로 항상 같은 패턴이 유지되게 한다. 끄기는
     body.pp-noise-off(에디터에서 STYLE_OVERRIDES.__backdrop.noise === false일 때 app.js가 붙임). */
  body {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22180%22%20height%3D%22180%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.85%22%20numOctaves%3D%222%22%20stitchTiles%3D%22stitch%22/%3E%3CfeColorMatrix%20type%3D%22matrix%22%20values%3D%220%200%200%200%200%20%200%200%200%200%200%20%200%200%200%200%200%20%200%200%200%200.05%200%22/%3E%3C/filter%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url%28%23n%29%22/%3E%3C/svg%3E"), linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.08) 100%) !important;
    background-repeat: repeat, no-repeat !important;
    background-attachment: fixed, fixed !important;
    background-color: var(--pp-backdrop, #E8E8EA) !important;
    /* 노이즈 타일은 화면(뷰포트)에 고정 크기로 반복 — body 높이가 콘텐츠에 따라 자주 바뀌는데,
       %-크기 SVG로 두면 리플로우마다 다시 늘려 그려져 스크롤할 때 "움직이는" 것처럼 보였다. */
    background-size: 180px 180px, cover !important;
  }
  body.pp-noise-off { background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.08) 100%) fixed, var(--pp-backdrop, #E8E8EA) !important; }
  .page {
    margin: 20px auto 0; /* 아래 여백/라운드는 없음 — 에디터 미리보기(#app)와 동일하게 위쪽만 */
    min-height: calc(100vh - 20px); /* 콘텐츠가 적어도 프레임이 화면 아래까지 채워지게(하단에 배경이 비쳐 보이던 여백 제거) */
    min-height: calc(100dvh - 20px);
    border-radius: 32px 32px 0 0;
    overflow: clip;
    background: var(--color-bg);
    box-shadow: 0 20px 120px rgba(0, 0, 0, 0.12);
  }
}

/* 폴더블 두 화면 펼침(Surface Duo 등, 힌지가 뷰포트를 둘로 나눔): 가운데 정렬된 500px 페이지가 힌지를 가로지르지
   않도록 첫 번째 화면(segment 0) 안에서 가운데로 옮긴다. 힌지 없는 기기에선 이 쿼리가 거짓이라 영향 없음. */
@media (horizontal-viewport-segments: 2) {
  .page { margin-left: max(0px, calc((env(viewport-segment-width 0 0) - 500px) / 2)); margin-right: 0; }
}

/* ── 공용: Headline (Role: Headline · 4-1 규칙: 페이지 내 위치로 Token Ref 결정) ── */
.headline-wrapper {
  padding: 0 var(--gutter);
  font-weight: var(--font-weight-headline);
  line-height: var(--line-height);
}
/* 정렬 컨트롤(2026-08, 필드별 → 섹션 단일 컨트롤로 승격) — 인스턴스(섹션) 하나당 --align
   override 하나가 headline/subhead/button-list에 전부 상속되어 같이 움직인다("헤드라인만
   왼쪽, 나머지는 가운데"처럼 어긋나는 조합은 애초에 만들 수 없게" 함 — 사용성 테스트 결론).
   --h1/--h2는 폴백 start(원래 기본값)로, 뒤이어 나오는 --center 변형은 폴백 center로 —
   --center 클래스가 붙은 타입(hero/cardGrid/cta/faq/quote)은 기본 가운데, 안 붙은 타입
   (imageText/carousel)은 기존처럼 start 유지. */
.headline-wrapper--h1 { font-size: var(--font-h1); text-align: var(--align, start); }  /* 페이지 첫 Headline */
.headline-wrapper--h2 { font-size: var(--font-h2); text-align: var(--align, start); }  /* 그 외 섹션 */
.headline-wrapper--center { text-align: var(--align, center); }

/* ── 공용: Subhead (Role: Subhead · Token: Lead, Headline과 무관한 독립 토큰) ── */
.subhead-wrapper {
  padding: 0 var(--gutter);
  font-size: var(--font-lead);
  font-weight: var(--font-weight-body);
  line-height: var(--line-height);
  color: var(--color-text-primary);
  text-align: var(--align, start);
}
.subhead-wrapper--center { text-align: var(--align, center); }

/* ── 공용: Button / ButtonSecondary (Role: Button) ── */
.button-list {
  display: flex;
  gap: var(--space-10);
  justify-content: var(--align, center); /* 정렬 컨트롤(2026-08) — left/right는 flex justify-content로도 유효한 키워드 */
  padding: 0 var(--gutter);
}
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  height: 40px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-family);
  font-size: var(--font-body);
  font-weight: var(--font-weight-button);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none; /* external link 액션은 <a> 태그로 렌더돼 브라우저 기본 밑줄이 붙는다 */
}
.btn--primary {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}
.btn--secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-text-primary);
}
.btn--on-dark.btn--primary {
  background: var(--color-text-inverse);
  color: var(--color-accent);
}
.btn--on-dark.btn--secondary {
  border-color: var(--color-text-inverse);
  color: var(--color-text-inverse);
}

/* ============================================================
   HeroSection
   ============================================================ */
.hero-section {
  position: relative;
  /* 텍스트가 위쪽에, 여백은 아래쪽에(2026-09, 이전엔 반대였음). Figma 스펙은 80px 고정이었지만,
     실제 사이트는 topbar가 sticky + 음수 margin으로 히어로 위에 겹쳐 뜨는 구조라(site-topbar
     margin-bottom: -var(--topbar-height)) 80px 고정이면 topbar 높이(배너·사이트명 길이에 따라
     달라짐)에 따라 헤드라인이 topbar에 가려질 수 있다. topbar 실측 높이 + 여유 40px로 계산
     (기존 20px + 요청으로 20px 추가).
     텍스트 블록 위/중간/아래 위치 조정(2026-09, 에디터의 hero vpos 컨트롤) — --hero-pt/
     --hero-pb/--hero-height는 styleOverrides에 값이 있을 때만 채워지는 커스텀 프로퍼티라,
     아직 그 컨트롤을 안 쓴 기존 히어로는 fallback(기존 동적 계산)이 그대로 적용되어 전혀
     영향이 없다. 실제로 위치를 고르고 나면 세 값이 항상 같이 세팅되어 박스 높이가 상태와
     무관하게 고정된다(template-gallery.html에서 먼저 검증한 수치/방식 그대로 이식). */
  padding-top: var(--hero-pt, calc(var(--topbar-height, 120px) + var(--space-40)));
  padding-bottom: var(--hero-pb, var(--space-320));
  height: var(--hero-height, auto);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.hero-section__bg {
  position: absolute;
  inset: 0;
  background-color: var(--color-border);
  background-size: cover;
  background-position: center;
  z-index: 0;
}
/* 단색 반투명 오버레이 대신 텍스트가 있는 쪽만 진하고 반대쪽은 투명한 그라디언트(2026-09) —
   텍스트가 있는 쪽은 가독성을 확보하고, 반대쪽은 사진이 원본 그대로 드러나게 한다.
   --color-overlay의 톤별 알파값(modern 0.45 / kitsch 0.35)은 그대로 시작점 색으로 재사용.
   방향은 --hero-gradient-direction으로 텍스트 위치(vpos)에 맞춰 뒤집는다(에디터가 세팅) —
   top이면 위가 진하고(to bottom, 기존 기본값), center/bottom이면 아래가 진하다(to top). */
.hero-section__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--hero-gradient-direction, to bottom), var(--color-overlay) 0%, transparent 100%);
}
.hero-section > *:not(.hero-section__bg) { position: relative; z-index: 1; }
/* bottom 위치일 때만 --hero-content-mt:auto가 들어와 flex 컨테이너 안에서 이 블록을
   아래로 밀어낸다(margin-top:auto 트릭) — height가 고정일 때만 밀어낼 여유가 생긴다. */
.hero-section__content {
  margin-top: var(--hero-content-mt, 0);
  /* 이미지(hero-section__bg)는 그대로, 텍스트+버튼 묶음만 아래→위 페이드인.
     OS "동작 줄이기(prefers-reduced-motion)" 설정과 무관하게 항상 재생(요청에 따름). */
  animation: fade-in-up 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* 2번째 섹션(hero 바로 다음)이 cardGrid/imageSlide/feature일 때만 같은 페이드인 —
   렌더 스크립트(app.js render() / index.html renderCurrentSections())가 조건에 맞을 때만
   래퍼 div에 이 클래스를 붙인다. hero와 달리 로드 즉시가 아니라 스크롤로 실제 뷰포트에
   들어왔을 때 재생(bindSectionRevealOnScroll의 IntersectionObserver가 .is-visible을 붙임) —
   한 번 재생되면 다시 안 붙는다(반복되면 답답하다는 피드백에 따름). */
.section-fade-in-2nd {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.section-fade-in-2nd.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-section .headline-wrapper,
.hero-section .subhead-wrapper {
  color: var(--color-text-inverse);
}
.hero-section .headline-wrapper {
  margin-bottom: calc(var(--space-10) * 1.25); /* 히어로만 타이틀-서브텍스트 간격 1.25배(2026-09, 사용자 요청) */
  font-weight: var(--font-weight-headline-hero);
}
.hero-section .subhead-wrapper { margin-bottom: var(--space-20); }
.hero-section .button-list { margin-top: var(--space-20); }
/* Hero 버튼 기본색 = 플로팅 CTA 버튼과 같은 브랜드 액센트(둘은 색·모서리를 공유하므로 처음부터 통일, 2026-10).
   톤별 --color-hero-button-* 토큰은 더 이상 기본값에 쓰지 않는다 */
.hero-section .btn--primary {
  background: var(--color-brand-accent-1, #ff5000);
  color: var(--color-text-inverse, #fff);
  backdrop-filter: blur(var(--btn-backdrop-blur, 0px));
  -webkit-backdrop-filter: blur(var(--btn-backdrop-blur, 0px));
}
/* 히어로 버튼 뒤 연한 그림자(2026-10, 사용자 요청) — 블러는 작게. 사진 위에서 버튼이 떠 보이게 */
.hero-section .btn {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

/* ============================================================
   ImageTextSection
   구조: 이미지 → headline → subhead. headline/subhead는 공용 Role 클래스 재사용.
   .image-text-section__image-frame은 cta-section__image-frame과 값은 같지만
   의미가 다른 섹션이라 클래스를 공유하지 않는다.
   ============================================================ */
.image-text-section {
  padding: var(--space-40) 0;
}
.image-text-section__image-frame {
  width: 100%;
  aspect-ratio: 400 / 320;
  background-color: var(--color-border);
  background-size: cover;
  background-position: center;
  margin-bottom: var(--space-20);
  clip-path: inset(0 0 1px 0); /* 아래 가장자리 1px을 잘라 서브픽셀 경계선이 비치지 않게 */
}
.image-text-section .headline-wrapper {
  margin-bottom: var(--space-20);
  font-weight: var(--font-weight-headline-section);
}

/* ============================================================
   ImageSlideSection — 순서: 텍스트(headline/body) → 이미지 → 페이지네이션
   (2026-09, 이미지가 먼저였던 구성에서 순서만 변경 — "이미지 앞 20px" 여백 역할이
   본문 쪽(margin-bottom)으로 옮겨갔을 뿐 값 자체는 그대로다). 이미지는 carousel처럼
   가로로 밀려나는 슬라이드 애니메이션, 텍스트(headline/body)는 페이드 인/아웃으로
   전환한다 — 그래서 이미지 트랙(.image-slide-image-track, transform:translateX)과
   텍스트 트랙(.image-slide-text-track, grid-stack + opacity)을 완전히 분리했다.
   번호 페이지네이션은 슬라이드 개수와 무관하게 고정 40px.
   ============================================================ */
.image-slide-section {
  padding: var(--space-40) 0;
}
.image-slide-viewport {
  position: relative; /* 이전/다음 버튼(.image-slide-pagination__controller)을 이미지 우측 하단에 얹기 위함 */
  overflow: hidden;
  touch-action: pan-y; /* 가로 드래그는 JS가 처리, 세로 스크롤은 브라우저에 맡김 */
  cursor: grab;
}
.image-slide-viewport:active {
  cursor: grabbing;
}
.image-slide-image-track {
  display: flex;
  transition: transform 0.4s ease;
}
.image-slide-section__image-frame {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 400 / 280;
  background-color: var(--color-border);
  background-size: cover;
  background-position: center;
}
.image-slide-text-track {
  display: grid; /* 헤드라인/본문을 같은 칸에 겹쳐 쌓아서 페이드 전환 중에도 높이가 안정되게 함 */
}
.image-slide-text-page {
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.image-slide-text-page.is-active {
  opacity: 1;
  pointer-events: auto;
}
.image-slide-section .headline-wrapper {
  margin-bottom: var(--space-20);
  font-weight: var(--font-weight-headline-section);
}
.image-slide-section__body {
  padding: 0 var(--gutter);
  margin-bottom: var(--space-20); /* 본문 → 이미지 간격(예전엔 이미지 자체의 margin-bottom이었음) */
  font-size: var(--font-body);
  font-weight: var(--font-weight-body);
  line-height: var(--line-height);
  color: var(--color-text-primary);
  text-align: var(--align, start);
}

.image-slide-pagination {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  padding: 0 var(--gutter);
  margin-top: var(--space-20); /* 이미지 ↔ 번호 간격(2026-10, 40px → 20px로 절반) */
}
.image-slide-pagination__numbers {
  flex: 1;
  display: flex;
  gap: 4px; /* Figma 실측: PaginationItem 내부 gap은 --space-10(10px)이 아니라 4px */
  justify-content: center; /* 번호는 가운데 정렬 — 이전/다음 버튼은 이미지 안 우측 하단으로 옮겼다(2026-10) */
}
.image-slide-pagination__controller {
  position: absolute;
  right: var(--gutter);
  bottom: var(--space-10);
  display: flex;
  gap: 6px;
}
.image-slide-pagination__controller .icon-btn {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15); /* 이미지 위에서 버튼이 더 잘 보이도록 */
}
.image-slide-pagination__number {
  flex: 0 0 40px;
  width: 40px;
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  height: 40px;
  font-family: var(--font-family);
  font-size: var(--font-body);
  color: var(--color-text-muted);
}
.image-slide-pagination__number.is-active {
  color: var(--color-text-primary);
}

/* ============================================================
   CarouselSection
   ============================================================ */
.carousel-section {
  padding: var(--space-40) 0;
}
.carousel-section .headline-wrapper { margin-bottom: var(--space-20); }

.carousel-slide-wrapper {
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity; /* review와 같은 이유 — 자유 스크롤 대신 카드 경계에 멈추게. mandatory가
    아니라 proximity인 이유도 review와 동일(mandatory는 bindPeekScrollNav의 마우스 드래그를 막음) */
  scrollbar-width: none;
  padding: 0 var(--gutter);
  cursor: grab;
}
.carousel-slide-wrapper:active { cursor: grabbing; }
.carousel-slide-wrapper::-webkit-scrollbar { display: none; }

.carousel-slide {
  display: flex;
  gap: var(--space-10);
}
/* 스크롤 컨테이너의 padding-right는 스펙상 유효해도 실제 브라우저(Chromium 계열)가
   가로 스크롤 끝에서 이 여백을 무시해버려(끝까지 스크롤하면 마지막 카드가 뷰포트에
   딱 붙음) — .carousel-slide-wrapper의 padding만으로는 마지막 카드 옆 여백이 생기지
   않는다. 실제 flex item(가짜 ::after)을 하나 더 넣어야 스크롤 영역에 반영된다.
   gap이 이 spacer 앞에도 적용되므로, 원하는 --gutter만큼만 보이도록 gap만큼 빼서 준다. */
.carousel-slide::after {
  content: '';
  flex: 0 0 calc(var(--gutter) - var(--space-10));
}

/* Widget: Card */
.card {
  flex: 0 0 240px;
  width: 240px;
  overflow: hidden; /* 카드 자체가 라운드+테두리를 가질 수 있어서 상시 클립 (radius:0/border:0이면 시각 영향 없음) */
  border-radius: var(--radius-card);
  border: var(--border-card-width, 0) solid var(--color-border-card, transparent);
  scroll-snap-align: start;
  /* review와 같은 이유 — scroll-padding(컨테이너 기준) 대신 카드 자신에게 scroll-margin을
     줘서 scrollIntoView()가 알아서 여백을 지키게 한다(JS가 offsetLeft를 직접 보정할 필요 없음). */
  scroll-margin-inline-start: var(--space-10);
}
.card:first-child { scroll-margin-inline-start: var(--gutter); }
.card__image-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--color-border);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-image);
}
.card__texts { padding: var(--space-10) var(--card-inset, 0) 0; }
.card-title-wrapper {
  font-size: var(--font-title-card);
  font-weight: var(--font-weight-title);
  line-height: var(--line-height);
  color: var(--color-text-primary);
}
.card-detail-wrapper {
  margin-top: var(--space-10);
  font-size: var(--font-detail);
  line-height: var(--line-height);
  color: var(--color-accent-soft);
}

.carousel-nav-buttons {
  display: flex;
  gap: var(--space-10);
  justify-content: center;
  padding: 0 var(--gutter);
  margin-top: var(--space-20);
}
.icon-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 16px; /* Figma 실측(imageSlide/review) — 완전 원형(pill)이 아니라 둥근 사각형. carousel/cardGrid 등 다른 슬라이드 nav 버튼도 전부 이 모양으로 통일 */
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-primary);
}
/* 더 넘길 카드/슬라이드가 없을 때(2026-09) — carousel/review는 스크롤 끝, imageSlide는
   첫/마지막 페이지에서 JS가 native disabled를 건다. 클릭도 실제로 막히고(브라우저 기본
   동작) 아이콘도 회색으로 바뀌어야 하므로 색만 muted로 바꾼다. */
.icon-btn:disabled {
  color: var(--color-text-muted);
  cursor: default;
}
.icon-btn .icon { font-size: 24px; }

/* ============================================================
   CtaSection
   ============================================================ */
.cta-section {
  padding-top: var(--space-40);
  padding-bottom: 0;
}
.cta-section .headline-wrapper {
  margin-bottom: var(--space-10);
  font-weight: var(--font-weight-headline-section);
}
.cta-section .subhead-wrapper { margin-bottom: var(--space-20); }
.cta-section .button-list { margin-bottom: var(--space-20); }
.cta-section .btn--primary {
  background: var(--color-cta-button-bg, var(--color-accent));
  color: var(--color-cta-button-text, var(--color-text-inverse));
}

.cta-section__image-frame {
  width: 100%;
  aspect-ratio: 400 / 320;
  background-color: var(--color-border);
  background-size: cover;
  background-position: center;
}

/* 아이콘 폰트가 준비되기 전엔 아이콘 이름 글자(keyboard_arrow_left 등)가 일반 글꼴로 드러나므로 투명 처리 —
   components.js 맨 위의 ppIconFontGate가 폰트 로딩이 끝나면 <html>에 pp-icons-ready를 붙인다. 로딩이 실패하면 빈칸으로 남는다. */
html:not(.pp-icons-ready) .icon,
html:not(.pp-icons-ready) .material-symbols-sharp { color: transparent !important; }

.icon {
  font-family: var(--icon-family);
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  display: inline-block;
  -webkit-font-smoothing: antialiased;
  font-variation-settings:
    "FILL" var(--icon-fill),
    "wght" var(--icon-weight),
    "GRAD" var(--icon-grade),
    "opsz" var(--icon-opsz);
}

/* QuoteSection 인용부호 전용 — 테마별 --icon-* 토큰과 무관하게 항상 Sharp/굵게/채움 고정 (Figma 스펙) */
.material-symbols-sharp {
  font-family: "Material Symbols Sharp";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  display: inline-block;
  -webkit-font-smoothing: antialiased;
  font-variation-settings:
    'FILL' 1,
    'wght' 700,
    'GRAD' -25,
    'opsz' 24;
}

.icon-btn--plain {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: inherit;
}

/* ============================================================
   NotificationBanner
   배경색이 톤마다 "브랜드 액센트"일 수도 "중립 잉크색"일 수도 있어서
   (Modern=오렌지 액센트, Kitsch=검정 중립) 전용 시맨틱 토큰으로 분리.
   ============================================================ */
.notification-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-10);
  background: var(--color-notification-bg);
  color: var(--color-text-inverse);
  padding: 2px var(--gutter);
}
.notification-banner__text {
  flex: 1;
  font-size: var(--font-helper);
  line-height: 1.4;
  text-align: center;
  white-space: pre-line;   /* 문장 사이 \n을 줄바꿈으로 */
  word-break: keep-all;    /* 한글을 글자 중간이 아니라 어절 단위로 줄바꿈 */
  text-wrap: balance;      /* 한 줄이 한 글자·한 단어만 남지 않게 줄 길이를 고르게 */
}

/* ============================================================
   Site Topbar (NotificationBanner + Header)
   ============================================================ */
.site-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  margin-bottom: calc(-1 * var(--topbar-height, 120px));
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-40);
  padding: 10px var(--gutter);
  position: relative;
  isolation: isolate;
  color: var(--color-header-text); /* Header 배경이 밝을 수도(Kitsch) 어두울 수도(Modern) 있어서 분리 */
}

/* 상단 바 배경은 두 겹 — ::before는 맨 위에 있을 때의 꽉 찬 반투명 바(+블러), ::after는 스크롤을 내리면 나타나는 그라디언트 바:
   색만 아래로 갈수록 투명해진다(블러 그라디언트는 mask가 안 먹는 브라우저가 있고 띠를 쌓으면 모자이크·CPU 부담이라 뺐다). 둘이 opacity로 교차한다.
   스크롤 여부는 components.js의 bindTopbarMenu가 html에 .pp-scrolled를 붙여 알린다. 로고 밝기에 따른 색은 --color-header-bg가 그대로 따라간다. */
.site-header::before, .site-header::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: -1; pointer-events: none;
  transition: opacity .25s ease;
}
.site-header::before {
  bottom: 0; background: var(--color-header-bg);
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
}
.site-header::after {
  bottom: -28px; opacity: 0; /* 바 아래로 28px 더 번져 경계 없이 사라진다 */
  background: linear-gradient(to bottom, var(--color-header-bg) 0%, transparent 100%);
}
.pp-scrolled .site-header:not(.site-header--menu-only)::before { opacity: 0; }
.pp-scrolled .site-header:not(.site-header--menu-only)::after { opacity: 1; }
.site-header--menu-only::before, .site-header--menu-only::after { display: none; } /* Bio는 배경 자체가 없다 */

/* 로고 밝기 기반 자동 배경 전환(2026-08, app.js의 applyTopbarLuminance가 토글) — blur(15px)는
   .site-header의 backdrop-filter를 그대로 물려받아서 안 건드림(요청사항: 오파시티/블러는 그대로).
   여기 opacity 값(.55/.75)은 임시 추정치 — --color-header-bg의 실제 값(테마 파일)을 보고
   맞춰야 정확함. --color-header-text도 같이 뒤집어서 로고 옆 메뉴 아이콘 색도 항상 잘 보이게 함. */
.pp-topbar--dark-logo .site-header {
  --color-header-bg: rgba(255, 255, 255, .75);
  --color-header-text: #1a1a1a;
}
.pp-topbar--light-logo .site-header {
  --color-header-bg: rgba(0, 0, 0, .55);
  --color-header-text: #ffffff;
}
/* 아직 로고를 재지 못했거나(로딩 전·못 읽음) 판정이 없을 땐 시스템 모드를 따른다 — 라이트면 밝은 Topbar(기본), 다크면 어두운 Topbar. 로고가 있는 Topbar만(Bio의 메뉴 전용 바는 그대로) */
.site-topbar:not([class*="pp-topbar--"]):has(.logo-section) .site-header {
  --color-header-bg: rgba(255, 255, 255, .75);
  --color-header-text: #1a1a1a;
}
@media (prefers-color-scheme: dark) {
  .site-topbar:not([class*="pp-topbar--"]):has(.logo-section) .site-header {
    --color-header-bg: rgba(0, 0, 0, .55);
    --color-header-text: #ffffff;
  }
}

/* 상단 바 우측 묶음(Bio 링크 + 메뉴 버튼) — 메뉴 팝오버는 배경 테마와 무관하게 흰 카드(2026-10) */
.site-header__actions { display: flex; align-items: center; flex-shrink: 0; }
.site-header--menu-only { justify-content: flex-end; } /* Bio 사이트: 로고 없이 메뉴 버튼만 오른쪽 */
.site-header--menu-only.site-header--has-chat { justify-content: space-between; } /* 메시지를 받는 Bio: 왼쪽 말풍선 + 오른쪽 메뉴 — 위·좌·우 여백은 같은 --gutter */
.topbar-menu { position: relative; }
.site-header__actions .icon-btn--plain, .topbar-menu__btn, .site-header__chat { /* 대시보드 카드의 ⋯ 버튼(.db-pagecard__more)과 같은 사각 라운드 유리 버튼 — 세로 점 세 개(2026-10) */
  width: 48px; height: 48px; box-sizing: border-box; border-radius: 16px; color: #2e2e30; box-shadow: 0 8px 24px rgba(20, 22, 26, .16), 0 2px 6px rgba(20, 22, 26, .08); /* 연하고 번지는 그림자(2026-11) */
  background: rgba(255, 255, 255, .7); border: 1px solid #fff; /* 박스는 .7 반투명, 윤곽선은 흰색 그대로 */
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.site-header__actions .icon-btn--plain:hover, .topbar-menu__btn:hover, .site-header__chat:hover { background: rgba(255, 255, 255, .88); }
.site-header__actions .icon-btn--plain svg, .topbar-menu__btn svg, .site-header__chat svg { width: 26px; height: 26px; }
.site-header__actions .topbar-menu__btn svg { width: 20px; height: 20px; } /* ⋯ 점 세 개는 박스(48px)는 그대로, 아이콘만 조금 작게 */
.site-header__actions { gap: 8px; }
/* 일반 페이지 상단바(Bio 제외): 버튼을 한 단계 작게(40px), 스크롤 전에는 박스(배경·윤곽선·그림자·블러)를 숨기고 아이콘만 — 스크롤을 내리면(.pp-scrolled) 박스가 서서히 나타난다(2026-11) */
.site-header:not(.site-header--menu-only) .site-header__actions .icon-btn--plain,
.site-header:not(.site-header--menu-only) .topbar-menu__btn {
  width: 40px; height: 40px; border-radius: 12px; color: inherit;
  background: transparent; border-color: transparent; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: background .2s, border-color .2s, box-shadow .2s, color .2s;
}
.site-header:not(.site-header--menu-only) .site-header__actions .icon-btn--plain svg { width: 22px; height: 22px; }
.site-header:not(.site-header--menu-only) .site-header__actions .topbar-menu__btn svg { width: 18px; height: 18px; }
.pp-scrolled .site-header:not(.site-header--menu-only) .site-header__actions .icon-btn--plain,
.pp-scrolled .site-header:not(.site-header--menu-only) .topbar-menu__btn {
  color: #2e2e30; background: rgba(255, 255, 255, .7); border-color: #fff;
  box-shadow: 0 8px 24px rgba(20, 22, 26, .16), 0 2px 6px rgba(20, 22, 26, .08);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.pp-scrolled .site-header:not(.site-header--menu-only) .site-header__actions .icon-btn--plain:hover,
.pp-scrolled .site-header:not(.site-header--menu-only) .topbar-menu__btn:hover { background: rgba(255, 255, 255, .88); }
html:not(.pp-scrolled) .site-header:not(.site-header--menu-only) .site-header__actions .icon-btn--plain:hover,
html:not(.pp-scrolled) .site-header:not(.site-header--menu-only) .topbar-menu__btn:hover { background: transparent; }
/* Bio 사이트: 상단 바(배경·블러·배너)를 없애고 메뉴 버튼만 떠 있다 — 높이(56px)는 그대로 둬 아래 내용의 위쪽 여백 계산이 유지된다 */
.site-header.site-header--menu-only { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; padding: var(--gutter); } /* 위·오른쪽 여백을 같게 */
.topbar-menu__list {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; min-width: 156px;
  background: #fff; border-radius: 8px; box-shadow: 0 8px 24px rgba(20, 22, 26, .25); padding: 4px;
}
.topbar-menu__list[hidden] { display: none; }
.topbar-menu__item {
  display: block; width: 100%; box-sizing: border-box; padding: 10px 12px; border: 0; border-radius: 5px;
  background: transparent; color: #14161a; font: inherit; font-size: 14px; line-height: 1.3; text-align: left;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.topbar-menu__item:hover, .topbar-menu__item:focus-visible { background: #f2f3f5; outline: none; }
.pp-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 1000; transform: translate(-50%, 8px); padding: 10px 16px; border-radius: 999px;
  background: rgba(20, 22, 26, .92); color: #fff; font: inherit; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.pp-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.logo-section {
  /* 로고 표시창 크기(2026-08): 세로 48px→28px로 줄이고, 가로는 최대 280px까지 허용.
     너비는 max-width라서 강제로 꽉 채우진 않음 — 실제 이미지가 그보다 좁으면 그만큼만 차지함.
     참고: 지금 로고는 크롭 없이 원본 비율대로 들어온다(2026-10) — 높이 36px에 맞춰 폭이 정해지고, 280px를 넘으면 비율대로 줄어듦. */
  height: 36px;
  max-width: 280px;
  min-width: 0;
  display: flex;
  align-items: center;
}
.logo-section img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain; /* 280px보다 더 긴 로고는 잘리거나 찌그러지지 않고 비율대로 줄어든다 */
  object-position: left center;
  display: block;
}

/* 다크 로고(logoDarkSrc)가 있는 Topbar — 평소엔 라이트 로고, OS가 다크일 때만 다크 로고 */
.logo-section .logo-img--dark { display: none; }
@media (prefers-color-scheme: dark) {
  .logo-section .logo-img--light { display: none; }
  .logo-section .logo-img--dark { display: block; }
}

/* ============================================================
   FqaAccordionSection
   ============================================================ */
.faq-section {
  padding: var(--space-40) 0;
  background: var(--color-faq-bg, transparent);
}
.faq-section .headline-wrapper {
  margin-bottom: var(--space-40);
  font-weight: var(--font-weight-headline-section);
}

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  padding: 0 var(--gutter);
}

.accordion {
  background: var(--color-element-bg, #fcfcfe); /* 링크 카드(.link-item)와 같은 요소 배경색 — 테마가 --color-element-bg로 바꿀 수 있다 */
  border-radius: 16px; /* Figma 실측 고정값 — --radius-card는 테마별로 0/24라 스펙과 어긋남 */
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion[open] {
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}
.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.accordion summary::-webkit-details-marker { display: none; }

.accordion-title-wrapper {
  flex: 1;
  font-size: var(--font-title-accordion);
  font-weight: var(--font-weight-title);
  line-height: var(--line-height);
}

.accordion-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion[open] .accordion-icon { transform: rotate(180deg); }

.accordion-body-wrapper {
  padding: 0 var(--gutter) 20px;
  font-size: var(--font-body);
  line-height: var(--line-height);
  color: var(--color-text-muted);
}

/* ============================================================
   QuoteSection
   ============================================================ */
.quote-section {
  background: var(--color-quote-bg);
  padding: var(--space-40) 0;
  color: var(--color-quote-text, var(--color-text-primary));
  text-align: center;
}

.quote-section__icon {
  display: flex;
  justify-content: var(--align, center); /* 정렬 컨트롤과 연동 — 본문과 같이 left/center/right로 이동 */
  padding: 0 var(--gutter);
  margin-bottom: var(--space-10); /* 따옴표-본문 간격: 20→10 */
}
.quote-section__icon .material-symbols-sharp {
  font-size: 45px; /* 56px의 약 0.8배 */
  opacity: 0.45;
  transform: rotate(180deg); /* 기본 글리프는 꼬리가 아래(닫는 따옴표 ”)라 여는 따옴표(“)처럼 보이게 회전 */
}

/* 배경 이미지(2026-10) — review와 같은 절대배치 자식 패턴. 글자색은 applyQuoteImageLuminance()가 붙이는 클래스로 전환. */
.quote-section--image { position: relative; overflow: hidden; }
.quote-section__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.quote-section--image > *:not(.quote-section__bg) { position: relative; z-index: 1; }
.quote-section--on-dark { color: #fff; }
.quote-section--on-light { color: #14161a; }

/* 단색 배경 텍스처(2026-10) — 그레인(노이즈) 하나, on/off. 배경색(인라인 background-color)은 그대로 두고 그 위에 질감만 얹는다.
   이미지 배경(.quote-section--image)에는 적용하지 않는다. */
.quote-section--textured { position: relative; overflow: hidden; }
.quote-section--textured > * { position: relative; z-index: 2; }
.quote-section--textured::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.quote-section--textured::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: overlay; opacity: .9; }

.quote-wrapper {
  /* 좌우 여백은 padding이 아니라 margin — 편집 표시(.pp-editable)가 그리는 텍스트 박스가 다른 섹션처럼 여백 안쪽에 놓이게(2026-10) */
  margin: 0 var(--gutter);
  font-size: var(--font-quote);
  font-weight: var(--font-weight-quote);
  line-height: var(--line-height);
  /* 정렬 컨트롤(2026-08) — 미설정 시 .quote-section의 text-align:center를 그대로 상속 */
  text-align: var(--align, inherit);
}

.quote-detail-wrapper {
  padding: 0 var(--gutter);
}
.quote-author-name {
  font-size: var(--font-body);
  font-weight: 600;
}
.quote-author-title {
  margin-top: var(--space-10);
  font-size: var(--font-detail);
  /* Kitsch 실측: 흰색이 아니라 3번째 액센트 슬롯(연두) — 전용 토큰으로 분리 */
  color: var(--color-quote-author-title);
}

/* ============================================================
   Footer — 소셜 아이콘 모음(중앙) + copyright(은은하게) + Free 배지.
   테마 2종: --dark(어두운 배경 + 어두운 회색 아이콘), --light(밝은 배경 + 밝은 회색 아이콘). 아이콘은 단색 SVG 마스크라 색만 바꿔 쓴다.
   ============================================================ */
.site-footer {
  --footer-bg: #2e2e30;
  --footer-icon: #7e7e80;
  --footer-icon-hover: #a0a0a3;
  --footer-text: #7e7e80;
  --footer-badge-bg: #ffffff;
  --footer-badge-text: #151618;
  background: var(--footer-bg);
  color: var(--footer-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-20);
  text-align: center;
  /* 하단 고정 FloatingCta(있을 때만, app.js가 실제 높이를 --floating-cta-height로 넣음)에 푸터 내용이
     가리지 않게 그 높이만큼 푸터를 아래로 늘린다 — 별도 여백 띠가 아니라 푸터 색이 그대로 이어진다. */
  padding: var(--space-40) var(--gutter) calc(var(--space-40) + var(--floating-cta-height, 0px));
}
.site-footer--light {
  --footer-bg: var(--color-bg, #f2f2f4); /* 다른 섹션의 연한 회색(페이지 배경, 테마 --color-bg) 그대로 */
  --footer-icon: #7e7e80;
  --footer-icon-hover: #5e5e60;
  --footer-text: #7e7e80;
  --footer-badge-bg: #151618;
  --footer-badge-text: #ffffff;
}
.site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-10) var(--space-10);
}
.site-footer__social,
.site-footer__bio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--footer-icon);
  transition: color 0.15s;
}
.site-footer__social:hover,
.site-footer__bio:hover { color: var(--footer-icon-hover); }
.site-footer__icon {
  display: block;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.site-footer__copyright {
  margin: 0;
  font-size: var(--font-detail);
  color: var(--footer-text);
}
.site-footer__badge {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--footer-badge-bg);
  color: var(--footer-badge-text);
  font-size: var(--font-detail);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.site-footer__badge:hover { opacity: 0.85; }
/* 작은 글씨 링크 줄 — About · Policy · Report. 모든 플랜에 항상 표시. 색은 copyright와 같은 은은한 톤 */
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4, 4px) var(--space-10);
  font-size: 12px;
  line-height: 1.4;
}
.site-footer__links a { color: var(--footer-text); text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__links a + a::before { content: '·'; margin-right: var(--space-10); display: inline-block; text-decoration: none; }

/* Bio 소셜 아이콘 줄(ProfileSocials, 2026-10) — 푸터에서 떼어낸 독립 섹션. 아이콘 모양은 .site-footer__social/.site-footer__icon을 그대로 쓰고 색만 여기서 정한다
   (라이트 푸터와 같은 회색, 어두운 페이지 배경이면 밝게). 비어 있으면 여백까지 통째로 숨긴다 — 에디터는 + 버튼이 들어가 비지 않는다. */
.profile-socials__list {
  --footer-icon: #7e7e80;
  --footer-icon-hover: #5e5e60;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-10);
  padding: 20px 0;
}
.profile-socials__list:empty { display: none; }
.pp-page--on-dark .profile-socials__list { --footer-icon: #b4b4b8; --footer-icon-hover: #e6e6e8; }

/* Widget: HorizontalRule (Role 없음, 구조 요소) — FeatureSection/StatSection이 공유 */
.horizontal-rule {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-40) var(--gutter);
}

/* 편집기에서 Enter로 넣은 줄바꿈("\n")이 화면/발행 페이지에서도 줄바꿈으로 보이게(2026-10) —
   기본값(normal)은 개행을 공백으로 접어버린다. pre-line은 개행만 살리고 연속 공백은 그대로 접는다. */
[data-pp-instance] :is(h1, h2, h3, p, small, blockquote),
:is(h1, h2, h3, p, small, blockquote)[data-pp-instance], /* 텍스트 태그 자체에 속성이 붙은 경우(상단 배너·플로팅 CTA·인용문 등) */
span[data-pp-field] {
  white-space: pre-line;
}

/* Divider 섹션(2026-10, 사용자 요청: 2px #E1E1E1) — 색은 토큰 없이 스펙 값 그대로 */
.divider-section {
  padding: var(--space-20) var(--gutter);
}
.divider-section__line {
  height: 2px;
  background: #E1E1E1;
}

/* ============================================================
   FeatureSection
   신규 토큰: --font-title-feature (FeatureTitle, 20px Regular) — type-scale.css에 등록됨
   ============================================================ */
.feature-section {
  padding: var(--space-40) 0;
}

/* Widget: FeatureCard — title/body + icon(선택), 텍스트/아이콘 중앙정렬 디폴트 */
.feature-card {
  padding: 0 var(--gutter);
  text-align: center;
}
/* FeatureCard 아이콘 — 테마별 --icon-* 토큰과 무관하게 지금은 고정 스펙(Outlined/wght200/GRAD0/opsz48).
   추후 테마 토큰(--icon-family 등)으로 전환 예정 — 그때는 이 블록만 var(--icon-*)로 교체하면 됨. */
.feature-card__icon {
  margin-bottom: var(--space-20);
}
.feature-card__icon .icon {
  font-family: "Material Symbols Outlined";
  font-size: 48px;
  font-variation-settings:
    "FILL" 0,
    "wght" 200,
    "GRAD" 0,
    "opsz" 48;
}
.feature-title-wrapper {
  font-size: var(--font-title-feature);
  font-weight: var(--font-weight-title);
  line-height: var(--line-height);
  color: var(--color-text-primary);
  margin-bottom: var(--space-10);
}
.feature-body-wrapper {
  font-size: var(--font-body);
  line-height: var(--line-height);
  color: var(--color-text-muted);
}

/* ============================================================
   ReviewSection — 배경 전체에 사업 성격에 맞는 인물 사진(Hero와 동일한
   절대배치 자식 .review-section__bg 패턴), 그 위에 이미지 위 중앙 정렬
   헤드라인 + 유리질감(반투명) 리뷰 카드 캐러셀. 카드 240px+peek 스크롤은
   carousel과 동일해 .carousel-nav-buttons/.icon-btn을 그대로 재사용한다.
   ============================================================ */
.review-section {
  position: relative;
  padding: var(--space-40) 0;
  overflow: hidden;
}
.review-section__bg {
  position: absolute;
  inset: 0;
  background-color: var(--color-border);
  background-size: cover;
  background-position: center;
  z-index: 0;
}
/* 섹션 위쪽 경계가 사진 그대로 뚝 끊기지 않도록 흰색 → 투명 그라디언트를 상단 40%에만 깔아
   위 섹션(흰 배경)과 자연스럽게 이어지게 한다 — hero의 어두운 오버레이(.hero-section__bg::after)와
   같은 패턴, 색만 흰색으로. */
.review-section__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, transparent 40%);
}
.review-section > *:not(.review-section__bg) { position: relative; z-index: 1; }
.review-section .headline-wrapper { margin-bottom: var(--space-40); }
.review-slide-wrapper {
  padding: 0 var(--gutter);
  overflow-x: auto;
  scroll-behavior: smooth;
  /* mandatory는 드래그 도중에도 계속 가장 가까운 카드로 되돌리려고 해서 마우스 드래그(아래 JS,
     bindPeekScrollNav)가 안 먹는 것처럼 걸렸다 — proximity는 스크롤이 멈출 때만 가까우면
     스냅해서, 카드 경계 앵커는 유지하면서 드래그도 자연스럽게 된다. */
  scroll-snap-type: x proximity;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}
.review-slide-wrapper:active { cursor: grabbing; }
.review-slide-wrapper::-webkit-scrollbar { display: none; }
.review-slide {
  display: flex;
  gap: var(--space-10);
}
/* carousel-slide와 동일한 이유(브라우저가 스크롤 끝 padding-right를 무시함)로
   가짜 flex item을 붙여 마지막 카드 옆에도 --gutter만큼 여백이 남게 한다. */
.review-slide::after {
  content: '';
  flex: 0 0 calc(var(--gutter) - var(--space-10));
}
.review-card {
  flex: 0 0 240px;
  width: 240px;
  height: 280px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: var(--space-20);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(2px); /* 반투명 카드 뒤로 배경 사진이 그대로 비쳐 텍스트 가독성이 떨어지던 것 보정 */
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid #ffffff;
  border-radius: 16px; /* Figma 실측 고정값 — --radius-card는 테마별로 0(modern)/24(kitsch)라 여기 쓰면 스펙과 어긋남 */
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
  scroll-margin-inline-start: var(--space-10);
}
.review-card:first-child { scroll-margin-inline-start: var(--gutter); }
.review-card__stars {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-20);
}
/* 리뷰 별 크기 12px → 15px(1.25배, 2026-10) — SVG width/height 속성(12)을 CSS가 덮어쓴다 */
.review-card__star { width: 15px; height: 15px; }
.review-card__star-bg { fill: var(--color-text-muted); }
.review-card__star-fill { fill: var(--color-text-primary); }
.review-card__body-wrapper {
  flex: 1;
  overflow: hidden;
  font-family: "Roboto Serif", serif;
  font-size: var(--font-body);
  line-height: var(--line-height);
  color: #2e2e30;
  margin-bottom: var(--space-10);
}
.review-card__author-wrapper {
  font-size: var(--font-detail);
  color: var(--color-text-primary);
}
/* review의 nav 버튼은 사진 배경 위에 떠 있어서 carousel/cardGrid/imageSlide가 쓰는
   불투명 .icon-btn(--color-surface, --color-border)과 다르게 review-card와 같은
   유리질감(반투명 흰색 + 흰 테두리)이어야 한다(Figma 실측, 테마 토큰 무관 고정값). */
.review-section .icon-btn {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-color: #ffffff;
  color: #1f1f1f;
}
.review-section .icon-btn:disabled {
  background: rgba(255, 255, 255, 0.4);
  border-color: transparent;
  color: rgba(31, 31, 31, 0.4); /* Figma 실측: 색 자체는 활성(#1f1f1f)과 같고 opacity만 0.4 */
}

/* ============================================================
   MapSection — 실제 지도 API 연동 전 자리표시자(구조 검토용 1차 구현)
   ============================================================ */
.map-section {
  padding: var(--space-40) 0;
}
.map-section .headline-wrapper { margin-bottom: var(--space-20); padding: 0 var(--gutter); }
.map-section__placeholder {
  margin: 0 var(--gutter);
  aspect-ratio: 4 / 3;
  background: var(--color-surface-muted);
  border-radius: var(--radius-image);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-section__placeholder { overflow: hidden; }
.map-section__frame { width: 100%; height: 100%; border: 0; display: block; }
.map-section__placeholder .icon {
  font-size: 40px;
  color: var(--color-text-muted);
}
.map-section__address-wrapper {
  margin-top: var(--space-10);
  padding: 0 var(--gutter);
  font-size: var(--font-body);
  color: var(--color-text-muted);
}

/* ============================================================
   YouTubeSection — 유튜브 임베드(16:9). 링크가 없을 땐 자리표시자(재생 아이콘)
   ============================================================ */
.youtube-section {
  padding: var(--space-40) 0;
}
.youtube-section__player {
  margin: 0 var(--gutter);
  aspect-ratio: 16 / 9;
  background: var(--color-surface-muted);
  border-radius: var(--radius-image);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 세로형(쇼츠)은 9:16을 그대로 쓰면 너무 길어져서, 프레임은 4:5로 낮추고 폭을 넓힌 뒤 가운데 정렬(영상은 프레임 안에서 좌우 여백을 두고 재생) */
.youtube-section--portrait .youtube-section__player { aspect-ratio: 4 / 5; width: 80%; margin: 0 auto; }
.youtube-section__frame { width: 100%; height: 100%; border: 0; display: block; }
.youtube-section__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  cursor: pointer;
  /* 배경(surface-muted)이 페이지 바탕색과 같아 프레임이 안 보이므로, 살짝 어두운 면 + 옅은 테두리로 가로 프레임을 드러낸다 */
  background: rgba(20, 22, 26, 0.04);
  box-shadow: inset 0 0 0 1px rgba(20, 22, 26, 0.12);
  border-radius: inherit;
}
.youtube-section__placeholder:hover { background: rgba(20, 22, 26, 0.07); }
.youtube-section__logo { width: 72px; height: 72px; display: block; opacity: 0.5; }
.youtube-section__placeholder:hover .youtube-section__logo { opacity: 0.7; }

/* ============================================================
   FloatingCta — 섹션 흐름 밖, 화면 하단에 항상 고정되는 문의 바
   (구조 검토용 1차 구현 — production app.js에는 아직 연결 안 함)
   ============================================================ */
/* 처음엔 숨겨져 있다가(2026-09) 스크롤을 30px쯤 내리면 페이드인 — One Page·One CTA 원칙상
   히어로의 CTA 버튼이 화면에 보이는 동안은 굳이 또 하나(플로팅)를 겹쳐 보여줄 필요가 없고,
   히어로를 지나 스크롤하면 그제서야 "항상 붙어있는 CTA"로 넘겨받는 느낌을 주려는 것.
   .is-visible 토글은 app.js(프로덕션)/editor 양쪽 다 같은 클래스명으로 스크롤 리스너가
   붙인다. */
/* Figma 실측(2026-09) — 진한 단색 필 대신 화면 맨 아래에 딱 붙는 반투명 화이트 유리질감
   바로 교체. 위/아래 패딩이 비대칭(8 위 / 24 아래)인 건 기기 하단 세이프에어리어 여백을
   바 안쪽에 미리 넣어둔 것으로 읽혀서(스펙에 별도 바깥 여백 지정이 없음), 바 자체를
   화면 아래 끝에 딱 붙이고(bottom:0) 그 여백으로 대신했다. 모서리 반경도 스펙에 값이
   없어 각짐(0)으로 — 기존 필/버튼의 --radius-pill과는 별개로 이 바만 각짐. */
.floating-cta {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(8px);
  width: 100%;
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  padding: 8px 14px 24px 14px;
  background: rgba(255, 255, 255, 0.5);
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.5); /* 상단 경계선만 — 좌우·하단은 화면 가장자리라 선 불필요 */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.floating-cta.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.floating-cta__text {
  font-size: 16px; /* --font-helper(14px, 상단 배너와 공용)와 별개로 이 텍스트만 16px 고정 요청 —
    editor의 인라인 편집 스케일 트릭(applyNoZoomScale)은 16px 이상이면 안 걸리는데, 여기(site)는
    편집 기능이 없어 애초에 해당 없음. editor/components/components.css와 값만 맞춤. */
  color: var(--color-text-primary); /* 배경이 밝아져서(반투명 화이트) 흰 글자였던 예전 값은 이제 안 보임 — 어두운 텍스트로 전환 */
  flex: 1;
}
/* 버튼은 사이트 기본 액센트(--color-accent, 톤마다 다름)가 아니라 항상 브랜드 오렌지
   고정(Figma #ff5000) — hero/cta 섹션의 .btn--primary 스코프 오버라이드와 같은 패턴.
   모서리는 히어로 버튼과 같은 기본 pill(.btn의 --radius-pill). "버튼색"/"모서리 둥근정도" 편집 옵션은 topbar
   배너색과 같은 방식(요소에 직접 inline style)으로 이 두 규칙을 덮어쓴다. */
.floating-cta .btn--primary {
  background: var(--color-brand-accent-1, #ff5000);
}

/* ============================================================
   StatSection
   신규 토큰: --font-stat-value (StatValue, 48px), --font-stat-unit (StatUnit, 48px)
   theme-*.css 각 톤 파일에 두 토큰 값 추가 필요.
   font-weight은 기존 토큰 재사용: value=--font-weight-headline(Bold), unit=--font-weight-body(Regular)
   ============================================================ */
.stat-section {
  padding: var(--space-40) 0;
}

/* Widget: StatCard */
.stat-card {
  padding: 0 var(--gutter);
}
.stat-metric-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-20);
}
.stat-value-wrapper {
  font-size: var(--font-stat-value);
  font-weight: var(--font-weight-headline);
  line-height: var(--line-height);
  color: var(--color-text-primary);
}
.stat-unit-wrapper {
  font-size: var(--font-stat-unit);
  font-weight: var(--font-weight-body);
  line-height: var(--line-height);
  color: var(--color-text-primary);
}
.stat-body-wrapper {
  font-size: var(--font-body);
  line-height: var(--line-height);
  color: var(--color-text-muted);
}
/* ============================================================
   CardGridSection — 4개씩 페이지 단위로 렌더되는 2x2 그리드.
   carousel의 .card와는 폭/이미지 비율이 달라 별도 클래스를 쓴다.
   ============================================================ */
.card-grid-section {
  padding: var(--space-40) 0;
}
.card-grid-section .headline-wrapper { margin-bottom: var(--space-20); }

.card-grid-track {
  padding: 0 var(--gutter);
  display: grid; /* 모든 페이지를 같은 칸에 겹쳐 쌓아서, 컨테이너 높이가 항상 가장 큰 페이지 기준으로 고정되게 함 */
}
.card-grid-page {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10) var(--space-10);
  visibility: hidden;
  pointer-events: none;
}
.card-grid-page.is-active {
  visibility: visible;
  pointer-events: auto;
}

.card-grid__item {
  overflow: hidden;
  border-radius: var(--radius-card);
  border: var(--border-card-width, 0) solid var(--color-border-card, transparent);
}
.card-grid__image-frame {
  width: 100%;
  aspect-ratio: 4 / 3; /* 원래 181/140(Figma 실측 px)이었는데 스키마가 정한 4:3과 ~3% 어긋나
    업로드 크롭 비율과 실제 표시 비율이 살짝 달랐다(2026-09) — 스키마 기준으로 정확히 맞춤. */
  background-color: var(--color-border);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-image);
}
.card-grid__texts { padding: var(--space-10) var(--card-inset, 0) 0; }
.card-grid__title-wrapper {
  font-size: var(--font-title-card);
  font-weight: var(--font-weight-title);
  line-height: var(--line-height);
  color: var(--color-text-primary);
}
.card-grid__body-wrapper {
  margin-top: var(--space-10);
  font-size: var(--font-detail);
  line-height: var(--line-height);
  color: var(--color-accent-soft);
}

/* ============================================================
   팝업 / 드로어 공용 오버레이
   ============================================================ */
.pp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.pp-overlay--drawer {
  align-items: stretch;
  justify-content: flex-start;
}
.pp-overlay__panel {
  position: relative;
  padding: 6px 6px 24px 6px;
  background: var(--color-surface, #fff);
  border-radius: 32px;
  max-width: 400px;
  width: calc(100% - 40px);
  max-height: 80vh;
  overflow-y: auto;
  text-align: center;
}
.pp-overlay--drawer .pp-overlay__panel {
  border-radius: 0;
  max-width: 320px;
  width: 80%;
  max-height: 100%;
  height: 100%;
  text-align: left;
}
.pp-overlay__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--color-surface-muted, #f2f2f4);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.popup-content__media {
  position: relative;
  margin-bottom: var(--space-20);
}
.popup-content__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--color-border, #e5e5e5);
  background-size: cover;
  background-position: center;
  border-radius: 28px 28px 0 0;
}
.popup-content__close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 36px;
  height: 36px;
  border: none;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.popup-content__headline { margin-bottom: var(--space-10); }
.popup-content__body { color: var(--color-text-muted); line-height: var(--line-height); margin-bottom: var(--space-20); }
.popup-content__buttons { display: flex; gap: var(--space-10); justify-content: center; }
.ext-notice { padding: 40px 20px 0; }
.ext-notice .popup-content__body { margin-bottom: var(--space-20); }
.ext-notice__host { margin-top: var(--space-10); font-weight: var(--font-weight-headline); color: var(--color-text-primary); word-break: break-all; }

.drawer-content__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  margin-bottom: var(--space-20);
}
.drawer-content__name p { font-weight: var(--font-weight-headline); font-size: var(--font-lead); margin-bottom: var(--space-10); }
.drawer-content__bio p { color: var(--color-text-muted); margin-bottom: var(--space-40); }
.drawer-content__links { display: flex; flex-direction: column; gap: var(--space-20); }
.drawer-content__links a { color: var(--color-text-primary); text-decoration: none; font-size: var(--font-body); }



/* ── ProfilePage (Bio/link-in-bio) ── */
.profile-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 배경은 두지 않는다(투명) — 맨 뒤 배경(--color-bg, 기본 테마 #F2F2F4)이 그대로 비친다 */
  padding: var(--topbar-height, 120px) 32px 0; /* Topbar의 음수 margin(겹침 트릭)을 상쇄 — Hero와 달리 흰 배경 콘텐츠라 안 겹쳐야 함. 좌우 여백도 여기서 한 번만 관리 */
  box-sizing: border-box;
}

.profile-page__avatar {
  width: 120px;
  height: 120px;
  margin-top: 40px;
  margin-bottom: 40px;
  border-radius: 36px;
  background-size: cover;
  background-position: center;
  /* 흰 4px 아웃라인(레이아웃 크기는 그대로인 링)과 그림자로 배경 위에 떠 보이게 한다 */
  box-shadow: 0 0 0 4px #fff, 0 8px 20px rgba(20, 22, 26, 0.16);
}

.profile-page__name {
  font-size: 20px; /* 글자 크기 옵션은 이 칸(wrapper)의 font-size를 바꾼다 — 안쪽 p는 상속 */
  width: 100%;
  
  text-align: left;
  margin-bottom: 10px;
}

.profile-page__name p {
  font-size: inherit;
  font-weight: 500;
  line-height: 145%;
  color: #2E2E30;
  margin: 0;
}

.profile-page__role {
  font-size: 16px; /* 글자 크기 옵션은 이 칸(wrapper)의 font-size를 바꾼다 — 안쪽 p는 상속 */
  width: 100%;
  text-align: left;
}

.profile-page__role p {
  font-size: inherit;
  font-weight: 400;
  line-height: 145%;
  color: #2E2E30;
  margin-bottom: 10px;
}

.profile-page__divider {
  width: 100%;
  height: 1px;
  background: #e9e9eb;
  margin-top: 10px;
  margin-bottom: 20px;
}

.profile-page__description {
  font-size: 16px; /* 글자 크기 옵션은 이 칸(wrapper)의 font-size를 바꾼다 — 안쪽 p는 상속 */
  width: 100%;
  text-align: left;
}

.profile-page__description p {
  font-size: inherit;
  font-weight: 400;
  line-height: 145%;
  color: #000000;
  margin: 0;
}

.profile-page__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* Info/Links 두 블록 사이 간격(40px)과 페이지 맨 끝 여백(80px)을 여기서 통째로 관리(2026-08) —
   blockOrder로 두 블록 순서가 바뀌어도 항상 같은 위치(사이/끝)에 같은 값이 적용되게. */
.profile-page__body {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  padding-bottom: 80px;
}

/* ── Link item card ── */
.link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px; /* 테두리 1px을 더해 카드 높이는 예전(6px 패딩)과 같다 */
  background: rgba(255, 255, 255, .6); /* 반투명 + 배경 블러(2026-10) — 어떤 페이지 배경색 위에서도 카드로 보인다(어두운 배경은 아래 .pp-page--on-dark에서 흰 반투명으로) */
  border: 1px solid rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: 16px;
  text-decoration: none;
  box-sizing: border-box;
}

.link-item__icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.link-item__icon--og,
.link-item__icon--favicon {
  background-size: cover;
  background-position: center;
}
.link-item__icon--favicon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.link-item__icon--fallback .icon {
  font-size: 24px;
  color: var(--color-text-primary);
}

.link-item__texts {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 20px; /* 글이 오른쪽 버튼·가장자리에 붙지 않고 조금 일찍 …으로 잘려서 우측 여백이 넉넉해 보이게(2026-10) */
}
.link-item__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-primary); /* FAQ 제목과 같은 글자색 */
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-item__desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-muted); /* FAQ 본문과 같은 보조 글자색 */
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-item__url {
  font-size: 12px;
  font-weight: 400;
  color: #a6a6a8;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 링크 항목의 제목·설명·주소는 항상 한 줄(넘치면 …) — 파일 아래쪽의 "줄바꿈 보존" 규칙(white-space: pre-line, 특이도 0,1,1)이 위 .link-item__title 등(0,1,0)의
   nowrap을 덮어써서 긴 글이 여러 줄로 늘어나던 것을 막는다(2026-10). 특이도를 한 단계 올려 이긴다. */
.link-item .link-item__title,
.link-item .link-item__desc,
.link-item .link-item__url {
  white-space: nowrap;
}

.link-item__menu {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary);
  cursor: pointer;
}

/* ── Profile 위젯 3종(2026-10) — 예전 .profile-page의 여백을 위젯 단위로 나눠 가진다 ──
   위쪽: topbar 바로 다음 위젯이 topbar 높이(음수 margin 겹침)를 상쇄한다. 사진 아래 40px(아바타 margin), 이름·소개와 링크 사이 40px,
   페이지 맨 끝 80px — 순서를 바꾸거나 가로선을 끼워도 같은 여백 규칙이 따라간다. */
.profile-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px; /* 배경 없음(투명) — 맨 뒤 배경이 비친다 */
  box-sizing: border-box;
}
.profile-name { padding-bottom: 0; } /* 이름·역할 아래는 Divider(자체 위아래 20px)나 소개가 이어받는다 */
.profile-bio { padding-bottom: 20px; } /* 링크 칸이 위 20px을 가져 합쳐서 40px */
.profile-links { padding-top: 20px; padding-bottom: 20px; } /* 위아래 대칭 */
.profile-name > div, .profile-bio > div { width: 100%; }
.profile-bio__divider { width: 100%; padding: var(--space-20) 0; } /* Bio 위젯 안의 가로선(이름·역할과 소개 사이) — 좌우 여백은 위젯이 이미 가진다 */
.site-topbar + div > .profile-widget { padding-top: var(--topbar-height, 120px); }
#app > div:last-child > .profile-widget { padding-bottom: 40px; } /* 푸터 없이 맨 끝일 때(에디터 미리보기) — 위쪽 간격(40px)과 같게 */
#app > div:has(> .profile-links):has(+ div > .site-footer) > .profile-links { margin-bottom: 20px; } /* 링크 칸 자체는 위아래 20px 대칭이고, 푸터가 바로 이어질 때만 칸 밖으로 20px를 더 띄워 푸터와의 간격을 소개~링크 간격(40px)과 맞춘다 */
/* topbar 바로 다음이 Profile 위젯이 아닐 때(가로선·다른 섹션이 맨 위로 온 경우)도 topbar 아래로 내려오게 */
.site-topbar + div > .divider-section { margin-top: var(--topbar-height, 120px); }
.profile-name .profile-page__name,
.profile-name .profile-page__role,
.profile-bio .profile-page__name,
.profile-bio .profile-page__role,
.profile-bio .profile-page__description { text-align: var(--align, left); } /* 글자 팝오버의 정렬(좌/중/우) 연동 */

/* FeedGridSection(2026-10) — 3열 × 3행, 타일은 세로 3:4(업로드 크롭 비율과 동일) */
.feed-grid-section { padding: var(--space-20) 0; } /* 피드는 양옆 여백 없이 꽉 채운다 */
.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.feed-grid__image-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: var(--color-border);
  background-size: cover;
  background-position: center;
}
.site-topbar + div > .feed-grid-section { margin-top: var(--topbar-height, 120px); }
/* Profile 페이지 안의 Divider는 Profile 위젯과 같은 좌우 여백(32px)을 쓴다(9그리드는 좌우 여백 0). 섹션 배경은 전부 투명 — 맨 뒤 배경만 색을 가진다 — 안 맞추면 띠처럼 색이 달라 보이고 선이 카드보다 넓다 */
#app:has(.profile-widget) .divider-section { padding-left: 32px; padding-right: 32px; }

/* ── Bio 페이지 배경색(2026-10) — ppApplyPageBg(components.js)가 .page/#app에 --pp-pagebg와 pp-pagebg, 밝기에 따라 pp-page--on-dark/on-light를 건다.
   --color-bg를 이 요소 안에서만 바꿔 라이트 푸터처럼 페이지 배경을 따라가는 요소도 같이 움직인다. 어두운 배경이면 글자·가로선·링크 카드를 뒤집는다. ── */
.pp-pagebg { --color-bg: var(--pp-pagebg); background: var(--pp-pagebg); }
.pp-page--on-dark { --color-text-primary: #ffffff; --color-text-muted: rgba(255, 255, 255, .72); }
.pp-page--on-dark .profile-page__name p,
.pp-page--on-dark .profile-page__role p,
.pp-page--on-dark .profile-page__description p { color: #ffffff; }
.pp-page--on-dark .link-item { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .16); }
.pp-page--on-dark .link-item__url { color: rgba(255, 255, 255, .5); }
.pp-page--on-dark .link-item__icon--fallback .icon { color: #2e2e30; } /* 썸네일 타일은 흰색 그대로(파비콘이 어두운 로고여도 보이게) — 기본 아이콘은 어두운 색 유지 */
.pp-page--on-dark .divider-section__line { background: rgba(255, 255, 255, .22); }
.pp-page--on-dark .site-footer--light { --footer-icon: #b4b4b8; --footer-icon-hover: #e6e6e8; --footer-text: #b4b4b8; --footer-badge-bg: #ffffff; --footer-badge-text: #151618; }
/* 콘텐츠가 짧아 .page의 min-height가 남을 때, 마지막이 어두운 푸터면 남는 하단도 푸터 색으로 채운다(라이트 배경이 비쳐 보이던 것 방지) */
#app:has(> div:last-child > .site-footer--dark) { display: flex; flex-direction: column; }
#app > div:last-child:has(> .site-footer--dark) { flex: 1; display: flex; flex-direction: column; }
#app > div:last-child > .site-footer--dark { flex: 1; }

/* ============================================================
   다크 모드(2026-11) — OS가 다크일 때 우리가 정한 다크 팔레트로 표시한다. <meta name="color-scheme" content="light dark">를 같이 선언해
   안드로이드(Galaxy 등)의 브라우저 강제 반전을 끄고 이 값만 쓰게 한다(선언이 없으면 브라우저가 색을 제멋대로 뒤집는다).
   원칙: 뒤집는 것은 중립색(배경 회색/흰색·글자·테두리·중립 버튼/카드)뿐 — 브랜드 오렌지, 이미지, 사용자가 고른 색은 그대로.
   - 사용자가 Bio 배경색을 직접 고른 Page(.pp-pagebg)는 건드리지 않는다(위 .pp-page--on-dark/on-light 규칙이 담당).
   - 토큰은 body(.theme-modern)가 아니라 .page에 건다: theme-modern.css의 var() 참조 토큰(--color-quote-text 등)은 body에서 값이 확정되므로
     라이트 값이 유지되어, 주황 배너/Quote 위 어두운 글자가 뒤집히지 않는다.
   - 팝업(.pp-overlay)은 <body>에 직접 붙어 .page 밖이라 같은 토큰을 따로 건다.
   ============================================================ */
@media (prefers-color-scheme: dark) {
  .page:not(.pp-pagebg),
  .pp-overlay {
    --color-bg: #121214;
    --color-surface: #1c1c1f;
    --color-surface-muted: #26262a;
    --color-element-bg: #1c1c1f;           /* 아코디언·링크 카드 같은 요소 배경 */
    --color-text-primary: #f2f2f4;
    --color-text-muted: #9b9ba1;
    --color-border: #34343a;
    --color-accent: #f2f2f4;               /* 중립 버튼(어두운 버튼 → 밝은 버튼) */
    --color-cta-button-bg: #f2f2f4;
    --color-cta-button-text: #141414;
  }
  .page:not(.pp-pagebg) { color: var(--color-text-primary); }

  /* 버튼: 중립 primary는 글자도 같이 뒤집는다(배경만 뒤집으면 흰 글자가 밝은 버튼에 묻힌다). 브랜드 오렌지 버튼(히어로·플로팅)은 흰 글자 유지 */
  .pp-overlay .btn--primary { color: #141414; }
  .page:not(.pp-pagebg) .hero-section .btn--primary,
  .page:not(.pp-pagebg) .floating-cta .btn--primary { color: #fff; }

  /* 하드코딩된 중립색 */
  .page:not(.pp-pagebg) .accordion[open] { background: #26262a; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45); }
  .page:not(.pp-pagebg) .divider-section__line { background: rgba(255, 255, 255, .16); }

  /* Footer: 어두운 푸터는 한 단계 밝게, 밝은 푸터는 페이지 배경을 따라 어두워지고 배지만 뒤집는다 */
  .page:not(.pp-pagebg) .site-footer--dark { --footer-bg: #1c1c1f; }
  .page:not(.pp-pagebg) .site-footer--light {
    --footer-icon: #8c8c92;
    --footer-icon-hover: #c8c8cc;
    --footer-text: #8c8c92;
    --footer-badge-bg: #f2f2f4;
    --footer-badge-text: #151618;
  }

  /* Review */
  .page:not(.pp-pagebg) .review-section__bg::after { background: linear-gradient(to bottom, rgba(18, 18, 20, 0.9) 0%, transparent 40%); }
  .page:not(.pp-pagebg) .review-card { background: rgba(30, 30, 34, 0.6); border-color: rgba(255, 255, 255, .12); box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35); }
  .page:not(.pp-pagebg) .review-card__body-wrapper { color: #e6e6e8; }
  .page:not(.pp-pagebg) .review-section .icon-btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .16); color: #f2f2f4; }
  .page:not(.pp-pagebg) .review-section .icon-btn:disabled { background: rgba(255, 255, 255, .06); color: rgba(242, 242, 244, .4); }

  /* YouTube 빈 자리, 하단 고정 Action Button 바(반투명 흰 유리 → 반투명 어두운 유리) */
  .page:not(.pp-pagebg) .youtube-section__placeholder { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
  .page:not(.pp-pagebg) .youtube-section__placeholder:hover { background: rgba(255, 255, 255, .1); }
  .page:not(.pp-pagebg) .floating-cta { background: rgba(24, 24, 27, 0.6); border-top-color: rgba(255, 255, 255, .1); }

  /* Bio 페이지. 링크 썸네일 타일(.link-item__icon)은 흰색 그대로 — 어두운 파비콘/로고가 사라지지 않게 */
  .page:not(.pp-pagebg) .profile-page__avatar { box-shadow: 0 0 0 4px #121214, 0 8px 20px rgba(0, 0, 0, 0.5); }
  .page:not(.pp-pagebg) .profile-page__name p,
  .page:not(.pp-pagebg) .profile-page__role p,
  .page:not(.pp-pagebg) .profile-page__description p { color: #f2f2f4; }
  .page:not(.pp-pagebg) .profile-page__divider { background: rgba(255, 255, 255, .14); }
  .page:not(.pp-pagebg) .link-item { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .1); }
  .page:not(.pp-pagebg) .link-item__url { color: #8a8a90; }
  .page:not(.pp-pagebg) .profile-socials__list { --footer-icon: #b4b4b8; --footer-icon-hover: #e6e6e8; }

  /* Bio 상단 우측 칩(메뉴·말풍선): 페이지 배경 위에 얹히는 흰 유리 → 어두운 유리 */
  .page:not(.pp-pagebg) .site-header--menu-only .site-header__actions .icon-btn--plain,
  .page:not(.pp-pagebg) .site-header--menu-only .topbar-menu__btn,
  .page:not(.pp-pagebg) .site-header--menu-only .site-header__chat {
    color: #f2f2f4;
    background: rgba(44, 44, 48, .7);
    border-color: rgba(255, 255, 255, .14);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4), 0 2px 6px rgba(0, 0, 0, .3);
  }
  .page:not(.pp-pagebg) .site-header--menu-only .site-header__actions .icon-btn--plain:hover,
  .page:not(.pp-pagebg) .site-header--menu-only .topbar-menu__btn:hover,
  .page:not(.pp-pagebg) .site-header--menu-only .site-header__chat:hover { background: rgba(64, 64, 70, .85); }

  /* 일반 페이지 상단 우측 버튼(Bio 링크·메뉴): 스크롤하면 나타나는 흰 유리 박스를 어두운 유리로(Bio 칩과 같은 값). 스크롤 전엔 박스 없이 아이콘만이라 그대로 둔다 */
  .pp-scrolled .page:not(.pp-pagebg) .site-header:not(.site-header--menu-only) .site-header__actions .icon-btn--plain,
  .pp-scrolled .page:not(.pp-pagebg) .site-header:not(.site-header--menu-only) .topbar-menu__btn {
    color: #f2f2f4;
    background: rgba(44, 44, 48, .7);
    border-color: rgba(255, 255, 255, .14);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4), 0 2px 6px rgba(0, 0, 0, .3);
  }
  .pp-scrolled .page:not(.pp-pagebg) .site-header:not(.site-header--menu-only) .site-header__actions .icon-btn--plain:hover,
  .pp-scrolled .page:not(.pp-pagebg) .site-header:not(.site-header--menu-only) .topbar-menu__btn:hover { background: rgba(64, 64, 70, .85); }
}

/* 다크 모드 — meta(color-scheme)와 같은 선언을 CSS에도 둔다: 삼성 인터넷이 meta만으로는 자체 강제 다크를 못 끄는 경우가 있어 보강(효과는 기기에서 확인 필요) */
:root { color-scheme: light dark; }

/* 다크 모드 — 발행 페이지 전용: 모바일 폭에서 콘텐츠가 짧을 때 비쳐 보이는 body 배경, PC 프레임 밖 기본 배경(사용자가 --pp-backdrop을 안 골랐을 때만) */
@media (prefers-color-scheme: dark) {
  body.theme-modern { background-color: #121214; }
}
@media (prefers-color-scheme: dark) and (min-width: 501px) {
  html:not([style*="--pp-backdrop"]) body { background-color: #0a0a0b !important; }
  .page:not(.pp-pagebg) { box-shadow: 0 20px 120px rgba(0, 0, 0, 0.5); }
}

/* PC 우측하단 QR(2026-11) — ppQrCornerApply(components.js)가 만든다. 보이고 숨기는 건 JS가 폭·포인터로 정한다([hidden]).
   박스는 상단 바 아이콘 버튼(.topbar-menu__btn)과 같은 유리 스타일(흰색 .7 + 흰 윤곽선 + 블러 + 번지는 그림자) 위에 QR(어두운 점)만 얹는다.
   클릭을 가로채지 않는 게 기본(발행 페이지), 에디터에서만 눌러지는 요소(--editable). */
.pp-qrcorner { position: fixed; right: 24px; bottom: 24px; z-index: 40; box-sizing: border-box; padding: 12px; border-radius: 20px; background: rgba(255, 255, 255, .7); border: 1px solid #fff; box-shadow: 0 8px 24px rgba(20, 22, 26, .16), 0 2px 6px rgba(20, 22, 26, .08); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); pointer-events: none; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.pp-qrcorner[hidden] { display: none; }
.pp-qrcorner__code { display: block; width: 112px; height: 112px; }
.pp-qrcorner__label { display: block; margin-top: 6px; font-size: 11px; font-weight: 500; line-height: 1.2; text-align: center; white-space: nowrap; color: #6b7078; } /* 회색 안내 글 — 흰 유리 박스 위라 어두운 회색 */
.pp-qrcorner__off { display: none; }
.pp-qrcorner--off .pp-qrcorner__label { display: none; }
/* 다크 모드: 프레임 밖 배경이 거의 검정이라 흰색 .7 유리는 회색으로 가라앉아 QR 대비·회색 글씨가 약해진다 — 박스를 더 불투명한 흰색으로(점은 그대로 어두운 색 = 표준 구조) */
@media (prefers-color-scheme: dark) {
  .pp-qrcorner:not(.pp-qrcorner--off) { background: rgba(255, 255, 255, .9); box-shadow: 0 8px 24px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .3); }
  .pp-qrcorner__label { color: #5d636d; }
}
.pp-qrcorner--off { width: 136px; height: 136px; display: flex; align-items: center; justify-content: center; background: transparent; border: 1px dashed rgba(20, 22, 26, .45); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; opacity: .7; }
.pp-qrcorner--off[hidden] { display: none; }
.pp-qrcorner--off .pp-qrcorner__code { display: none; }
.pp-qrcorner--off .pp-qrcorner__off { display: block; font-size: 12px; font-weight: 600; color: #14161a; }
.pp-qrcorner--editable { pointer-events: auto; cursor: pointer; }
.pp-qrcorner--editable:hover, .pp-qrcorner--editable:focus-visible { outline: 2px solid #ff5000; outline-offset: 3px; }
