/* 여러 페이지 구조(2026-11-11 A단계): 현재 메뉴 표시, 모바일 하단 탭, 홈 허브, 배우기·규격 가이드. 색은 기존 홈페이지 그대로. */
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lemon); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* 모바일 하단 탭 */
.tab-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tab-bar { position: fixed; z-index: 50; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(var(--tabs, 4), 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-strong); background: rgb(255 255 255 / 96%); backdrop-filter: blur(10px); }
  .tab-bar a { display: grid; gap: 2px; justify-items: center; padding: 4px 0; color: var(--faint); font-size: 11px; font-weight: 700; text-decoration: none; }
  .tab-bar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tab-bar a[aria-current="page"] { color: var(--ink); }
  .tab-bar a[aria-current="page"] svg { stroke: var(--point); }
}

/* 홈 허브 */
.hub-hero { padding-block: 56px 28px; }
.hub-hero h1 { max-width: 820px; margin: 0 0 14px; font-size: clamp(32px, 5.4vw, 58px); line-height: 1.16; letter-spacing: -.025em; }
.hub-hero h1 span { box-shadow: inset 0 -.32em 0 var(--lemon); }
.hub-hero p { max-width: 640px; margin: 0 0 22px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hub-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hub-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 36px; }
.hub-card { display: grid; align-content: start; gap: 10px; min-height: 240px; padding: 22px; border: 1px solid var(--line-strong); border-radius: var(--radius-card); background: var(--white); color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.hub-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgb(25 31 40 / 8%); }
.hub-card img { width: 100%; height: 150px; object-fit: cover; object-position: top; border-radius: 14px; background: var(--surface); }
.hub-card .hub-tag { justify-self: start; padding: 4px 9px; border-radius: 999px; background: var(--lemon-soft); font-size: 11px; font-weight: 800; }
.hub-card h2 { margin: 0; font-size: 20px; }
.hub-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.hub-card .hub-go { margin-top: auto; font-size: 13px; font-weight: 800; }
.hub-band { margin-bottom: 48px; padding: 26px; border-radius: var(--radius-card); background: var(--surface); }
.hub-band h2 { margin: 0 0 14px; font-size: 20px; }
.hub-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hub-links a { display: grid; gap: 4px; padding: 16px; border-radius: 16px; background: var(--white); color: inherit; text-decoration: none; }
.hub-links a strong { font-size: 15px; }
.hub-links a span { color: var(--muted); font-size: 12px; line-height: 1.5; }
@media (max-width: 860px) { .hub-cards, .hub-links { grid-template-columns: 1fr; } .hub-card { min-height: 0; } .hub-hero { padding-top: 32px; } }

