/* 페이지 레이아웃. 컴포넌트는 components.css, 값은 tokens.css를 씁니다 */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--page); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.sec { padding-block: 72px; }
@media (min-width: 900px) { .sec { padding-block: var(--space-24); } }
.sec--alt { background: var(--surface-alt); --page: var(--surface-alt); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: var(--accent-strong); }

/* 헤더: 한 줄 */
.hdr { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); }
/* 메인: 헤더를 히어로 위에 투명하게 얹고, 내려가면 흰 바탕 */
.home { --hdr-h: 77px; }
.home .hdr { background: transparent; border-bottom-color: transparent; transition: background-color .25s, border-color .25s; }
.home .hdr.is-scrolled, .home .hdr:has(.gnb.is-open) { background: #fff; border-bottom-color: var(--line); }
.home .hero { margin-top: calc(-1 * var(--hdr-h)); padding-top: var(--hdr-h); }
.home .hero .wrap { padding-top: 48px; }
.hdr .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { --lh: 22px; display: flex; align-items: last baseline; gap: 14px; text-decoration: none; color: var(--ink); }
/* 로고 이미지(337×58) 안 "K-BEAUTY ON" 글자 아래 끝은 이미지 아래에서 4px 위. 그만큼 내려 행사명 글자 아래 끝(기준선)에 맞춥니다. 플렉스 기준선은 이미지 아래 끝이라 margin이 아니라 top으로 옮깁니다 */
.logo img { flex: none; height: var(--lh); width: auto; position: relative; top: calc(var(--lh) * 4 / 58); }
/* 행사명은 한 위계로 한 줄. 로고와는 가는 세로선으로 나눕니다 */
.logo__name { padding-left: 14px; border-left: 1px solid var(--line-strong); font: 700 16px/1.3 var(--font-sans); letter-spacing: -0.02em; white-space: nowrap; }
.gnb { display: flex; margin-left: auto; gap: 40px; }
.gnb a { position: relative; padding-block: 13px; color: var(--ink); text-decoration: none; font: 700 18px/1 var(--font-sans); letter-spacing: -0.02em; transition: color .2s; }
.gnb a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .3s var(--ease-out); }
.gnb a:hover, .gnb a[aria-current="page"] { color: var(--accent); }
.gnb a:hover::after, .gnb a[aria-current="page"]::after { transform: scaleX(1); }
.hdr .kb-btn { margin-left: 8px; }
/* 메인 첫 화면: 헤더 신청 버튼은 폭까지 접어 메뉴가 오른쪽 끝에 붙고, 스크롤하면 메뉴가 밀리며 버튼이 펼쳐집니다.
   접힌 버튼 앞의 flex gap(24px, 좁은 화면 12px)도 음수 여백으로 지웁니다 */
.hdr .kb-btn { max-width: 160px; overflow: hidden; white-space: nowrap; transition: max-width .4s var(--ease-out), padding .4s var(--ease-out), margin .4s var(--ease-out), opacity .3s, visibility .4s; }
.hdr.is-cta-visible .kb-btn { max-width: 0; padding-inline: 0; margin-left: -24px; border-width: 0; opacity: 0; visibility: hidden; }
@media (max-width: 999px) { .hdr.is-cta-visible .kb-btn { margin-left: -12px; } }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; margin-right: -12px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 999px) {
  .home { --hdr-h: 65px; }
  .hdr .wrap { min-height: 64px; flex-wrap: wrap; gap: 12px; }
  .logo { --lh: 19px; gap: 10px; } .logo__name { padding-left: 10px; font-size: 14px; }
  @media (max-width: 480px) { .logo__name { white-space: normal; } .logo__name span { display: block; } }
  .menu-btn { display: grid; place-items: center; }
  .hdr .kb-btn { margin-left: 0; }
  @media (max-width: 480px) { .hdr .kb-btn { display: none; } }
  .gnb { display: none; order: 5; flex-basis: 100%; flex-direction: column; gap: 0; margin: 0 0 8px; }
  .gnb.is-open { display: flex; }
  .gnb a { padding: 16px 4px; border-top: 1px solid var(--line); }
  .gnb a::after { display: none; }
}

