/* =========================================================
   어반트리 스터디카페 — 공통 스타일
   Figma 기준 프레임 1920px. 값은 clamp(모바일, vw, 1920 기준값)으로 비례 축소.
   ========================================================= */

@font-face {
  font-family: "Leferi Point Special";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2201-2@1.0/LeferiPoint-SpecialA.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* 색상: Figma 기본 4색 + 불투명도 */
  --c-ink: #333333;    /* 푸터 배경·진한 면 전용. 글자에는 쓰지 않음 */
  --c-text: #555555;   /* 모든 글자의 기본색 (검정 대신) */
  --c-green: #34A568;
  --c-bg: #EDEDED;
  --c-warn: #FF9900;
  --c-red: #EB4C46;
  --c-white: #FFFFFF;
  --c-tint: rgba(51, 51, 51, 0.05);   /* 섹션 배경 (#E5E5E5) */
  --c-line: rgba(51, 51, 51, 0.2);    /* 구분선 */
  --c-sub: rgba(85, 85, 85, 0.75);    /* 보조 텍스트 = #555 의 75% (시안 실측 #797979) */
  --c-faint: rgba(85, 85, 85, 0.5);
  --c-on-dark: rgba(237, 237, 237, 0.75);

  /* 타이포 */
  --f-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --f-serif: "Leferi Point Special", "Nanum Myeongjo", serif;
  --fs-sm: clamp(13px, 0.7292vw, 14px);
  --fs-body: clamp(16px, 0.875vw, 16.8px);
  --fs-lg: clamp(17px, 1.0208vw, 19.6px);
  --fs-post-h2: clamp(21px, 1.3125vw, 25.2px);
  --fs-cta: clamp(19px, 1.6042vw, 30.8px);
  --fs-h1: clamp(30px, 2.625vw, 50.4px);
  --fs-page-title: clamp(25px, 2.3333vw, 44.8px);
  --fs-section: clamp(34px, 2.9167vw, 56px);

  /* 레이아웃 */
  --gutter: clamp(20px, 3.6458vw, 70px);
  --maxw: 1204px;        /* 콘텐츠 최대 폭 (Figma 1720 × 0.7) */
  --maxw-inset: 1064px;  /* 본문 들여쓰기 영역 최대 폭 (Figma 1520 × 0.7) */
  --inset: clamp(20px, 7.2917vw, 140px);
  --header-h: round(clamp(64px, 4.4479vw, 85.4px), 1px);
  --crumbs-h: round(clamp(36px, 2.1875vw, 42px), 1px);
  --btn-h: round(clamp(44px, 2.5521vw, 49px), 1px);

  /* 모서리: Figma radius + 60% smoothing (squircle.js 가 path 로 적용) */
  --r-lg: clamp(20px, 1.1667vw, 22.4px);
  --r-md: clamp(12px, 0.5833vw, 12px);
  --smoothing: 0.6;

  /* 선 두께: 1920 기준 2px → 작은 화면 1px */
  --bw: 1px;          /* 채워진 도형의 연한 테두리 (기기 픽셀에 맞춰 선명하게 1px 고정) */
  --bw-outline: 1px;  /* 외곽선 버튼 */
  --lw: 1px;                                 /* 구분선 */
  --stroke-light: rgba(255, 255, 255, 0.2);  /* 어두운·컬러 면 위 연한 테두리 */
  --stroke-dark: rgba(51, 51, 51, 0.2);      /* 밝은 면 위 연한 테두리 */
}

/* 테두리 변수는 자식에게 상속되지 않게 (탭 안쪽 버튼 등에 번지지 않도록) */
@property --sq-stroke { syntax: "*"; inherits: false; }
@property --sq-stroke-w { syntax: "*"; inherits: false; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--c-bg); }
/* 페이지 바깥(바운스로 드러나는 곳) 색: 펼친 푸터 쪽(아래 절반)에 있을 때는 푸터 색 → 맨 아래 바운스에도 이음새 없음.
   html 에 색이 있어야 body 색이 캔버스로 번지지 않음. 토글은 common.js initFooterFold */
html.is-footer-end { background: var(--c-ink); }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--c-green); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { padding-inline: max(var(--gutter), (100% - var(--maxw)) / 2); }
.wrap-inset { padding-inline: max(var(--inset), (100% - var(--maxw-inset)) / 2); }
.serif { font-family: var(--f-serif); font-weight: 700; color: var(--c-text); letter-spacing: -0.03em; }

/* ---------- 모서리 (squircle) ---------- */
/* 스크립트가 모양을 계산하기 전에도 크기·위치가 같도록: 테두리(border)는 쓰지 않고,
   일반 둥근 모서리 + 안쪽 그림자 선으로 먼저 그린 뒤 squircle() 이 같은 자리에 스무스 모서리를 덮는다.
   (레이아웃이 바뀌지 않으므로 페이지 전환 뒤에 튀지 않음) */
[data-sq] { position: relative; border: 0; border-radius: var(--r, var(--r-md)); --sq-c: var(--sq-stroke, transparent); }
[data-sq]:not([style*="--sq-ring"]) { box-shadow: inset 0 0 0 var(--sq-stroke-w, 0px) var(--sq-c); }
/* 테두리: squircle() 이 계산한 고리 모양(--sq-ring)으로 ::before 를 잘라 테두리 색을 칠함 */
[data-sq]::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: var(--sq-c);
  clip-path: var(--sq-ring, inset(50%));
  transition: background-color .25s;
}
html.sq-on [data-sq]:focus-visible { outline: none; --sq-c: var(--c-green); }

/* ---------- 버튼 ---------- */
.btn {
  --r: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: var(--btn-h);
  padding-inline: clamp(18px, 1.0938vw, 21px);
  border: 0;
  background: none;
  font-size: var(--fs-body);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.btn--outline { --sq-stroke: var(--c-text); --sq-stroke-w: var(--bw-outline); color: var(--c-text); }
.btn--outline:hover { background: rgba(51, 51, 51, 0.05); }
.btn--solid { --sq-stroke: var(--stroke-light); --sq-stroke-w: var(--bw); background: var(--c-text); color: var(--c-bg); }
.btn--solid:hover { background: var(--c-ink); }

/* ---------- 심볼 아이콘 ----------
   site/assets/icons/*.svg 는 scripts/icons.mjs 가 24×24 프레임에 정규화한 것
   (선 두께 통일, 무게중심 = 프레임 중심). 프레임 크기만 지정하고 위치 보정은 하지 않는다. */
.sym {
  display: inline-block; flex: none;
  width: var(--sym-size, 1.5em); height: var(--sym-size, 1.5em);
  background: currentColor;
  -webkit-mask: var(--ico) center / 100% 100% no-repeat;
          mask: var(--ico) center / 100% 100% no-repeat;
}

/* ---------- 상단 띠배너 ---------- */
.banner {
  display: flex; align-items: center; gap: .5em;
  min-height: clamp(36px, 2.6979vw, 51.8px);
  padding-block: 8px;
  border-bottom: var(--lw) solid var(--c-line);
  font-size: var(--fs-sm);
  color: var(--c-text);
}
.banner a { display: flex; gap: .6em; min-width: 0; }
.banner .banner__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.banner .banner__date { flex: none; }
.banner a:hover .banner__text { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 헤더 ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  background: var(--c-bg);
}
.header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
}
/* 로고: 심볼 + 글리프 (+ 베리에이션 이름). --h = 로고 높이. 비율은 원래 logo.svg(260×61) 그대로.
   베리에이션 그림(정사각 아트보드 2084, 심볼 높이 1219 = 58.5%)은 심볼 자리 중심에 겹쳐 그림 → 장식이 넘쳐도 레이아웃 그대로 */
