/* 여러 페이지에서 쓰는 조각: 섹션 타이틀, 리본 버튼, 페이지 표시 */

/* ── 섹션 타이틀 (Bold 64 / 36 / 20) ─────────────────── */
.v2-title {
  font-weight: 700;
  font-size: calc(64 * var(--u));
  line-height: calc(90 * var(--u));
  color: var(--color-text-default);
}
html[data-bp="t"] .v2-title { font-size: calc(36 * var(--u)); line-height: calc(50 * var(--u)); }
html[data-bp="m"] .v2-title { font-size: calc(20 * var(--u)); line-height: calc(28 * var(--u)); }

/* 타이틀 뒤 장식 줄 "――――" 은 Thin */
.v2-title__rule { font-weight: 100; }

/* ── 리본 버튼 ("작업물 살펴보기 ↗" 등) ─────────────────
   배경: images/v2/home/tag_ribbon_dark.png (220×42, 글자 제외) */
.v2-ribbon {
  position: relative;
  display: block;
  flex: none;
  width: calc(219.29 * var(--u));
  height: calc(42 * var(--u));
  padding: calc(9 * var(--u)) 0 0 calc(43 * var(--u));
  background: url("../../images/v2/home/tag_ribbon_dark.png") left top / calc(220 * var(--u)) calc(42 * var(--u)) no-repeat;
  font-weight: 700;
  font-size: calc(18 * var(--u));
  line-height: calc(25 * var(--u));
  white-space: nowrap;
  color: var(--color-text-on-action);
  text-shadow: 0 0 calc(4 * var(--u)) rgba(0, 0, 0, 0.5);
}
.v2-ribbon:hover  { filter: brightness(1.35); }
.v2-ribbon:active { opacity: 0.85; }

html:not([data-bp="d"]) .v2-ribbon {
  width: calc(164.47 * var(--u));
  height: calc(31.5 * var(--u));
  padding: calc(6.75 * var(--u)) 0 0 calc(32.25 * var(--u));
  background-size: calc(165 * var(--u)) calc(31.5 * var(--u));
  font-size: calc(14 * var(--u));
  line-height: calc(20 * var(--u));
  text-shadow: 0 0 calc(3 * var(--u)) rgba(0, 0, 0, 0.5);
}
/* 740·360: 보이는 높이는 31.5 로 두고 눌리는 영역만 44 로 넓힌다 */
html:not([data-bp="d"]) .v2-ribbon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: calc(44 * var(--u));
  transform: translateY(-50%);
}

/* ── 페이지 표시 (화살표 + 별) ───────────────────────── */
.v2-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(100 * var(--u));
  width: 100%;
  height: calc(30 * var(--u));
}
.v2-pager[hidden] { display: none; }

.v2-pager__arrow {
  position: relative;
  flex: none;
  width: calc(20 * var(--u));
  height: calc(19 * var(--u));
}
/* 리소스는 선 두께까지 포함한 23×22. 20×19 자리의 가운데에 놓는다 */
.v2-pager__arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(23 * var(--u));
  height: calc(22 * var(--u));
  transform: translate(-50%, -50%);
  background: center / contain no-repeat;
}
.v2-pager__arrow--prev::before { background-image: url("../../images/v2/common/icon_arrow_left.png"); }
.v2-pager__arrow--next::before { background-image: url("../../images/v2/common/icon_arrow_right.png"); }
/* 눌리는 영역 44 */
.v2-pager__arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(44 * var(--u));
  height: calc(44 * var(--u));
  transform: translate(-50%, -50%);
}
.v2-pager__arrow[aria-disabled="true"] { opacity: 0.35; cursor: default; }

.v2-pager__stars { display: flex; align-items: center; }

.v2-pager__star {
  position: relative;
  flex: none;
  width: calc(30 * var(--u));
  height: calc(30 * var(--u));
  background: url("../../images/v2/common/pagination_star_inactive.png") center / contain no-repeat;
}
.v2-pager__star[aria-current="page"] {
  background-image: url("../../images/v2/common/pagination_star_active.png");
}

html:not([data-bp="d"]) .v2-pager { height: calc(19 * var(--u)); }
html:not([data-bp="d"]) .v2-pager__star {
  width: calc(18 * var(--u));
  height: calc(18 * var(--u));
}
/* 별 18px: 세로로만 눌리는 영역을 44 로 넓힌다 (가로는 이웃 별과 겹치지 않게 그대로) */
html:not([data-bp="d"]) .v2-pager__star::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: calc(44 * var(--u));
  transform: translateY(-50%);
}
/* 360: 화살표는 양 끝, 별은 가운데 */
html[data-bp="m"] .v2-pager { justify-content: space-between; gap: 0; }

