/* 웹 접근성(KWCAG 2.2) 보강 — site.css · pages.css 뒤에 불러와 덮어쓴다.
   · 건너뛰기 링크 · 접근성 설정 도구 모음(글자 크기·고대비·움직임 줄이기·링크 밑줄)
   · 키보드 초점 · 터치 목표 크기 · 스크롤 영역 · 영상 대체 설명 */

/* ---------- 건너뛰기 링크 (키보드 첫 Tab 에서만 보임) ---------- */
.skip { position: fixed; left: 12px; top: 12px; z-index: 120; display: flex; flex-wrap: wrap; gap: 8px; pointer-events: none; }
.skip a { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; pointer-events: auto; }
.skip a:focus { position: static; width: auto; height: auto; clip: auto; padding: .75em 1.15em; background: #fff; color: #1c211b; border: 3px solid var(--ripe); border-radius: 10px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }

/* ---------- 빠른 메뉴(예약·전화·맨 위로): 키보드 초점이 오면 숨기지 않고 보여 준다 ---------- */
.quick:focus-within { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- 글자 크기 (rem 기준 글자가 함께 커진다) ---------- */
html[data-fs="1"] { font-size: 112.5%; }
html[data-fs="2"] { font-size: 125%; }
html[data-fs="3"] { font-size: 150%; }

/* ---------- 접근성 설정 버튼 · 패널 ---------- */
.a11y-btn { position: fixed; top: 96px; right: 14px; z-index: 70; display: inline-flex; align-items: center; gap: .45em; padding: .5em 1em; min-height: 44px; border: 2px solid var(--ripe); border-radius: 999px; background: #fff; color: #1c211b; font-size: .9rem; font-weight: 800; cursor: pointer; white-space: nowrap; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .45); }
.a11y-btn:hover, .a11y-btn[aria-expanded="true"] { background: var(--ripe); color: #fff; }
.a11y-btn svg { width: 1.25em; height: 1.25em; flex: none; }
.a11y-btn:focus-visible { outline: 3px solid #1c211b; outline-offset: 3px; }
@media (max-width: 900px) { .a11y-btn { top: 82px; right: 10px; width: 46px; height: 46px; padding: 0; justify-content: center; } .a11y-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
body:has(.hd.menu) .a11y-btn { display: none; }
.a11y-panel { position: fixed; top: 150px; right: 14px; z-index: 90; width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 170px); overflow-y: auto; padding: 20px 22px 18px; background: #fff; color: #1c211b; border: 2px solid var(--ripe); border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55); font-size: 1rem; line-height: 1.5; }
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { font: 800 1.15rem var(--f-body); margin: 0 0 4px; letter-spacing: 0; }
.a11y-panel .a11y-desc { margin: 0 0 14px; color: #4a5148; font-size: .88rem; }
.a11y-panel fieldset { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.a11y-panel legend { padding: 0; margin-bottom: 8px; font-weight: 800; font-size: .95rem; }
.a11y-fs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.a11y-fs label, .a11y-tg label { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; border: 1.5px solid #8a9188; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: .9rem; background: #fff; }
.a11y-fs input, .a11y-tg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.a11y-fs label:has(input:checked), .a11y-tg label:has(input:checked) { background: var(--ripe); border-color: var(--ripe); color: #fff; }
.a11y-fs label:has(input:focus-visible), .a11y-tg label:has(input:focus-visible) { outline: 3px solid #1c211b; outline-offset: 2px; }
.a11y-tg { display: grid; gap: 6px; }
.a11y-tg label { justify-content: space-between; padding: 0 14px; text-align: left; gap: 10px; }
.a11y-tg label::after { content: "꺼짐"; font-weight: 600; font-size: .82rem; opacity: .85; }
.a11y-tg label:has(input:checked)::after { content: "켜짐"; }
.a11y-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: 4px; }
.a11y-row button, .a11y-row a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ripe); background: #fff; color: var(--ripe); font-weight: 700; font-size: .9rem; cursor: pointer; text-decoration: none; }
.a11y-row .primary { background: var(--ripe); color: #fff; }

/* ---------- 움직임 줄이기: 자동 넘김·전환·확대 효과를 모두 멈춘다 ---------- */
html[data-rm="1"] *, html[data-rm="1"] *::before, html[data-rm="1"] *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
html[data-rm="1"] .slide > img { transform: none; }

/* ---------- 링크 밑줄 항상 표시 ---------- */
html[data-ul="1"] a:not(.btn):not(.brand):not(.skip a):not(.a11y-row a) { text-decoration: underline !important; text-underline-offset: 3px; text-decoration-thickness: 2px; }

/* Esc 로 접은 하위 메뉴(마우스·초점이 그대로 있어도 다시 나오지 않게) */
@media (min-width: 901px) { .nav-i.closed:hover > .sub, .nav-i.closed:focus-within > .sub { opacity: 0; visibility: hidden; } }

/* ---------- 키보드로 갈 수 있는 스크롤 영역 ---------- */
[data-scroll-region]:focus-visible, .legal-table:focus-visible, .steps:focus-visible, .photo-track:focus-visible { outline: 3px solid var(--ripe); outline-offset: 2px; }

/* ---------- 터치 화면: 누르는 곳은 최소 44px ---------- */
@media (pointer: coarse) {
  /* 글자 링크·버튼은 높이만(폭은 글자에 맡김 — min-width 를 주면 flex 안에서 줄어들어 넘친다), 아이콘 버튼은 가로·세로 모두 */
  .chip, .btn, .more, .pager a, .subtabs a, .shot-close { min-height: 44px; }
  .cal-nav button, .qty button, .stepper button, .arrows button, .lb-th button, .jclose, .lb-x { min-height: 44px; min-width: 44px; }
  .bars button { height: 36px; }
  .pause { width: 44px; height: 44px; }
  .ft .legal-links a, .ft .ft-links a, .ft ul a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- 영상 대체 설명(자막이 없는 영상의 글 설명) ---------- */
.media-alt { margin: 8px 0 0; padding: 10px 12px; border-left: 4px solid var(--vine); background: var(--glass); color: var(--ink); font-size: .9rem; line-height: 1.6; border-radius: 0 8px 8px 0; }
.media-alt b { display: block; margin-bottom: 2px; font-size: .82rem; color: var(--vine); }

/* ---------- 푸터 소제목 (접근성: h4 → h2, 겉모습은 그대로) ---------- */
.ft .ft-h { font: 800 .78rem var(--f-body); letter-spacing: .16em; color: var(--pulp); margin: 0 0 10px; }

/* ---------- 고대비 화면 (검은 바탕 · 흰 글자 · 노란 강조) ---------- */
html[data-hc="1"] {
  --glass: #000; --paper: #000; --ink: #fff; --muted: #f0f0f0; --line: #fff; --line-2: #fff;
  --vine: #9ff08c; --leaf: #000; --leaf-2: #000; --ripe: #ffe14d; --ripe-2: #fff59a; --pulp: #ffe14d; --green: #9ff08c; --red: #ffb3aa;
  color-scheme: dark;
}
html[data-hc="1"] body { background: #000; color: #fff; }
html[data-hc="1"] .sec, html[data-hc="1"] .sec.gray, html[data-hc="1"] .card, html[data-hc="1"] .pcard, html[data-hc="1"] .pane, html[data-hc="1"] .sum, html[data-hc="1"] .opt, html[data-hc="1"] .rc,
html[data-hc="1"] .jcard, html[data-hc="1"] .album-card, html[data-hc="1"] .legal-doc, html[data-hc="1"] .scale-result, html[data-hc="1"] .rsum, html[data-hc="1"] .my-list li, html[data-hc="1"] .shop-note, html[data-hc="1"] .empty-note,
html[data-hc="1"] .eth, html[data-hc="1"] .cycle li, html[data-hc="1"] .vmap, html[data-hc="1"] .notice-list a { background: #000 !important; color: #fff !important; border-color: #fff !important; }
html[data-hc="1"] .card p, html[data-hc="1"] .muted, html[data-hc="1"] .small, html[data-hc="1"] .head p, html[data-hc="1"] .pc-meta, html[data-hc="1"] .pc-desc, html[data-hc="1"] .psum, html[data-hc="1"] .pmeta { color: #f0f0f0 !important; }
html[data-hc="1"] a { color: #ffe14d; }
html[data-hc="1"] .hd.solid { background: #000; color: #fff; box-shadow: 0 1px 0 #fff; }
html[data-hc="1"] .hd.solid .brand .l-dark { display: none; } html[data-hc="1"] .hd.solid .brand .l-light { display: block; }
html[data-hc="1"] .sub { background: #000; color: #fff; border: 2px solid #fff; }
html[data-hc="1"] .sub a:hover, html[data-hc="1"] .sub a:focus-visible, html[data-hc="1"] .sub a[aria-current="page"] { background: #ffe14d; color: #000; }
html[data-hc="1"] .btn, html[data-hc="1"] .hd .btn, html[data-hc="1"] .hd.solid .btn, html[data-hc="1"] .quick .cta, html[data-hc="1"] .bookbar .go { background: #ffe14d; border-color: #ffe14d; color: #000; }
html[data-hc="1"] .btn.ghost, html[data-hc="1"] .btn.white { background: #000; border-color: #fff; color: #fff; }
html[data-hc="1"] .btn:hover { background: #fff; border-color: #fff; color: #000; }
html[data-hc="1"] .chip, html[data-hc="1"] .slot, html[data-hc="1"] .day, html[data-hc="1"] .pager a, html[data-hc="1"] .subtabs a, html[data-hc="1"] .pill { background: #000; color: #fff; border: 2px solid #fff; }
html[data-hc="1"] .chip[aria-pressed="true"], html[data-hc="1"] .chip[aria-current="true"], html[data-hc="1"] .day[aria-pressed="true"], html[data-hc="1"] .slot[aria-pressed="true"], html[data-hc="1"] .pager a.on, html[data-hc="1"] .subtabs a[aria-current="page"] { background: #ffe14d; color: #000; border-color: #ffe14d; }
html[data-hc="1"] .fld input:not([type="checkbox"]), html[data-hc="1"] .fld textarea, html[data-hc="1"] .fld select, html[data-hc="1"] .filters select, html[data-hc="1"] .bookbar select, html[data-hc="1"] .bookbar input[type="date"] { background: #000; color: #fff; border: 2px solid #fff; }
html[data-hc="1"] :focus-visible { outline: 4px solid #ffe14d; outline-offset: 3px; }
html[data-hc="1"] .ft { background: #000; color: #fff; border-top: 2px solid #fff; }
html[data-hc="1"] .ft .legal { color: #fff; border-top-color: #fff; }
html[data-hc="1"] .ft .trust, html[data-hc="1"] .trust { background: #000; color: #fff; border: 2px solid #fff; }
html[data-hc="1"] .ft .trust small, html[data-hc="1"] .trust small { color: #f0f0f0; }
html[data-hc="1"] .band::before, html[data-hc="1"] .banner::after, html[data-hc="1"] .slide::after { background: rgba(0, 0, 0, .72); }
html[data-hc="1"] .a11y-btn { background: #000; color: #ffe14d; border-color: #ffe14d; }
html[data-hc="1"] .a11y-btn:hover, html[data-hc="1"] .a11y-btn[aria-expanded="true"] { background: #ffe14d; color: #000; }
html[data-hc="1"] .a11y-panel { background: #000; color: #fff; border-color: #ffe14d; }
html[data-hc="1"] .a11y-panel .a11y-desc { color: #f0f0f0; }
html[data-hc="1"] .a11y-fs label, html[data-hc="1"] .a11y-tg label { background: #000; color: #fff; border-color: #fff; }
html[data-hc="1"] .a11y-fs label:has(input:checked), html[data-hc="1"] .a11y-tg label:has(input:checked) { background: #ffe14d; color: #000; border-color: #ffe14d; }
html[data-hc="1"] .a11y-row button, html[data-hc="1"] .a11y-row a { background: #000; color: #ffe14d; border-color: #ffe14d; }
html[data-hc="1"] .a11y-row .primary { background: #ffe14d; color: #000; }
html[data-hc="1"] .media-alt { background: #000; border-left-color: #ffe14d; color: #fff; }
html[data-hc="1"] .media-alt b { color: #ffe14d; }
html[data-hc="1"] .skip a:focus { background: #ffe14d; color: #000; border-color: #000; }

/* 사진 크게 보기 창: 모달로 열릴 때만 보이게(마운트 직후 한 프레임 깜빡임 방지) */
.shot-dialog:not([open]) { display: none; }

/* ---------- 입력 오류: 색뿐 아니라 글자·기호로도 알린다 ---------- */
.hint.err-field, .err-msg { color: #b3261e; font-weight: 700; }
.hint.err-field::before { content: "오류: "; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: #b3261e !important; outline: 2px solid #b3261e; outline-offset: 0; }
.org-types[aria-invalid="true"] { outline: 2px solid #b3261e; outline-offset: 4px; border-radius: 10px; }
html[data-hc="1"] .hint.err-field, html[data-hc="1"] .err-msg, html[data-hc="1"] .err { color: #ffb3aa; }
html[data-hc="1"] input[aria-invalid="true"], html[data-hc="1"] textarea[aria-invalid="true"] { border-color: #ffb3aa !important; outline-color: #ffb3aa; }

/* HC-GEN-START — gen_hc.py 가 만든 부분(직접 고치지 말 것) */
html[data-hc="1"] .album-card,
html[data-hc="1"] .arrows button,
html[data-hc="1"] .bookbar,
html[data-hc="1"] .btn.white,
html[data-hc="1"] .cal-nav button,
html[data-hc="1"] .card,
html[data-hc="1"] .chip,
html[data-hc="1"] .credit-box,
html[data-hc="1"] .day,
html[data-hc="1"] .eth,
html[data-hc="1"] .filters select,
html[data-hc="1"] .fld input:not([type="checkbox"]),
html[data-hc="1"] .fld select,
html[data-hc="1"] .fld textarea,
html[data-hc="1"] .ft .trust,
html[data-hc="1"] .jcard,
html[data-hc="1"] .jclose,
html[data-hc="1"] .lb-x,
html[data-hc="1"] .my-list li,
html[data-hc="1"] .org-types label,
html[data-hc="1"] .pane,
html[data-hc="1"] .pc-badge,
html[data-hc="1"] .pcard,
html[data-hc="1"] .qty button,
html[data-hc="1"] .rform,
html[data-hc="1"] .rsum,
html[data-hc="1"] .shot,
html[data-hc="1"] .shot-close,
html[data-hc="1"] .slot,
html[data-hc="1"] .stepper button,
html[data-hc="1"] .steps li,
html[data-hc="1"] .sub,
html[data-hc="1"] .subtabs,
html[data-hc="1"] .sum,
html[data-hc="1"] .trust,
html[data-hc="1"] dialog.lb { background-color: #000; color: #fff; border-color: #fff; }
html[data-hc="1"] .credit-box,
html[data-hc="1"] .detail ol,
html[data-hc="1"] .ft .trust small,
html[data-hc="1"] .intro p,
html[data-hc="1"] .month p,
html[data-hc="1"] .pc-desc,
html[data-hc="1"] .plan .sh,
html[data-hc="1"] .role .copy-body,
html[data-hc="1"] .role p,
html[data-hc="1"] .sample-pill { color: #f0f0f0; }
html[data-hc="1"] .quick a, html[data-hc="1"] .quick button, html[data-hc="1"] .quick .cta { background: #ffe14d; color: #000; border: 2px solid #000; }
html[data-hc="1"] .err, html[data-hc="1"] .err-msg { color: #ffb3aa; }
html[data-hc="1"] .pc-rate b { color: #ffe14d; }
html[data-hc="1"] .day.full { color: #d0d0d0; text-decoration: line-through; }
html[data-hc="1"] .pill.ok, html[data-hc="1"] .pill.wait, html[data-hc="1"] .pill.off { background: #000; color: #fff; border: 2px solid #fff; }
html[data-hc="1"] .ok-msg { background: #000; color: #fff; border: 2px solid #9ff08c; }
html[data-hc="1"] .steps li.on, html[data-hc="1"] .steps li.done { border-color: #ffe14d; }
html[data-hc="1"] .steps li.on i, html[data-hc="1"] .steps li.done i, html[data-hc="1"] .cycle i, html[data-hc="1"] .plan i { background: #ffe14d; color: #000; }
html[data-hc="1"] .btn.pulp, html[data-hc="1"] .btn.pulp:hover { background: #ffe14d; border-color: #ffe14d; color: #000; }
html[data-hc="1"] .media-prose, html[data-hc="1"] .media-prose *, html[data-hc="1"] .media-meta span, html[data-hc="1"] .media-count, html[data-hc="1"] .media-credit, html[data-hc="1"] .media-note, html[data-hc="1"] .media-card p, html[data-hc="1"] .media-card h2, html[data-hc="1"] .media-card h3 { color: #f0f0f0 !important; }
html[data-hc="1"] .media-badge { background: #000 !important; color: #ffe14d !important; border: 1px solid #ffe14d; }
html[data-hc="1"] .media-prose a, html[data-hc="1"] .media-card-link { color: #ffe14d !important; }
/* HC-GEN-END */