.logo { --h: 30px; display: inline-flex; align-items: center; gap: calc(var(--h) * 18 / 61); height: var(--h); min-width: 0; color: inherit; text-decoration: none; }
.logo__sym { position: relative; flex: none; width: calc(var(--h) * 65 / 61); height: var(--h); }
.logo__sym img { position: absolute; display: block; max-width: none; }
.logo__base { inset: 0; width: 100%; height: 100%; }
.logo__art { left: 50%; top: 50%; width: calc(var(--h) * 2084 / 1219); height: calc(var(--h) * 2084 / 1219); transform: translate(-50%, -50%); object-fit: contain; }
.logo.is-event .logo__base { visibility: hidden; }
.logo__word { display: block; height: var(--h); width: auto; }
/* 문구: 글리프와 같은 줄에 — 글자 기준선을 글리프 기준선(logo.svg 의 y 46.36/61)에 맞춤. 0.145em = Pretendard 의 줄 아래 ~ 기준선 (line-height 1) */
.logo__event { align-self: flex-end; margin-bottom: calc(var(--h) * 14.64 / 61 - .145em); min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: max(12px, calc(var(--h) * .4)); line-height: 1; font-weight: 500; color: rgba(85, 85, 85, .5); white-space: nowrap; letter-spacing: -.01em; }
.logo__event:empty { display: none; }
.header__logo { --h: clamp(30px, 2.224vw, 42.7px); }
.header__nav { display: flex; align-items: center; gap: clamp(12px, 1.0938vw, 21px); }
.header__nav > a:not(.btn) { font-size: var(--fs-body); color: var(--c-text); }
.header__nav > a:not(.btn):hover { color: var(--c-green); }
.header__nav > a[aria-current="page"]:not(.btn) { font-weight: 600; }
.header__nav .btn + .btn { margin-left: calc(-1 * clamp(12px, 1.0938vw, 21px) + clamp(8px, 0.5833vw, 11.2px)); }
.header__menu-btn { display: none; }
.header.is-scrolled { box-shadow: 0 var(--lw) 0 var(--c-line); }