/* ── 빈 상태 · 실패 안내 ─────────────────────────────── */
.v2-notice {
  width: 100%;
  padding: calc(48 * var(--u)) 0;
  font-size: calc(18 * var(--u));
  line-height: calc(25 * var(--u));
  text-align: center;
  color: var(--color-text-secondary);
}
.v2-notice a, .v2-notice button { text-decoration: underline; text-underline-offset: 0.25em; }
html[data-bp="m"] .v2-notice {
  padding: calc(24 * var(--u)) 0;
  font-size: calc(12 * var(--u));
  line-height: calc(17 * var(--u));
}

/* ── 가운데 장식 줄 (deco_section_divider_center.png 640×30) ── */
.v2-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(31.68 * var(--u));
}
.v2-ornament img {
  display: block;
  width: calc(640 * var(--u));
  height: calc(30 * var(--u));
}
html[data-bp="t"] .v2-ornament { height: calc(19.11 * var(--u)); }
html[data-bp="t"] .v2-ornament img { width: calc(386.1 * var(--u)); height: calc(18.1 * var(--u)); }
html[data-bp="m"] .v2-ornament { height: calc(9.61 * var(--u)); }
html[data-bp="m"] .v2-ornament img { width: calc(194.1 * var(--u)); height: calc(9.1 * var(--u)); }

/* ── 원형 화살표 링크 ("커미션 바로가기") ── */
.v2-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: calc(12 * var(--u));
  font-weight: 600;
  font-size: calc(18 * var(--u));
  line-height: calc(25 * var(--u));
  white-space: nowrap;
  color: var(--color-text-default);
}
.v2-arrow-link__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: calc(28 * var(--u));
  height: calc(28 * var(--u));
  border-radius: 50%;
  background: var(--color-action-default);
  color: var(--color-text-on-action);
  transition: background-color 0.15s ease;
}
.v2-arrow-link__icon svg { width: 100%; height: 100%; }
.v2-arrow-link:hover .v2-arrow-link__icon { background: var(--color-action-hover); }
html:not([data-bp="d"]) .v2-arrow-link {
  gap: calc(8 * var(--u));
  font-size: calc(14 * var(--u));
  line-height: calc(20 * var(--u));
}
html:not([data-bp="d"]) .v2-arrow-link__icon { width: calc(24 * var(--u)); height: calc(24 * var(--u)); }

/* ── 보조 버튼 ("크리에이터 살펴보기 ↗") ── */
.v2-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(36 * var(--u));
  padding: 0 calc(17 * var(--u));
  border-radius: calc(4 * var(--u));
  background: #EAEAEA;
  font-weight: 500;
  font-size: calc(18 * var(--u));
  line-height: calc(25 * var(--u));
  white-space: nowrap;
  color: var(--color-text-secondary);
  transition: background-color 0.15s ease;
}
@media (hover: hover) { .v2-btn-secondary:hover { background: #DEDEDE; } }
.v2-btn-secondary:active { opacity: 0.85; }
html[data-bp="t"] .v2-btn-secondary {
  height: calc(32 * var(--u));
  padding: 0 calc(14 * var(--u));
  font-size: calc(14 * var(--u));
  line-height: calc(20 * var(--u));
}
html[data-bp="m"] .v2-btn-secondary {
  height: calc(30 * var(--u));
  padding: 0 calc(12 * var(--u));
  font-size: calc(12 * var(--u));
  line-height: calc(17 * var(--u));
}

/* ── 주 버튼 ("커미션 문의하기 ↗" 등): 높이 42 / 31.5 / 44 ── */
.v2-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: calc(42 * var(--u));
  padding: 0 calc(24 * var(--u));
  border-radius: calc(4 * var(--u));
  background: var(--color-action-default);
  font-weight: 700;
  font-size: calc(18 * var(--u));
  line-height: calc(25 * var(--u));
  white-space: nowrap;
  color: var(--color-text-on-action);
  transition: background-color 0.15s ease;
}
@media (hover: hover) { .v2-btn-primary:hover { background: var(--color-action-hover); } }
.v2-btn-primary:active { opacity: 0.85; }
html[data-bp="t"] .v2-btn-primary {
  position: relative;
  height: calc(31.5 * var(--u));
  padding: 0 calc(16 * var(--u));
  font-size: calc(14 * var(--u));
  line-height: calc(20 * var(--u));
}
/* 740: 보이는 높이는 31.5 로 두고 눌리는 영역만 44 로 넓힌다 */
html[data-bp="t"] .v2-btn-primary::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: calc(44 * var(--u));
  transform: translateY(-50%);
}
html[data-bp="m"] .v2-btn-primary {
  height: calc(44 * var(--u));
  padding: 0 calc(12 * var(--u));
  font-size: calc(12 * var(--u));
  line-height: calc(17 * var(--u));
}

