/* 온 의사소통 연구소 신청 사이트 — 화면 스타일
   기본은 흑백. 초록은 배지·안내 상자·번호에만 씁니다. 상품 색은 보드 사진에서 가져옵니다(나중에).
   제목은 세리프(Noto Serif KR), 본문은 산세리프(Noto Sans KR). 두 글꼴은 HTML의 <link>로 불러옵니다. */

:root {
  --ink: #111111;
  --ink-soft: #3d3d3d;
  --muted: #5f6368;
  --paper: #ffffff;
  --canvas: #ffffff;   /* 페이지 배경. 크림색에서 흰색으로 바꿨습니다 (2026-11-29) */
  --line: #e6e4df;
  --field: #767676;
  --accent: #2f6f5e;
  --accent-tint: #e7f2ee;
  --error: #b42318;
  --error-tint: #fdecea;
  --ph-bg: #fff1b8;
  --ph-ink: #5c4300;
  --radius: 2px;
  --serif: "Noto Serif KR", "Batang", Georgia, serif;
  --sans: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.75 var(--sans);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
body.home { background: var(--paper); }

a { color: var(--ink); text-underline-offset: 3px; }
img, svg { max-width: 100%; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.home .wrap { max-width: 1120px; }
main.wrap { padding-top: 40px; padding-bottom: 120px; }

/* 머리글 */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { font: 700 18px/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: 0.02em; }
.site-header nav { display: flex; gap: 4px; font-size: 15px; }
.site-header nav a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }

/* 제목과 글 */
h1 { font: 600 clamp(34px, 6vw, 56px)/1.15 var(--serif); margin: 8px 0 16px; letter-spacing: -0.01em; }
h2 { font: 600 clamp(24px, 4vw, 32px)/1.25 var(--serif); margin: 0 0 16px; }
h3 { font: 700 19px/1.4 var(--sans); margin: 0 0 8px; }
section { margin-top: 0; }

.eyebrow { font: 700 14px/1.4 var(--sans); letter-spacing: 0.08em; color: var(--ink); margin: 0; }
.badge {
  display: inline-block; margin-left: 10px; padding: 2px 10px; vertical-align: middle;
  background: var(--accent); color: #ffffff; border-radius: var(--radius);
  font: 700 13px/1.6 var(--sans);
}
.lead { font: 400 18px/1.8 var(--sans); color: var(--ink-soft); margin: 12px 0 0; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.body-copy { margin: 20px 0 0; color: var(--ink-soft); }
#p-description { white-space: pre-line; }
#p-description:empty { display: none; }
.back { margin: 0 0 16px; font-size: 15px; }
.back a { text-decoration: none; color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }

/* 노란 표시: 아직 입력하지 않은 값 */
.ph { background: var(--ph-bg); color: var(--ph-ink); border-radius: 4px; padding: 0 4px; }

/* 강조 안내 상자 */
.notice {
  background: var(--accent-tint); color: var(--ink);
  border-left: 4px solid var(--accent); padding: 16px 18px; margin: 20px 0 0; font-weight: 500;
}
.panel { background: var(--paper); border: 1px solid var(--line); padding: 24px; }

/* 소개 (목록 화면): 첫 화면이 바로 연구소 소개입니다 */
.about { margin-top: 80px; max-width: 40em; }
.about:first-child { margin-top: 0; }
.about .eyebrow { margin: 0 0 12px; }
.about h2 { font: 600 clamp(28px, 4vw, 40px)/1.3 var(--serif); margin: 0 0 20px; }
.about p { color: var(--ink-soft); margin: 0 0 16px; }
.about-photos { columns: 2; column-gap: 10px; margin-top: 32px; }
.about-photos figure { break-inside: avoid; margin: 0 0 10px; }
.about-photos figure.wide { column-span: all; }
.about-photos img { display: block; width: 100%; height: auto; }

/* 홈 화면: 워크숍 단체 사진 (760px 이상에서는 두 열로 쌓습니다) */
.workshop { margin-top: 80px; }
.workshop h2 { margin-bottom: 24px; }
.workshop-photos { columns: 1; column-gap: 10px; }
.workshop-photos figure { break-inside: avoid; margin: 0 0 10px; }
.workshop-photos img { display: block; width: 100%; height: auto; }
@media (min-width: 760px) { .workshop-photos { columns: 2; } }

/* 전문가 지도 (모두의 한글 상세페이지): 흑백으로 칸 진하기만 나눕니다 */
.expert-roles { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.expert-chip {
  min-height: 44px; padding: 0 14px; border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); font: 500 15px/1 var(--sans); cursor: pointer;
}
.expert-chip[aria-pressed="true"] { background: var(--ink); color: #ffffff; }
.expert-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; max-width: 520px; margin-top: 16px; }
.expert-tile {
  aspect-ratio: 1 / 1; min-height: 44px; padding: 4px; border: 0; border-radius: var(--radius);
  background: #e6e4df; color: var(--ink); font: inherit; cursor: pointer;
  display: grid; place-content: center; gap: 2px; text-align: center;
}
.expert-tile .nm { font-size: 14px; font-weight: 700; line-height: 1.3; }
.expert-tile .ct { font-size: 12px; line-height: 1.3; }
.expert-tile.lv2 { background: #6b6860; color: #ffffff; }
.expert-tile.lv3 { background: var(--ink); color: #ffffff; }
.expert-tile[disabled] { background: transparent; color: var(--muted); border: 1px dashed var(--line); cursor: default; }
.expert-tile[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.expert-status { margin: 20px 0 0; color: var(--ink-soft); }
.expert-status strong { color: var(--ink); }
.expert-list { margin-top: 8px; }
.expert-row { padding: 14px 0; border-top: 1px solid var(--line); }
.expert-where { margin: 0; font-weight: 700; }
.expert-where span { margin-left: 8px; font-weight: 400; color: var(--muted); }
.expert-tags { margin: 6px 0 0; color: var(--ink-soft); }
.expert-empty { margin: 0; padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); }

/* LIFE TALK 상세 (웹페이지형): 사진을 크게 두고 글은 짧게 둡니다. 자세한 내용은 펼쳐 봅니다 */
.card-page { margin: 8px -16px 0; background: var(--paper); }
.card-page h2 { font: 600 clamp(28px, 6vw, 40px)/1.3 var(--serif); margin: 0 0 16px; letter-spacing: -0.01em; }
.card-page .cp-huge { font: 600 clamp(34px, 9vw, 52px)/1.2 var(--serif); }
.cp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
section[id] { scroll-margin-top: 72px; }

/* 맨 위 표지 (제목과 소개 글은 사진 안에 있습니다) */
.cp-hero { position: relative; }
.cp-hero img { display: block; width: 100%; height: auto; }

/* 바로가기 */
.cp-jump { display: flex; flex-wrap: wrap; background: var(--paper); border-bottom: 1px solid var(--line); }
.cp-jump a {
  flex: 1 1 50%; display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px 6px;
  border-bottom: 1px solid var(--line); color: var(--ink); font: 700 15px/1.3 var(--sans); text-align: center; text-decoration: none;
}
.cp-jump a:nth-child(odd) { border-right: 1px solid var(--line); }
@media (min-width: 560px) {
  .cp-jump a { flex-basis: 0; border-bottom: 0; }
  .cp-jump a:nth-child(odd) { border-right: 0; }
  .cp-jump a:not(:last-child) { border-right: 1px solid var(--line); }
}

/* 구역 배경과 글 */
.cp-sec { padding: 64px 22px; }
.cp-white { background: var(--paper); }
.cp-cream { background: var(--canvas); }
.cp-dark { background: var(--ink); color: #ffffff; }
.cp-dark h2 { color: #ffffff; }
.cp-eyebrow { margin: 0 0 12px; font: 700 14px/1.4 var(--sans); letter-spacing: 0.08em; color: var(--muted); }
.cp-dark .cp-eyebrow { color: #cfcfcf; }
.cp-lead { margin: 0; font-size: 17px; line-height: 1.8; color: var(--ink-soft); }
.cp-dark .cp-lead { color: #e6e6e6; }
.cp-small { margin: 0 0 24px; font-size: 15px; color: var(--muted); }
.cp-cta { margin: 28px 0 0; }
.cp-cta a { display: inline-flex; align-items: center; min-height: 48px; color: #ffffff; font-weight: 700; text-underline-offset: 4px; }

/* 사진: 구역 사이에 가로 끝까지 펼칩니다 */
.cp-photo-sec { margin: 0; }
.cp-photo-sec img { display: block; width: 100%; height: auto; }
.cp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; margin: 0 0 32px; }
.cp-pair img { display: block; width: 100%; height: auto; }
.cp-coach { margin: 28px 0 0; padding: 0 0 0 16px; border-left: 2px solid var(--ink); }
.cp-coach p { margin: 0 0 10px; font-weight: 700; }
.cp-coach ul { margin: 0; padding-left: 18px; }
.cp-coach li { margin: 0 0 10px; line-height: 1.75; color: var(--ink-soft); }

/* 이런 분께 */
.cp-list { list-style: none; margin: 0; padding: 0; }
.cp-list li { padding: 16px 0; border-top: 1px solid var(--line); font-size: 18px; font-weight: 500; }
.cp-list li:last-child { border-bottom: 1px solid var(--line); }

/* 이런 고민: 말풍선 두 개 */
.cp-chat { display: grid; gap: 12px; }
.cp-bubble { max-width: 88%; margin: 0; padding: 14px 18px; border-radius: 18px; font-size: 17px; line-height: 1.65; }
.cp-bubble-l { justify-self: start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.cp-bubble-r { justify-self: end; background: var(--ink); color: #ffffff; border-bottom-right-radius: 4px; }

/* 이런 고민 아래 참여 후기 (2026-12-01): 사진 위에 반투명 검정 박스, 큰 제목과 작은 후기 */
.cp-review-card {
  position: relative; margin: 40px 0 0; aspect-ratio: 1087 / 1446;
  display: flex; align-items: center; justify-content: center;
  background: #2b2b2b url("images/lifetalk-review-photo.webp") center / cover no-repeat;
}
.cp-review-box {
  width: calc(100% - 40px); max-width: 520px; margin: 20px; padding: clamp(22px, 5vw, 34px);
  background: rgba(0, 0, 0, 0.66); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); color: #ffffff;
}
.cp-review-head { margin: 0 0 20px; font: 600 clamp(22px, 5.4vw, 32px)/1.35 var(--serif); color: #ffffff; word-break: keep-all; }
.cp-review-box blockquote { margin: 0; }
.cp-review-box blockquote p { margin: 0 0 14px; font: 400 clamp(14px, 3.4vw, 16px)/1.85 var(--sans); color: #f2f2f2; word-break: keep-all; }
.cp-review-box figcaption { margin-top: 16px; font: 400 14px/1.5 var(--sans); color: #bdbdbd; }

/* 번호 줄 */
.cp-numbers { list-style: none; margin: 0; padding: 0; counter-reset: cpn; }
.cp-numbers li { counter-increment: cpn; position: relative; padding: 18px 0 18px 56px; border-top: 1px solid var(--line); }
.cp-numbers li::before { content: counter(cpn, decimal-leading-zero); position: absolute; left: 0; top: 18px; font: 600 26px/1 var(--serif); }
.cp-numbers strong { display: block; font: 700 18px/1.4 var(--sans); }
.cp-numbers span { display: block; margin-top: 4px; color: var(--ink-soft); }
/* 라이프톡 운영 방식: 한눈에 보는 도표 (2026-12-02 사용자 지시). 글씨는 조금 작게 합니다. */
.cp-ops-table { width: 100%; border-collapse: collapse; margin: 0; font: 400 15px/1.6 var(--sans); color: var(--ink-soft); }
.cp-ops-table th, .cp-ops-table td { padding: 11px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.cp-ops-table tr:first-child th, .cp-ops-table tr:first-child td { border-top: 0; }
.cp-ops-table tr:last-child th, .cp-ops-table tr:last-child td { border-bottom: 1px solid var(--line); }
.cp-ops-table th { width: 7.5em; padding-right: 14px; font-weight: 700; color: var(--ink); word-break: keep-all; }
/* 라이프톡: 흐름을 한눈에 보는 도표 (2026-12-02 사용자 지시). 휴대폰에서는 줄을 바꿉니다. */
.cp-cycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: cy; border-top: 1px solid var(--line); }
.cp-cycle li { counter-increment: cy; padding: 18px 14px 20px 0; border-bottom: 1px solid var(--line); }
.cp-cycle li + li { padding-left: 14px; border-left: 1px solid var(--line); }
.cp-cycle li::before { content: counter(cy, decimal-leading-zero); display: block; margin-bottom: 10px; font: 600 22px/1 var(--serif); color: var(--accent); }
.cp-cycle strong { display: block; font: 700 16px/1.45 var(--sans); color: var(--ink); }
.cp-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cp-stages .cp-stage { margin: 0; padding: 20px 18px 22px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.cp-stages .cp-stage + .cp-stage { padding-left: 18px; border-left: 1px solid var(--line); }
.cp-stages h3 { font-size: 18px; }
/* 라이프톡 사진: 페이지에 꽉 차지 않게 줄입니다 (2026-12-02 사용자 지시) */
.card-page .cp-hero, .card-page .cp-photo-sec { max-width: 520px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.card-page .cp-review-card { max-width: 440px; width: calc(100% - 40px); margin: 40px auto 0; }
@media (max-width: 640px) {
  .cp-cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-cycle li:nth-child(3) { padding-left: 0; border-left: 0; }
  .cp-stages { grid-template-columns: minmax(0, 1fr); }
  .cp-stages .cp-stage + .cp-stage { padding-left: 0; border-left: 0; }
}

/* 12주 단계 카드 */
.cp-stage { margin-top: 14px; padding: 22px 20px; background: var(--paper); border: 1px solid var(--line); }
.cp-stage > p:not(.cp-tag) { margin: 0; color: var(--ink-soft); }
.cp-stage h3, .cp-series-card h3 { margin: 0 0 8px; font: 600 22px/1.35 var(--serif); }
.cp-tag { display: inline-block; margin: 0 0 12px; padding: 3px 10px; background: var(--ink); color: #ffffff; font: 700 13px/1.6 var(--sans); border-radius: var(--radius); }

/* 펼치는 설계 카드와 수업 기록 */
.cp-series-card { padding: 24px 0; border-top: 1px solid var(--line); }
.cp-series-card .cp-small { margin: 0 0 6px; }
details { margin-top: 12px; }
summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
details[open] > summary { margin-bottom: 8px; }
.cp-detail-title { margin: 18px 0 8px; font-weight: 700; }
.cp-detail-list { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.cp-detail-list li { margin-bottom: 6px; }
.cp-approach { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cp-approach li { padding: 12px 14px; border: 1px solid var(--line); background: var(--paper); }
.cp-approach strong { display: block; font-weight: 700; margin-bottom: 2px; }
.cp-approach span { color: var(--ink-soft); }
.cp-note { margin-top: 0; padding: 4px 0; border-top: 1px solid var(--line); }
.cp-note:last-child { border-bottom: 1px solid var(--line); }
.cp-note p { margin: 0 0 10px; color: var(--ink-soft); }

/* 목록 화면: 상품 카드 */
#products { margin-top: 80px; }
#products h2 { margin-bottom: 24px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 14px; }
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.card { display: flex; flex-direction: column; gap: 8px; background: transparent; border-top: 1px solid var(--ink); padding: 20px 0 0; }
.card p { margin: 0; }
.card-media { margin: 0 0 12px; }
.card-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.card h3 { font: 600 clamp(22px, 3vw, 26px)/1.3 var(--serif); margin: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card .muted { color: var(--ink-soft); }
.price-line { color: var(--muted); margin-top: 4px; }
.price-line strong { font: 700 20px/1.4 var(--sans); color: var(--ink); }
.stock { display: inline-block; font: 700 14px/1.4 var(--sans); color: var(--ink-soft); margin: 2px 0 0; }
.card .btn {
  align-self: flex-start; margin-top: 12px; min-height: 44px; padding: 0;
  background: none; color: var(--ink); border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; font-weight: 700;
}
.card .btn::after { content: "\2192"; margin-left: 8px; }
/* 휴대폰: 상품 카드를 두 개씩 보입니다. 글자를 조금 줄여 두 칸에 맞춥니다. */
@media (max-width: 759px) {
  .card .eyebrow { font-size: 12px; letter-spacing: 0.04em; }
  .card h3 { font-size: 18px; line-height: 1.35; }
  .card .muted { font-size: 14px; line-height: 1.5; }
  .price-line strong { font-size: 16px; }
}

/* 결제 안내 블록: 상품 화면 안과 신청 완료 화면에서만 씀 */
.payment-box { background: var(--accent-tint); color: var(--ink); padding: 14px 16px; border-radius: var(--radius); margin: 24px 0 0; }
.payment-box h3 { color: var(--ink); font: 700 15px/1.4 var(--sans); margin: 0 0 6px; }
.payment-box p { margin: 0; color: var(--ink-soft); }
.payment-box .hint { color: var(--muted); margin-top: 14px; }
.payment-box .btn.ghost { color: var(--ink); border-color: var(--ink); margin-top: 12px; }
.payment-box .kv-list > div { border-bottom: 1px solid rgba(17, 17, 17, 0.12); }
.payment-box .kv-list dt { color: var(--muted); }
.payment-box .kv-list dd { color: var(--ink); }
.payment-box .kv { border-bottom-color: rgba(17, 17, 17, 0.12); }
.payment-box .kv .k { color: var(--muted); }
.payment-box .kv .v { color: var(--ink); }

#flow-title { margin-top: 80px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li {
  counter-increment: step; position: relative; min-height: 64px;
  padding: 18px 0 18px 68px; border-top: 1px solid var(--line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 14px;
  font: 600 36px/1 var(--serif); color: var(--accent);
}

/* 상품 화면: 머리글과 사진 */
.product-head { margin: 0; }
.product-head .lead { margin-top: 14px; }
.product-head .stock { margin-top: 12px; }
.product-photo { margin: 28px 0 0; background: var(--paper); }
.product-photo img { width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: contain; }
.product-photo.is-card { max-width: 520px; }
.product-photo.is-card img { aspect-ratio: 4 / 5; }
.product-gallery { display: grid; gap: 12px; margin-top: 28px; }
.product-gallery .gallery-item { margin: 0; background: var(--paper); }
.product-gallery img { display: block; width: 100%; height: auto; object-fit: cover; }
@media (min-width: 560px) { .product-gallery { grid-template-columns: 1fr 1fr; } }

/* 상품 화면: 번호 붙은 섹션 (CSS 카운터, 글은 그대로) */
#product { counter-reset: sec; }
#product > section { margin-top: 72px; counter-increment: sec; }
#product > section > h2::before {
  content: counter(sec, decimal-leading-zero);
  display: block; margin-bottom: 10px;
  font: 700 14px/1 var(--sans); letter-spacing: 0.12em; color: var(--accent);
}

.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 12px 0; border-top: 1px solid var(--line); }
.plain li:first-child { border-top: 0; padding-top: 0; }

/* NOTICE 설명글: 회색, 작은 글씨, 줄 간격을 좁게 (2026-11-30 사용자 요청). 제목 줄(STEP 1 신규 수업 등)은 굵게 */
#p-notices { font-size: 14px; line-height: 1.5; color: var(--muted); }
#p-notices li { padding: 6px 0; }
#p-notices li.notice-head { margin-top: 14px; padding: 0 0 4px; border-top: 0; color: var(--ink); font-weight: 700; }
#p-notices li.notice-head:first-child { margin-top: 0; }
#p-notices li.notice-head + li { border-top: 0; }

/* 구성: 카드 형태 (2열 이상일 때) */
#p-includes { display: grid; gap: 12px; }
#p-includes li { border: 1px solid var(--line); padding: 16px 18px; background: var(--paper); }
.include-box { margin-top: 12px; padding: 4px 18px; border: 1px solid var(--line); background: var(--paper); }
@media (min-width: 560px) {
  #p-includes { grid-template-columns: 1fr 1fr; }
}

/* 커리큘럼: 큰 번호 행 */
.curriculum { list-style: none; margin: 0; padding: 0; counter-reset: unit; display: grid; gap: 0; }
.curriculum li {
  counter-increment: unit; position: relative;
  padding: 18px 0 18px 64px; border-top: 1px solid var(--line);
}
.curriculum li::before {
  content: counter(unit, decimal-leading-zero); position: absolute; left: 0; top: 16px;
  font: 600 26px/1 var(--serif); color: var(--ink);
}
.curriculum strong { display: block; font: 700 18px/1.5 var(--sans); }
.unit-body { display: block; margin-top: 4px; color: var(--ink-soft); }

/* 아동 등록 커리큘럼: 4개 영역으로 묶어 보입니다. 번호는 화면에 없고, 영역 사이는 여백으로 구분합니다 (2026-12-03). */
.cur-lead { margin: 14px 0 0; font: 400 17px/1.7 var(--sans); color: var(--ink-soft); }
.cur-lead[hidden], .cur-groups[hidden] { display: none; }
.cur-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; margin-top: 32px; }
.cur-group { min-width: 0; padding-top: 14px; border-top: 2px solid var(--accent); }
.cur-group-name { margin: 0 0 12px; min-height: 1.6em; font: 700 20px/1.4 var(--serif); color: var(--ink); word-break: keep-all; }
.cur-items { list-style: none; margin: 0; padding: 0; }
.cur-item { padding: 10px 0; border-bottom: 1px solid var(--line); font: 500 16px/1.5 var(--sans); color: var(--ink); word-break: keep-all; overflow-wrap: break-word; }
.cur-toggle { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; padding: 0 2px; border: 0; background: none; font: 700 15px/1.4 var(--sans); color: var(--accent); cursor: pointer; }
.cur-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cur-detail { margin-top: 6px; }
.cur-detail-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.cur-detail-row:last-child { border-bottom: 0; }
.cur-detail-row strong { display: block; font: 700 15px/1.5 var(--sans); color: var(--ink); word-break: keep-all; }
.cur-detail-row p { margin: 4px 0 0; font: 400 15px/1.6 var(--sans); color: var(--ink-soft); word-break: keep-all; }
@media (min-width: 900px) {
  .cur-groups { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
  .cur-group-name { font-size: 22px; }
  .cur-item { font-size: 17px; }
}
.roadmap { margin: 20px 0 0; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); font-weight: 500; }

/* 금액과 배송 */
.price { font: 600 clamp(28px, 5vw, 36px)/1.2 var(--serif); margin: 0 0 16px; }
#p-shipping { margin: 0; padding: 16px 18px; background: var(--accent-tint); border-left: 4px solid var(--accent); }
.ship-table { width: 100%; border-collapse: collapse; margin: 0; font: 400 16px/1.6 var(--sans); color: var(--ink-soft); }
.ship-table th, .ship-table td { padding: 10px 0; border-top: 1px solid rgba(0, 122, 86, 0.2); text-align: left; vertical-align: top; }
.ship-table tr:first-child th, .ship-table tr:first-child td { border-top: 0; }
.ship-table th { width: 6.5em; padding-right: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.form-total { margin: 20px 0 0; padding: 14px 16px; background: var(--accent-tint); border-left: 4px solid var(--accent); font: 700 18px/1.5 var(--sans); }
.form-detail { margin: 6px 0 0; padding: 0 4px; font: 400 13px/1.6 var(--sans); color: var(--ink-soft); }
.form-detail p { margin: 0; }
.form-weekly { margin: 20px 0 0; padding: 0 4px; font: 400 14px/1.6 var(--sans); color: var(--ink-soft); }
.form-weekly + .form-total { margin-top: 8px; }

/* 신청 폼 */
#apply .form-card { background: var(--paper); border: 0; border-top: 1px solid var(--ink); padding: 24px 0 0; position: relative; margin-top: 8px; }
.field { margin: 24px 0 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font: 700 16px/1.5 var(--sans); margin: 0 0 8px; padding: 0; }
.req { color: var(--accent); font-size: 13px; font-weight: 700; margin-left: 4px; }

input:not([type="radio"]):not([type="checkbox"]), select, textarea {
  width: 100%; min-height: 48px; padding: 10px 2px;
  border: 0; border-bottom: 1px solid var(--field); border-radius: 0;
  background: transparent; color: var(--ink); font: inherit;
}
textarea { min-height: 96px; resize: vertical; }

/* 아동 등록: 달력, 시간표, 수업 내용 */
.pick-title { margin: 0 0 10px; font: 700 16px/1.5 var(--sans); }
.pick-sub { margin: 0 0 8px; font: 700 14px/1.4 var(--sans); color: var(--muted); }
.calendar { padding: 14px; border: 1px solid var(--line); background: var(--paper); }
.cal-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 6px; }
.cal-title { margin: 0; text-align: center; font: 700 17px/1.4 var(--sans); }
.cal-nav { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: #ffffff; color: var(--ink); font: 700 20px/1 var(--sans); cursor: pointer; }
.cal-nav:disabled { color: var(--muted); cursor: default; }
.cal-weekdays, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 10px; text-align: center; }
.cal-wd { min-height: 44px; border: 1px solid var(--line); background: #ffffff; color: var(--ink); font: 700 15px/1 var(--sans); cursor: pointer; }
.cal-wd:disabled { color: #b5b5b1; background: transparent; cursor: default; }
.cal-wd.is-pick { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.cal-day { display: flex; align-items: center; justify-content: center; min-height: 38px; font: 400 15px/1 var(--sans); color: var(--ink); }
.cal-day.is-empty { color: transparent; }
.cal-day.is-pick { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.timetable { margin-top: 14px; }
.tt-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.tt-btn { min-height: 48px; padding: 8px 12px; border: 1px solid var(--ink); background: #ffffff; color: var(--ink); font: 700 16px/1.3 var(--sans); cursor: pointer; }
.tt-btn.is-pick { background: var(--ink); color: #ffffff; }
.contents { margin-top: 16px; padding: 14px 16px; border-left: 4px solid var(--accent); background: var(--accent-tint); }
.contents-title { margin: 0 0 8px; font: 700 15px/1.4 var(--sans); }
.contents-list { margin: 0; padding-left: 1.3em; font: 400 15px/1.7 var(--sans); }
/* 아동 등록: 수업 및 상담으로 원하는 내용 */
.wish-box { margin: 24px 0 0; padding: 14px 16px 16px; border: 1px solid var(--line); min-width: 0; }
.wish-box legend { padding: 0 6px; font: 700 16px/1.5 var(--sans); }
.wish-box textarea { min-height: 200px; margin-top: 6px; }
.cal-day.is-open { min-height: 44px; padding: 0; border: 1px solid var(--ink); background: #ffffff; font-weight: 700; cursor: pointer; }
.cal-day.is-open.is-pick { background: var(--ink); color: #ffffff; text-decoration: none; }
.cal-day.is-off { color: #b5b5b1; }
.cal-day.is-week { text-decoration: underline; text-underline-offset: 4px; }
.contents-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.contents-check li { margin: 0; }
.contents .cart-add { width: 100%; min-height: 48px; margin-top: 12px; }
.cart-add:disabled { color: var(--muted); border-color: var(--line); cursor: default; }
.cart { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--ink); background: #ffffff; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.cart-item:first-child { border-top: 0; }
.cart-line { margin: 0; font: 700 15px/1.5 var(--sans); }
.cart-sub { margin: 4px 0 0; font: 400 13px/1.6 var(--sans); color: var(--ink-soft); }
.cart-remove { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: #ffffff; color: var(--ink); font: 700 14px/1 var(--sans); cursor: pointer; }
.cart-sum { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ink); font: 400 14px/1.7 var(--sans); }
.cart-sum p { margin: 0; }
.cart-total { margin: 8px 0 0; font: 700 18px/1.4 var(--sans); }

input[type="radio"], input[type="checkbox"] {
  width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; flex: none;
  accent-color: var(--ink); border: 0;
}

.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 16px;
  border: 1px solid var(--field); border-radius: var(--radius); font-weight: 500; cursor: pointer; margin: 0;
}
.radio-row label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #ffffff; }

label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; min-height: 44px; margin: 0; cursor: pointer; }
label.check input { margin-top: 6px; }

.consents { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.consent b { color: var(--accent); }

/* 입력 오류 */
[aria-invalid="true"]:not([type="radio"]):not([type="checkbox"]) { border-bottom-color: var(--error); }
[aria-invalid="true"][type="radio"], [aria-invalid="true"][type="checkbox"] { outline: 2px solid var(--error); outline-offset: 2px; }
.field-error { color: var(--error); font-weight: 700; font-size: 15px; margin: 6px 0 0; }
.form-message { margin: 0 0 16px; padding: 12px 14px; background: var(--accent-tint); color: var(--ink); font-weight: 500; border-radius: var(--radius); }
.form-message.is-error { background: var(--error-tint); color: var(--error); }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: var(--radius);
  background: var(--ink); color: #ffffff; font: 700 16px/1 var(--sans);
  text-decoration: none; cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn.submit { width: 100%; margin-top: 20px; min-height: 56px; font-size: 17px; }
.btn:disabled { opacity: 0.5; cursor: wait; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* 신청 완료 */
.result { margin-top: 28px; padding-top: 24px; border-top: 4px solid var(--accent); }
.result h3 { font: 600 24px/1.35 var(--serif); margin: 0 0 12px; }
.result .payment-box { margin: 16px 0; }

/* 키-값 줄 */
.kv-list { margin: 0; }
.kv-list > div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.kv-list dt { color: var(--muted); }
.kv-list dd { margin: 0; font-weight: 700; word-break: break-all; }
@media (min-width: 560px) { .kv-list > div { grid-template-columns: 120px 1fr; } }
.kv { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.kv .k { color: var(--muted); min-width: 84px; }
.kv .v { flex: 1 1 auto; font-weight: 700; }

/* 하단 고정 신청 바 (상품 화면, 신청 폼이 보이지 않을 때) */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--line);
}
.sticky-cta.is-hidden { display: none; }
.sticky-cta-price { font: 700 17px/1.3 var(--sans); margin: 0; }
.sticky-cta .btn { min-height: 48px; padding: 0 22px; text-decoration: none; }

/* 정책 화면 */
.policy { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.policy h2 { font-size: 26px; }
.policy h3 { font: 700 17px/1.5 var(--sans); margin: 20px 0 6px; }
.policy p { margin: 0; max-width: 65em; }
.policy .kv-list > div { grid-template-columns: 1fr; gap: 2px; }
@media (min-width: 560px) { .policy .kv-list > div { grid-template-columns: 180px 1fr; gap: 12px; } }

/* 바닥글 (검정 바탕) */
.site-footer { background: var(--ink); color: #d6d6d6; padding: 40px 0 56px; font-size: 16px; }
.site-footer p { margin: 6px 0; }
.site-footer strong { color: #ffffff; }
.site-footer a { color: #ffffff; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 18px 0 0; }
.site-footer .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* 봇 방지용 숨김 칸은 화면 밖에 둡니다 (display: none을 쓰면 봇이 칸을 건너뛰므로) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 아동 등록 신청 칸: 휴무일, 시간표 안내, 장바구니 옵션 */
.cal-day.is-holiday { flex-direction: column; gap: 3px; min-height: 44px; color: #b5b5b1; font: 400 15px/1 var(--sans); }
.cal-day.is-holiday small { font: 400 11px/1 var(--sans); color: var(--muted); }
/* 수업 시작일 표시 (2026-11-30): 날짜 아래 작은 글씨 */
.cal-day.is-start { flex-direction: column; gap: 3px; }
.cal-day.is-start small { font: 700 11px/1.1 var(--sans); color: var(--accent); }
.cal-day.is-start.is-pick small { color: #ffffff; }
.tt-btn:disabled { color: var(--muted); border-color: var(--line); background: #f3f2ef; cursor: default; }
.tt-notes { margin-top: 10px; }
.tt-note { margin: 0 0 4px; font: 400 13px/1.6 var(--sans); color: var(--ink-soft); }
.field-note { margin: 6px 0 0; font: 400 13px/1.6 var(--sans); color: var(--ink-soft); }
.cart-options { display: grid; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.cart-months { display: grid; gap: 6px; font: 700 15px/1.4 var(--sans); }
.cart-months select { min-height: 44px; font: 400 15px/1.4 var(--sans); }
.cart-note { color: var(--ink-soft); font-size: 13px; }