/* ---------- 브레드크럼 ---------- */
.crumbs {
  /* 상단 바 바로 아래에 붙어서 함께 남는 경로 스트립 */
  position: sticky; top: var(--header-h); z-index: 19;
  background: var(--c-bg);
  view-transition-name: site-crumbs;
  border-block: var(--lw) solid var(--c-line);
  font-size: var(--fs-sm);
  color: var(--c-text);
}
.crumbs .wrap { display: flex; align-items: center; gap: .5em; height: var(--crumbs-h); white-space: nowrap; overflow: hidden; }
.crumbs #crumb-current { display: inline-block; }
/* 게시글: 제목이 화면 위로 사라지면 경로 옆에 "· 제목" 표시 (post.js 가 .is-shown 토글) */
.crumb-title {
  min-width: 0; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .3s, transform .45s cubic-bezier(0.22, 1, 0.36, 1);
}
.crumb-title::before { content: "·"; margin-right: .5em; }
.crumb-title.is-shown { opacity: 1; transform: none; }
.crumb-title:empty { display: none; }
/* 본문 제목 1 을 지나면 "/ 제목 1" (긴 경우 글 제목부터 줄어들고, 이 부분은 최대 45%) */
.crumb-section { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.crumb-section::before { content: "/"; margin-right: .5em; }
.crumb-section:empty { display: none; }
.crumb-section.is-changing { animation: crumb-in .45s cubic-bezier(0.22, 1, 0.36, 1); }
.crumbs #crumb-current.is-changing { animation: crumb-in .45s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes crumb-in { from { opacity: 0; transform: translateY(6px); } }
/* 경로 스트립이 있는 페이지는 헤더 그림자 대신 스트립의 선을 씀 */
body:has(.crumbs) .header.is-scrolled { box-shadow: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 섹션 공통 ---------- */
.section { padding-block: clamp(64px, 4.375vw, 84px); }
.section--tint { background: var(--c-tint); }
.section__title { font-size: var(--fs-section); line-height: 1.2; text-align: center; }
.section__foot { display: flex; justify-content: center; margin-top: clamp(40px, 3.6458vw, 70px); }

/* ---------- 사진 ---------- */
.photo {
  --r: var(--r-lg);
  --sq-stroke: var(--stroke-light);
  --sq-stroke-w: var(--bw);
  overflow: hidden;
  background: var(--c-text);
}
.photo img, .photo video { width: 100%; height: 100%; object-fit: cover; }
.photo--4x3 { aspect-ratio: 4 / 3; }

/* ---------- 이미지 슬라이드 (한 프레임 안에서 넘김) ----------
   밀어서 넘기기(스크롤 스냅) · 화살표(마우스가 있을 때) · 점 표시. 동작은 common.js initSliders */
.slider { position: relative; }
.slider__track {
  position: absolute; inset: 0; display: flex;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; outline: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > img { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.slider__nav {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: clamp(34px, 2.2vw, 42px); height: clamp(34px, 2.2vw, 42px);
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: rgba(237, 237, 237, .88); color: var(--c-text); cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2);
  opacity: 0; transition: opacity .2s, background-color .2s;
}
.slider__nav svg { width: 52%; height: 52%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.slider__nav:hover { background: var(--c-white); }
.slider__nav--prev { left: clamp(10px, .9vw, 17px); }
.slider__nav--next { right: clamp(10px, .9vw, 17px); }
.slider:hover .slider__nav, .slider__nav:focus-visible { opacity: 1; }
.slider .slider__nav:disabled { opacity: 0; pointer-events: none; }
@media (hover: none) { .slider__nav { display: none; } }
.slider__dots {
  position: absolute; left: 50%; bottom: clamp(10px, .9vw, 17px); z-index: 3; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 99px;
  background: rgba(0, 0, 0, .22); pointer-events: none;
}
.slider__dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .5); transition: width .3s cubic-bezier(0.22, 1, 0.36, 1), background-color .3s; }
.slider__dots i.is-on { width: 16px; background: var(--c-white); }
.slider__cap { margin-top: .75em; font-size: var(--fs-sm); color: var(--c-sub); min-height: 1.5em; }

/* ---------- 나란히 놓인 이미지 목록 ('더 알아보기' 카드처럼 옆으로 넘겨 봄) ----------
   본문 오른쪽 끝을 넘어 화면 끝까지 이어지고, 끝까지 넘기면 마지막 사진이 본문 오른쪽 선에 맞음 */
main { overflow-x: clip; }
.gallery {
  display: flex; gap: clamp(10px, .9115vw, 17.5px);
  margin-right: calc(50% - 50vw); padding: 2px calc(50vw - 50%) 2px 0;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.doc .gallery, .faq__a .gallery { margin-right: calc(50% - 50vw); }   /* 본문의 margin 초기화보다 우선 */
.gallery__item { flex: 0 0 clamp(220px, 40%, 380px); margin: 0; scroll-snap-align: start; }
.doc .gallery__item, .doc .gallery__item + * { margin-top: 0; }
.gallery__item figcaption { margin-top: .5em; font-size: .875em; color: var(--c-sub); }
/* 단계 설명 (steps): 사진을 조금 더 크게(Figma 714 × 0.7 = 500), 왼쪽 위에 흰 번호 배지
   배지 Figma 64 · 여백 24 · 모서리 12 (× 0.7), 사진 폭에 비례해 줄어듦 */
.gallery--steps { gap: clamp(10px, 1.0938vw, 15px); }
.gallery--steps .gallery__item { flex-basis: clamp(240px, 47%, 500px); container-type: inline-size; }
.gallery--steps .photo { position: relative; }
.step-no {
  --r: 8px;
  --sq-stroke: rgba(51, 51, 51, .2); --sq-stroke-w: var(--bw);
  position: absolute; left: clamp(10px, 3.4cqw, 17px); top: clamp(10px, 3.4cqw, 17px);
  display: grid; place-items: center;
  width: clamp(30px, 9cqw, 45px); aspect-ratio: 1;
  background: #fff; color: var(--c-text);
  font-size: clamp(15px, 4.5cqw, 22.5px);
}
.step-no > span {
  display: grid; place-items: center;
  width: 1.55em; aspect-ratio: 1; border: .15em solid currentColor; border-radius: 50%;   /* 원 = 배지의 60% (Figma 38/64) */
  font-size: .78em; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
}

/* ---------- 홈: 히어로 ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: var(--gutter);
  padding-block: clamp(32px, 3.0625vw, 58.8px) clamp(48px, 2.9167vw, 56px);
}
.hero__copy { padding-left: clamp(0px, 4.375vw, 84px); }
.hero__title { font-size: var(--fs-h1); line-height: 1.38; }
.hero__sub { margin-top: clamp(20px, 2.3333vw, 44.8px); color: var(--c-text); line-height: 1.3; }
.hero__cta { margin-top: clamp(28px, 1.6771vw, 32.2px); }
.hero .photo { aspect-ratio: 817 / 600; }

/* ---------- 세그먼트 탭 ---------- */
.seg {
  --r: var(--r-md);
  --sq-stroke: var(--stroke-dark);
  --sq-stroke-w: var(--bw);
  display: inline-flex; gap: clamp(2px, 0.1458vw, 2.8px); padding: clamp(4px, 0.2188vw, 4.2px);
  background: none;
}
.seg button {
  --r: calc(var(--r-md) - 3px);
  min-height: calc(var(--btn-h) - 8px);
  padding-inline: clamp(16px, 1.3125vw, 25.2px);
  border: 0; background: none; cursor: pointer;
  font-size: var(--fs-body); font-weight: 600; color: var(--c-sub);
  white-space: nowrap;
}
.seg button { position: relative; z-index: 1; transition: color .3s; }
.seg button[aria-selected="true"] { color: var(--c-text); }
/* 선택 표시: 버튼 아래에서 미끄러지는 흰 판 (위치·크기는 plans-ui.js 가 지정) */
.seg__thumb {
  --r: calc(var(--r-md) - 3px);
  --sq-stroke: rgba(51, 51, 51, 0.25);
  --sq-stroke-w: var(--bw);
  position: absolute; top: 0; left: 0; z-index: 0;
  background: var(--c-white);
  transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1), width .5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
/* thumb 가 자리 잡기 전(스크립트 실행 전): 선택된 버튼 자체를 같은 모양으로 표시 */
.seg:not(.is-ready) .seg__thumb { visibility: hidden; }
.seg:not(.is-ready) button[aria-selected="true"] {
  background: var(--c-white);
  border-radius: calc(var(--r-md) - 3px);
  box-shadow: inset 0 0 0 var(--bw) rgba(51, 51, 51, 0.25);
}
.seg-row { display: flex; justify-content: center; margin-top: clamp(20px, 1.0938vw, 21px); }

/* ---------- 요금제 카드 ---------- */
.plans {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(16px, 0.9479vw, 18.2px);
  margin-top: clamp(48px, 3.6458vw, 70px);
}
.plan-set { display: contents; }   /* 홈: --n·--rows 만 전달 */
.plan {
  /* 이름 / 요약 / 항목 n행 / 끝선 을 subgrid 로 공유 → 같은 항목(이용 기한 등)은 옆 카드와 같은 행.
     --n·--rows 는 views.planSet 이 묶음에 적음 */
  display: grid; grid-template-rows: subgrid; grid-row: span var(--rows, 4);
  row-gap: 0; text-align: center;
}
.plan__name {
  padding-bottom: clamp(16px, 1.3125vw, 25.2px);
  border-bottom: var(--bw) solid rgba(51, 51, 51, 0.15);
  font-size: var(--fs-lg); font-weight: 600; color: var(--c-text);
}
/* 인기 요금제(popular): 이름 끝 오른쪽 위에 비스듬히 씌운 금색 왕관. 오른쪽 여백을 되돌려 이름 가운데 정렬은 그대로 */
.crown {
  display: inline-block; width: 1.05em; aspect-ratio: 152.93 / 135.21;
  margin-left: .1em; margin-right: -1.15em; vertical-align: top; position: relative; top: -.42em; /* 줄 높이는 그대로 */
  transform: rotate(16deg); transform-origin: 30% 100%;
  background: linear-gradient(165deg, #F7CF4D 0%, #E3A51F 50%, #C48712 100%);
  -webkit-mask: url(/assets/img/crown.svg) center / contain no-repeat; mask: url(/assets/img/crown.svg) center / contain no-repeat;
}
.plan__summary { padding-top: clamp(28px, 2.1875vw, 42px); font-size: var(--fs-lg); line-height: 1.3; color: var(--c-text); }
.plan__summary strong { font-weight: 700; color: var(--c-text); }
/* 홈 비교: 단위 가격 '₩1,200 / 1시간'. 요약 행 맨 위 */
.plan__unit { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: .35em; margin-bottom: .6em; }
.plan__unit:last-child { margin-bottom: 0; }
.plan__unit-per { font-size: var(--fs-sm); font-weight: 500; color: var(--c-sub); white-space: nowrap; }
.plan__unit-price { font-size: var(--fs-cta); font-weight: 700; line-height: 1.1; color: var(--c-green); }
.plan__end { border-bottom: var(--bw) solid rgba(51, 51, 51, 0.15); }
.checks {
  display: grid; grid-template-rows: subgrid; grid-row: span var(--n, 1); justify-items: center; align-items: start;
  row-gap: clamp(18px, 1.8229vw, 35px);
  margin: 0; padding: clamp(28px, 1.8229vw, 35px) 0 clamp(28px, 2.1875vw, 42px); list-style: none;
  font-size: var(--fs-lg); color: var(--c-text);
}
.checks li { display: flex; align-items: center; gap: .4em; line-height: 1.3; }
.checks li.is-empty { display: block; }
.checks .ico { width: 1.3em; height: 1.3em; flex: none; }
.checks .val { color: var(--c-sub); }
.checks .val::before { content: "·"; margin-inline: .25em; }
.checks li.warn .val { color: var(--c-sub); }
.checks li.warn .val::before { content: none; }

.plan-empty { grid-column: 1 / -1; padding-block: 60px; text-align: center; color: var(--c-sub); }

/* ---------- 홈: 시설 미리보기 (더 알아보기와 같은 가로 줄, 데스크톱은 4장이 콘텐츠 폭에 꽉 참, 사진 1:1) ---------- */
.tour-peek { overflow: hidden; }
.peek-card {
  flex: 0 0 max(220px, (100% - 3 * clamp(12px, 0.9115vw, 17.5px)) / 4);
  display: flex; flex-direction: column;
  color: inherit; text-decoration: none;
  scroll-snap-align: start;
}
.peek-card .photo { aspect-ratio: 1; }
.peek-card .photo img { transition: transform .8s var(--ease-out, ease); }
.peek-card:hover .photo img { transform: scale(1.03); }
.peek-card__name { margin-top: clamp(14px, 1.0417vw, 20px); font-size: var(--fs-cta); line-height: 1.2; }
.peek-card__desc {
  margin-top: .45em; color: var(--c-sub); font-size: var(--fs-body); line-height: 1.5;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}

/* ---------- 더 알아보기 (가로로 넘기는 카드) ----------
   Figma 1920: 카드 620×694, 간격 25, 아이콘 중심 우상단(98,123), 제목 우하단 여백 57/94 → × 0.7 */
.more { overflow: hidden; }
.more__track {
  --pad: max(var(--gutter), (100% - var(--maxw)) / 2);
  display: flex; gap: clamp(12px, 0.9115vw, 17.5px);
  margin-top: clamp(32px, 3.6458vw, 70px);
  padding: 4px var(--pad) 8px;
  scroll-padding-inline: var(--pad);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.more__track::-webkit-scrollbar { display: none; }
.more-card {
  /* 안쪽 요소는 카드 폭 기준(cqw)으로 배치 → 화면 크기와 상관없이 디자인 비율 유지
     Figma 카드 폭 620 기준: 제목 우·좌 여백 57 (9.19%), 하단 94 (15.16%),
     아이콘 중심 우측 98 (15.8%)·상단 123 (19.84%), 아이콘 프레임 ≈ 18.6% */
  --r: var(--r-lg);
  --sq-stroke: var(--stroke-light);
  --sq-stroke-w: var(--bw);
  container-type: inline-size;
  flex: 0 0 clamp(236px, 22.6042vw, 434px);
  aspect-ratio: 620 / 694;
  color: var(--c-bg);
  background: linear-gradient(180deg, var(--top), var(--bot));
  scroll-snap-align: start;
  transition: transform .5s var(--ease-out, ease), filter .3s;
}
.more-card::after { /* 그레인 질감 */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light; opacity: .55;
}
.more-card > * { position: absolute; z-index: 1; }
.more-card:hover { transform: translateY(-4px); filter: brightness(1.04); }
.more-card__icon { --sym-size: 18.6cqw; right: calc(15.8cqw - 9.3cqw); top: calc(19.84cqw - 9.3cqw); }
.more-card__title {
  /* 잉크(실제 글자) 기준 디자인 값: 우 9.19% · 하 15.16% → 글자 박스 여백만큼 보정 */
  left: 9.19cqw; right: 8.7cqw; bottom: 13.38cqw;
  font-size: 11.35cqw; font-weight: 600; line-height: 1.19; text-align: right; letter-spacing: -0.055em;
}
.more-card--blue   { --top: #5E9AF5; --bot: #3773CE; }
.more-card--green  { --top: #75B186; --bot: #4E8A5F; }
.more-card--orange { --top: #EFAC5B; --bot: #C98635; }
.more-card--gray   { --top: #6E6E6E; --bot: #474747; }

/* ---------- FAQ ---------- */
.faq { margin-top: clamp(40px, 3.6458vw, 70px); border-top: 0; }
.faq > details { border-bottom: var(--lw) solid rgba(51, 51, 51, 0.3); }
.faq > details > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: clamp(56px, 3.6458vw, 70px);
  padding-inline: calc(var(--inset) - var(--gutter) + clamp(0px, 1.82vw, 35px));
  list-style: none; cursor: pointer;
  font-size: var(--fs-body); font-weight: 600; color: var(--c-text);
}
.faq > details > summary::-webkit-details-marker { display: none; }
.faq > details > summary svg { width: 1.2em; height: 1.2em; flex: none; transition: transform .25s; }
.faq > details[open] > summary { border-bottom: var(--lw) solid rgba(51, 51, 51, 0.3); }
.faq > details[open] > summary svg { transform: rotate(180deg); }
.faq > details > .faq__a {
  padding: clamp(20px, 1.4583vw, 28px) calc(var(--inset) - var(--gutter) + clamp(0px, 1.82vw, 35px));
  color: var(--c-text);
}

/* ---------- 본문 (게시글·FAQ 공용) ---------- */
.rich { line-height: 1.5; color: var(--c-text); }
.rich > * + * { margin-top: 1.5em; }
.rich strong { font-weight: 700; }
.rich a { color: var(--c-green); text-decoration: underline; text-underline-offset: 3px; }
.rich h2 { margin-top: 2.6em; font-size: var(--fs-post-h2); font-weight: 700; line-height: 1.3; }
.rich h2 + * { margin-top: 1em; }
.rich ul, .rich ol { padding-left: 1.5em; }
.rich ol ol { list-style: lower-alpha; margin-top: 0; }
.rich ul ul, .rich ol ul { margin-top: 0; }
.rich li { padding-left: .15em; }
.rich blockquote {
  display: flex; gap: .6em; margin: 1.5em 0 0;
  font-weight: 700; color: var(--c-text);
}
.rich blockquote::before {
  content: ""; flex: none; width: 1.3em; height: 1.3em; margin-top: .1em;
  background: var(--c-faint);
  -webkit-mask: url("../icons/quote.svg") center / 100% 100% no-repeat;
          mask: url("../icons/quote.svg") center / 100% 100% no-repeat;
}
.rich > * + .rich-img { margin-top: 2em; }
.rich .rich-img figcaption { margin-top: .75em; font-size: var(--fs-sm); color: var(--c-sub); text-align: center; }

/* =========================================================
   게시글 본문 (.doc) — 노션 블록과 같은 구성·비율
   노션 기준(본문 16px): 블록 간격 ≈ 7px(0.44em), 줄간 1.5,
   H1 1.875em / H2 1.5em / H3 1.25em (위 여백 2em / 1.4em / 1em, 굵기 600),
   인용 1.2em + 왼쪽 3px 막대, 콜아웃 16px 안쪽 여백, 코드 85% 고정폭,
   목록 들여쓰기 1.7em, 할 일 상자 16px, 표 칸 7px 9px.
   색은 노션 9색 이름 그대로, 사이트 배경(#EDEDED) 위에서 보이도록 배경색은 반투명.
   ========================================================= */
.doc {
  --gap: .44em;
  --mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", var(--f-sans);
  line-height: 1.5; color: var(--c-text);
}
.doc > *, .toggle__body > *, .callout__body > * { margin: 0; }
.doc > * + *, .toggle__body > * + *, .callout__body > * + * { margin-top: var(--gap); }
.doc p.empty { min-height: 1.5em; }
.doc strong { font-weight: 700; }
.doc em { font-style: italic; }
.doc u { text-underline-offset: .2em; }
.doc s { color: var(--c-sub); }
.doc a:not(.btn):not(.bookmark):not(.file):not(.cta) { color: inherit; text-decoration: underline; text-decoration-color: rgba(51, 51, 51, .4); text-underline-offset: .2em; }
.doc a:not(.btn):not(.bookmark):not(.file):not(.cta):hover { color: var(--c-green); text-decoration-color: currentColor; }
.doc mark { color: inherit; border-radius: 3px; padding: 0 .1em; }
.doc code {
  font-family: var(--mono); font-size: .85em; line-height: normal;
  padding: .2em .4em; border-radius: 4px;
  background: rgba(135, 131, 120, .15); color: #EB5757;
}

/* 제목 */
.doc .h1, .doc .h2, .doc .h3 { font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; }
.doc .h1 { font-size: 1.875em; margin-top: calc(2em / 1.875); }
.doc .h2 { font-size: 1.5em;   margin-top: calc(1.4em / 1.5); }
.doc .h3 { font-size: 1.25em;  margin-top: calc(1em / 1.25); }
.doc > :first-child { margin-top: 0; }
.doc :is(.h1, .h2, .h3) + * { margin-top: calc(var(--gap) * .5); }

/* 목록 */
.doc ul, .doc ol { padding-left: 1.7em; }
.doc li + li, .doc li > :is(ul, ol) { margin-top: var(--gap); }
.doc li { padding-left: .15em; }
.doc ul { list-style: disc; }
.doc ul ul { list-style: circle; }
.doc ul ul ul { list-style: square; }
.doc ol { list-style: decimal; }
.doc ol ol { list-style: lower-alpha; }
.doc ol ol ol { list-style: lower-roman; }

/* 할 일 */
.doc .todo { list-style: none; padding-left: 0; }
.doc .todo li { display: flex; align-items: flex-start; gap: .5em; padding-left: 0; }
.todo__box {
  flex: none; width: 1em; height: 1em; margin-top: .25em;
  border: 1.5px solid currentColor; border-radius: 3px; cursor: pointer;
  display: grid; place-items: center;
}
.is-done > .todo__box { background: var(--c-green); border-color: var(--c-green); }
.is-done > .todo__box::after {
  content: ""; width: 70%; height: 70%; background: var(--c-white);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3l2.6 2.5L10 3.2' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3l2.6 2.5L10 3.2' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.is-done > .todo__text { color: var(--c-sub); text-decoration: line-through; text-decoration-color: rgba(51, 51, 51, .45); }

/* 토글 */
.doc .toggle summary {
  position: relative; padding-left: 1.6em; list-style: none; cursor: pointer;
}
.doc .toggle summary::-webkit-details-marker { display: none; }
.doc .toggle summary::before {
  content: ""; position: absolute; left: .35em; top: .5em;
  width: .6em; height: .6em; background: currentColor;
  clip-path: polygon(20% 0, 90% 50%, 20% 100%);
  transition: transform .2s;
}
.doc .toggle[open] > summary::before { transform: rotate(90deg); }
.doc .toggle__body { padding-left: 1.6em; margin-top: var(--gap); }

/* 인용 */
.doc blockquote {
  margin-inline: 0; padding-left: .875em;
  border-left: 3px solid currentColor;
  font-size: 1.2em; line-height: 1.5;
}

/* 콜아웃 */
.callout {
  --r: var(--r-md);
  --sq-stroke: rgba(51, 51, 51, .06);
  --sq-stroke-w: var(--bw);
  display: flex; gap: .5em;
  padding: 1em 1em 1em .75em;
}
.callout__icon { flex: none; width: 1.5em; font-size: 1.25em; line-height: 1.2; text-align: center; }
.callout__body { flex: 1; min-width: 0; }
.doc .callout.c-gray-bg { background: rgba(51, 51, 51, .05); }

/* 코드 블록 */
.code {
  --r: var(--r-md);
  --sq-stroke: rgba(51, 51, 51, .06);
  --sq-stroke-w: var(--bw);
  background: rgba(51, 51, 51, .05);
}
.code__bar { display: flex; justify-content: space-between; align-items: center; padding: .6em 1em 0 2em; font-size: .75em; color: var(--c-sub); }
.code__copy { border: 0; background: none; padding: .2em .4em; color: var(--c-sub); cursor: pointer; opacity: 0; transition: opacity .2s; }
.code:hover .code__copy, .code__copy:focus-visible { opacity: 1; }
.code pre { margin: 0; padding: .8em 1em 2em 2em; overflow-x: auto; }
.doc .code code { display: block; padding: 0; background: none; color: var(--c-text); font-size: .85em; line-height: 1.5; tab-size: 2; white-space: pre; }

/* 표 */
.doc .table { overflow-x: auto; }
.doc table { border-collapse: collapse; min-width: 100%; font-size: .9375em; }
.doc th, .doc td { border: 1px solid rgba(51, 51, 51, .14); padding: .45em .6em; text-align: left; vertical-align: top; }
.doc th { background: rgba(51, 51, 51, .04); font-weight: 600; }

/* 이미지·영상 */
.doc figure { margin-inline: 0; }
.doc figure + *, .doc * + figure { margin-top: calc(var(--gap) * 2); }
.doc figcaption { margin-top: .5em; font-size: .875em; color: var(--c-sub); }
.photo--video { aspect-ratio: 16 / 9; }
.photo--video iframe, .photo--video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 북마크 · 파일 · 버튼 */
.bookmark {
  --r: var(--r-md);
  --sq-stroke: rgba(51, 51, 51, .16);
  --sq-stroke-w: var(--bw);
  display: grid; gap: .3em; padding: .85em 1em;
  transition: background-color .2s;
}
.bookmark:hover { background: rgba(51, 51, 51, .04); }
.bookmark__title { font-size: .875em; font-weight: 500; }
.bookmark__desc { font-size: .75em; color: var(--c-sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bookmark__url { font-size: .75em; color: var(--c-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file { display: inline-flex; align-items: center; gap: .4em; padding: .15em .35em; margin-left: -.35em; border-radius: 4px; transition: background-color .2s; }
.file:hover { background: rgba(51, 51, 51, .06); }
.file svg { width: 1.1em; height: 1.1em; flex: none; }
.file__size { font-size: .85em; color: var(--c-sub); }
.doc .doc-btn { margin-top: calc(var(--gap) * 2); }

/* 노션 9색: 글자색 / 배경색 */
.c-gray   { color: #787774; } .c-brown  { color: #9F6B53; } .c-orange { color: #D9730D; }
.c-yellow { color: #CB912F; } .c-green  { color: #448361; } .c-blue   { color: #337EA9; }
.c-purple { color: #9065B0; } .c-pink   { color: #C14C8A; } .c-red    { color: #D44C47; }
.c-gray-bg   { background: rgba(120, 119, 116, .14); } .c-brown-bg  { background: rgba(159, 107, 83, .14); }
.c-orange-bg { background: rgba(217, 115, 13, .14); }  .c-yellow-bg { background: rgba(223, 171, 1, .2); }
.c-green-bg  { background: rgba(68, 131, 97, .14); }   .c-blue-bg   { background: rgba(51, 126, 169, .14); }
.c-purple-bg { background: rgba(144, 101, 176, .14); } .c-pink-bg   { background: rgba(193, 76, 138, .14); }
.c-red-bg    { background: rgba(212, 76, 71, .14); }

/* ---------- 페이지 타이틀 블록 (공지·블로그·신고·문의) ---------- */
.page-head { padding-block: clamp(40px, 2.9167vw, 56px); border-bottom: var(--lw) solid var(--c-line); }
.page-head__title { font-size: var(--fs-page-title); line-height: 1.38; white-space: pre-line; }
.page-head .wrap-inset { padding-left: calc(max(var(--inset), (100% - var(--maxw-inset)) / 2) + clamp(0px, 0.28vw, 5.6px)); }
.meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4em clamp(10px, 0.7292vw, 14px);
  margin-top: clamp(28px, 2.9167vw, 56px);
  font-size: var(--fs-body); color: var(--c-sub);
}
.meta .no { font-weight: 700; color: var(--c-text); }
.tag {
  --r: 999px;
  display: inline-flex; align-items: center; height: 1.6em; padding-inline: .6em;
  border: 1.5px solid var(--c-red); border-radius: 999px;
  font-size: .9em; font-weight: 600; color: var(--c-red);
}
.page-body { padding-block: clamp(40px, 2.5521vw, 49px) clamp(56px, 3.2812vw, 63px); }
.page-divider { border-top: var(--lw) solid var(--c-line); }
.page-head + .page-divider { border-top: 0; }
.page-photo { padding-block: clamp(32px, 2.1875vw, 42px) clamp(48px, 2.1875vw, 48px); }

/* ---------- CTA (신고·문의) ---------- */
.ctas { display: grid; gap: clamp(14px, 1.0938vw, 21px); margin-top: clamp(32px, 2.5521vw, 49px); }
.cta {
  --r: var(--r-md);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: clamp(68px, 5.4688vw, 105px);
  padding-inline: clamp(22px, 2.1875vw, 42px);
  --sq-stroke: var(--stroke-light);
  --sq-stroke-w: var(--bw);
  background: var(--c-green); color: var(--c-bg);
  font-size: var(--fs-cta); font-weight: 600; line-height: 1.25;
  transition: filter .2s;
}
.cta:hover { filter: brightness(1.06); }
.cta .sym { --sym-size: clamp(34px, 2.5vw, 48px); }
.doc .ctas { margin-block: clamp(32px, 2.5521vw, 49px); }   /* 게시글 안 큰 버튼 묶음 (온보딩 등) */
.doc .ctas + * { margin-top: 0; }
.doc > .ctas:first-child { margin-top: 0; }
.doc > .ctas:last-child { margin-bottom: 0; }
.patrol { margin-top: clamp(32px, 2.5521vw, 49px); font-size: var(--fs-body); line-height: 1.3; }
.patrol strong { display: block; font-weight: 700; }
.patrol p + p { margin-top: 1.3em; }

/* ---------- 시설 ---------- */
.facility { border-bottom: var(--lw) solid var(--c-line); scroll-margin-top: calc(var(--header-h) + var(--crumbs-h)); }
.facility .photo { margin-block: clamp(32px, 2.1875vw, 42px); }
.facility__info {
  display: grid; grid-template-columns: auto 1fr; align-items: start;
  column-gap: clamp(20px, 1.8229vw, 35px);
  padding-block: clamp(28px, 2.1875vw, 42px);
  border-top: var(--lw) solid var(--c-line);
}
.facility__name { font-size: var(--fs-page-title); line-height: 1.2; white-space: nowrap; }
.facility__desc { color: var(--c-sub); white-space: pre-line; padding-top: .3em; }
.facility .chips { grid-column: 1 / -1; margin-top: clamp(20px, 1.4583vw, 28px); }
.chips { display: flex; flex-wrap: wrap; gap: 10px clamp(16px, 1.4583vw, 28px); padding: 0; list-style: none; font-size: var(--fs-body); }
.chips li { display: flex; align-items: center; gap: .4em; }
.chips .ico { width: 1.3em; height: 1.3em; flex: none; }

/* ---------- 요금제 목록 페이지 ---------- */
.filters { display: grid; justify-items: center; gap: clamp(14px, 0.875vw, 16.8px); }
.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  --r: var(--r-md);
  --sq-stroke: var(--stroke-dark);
  --sq-stroke-w: var(--bw);
  min-height: clamp(38px, 2.0417vw, 39.2px);
  padding-inline: clamp(14px, 0.875vw, 16.8px);
  border: 0; background: none; cursor: pointer;
  font-size: var(--fs-body); color: var(--c-sub);
}
.chip[aria-pressed="true"] { --sq-stroke: var(--stroke-light); background: var(--c-text); color: var(--c-bg); font-weight: 600; }
.section__title + .filters { margin-top: clamp(24px, 1.6667vw, 32px); }

/* 상위 구분(시간권·기간권·고정석) 한 줄씩. 줄 안은 옆으로 넘겨 봄('더 알아보기'·나란히 놓인 이미지처럼
   본문 오른쪽 끝을 넘어 화면 끝까지). 데스크톱은 한 화면에 3장, 모바일은 2장 + 다음 카드 조금.
   카드끼리 이름/요약/항목/끝선 행은 subgrid 로 맞춤. */
.plan-groups { margin-top: clamp(40px, 3.125vw, 60px); }
.plan-group + .plan-group { margin-top: clamp(56px, 4.1667vw, 80px); }
.plan-group__title {
  padding-bottom: clamp(12px, .9375vw, 18px);
  font-size: var(--fs-lg); font-weight: 700; color: var(--c-text);
}
.plans--row {
  --gap: clamp(16px, 0.9479vw, 18.2px);
  grid-template-columns: none; grid-template-rows: repeat(var(--rows, 4), auto);
  grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--gap)) / 3);
  column-gap: var(--gap);
  /* 가로 스크롤 상자는 위로 넘친 것도 잘라서, 이름 위 왕관 자리만큼 위 여백을 두고 그만큼 끌어올림 */
  padding-top: 14px; margin-top: -14px;
  margin-right: calc(50% - 50vw); padding-right: calc(50vw - 50%);
  scroll-padding-inline: 0;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.plans--row::-webkit-scrollbar { display: none; }
.plans--row > .plan { scroll-snap-align: start; }
.plans-count { margin-top: clamp(28px, 1.8229vw, 35px); text-align: center; font-size: var(--fs-sm); color: var(--c-sub); }

/* ---------- 상태 ---------- */
/* ---------- 오류 페이지 (404) ----------
   Figma 1920 실측 × 0.7: 헤더 선 → 숫자 프레임 143, 숫자 프레임 높이 174(잉크 75%),
   숫자 잉크 → 제목 잉크 90, 제목 → 설명 26, 설명 → 버튼 66, 버튼 181×64, 버튼 → 푸터 144 */
.header[data-line] { box-shadow: 0 var(--lw) 0 var(--c-line); }
.error {
  --dh: clamp(96px, 9.0625vw, 174px);   /* 숫자 SVG 프레임 높이 (80×100) */
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-block: clamp(56px, 7.448vw, 143px) clamp(72px, 7.5vw, 144px);
}
.digits { display: flex; color: var(--c-green); gap: calc(var(--dh) * -0.077); }
.digits__d {
  width: calc(var(--dh) * 0.8); height: var(--dh);
  background: currentColor;
  -webkit-mask: var(--ico) center / 100% 100% no-repeat;
          mask: var(--ico) center / 100% 100% no-repeat;
}
.error__title { margin-top: clamp(28px, 2.865vw, 55px); font-size: var(--fs-h1); line-height: 1.38; text-wrap: balance; }
.error__desc { text-wrap: balance; }
/* 설명 글자 = 제목의 0.49배 (디자인의 제목 대비 설명 폭 1.10 에 맞춤) */
.error__desc { margin-top: clamp(4px, 0.365vw, 7px); font-size: max(15px, var(--fs-h1) * 0.49); color: var(--c-text); }
.error__btn { margin-top: clamp(32px, 3.125vw, 60px); }

/* ---------- 점검 중 (Renew.pdf) ----------
   Figma 1920 실측 × 0.7: 위 여백 225(헤더 없음), 나무 231×216, 나무 → 제목 65, 제목·설명은 404 와 같은 크기,
   설명 → 푸터 218. 나무 색(초록·주황·노랑)은 SVG 그대로. 헤더가 없으므로 화면 높이를 채워 푸터를 아래로 */
body:has(.maint) { display: flex; flex-direction: column; min-height: 100svh; }
body:has(.maint) main { flex: 1; display: grid; place-items: center; }
.maint {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-block: clamp(72px, 11.72vw, 225px) clamp(72px, 11.35vw, 218px);
}
.maint__tree { --w: clamp(150px, 12.03vw, 231px); display: block; width: var(--w); aspect-ratio: 1307 / 1219; position: relative; }
/* 그림은 2084 정사각 틀(나무 1307×1219 가 가운데) → 나무 자리에 맞춰 바깥으로 넓게 깔아 눈·낙엽이 잘리지 않게 */
.maint__tree img { position: absolute; left: 50%; top: 50%; width: calc(var(--w) * 2084 / 1307); max-width: none; height: auto; transform: translate(-50%, -50%); }
/* 시안의 두 줄 그대로: 휴대폰에서도 '페이지를 점검하고 있어요.' 가 한 줄에 들어가게 화면 폭에 맞춰 줄임 */
.maint__title { margin-top: clamp(32px, 3.385vw, 65px); font-size: min(var(--fs-h1), 6.9vw); line-height: 1.38; white-space: nowrap; }
.maint__desc { margin-top: clamp(4px, 0.365vw, 7px); font-size: max(15px, var(--fs-h1) * 0.49); color: var(--c-text); }
.btn--green {
  --sq-stroke: var(--stroke-light); --sq-stroke-w: var(--bw);
  height: round(clamp(48px, 3.3333vw, 64px), 1px);
  gap: clamp(10px, 0.9vw, 17px);
  padding-inline: clamp(18px, 1.5625vw, 30px);
  background: var(--c-green); color: var(--c-bg);
}
.btn--green:hover { filter: brightness(1.05); }
.btn--green .sym { --sym-size: clamp(30px, 2.3vw, 44px); }

/* ---------- 푸터 ---------- */
.footer { background: var(--c-ink); color: var(--c-on-dark); }
/* 접힌 푸터 (common.js initFooterFold): 맨 끝에서 한 번 더 스크롤하면 펼쳐짐. 높이 0 이라도 화면 읽기·Tab 초점은 닿음 */
html[data-footer-fold] body:not(:has(.maint)) > .footer:not(.is-open) { height: 0; overflow: clip; }
.footer .wrap { padding-block: clamp(48px, 2.5521vw, 49px) clamp(40px, 2.1875vw, 42px); }
.footer__logos { display: grid; gap: clamp(14px, 0.7292vw, 14px); justify-items: start; }
.footer__logos img:first-child { height: clamp(36px, 2.224vw, 42.7px); width: auto; }
.footer__logos img:last-child { height: clamp(40px, 2.5521vw, 49px); width: auto; }
.footer__info { margin-top: clamp(56px, 5.1042vw, 98px); font-size: var(--fs-sm); line-height: 1.45; }
.footer__info p + p { margin-top: 1.4em; }
.footer__links {
  display: flex; flex-wrap: wrap; gap: .5em 0;
  margin-top: 1.4em; padding: 0 0 clamp(28px, 1.4583vw, 28px); list-style: none;
  border-bottom: 1px solid rgba(237, 237, 237, 0.1);
  font-size: var(--fs-sm); font-weight: 600;
}
.footer__links li + li::before { content: "|"; margin-inline: 1em; font-weight: 400; opacity: .8; }
.footer__links a:hover { color: var(--c-bg); }

/* =========================================================
   전환 애니메이션
   - 페이지 간: 크로스 문서 View Transitions (Chrome·Edge·Safari 18.2+). 미지원 브라우저는 즉시 전환.
   - 헤더·띠배너는 이름을 붙여 제자리에 고정, 본문만 아래→위로 부드럽게 교체.
   - 뒤로 가기는 방향을 반대로 (head 의 pagereveal 스크립트가 'back' 타입 지정).
   ========================================================= */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 0.75, 0.2);
}
@view-transition { navigation: auto; }

.header { view-transition-name: site-header; }
.banner { view-transition-name: site-banner; }
/* 한쪽 페이지가 스크롤돼 있으면 상단 요소 위치가 달라서 고정하지 않고 페이지와 함께 움직임 (chrome.js transitionScript) */
html[data-vt-free] .header, html[data-vt-free] .banner, html[data-vt-free] .crumbs { view-transition-name: none; }

::view-transition-group(*) { animation-duration: .6s; animation-timing-function: var(--ease-out); }
::view-transition-old(root) { animation: vt-out .26s var(--ease-in) both; }
::view-transition-new(root) { animation: vt-in .7s var(--ease-out) .06s both; }
html:active-view-transition-type(back)::view-transition-old(root) { animation-name: vt-out-back; }
html:active-view-transition-type(back)::view-transition-new(root) { animation-name: vt-in-back; }

@keyframes vt-out      { to   { opacity: 0; transform: translateY(-14px); } }
@keyframes vt-in       { from { opacity: 0; transform: translateY(28px); } }
@keyframes vt-out-back { to   { opacity: 0; transform: translateY(14px); } }
@keyframes vt-in-back  { from { opacity: 0; transform: translateY(-20px); } }

/* 첫 진입 등장 효과: 링크를 따라 들어온 경우(전환 애니메이션이 있을 때)는 쓰지 않는다.
   본문이 HTML 에 미리 그려져 있어 처음 그려질 때부터 CSS 로만 동작 → 나중에 다시 숨겨지거나 튀지 않음.
   (data-vt 는 head 의 pagereveal 스크립트가 첫 화면 전에 붙임) */
html:not([data-vt]) main > * { animation: reveal .8s var(--ease-out) both; }
html:not([data-vt]) main > :nth-child(2) { animation-delay: .08s; }
html:not([data-vt]) main > :nth-child(3) { animation-delay: .16s; }
html:not([data-vt]) main > :nth-child(n+4) { animation-delay: .24s; }
@keyframes reveal { from { opacity: 0; transform: translateY(22px); } }

/* 아코디언: 사용자가 펼칠 때만 */
.faq > details.is-toggled[open] > .faq__a { animation: reveal .45s var(--ease-out) both; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  main > *, .faq details[open] .faq__a, .crumbs #crumb-current.is-changing, .crumb-section.is-changing { animation: none !important; }
  .seg__thumb { transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   태블릿 이하
   ========================================================= */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero__copy { padding-left: 0; order: 1; }
  .hero .photo { order: 0; }
}

/* =========================================================
   모바일
   ========================================================= */
@media (max-width: 760px) {
  :root { --inset: var(--gutter); }

  .header__menu-btn {
    --r: var(--r-md);
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -10px;
    border: 0; background: none; cursor: pointer;
  }
  .header__menu-btn svg { width: 24px; height: 24px; }
  .header__nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--c-bg);
    border-bottom: var(--lw) solid var(--c-line);
    box-shadow: 0 16px 24px -16px rgba(51, 51, 51, .2);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .header.is-open .header__nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .header__nav > a:not(.btn) { display: flex; align-items: center; min-height: 52px; border-bottom: var(--lw) solid var(--c-line); font-size: 17px; }
  .header__nav .btn { margin-top: 12px; width: 100%; }
  .header__nav .btn + .btn { margin-left: 0; margin-top: 8px; }

  .hero { gap: 28px; padding-top: 16px; }
  .hero__title { line-height: 1.32; }

  /* 요금제: 모바일도 좌/우 2열 비교. 항목은 아이콘·라벨 / 값 2줄로 쌓아 폭을 줄임 */
  .plans { column-gap: 12px; margin-top: 36px; }
  .plans--row { --gap: 12px; grid-auto-columns: calc((100% - 2 * var(--gap)) / 2.3); margin-top: -14px; }
  .plan__name { padding-bottom: 12px; font-size: 15px; line-height: 1.3; }
  .plan__summary { padding-top: 20px; font-size: 14px; line-height: 1.4; }
  /* 항목: 아이콘 | 라벨 값 을 한 줄로(왼쪽 정렬), 길면 값이 라벨 아래로 이어짐 */
  .checks { row-gap: 10px; padding-block: 20px 24px; padding-inline: 2px; font-size: 14px; justify-items: stretch; }
  .checks li { align-items: flex-start; gap: 6px; text-align: left; line-height: 1.4; }
  .checks li > span { min-width: 0; }
  .checks .lbl { font-weight: 600; margin-right: .35em; white-space: nowrap; }
  .checks .val::before { content: none; }
  .checks .ico { width: 16px; height: 16px; margin-top: calc((1.4em - 16px) / 2); }

  .faq > details > summary, .faq > details > .faq__a { padding-inline: 4px; }
  .faq { margin-inline: calc(-1 * 4px); }

  .seg { width: 100%; }
  .seg button { flex: 1; padding-inline: 8px; }

  .facility__info { grid-template-columns: 1fr; row-gap: 10px; }
  .facility .chips { margin-top: 14px; }

  .rich br.soft { display: none; }
  .footer__links { flex-direction: column; }
  .footer__links li + li::before { content: none; }
}


/* =========================================================
   설문 (/survey/<id>) — 링크로만 들어오는 단독 페이지
   상단 바(로고 가운데)는 신고 페이지와 같고, 카드·버튼·색은 사이트 그대로.
   질문 하나 = 흰 카드, 선택지 = 테두리 있는 줄(고르면 초록 테두리·옅은 초록 면)
   ========================================================= */
.sv-page { min-height: 100vh; min-height: 100dvh; overflow-x: clip; }
.sv-page .topbar {
  position: sticky; top: 0; z-index: 5;
  height: var(--header-h); display: flex; align-items: center; justify-content: center;
  background: var(--c-bg); border-bottom: var(--lw) solid var(--c-line);
}
.sv { --sv-w: 640px; max-width: calc(var(--sv-w) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) clamp(64px, 6vw, 120px); }
.sv-progress {
  position: sticky; top: var(--header-h); z-index: 4; height: 4px; margin-inline: calc(50% - 50vw);
  background: var(--c-bg); opacity: 0; transition: opacity .3s;
}
.sv-progress.is-on { opacity: 1; }
.sv-progress i { display: block; height: 100%; width: 0; background: var(--c-green); border-radius: 0 99px 99px 0; transition: width .5s cubic-bezier(.2, .8, .2, 1); }

/* 화면 전환: 옅게 나타나며 살짝 올라옴 (뒤로는 반대) */
.sv-screen { padding-top: clamp(36px, 4vw, 72px); opacity: 0; transform: translateY(14px); transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1); }
.sv-screen.is-back { transform: translateY(-14px); }
.sv-screen.is-on { opacity: 1; transform: none; }

.sv-title { margin: 0; font-size: var(--fs-page-title); line-height: 1.3; white-space: pre-line; }
.sv-intro { margin-top: clamp(20px, 1.6vw, 30px); }
.sv-meta { margin: clamp(20px, 1.6vw, 30px) 0 0; font-size: var(--fs-sm); color: var(--c-sub); }
.sv-closed { margin: clamp(28px, 2vw, 40px) 0 0; padding: 18px 20px; border-radius: var(--r-md); background: var(--c-tint); color: var(--c-sub); white-space: pre-line; }
.sv-h { margin: 0; font-size: clamp(22px, 1.4vw, 27px); font-weight: 700; line-height: 1.35; letter-spacing: -.03em; white-space: pre-line; }
.sv-sub { margin: 12px 0 0; color: var(--c-sub); white-space: pre-line; }
.sv-sec { margin-bottom: clamp(20px, 1.6vw, 30px); }

/* 질문 카드 */
.sv-qs { display: grid; gap: 12px; }
.sv-q {
  --r: var(--r-lg); --sq-stroke: var(--stroke-dark); --sq-stroke-w: var(--bw);
  margin: 0; min-width: 0; padding: clamp(20px, 1.4vw, 26px) clamp(18px, 1.4vw, 26px);
  background: var(--c-white); border: 0;
  transition: background-color .2s;
}
.sv-q.is-err { --sq-stroke: var(--c-red); }
/* legend 를 일반 블록처럼 (float 로 fieldset 테두리 자리에서 꺼냄). 아래 간격은 제목의 margin 으로 */
.sv-q__title { display: block; float: left; width: 100%; margin: 0 0 14px; padding: 0; font-size: var(--fs-lg); font-weight: 600; line-height: 1.45; white-space: pre-line; }
.sv-q__title + * { clear: both; }
.sv-req { margin-left: .2em; color: var(--c-red); }
.sv-q__help { margin: -8px 0 14px; font-size: var(--fs-sm); color: var(--c-sub); white-space: pre-line; }
.sv-q__hint { margin: -8px 0 12px; font-size: var(--fs-sm); color: var(--c-faint); }
.sv-q__err { margin: 10px 0 0; font-size: var(--fs-sm); color: var(--c-red); }
.sv-q__err:empty { display: none; }
.sv-info { padding: 4px 2px; }
.sv-info__t { margin: 0; font-size: var(--fs-lg); font-weight: 700; }
.sv-info__b { margin: 6px 0 0; color: var(--c-sub); white-space: pre-line; }

/* 입력칸 */
.sv-input {
  --sq-stroke: rgba(51, 51, 51, .16); --sq-stroke-w: var(--bw);
  display: block; width: 100%; min-height: 50px; padding: 12px 16px;
  background: var(--c-bg); color: var(--c-text); font: inherit; font-size: max(16px, var(--fs-body)); line-height: 1.5;
  outline: none; resize: none;
}
/* 입력칸(input·textarea)은 ::before 를 못 가져서 테두리가 그려지지 않음 → 포커스 때도 회색 면 유지 */
.sv-input:focus { background: var(--c-bg); }
.sv-input--long { min-height: 120px; field-sizing: content; max-height: 60vh; }
.sv-input--date { width: auto; min-width: 200px; }
.sv-input::placeholder { color: var(--c-faint); }

/* 선택지 (객관식·체크박스) */
.sv-opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
/* 카드(.sv-q)의 큰 반경(--r-lg)이 상속되지 않도록 안쪽 요소는 버튼 반경 */
.sv-opt, .sv-input, .sv-select, .sv-scale__n { --r: var(--r-md); }
.sv-opt {
  --sq-stroke: rgba(51, 51, 51, .14); --sq-stroke-w: var(--bw);
  display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 12px 16px;
  background: var(--c-white); cursor: pointer; transition: background-color .2s;
}
.sv-opt:hover { background: rgba(51, 51, 51, .03); }
.sv-opt:has(input:checked) { --sq-stroke: var(--c-green); background: rgba(52, 165, 104, .06); }
.sv-opt input[type=radio], .sv-opt input[type=checkbox], .sv-scale__n input { position: absolute; opacity: 0; pointer-events: none; }
.sv-mark { flex: none; position: relative; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(85, 85, 85, .45); transition: box-shadow .2s, background-color .2s; }
.sv-opt input:checked + .sv-mark { background: var(--c-green); box-shadow: inset 0 0 0 1.5px var(--c-green); }
.sv-opt input[type=radio]:checked + .sv-mark::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.sv-opt input[type=checkbox] + .sv-mark { border-radius: 6px; }
.sv-opt input[type=checkbox]:checked + .sv-mark::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.sv-opt input:focus-visible + .sv-mark { outline: 2px solid var(--c-green); outline-offset: 2px; }
.sv-opt__t { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; line-height: 1.45; }
.sv-opt--other .sv-opt__t { flex: none; }
.sv-other { flex: 1; min-width: 0; border: 0; border-bottom: 1px solid var(--c-line); padding: 4px 0; background: transparent; font: inherit; font-size: max(16px, var(--fs-body)); color: var(--c-text); outline: none; }
.sv-other:focus { border-bottom-color: var(--c-green); }

/* 드롭다운 */
.sv-select { --sq-stroke: rgba(51, 51, 51, .16); --sq-stroke-w: var(--bw); position: relative; background: var(--c-bg); }
.sv-select select { appearance: none; -webkit-appearance: none; width: 100%; min-height: 50px; padding: 12px 48px 12px 16px; border: 0; background: transparent; font: inherit; font-size: max(16px, var(--fs-body)); color: var(--c-text); cursor: pointer; outline: none; }
.sv-select select.is-empty { color: var(--c-faint); }
.sv-select svg { position: absolute; right: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); pointer-events: none; }
.sv-select:focus-within { --sq-stroke: var(--c-green); }

/* 선형 배율 */
.sv-scale { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; }
.sv-scale__n {
  --sq-stroke: rgba(51, 51, 51, .14); --sq-stroke-w: var(--bw);
  display: grid; place-items: center; height: 48px; background: var(--c-white); cursor: pointer; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color .2s, color .2s;
}
.sv-scale__n:has(input:checked) { --sq-stroke: var(--stroke-light); background: var(--c-green); color: #fff; }
.sv-scale__n:has(input:focus-visible) { outline: 2px solid var(--c-green); outline-offset: 2px; }
.sv-scale__labels { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: var(--fs-sm); color: var(--c-sub); }

/* 전화번호·인증번호 (신고 페이지와 같은 모양) */
.sv-phone {
  --r: var(--r-lg); --sq-stroke: var(--stroke-dark); --sq-stroke-w: var(--bw);
  display: flex; align-items: center; justify-content: center; gap: .42em; margin-top: clamp(28px, 2vw, 40px); min-height: 64px;
  background: var(--c-white); font-size: 20px; font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums;
}
.sv-phone:focus-within { --sq-stroke: var(--c-green); }
.sv-phone input { width: 9.6ch; border: 0; padding: 0; background: transparent; font: inherit; letter-spacing: inherit; color: inherit; outline: none; caret-color: var(--c-green); }
.sv-phone--code { margin-top: 10px; }
.sv-phone--code input { width: 100%; text-align: center; }
.sv-phone input::placeholder { color: rgba(85, 85, 85, .4); font-weight: 600; letter-spacing: .02em; }
.sv-code { display: grid; }
.sv-link { justify-self: center; margin-top: 10px; padding: 6px 8px; border: 0; background: none; font: inherit; font-size: var(--fs-sm); color: var(--c-sub); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sv-msg { margin: 14px 4px 0; font-size: var(--fs-sm); color: var(--c-red); white-space: pre-line; }
.sv-msg.is-info { color: var(--c-green); }
.sv-msg:empty { display: none; }

/* 아래 버튼 */
.sv-nav { display: flex; gap: 10px; margin-top: clamp(28px, 2.2vw, 42px); }
.sv-btn {
  --r: var(--r-md); --sq-stroke: var(--stroke-light); --sq-stroke-w: var(--bw);
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: round(clamp(54px, 3.3333vw, 64px), 1px); padding-inline: 20px; border: 0;
  background: var(--c-green); color: #fff; font: inherit; font-size: var(--fs-lg); font-weight: 700; cursor: pointer;
  transition: filter .2s, opacity .2s;
}
.sv-btn:hover { filter: brightness(1.05); }
.sv-btn:disabled { opacity: .4; cursor: default; filter: none; }
.sv-btn--back { flex: 0 0 auto; min-width: 96px; --sq-stroke: var(--c-text); background: transparent; color: var(--c-text); }
.sv-btn--back:hover { background: rgba(51, 51, 51, .05); filter: none; }
.sv-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: sv-spin .8s linear infinite; }
@keyframes sv-spin { to { transform: rotate(360deg); } }

/* 완료: 응답 번호 (체험권·이벤트 확인용) */
.sv-ticket {
  --r: var(--r-lg); --sq-stroke: var(--stroke-dark); --sq-stroke-w: var(--bw);
  display: grid; justify-items: center; gap: 4px; margin-top: clamp(28px, 2vw, 40px); padding: 26px 20px; background: var(--c-white); text-align: center;
}
.sv-ticket > span { font-size: var(--fs-sm); color: var(--c-sub); }
.sv-ticket b { font-size: clamp(28px, 2vw, 38px); letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.sv-ticket small { font-size: var(--fs-sm); color: var(--c-faint); white-space: pre-line; }
.sv-ticket small:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
  .sv-screen, .sv-progress i { transition: none; }
}