/* ── 펼침 목록 · 달력 (js/v2/formkit.js) ─────────────────
   기준 크기는 신청 양식(장바구니) 주석 프레임. 화면마다 필요한 크기만 덮어쓴다.
   부모(입력란 묶음)에 position: relative 가 있어야 한다. ── */
.v2-pop {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6 * var(--u));
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--u));
  padding: calc(11 * var(--u));         /* 테두리 포함 12 */
  border: calc(1 * var(--u)) solid var(--color-border-default);
  border-radius: calc(10 * var(--u));
  background: #FFFFFF;
  box-shadow: 0 calc(6 * var(--u)) calc(20 * var(--u)) rgba(0, 0, 0, 0.08);
}
.v2-pop[hidden] { display: none; }
/* 목록이 맨 아래 항목에서 열려도 스크롤해서 볼 수 있게 아래 여유를 둔다 */
.v2-pop::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 1px;
  height: calc(16 * var(--u));
}
.v2-pop__option {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: calc(44 * var(--u));
  padding: 0 calc(12 * var(--u));
  font-size: calc(16 * var(--u));
  line-height: calc(19 * var(--u));
  text-align: left;
}
.v2-pop__option[aria-selected="true"] { background: #EDEDED; }
.v2-pop__option[aria-selected="true"]::after { content: "✓"; }
@media (hover: hover) { .v2-pop__option:hover { background: #F4F4F4; } }
.v2-pop__option:focus-visible { outline-offset: calc(-2 * var(--u)); }

.v2-cal__head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: calc(40 * var(--u));
  font-weight: 700;
  font-size: calc(19 * var(--u));
  line-height: calc(23 * var(--u));
}
.v2-cal__nav {
  width: calc(40 * var(--u));
  height: calc(40 * var(--u));
  font-weight: 700;
}
.v2-cal__nav--prev { text-align: left; }
.v2-cal__nav--next { text-align: right; }
.v2-cal__row {
  display: grid;
  flex: none;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: calc(4 * var(--u));
  height: calc(38 * var(--u));
  font-size: calc(15 * var(--u));
  line-height: calc(18 * var(--u));
}
.v2-cal__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(4 * var(--u));
}
@media (hover: hover) { button.v2-cal__cell:hover { background: #F4F4F4; } }
.v2-cal__cell[aria-pressed="true"],
.v2-cal__cell[aria-pressed="true"]:hover {
  background: var(--color-action-default);
  color: var(--color-text-on-action);
}
.v2-cal__cell[disabled] { color: var(--color-action-disabled); cursor: default; background: none; }
.v2-cal__cell:focus-visible { outline-offset: calc(-2 * var(--u)); }
html[data-bp="t"] .v2-pop__option { font-size: calc(15 * var(--u)); line-height: calc(18 * var(--u)); }
html[data-bp="t"] .v2-cal__head { font-size: calc(17 * var(--u)); line-height: calc(21 * var(--u)); }
html[data-bp="t"] .v2-cal__row { font-size: calc(14 * var(--u)); line-height: calc(17 * var(--u)); }
html[data-bp="m"] .v2-pop { padding: calc(7 * var(--u)); border-radius: calc(7 * var(--u)); }
html[data-bp="m"] .v2-pop__option { font-size: calc(12 * var(--u)); line-height: calc(14 * var(--u)); }
html[data-bp="m"] .v2-cal__head { font-size: calc(14 * var(--u)); line-height: calc(17 * var(--u)); }
html[data-bp="m"] .v2-cal__row { height: calc(34 * var(--u)); font-size: calc(12 * var(--u)); line-height: calc(14 * var(--u)); }

/* ── 페이지 머리 (WORKS · CREATORS): 왼쪽 소제목 + 타이틀, 오른쪽 아래 화살표 링크 ── */
.v2-pagehead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "eyebrow link"
    "title   link";
  row-gap: calc(20 * var(--u));
  align-items: end;
}
.v2-pagehead .v2-eyebrow { grid-area: eyebrow; color: var(--color-text-default); }
.v2-pagehead .v2-title   { grid-area: title; }
.v2-pagehead .v2-arrow-link { grid-area: link; }
html[data-bp="t"] .v2-pagehead { row-gap: calc(12 * var(--u)); }
html[data-bp="m"] .v2-pagehead {
  grid-template-areas:
    "eyebrow eyebrow"
    "title   link";
  row-gap: calc(8 * var(--u));
  align-items: center;
}

/* ── 하위 화면 뼈대 (CONTACT 등): 소제목 + 제목 · 쌍별 장식 · 본문 · 하단 탐색 ──
   간격 48 / 36 / 24, 안쪽 여백 96 / 80 / 48 (좌우는 --side) */
.v2-sub {
  display: flex;
  flex-direction: column;
  gap: calc(48 * var(--u));
  padding: calc(96 * var(--u)) var(--side);
  color: #262626;
}
.v2-sub__head {
  display: flex;
  flex-direction: column;
  gap: calc(12 * var(--u));
}
.v2-sub__eyebrow {
  font-weight: 400;
  font-size: calc(16 * var(--u));
  line-height: calc(19 * var(--u));
  white-space: pre;
}
.v2-sub__title {
  font-weight: 700;
  font-size: calc(64 * var(--u));
  line-height: calc(76 * var(--u));
}
/* 쌍별 장식 (deco_star_double_dark.png 22×34) */
.v2-sub__deco {
  flex: none;
  width: calc(22 * var(--u));
  height: calc(34 * var(--u));
}
.v2-sub__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
html[data-bp="t"] .v2-sub { gap: calc(36 * var(--u)); padding: calc(80 * var(--u)) var(--side); }
html[data-bp="t"] .v2-sub__eyebrow { line-height: calc(23 * var(--u)); }
html[data-bp="t"] .v2-sub__title { font-size: calc(36 * var(--u)); line-height: calc(52 * var(--u)); }
html[data-bp="t"] .v2-sub__deco { width: calc(15.69 * var(--u)); height: calc(24.25 * var(--u)); }
html[data-bp="m"] .v2-sub { gap: calc(24 * var(--u)); padding: calc(48 * var(--u)) var(--side); }
html[data-bp="m"] .v2-sub__head { gap: calc(8 * var(--u)); }
html[data-bp="m"] .v2-sub__eyebrow { font-size: calc(12 * var(--u)); line-height: calc(17 * var(--u)); }
html[data-bp="m"] .v2-sub__title { font-size: calc(20 * var(--u)); line-height: calc(29 * var(--u)); }
html[data-bp="m"] .v2-sub__deco { width: calc(8.44 * var(--u)); height: calc(13.05 * var(--u)); }
/* 740 · 360: "홈" 처럼 짧은 버튼도 폭 44 를 지킨다 */
html:not([data-bp="d"]) .v2-sub__nav .v2-btn-secondary { min-width: calc(44 * var(--u)); }

/* ── 동의 목록 · 체크박스 (TOMO Checkbox): 줄 높이 28 / 26 / 24, 줄 간격 12 / 8 / 8 ── */
.v2-agree {
  display: flex;
  flex-direction: column;
  gap: calc(12 * var(--u));
}
.v2-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: calc(8 * var(--u));
  min-height: calc(28 * var(--u));
  font-weight: 400;
  font-size: calc(17 * var(--u));
  line-height: calc(24 * var(--u));
  color: var(--color-text-default);
  cursor: pointer;
}
.v2-check input {
  position: absolute;
  left: 0;
  top: 50%;
  width: calc(20 * var(--u));
  height: calc(20 * var(--u));
  margin: 0;
  opacity: 0;
  transform: translateY(-50%);
  cursor: pointer;
}
/* 20 자리 안의 16 상자 */
.v2-check__box {
  flex: none;
  width: calc(16 * var(--u));
  height: calc(16 * var(--u));
  margin: calc(2 * var(--u));
  border: calc(1 * var(--u)) solid var(--color-border-default);
  border-radius: calc(2 * var(--u));
  background: #FFFFFF center / calc(10 * var(--u)) calc(8 * var(--u)) no-repeat;
}
.v2-check input:checked + .v2-check__box {
  border-color: var(--color-action-default);
  background-color: var(--color-action-default);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 4l2.7 2.7L9 1.3'/%3E%3C/svg%3E");
}
.v2-check input:focus-visible + .v2-check__box {
  outline: calc(2 * var(--u)) solid var(--color-focus);
  outline-offset: calc(2 * var(--u));
}
.v2-check input[aria-invalid="true"] + .v2-check__box { border-color: var(--color-error); }
/* 동의 항목 + 그 아래의 안내 글 (제3자 제공 동의의 고지 내용). 시안에 없는 요소 — 2026-11-26 규정 때문에 추가 */
.v2-agree__item {
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--u));
}
.v2-agree__item[hidden] { display: none; }
.v2-agree__note {
  margin: 0;
  padding-left: calc(28 * var(--u));      /* 체크 상자 자리 20 + 간격 8 */
  font-weight: 400;
  font-size: calc(14 * var(--u));
  line-height: calc(21 * var(--u));
  color: var(--color-text-secondary);
  word-break: keep-all;
}
html[data-bp="t"] .v2-agree__note { font-size: calc(12 * var(--u)); line-height: calc(18 * var(--u)); }
html[data-bp="m"] .v2-agree__note { font-size: calc(11 * var(--u)); line-height: calc(16 * var(--u)); }
html[data-bp="t"] .v2-agree,
html[data-bp="m"] .v2-agree { gap: calc(8 * var(--u)); }
html[data-bp="t"] .v2-check { min-height: calc(26 * var(--u)); font-size: calc(13 * var(--u)); line-height: calc(18 * var(--u)); }
html[data-bp="m"] .v2-check { min-height: calc(24 * var(--u)); font-size: calc(12 * var(--u)); line-height: calc(17 * var(--u)); }