/* 푸터 */
.ftr { border-top: 1px solid var(--line); padding-block: 48px 40px; font-size: 15px; color: var(--ink-sub); background: #fff; }
.ftr .wrap { display: grid; gap: 16px; }
.ftr-org { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.ftr-org span { display: flex; align-items: center; }
/* 두 로고 SVG는 잉크 경계로 잘라 둠. 보건복지부는 여백 자르기 전 36px 박스에서 보이던 실제 크기(24px) 유지.
   진흥원은 국문 글자 높이가 같도록: 보건복지부 글자는 로고 높이의 51.7%, 진흥원 글자는 64.8% → 24×.517 ≈ 19×.648 ≈ 12.4px */
.ftr-org img { height: 24px; width: auto; }
/* 진흥원 로고는 글자가 아래맞춤이라 가운데맞춤인 보건복지부보다 글자가 3px 낮게 보임 → 그만큼 올림 */
.ftr-org span:last-child img { height: 20px; position: relative; top: -3px; }
/* 모바일에선 두 로고가 위아래로 쌓여 폭(94 vs 192px)이 그대로 비교됨. 진흥원을 조금 줄여 덩어리를 맞춥니다 */
@media (max-width: 600px) { .ftr-org span:last-child img { height: 17px; top: -2px; } .ftr-org { gap: 12px 40px; } }
.ftr-org b { color: var(--ink); margin-right: 14px; }
.ftr address { display: flex; flex-wrap: wrap; gap: 4px 20px; font-style: normal; line-height: 1.8; }
.ftr address b { color: var(--ink); font-weight: 600; }
/* 안내 상자 안의 연락처: 전화와 이메일을 간격으로 나눕니다 */
.contact { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.ftr-bottom a { display: inline-block; padding-block: 11px; margin-block: -11px; color: var(--accent); text-decoration: none; font-weight: 700; }

/* 페이지 머리 */
.page-head { background: radial-gradient(70% 120% at 0% 0%, var(--wash-peach) 0%, transparent 65%), radial-gradient(50% 120% at 100% 100%, var(--wash-rose) 0%, transparent 70%), #fff; padding-block: 56px 48px; }
.page-head h1 { font: 700 36px/1.3 var(--font-sans); letter-spacing: -0.03em; }
.page-head p { margin-top: 10px; color: var(--ink-sub); font-size: 18px; }
@media (max-width: 600px) { .page-head { padding-block: 40px 32px; } .page-head h1 { font-size: 28px; } }

/* 히어로 */
/* 포스터(design/poster-src/poster-wide.png)를 화면 가득 깔고, 아래쪽은 흰색으로 풀어 조회 박스가 살짝 겹치게 합니다.
   처음 열 때 포스터가 오른쪽 작은 창에서 화면 전체로 열리고, 마우스를 따라 포스터와 접수 카드가 서로 반대로 조금 움직입니다 */
.hero { position: relative; isolation: isolate; display: grid; grid-template-rows: 1fr auto; min-height: calc(min(100svh, 900px) + var(--hero-tail)); background: #fff; --page: #fff; --hero-tail: 200px; }
.hero > .wrap { width: 100%; align-self: center; }
.hero-stage { position: absolute; inset: 0; z-index: -1; overflow: hidden; -webkit-mask-image: linear-gradient(#000 calc(100% - 640px), transparent); mask-image: linear-gradient(#000 calc(100% - 640px), transparent); animation: stage-open 1.6s var(--ease-out) .1s both; }
.hero-stage__img { position: absolute; inset: -24px; background: url(/assets/img/hero.webp) right center / cover no-repeat; transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform 1.2s var(--ease-out); animation: stage-settle 2.4s var(--ease-out) both; }
.hero-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(251,241,234,.92) 0%, rgba(251,241,234,.55) 38%, rgba(251,241,234,0) 62%); }
/* 좁은 화면: 위쪽 제목 구간만 밝게 덮고, 아래 접수 카드와 거점 띠 뒤로는 포스터 질감이 그대로 보이게 합니다 */
@media (max-width: 959px) { .hero-stage__img { background-position: 88% 70%; } .hero-stage::after { background: linear-gradient(180deg, rgba(251,241,234,.92) 0%, rgba(251,241,234,.8) 36%, rgba(251,241,234,0) 52%); } }
@keyframes stage-open { from { clip-path: inset(14% 8% 14% 46% round 40px); } to { clip-path: inset(0 round 0); } }
@keyframes stage-settle { from { scale: 1.18; } }
.hero .wrap { display: grid; gap: 40px; padding-block: 48px; }
.hero-top { display: grid; gap: 40px; align-items: end; }
@media (min-width: 960px) { .hero-top { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; } }
.hero-head { display: grid; justify-items: start; gap: 24px; min-width: 0; }
.hero h1 { font: 700 30px/1.32 var(--font-sans); letter-spacing: -0.04em; text-wrap: balance; }
.hero h1 { color: var(--brown); }
.hero h1 em { font-style: normal; color: var(--accent); }
@media (min-width: 600px) { .hero h1 { font-size: 52px; line-height: 1.24; } }
.hero-lead { max-width: 32em; font: 500 18px/1.65 var(--font-sans); color: var(--ink-sub); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.apply-card { gap: 22px; padding: 32px 32px 44px; }
/* 히어로 접수 카드: 왼쪽 위 흰빛에서 오른쪽 아래 코랄로. 반투명이라 뒤 질감이 조금 비칩니다 */
.hero .apply-card { background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 0 0 1px rgba(255,255,255,.6) inset, 0 24px 60px rgba(150,54,25,.14); }
.kb-card .apply-due { padding-right: 0; }
.apply-due { display: grid; gap: 8px; }
.apply-due small { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 700 16px/1.4 var(--font-sans); color: var(--ink-sub); }
/* 남은 날: 오른쪽 끝 작은 칩. 비어 있으면(접수 전·마감 후) 숨깁니다 */
.apply-due small b { padding: 4px 12px; border-radius: var(--radius-pill); background: #fff; color: var(--accent-strong); box-shadow: 0 1px 4px rgba(46,22,10,.08); font: 700 14px/20px var(--font-sans); }
.apply-due small b:empty { display: none; }
.apply-due strong { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font: 800 40px/1.15 var(--font-sans); letter-spacing: -0.035em; color: var(--brown); }
.apply-due strong em { font-style: normal; font-weight: 700; font-size: 26px; letter-spacing: -0.02em; color: var(--brown); }
.apply-card dl { display: grid; gap: 12px; margin: 0; padding-top: 22px; border-top: 1px solid rgba(46,22,10,.14); }
.apply-card dl div { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: baseline; }
.apply-card dt { font: 600 15px/1.5 var(--font-sans); color: var(--ink-muted); }
.apply-card dd { margin: 0; font: 600 17px/1.5 var(--font-sans); color: var(--ink); }
@media (max-width: 600px) { .apply-due strong { font-size: 34px; } .apply-due strong em { font-size: 22px; } }

/* 바로가기 */

/* 프로그램 */
.prog { display: grid; gap: 12px; }
.sess { display: grid; gap: 6px 32px; padding: 24px 32px; border-radius: var(--radius-lg); background: var(--surface-alt); }
.sec--alt .sess { background: var(--surface); }
@media (min-width: 800px) { .sess { grid-template-columns: 150px 1fr auto; align-items: center; } }
.sess time { font: 700 17px/1.4 var(--font-sans); color: var(--brown); font-variant-numeric: tabular-nums; }
.sess h3 { font: 700 20px/1.45 var(--font-sans); letter-spacing: -0.02em; }
.sess h3 small { display: block; margin-top: 2px; font: 500 15px/1.5 var(--font-sans); color: var(--ink-sub); }
.sess .who { font-size: 15px; color: var(--ink-muted); }
.sess--break { background: transparent !important; border: 1px dashed var(--line-strong); padding-block: 16px; }
.sess--break h3 { font-weight: 600; color: var(--ink-sub); font-size: 18px; }
.sess--match { background: linear-gradient(110deg, var(--wash-peach) 0%, var(--wash-rose) 100%) !important; }
.sess--match time, .sess--match h3 { color: var(--accent-strong); }
.sess--match .who { color: var(--ink-sub); }
.prog-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.sec--tight { padding-top: 0; }
.sec--lookup { padding-block: 0 56px; }
@media (max-width: 600px) { .sec--lookup { padding-block: 40px; } }

/* 거점 */
.hubs { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
@media (min-width: 1100px) { .hubs { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; } }
.sec--alt .kb-hub { background: var(--surface); }
.kb-hub__line { margin: 0; word-break: keep-all; text-wrap: pretty; color: var(--ink-sub); font-size: 16px; line-height: 1.6; }
/* 거점 상세(페이지·팝업 공용). 머리는 파스텔 워시, 본문은 사실 목록 + 요약자료 */
.sec--hubd { padding-top: 40px; }
.sec--hubd .hubd { border: 1px solid var(--line); }
.hubd { display: grid; border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.hubd__head { display: grid; gap: 14px; padding: 44px 48px 40px; background: radial-gradient(80% 140% at 0% 0%, var(--wash-peach) 0%, transparent 60%), radial-gradient(60% 120% at 100% 100%, var(--wash-rose) 0%, transparent 70%), #fff; }
.hubd__where { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; font: 700 17px/1.3 var(--font-sans); color: var(--ink); }
.hubd__where .kb-flag { width: 34px; margin: 0; }
.hubd__where em { font-style: normal; font-weight: 500; color: var(--ink-muted); }
.hubd__where .kb-tag { margin-left: 4px; }
.hubd__name { margin: 0; font: 700 36px/1.25 var(--font-sans); letter-spacing: -0.035em; color: var(--brown); text-wrap: balance; }
.hubd__name small { margin-left: 10px; font: 500 20px/1.3 var(--font-sans); letter-spacing: -0.01em; color: var(--ink-muted); }
.hubd__pitch { margin: 0; max-width: 34em; font: 500 19px/1.55 var(--font-sans); color: var(--ink-sub); word-break: keep-all; text-wrap: pretty; }
.hubd__body { display: grid; gap: 40px; padding: 40px 48px 8px; }
@media (min-width: 900px) { .hubd__body { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; } }
.hubd__facts { display: grid; gap: 28px; }
.hubd__facts section { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.hubd__facts section:first-child { padding-top: 0; border-top: 0; }
.hubd__facts h2 { margin: 0; font: 700 15px/1.6 var(--font-sans); color: var(--accent-strong); }
.hubd__facts ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.hubd__facts li { position: relative; padding-left: 14px; font: 500 17px/1.6 var(--font-sans); color: var(--ink); word-break: keep-all; text-wrap: pretty; }
.hubd__facts li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.hubd__facts p { margin: 0; font: 500 17px/1.6 var(--font-sans); color: var(--ink); }
.hubd__facts small { grid-column: 2; display: block; margin-top: -10px; font-size: 14px; color: var(--ink-muted); }
.hubd__summary { margin: 0; display: grid; gap: 12px; }
.hubd__summary > a { display: block; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(46,22,10,.08); transition: transform .35s var(--ease-out), box-shadow .35s; }
.hubd__summary > a:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(46,22,10,.14); }
.hubd__summary img { display: block; width: 100%; height: auto; }
.hubd__summary figcaption { display: flex; align-items: center; gap: 4px 16px; font-size: 15px; color: var(--ink-muted); }
.hubd__summary figcaption span { margin-right: auto; font-weight: 700; color: var(--ink); }
.hubd__summary figcaption a { color: var(--accent-strong); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hubd__actions { display: flex; flex-wrap: wrap; gap: 12px; padding: 32px 48px 40px; }
.hubd--tbd .hubd__name { color: var(--ink-sub); }
@media (max-width: 600px) {
  .sec--hubd { padding-top: 0; } .sec--hubd .wrap { padding: 0; } .sec--hubd .hubd { border: 0; border-radius: 0; }
  .hubd__head { padding: 32px 24px 28px; }
  .hubd__name { font-size: 28px; } .hubd__name small { display: block; margin: 4px 0 0; font-size: 16px; }
  .hubd__pitch { font-size: 17px; }
  .hubd__body { padding: 28px 24px 0; gap: 32px; }
  .hubd__facts section { grid-template-columns: 1fr; gap: 6px; } .hubd__facts small { grid-column: 1; margin-top: 0; }
  .hubd__actions { flex-direction: column; padding: 28px 24px 32px; } .hubd__actions .kb-btn { width: 100%; }
}

/* 팝업 껍데기: 메인에서 거점 상세·상담신청을 여는 대화상자 */
@keyframes modal-in { from { opacity: 0; transform: translateY(20px) scale(.985); } }
@keyframes modal-bg { from { opacity: 0; } }
.kb-modal { width: min(1040px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 0; border-radius: var(--radius-lg); background: #fff; color: var(--ink); box-shadow: 0 40px 120px rgba(46,22,10,.35); overscroll-behavior: contain; }
.kb-modal[open] { animation: modal-in .4s var(--ease-out); }
.kb-modal[open]::backdrop { animation: modal-bg .3s; }
.kb-modal__close { position: absolute; top: 16px; right: 16px; z-index: 1; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--ink); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 0 0 1px rgba(46,22,10,.1) inset; cursor: pointer; display: grid; place-items: center; transition: background-color .2s, transform .3s var(--ease-out); }
.kb-modal__close:hover { background: #fff; transform: rotate(90deg); }
.kb-modal__close svg { width: 20px; height: 20px; }
.kb-modal--hub { overflow: auto; }
.kb-modal--apply { width: min(720px, calc(100vw - 32px)); height: calc(100svh - 32px); display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.kb-modal--apply:not([open]) { display: none; }
.kb-modal__bar { position: relative; display: flex; align-items: center; min-height: 64px; padding: 0 24px; border-bottom: 1px solid var(--line); font: 700 19px/1.3 var(--font-sans); }
.kb-modal__bar .kb-modal__close { top: 10px; right: 12px; background: transparent; box-shadow: none; }
.kb-modal--apply iframe { width: 100%; height: 100%; border: 0; display: block; }
html:has(.kb-modal[open]) { overflow: hidden; }
@media (max-width: 600px) {
  .kb-modal { width: 100vw; max-width: 100vw; max-height: 100svh; margin: 0; border-radius: 0; }
  .kb-modal--hub { margin-top: auto; max-height: 94svh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .kb-modal--apply { height: 100svh; }
}
/* 임베드 모드(팝업 안 iframe): 머리글 없이 바로 본문 */
body[data-embed] .page-head { display: none; }
body[data-embed] .sec { padding-top: 32px !important; padding-bottom: 48px; }
body[data-embed] .kb-steps { scroll-margin-top: 16px; }
dialog::backdrop { background: rgba(36, 32, 30, .6); }

/* 조회 배너 */
.lookup { display: grid; gap: 28px; padding: 48px; border-radius: var(--radius-lg); background: linear-gradient(90deg, var(--wash-sand) 0%, var(--wash-rose) 100%); }
@media (min-width: 900px) { .lookup { grid-template-columns: 1fr 1.25fr; align-items: center; } }
@media (max-width: 600px) { .lookup { padding: 32px 24px; } }
.lookup h2 { font: 700 30px/1.35 var(--font-sans); letter-spacing: -0.03em; }
.lookup p { color: var(--ink-sub); margin-top: 10px; }
.lookup form { display: grid; gap: 12px; }
@media (min-width: 600px) { .lookup form { grid-template-columns: 1fr 1fr auto; align-items: end; } }

/* 안내 사항 */
/* 안내 사항: 진흥원 누리집식 목록. 굵은 윗선, 항목마다 가는 선, 왼쪽 제목·오른쪽 본문 */
.notes { border-top: 2px solid var(--ink); }
.notes section { display: grid; gap: 8px; padding: 26px 8px; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .notes section { grid-template-columns: 240px 1fr; gap: 32px; padding: 28px 24px; } }
.notes h3 { margin: 0; font: 700 18px/1.6 var(--font-sans); letter-spacing: -0.02em; }
.notes p { margin: 0; color: var(--ink-sub); line-height: 1.75; }
.notes .is-warn h3 { color: var(--accent); }
.ov-lead { max-width: 960px; margin: 0 auto 48px; font-size: 19px; line-height: 1.75; text-align: center; color: var(--ink-sub); text-wrap: pretty; word-break: keep-all; }
/* 데스크톱에선 두 문장을 한 줄씩. 모바일에선 그냥 이어서 흐릅니다 */
@media (min-width: 900px) { .ov-lead span { display: block; } }

/* 신청서 */
.form-wrap { max-width: 640px; margin: 0 auto; display: grid; gap: 32px; }
.form-tabs { display: flex; justify-content: center; }
.form-tabs .kb-tabs { margin: 0; }
.form-tabs a { padding: 11px 0; font: 600 22px/1.3 var(--font-sans); letter-spacing: -0.02em; color: var(--ink-muted); text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) center calc(100% - 8px) / 0 3px no-repeat; }
.form-tabs a[aria-current="page"] { color: var(--ink); font-weight: 700; background-size: 100% 3px; }
@media (max-width: 600px) { .form-tabs a { font-size: 17px; } }
.form { display: grid; gap: 24px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 24px; min-width: 0; }
.form > fieldset > legend { font: 700 24px/1.35 var(--font-sans); letter-spacing: -0.02em; margin-bottom: 4px; padding: 0; }
.form .actions { display: flex; gap: 12px; justify-content: space-between; padding-top: 8px; }
.form .actions .kb-btn--accent { margin-left: auto; }
@media (max-width: 600px) { .form .actions { flex-direction: column-reverse; } .form .actions .kb-btn { width: 100%; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.consent { display: grid; gap: 12px; padding: 20px 24px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); }
.consent dl { display: grid; grid-template-columns: 88px 1fr; gap: 6px 12px; margin: 0; font-size: 15px; color: var(--ink-sub); }
.consent dt { font-weight: 700; color: var(--ink); }
.consent dd { margin: 0; }
.kb-chip input:disabled { cursor: not-allowed; }
.kb-chip input:disabled + span { background: transparent; color: var(--ink-muted); border-color: var(--line); border-style: dashed; }
.kb-chip span small { margin-left: 6px; font-weight: 500; color: var(--ink-muted); }
.kb-chip input:checked + span small { color: var(--accent-strong); opacity: .8; }
.choice { display: grid; gap: 20px; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.choice h2 { font: 700 19px/1.4 var(--font-sans); }
.choice [data-times] { display: grid; gap: 32px; }
.kb-steps { scroll-margin-top: 96px; }
@media (max-width: 999px) { .kb-steps { scroll-margin-top: 80px; } }
/* 시간 칸: 알약 13개를 늘어놓지 않고 같은 폭의 격자로. 시각 아래에 신청 건수 */
.slot-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; }
.slot-chips .kb-chip span { width: 100%; min-height: 52px; flex-direction: column; justify-content: center; gap: 2px; padding: 6px 4px; font-size: 15px; text-align: center; font-variant-numeric: tabular-nums; }
.slot-chips .kb-chip span small { margin: 0; font-size: 12px; }
.slot-chips .kb-chip input:checked + span::before { display: none; }
/* 칸이 많아 선이 시끄럽지 않게, 고르지 않은 칸은 테두리 없이 연한 면만 */
.slot-chips .kb-chip span { border-radius: var(--radius-sm); }
.slot-chips .kb-chip input:disabled + span { background: transparent; border-color: var(--line-strong); }
@media (max-width: 600px) { .slot-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.review { display: grid; gap: 20px; }
.review section { display: grid; gap: 8px; padding: 20px 24px; border-radius: var(--radius-md); background: var(--surface-alt); }
.review header { display: flex; justify-content: space-between; align-items: center; }
.review h2 { font: 700 18px/1.4 var(--font-sans); }
.review header button { padding: 13px 8px; margin: -13px -8px; border: 0; background: none; color: var(--accent-strong); font: 600 15px/1 var(--font-sans); text-decoration: underline; cursor: pointer; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 16px; margin: 0; font-size: 16px; }
.kv dt { color: var(--ink-sub); }
.kv dd { margin: 0; font-weight: 600; word-break: break-all; }
@media (max-width: 600px) { .kv { grid-template-columns: 96px 1fr; font-size: 15px; } }

/* 접수완료·조회 결과 */
.ticket { display: grid; gap: 12px; justify-items: center; padding: 40px 24px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--wash-peach) 10%, var(--wash-rose) 95%); text-align: center; }
.ticket small { color: var(--ink-sub); font-weight: 600; }
.ticket strong { font: 800 48px/1.1 var(--font-sans); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.ticket p { color: var(--ink-sub); font-size: 16px; max-width: 30em; }
.result { display: grid; gap: 20px; }
.result h2 { font: 700 22px/1.4 var(--font-sans); }
.result.is-cancelled .dim, .result.is-cancelled .dim dt { color: var(--ink-muted); }
.result.is-cancelled .dim dd { font-weight: 500; }
.hub-results time { margin-right: 10px; color: var(--success); font-variant-numeric: tabular-nums; }
.cancel-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.cancel-box > span { font-size: 15px; color: var(--ink-muted); }
.link-btn { padding: 12px 0; margin: -12px 0; border: 0; background: none; color: var(--accent-strong); font: 600 15px/1.4 var(--font-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
[data-focus]:focus { outline: none; }
.hub-results { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.hub-results li { display: grid; gap: 6px; padding: 20px 24px; border-radius: var(--radius-md); border: 1px solid var(--line); }
.hub-results .top { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.hub-results b { font-size: 18px; }
.hub-results b small { margin-right: 10px; font-size: 14px; font-weight: 600; color: var(--ink-sub); }
.hub-results .slots { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 0; font-size: 15px; }
.hub-results .slots dt { color: var(--ink-sub); }
.hub-results .slots dd { margin: 0; }
.hub-results p { font-size: 15px; color: var(--ink-sub); }

.venue { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 760px) { .venue { grid-template-columns: 1fr 1fr; } }
.venue figure { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; }
.venue img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease-out); }
.venue figure:hover img { transform: scale(1.03); }
.venue figcaption { position: absolute; inset: auto 0 0; padding: 56px 24px 20px; background: linear-gradient(180deg, transparent, rgba(46,22,10,.62)); color: #fff; font: 700 16px/1.4 var(--font-sans); letter-spacing: -0.01em; }
/* 핵심 정보 카드: 일시·장소·상담회를 한 장에, 세로선으로 나눕니다 */
.ov-facts { display: grid; margin: 0; padding: 32px 40px; border-radius: var(--radius-lg); background: linear-gradient(90deg, var(--wash-sand) 0%, var(--wash-rose) 100%); }
.ov-facts > div { display: grid; align-content: start; gap: 8px; padding: 20px 0; border-top: 1px solid rgba(46,22,10,.12); }
.ov-facts > div:first-child { padding-top: 0; border-top: 0; }
.ov-facts > div:last-child { padding-bottom: 0; }
@media (min-width: 760px) {
  .ov-facts { grid-template-columns: 1.1fr 1.4fr 1fr; }
  .ov-facts > div { padding: 4px 32px; border-top: 0; border-left: 1px solid rgba(46,22,10,.12); }
  .ov-facts > div:first-child { padding-left: 0; border-left: 0; }
  .ov-facts > div:last-child { padding-right: 0; }
}
.ov-facts dt { font: 700 15px/1.4 var(--font-sans); color: var(--accent-strong); }
.ov-facts dd { margin: 0; font: 700 21px/1.4 var(--font-sans); letter-spacing: -0.02em; color: var(--brown); word-break: keep-all; }
.ov-facts .ov-sub + .ov-sub { margin-top: 2px; }
.ov-facts .ov-sub { display: block; margin-top: 6px; font: 500 15px/1.5 var(--font-sans); letter-spacing: 0; color: var(--ink-sub); }
@media (max-width: 600px) { .ov-facts { padding: 24px; } .ov-facts dd { font-size: 19px; } }
.page-head .kb-flag { width: 24px; margin-right: 8px; }
/* 거점 지도 */
.hub-map { position: relative; margin: 0 auto 40px; max-width: 1000px; }
.hub-map img { display: block; width: 100%; height: auto; }
.sec--alt .hub-map img { filter: brightness(.97); }
.hub-map__pin { position: absolute; display: flex; align-items: center; gap: 6px; transform: translate(-6px, -50%); color: var(--ink); text-decoration: none; font: 700 14px/1 var(--font-sans); white-space: nowrap; }
.hub-map__pin i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(190,76,45,.2); }
.hub-map__pin--l { flex-direction: row-reverse; transform: translate(calc(-100% + 6px), -50%); }
.hub-map__pin:hover span { color: var(--accent); }
@media (max-width: 600px) { .hub-map__pin { font-size: 11px; gap: 4px; } .hub-map__pin i { width: 8px; height: 8px; box-shadow: 0 0 0 3px rgba(190,76,45,.2); } .hub-map { margin-bottom: 28px; } }
.choice-pitch { margin: -4px 0 20px; font-size: 15px; color: var(--ink-sub); }
.choice-pitch a { margin-left: 6px; white-space: nowrap; }
/* 작은 칩: 거점 유형(플래그십 허브·판매장), 세션 번호. 카드 바탕과 구분되게 연한 면을 채웁니다 */
.kb-tag--sm { --tag-h: 24px; padding: 3px 10px; background: var(--wash-peach); color: var(--accent-strong); font: 700 13px/18px var(--font-sans); }
/* 둥근 칩의 시각 정렬: 칩 왼쪽 끝을 아래 요소에 맞추면 곡률 때문에 안으로 들어가 보입니다.
   칩을 반지름(높이의 절반)만큼 왼쪽으로 내밀어, 곡률이 끝나는 지점이 아래 요소의 왼쪽 끝에 오게 합니다 */
.kb-hub__top .kb-tag, .page-head h1 .kb-tag, .sess h3 .kb-tag { margin-left: calc(var(--tag-h) / -2); }
.kb-hub__top .kb-tag { justify-self: start; margin-bottom: 8px; }
/* 유형 칩 두 가지는 같은 위계: 둘 다 반투명 면 + 진한 글자. 흰 카드·연한 카드 어디서나 보이게 반투명으로 */
.kb-tag--flagship { background: rgba(190, 76, 45, .12); color: var(--accent-strong); }
.kb-tag--store { background: rgba(46, 22, 10, .08); color: var(--brown); }
.page-head h1 .kb-tag { display: table; margin-bottom: 12px; font-size: 14px; letter-spacing: 0; }
.sess h3 .kb-tag { margin-right: 10px; vertical-align: 2px; }
.sess--match .kb-tag { background: #fff; }
.page-head h1 small { margin-left: 10px; font: 600 20px/1 var(--font-sans); color: var(--ink-sub); letter-spacing: -0.01em; }

/* 히어로 등장: 제목 줄이 아래에서 올라오고, 문단·버튼·카드·거점 띠가 흐림에서 떠오릅니다 */
@keyframes hero-in { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } }
@keyframes hero-line { from { transform: translateY(110%); } }
.hero { overflow: clip; }
.hero-line { display: block; overflow: hidden; padding: .06em .15em .14em; margin: -.06em -.15em -.14em; }
.hero-line > span { display: block; animation: hero-line .9s var(--ease-out) both; animation-delay: calc(150ms + var(--i, 0) * 120ms); }
.hero-lead, .hero-cta, .hero-band { animation: hero-in 1s var(--ease-out) both; }
.hero-lead { animation-delay: .5s; }
.hero-cta { animation-delay: .65s; }
.hero .apply-card { animation: hero-in 1s var(--ease-out) .3s both; }
.hero-band { animation-delay: .9s; }

/* 히어로 아래 거점 띠: 끝없이 흐르고, 마우스를 올리거나 초점이 오면 멈춥니다. 앞 묶음만 링크입니다 */
.hero-band { overflow: hidden; padding: 8px 0 calc(136px + var(--hero-tail)); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.hero-band__track { display: flex; width: max-content; animation: band-flow 42s linear infinite; }
.hero-band:hover .hero-band__track, .hero-band:focus-within .hero-band__track { animation-play-state: paused; }
.hero-band__group { display: flex; gap: 12px; padding-right: 12px; }
.hero-band__chip { display: inline-flex; align-items: center; height: 56px; padding: 0 24px; border-radius: 999px; background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 0 0 1px rgba(255,255,255,.7) inset, 0 8px 24px rgba(150,54,25,.08); font: 700 17px/1 var(--font-sans); color: var(--ink); text-decoration: none; white-space: nowrap; transition: background-color .25s; }
a.hero-band__chip:hover { background: rgba(255,255,255,.85); }
@keyframes band-flow { to { transform: translateX(-25%); } } /* 목록을 4번 그리고 1/4씩 밀어 어떤 너비에서도 빈틈 없이 이어집니다 */
@media (max-width: 600px) {
  /* 세로 리듬: 헤더→제목 48, 제목→리드 20, 리드→버튼 28, 버튼→카드 40, 카드→국가줄 36, 국가줄→조회 카드 56. 화면 높이에 맞추지 않고 내용만큼만 */
  .hero { --hero-tail: 56px; min-height: 0; }
  .home .hero .wrap { padding-block: 48px 36px; }
  .hero-top { gap: 40px; }
  .hero h1 { font-size: 34px; line-height: 1.3; }
  .hero-head { gap: 20px; }
  .hero-lead { font-size: 16px; word-break: keep-all; }
  .hero-cta { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px; margin-top: 8px; }
  .hero-cta .kb-btn { padding-inline: 8px; }
  /* 접수 카드: 제목(34px)보다 한 단 아래. 날짜 26px, 내용 15px */
  .hero .apply-card { padding: 20px 20px 22px; gap: 14px; }
  .hero .apply-due { gap: 4px; }
  .hero .apply-due small { font-size: 14px; }
  .hero .apply-due small b { padding: 2px 10px; font-size: 13px; line-height: 18px; }
  .hero .apply-due strong { font-size: 26px; }
  .hero .apply-due strong em { font-size: 18px; }
  .hero .apply-card dl { gap: 8px; padding-top: 14px; }
  .hero .apply-card dl div { grid-template-columns: 40px 1fr; gap: 10px; }
  .hero .apply-card dt { font-size: 14px; }
  .hero .apply-card dd { font-size: 15px; }
  .hero-band { padding: 0 0 calc(96px + var(--hero-tail)); } /* 96px은 .home .sec--lookup이 끌어올리는 양. 남는 40px이 국가줄과 조회 카드 사이 */
  .hero-band__chip { height: 48px; padding: 0 18px; font-size: 16px; }
  .lookup p { word-break: keep-all; }
}
@media (prefers-reduced-motion: reduce) { .hero-band { overflow-x: auto; } .hero-band__track { animation: none !important; } }

/* 메인 조회 박스는 히어로 아래쪽 흐려지는 구간에 살짝 올라앉습니다 */
.home .sec--lookup { position: relative; z-index: 1; margin-top: -96px; padding-top: 0; }

/* 거점 지도: 화면에 들어오면 서울에서 거점으로 선이 차례로 그려지고, 선 위로 점이 오갑니다 */
.hub-map__arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hub-map__arcs path { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .5; }
.hub-map__arcs .run { stroke-width: 5; stroke-dasharray: 0 2; opacity: .9; }
.hub-map__arcs .seoul { fill: var(--brown); }
.hub-map__arcs .ring { fill: none; stroke: var(--brown); stroke-width: 1; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; opacity: 0; }
.hub-map__seoul { position: absolute; transform: translate(-50%, calc(-100% - 10px)); font: 700 14px/1 var(--font-sans); color: var(--brown); }
@media (max-width: 600px) { .hub-map__seoul { font-size: 11px; transform: translate(-50%, calc(-100% - 6px)); } }
@media (prefers-reduced-motion: no-preference) {
  .hub-map__arcs path:not(.run) { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .hub-map__pin { opacity: 0; }
  .hub-map:not(.is-pre) .hub-map__arcs path:not(.run) { animation: map-arc 1.1s var(--ease-out) forwards; animation-delay: calc(300ms + var(--k) * 160ms); }
  .hub-map:not(.is-pre) .hub-map__pin { animation: map-pin .5s var(--ease-out) forwards; animation-delay: calc(1000ms + var(--k) * 160ms); }
  .hub-map:not(.is-pre) .hub-map__pin i { animation: map-dot .6s var(--ease-spring) both; animation-delay: calc(1000ms + var(--k) * 160ms); }
  .hub-map:not(.is-pre) .hub-map__arcs .run { animation: map-run 3.6s linear infinite; animation-delay: calc(2400ms + var(--k) * 450ms); }
  .hub-map:not(.is-pre) .hub-map__arcs .ring { animation: map-ring 2.4s ease-out infinite 1s; }
}
@keyframes map-arc { to { stroke-dashoffset: 0; } }
@keyframes map-pin { to { opacity: 1; } }
@keyframes map-dot { from { transform: scale(0); } }
@keyframes map-run { to { stroke-dashoffset: -1; } }
@keyframes map-ring { from { transform: scale(1); opacity: .6; } to { transform: scale(4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hub-map__arcs .run { display: none; } }

/* 회사·브랜드 소개서 */
.files-field { display: grid; gap: 12px; }
.file-list { display: grid; gap: 8px; }
.file-list:empty { display: none; }
.file-list li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface-alt); }
.file-list span { min-width: 0; overflow-wrap: anywhere; }
.file-list small { margin-right: auto; color: var(--ink-muted); white-space: nowrap; }
.file-pick { position: relative; justify-self: start; cursor: pointer; }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.files-sec { display: grid; gap: 12px; margin-top: 32px; }
.files-sec h2 { font: 700 18px/1.4 var(--font-sans); }
