/* 학원 원페이지 2안 · 흰 바탕, 먹색, 파랑 하나 */
[hidden] { display: none !important; }
:root { --ink: #14171c; --mut: #4a5160; --line: #e3e6ec; --b: #1d4ed8; --bd: #1739a8; --bl: #eef3ff; --soft: #f6f7f9; --ok: #0f6b3f; --okbg: #e8f5ee; --err: #8c1d18; --errbg: #fdecea; }
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.65 "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; overflow-x: clip; word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, h4, .serif { font-family: "Noto Serif KR", "Apple Myungjo", serif; font-weight: 900; letter-spacing: -0.03em; line-height: 1.2; margin: 0; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
p { margin: 0; }
a { color: var(--b); }
a:hover { color: var(--bd); }
a:focus-visible, button:focus-visible, input:focus-visible, .chip input:focus-visible + span { outline: 3px solid var(--b); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(5vw, 16px); padding-right: max(5vw, 16px); }
.band { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.band-soft { background: var(--soft); }
.band-ink { background: var(--ink); color: #fff; }
.band-ink h2 { color: #fff; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-sm { display: flex; flex-direction: column; gap: 14px; }
.stack-xs { display: flex; flex-direction: column; gap: 4px; }
.muted { color: var(--mut); }
.small { font-size: 14px; }
.scroll { overflow-x: auto; }
.lbl { font-size: 14px; font-weight: 700; color: var(--b); }
.lead { font-size: 17px; color: var(--mut); max-width: 34em; }

/* 버튼 */
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 8px; background: var(--b); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.cta:hover { background: var(--bd); color: #fff; }
.cta-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.ghost { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--ink); background: none; border-top: 0; border-left: 0; border-right: 0; font-family: inherit; font-size: inherit; cursor: pointer; }
.ghost:hover { color: var(--b); border-color: var(--b); }
.btn2 { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn2:hover { border-color: var(--b); color: var(--b); }
.btn-sm { min-height: 40px; font-size: 14px; }
.btn, .btn-row .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 8px; background: var(--b); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* 머리 */
.hdr { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .96); border-bottom: 1px solid transparent; transition: background-color .35s ease, box-shadow .35s ease, border-color .35s ease; }
.hdr-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 28px; min-height: 84px; transition: min-height .35s cubic-bezier(.2, .8, .2, 1); }
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-short { font-size: 28px; transition: font-size .35s cubic-bezier(.2, .8, .2, 1); }
/* 스크롤을 내리면: 얇아지고, 그림자, 뒤가 흐린 유리 */
.hdr.stuck { background: rgba(255, 255, 255, .82); border-color: var(--line); box-shadow: 0 10px 30px -18px rgba(20, 23, 28, .35); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
.hdr.stuck .hdr-row { min-height: 60px; }
.hdr.stuck .brand-short { font-size: 23px; }
.anim .hdr { animation: hdr-in .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes hdr-in { from { transform: translateY(-100%); } to { transform: none; } }
.brand-rest { font-size: 14px; font-weight: 700; color: var(--mut); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; }
.nav-link { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 0; }
.nav-link:hover { color: var(--b); }

/* 첫 화면 */
.hero { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: flex-end; padding-top: clamp(48px, 7vw, 96px); padding-bottom: 40px; }
.hero-text { flex: 1.4 1 440px; display: flex; flex-direction: column; gap: 24px; }
.hero-text h1 { font-size: clamp(34px, 5vw, 60px); }
.hero-text .lead { font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.trust { flex: 1 1 340px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 2px solid var(--ink); }
.trust div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; padding: 18px 8px 18px 0; border-bottom: 1px solid var(--line); }
.trust dd { margin: 0; font-size: 30px; line-height: 1.1; }
.trust dt { font-size: 14px; color: var(--mut); }

/* 계단 로드맵 */
.roadmap { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; padding-bottom: clamp(56px, 7vw, 96px); }
.goal { display: flex; justify-content: flex-end; align-items: center; gap: 10px; font-weight: 700; color: var(--bd); font-size: 15px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 10px; align-items: end; }
.step { min-height: calc(190px + var(--i) * 48px); border-radius: 10px 10px 0 0; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.step-0 { background: #dbe5ff; color: var(--ink); }
.step-1 { background: #b7cbff; color: var(--ink); }
.step-2 { background: #3c66e2; color: #fff; }
.step-3 { background: #2853d9; color: #fff; }
.step-4 { background: #1739a8; color: #fff; }
.step-grade { font-size: 24px; line-height: 1; }
.step-row { display: flex; flex-direction: column; gap: 1px; font-size: 14px; line-height: 1.45; }
.step-row i { font-style: normal; font-size: 12px; font-weight: 700; opacity: .85; }
.base { height: 8px; background: var(--ink); border-radius: 0 0 4px 4px; }

/* 원장 인사 */
.director { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: center; }
.director-pic { flex: 0 1 340px; width: 100%; }
.director-pic img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.photo-slot { aspect-ratio: 4 / 5; border-radius: 12px; background: repeating-linear-gradient(135deg, #eceff4 0 14px, #e4e8ee 14px 28px); display: grid; place-items: center; color: #5b6270; font-size: 14px; font-weight: 700; }
.director-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 20px; }
.sign { font-weight: 700; }
.sign span { font-weight: 400; color: var(--mut); }
.staff { font-size: 14px; color: var(--mut); border-top: 1px solid var(--line); padding-top: 14px; }

/* 반 안내 */
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.tabs { display: flex; gap: 6px; background: var(--soft); padding: 4px; border-radius: 10px; }
.tabs[hidden] { display: none; }
.tab { min-height: 44px; padding: 0 22px; border: 0; border-radius: 8px; background: transparent; color: var(--mut); font: inherit; font-weight: 700; cursor: pointer; }
.tab.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.grade-title { font-size: 18px; color: var(--mut); margin-bottom: 8px; }
.js .grade-title { display: none; }
.grade-panel + .grade-panel { margin-top: 16px; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 2fr) minmax(120px, auto); gap: 8px 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.sub { font-size: 13px; font-weight: 700; padding: 3px 0; border-radius: 6px; text-align: center; }
.sub-en { background: var(--bl); color: var(--bd); }
.sub-ma { background: var(--ink); color: #fff; }
.row-name { font-size: 20px; }
.row-desc { color: var(--mut); font-size: 15px; }
.row-when { font-size: 14px; font-weight: 700; text-align: right; white-space: nowrap; }
.row-when span { font-weight: 400; color: var(--mut); }

/* 좌우 나눔 */
.split { display: flex; flex-wrap: wrap; gap: 32px 72px; align-items: flex-start; }
.split-center { align-items: center; }
.split-side { flex: 1 1 280px; }
.split-main { flex: 2 1 520px; }

/* 표 */
table.fee { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.fee thead th { text-align: left; font-size: 13px; color: var(--mut); font-weight: 700; padding: 12px 14px; border-bottom: 2px solid var(--ink); }
.fee tbody th { text-align: left; font-weight: 700; }
.fee td, .fee tbody th { padding: 16px 14px; border-bottom: 1px solid var(--line); }
.fee .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fee td.n { font-weight: 700; }

/* 안심 등하원 */
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--b); border-bottom: 2.5px solid var(--b); transform: rotate(-45deg); }
.phone-wrap { flex: 0 1 300px; display: flex; justify-content: center; margin: 0 auto; }
.ph { position: relative; width: 270px; max-width: 100%; aspect-ratio: 9 / 19.5; border-radius: 46px; background: var(--ink); padding: 11px; box-shadow: 0 0 0 2px #2a2f38, 0 40px 70px -30px rgba(20, 23, 28, .6); }
/* 옆 버튼: 왼쪽 동작·볼륨, 오른쪽 전원 */
.ph-btn { position: absolute; width: 4px; background: linear-gradient(90deg, #3a404b, #222730); }
.ph-action, .ph-vol-up, .ph-vol-down { left: -4px; border-radius: 3px 0 0 3px; }
.ph-action { top: 96px; height: 26px; }
.ph-vol-up { top: 140px; height: 46px; }
.ph-vol-down { top: 196px; height: 46px; }
.ph-power { right: -4px; top: 154px; height: 72px; border-radius: 0 3px 3px 0; }
/* 위쪽 카메라 영역(다이내믹 아일랜드)과 렌즈 */
.ph-island { position: absolute; top: 22px; left: 50%; width: 88px; height: 26px; margin-left: -44px; border-radius: 14px; background: #000; z-index: 2; display: flex; align-items: center; justify-content: flex-end; padding-right: 9px; }
.ph-island i { width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3b4a7a 0 20%, #141a2e 45%, #05070d 75%); box-shadow: 0 0 0 1.5px #111522; }
.ph-in { height: 100%; border-radius: 36px; overflow: hidden; background: linear-gradient(170deg, #34528f 0%, #1c2f5e 45%, #0f1a38 100%); padding: 70px 12px 24px; display: flex; flex-direction: column; gap: 10px; }
.ph-clock { text-align: center; color: #fff; font-size: 64px; font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.ph-date { text-align: center; color: #cdd6ea; font-size: 15px; margin-bottom: auto; }
.noti { background: rgba(255, 255, 255, .93); border-radius: 16px; padding: 11px 13px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: #111; }
.noti b { font-size: 14px; }
.noti span { color: #555; font-size: 12px; }

/* 예약 */
.on-ink-mut { color: #c9ced8; }
.book-phone { font-size: 18px; font-weight: 700; }
.book-phone a { color: #fff; margin-left: 6px; }
.card { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card-pad { padding: clamp(20px, 3vw, 32px); }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
legend, .field label { font-size: 14px; font-weight: 700; color: var(--mut); padding: 0; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; font-variant-numeric: tabular-nums; }
.chip:hover span { border-color: #b9c2d3; }
.chip input:checked + span { border-color: var(--b); background: var(--bl); color: var(--bd); font-weight: 700; }
.chip.is-full { cursor: not-allowed; }
.chip.is-full span { color: #7d8594; background: var(--soft); text-decoration: line-through; }
.slot-grid { display: flex; flex-direction: column; gap: 8px; }
.slot-day { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 8px; }
.slot-label { font-weight: 700; font-size: 14px; white-space: nowrap; }
.slot-times { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.chip-slot { display: flex; }
.chip-slot span { width: 100%; justify-content: center; padding: 0 4px; font-size: 15px; }
@media (max-width: 420px) { .slot-day { grid-template-columns: minmax(0, 1fr); gap: 4px; } .chip-slot span { font-size: 14px; } }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; }
.field input { font: inherit; font-size: 16px; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 8px; width: 100%; background: #fff; color: var(--ink); }
.field input::placeholder { color: #8a909c; }
.field input:focus, .field select:focus { border-color: var(--b); }
.field select { font: inherit; font-size: 16px; min-height: 48px; padding: 0 40px 0 14px; border: 1.5px solid var(--line); border-radius: 8px; width: 100%; color: var(--ink); appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2314171c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.field textarea { font: inherit; font-size: 16px; line-height: 1.6; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; width: 100%; min-height: 96px; resize: vertical; background: #fff; color: var(--ink); }
.field textarea::placeholder { color: #8a909c; }
.field textarea:focus { border-color: var(--b); outline: none; }
.memo { font-size: 14px; color: var(--mut); white-space: pre-line; max-width: 28em; }
.field input[type="date"] { -webkit-appearance: none; appearance: none; }
.hint { font-weight: 500; color: #7a8190; margin-left: 4px; }
.date-msg { color: var(--err); font-weight: 700; margin-top: -8px; }
.date-msg:empty { display: none; }
.hp { position: absolute; left: -9999px; }
.agree { display: flex; flex-direction: column; gap: 4px; background: var(--soft); border-radius: 10px; padding: 12px 14px; }
.check-line { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--ink); min-height: 44px; cursor: pointer; }
.check-line input { width: 20px; height: 20px; flex: none; accent-color: var(--b); }
.form-foot { display: flex; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 16px; }
.form-error { background: var(--errbg); color: var(--err); border-radius: 10px; padding: 12px 14px; font-weight: 700; }
.form-ok { background: var(--okbg); color: var(--ok); border-radius: 10px; padding: 12px 14px; font-weight: 700; }
.done { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.done h3 { font-size: 26px; }
.check { width: 52px; height: 52px; border-radius: 50%; background: var(--b); display: grid; place-items: center; }

/* 바닥 */
.site-footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--mut); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; padding-top: 32px; padding-bottom: 32px; }
.footer-name { color: var(--ink); font-size: 18px; }
.footer-right { align-items: flex-end; }
.site-footer a { color: var(--ink); }
.made { color: #6b7280; }

/* 폰 아래 고정 띠 */
.mbar { display: none; }

/* 문서(개인정보처리방침) */
.doc { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.doc h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 8px; }
.doc h2 { font-size: 20px; margin-top: 18px; }

/* 관리자 */
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.admin-title { font-size: 32px; }
.admin-sub { font-size: 24px; }
.admin-login { max-width: 360px; }
.is-cancelled td { color: #7d8594; text-decoration: line-through; }
.status-line { font-size: 15px; }
.on-text { color: var(--ok); }
.off-text { color: var(--err); }
.help-list { margin: 4px 0 0; padding-left: 18px; font-size: 14px; color: var(--mut); display: flex; flex-direction: column; gap: 4px; }
.test-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }

@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .step { min-height: 0; border-radius: 10px; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
  .step-grade { flex: 0 0 64px; }
  .step-row { flex: 1 1 180px; }
  .base, .goal { display: none; }
  .row { grid-template-columns: 52px minmax(0, 1fr); }
  .row-desc, .row-when { grid-column: 1 / -1; text-align: left; white-space: normal; }
}
@media (max-width: 700px) {
  .nav-link { display: none; }
  .hdr .cta-sm { display: none; }
  .mbar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .mbar-call { flex: 0 0 96px; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 8px; border: 1.5px solid var(--ink); color: var(--ink); font-weight: 700; text-decoration: none; }
  .mbar-book { flex: 1; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .trust dd { font-size: 24px; }
  .footer-right { align-items: flex-start; }
}
/* ---------- 움직임 (html.anim일 때만. 없으면 전부 그대로 보임) ---------- */
.mark { background: linear-gradient(var(--b), var(--b)) 0 92% / 100% 6px no-repeat; }
.anim .mark { background-size: 0 6px; transition: background-size .9s cubic-bezier(.2, .7, .2, 1) .75s; }
.anim h1.in .mark { background-size: 100% 6px; }

.anim [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.anim [data-reveal].in { opacity: 1; transform: none; }

/* 계단: 아래에서 위로 솟는다 */
.anim .steps .step { clip-path: inset(100% 0 0 0); transition: clip-path .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 140ms); }
.anim .steps.in .step { clip-path: inset(0 0 0 0); }
.anim .steps .step > * { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i) * 140ms + 450ms); }
.anim .steps.in .step > * { opacity: 1; transform: none; }
.anim .goal svg { transition: transform .6s cubic-bezier(.2, .8, .2, 1) 1.2s; transform: translate(-10px, 10px); }
.anim .goal.in svg { transform: none; animation: nudge 2.4s ease-in-out 2s infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translate(4px, -4px); } }

/* 폰 알림: 하나씩 떨어진다 */
.anim .ph .noti { opacity: 0; transform: translateY(-18px) scale(.97); transition: opacity .45s ease, transform .55s cubic-bezier(.2, 1.3, .4, 1); }
.anim .ph.in .noti { opacity: 1; transform: none; }
.anim .ph.in .noti:nth-of-type(1) { transition-delay: .5s; }
.anim .ph.in .noti:nth-of-type(2) { transition-delay: 1.6s; }
.anim .ph { transition: transform .8s cubic-bezier(.2, .7, .2, 1); transform: translateY(24px) rotate(-1.5deg); }
.anim .ph.in { transform: none; }

/* 버튼 손맛 */
.cta, .chip span, .tab { transition: background-color .2s, border-color .2s, color .2s, transform .15s, box-shadow .2s; }
.cta:active { transform: translateY(1px); }
.cta:hover { box-shadow: 0 8px 20px -10px rgba(29, 78, 216, .7); }

/* 폰 하단 띠: 첫 화면을 지나면 올라온다 */
@media (max-width: 700px) {
  .anim .mbar { transform: translateY(110%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
  .anim .mbar.show { transform: none; }
}

/* 데모 전용: 디자인 바꿔 보기 */
.switcher { position: fixed; left: 16px; bottom: 16px; z-index: 45; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(20, 23, 28, .92); color: #fff; font: 700 13px/1 "Noto Sans KR", sans-serif; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); width: max-content; max-width: calc(100vw - 32px); }
.switcher span { flex: none; padding: 0 8px 0 10px; color: #aab1bf; white-space: nowrap; }
.switcher a { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; color: #fff; text-decoration: none; white-space: nowrap; }
.switcher a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.switcher a[aria-current="page"] { background: #fff; color: #14171c; }
@media (max-width: 700px) { .switcher { left: 50%; transform: translateX(-50%); bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hdr, .hdr-row, .brand-short { transition: none; } }

/* ---------- 회원 화면 (로그인, 가입, 내 정보) ---------- */
.auth { display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 460px; }
.auth-wide { width: 100%; max-width: 760px; }
.auth-title { font-size: clamp(26px, 3vw, 32px); }
.auth-submit { width: 100%; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; font-size: 14px; color: var(--mut); }
.or { display: flex; align-items: center; gap: 12px; color: var(--mut); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social { display: flex; flex-direction: column; gap: 8px; }
.sbtn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; border-radius: 8px; font-weight: 700; font-size: 16px; text-decoration: none; }
.sbtn-naver { background: #03c75a; color: #fff; }
.sbtn-naver:hover { background: #02b351; color: #fff; }
.sbtn-kakao { background: #fee500; color: rgba(0, 0, 0, .85); }
.sbtn-kakao:hover { background: #f5dc00; color: rgba(0, 0, 0, .85); }
.mp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.mp-h { font-size: 20px; }
.dep-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dep-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dep-add { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; }
.linkbtn { border: 0; background: none; padding: 10px 4px; min-height: 44px; font: inherit; font-size: 14px; font-weight: 700; color: var(--mut); text-decoration: underline; cursor: pointer; }
.linkbtn:hover { color: var(--ink); }
.btn-danger { border-color: #b42318 !important; color: #b42318 !important; }
.mono { font-family: ui-monospace, Menlo, monospace; font-weight: 500; overflow-wrap: anywhere; }
.form-ok { background: #e8f5ee; color: #0f6b3f; border-radius: 10px; padding: 12px 14px; font-weight: 700; }
.nav-member { font-weight: 700; }
@media (max-width: 700px) { .nav-member { display: inline-flex !important; } }

/* 게시판 */
.bd { width: 100%; max-width: 860px; }
.bd-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.bd-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.bd-list li { border-bottom: 1px solid var(--line); }
.bd-list a { display: flex; align-items: center; gap: 10px; padding: 14px 4px; min-height: 52px; color: var(--ink); text-decoration: none; }
.bd-list a:hover .bd-title { text-decoration: underline; }
.bd-list a[aria-disabled="true"] .bd-title { color: var(--mut); font-weight: 500; }
.bd-title { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.bd-cnt { color: var(--mut); font-weight: 500; font-size: 14px; }
.bd-meta { color: var(--mut); font-size: 13px; white-space: nowrap; margin: 0; }
.bd-tag { flex: none; display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.bd-pin { background: var(--ink); color: #fff; }
.bd-wait { background: #fff3e6; color: #8a3300; }
.bd-done { background: #e6f4ec; color: #0a4f34; }
.bd-empty { padding: 40px 0; text-align: center; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.bd-h { font-size: clamp(24px, 3vw, 30px); overflow-wrap: anywhere; }
.bd-body { font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; border-top: 1px solid var(--line); padding-top: 20px; }
.bd-answer { background: #f6f8f7; border-radius: 14px; padding: clamp(16px, 3vw, 24px); }
.bd-answer .bd-body { border-top: 0; padding-top: 0; }
.bd-comments { border-top: 1px solid var(--line); padding-top: 20px; }
.bd-cmt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.bd-cmt-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.bd-cmt-list p { margin: 0; overflow-wrap: anywhere; }
.bd-cmt-list form { align-self: flex-end; margin-top: -8px; }
.bd-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.bd-pager a { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; }
.bd-pager a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 600px) {
  .bd-list a { flex-wrap: wrap; row-gap: 2px; }
  .bd-title { flex-basis: 100%; order: 2; }
  .bd-meta { order: 3; }
  .bd-tag { order: 1; }
}

/* 결제 */
.pay-items { display: flex; flex-direction: column; gap: 8px; }
.pay-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.pay-item input { width: 20px; height: 20px; flex: none; }
.pay-item span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pay-item small { color: var(--mut); font-size: 13px; }
.pay-item strong { white-space: nowrap; font-size: 17px; }
.pay-item:has(input:checked) { border-color: var(--ink); }
.pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 14px 4px; }
.pay-st-paid { background: #e6f4ec; color: #0a4f34; }
.pay-st-pending { background: #fff3e6; color: #8a3300; }
.pay-st-failed, .pay-st-cancelled { background: #f0efec; color: #4d5b53; }
