/* 앱 형태 웹 v0.3 — docs/03_레퍼런스_앱화면.md 4~6장 규격.
   흰 바탕, 행 목록, 8px 띠·1px 선으로 구분, 그림자는 떠 있는 것(시트·알약·토스트)에만. 색은 brand.css 변수.
   글자: 본문 15 / 보조 13 / 캡션 12 / 구역 제목 17 / 화면 최대 22. 프레임 폭은 --frame (brand.json frame: 480 | 768). */
:root {
  --frame: 480px; --pad: 16px; --hd: 52px; --tab: 56px;
  --ease-spring: cubic-bezier(.2, 1.1, .35, 1);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}
html[data-frame="768"] { --frame: 768px; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--c-ink); background: var(--c-stage); font-size: 15px; line-height: 1.45; letter-spacing: -.01em; word-break: keep-all; overflow-wrap: anywhere; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; letter-spacing: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, address { margin: 0; padding: 0; font-style: normal; font-size: inherit; font-weight: inherit; }
ul, ol { list-style: none; }
i { font-style: normal; }
[hidden] { display: none !important; }
.no-js .js-only { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--c-point); outline-offset: 2px; border-radius: 6px; }
.ic { flex: none; }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .14s ease both; } ::view-transition-new(root) { animation: vt-in .2s ease both; }
@keyframes vt-out { to { opacity: 0; } } @keyframes vt-in { from { opacity: 0; } }

/* ---------- 앱 셸 ---------- */
.stage { height: 100dvh; display: flex; justify-content: center; }
.app { position: relative; width: 100%; max-width: var(--frame); min-width: 320px; height: 100dvh; display: flex; flex-direction: column; background: var(--c-bg); overflow: hidden; }
@media (min-width: 600px) {
  .stage { align-items: center; }
  .app { height: min(calc(100dvh - 32px), 920px); border-radius: 20px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 24px 60px rgba(20, 24, 30, .16); }
  html[data-frame="768"] .app { height: 100dvh; border-radius: 0; }
}
@media (min-width: 800px) { html[data-frame="768"] .app { height: min(calc(100dvh - 32px), 1100px); border-radius: 20px; } }
main { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scroll-padding-top: 130px; outline: 0; scrollbar-width: none; }
main::-webkit-scrollbar, .strip::-webkit-scrollbar, .chiprow::-webkit-scrollbar, .hcards::-webkit-scrollbar, .tablist::-webkit-scrollbar { display: none; }

/* 상단 바 52: 홈·일정은 지역 선택, 탭 첫 화면은 제목, 들어간 화면은 뒤로 + 제목 */
.hd { flex: none; position: relative; z-index: 30; height: var(--hd); display: flex; align-items: center; padding: 0 4px 0 var(--pad); background: var(--c-bg); border-bottom: 1px solid transparent; transition: border-color .15s; }
.hd.is-scrolled { border-bottom-color: var(--c-line); }
.hd-btn { position: relative; flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--c-ink); }
.hd-btn:active, .hd-region:active { background: var(--c-press); }
.hd-btn[data-back] { margin-left: -12px; }
.hd-region { display: inline-flex; align-items: center; gap: 2px; height: 40px; margin-left: -6px; padding: 0 6px; border-radius: 8px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.hd-region .ic { width: 20px; height: 20px; }
.hd-gap { flex: 1; }
.hd-title { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .15s; }
.hd-title.is-fixed, .hd.is-scrolled .hd-title, .no-js .hd-title { opacity: 1; }
.hd-my-n { position: absolute; top: 6px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--c-point); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.hd [data-save][aria-pressed="true"] .ic { fill: var(--c-point); stroke: var(--c-point); }

/* 하단 탭 56: 아이콘 24, 라벨 11, 선택은 채움 + 강조색 */
.tabbar { flex: none; position: relative; z-index: 40; height: calc(var(--tab) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); background: var(--c-bg); border-top: 1px solid var(--c-line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--c-ink-3); min-width: 0; }
.tabbar a:active { opacity: .6; }
.tabbar .ic { width: 24px; height: 24px; }
.tabbar a.is-on { color: var(--c-point); font-weight: 700; }
.tabbar a.is-on .ic { fill: currentColor; }
.tabbar a.is-on .ic .d { stroke: var(--c-bg); }
.tabbar a.is-on .ic-more { fill: none; }

/* ---------- 버튼 · 칩 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 12px; font-weight: 700; font-size: 15px; text-align: center; -webkit-user-select: none; user-select: none; transition: opacity .1s, background .15s; }
.btn:active { opacity: .75; }
.btn-main { width: 100%; min-height: 52px; font-size: 16px; background: var(--c-point); color: #fff; }
.btn-main:hover { background: var(--c-point-press); }
.btn-main[aria-disabled="true"] { background: var(--c-band); color: #A3A9B0; pointer-events: none; }
.btn-main.is-done { background: var(--c-tint); color: var(--c-point); }
.btn-sub { background: var(--c-band); color: var(--c-ink); font-weight: 600; }
.btn-text { min-height: 44px; padding: 0 12px; color: var(--c-ink-3); font-size: 14px; font-weight: 600; }
.chip-btn { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 16px; background: var(--c-bg); box-shadow: inset 0 0 0 1px var(--c-line); font-size: 13px; font-weight: 600; color: var(--c-ink-2); white-space: nowrap; }
.chip-btn:active { background: var(--c-press); }
.chip-btn .n { font-size: 12px; color: var(--c-ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.chip-btn.is-on { background: var(--c-ink); box-shadow: none; color: #fff; }
.chip-btn.is-on .n { color: rgba(255, 255, 255, .75); }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
p.chip-wrap.sec { padding: 12px var(--pad) 0; }
.seg { display: inline-flex; padding: 2px; border-radius: 10px; background: var(--c-band); }
.seg a, .seg button { min-height: 32px; min-width: 64px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--c-ink-3); }
.seg .is-on, .seg [aria-selected="true"] { background: var(--c-bg); color: var(--c-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.seg b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--c-point); }
.ad-t { color: var(--c-ink-3); }

/* 가로 스크롤 (화살표는 JS가 붙인다) */
.scroller { position: relative; min-width: 0; max-width: 100%; }
.strip, .chiprow, .hcards { display: flex; overflow-x: auto; scrollbar-width: none; padding: 0 var(--pad); scroll-padding: 0 var(--pad); }
.chiprow { gap: 6px; }
.chiprow.is-wrap { flex-wrap: wrap; overflow: visible; padding: 0; }
.sc-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 28px; height: 28px; border-radius: 50%; background: var(--c-bg); box-shadow: 0 1px 6px rgba(0, 0, 0, .16); display: none; place-items: center; font-size: 15px; line-height: 1; color: var(--c-ink-2); }
.sc-btn.prev { left: 4px; } .sc-btn.next { right: 4px; }
@media (hover: hover) and (pointer: fine) { .scroller.can-prev > .sc-btn.prev, .scroller.can-next > .sc-btn.next { display: grid; } }