/* 배우기·규격 가이드 */
.doc { max-width: 820px; padding-block: 40px 60px; }
.doc .crumb { margin: 0 0 12px; color: var(--faint); font-size: 13px; }
.doc .crumb a { color: inherit; }
.doc h1 { margin: 0 0 12px; font-size: clamp(28px, 4.4vw, 42px); line-height: 1.22; letter-spacing: -.02em; }
.doc .lede { margin: 0 0 22px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.doc h2 { margin: 36px 0 12px; font-size: 22px; }
.doc h3 { margin: 22px 0 8px; font-size: 17px; }
.doc p, .doc li { font-size: 15px; line-height: 1.8; }
.doc ul, .doc ol { padding-left: 20px; }
.doc .table-wrap { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 16px; }
.doc table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.doc th, .doc td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.6; }
.doc th { width: 34%; background: var(--surface); font-weight: 800; }
.doc tr:last-child th, .doc tr:last-child td { border-bottom: 0; }
.doc .notice { margin: 22px 0; padding: 14px 16px; border-left: 4px solid var(--lemon); border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 14px; line-height: 1.7; }
.doc .cta-box { margin-top: 36px; padding: 22px; border-radius: var(--radius-card); background: var(--lemon-soft); }
.doc .cta-box h2 { margin-top: 0; }
.doc .cta-box .hub-actions { margin-top: 12px; }
.learn-list { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.learn-list a { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line-strong); border-radius: 18px; color: inherit; text-decoration: none; }
.learn-list a:hover { background: var(--surface); }
.learn-list strong { font-size: 17px; }
.learn-list span { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* 커뮤니티·갤러리·회원(2026-11-11 B~E단계) */
.narrow { max-width: 760px; padding-block: 28px 60px; }
.community { padding-block: 28px 60px; }
.panel { margin-bottom: 14px; padding: 20px; border: 1px solid var(--line-strong); border-radius: var(--radius-card); background: var(--white); }
.panel h1 { margin: 0 0 8px; font-size: 26px; }
.panel h2 { margin: 0 0 12px; font-size: 18px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.crumb { margin: 0 0 12px; color: var(--faint); font-size: 13px; }
.crumb a { color: inherit; }
.page-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.page-head h1 { margin: 0 0 4px; font-size: clamp(26px, 4vw, 36px); }
.page-head p { margin: 0; }
.board-tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; padding-bottom: 4px; }
.board-tabs a { flex: none; padding: 8px 13px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.board-tabs a[aria-current] { border-color: var(--point); background: #f6f5ff; color: var(--point); }
.login-buttons { display: grid; gap: 8px; margin: 16px 0; }
.login-btn { min-height: 52px; border: 0; border-radius: 14px; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.login-btn.kakao { background: #fee500; color: rgb(0 0 0 / 85%); }
.login-btn.naver { background: #03c75a; color: #fff; }
.login-btn.google { border: 1px solid #dadce0; background: #fff; color: #1f1f1f; }
.field { display: grid; gap: 6px; margin-bottom: 14px; color: var(--muted); font-size: 13px; font-weight: 800; }
.field input, .field select, .field textarea, .comment-form textarea, .report-dialog textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 12px; font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); background: var(--white); }
.field textarea { resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--point); }
.form-status { margin: 8px 0; font-size: 14px; color: var(--muted); }
.is-error { color: #c0392b !important; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.row-actions.small { margin-top: 4px; }
.link-btn { padding: 2px 4px; border: 0; background: none; color: var(--faint); font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; }
.post-list { display: grid; gap: 0; margin: 0 0 12px; padding: 0; list-style: none; }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 0; }
.post-list a, .post-list li > div { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; padding: 12px 2px; color: inherit; text-decoration: none; }
.post-list a:hover { background: var(--surface); }
.post-list small { flex-basis: 100%; color: var(--faint); font-size: 12px; }
.post-list--big { padding: 4px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-card); }
.post-list--big strong { font-size: 16px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 800; }
.badge--qna { background: #eef4ff; color: #2f5bd3; }
.badge--feedback { background: var(--lemon-soft); color: #7a5b00; }
.badge--review { background: #effaf2; color: #1d7a3d; }
.badge--notice { background: #ffecec; color: #b42318; }
.badge--done { background: #f6f5ff; color: var(--point); }
.post-body { margin: 16px 0; font-size: 16px; line-height: 1.8; word-break: break-word; }
.post-image { display: block; max-width: 100%; max-height: 520px; margin: 10px 0; border-radius: 14px; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.comment-list { margin: 0 0 12px; padding: 0; list-style: none; }
.comment-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.comment-list li p { margin: 2px 0; }
.comment-list li.is-accepted { padding-inline: 10px; border-radius: 12px; background: #f6f5ff; }
.comment-form { display: grid; gap: 8px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 12px; }
.gallery-grid--big { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.gallery-card { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 18px; color: inherit; text-decoration: none; background: var(--white); }
.gallery-card img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: repeating-conic-gradient(#f1f1f1 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.gallery-card span { display: grid; gap: 2px; font-size: 13px; }
.gallery-card small { color: var(--faint); font-size: 11px; }
.art-stage { display: grid; place-items: center; margin-bottom: 14px; padding: 12px; border-radius: 18px; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 18px 18px; }
.art-stage img { max-width: 100%; max-height: 420px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.offer-code { display: grid; gap: 4px; margin: 6px 0; padding: 14px; border: 2px dashed var(--point); border-radius: 14px; text-align: center; }
.offer-code span { color: var(--muted); font-size: 12px; }
.offer-code strong { font-size: 22px; letter-spacing: .06em; }
.tag { display: inline-block; margin-right: 4px; color: var(--point); font-size: 13px; }
.report-dialog { width: min(92vw, 420px); padding: 20px; border: 0; border-radius: 20px; }
.report-dialog::backdrop { background: rgb(0 0 0 / 35%); }
.report-dialog h2 { margin: 0 0 8px; font-size: 18px; }
.cta-mini { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; background: var(--lemon-soft); border-color: transparent; }
.cta-mini p { margin: 0; }

/* 공통: hidden 은 항상 숨김(버튼 display 보다 우선), 보조 버튼 */
[hidden] { display: none !important; }
.button--ghost { border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); }
.button--ghost:hover { background: var(--surface); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