/* ── 입력란 (Input · Select · Textarea): 높이 57 / 44 / 44, 이름표와 간격 10 / 5 / 4 ──
   CONTACT · ACCOUNT 양식이 같이 쓴다. 오류 문구는 js/v2/formkit.js 의 errors() 가 붙인다.
   목록 · 날짜(button)는 시안의 Select 처럼 고른 값도 안내 문구와 같은 색(#666666)이다. ── */
.v2-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--u));
  min-width: 0;
}
.v2-field__label {
  align-self: flex-start;
  font-weight: 700;
  font-size: calc(18 * var(--u));
  line-height: calc(21 * var(--u));
}
.v2-field__control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: calc(57 * var(--u));
  margin: 0;
  padding: 0 calc(20 * var(--u));       /* 테두리 포함 21 */
  border: calc(1 * var(--u)) solid var(--color-border-default);
  border-radius: calc(4 * var(--u));
  background: #FFFFFF;
  font: inherit;
  font-weight: 400;
  font-size: calc(18 * var(--u));
  line-height: calc(25 * var(--u));
  color: var(--color-text-default);
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}
.v2-field__control::placeholder { color: var(--color-text-secondary); opacity: 1; }
button.v2-field__control { color: var(--color-text-secondary); }
button.v2-field__control > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
textarea.v2-field__control {
  display: block;
  height: calc(140 * var(--u));
  padding: calc(20 * var(--u));
  resize: none;
}
.v2-field__control:focus-visible { outline-offset: 0; }
.v2-field__control[aria-invalid="true"] { border-color: var(--color-error); }
.v2-field__icon {
  flex: none;
  width: calc(16 * var(--u));
  height: calc(16 * var(--u));
  color: var(--color-text-secondary);
}
.v2-field__control[aria-expanded="true"] .v2-field__icon { transform: rotate(180deg); }
.v2-field__error {
  font-weight: 400;
  font-size: calc(14 * var(--u));
  line-height: calc(20 * var(--u));
  color: var(--color-error);
}