/* 주말 스트립: 요일 위·날짜 아래, 주말끼리 묶음. 고른 주말은 짙은 알약 */
.filters { position: sticky; top: 0; z-index: 20; background: var(--c-bg); padding: 4px 0 10px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.strip { gap: 6px; }
.wk { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 62px; padding: 0 10px; border-radius: 12px; line-height: 1.2; }
.wk:active { background: var(--c-press); }
.wk-name { font-size: 11px; font-weight: 500; color: var(--c-ink-3); }
.wk-days { display: flex; gap: 10px; margin: 1px 0; }
.wk-d { display: flex; align-items: baseline; gap: 3px; }
.wk-d i { font-size: 11px; font-weight: 600; } .wk-d i.sat { color: var(--c-sat); } .wk-d i.sun { color: var(--c-sun); }
.wk b { font-size: 17px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wk-n { font-size: 11px; font-weight: 500; color: var(--c-ink-3); font-variant-numeric: tabular-nums; }
.wk.is-text { min-width: 56px; }
.wk.is-on { background: var(--c-ink); color: #fff; }
.wk.is-on .wk-name, .wk.is-on .wk-n, .wk.is-on i { color: rgba(255, 255, 255, .8); }

/* ---------- 구역 ---------- */
.band { display: block; height: 8px; margin: 0; border: 0; background: var(--c-band); }
.sec { padding: 20px var(--pad) 16px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; min-height: 28px; }
.sec-head h1, .sec-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.sec-head h1 b { color: var(--c-point); }
.sec-head a { flex: none; font-size: 13px; color: var(--c-ink-3); font-weight: 500; }
.note { font-size: 13px; color: var(--c-ink-3); margin-top: 10px; }
.asof { padding: 16px var(--pad) 0; font-size: 12px; color: var(--c-ink-3); }
.land-head { padding: 4px var(--pad) 12px; }
.land-head h1, .prose h1 { font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -.03em; }
.land-meta { margin-top: 4px; font-size: 13px; color: var(--c-ink-3); } .land-meta b { color: var(--c-point); }
.land-intro { margin-top: 6px; font-size: 13px; color: var(--c-ink-3); }
.notice-band { display: flex; align-items: center; min-height: 44px; margin-top: 10px; padding: 0 12px; border-radius: 10px; background: var(--c-tint); color: var(--c-point); font-weight: 600; font-size: 13px; }
.empty { padding: 36px var(--pad); text-align: center; color: var(--c-ink-3); font-size: 14px; }
.empty .btn { margin-top: 12px; min-height: 40px; font-size: 14px; }
.empty-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.land-head .empty-btns { justify-content: flex-start; } .land-head .empty-btns .btn { width: auto; margin-top: 12px; min-height: 44px; font-size: 15px; }

/* ---------- 박람회 행: 날짜 타일 64×72 + 글자 3줄, 높이 약 92 ---------- */
.rows > li + li { border-top: 1px solid var(--c-line); }
.row { position: relative; }
.row-link { display: flex; align-items: center; gap: 12px; min-height: 92px; padding: 10px 44px 10px 0; }
.row-link:active { background: var(--c-press); }
.tile { flex: none; width: 64px; height: 72px; border-radius: 10px; background: var(--c-tint); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; color: var(--c-ink); }
.tile-dow { font-size: 11px; font-weight: 600; color: var(--c-ink-3); } .tile-dow.sat, .tile i.sat { color: var(--c-sat); } .tile-dow.sun, .tile i.sun { color: var(--c-sun); }
.tile b { font-size: 22px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tile-end { font-size: 11px; font-weight: 600; color: var(--c-ink-2); font-variant-numeric: tabular-nums; }
.tile.is-always b { font-size: 17px; }
.tile.is-off, .row.is-off .tile { background: var(--c-band); color: var(--c-ink-3); }
.row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-name { font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-sub { font-size: 13px; color: var(--c-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub b { font-weight: 500; color: var(--c-ink-2); }
.row-meta { font-size: 12px; color: var(--c-ink-3); }
.st-week, .st-live { color: var(--c-point); font-weight: 600; }
.row-save { position: absolute; top: 6px; right: -10px; width: 44px; height: 44px; display: grid; place-items: center; color: #B4BAC1; }
.row-save span, .btn-save span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.row-save:active { transform: scale(.85); }
.row-save[aria-pressed="true"], .btn-save[aria-pressed="true"] { color: var(--c-point); }
.row-save[aria-pressed="true"] .ic, .btn-save[aria-pressed="true"] .ic { fill: currentColor; animation: pop .3s var(--ease-spring); }
@keyframes pop { from { transform: scale(.6); } }
.row-act { position: absolute; right: 0; bottom: 10px; display: flex; gap: 12px; font-size: 13px; font-weight: 600; }
.row-act a { color: var(--c-point); } .row-act button { color: var(--c-ink-3); font-weight: 500; }
.row.has-act .row-link { padding-bottom: 34px; padding-right: 0; }
.day-group, .sec .rows { padding: 0; } .day-group { padding: 0 var(--pad); }
.day-title { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; height: 36px; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); background: var(--c-bg); font-size: 13px; font-weight: 600; color: var(--c-ink-3); }
.filters ~ [data-list] .day-title, .filters ~ .day-group .day-title { top: var(--sticky, 0px); }
h2.day-title:not(.day-group *), h3.day-title:not(.day-group *) { margin: 0; }
.more-row { display: flex; align-items: center; justify-content: center; height: 44px; margin-top: 4px; border-radius: 10px; background: var(--c-band); font-size: 13px; font-weight: 600; color: var(--c-ink-2); }
.list-title { padding: 2px var(--pad) 0; font-size: 13px; font-weight: 500; color: var(--c-ink-3); }
.list-title b { color: var(--c-ink); font-weight: 700; } .list-title a { margin-left: 6px; color: var(--c-point); font-weight: 600; }
.filter-panel { margin: 0 var(--pad) 8px; padding: 12px; border-radius: 12px; background: var(--c-band); }
.filter-panel h3 { font-size: 12px; color: var(--c-ink-3); margin: 12px 0 6px; } .filter-panel h3:first-child { margin-top: 0; }
.js .app > main .filter-panel { display: none; }
.sheet .filter-panel { margin: 0; padding: 0 0 8px; background: none; } .sheet .filter-panel .seg { background: var(--c-band); }
.pill-fab { position: sticky; z-index: 25; bottom: 12px; display: flex; align-items: center; gap: 6px; width: fit-content; height: 40px; margin: 16px auto 0; padding: 0 16px; border-radius: 20px; background: var(--c-ink); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
.pill-fab:active { transform: scale(.96); }
.pill-fab .ic { width: 16px; height: 16px; }
.pill-fab b { display: grid; place-items: center; min-width: 16px; height: 16px; border-radius: 8px; background: #fff; color: var(--c-ink); font-size: 10px; }
[data-list].is-loading > * { display: none; }
.skel { padding: 36px var(--pad) 0; display: grid; gap: 20px; }
.skel i { display: block; height: 72px; border-radius: 10px; background: linear-gradient(100deg, var(--c-band) 30%, #fff 50%, var(--c-band) 70%); background-size: 300% 100%; animation: shimmer 1.1s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }

/* ---------- 홈 ---------- */
.quick { padding: 16px 8px 14px; }
.quick ul { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 12px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--c-ink-2); }
.quick a:active { opacity: .6; }
.quick-ic, .g-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--c-ink); }
.q1 { background: var(--q1); } .q2 { background: var(--q2); } .q3 { background: var(--q3); } .q4 { background: var(--q4); }
.quick-ic .ic, .g-ic .ic { width: 22px; height: 22px; }
.sum-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; padding: 12px var(--pad); }
.sum-row:active { background: var(--c-press); }
.sum-main { display: flex; flex-direction: column; min-width: 0; }
.sum-main b { font-size: 20px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sum-main span { font-size: 13px; color: var(--c-ink-3); }
.sum-side { flex: none; font-size: 13px; color: var(--c-ink-3); } .sum-side b { color: var(--c-point); font-variant-numeric: tabular-nums; }
.hcards { gap: 8px; margin: 8px calc(var(--pad) * -1) 0; }
.hcard { flex: none; width: 132px; display: flex; flex-direction: column; gap: 2px; }
.hcard .tile { width: 132px; height: 76px; margin-bottom: 6px; }
.hcard b { font-size: 13px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hcard span { font-size: 12px; color: var(--c-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec > .chip-wrap { margin-top: 8px; }

/* 설정형 목록 · 가이드 행 */
.menu-list { padding: 0 var(--pad); }
.sec .menu-list { padding: 0; }
.menu-list li + li { border-top: 1px solid var(--c-line); }
.menu-list li > * { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; }
.menu-list li > a:active { background: var(--c-press); }
.menu-list .ic-chev { width: 18px; height: 18px; color: #B4BAC1; }
.g-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.g-t b { font-size: 15px; font-weight: 500; } .g-t small, .menu-list li > div > small { font-size: 12px; color: var(--c-ink-3); }
.menu-list li > div { color: var(--c-ink-3); }
.guide-list { padding: 0 var(--pad); }
.guide-list li + li { border-top: 1px solid var(--c-line); }
.guide-list li > * { display: flex; flex-direction: column; justify-content: center; min-height: 60px; padding: 10px 0; }
.guide-list b { font-size: 15px; font-weight: 600; } .guide-list span { font-size: 13px; color: var(--c-ink-3); }
.guide-list div b { color: var(--c-ink-3); font-weight: 500; }
p.sec > .btn-main { margin-top: 4px; }

/* 아코디언(FAQ·방문 준비): 선으로 구분한 행 */
.acc details { border-top: 1px solid var(--c-line); } .acc details:first-child { border-top: 0; }
.acc summary, .legal summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 0; font-size: 15px; font-weight: 500; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.acc summary::after, .legal summary::after { content: ""; flex: none; width: 7px; height: 7px; border-right: 1.5px solid #9AA1A9; border-bottom: 1.5px solid #9AA1A9; transform: rotate(45deg); transition: transform .2s; margin: 0 4px 3px 0; }
details[open] > summary::after { transform: rotate(-135deg); margin-bottom: -3px; }
.acc-body { padding: 0 0 14px; color: var(--c-ink-2); font-size: 14px; line-height: 1.55; }
.dots li { position: relative; padding-left: 12px; margin: 6px 0; font-size: 14px; color: var(--c-ink-2); line-height: 1.5; }
.dots li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 3px; height: 3px; border-radius: 50%; background: #9AA1A9; }
.plain-list li { padding: 5px 0; font-size: 14px; color: var(--c-ink-2); }

/* 주말별(달력) 보기 */
.cal-list { padding: 0 var(--pad); }
.cal-week { padding: 14px 0; } .cal-week + .cal-week { border-top: 1px solid var(--c-line); }
.cal-week h2 { font-size: 15px; font-weight: 600; } .cal-week h2 b { color: var(--c-point); }
.cal-week ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cal-week li a { display: inline-flex; gap: 4px; align-items: center; height: 30px; padding: 0 10px; border-radius: 15px; background: var(--c-band); font-size: 13px; }
.cal-grid { display: none; }
html[data-frame="768"] .cal-grid { padding: 12px var(--pad) 0; }
@media (min-width: 600px) { html[data-frame="768"] .cal-grid { display: block; } }
.cal-band { display: block; padding: 10px 12px; margin-bottom: 8px; border-radius: 10px; background: var(--c-band); font-weight: 600; font-size: 13px; }
.cal-grid table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-grid th { padding: 6px 0; font-size: 12px; color: var(--c-ink-3); font-weight: 600; } th.sat { color: var(--c-sat); } th.sun { color: var(--c-sun); }
.cal-grid td { height: 58px; vertical-align: top; padding: 6px; border-top: 1px solid var(--c-line); font-size: 13px; }
.cal-grid td.past .cal-d { color: #B4BAC1; }
.cal-d { display: block; font-weight: 600; font-variant-numeric: tabular-nums; }
.cal-n { display: inline-block; margin-top: 4px; padding: 1px 7px; border-radius: 999px; background: var(--c-tint); color: var(--c-point); font-size: 12px; font-weight: 700; }

/* 랜딩 부속 · 표 · 글 */
.venue-list li { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; color: var(--c-ink-2); }
.venue-list li + li { border-top: 1px solid var(--c-line); }
.venue-list .ic { width: 16px; height: 16px; color: #9AA1A9; } .venue-list address { flex: 1; min-width: 0; }
.venue-list span { flex: none; font-size: 12px; color: var(--c-ink-3); }
.tbl-wrap { padding: 0 var(--pad); overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; color: var(--c-ink-3); padding: 8px 4px; white-space: nowrap; font-weight: 500; }
.tbl td { padding: 10px 4px; border-top: 1px solid var(--c-line); vertical-align: top; }
.tbl td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.tbl td:last-child { font-size: 13px; color: var(--c-ink-3); }
.prose { padding: 4px var(--pad) 0; }
.prose h2 { margin: 24px 0 6px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.prose p { margin: 6px 0; color: var(--c-ink-2); line-height: 1.6; }
.prose ul, .prose ol { margin: 6px 0; padding-left: 20px; color: var(--c-ink-2); line-height: 1.6; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; } .prose li { margin: 3px 0; }
.prose p a { font-weight: 600; color: var(--c-point); }
.toc { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: var(--c-band); font-size: 14px; }
.toc ol { margin: 0; }

/* ---------- 상세 ---------- */
.ev-head { display: flex; gap: 14px; padding: 4px var(--pad) 16px; }
.tile.is-lg { width: 76px; height: 88px; border-radius: 12px; } .tile.is-lg b { font-size: 26px; } .tile.is-lg .tile-dow, .tile.is-lg .tile-end { font-size: 12px; } .tile.is-lg.is-always b { font-size: 19px; }
.ev-head-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ev-head h1 { font-size: 20px; font-weight: 700; line-height: 1.32; letter-spacing: -.03em; }
.ev-state { font-size: 13px; font-weight: 600; color: var(--c-point); } .ev-state.is-off { color: var(--c-ink-3); }
.ev-notice { margin: 0 var(--pad) 12px; padding: 12px; border-radius: 10px; background: var(--c-band); font-size: 14px; color: var(--c-ink-2); }
.info-rows { padding: 0 var(--pad); }
.info-rows li { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 0; font-size: 15px; border-top: 1px solid var(--c-line); }
.info-rows .ic { width: 20px; height: 20px; color: #9AA1A9; } .info-rows span { flex: 1; min-width: 0; }
.info-act { flex: none; font-size: 13px; font-weight: 600; color: var(--c-point); padding: 8px 0 8px 8px; }
.tablist { position: relative; display: flex; overflow-x: auto; scrollbar-width: none; padding: 0 var(--pad); background: var(--c-bg); box-shadow: inset 0 -1px 0 var(--c-line); }
.tablist.is-sticky, .ev .tablist { position: sticky; top: 0; z-index: 10; }
.no-js .tablist { display: none; }
.tablist button { flex: none; height: 44px; margin-right: 20px; font-size: 15px; font-weight: 500; color: var(--c-ink-3); border-bottom: 2px solid transparent; white-space: nowrap; }
.tablist button[aria-selected="true"] { color: var(--c-ink); font-weight: 700; border-color: var(--c-ink); }
.tablist button.is-now::after { content: "지금"; margin-left: 4px; font-size: 11px; font-weight: 700; color: var(--c-point); }
.ev .tabpanel { padding: 14px var(--pad) 18px; }
.tabpanel > h2 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.js .tabpanel > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tabpanel > p { font-size: 14px; color: var(--c-ink-2); } .tabpanel .btn { margin-top: 12px; min-height: 40px; font-size: 14px; }
.evbar { flex: none; position: relative; z-index: 35; display: flex; gap: 8px; padding: 8px var(--pad) calc(8px + env(safe-area-inset-bottom)); background: var(--c-bg); border-top: 1px solid var(--c-line); }
.evbar .btn-main { flex: 1; width: auto; }
.btn-save { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-ink-2); }

/* ---------- 바텀시트(프레임 안), 토스트 ---------- */
.sheet-wrap { position: absolute; z-index: 60; inset: 0; display: flex; align-items: flex-end; }
.sheet-dim { position: absolute; inset: 0; background: rgba(10, 12, 16, .45); animation: dim .2s ease both; }
@keyframes dim { from { opacity: 0; } }
.sheet { position: relative; width: 100%; max-height: 86%; overflow-y: auto; padding: 0 var(--pad) calc(16px + env(safe-area-inset-bottom)); background: var(--c-bg); border-radius: 20px 20px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .16); animation: up .34s var(--ease-spring) both; outline: 0; }
@keyframes up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { *, ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.sheet-grip { display: block; width: 100%; height: 24px; position: relative; }
.sheet-grip::before { content: ""; position: absolute; left: 50%; top: 8px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: #D9DDE1; }
.sheet-meta { font-size: 12px; color: var(--c-ink-3); }
.sheet h2 { font-size: 18px; font-weight: 700; line-height: 1.35; margin: 2px 0 12px; letter-spacing: -.02em; }
.sheet h3 { font-size: 12px; color: var(--c-ink-3); margin: 0; }
.sheet-card { padding: 12px 14px 4px; border-radius: 12px; background: var(--c-band); }
.sheet-desc { font-size: 13px; color: var(--c-ink-3); margin: -6px 0 14px; }
.sheet-warn { margin-bottom: 10px; padding: 10px 12px; border-radius: 10px; background: var(--c-warn-bg); color: var(--c-warn-ink); font-size: 13px; font-weight: 600; }
.ck { display: flex; align-items: flex-start; gap: 12px; min-height: 52px; padding: 13px 0; cursor: pointer; }
.ck input { -webkit-appearance: none; appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border-radius: 50%; background: var(--c-bg); box-shadow: inset 0 0 0 1.5px #C5CAD0; display: grid; place-items: center; transition: background .15s; cursor: pointer; }
.ck input::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.ck input:checked { background: var(--c-point); box-shadow: none; }
.ck input:checked::after { opacity: 1; }
.ck span { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 15px; font-weight: 500; line-height: 1.4; padding-top: 1px; } .ck small { font-size: 12px; color: var(--c-ink-3); font-weight: 400; }
.sheet-notes { margin: 12px 2px 16px; font-size: 12px; color: var(--c-ink-3); display: grid; gap: 5px; line-height: 1.5; }
.sheet-notes li { position: relative; padding-left: 9px; } .sheet-notes li::before { content: ""; position: absolute; left: 0; top: .65em; width: 3px; height: 3px; border-radius: 50%; background: #9AA1A9; }
.sheet-notes .hub-note { padding: 10px 12px; border-radius: 10px; background: var(--c-tint); color: var(--c-point); font-weight: 500; } .sheet-notes .hub-note::before { display: none; }
.sheet-btns { display: grid; gap: 8px; } .sheet-btns .btn-sub { min-height: 52px; font-size: 16px; }
.sheet .btn-text { display: block; margin: 0 auto; }
.pick-row { display: flex; align-items: center; justify-content: space-between; min-height: 48px; font-size: 15px; }
.pick-row b { font-weight: 600; } .pick-row span { font-size: 13px; color: var(--c-ink-3); } .pick-row.is-on b { color: var(--c-point); }
.pick-group { border-top: 1px solid var(--c-line); padding-bottom: 12px; }
.pick-cities { display: flex; flex-wrap: wrap; gap: 6px; }
.pick.is-page { padding: 0 var(--pad) 24px; }
.search-form { display: grid; gap: 10px; padding-bottom: 4px; }
.search-form input, .dday-form input { height: 48px; padding: 0 14px; border: 0; border-radius: 12px; font: inherit; font-size: 16px; background: var(--c-band); color: var(--c-ink); width: 100%; }
.toast { position: absolute; z-index: 70; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab) + 72px); width: max-content; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 12px; background: rgba(25, 27, 30, .94); color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 6px 20px rgba(0, 0, 0, .22); animation: toast .3s var(--ease-spring) both; }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 12px); } }
.toast a { margin-left: 10px; font-weight: 700; color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 내 일정 · 순서대로 신청 ---------- */
.seq-band { display: flex; align-items: center; gap: 4px; height: 48px; padding: 0 var(--pad); background: var(--c-tint); color: var(--c-point); font-size: 14px; font-weight: 600; }
.seq-band b { margin-left: 2px; } .seq-band .ic { width: 16px; height: 16px; margin-left: auto; }
.seg-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px var(--pad) 4px; }
.my-dday { font-size: 13px; font-weight: 600; color: var(--c-ink-3); font-variant-numeric: tabular-nums; }
[data-my-root] { padding: 0 var(--pad); } [data-my-root] .empty { padding-left: 0; padding-right: 0; }
.my-warn { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--c-warn-bg); color: var(--c-warn-ink); font-size: 13px; }
.seq { padding: 8px var(--pad) 20px; }
.seq-step { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13px; color: var(--c-ink-3); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.seq-dots { display: flex; gap: 4px; flex: 1; } .seq-dots i { flex: 1; height: 3px; border-radius: 2px; background: var(--c-band); } .seq-dots i.on { background: var(--c-point); }
.seq-head { display: flex; gap: 14px; }
.seq h2 { font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; }
.seq-info { margin: 16px 0; padding: 12px 14px; border-radius: 12px; background: var(--c-band); font-size: 13px; color: var(--c-ink-2); }
.seq-days { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.seq-days button { height: 32px; padding: 0 12px; border-radius: 16px; background: var(--c-bg); box-shadow: inset 0 0 0 1px var(--c-line); font-size: 13px; font-weight: 600; }
.seq-days button[aria-pressed="true"] { background: var(--c-ink); box-shadow: none; color: #fff; }
.seq-after { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.seq-after .btn { min-height: 48px; padding: 0 8px; font-size: 14px; }
.seq-done { padding: 28px var(--pad); display: grid; gap: 8px; }
.seq-done h2 { font-size: 20px; font-weight: 700; } .seq-done p { font-size: 14px; color: var(--c-ink-2); margin-bottom: 8px; } .seq-done .btn-sub { min-height: 52px; }

/* ---------- 체크리스트 ---------- */
.cl-sum { padding: 8px var(--pad) 16px; }
.cl-num { display: flex; align-items: baseline; gap: 6px; font-size: 15px; color: var(--c-ink-3); font-variant-numeric: tabular-nums; }
.cl-num b { font-size: 22px; font-weight: 800; color: var(--c-ink); letter-spacing: -.03em; }
.progress-bar { flex: 1; align-self: center; height: 6px; margin-left: 8px; border-radius: 3px; background: var(--c-band); overflow: hidden; } .progress-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--c-point); transition: width .3s; }
.cl-dday { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--c-ink-3); } .cl-dday b { font-size: 15px; font-weight: 700; color: var(--c-point); flex: none; }
.dday-form { display: flex; align-items: end; gap: 8px; margin-top: 12px; }
.dday-form label { flex: 1; display: flex; flex-direction: column; font-size: 12px; color: var(--c-ink-3); gap: 4px; }
.dday-form input { height: 44px; font-size: 15px; } .dday-form .btn-sub { flex: none; }
[data-checklist] .tabpanel { padding: 0 var(--pad) 8px; }
.stage-hint { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--c-tint); color: var(--c-point); font-size: 13px; font-weight: 500; }
[data-checklist] h3.day-title { position: static; margin: 8px 0 0; padding: 0; background: none; }
.no-js [data-checklist] .tabpanel > h2 { font-size: 17px; margin-top: 20px; }
.cl-items li { border-top: 1px solid var(--c-line); }
.cl-items input:checked + span b { color: var(--c-ink-3); text-decoration: line-through; text-decoration-color: #C5CAD0; }
.cl-items .ck b { font-weight: 500; }
.cl-link { display: block; margin: -6px 0 12px 36px; font-size: 13px; font-weight: 600; color: var(--c-point); }
.cl-link.is-group { color: var(--c-ink-3); font-weight: 400; font-size: 12px; } .cl-link.is-group a { text-decoration: underline; }

/* ---------- 맨 아래 안내(접힘) ---------- */
.legal { margin-top: 20px; padding: 16px var(--pad) 24px; background: var(--c-band); font-size: 12px; color: var(--c-ink-3); line-height: 1.6; }
.legal summary { min-height: 36px; padding: 6px 0 0; font-size: 12px; font-weight: 600; color: var(--c-ink-2); }
.legal-body { padding-top: 8px; } .legal-body p { margin-bottom: 8px; } .legal-body a { color: var(--c-ink-2); text-decoration: underline; text-underline-offset: 2px; }
.legal h2 { font-size: 12px; font-weight: 600; color: var(--c-ink-2); margin: 10px 0 4px; }
.legal-regions li { line-height: 2; } .legal-regions li a { margin-right: 8px; display: inline-block; }
.legal-links { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 8px 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 6px; margin-bottom: 8px; } .crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }

.no-js .day-title { position: static; }
.seq-band { gap: 0; } .seq-band b { margin: 0 1px 0 5px; }
.ck input { transition: none; }

/* ===================== v0.4 ===================== */
/* 색 배치: 강조색은 상단 바(홈·일정)와 선택 상태(주말·칩·날짜·탭), 주 버튼에 쓴다. 날짜 타일은 중립 회색 면 + 요일 색 글자. */
.hd.is-brand { background: var(--c-point); color: #fff; }
.hd.is-brand .hd-btn, .hd.is-brand .hd-region { color: #fff; }
.hd.is-brand .hd-btn:active, .hd.is-brand .hd-region:active { background: rgba(255, 255, 255, .16); }
.hd.is-brand .hd-my-n { background: #fff; color: var(--c-point); }
.hd.is-brand.is-scrolled { border-bottom-color: transparent; }
.hd.is-brand + main > .filters:first-child { padding-top: 12px; }
.wk.is-on, .chip-btn.is-on, .seq-days button[aria-pressed="true"] { background: var(--c-point); color: #fff; }
.tile { background: var(--c-band); }
.tile b { color: var(--c-ink); }
.row-name { font-weight: 700; }
.seg b { color: var(--c-point); }

/* 가독성: 제목은 균형 있게, 문장은 어절 단위로 끊고 줄 간격을 넉넉히 */
h1, h2, h3, .row-name, .hcard b, .g-t b { text-wrap: balance; }
p, li, small { text-wrap: pretty; }
.dots li { font-size: 14.5px; line-height: 1.6; margin: 8px 0; color: var(--c-ink); }
.dots.is-note li { font-size: 13px; color: var(--c-ink-3); margin: 6px 0; }
.acc-body, .prose p, .prose li, .tabpanel > p { font-size: 14.5px; line-height: 1.65; }
.sheet-notes { font-size: 13px; line-height: 1.55; gap: 7px; }
.note { line-height: 1.55; } .note.is-top { margin: 0 0 12px; }
.empty p { line-height: 1.55; }
.ev-head h1 { line-height: 1.36; }
.legal { line-height: 1.7; }

/* 일정 캘린더 */
.list-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px var(--pad) 8px; }
.list-bar .list-title { padding: 0; min-width: 0; }
.list-bar .seg { flex: none; } .list-bar .seg a { min-width: 0; min-height: 30px; }
.cal-wrap { padding: 0 var(--pad) 8px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.cal-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cal-nav { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--c-ink); }
.cal-nav:active { background: var(--c-press); } .cal-nav.is-off { color: #D0D4D9; } .cal-nav .ic { width: 20px; height: 20px; }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { height: 28px; font-size: 12px; font-weight: 500; color: var(--c-ink-3); } .cal th.sat { color: var(--c-sat); } .cal th.sun { color: var(--c-sun); }
.cal td { padding: 2px; text-align: center; vertical-align: top; }
.cal td > a, .cal td > span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 54px; border-radius: 12px; }
.cal .cal-d { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.cal .cal-n { display: block; margin: 0; padding: 0; background: none; height: 14px; font-size: 11px; font-weight: 600; color: var(--c-point); line-height: 14px; font-variant-numeric: tabular-nums; }
.cal td.sat .cal-d { color: var(--c-sat); } .cal td.sun .cal-d { color: var(--c-sun); }
.cal td.is-past .cal-d { color: #C3C8CE; }
.cal td.has > a { background: var(--c-tint); }
.cal td.has > a:active { opacity: .7; }
.cal td.is-today .cal-n { color: var(--c-ink-3); }
.cal td.is-today > span, .cal td.is-today > a { box-shadow: inset 0 0 0 1.5px var(--c-line); }
.cal td.is-on > a { background: var(--c-point); box-shadow: none; }
.cal td.is-on .cal-d, .cal td.is-on .cal-n { color: #fff; }
.always-band { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin: 4px var(--pad) 14px; padding: 0 14px; border-radius: 12px; background: var(--c-band); font-size: 14px; }
.always-band b { font-weight: 600; } .always-band span { color: var(--c-ink-3); font-size: 13px; }

/* 플로팅 메뉴(오른쪽 아래) */
.fabm { position: absolute; z-index: 45; right: 16px; bottom: calc(var(--tab) + 14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fabm-btn { position: relative; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--c-point); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .24); transition: transform .2s var(--ease-spring); }
.fabm-btn:active { transform: scale(.92); }
.fabm-btn[aria-expanded="true"] { background: var(--c-ink); transform: rotate(45deg); }
.fabm-btn b { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--c-ink); color: #fff; font-size: 11px; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px var(--c-bg); }
.fabm-btn[aria-expanded="true"] b { display: none; }
.fabm-menu { min-width: 188px; padding: 6px; border-radius: 16px; background: var(--c-bg); box-shadow: 0 10px 34px rgba(0, 0, 0, .22), 0 0 0 1px rgba(0, 0, 0, .05); animation: pop-menu .22s var(--ease-spring) both; transform-origin: 100% 100%; }
@keyframes pop-menu { from { opacity: 0; transform: scale(.85) translateY(8px); } }
.fabm-menu > * { display: flex; align-items: center; gap: 10px; width: 100%; height: 46px; padding: 0 12px; border-radius: 10px; font-size: 15px; font-weight: 500; text-align: left; }
.fabm-menu > *:active { background: var(--c-press); }
.fabm-menu .ic { width: 20px; height: 20px; color: var(--c-ink-3); }
.fabm-menu .is-main { color: var(--c-point); font-weight: 700; } .fabm-menu .is-main .ic { color: var(--c-point); }
.fabm-menu b { margin-left: 4px; padding: 0 6px; border-radius: 9px; background: var(--c-point); color: #fff; font-size: 11px; line-height: 18px; display: inline-block; }
.fabm-menu [data-top] .ic { transform: rotate(90deg); }
.fabm-dim { position: absolute; inset: 0; z-index: 44; background: rgba(10, 12, 16, .25); animation: dim .2s ease both; }
.pill-fab { margin-left: var(--pad); }

/* 모달 팝업(가운데) */
.modal-wrap { align-items: center; justify-content: center; padding: 24px; }
.modal { position: relative; width: 100%; max-width: 340px; max-height: 84%; overflow-y: auto; padding: 22px 20px 16px; border-radius: 16px; background: var(--c-bg); box-shadow: 0 20px 60px rgba(0, 0, 0, .28); animation: modal-in .26s var(--ease-spring) both; outline: 0; }
@keyframes modal-in { from { opacity: 0; transform: scale(.92); } }
.modal h2 { font-size: 18px; font-weight: 700; line-height: 1.4; letter-spacing: -.02em; }
.modal-body { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--c-ink-2); }
.modal-body ul { margin-top: 8px; display: grid; gap: 4px; } .modal-body li { position: relative; padding-left: 10px; font-size: 14px; color: var(--c-ink); }
.modal-body li::before { content: ""; position: absolute; left: 0; top: .7em; width: 3px; height: 3px; border-radius: 50%; background: #9AA1A9; }
.modal-body .chip-wrap { margin-top: 12px; } .modal-body .chip-btn { height: 36px; padding: 0 14px; font-size: 14px; }
.modal-body small { display: block; margin-top: 10px; font-size: 12px; color: var(--c-ink-3); }
.modal-btns { display: flex; gap: 8px; margin-top: 18px; }
.modal-btns .btn { flex: 1; min-height: 48px; font-size: 15px; width: auto; }

/* 한 번에 신청 */
.demo-band { padding: 10px var(--pad); background: var(--c-warn-bg); color: var(--c-warn-ink); font-size: 13px; font-weight: 600; }
.ap-list li { position: relative; display: flex; gap: 12px; padding: 12px 36px 12px 0; }
.ap-list li + li { border-top: 1px solid var(--c-line); }
.ap-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ap-body > b { font-size: 15px; font-weight: 700; line-height: 1.35; }
.ap-days { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--c-ink-3); }
.ap-days button { height: 30px; padding: 0 12px; border-radius: 15px; box-shadow: inset 0 0 0 1px var(--c-line); font-size: 13px; font-weight: 600; color: var(--c-ink-2); }
.ap-days button[aria-pressed="true"] { background: var(--c-point); color: #fff; box-shadow: none; }
.ap-st { font-size: 13px; font-weight: 600; color: var(--c-point); } .ap-st:empty { display: none; } .ap-st.is-fail { color: var(--c-sun); }
.ap-x { position: absolute; top: 4px; right: -10px; width: 44px; height: 44px; font-size: 20px; color: #9AA1A9; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--c-ink-2); }
.field input { height: 50px; padding: 0 14px; border: 0; border-radius: 12px; font: inherit; font-size: 16px; font-weight: 500; background: var(--c-band); color: var(--c-ink); width: 100%; }
.field input:focus { outline: 2px solid var(--c-point); outline-offset: 0; background: var(--c-bg); }
.field input.is-bad { outline: 2px solid var(--c-sun); }
.ck.is-inline { min-height: 0; padding: 0; margin-top: -4px; } .ck.is-inline span { font-size: 14px; }
[data-ap-agrees] .ck, [data-ap-form] .sec > .ck { border-top: 1px solid var(--c-line); } [data-ap-form] .sec > .ck:first-of-type { border-top: 0; }
[data-ap-agrees] .ck small { margin-top: 2px; line-height: 1.5; }

/* ===================== v0.5: 홈 = 찾기 화면 (레퍼런스 문서 9-2) ===================== */
.hd .logo { font-size: 19px; font-weight: 800; letter-spacing: -.03em; color: var(--c-point); display: flex; align-items: center; height: 44px; }
.hd-region.is-pill { height: 34px; margin: 0 2px 0 0; padding: 0 6px 0 12px; border-radius: 17px; background: var(--c-band); font-size: 14px; font-weight: 600; }
.hd-region.is-pill .ic { width: 16px; height: 16px; }
.searchbar { display: flex; align-items: center; gap: 8px; height: 44px; margin: 2px var(--pad) 12px; padding: 0 14px; border-radius: 22px; background: var(--c-band); color: var(--c-ink-3); }
.searchbar .ic { width: 20px; height: 20px; }
.searchbar input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: inherit; font-size: 15px; color: var(--c-ink); outline: 0; }
.searchbar input::placeholder { color: var(--c-ink-3); }
.searchbar:focus-within { box-shadow: inset 0 0 0 1.5px var(--c-point); background: var(--c-bg); }

/* 배너 캐러셀: 강조색 넓은 면 + 흰 큰 글자 + 선 그림 */
.banners { position: relative; }
.banners .carousel-track { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--pad); scroll-padding: 0 var(--pad); }
.banners .carousel-track::-webkit-scrollbar, .circles::-webkit-scrollbar { display: none; }
.banners li { flex: none; width: 100%; scroll-snap-align: start; }
.bn { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px; height: 150px; padding: 0 20px; border-radius: 16px; overflow: hidden; color: #fff; background: var(--c-point); }
.bn.b2 { background: var(--c-ink); } .bn.b3 { background: var(--c-point-press); }
.bn-k { font-size: 13px; font-weight: 600; opacity: .85; }
.bn h1, .bn-t { font-size: 21px; font-weight: 700; line-height: 1.32; letter-spacing: -.03em; max-width: 68%; text-wrap: balance; }
.bn b { font-weight: 800; font-size: 1.14em; font-variant-numeric: tabular-nums; }
.bn-s { margin-top: 4px; font-size: 13px; font-weight: 500; opacity: .85; font-variant-numeric: tabular-nums; }
.bn .art { position: absolute; right: -6px; top: 14px; width: 132px; height: 132px; opacity: .28; }
.bn-n { position: absolute; right: 12px; bottom: 10px; padding: 2px 8px; border-radius: 10px; background: rgba(0, 0, 0, .28); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* 색 타일 아이콘: 타일마다 파스텔 색(같은 채도) */
.quick { padding: 16px 8px 16px; }
.quick-ic { width: 48px; height: 48px; border-radius: 16px; }
.q1 { background: #DDEEE5; } .q2 { background: #DDE8F7; } .q3 { background: #FBE7D6; } .q4 { background: #E9E3F6; } .q5 { background: #F8E1E5; } .q6 { background: #F4EDC9; }
.quick a { font-size: 12px; white-space: nowrap; }

/* 어디에서 찾으세요? 원형 권역 버튼 */
.sec.is-tight { padding-bottom: 14px; }
.circles { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 8px calc(var(--pad) * -1) 0; padding: 2px var(--pad); }
.circles a { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 56px; }
.cir { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--c-band); font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.cir-n { font-size: 12px; color: var(--c-ink-3); font-variant-numeric: tabular-nums; }
.circles a:active .cir { opacity: .7; }
.circles a.is-on .cir { background: var(--c-point); color: #fff; }
.circles a.is-on .cir-n { color: var(--c-point); font-weight: 700; }
.chip-wrap.is-cities { margin-top: 12px; }

/* D-day 한 줄 카드, 가이드 가로 카드 */
.sum-row { min-height: 72px; }
.sum-main > span { font-size: 15px; font-weight: 600; color: var(--c-ink); }
.sum-main b { font-size: 14px; font-weight: 600; color: var(--c-point); letter-spacing: 0; margin-top: 2px; }
.sum-row > .ic { width: 18px; height: 18px; color: #B4BAC1; }
.hcards.is-guide .hcard { width: 148px; }
.gcard-art { position: relative; display: block; height: 92px; margin-bottom: 8px; border-radius: 12px; overflow: hidden; color: var(--c-ink-2); }
.gcard-art .art { position: absolute; right: 8px; bottom: -10px; width: 84px; height: 84px; opacity: .55; }
.hcard.is-off { opacity: .6; }

/* 일정 탭 조건 요약 줄 */
.cond { display: flex; align-items: center; gap: 6px; padding: 10px var(--pad) 6px; overflow-x: auto; scrollbar-width: none; }
.cond::-webkit-scrollbar { display: none; }
.cond a { flex: none; display: inline-flex; align-items: center; gap: 2px; height: 34px; padding: 0 8px 0 12px; border-radius: 17px; background: var(--c-band); font-size: 14px; }
.cond a b { font-weight: 600; } .cond a .ic { width: 16px; height: 16px; color: var(--c-ink-3); }
.cond a:active { background: var(--c-press); }
.cond + .filters { padding-top: 4px; }

/* 내 일정 행: 오른쪽 원형 동작 버튼 */
.row.has-act .row-link { padding: 10px 52px 10px 0; }
.row-go { position: absolute; right: 0; top: 50%; width: 40px; height: 40px; margin-top: -20px; display: grid; place-items: center; border-radius: 50%; background: var(--c-point); color: #fff; }
.row-go .ic { width: 20px; height: 20px; }
.row-go:active { transform: scale(.9); }
.row-go.is-done { background: var(--c-tint); color: var(--c-point); } .row-go.is-off { background: var(--c-band); color: var(--c-ink-3); }
.row-del { position: absolute; right: 0; bottom: 2px; height: 24px; font-size: 12px; color: var(--c-ink-3); }
.chip-wrap.is-cities { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 12px calc(var(--pad) * -1) 0; padding: 0 var(--pad); }
.chip-wrap.is-cities::-webkit-scrollbar { display: none; }

.fabm { transition: opacity .2s, transform .2s; } .fabm.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }
.sec-head { padding-right: 0; } main > .legal { padding-bottom: 84px; }

/* ===================== v0.6: 물어보기(대화형) · 탭 · 이미지 자리 ===================== */
/* 대화 화면 */
.chat { padding: 8px var(--pad) 16px; }
.chat-log { display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 8px; max-width: 100%; }
.msg-av { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--c-point); color: #fff; }
.msg-av .ic { width: 18px; height: 18px; }
.msg-b { min-width: 0; font-size: 15px; line-height: 1.62; }
.msg-b p + p { margin-top: 6px; }
.msg.is-bot .msg-b { padding-top: 4px; flex: 1; }
.msg.is-me { justify-content: flex-end; }
.msg.is-me .msg-b { max-width: 82%; padding: 10px 14px; border-radius: 18px 18px 4px 18px; background: var(--c-band); }
.msg-q { font-weight: 700; margin-bottom: 4px; }
.msg-note { font-size: 12px; color: var(--c-ink-3); }
.chat-link { display: inline-flex; align-items: center; height: 34px; margin-top: 10px; padding: 0 12px; border-radius: 17px; background: var(--c-tint); color: var(--c-point); font-size: 13px; font-weight: 600; }
.msg-more { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.msg-more .chip-btn { height: auto; min-height: 32px; padding: 6px 12px; white-space: normal; text-align: left; line-height: 1.35; }
.typing { display: inline-flex; gap: 4px; padding: 10px 0 6px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #B4BAC1; animation: blink 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-sug { margin-top: 20px; }
.chat-sug > p { font-size: 12px; color: var(--c-ink-3); margin-bottom: 8px; }
.chat-sug .chip-btn { height: auto; min-height: 34px; padding: 7px 12px; white-space: normal; text-align: left; line-height: 1.35; }
.composer { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: var(--c-bg); border-top: 1px solid var(--c-line); }
.composer input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 0; border-radius: 23px; background: var(--c-band); font: inherit; font-size: 16px; color: var(--c-ink); outline: 0; }
.composer input:focus { box-shadow: inset 0 0 0 1.5px var(--c-point); background: var(--c-bg); }
.composer button { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--c-point); color: #fff; }
.composer button:active { transform: scale(.92); }
.composer .ic-arrow { transform: rotate(-90deg); }

/* 홈의 물어보기 입구 */
.ask-box { display: flex; align-items: center; gap: 10px; height: 52px; margin-top: 8px; padding: 0 6px 0 16px; border-radius: 26px; background: var(--c-band); color: var(--c-ink-3); font-size: 15px; }
.ask-box span { flex: 1; }
.ask-box i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--c-point); color: #fff; }
.ask-box i .ic { width: 20px; height: 20px; transform: rotate(-90deg); }
.ask-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 10px calc(var(--pad) * -1) 0; padding: 0 var(--pad); }
.ask-chips::-webkit-scrollbar { display: none; }

/* 탭이 있는 구역 */
.sec.is-tabs { padding-left: 0; padding-right: 0; }
.sec.is-tabs > .sec-head, .sec.is-tabs > .more-row { margin-left: var(--pad); margin-right: var(--pad); }
.sec.is-tabs .tabpanel { padding: 4px var(--pad) 0; }
.sec.is-tabs .tablist button { height: 40px; font-size: 14px; }
.tablist small { margin-left: 2px; font-size: 12px; font-weight: 500; color: var(--c-ink-3); font-variant-numeric: tabular-nums; }
.tablist button[aria-selected="true"] small { color: var(--c-point); }
.no-js .sec.is-tabs .tabpanel > h3 { font-size: 15px; font-weight: 700; margin: 14px 0 4px; }
.js .sec.is-tabs .tabpanel > h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tab-more { display: flex; align-items: center; justify-content: center; height: 44px; margin-top: 4px; border-radius: 10px; background: var(--c-band); font-size: 13px; font-weight: 600; color: var(--c-ink-2); }

/* 이미지 자리(파일이 있으면 그림 대신 이미지가 들어간다) */
.slot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bn.has-img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0, 0, 0, .68), rgba(0, 0, 0, .34) 60%, rgba(0, 0, 0, .12)); }
.bn.has-img > *:not(.slot-img) { position: relative; z-index: 2; } .bn.has-img .bn-n { position: absolute; }
.bn.has-img .art { display: none; }
.gcard-art.has-img .art { display: none; }

h4 { margin: 0; padding: 0; font-size: inherit; font-weight: inherit; }

.hd .logo { gap: 7px; color: var(--c-ink); } .hd .logo img { border-radius: 7px; } .hd .logo b { font-weight: 800; letter-spacing: -.04em; }

.logo-img { height: 30px; width: auto; display: block; }
.brand-block { padding: 12px var(--pad) 22px; text-align: center; } .brand-block img { height: 120px; width: auto; margin: 0 auto; display: block; } .brand-block p { margin-top: 6px; font-size: 13px; color: var(--c-ink-3); }

/* 신청하기 띠: 담은 박람회가 있을 때 탭 위에 붙는다 */
.apbar { flex: none; position: relative; z-index: 38; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; padding: 0 var(--pad); background: var(--c-point); color: #fff; font-size: 14px; }
.apbar[hidden] { display: none; } .apbar span b { font-weight: 700; margin-left: 2px; }
.apbar strong { display: inline-flex; align-items: center; gap: 2px; height: 34px; padding: 0 8px 0 14px; border-radius: 999px; background: #fff; color: var(--c-point); font-size: 14px; font-weight: 700; }
.apbar strong .ic { width: 16px; height: 16px; } .apbar:active { opacity: .9; }
.has-apbar .fabm { bottom: calc(var(--tab) + 66px + env(safe-area-inset-bottom)); }

/* 행사 상세 보기(접힘) */
.ev-detail > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 10px var(--pad); cursor: pointer; list-style: none; }
.ev-detail > summary::-webkit-details-marker { display: none; }
.ev-detail > summary .g-t { display: flex; flex-direction: column; gap: 2px; } .ev-detail > summary b { font-size: 16px; } .ev-detail > summary small { font-size: 12.5px; color: var(--c-ink-3); }
.ev-detail > summary .ic { width: 20px; height: 20px; color: var(--c-ink-3); transition: transform .2s; } .ev-detail[open] > summary .ic { transform: rotate(180deg); }
.ev-detail > .note { margin: 0 var(--pad) 12px; }
.ev-detail-body { display: flex; flex-direction: column; } .ev-detail-body img { display: block; width: 100%; height: auto; min-height: 40px; background: var(--c-tint); } .ev-detail-body img[hidden] { display: none; } .ev-detail-body .note { margin: 0 var(--pad) 16px; }

/* 한 번에 신청: 신청함으로 표시돼 빠진 곳 */
.ap-skip { margin: 12px var(--pad) 0; padding: 12px 14px; border-radius: 12px; background: var(--c-tint); }
.ap-skip[hidden] { display: none; } .ap-skip .note { margin: 0 0 6px; }
.ap-skip-list { list-style: none; margin: 0; padding: 0; } .ap-skip-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--c-line); font-size: 14px; }
.ap-skip-list span { display: flex; flex-direction: column; min-width: 0; } .ap-skip-list small { color: var(--c-ink-3); font-size: 12px; } .ap-skip-list .btn-text { flex: none; color: var(--c-point); font-weight: 700; }
