/* ChordTool Academy — 모바일 퍼스트. 테마: 딥 네이비 · 골드 (로고) */
:root {
  --bg: #f6f7fb; --surface: #ffffff; --surface-2: #eef1f7; --text: #161b2a; --muted: #5d6679; --line: #dde2ec;
  --accent: #1f3a8a; --accent-ink: #ffffff; --accent-soft: #e6ecfb; --gold: #b8860b; --gold-soft: #fbf3dc; --link: #1f4fb8;
  --ok: #1f8a4c; --warn: #b45309; --radius: 14px; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0e1220; --surface: #161b2c; --surface-2: #1f2538; --text: #eef1f8; --muted: #9aa3b8; --line: #2b3247; --accent: #7aa2ff; --accent-ink: #0b1430; --accent-soft: #1b2748; --gold: #e2b54a; --gold-soft: #33290f; --link: #8fb1ff; --ok: #4ade80; --warn: #fbbf24; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #0e1220; --surface: #161b2c; --surface-2: #1f2538; --text: #eef1f8; --muted: #9aa3b8; --line: #2b3247; --accent: #7aa2ff; --accent-ink: #0b1430; --accent-soft: #1b2748; --gold: #e2b54a; --gold-soft: #33290f; --link: #8fb1ff; --ok: #4ade80; --warn: #fbbf24; color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: 1.45rem; }
h2 { font-size: 1.1rem; }
h2 small { font-size: .8rem; color: var(--muted); font-weight: 600; }
p { margin: 0 0 .8em; }
ul, ol { padding-left: 20px; margin: 0 0 .8em; }
.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }
.lead { color: var(--muted); }
.hint, .muted { color: var(--muted); font-size: .85rem; }
.source { color: var(--muted); font-size: .78rem; margin-top: 18px; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-bar { display: flex; align-items: center; gap: 10px; height: 54px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); flex: none; }
.brand:hover { text-decoration: none; }
.brand img { display: block; width: 32px; height: 32px; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-size: 1.02rem; letter-spacing: -.02em; }
.brand-text small { font-size: .68rem; color: var(--gold); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.h-search { flex: 1; min-width: 0; }
.h-search input { width: 100%; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .9rem; }
.icon-btn { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--text); border-radius: 10px; cursor: pointer; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.header-menu { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 12px; }
.header-menu a { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--text); font-size: .92rem; }
@media (max-width: 420px) { .brand-text { display: none; } }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: .8rem; color: var(--muted); padding: 10px 0 2px; }
.breadcrumb a { color: var(--muted); }
main.wrap { padding-top: 10px; padding-bottom: 32px; }

/* 공통 */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 14px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.chip:hover { text-decoration: none; border-color: var(--accent); }
.chip small { color: var(--muted); font-weight: 700; }
.chip.muted { opacity: .55; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:hover { text-decoration: none; }
.big-search { display: flex; gap: 6px; margin: 12px 0 4px; }
.big-search input { flex: 1; min-width: 0; height: 50px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-size: 1rem; }
.big-search button { flex: none; min-width: 76px; height: 50px; border: 0; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-weight: 800; cursor: pointer; }

.region-grid, .cat-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 640px) { .region-grid, .cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.region-grid a, .region-grid span, .cat-grid a { display: flex; flex-direction: column; padding: 10px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); }
.region-grid a:hover, .cat-grid a:hover { text-decoration: none; border-color: var(--accent); }
.region-grid b, .cat-grid b { font-size: .95rem; }
.region-grid small, .cat-grid small { color: var(--muted); font-size: .78rem; }
.region-grid span.muted { opacity: .6; }

.aca-list { list-style: none; padding: 0; margin: 0; }
.aca-list li + li { border-top: 1px solid var(--line); }
.aca-item { display: flex; flex-direction: column; gap: 2px; padding: 11px 2px; color: var(--text); }
.aca-item:hover { text-decoration: none; background: var(--surface-2); }
.aca-name { font-weight: 800; font-size: 1rem; }
.aca-name .kind { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; margin-left: 4px; vertical-align: 2px; }
.aca-meta { font-size: .84rem; color: var(--muted); }
.aca-meta .pub { color: var(--gold); }
.aca-course { font-size: .8rem; color: var(--muted); }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; font-weight: 700; }
.pager a { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); }
.aca-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
@media (min-width: 640px) { .aca-mini { grid-template-columns: 1fr 1fr; } }
.aca-mini a { display: block; padding: 9px 10px; border-radius: 10px; background: var(--surface-2); color: var(--text); font-weight: 700; }
.aca-mini small { color: var(--muted); font-weight: 500; }
.more { margin: 10px 0 0; font-weight: 700; }

.stat-box { border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); background: var(--gold-soft); }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.stat-grid div { display: flex; flex-direction: column; background: var(--surface); border-radius: 12px; padding: 10px; }
.stat-grid small { color: var(--muted); font-size: .76rem; }
.stat-grid b { font-size: 1.05rem; }
@media (max-width: 420px) { .stat-grid { grid-template-columns: 1fr 1fr; } .stat-grid div:first-child { grid-column: 1 / -1; } }
.dong-line { font-size: .9rem; color: var(--muted); line-height: 1.9; }
.dong-line b { color: var(--text); }

/* 학원 상세 */
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); font-size: .8rem; font-weight: 700; }
.badge.ok { color: var(--ok); }
.badge.warn { color: var(--warn); }
.badge.cat { background: var(--accent-soft); color: var(--accent); }
.notice { padding: 10px 12px; border-radius: 12px; background: var(--gold-soft); font-size: .9rem; }
.notice.ok { background: var(--accent-soft); }
.info { width: 100%; border-collapse: collapse; }
.info th, .info td { text-align: left; vertical-align: top; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.info th { width: 92px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.fee { width: 100%; border-collapse: collapse; font-size: .92rem; }
.fee th, .fee td { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.fee thead th { color: var(--muted); font-size: .8rem; }
.fee .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tools-box { background: var(--accent-soft); border-color: transparent; }
.prose li { margin-bottom: 6px; }

/* 요청 폼 */
.report-form { display: grid; gap: 12px; }
.report-form label { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; }
.report-form input, .report-form select, .report-form textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 400; }
.report-form .hp { position: absolute; left: -9999px; }

/* Share / toast / ads */
.share-bar { display: flex; gap: 8px; margin: 14px 0 6px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; font-size: .9rem; cursor: pointer; }
.share-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.share-btn.kakao { background: #fee500; border-color: #fee500; color: #191919; }
.share-btn.kakao svg { fill: #191919; stroke: none; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: .9rem; font-weight: 600; }
.ad-slot { margin: 18px 0; min-height: 100px; text-align: center; overflow: hidden; }
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }

.site-footer { border-top: 1px solid var(--line); padding: 20px 0 36px; color: var(--muted); font-size: .8rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; }
.footer-links a { color: var(--text); font-weight: 600; }