html[data-bp="t"] .v2-field { gap: calc(5 * var(--u)); }
html[data-bp="t"] .v2-field__label { font-size: calc(15 * var(--u)); line-height: calc(18 * var(--u)); }
html[data-bp="t"] .v2-field__control {
  height: calc(44 * var(--u));
  padding: 0 calc(9 * var(--u));
  font-size: calc(15 * var(--u));
  line-height: calc(21 * var(--u));
}
html[data-bp="t"] textarea.v2-field__control { height: calc(90 * var(--u)); padding: calc(10 * var(--u)) calc(9 * var(--u)); }
html[data-bp="t"] .v2-field__error { font-size: calc(13 * var(--u)); line-height: calc(18 * var(--u)); }
html[data-bp="m"] .v2-field { gap: calc(4 * var(--u)); }
html[data-bp="m"] .v2-field__label { font-size: calc(12 * var(--u)); line-height: calc(14 * var(--u)); }
html[data-bp="m"] .v2-field__control {
  height: calc(44 * var(--u));
  padding: 0 calc(12 * var(--u));
  font-size: calc(12 * var(--u));
  line-height: calc(17 * var(--u));
}
html[data-bp="m"] textarea.v2-field__control { height: calc(65 * var(--u)); padding: calc(10 * var(--u)) calc(12 * var(--u)); }
html[data-bp="m"] .v2-field__error { font-size: calc(11 * var(--u)); line-height: calc(15 * var(--u)); }
