/* 창가자리 v2 — 에디토리얼 탑승권: 글꼴은 Pretendard 하나(제목·본문·경로 코드), 사진 크게, 네이버 이동은 초록 버튼만 */
:root {
  --ground: #F3F5F7; --surface: #FFFFFF; --surface-2: #F7F9FA; --surface-3: #FBFCFD;
  --ink: #13202B; --ink-2: #24313D; --muted: #4F5D6B; --muted-2: #3D4A57;
  --line: #DDE3E9; --line-2: #C9D2DC; --line-3: #EEF1F4;
  --blue: #1F5FBF; --blue-dark: #174A94; --blue-soft: #E8F0FC; --blue-tint: #DCE7F5; --blue-mute: #B3C8E6;
  --orange: #C2410C; --orange-dark: #9A330A; --orange-text: #6B2A08; --orange-soft: #FDEEE6; --orange-tint: #F6E3D7; --orange-mute: #E5BFA6;
  --green: #03753A; --green-soft: #E6F4EC; --green-ink: #0B3B20;
  --night: #13202B; --night-2: #0F1B26; --night-3: #182938; --night-line: #44525F; --night-text: #C3CDD7; --peach: #F4A27A; --sky: #9CC1F2;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
  --serif: var(--sans);
  --mono: var(--sans);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.serif { font-family: var(--serif); }
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--orange); margin: 0; }
.eyebrow.peach { color: var(--peach); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.between { justify-content: space-between; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.cover { position: relative; display: block; overflow: hidden; background: var(--blue-tint); }
.cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover.alt { background: var(--orange-tint); }
.cover .ph-code { position: absolute; left: 16px; bottom: 10px; font-family: var(--mono); font-size: 56px; font-weight: 600; line-height: 1; color: var(--blue-mute); }
.cover.alt .ph-code { color: var(--orange-mute); }

/* ---------- 헤더 ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.site-header .wrap { padding-top: 10px; padding-bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand span { font-family: var(--serif); font-size: 23px; font-weight: 700; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 15px; font-weight: 500; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.nav a.on { color: var(--blue); font-weight: 700; box-shadow: inset 0 -2px 0 var(--blue); }
.top-search { flex: 1 1 200px; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.top-search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 15px; color: var(--ink); }
.top-search input:focus { outline: none; }
.top-search:focus-within { border-color: var(--blue); }
.user-box { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; color: var(--ink); text-decoration: none; }
.icon-btn:hover { background: var(--ground); color: var(--ink); }
.badge-dot { position: absolute; top: 5px; right: 5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* ---------- 버튼·칩 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { color: var(--ink); border-color: var(--muted); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; border-color: var(--blue-dark); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-orange { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); color: #fff; }
.btn-naver { background: var(--green); border-color: var(--green); color: #fff; border-radius: 12px; font-weight: 700; }
.btn-naver:hover { background: #025a2c; color: #fff; border-color: #025a2c; }
.btn-soft { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--blue-dark); }
.btn-white { background: #fff; border-color: #fff; color: var(--ink); }
.btn-white:hover { color: var(--ink); }
.btn-lg { min-height: 52px; font-size: 16px; }
.btn-sm { min-height: 36px; padding: 0 13px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-danger { color: #B42318; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; cursor: pointer; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.chip.dashed { border-style: dashed; border-color: var(--ink); }
.chip-dark { border-color: var(--night-line); color: #fff; background: transparent; }
.chip-dark:hover { border-color: #fff; color: #fff; }
.chip-dark.on { background: #fff; border-color: #fff; color: var(--ink); }
.pill { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-dark); }
.pill-blue { background: var(--blue-soft); color: var(--blue-dark); }
.pill-solid { background: var(--blue); color: #fff; }
.pill-gray { background: var(--line-3); color: var(--muted-2); }
.code { display: inline-flex; font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); text-decoration: none; }
.tag-chip { font-size: 14px; font-weight: 600; padding: 6px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.board-label { font-size: 13px; font-weight: 700; }
.board-review { color: var(--blue); } .board-companion { color: var(--orange); } .board-tip, .board-free { color: var(--muted-2); } .board-column { color: var(--ink); }

/* ---------- 누가 쓴 글인지 ---------- */
.av { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: #E9EDF1; color: var(--muted-2); font-size: 12px; font-weight: 700; line-height: 1; }
.av.s { width: 22px; height: 22px; font-size: 10px; }
.av.m { width: 40px; height: 40px; font-size: 16px; }
.av.l { width: 52px; height: 52px; font-size: 20px; }
.av.staff { color: #fff; }
.av.has-img { overflow: hidden; }
.av.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b-staff { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--ink); color: var(--ink); white-space: nowrap; }
.b-visited { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-dark); white-space: nowrap; }
.byline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.byline b { color: var(--ink); }

/* ---------- 섹션 ---------- */
.section { padding: 60px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.section-head h2, .h2 { font-family: var(--serif); font-size: 30px; line-height: 1.25; font-weight: 700; }
.section-head p { font-size: 15px; color: var(--muted); margin-top: 6px; }
.h3 { font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.4; }
.more-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: none; }
.band-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-night { background: var(--night); color: #fff; }
.band-night .section-head p, .band-night .muted { color: var(--night-text); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(var(--min, 300px), 100%), 1fr)); }
.layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 36px; padding-top: 32px; padding-bottom: 80px; }
.layout > main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.layout > aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.pad { padding: 24px; }
.box-orange { background: var(--orange-soft); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.box-night { background: var(--night); color: #fff; border-radius: 20px; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.box-night .muted { color: var(--night-text); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.empty { padding: 26px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line-2); border-radius: 18px; background: var(--surface); }
.empty-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 24px; border-radius: 18px; border: 1.5px dashed var(--line-2); background: var(--surface); }

/* ---------- 홈 히어로 ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 56px; padding-bottom: 40px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-family: var(--serif); font-size: clamp(36px, 5vw, 60px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 700; }
.hero .lead { max-width: 500px; font-size: 18px; line-height: 1.7; color: var(--muted); }
.search-card { display: flex; flex-direction: column; gap: 10px; max-width: 540px; padding: 10px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 20px 40px -28px rgba(19,32,43,.45); }
.search-card label.in { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 14px; background: var(--ground); color: var(--muted); }
.search-card input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; color: var(--ink); }
.search-card input:focus { outline: none; }
.search-card .opts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 4px; }
.search-card .opts .btn { margin-left: auto; }
.mosaic { flex: 1 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 212px 212px; gap: 12px; }
.mosaic a { border-radius: 22px; }
.mosaic a:first-child { grid-row: span 2; }
.photo-tag { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 11px; background: rgba(255,255,255,.95); color: var(--ink); font-size: 13px; font-weight: 600; }
.photo-tag .mono { color: var(--blue); }
.boarding { position: relative; display: flex; flex-wrap: wrap; align-items: stretch; background: var(--night); color: #fff; border-radius: 22px; overflow: hidden; }
.boarding .main { flex: 1 1 640px; min-width: 0; padding: 26px 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px 40px; }
.boarding .rt { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 34px; font-weight: 600; line-height: 1; }
.boarding .rt i { width: 70px; border-top: 2px dashed #5C7088; }
.boarding .rt .to { color: var(--sky); }
.boarding .facts { display: grid; grid-auto-flow: column; grid-template-rows: auto auto; gap: 4px 28px; }
.boarding .facts small { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: #8FA3B8; }
.boarding .facts b { font-size: 15px; font-weight: 600; }
.boarding .stub { flex: 0 0 240px; position: relative; padding: 22px 26px; border-left: 2px dashed #3A4C5E; display: flex; flex-direction: column; justify-content: center; gap: 10px; background: var(--night-3); }
.boarding .stub::before, .boarding .stub::after { content: ""; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--ground); }
.boarding .stub::before { top: -13px; } .boarding .stub::after { bottom: -13px; }

/* ---------- 질문 행 ---------- */
.qa-list { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.qa-row { display: flex; flex-direction: column; gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.qa-row:hover { color: var(--ink); }
.qa-row:hover .t { text-decoration: underline; }
.qa-row .t { font-size: 19px; font-weight: 600; line-height: 1.45; }
.qa-row .ex { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); min-width: 0; }
.qa-row .ex b { flex: 0 0 auto; color: var(--ink); font-weight: 600; }
.qa-row .ex span.txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wait-item { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--ink); }
.wait-item:hover { color: var(--ink); box-shadow: 0 0 0 2px var(--orange-mute); }
.wait-item small { font-size: 13px; color: var(--orange-dark); font-weight: 600; }
.wait-item b { font-size: 15px; font-weight: 600; line-height: 1.45; }
.qa-card { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.qa-card:hover { color: var(--ink); border-color: var(--line-2); }
.qa-card .line { display: flex; gap: 12px; align-items: flex-start; }
.qa-card .Q { font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1.3; }
.Q { color: var(--orange); } .A { color: var(--blue); }

/* ---------- 여행지 카드 ---------- */
.dest-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.dest-card:hover { color: var(--ink); border-color: var(--line-2); box-shadow: 0 14px 30px -22px rgba(19,32,43,.55); }
.dest-card .cover { height: 220px; }
.route-chip { position: absolute; left: 14px; top: 14px; font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 8px; background: rgba(19,32,43,.82); color: #fff; }
.dest-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.dest-card .nm { font-family: var(--serif); font-size: 23px; font-weight: 700; }
.dest-card .nm small { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.dest-card .season { font-size: 15px; color: var(--muted); }

/* ---------- 칼럼 카드 ---------- */
.col-card { display: flex; flex-direction: column; gap: 12px; color: var(--ink); text-decoration: none; }
.col-card:hover { color: var(--ink); }
.col-card:hover .ttl { text-decoration: underline; }
.col-card .cover { aspect-ratio: 16 / 10; border-radius: 18px; }
.col-card .topic { font-size: 13px; font-weight: 700; color: var(--orange); }
.col-card .ttl { font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.4; }

/* ---------- 일정 카드 (티켓) ---------- */
.ticket { position: relative; display: flex; flex-direction: column; border-radius: 20px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); overflow: hidden; }
.band-night .ticket { border-color: transparent; }
.ticket .cover { height: 170px; }
.ticket .cover .pill { position: absolute; right: 12px; top: 12px; }
.ticket .top { padding: 18px 22px 16px; display: flex; flex-direction: column; gap: 8px; }
.ticket .rt { font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.ticket h3 { font-size: 19px; line-height: 1.4; font-weight: 700; }
.ticket h3 a { color: var(--ink); text-decoration: none; }
.ticket h3 a:hover { text-decoration: underline; }
.ticket .facts { font-size: 14px; color: var(--muted); }
.ticket .why { font-size: 15px; line-height: 1.55; }
.perf { position: relative; border-top: 2px dashed var(--line); }
.perf::before, .perf::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--ground); }
.perf::before { left: -12px; } .perf::after { right: -12px; }
.band-night .perf::before, .band-night .perf::after { background: var(--night); }
.band-white .perf::before, .band-white .perf::after { background: var(--surface); }
.ticket .bottom { padding: 16px 22px 22px; display: flex; flex-direction: column; gap: 12px; }
.price-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.price-line b { font-size: 22px; font-weight: 700; }
.price-line small { font-size: 13px; color: var(--muted); }
.ticket .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ticket .actions .btn { flex: 1 1 120px; font-size: 14px; min-height: 46px; border-radius: 12px; }
.disclose { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--muted); margin: 0; }
.band-night .disclose { color: var(--night-text); }
.disclose svg { flex: 0 0 auto; margin-top: 3px; }

/* ---------- 여행지 페이지 ---------- */
.d-hero { position: relative; min-height: 560px; display: flex; align-items: flex-end; background: #1B3A55; overflow: hidden; color: #fff; }
.d-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.d-hero .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,30,.18) 0%, rgba(10,20,30,.28) 40%, rgba(10,20,30,.84) 100%); }
.d-hero h1, .d-hero .lead { text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.d-hero .inner { position: relative; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px 96px; display: flex; flex-direction: column; gap: 14px; }
.d-hero .crumbs, .d-hero .crumbs a { color: #DCE6F0; }
.d-hero h1 { font-family: var(--serif); font-size: clamp(56px, 8vw, 96px); line-height: 1; letter-spacing: -0.04em; font-weight: 700; }
.d-hero .en { font-family: var(--mono); font-size: 18px; font-weight: 600; letter-spacing: .08em; color: #DCE6F0; }
.d-hero .lead { max-width: 620px; font-size: 20px; line-height: 1.6; }
.d-hero .credit { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); font-size: 14px; color: #fff; text-decoration: none; }
.d-hero .credit:hover { color: #fff; background: rgba(255,255,255,.24); }
.d-hero.no-photo { min-height: 420px; background: var(--night); }
.facts-wrap { max-width: 1200px; margin: -56px auto 0; padding: 0 24px; position: relative; }
.facts-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(176px, 100%), 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 48px -30px rgba(19,32,43,.5); }
.facts-strip > div { padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; border-right: 1px dashed var(--line); border-bottom: 1px dashed var(--line); margin: 0 -1px -1px 0; }
.facts-strip small { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
.facts-strip b { font-size: 16px; font-weight: 600; }
.page-tabs { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.page-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 15px; }
.page-tabs a:first-child { background: var(--ink); color: #fff; font-weight: 600; }
.guide-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 12px; padding: 22px 0; border-top: 1px solid var(--line); }
.guide-item:last-child { border-bottom: 1px solid var(--line); }
.guide-item .num { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--orange); padding-top: 4px; }
.guide-item h3 { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.guide-item .a { font-size: 17px; line-height: 1.8; }
.guide-item .a p + p { margin-top: 10px; }
.panel { display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 16px; }
.course { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.course li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding-bottom: 22px; }
.course li:last-child { padding-bottom: 0; }
.course .rail { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.course .day { font-family: var(--mono); font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 8px; background: var(--ink); color: #fff; white-space: nowrap; }
.course li:last-child .day { background: var(--orange); }
.course .rail i { flex: 1; width: 2px; background: var(--line); }
.course li:last-child .rail i { display: none; }
.course .what { display: flex; flex-direction: column; gap: 8px; }
.course .what b { font-size: 18px; }
.stops { display: flex; flex-wrap: wrap; gap: 6px; }
.stops span { font-size: 14px; padding: 4px 12px; border-radius: 999px; background: var(--ground); border: 1px solid var(--line); }
.swaps { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.swaps > div { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 16px; background: var(--orange-soft); }
.swaps > div:nth-child(2n) { background: var(--blue-soft); }
.swaps b { font-size: 14px; color: var(--orange-dark); }
.swaps > div:nth-child(2n) b { color: var(--blue-dark); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.table-wrap table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.table-wrap th { padding: 12px 14px; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--ground); text-align: left; }
.table-wrap td { padding: 14px; vertical-align: top; border-top: 1px solid var(--line); }
.table-wrap td a.name { font-weight: 600; color: var(--ink); }
.mini-link { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.mini-link:hover { color: var(--ink); }
.mini-link .cover { flex: 0 0 64px; height: 48px; border-radius: 10px; }
.mini-link .cover .ph-code { font-size: 16px; left: 8px; bottom: 6px; }
.side-links a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 15px; border-bottom: 1px solid var(--line-3); }
.side-links a:last-child { border-bottom: 0; }
.editor-card { display: flex; flex-direction: column; gap: 12px; }
.editor-card .who { display: flex; align-items: center; gap: 12px; }
.editor-card .who > span:nth-child(2) { display: flex; flex-direction: column; }
.editor-card .who b { font-size: 17px; }

/* ---------- 질문 상세 ---------- */
.q-box { display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.q-box h1 { display: flex; gap: 14px; font-family: var(--serif); font-size: clamp(25px, 3.2vw, 34px); line-height: 1.35; letter-spacing: -0.025em; font-weight: 700; }
.q-box .body { font-size: 17px; line-height: 1.8; color: var(--ink-2); }
.q-box .body p + p { margin-top: 12px; }
.conds { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 14px; background: var(--ground); border: 1px dashed var(--line-2); }
.answer { display: flex; flex-direction: column; gap: 14px; padding: 28px 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.answer.best { border: 2px solid var(--blue); }
.answer.pending { opacity: .7; border-style: dashed; }
.answer .head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.answer .head .who { display: flex; flex-direction: column; line-height: 1.35; }
.answer .head .when { margin-left: auto; font-size: 13px; color: var(--muted); }
.answer .body { font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.answer .body p + p { margin-top: 12px; }
.answer .body p:first-child { font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.6; }
.match-box { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 18px; background: var(--ground); }
.mini { display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.mini .cover { flex: 0 0 84px; height: 84px; border-radius: 10px; }
.mini .cover .ph-code { font-size: 20px; left: 8px; bottom: 6px; }
.mini .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mini .rt { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--muted); }
.mini .nm { font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--ink); text-decoration: none; }
.mini .actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.dest-side { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--night); color: #fff; text-decoration: none; }
.dest-side:hover { color: #fff; }
.dest-side .cover { height: 150px; }
.dest-side .in { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- 폼 ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--muted); }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=url], .field input[type=number], .field input[type=tel], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font-size: 15px; }
.field textarea, textarea.input { resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; min-height: 36px; }
.check input { width: 18px; height: 18px; }
.hp { position: absolute; left: -9999px; }

/* ---------- 알림 ---------- */
.flash { padding: 12px 16px; border-radius: 12px; font-size: 15px; margin-top: 16px; }
.flash.info { background: var(--blue-soft); color: var(--blue-dark); }
.flash.error { background: #FDECEA; color: #8A1C12; }

/* ---------- 커뮤니티 ---------- */
.board-hero { background: var(--night); color: #fff; }
.board-hero .wrap { padding-top: 48px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 12px; }
.board-hero h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); line-height: 1.2; letter-spacing: -0.03em; font-weight: 700; }
.board-hero p { max-width: 640px; color: var(--night-text); }
.list-box { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line-3); text-decoration: none; color: var(--ink); }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: var(--surface-2); color: var(--ink); }
.list-row.staff { background: var(--surface-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.consent-table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--surface); }
.consent-table th, .consent-table td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.consent-table th { width: 84px; background: var(--ground); font-weight: 600; white-space: nowrap; }
.list-row.notice { background: var(--orange-soft); }
.list-row.notice:hover { background: var(--orange-tint); }
.board-notice { color: var(--orange-dark); }
.list-row .lb { flex: 0 0 52px; }
.list-row .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.list-row .mid > b { font-size: 17px; font-weight: 600; line-height: 1.45; }
.list-row .thumb { flex: 0 0 76px; height: 58px; border-radius: 10px; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.pager .on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.article { display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.article h1 { font-family: var(--serif); font-size: clamp(25px, 3vw, 34px); line-height: 1.35; font-weight: 700; }
.article .body { font-size: 17px; line-height: 1.85; color: var(--ink-2); }
.article .body p + p { margin-top: 14px; }
.photos { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.photos img { width: 100%; border-radius: 14px; }
.comment { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line-3); }
.comment:last-child { border-bottom: 0; }

/* ---------- 칼럼 본문 ---------- */
.col-head { max-width: 860px; margin: 0 auto; padding: 48px 24px 28px; display: flex; flex-direction: column; gap: 18px; }
.col-head h1 { font-family: var(--serif); font-size: clamp(30px, 4.4vw, 48px); line-height: 1.22; letter-spacing: -0.03em; font-weight: 700; }
.col-head .lead { font-size: 19px; line-height: 1.7; color: var(--muted); }
.col-cover { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.col-cover .cover { aspect-ratio: 16 / 8; border-radius: 26px; }
.col-body { max-width: 760px; margin: 0 auto; padding: 44px 24px 24px; display: flex; flex-direction: column; gap: 22px; font-size: 18px; line-height: 1.9; color: var(--ink-2); }
.col-body h2 { margin-top: 18px; font-family: var(--serif); font-size: 27px; line-height: 1.35; color: var(--ink); font-weight: 700; }
.col-body h2 .n { font-family: var(--mono); font-size: 16px; color: var(--orange); margin-right: 10px; }
.col-body ul { margin: 0; padding: 22px 26px 22px 46px; border-radius: 18px; background: var(--night); color: #DCE6F0; font-size: 16px; line-height: 1.9; }
.ai-note { padding: 16px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; line-height: 1.7; color: var(--muted); }

/* ---------- 일정 상세 ---------- */
.p-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 200px 200px; gap: 10px; border-radius: 24px; overflow: hidden; }
.p-gallery .cover:first-child { grid-column: span 2; grid-row: span 2; }
.p-gallery .cover { grid-column: span 2; }
.p-gallery .note { position: absolute; right: 12px; bottom: 12px; font-size: 12px; padding: 4px 10px; border-radius: 8px; background: rgba(19,32,43,.8); color: #fff; }
.trio { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.trio > div { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--ink); }
.trio > div:nth-child(1) { border-top-color: var(--blue); }
.trio > div:nth-child(2) { border-top-color: var(--orange); }
.trio span { font-size: 14px; font-weight: 700; }
.trio > div:nth-child(1) span { color: var(--blue); }
.trio > div:nth-child(2) span { color: var(--orange); }
.trio p { font-size: 15px; line-height: 1.75; }
.days { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.days li { display: flex; gap: 18px; padding: 18px 24px; border-bottom: 1px dashed var(--line); }
.days li:last-child { border-bottom: 0; }
.days li.free { background: #FBF8F4; }
.days li > span:first-child { flex: 0 0 64px; font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--blue); }
.days li.free > span:first-child { color: var(--orange); }
.days li b { display: block; font-size: 16px; font-weight: 600; }
.days li small { font-size: 14px; color: var(--muted); }
.buy { position: relative; display: flex; flex-direction: column; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 48px -30px rgba(19,32,43,.5); overflow: hidden; }
.buy .p1 { padding: 24px 26px; display: flex; flex-direction: column; gap: 6px; }
.buy .p2 { padding: 20px 26px 26px; display: flex; flex-direction: column; gap: 14px; }
.buy .price { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kv { display: flex; flex-direction: column; }
.kv small { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
.kv b { font-size: 14px; font-weight: 600; }
.ended-banner { padding: 14px 18px; border-radius: 12px; background: var(--line-3); color: var(--ink-2); font-weight: 600; }

/* ---------- 에디터팀 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.steps > div { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.steps > div:last-child { background: var(--night); color: #fff; border-color: var(--night); }
.steps .mono { font-size: 13px; font-weight: 600; color: var(--orange); }
.steps > div:last-child .mono { color: var(--peach); }
.ed-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.ed-card:hover { color: var(--ink); border-color: var(--line-2); }
.ed-card .nm { font-family: var(--serif); font-size: 20px; font-weight: 700; }
.ed-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-card .tags span { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--ground); }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--night-2); color: var(--night-text); }
.site-footer .wrap { padding-top: 44px; padding-bottom: 52px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.site-footer .about { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.site-footer .about b { font-family: var(--serif); font-size: 22px; color: #fff; }
.site-footer .about p { font-size: 13px; line-height: 1.75; }
.site-footer nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 32px; font-size: 14px; align-content: start; }
.site-footer nav a { color: #fff; text-decoration: none; padding: 10px 0; }

/* ---------- 관리자 ---------- */
.admin-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: var(--night); color: #fff; padding: 18px 12px 28px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand-a { color: #fff; text-decoration: none; font-weight: 800; font-size: 17px; padding: 6px 10px 4px; }
.admin-side .grp { display: flex; flex-direction: column; gap: 2px; }
.admin-side .grp-t { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #8FA3B8; padding: 6px 10px 4px; }
.admin-side a { color: #DCE3EA; text-decoration: none; font-size: 14px; padding: 9px 10px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.admin-side a:hover { background: var(--night-3); color: #fff; }
.admin-side a.on { background: #fff; color: var(--ink); font-weight: 700; }
.admin-side .cnt { font-size: 11px; font-weight: 700; min-width: 20px; text-align: center; padding: 1px 6px; border-radius: 999px; background: var(--orange); color: #fff; }
.admin-side .to-site { margin-top: auto; color: var(--peach); }
.admin-main { padding: 28px 32px 80px; display: flex; flex-direction: column; gap: 22px; min-width: 0; max-width: 1280px; }
.admin-main h1 { font-size: 24px; }
.admin-main .btn { border-radius: 10px; }
.admin-main .card { min-width: 0; }
.tbl-wrap { overflow-x: auto; }
.delta { font-size: 12px; font-weight: 700; margin-left: 6px; }
.delta.up { color: var(--green); }
.delta.down { color: #B42318; }
.chart { width: 100%; height: 220px; display: block; }
.chart .bar { fill: var(--blue-tint); }
.chart .bar2 { fill: var(--blue); }
.chart .ln { fill: none; stroke: var(--green); stroke-width: 2.5; }
.chart .dot { fill: var(--green); }
.chart text { font-size: 11px; fill: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 4px 10px; align-items: center; font-size: 14px; }
.hbar .lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .track { grid-column: 1 / -1; height: 6px; background: var(--line-3); border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.hbar .track i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.hbar .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.ans-edit summary { cursor: pointer; font-size: 13px; color: var(--blue); }
.ans-edit textarea { width: 100%; min-height: 160px; margin-top: 8px; }
.inline-form { display: inline-flex; gap: 4px; align-items: center; }
.inline-form select { min-height: 32px; font-size: 13px; padding: 2px 6px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); }
.pin { color: var(--orange); font-weight: 800; font-size: 12px; margin-right: 4px; }
.ed-logo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: var(--surface-2); }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding: 10px 12px; gap: 6px; align-items: center; }
  .admin-side .grp { flex-direction: row; gap: 2px; flex: 0 0 auto; }
  .admin-side .grp-t { display: none; }
  .admin-side a { flex: 0 0 auto; white-space: nowrap; padding: 8px 10px; }
  .admin-side .brand-a { padding-right: 6px; }
  .admin-side .to-site { margin-top: 0; }
  .admin-main { padding: 20px 16px 60px; }
}
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); }
.stat { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.stat small { font-size: 13px; color: var(--muted); }
.stat b { font-size: 26px; font-family: var(--mono); }
.stat.warn b { color: var(--orange); }
.atable { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); }
.atable th { text-align: left; font-size: 12px; color: var(--muted); padding: 10px 12px; background: var(--ground); border-bottom: 1px solid var(--line); white-space: nowrap; }
.atable td { padding: 10px 12px; border-bottom: 1px solid var(--line-3); vertical-align: top; }
.atable tr:hover td { background: var(--surface-2); }
.st { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--line-3); color: var(--muted-2); white-space: nowrap; }
.st-published, .st-done { background: var(--green-soft); color: var(--green-ink); }
.st-pending, .st-queued, .st-running, .st-draft { background: var(--orange-soft); color: var(--orange-dark); }
.st-hidden, .st-error, .st-ended { background: #FDECEA; color: #8A1C12; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding: 12px 12px 0; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; font-size: 11px; color: var(--muted); }
.bars .b i { display: block; width: 100%; max-width: 28px; background: var(--blue); border-radius: 4px 4px 0 0; min-height: 2px; }
.two { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); align-items: start; }
.mono-area { font-size: 14px; letter-spacing: 0; }
pre.log { white-space: pre-wrap; font-size: 12px; background: var(--night-2); color: #DCE3EA; padding: 12px; border-radius: 10px; max-height: 300px; overflow: auto; }

@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  .section { padding: 40px 0; }
  .hero { padding-top: 28px; gap: 24px; }
  .mosaic { grid-template-rows: 150px 150px; gap: 8px; }
  .boarding .main { padding: 20px; }
  .boarding .rt { font-size: 26px; }
  .boarding .stub { flex-basis: 100%; border-left: 0; border-top: 2px dashed #3A4C5E; }
  .boarding .stub::before, .boarding .stub::after { display: none; }
  .d-hero { min-height: 420px; }
  .d-hero .inner { padding-bottom: 76px; }
  .facts-wrap { padding: 0 16px; }
  .panel, .q-box, .answer, .article { padding: 22px 20px; }
  .guide-item { grid-template-columns: 34px minmax(0, 1fr); }
  .course li { grid-template-columns: 58px minmax(0, 1fr); gap: 10px; }
  .list-row .thumb { display: none; }
  .p-gallery { grid-template-rows: 150px 120px; }
  .steps { grid-template-columns: 1fr; }
  .site-header .wrap { gap: 4px 14px; }
  .nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 0 18px; }
  .nav a, .page-tabs a { flex: 0 0 auto; white-space: nowrap; }
  .page-tabs { flex-wrap: nowrap; overflow-x: auto; border-radius: 16px; }
  .top-search { order: 2; flex-basis: 100%; }
  .user-box { margin-left: auto; }
  .d-hero h1 { font-size: 56px; }
  .facts-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-strip > div { padding: 14px 16px; }
  .facts-strip b { font-size: 14px; }
}
