/* =====================================================================
   학원 홈페이지(/a/{slug}) 공통 디자인 — WO-TANZMATE-EXPERIENCE-FIRST-PHASE1A-001

   - 승인된 Phase 0 시안의 스타일. 이 파일은 빌드 없이 그대로 배포된다(Tailwind 산출물 아님).
   - 모든 class는 ah- 로 시작해 site.css(Tailwind)와 겹치지 않는다.
   - Phase 1B 비회원 체험이 같은 마크업(class)과 이 파일을 그대로 쓴다 — 화면별 사본을 만들지 않는다.
   - 학원 대표 색은 --ah-accent 계열 3개만 바꾼다 (서버: PortalBrandPalette). 기본값 = primary-600.
   - 수업 구분 색은 .ah-c0 ~ .ah-c5 (서버: AcademyPortalSummaryBuilder.ClassColorCount).
   ===================================================================== */
.ah-site {
  --ah-accent: #7C3AED;
  --ah-accent-ink: #5B21B6;
  --ah-accent-soft: #F3EEFE;
  --ah-ink: #1D1A22;
  --ah-ink-2: #4A4553;
  --ah-ink-3: #706A7B;
  --ah-line: #E8E4EC;
  --ah-paper: #FFFFFF;
  --ah-paper-2: #FAF8F6;
  --ah-serif: "Nanum Myeongjo", "AppleMyungjo", "Noto Serif KR", "Batang", serif;
  --ah-radius: 14px;
  --ah-max: 1120px;
  color: var(--ah-ink);
  background: var(--ah-paper);
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
html:has(.ah-site) { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html:has(.ah-site) { scroll-behavior: auto; } }
.ah-wrap { max-width: var(--ah-max); margin: 0 auto; padding: 0 20px; }
.ah-site :where(h1, h2, h3) { font-weight: 700; }
.ah-site :is(a, button, summary):focus-visible { outline: 2px solid var(--ah-accent); outline-offset: 2px; }
.ah-c0 { --ah-c: #7C3AED; --ah-c-bg: #F3EEFE; }
.ah-c1 { --ah-c: #0E7490; --ah-c-bg: #E6F6F9; }
.ah-c2 { --ah-c: #B45309; --ah-c-bg: #FDF3E4; }
.ah-c3 { --ah-c: #BE185D; --ah-c-bg: #FCEAF2; }
.ah-c4 { --ah-c: #15803D; --ah-c-bg: #E9F7EE; }
.ah-c5 { --ah-c: #4338CA; --ah-c-bg: #ECEEFD; }

/* ---------- Platform strip (TANZMATE 연결은 유지하되 작게) ---------- */
.ah-platform-strip { background: var(--ah-ink); color: #CFCAD6; font-size: 12px; }
.ah-platform-strip .ah-wrap { display: flex; justify-content: space-between; align-items: center; height: 32px; gap: 12px; }
.ah-platform-strip a { color: #CFCAD6; text-decoration: none; }
.ah-platform-strip a:hover { color: #fff; }
.ah-platform-strip .ah-brand { font-weight: 700; letter-spacing: .08em; color: #fff; }

/* ---------- Academy header (학원 브랜드 중심) ---------- */
.ah-site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ah-line); }
.ah-site-header .ah-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.ah-site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.ah-site-logo .ah-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--ah-accent); color: #fff; display: grid; place-items: center; font-family: var(--ah-serif); font-weight: 700; font-size: 16px; flex: none; }
.ah-site-logo .ah-name { font-family: var(--ah-serif); font-weight: 700; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-site-nav { display: flex; gap: 22px; font-size: 14px; }
.ah-site-nav a { text-decoration: none; color: var(--ah-ink-2); }
.ah-site-nav a:hover { color: var(--ah-accent); }
.ah-site-nav .ah-live { color: #D92D20; font-weight: 700; }
.ah-header-cta { display: flex; gap: 8px; align-items: center; flex: none; }
.ah-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.ah-btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.ah-btn-accent { background: var(--ah-accent); color: #fff; }
.ah-btn-accent:hover { background: var(--ah-accent-ink); }
.ah-btn-line { background: transparent; color: var(--ah-ink); border-color: var(--ah-line); }
.ah-btn-line:hover { border-color: var(--ah-ink-3); }
.ah-btn-white { background: #fff; color: var(--ah-ink); }
.ah-btn-ghost-white { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.ah-menu-toggle { display: none; background: none; border: 1px solid var(--ah-line); border-radius: 10px; height: 36px; padding: 0 12px; font-size: 13px; color: var(--ah-ink-2); }

/* ---------- Hero ---------- */
.ah-hero { position: relative; color: #fff; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; background: #2a2230; }
.ah-hero .ah-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ah-hero .ah-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,24,.05) 30%, rgba(20,16,24,.78) 100%); }
.ah-hero .ah-wrap { position: relative; z-index: 1; padding-bottom: 64px; width: 100%; }
.ah-hero h1 { font-family: var(--ah-serif); font-size: 56px; line-height: 1.15; margin: 0 0 16px; font-weight: 700; }
.ah-hero .ah-tagline { font-size: 19px; max-width: 620px; margin: 0 0 28px; opacity: .95; }
.ah-hero .ah-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ah-status { display: inline-flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.ah-status span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); }
.ah-status span.ah-on::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; margin-right: 6px; vertical-align: middle; }

/* ---------- Facts strip ---------- */
.ah-facts { border-bottom: 1px solid var(--ah-line); background: #fff; }
.ah-facts .ah-wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.ah-fact { padding: 22px 20px 22px 0; }
.ah-fact + .ah-fact { padding-left: 20px; border-left: 1px solid var(--ah-line); }
.ah-fact dt { font-size: 12px; color: var(--ah-ink-3); margin-bottom: 4px; }
.ah-fact dd { margin: 0; font-size: 15px; font-weight: 600; }

/* ---------- Sections ---------- */
section.ah-block { padding: 96px 0; }
section.ah-block.ah-tint { background: var(--ah-paper-2); }
.ah-sec-head { margin-bottom: 40px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.ah-sec-head .ah-kicker { font-size: 12px; letter-spacing: .18em; color: var(--ah-accent); font-weight: 700; margin: 0 0 8px; text-transform: uppercase; }
.ah-sec-head h2 { font-family: var(--ah-serif); font-size: 34px; line-height: 1.3; margin: 0; font-weight: 700; }
.ah-sec-head p.ah-sub { margin: 8px 0 0; color: var(--ah-ink-2); }

/* About */
.ah-about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.ah-about .ah-lead { font-family: var(--ah-serif); font-size: 24px; line-height: 1.6; margin: 0 0 20px; }
.ah-about .ah-body { color: var(--ah-ink-2); white-space: pre-line; }
.ah-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ah-features li { background: #fff; border: 1px solid var(--ah-line); border-radius: var(--ah-radius); padding: 20px 22px; }
.ah-features li b { display: block; font-size: 16px; margin-bottom: 4px; }
.ah-features li span { color: var(--ah-ink-2); font-size: 14px; }
.ah-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 24px; }
.ah-tags span { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--ah-accent-soft); color: var(--ah-accent-ink); }

/* Instructors */
.ah-teachers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ah-teacher { background: #fff; border-radius: var(--ah-radius); overflow: hidden; border: 1px solid var(--ah-line); display: flex; flex-direction: column; }
.ah-teacher .ah-portrait { aspect-ratio: 4/3; background: var(--ah-accent-soft); position: relative; overflow: hidden; }
.ah-teacher .ah-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ah-teacher .ah-portrait .ah-initial { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--ah-serif); font-size: 64px; color: var(--ah-accent); opacity: .55; }
.ah-teacher .ah-info { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.ah-teacher .ah-role { font-size: 12px; color: var(--ah-accent); font-weight: 700; letter-spacing: .04em; }
.ah-teacher h3 { font-family: var(--ah-serif); font-size: 22px; margin: 4px 0 10px; }
.ah-teacher p { margin: 0 0 14px; color: var(--ah-ink-2); font-size: 14px; }
.ah-teacher .ah-classes { margin-top: auto; border-top: 1px solid var(--ah-line); padding-top: 12px; font-size: 13px; color: var(--ah-ink-2); }
.ah-teacher .ah-classes b { color: var(--ah-ink); font-weight: 600; }

/* Programs */
.ah-programs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ah-program { background: #fff; border: 1px solid var(--ah-line); border-radius: var(--ah-radius); padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.ah-program h3 { margin: 0; font-size: 20px; }
.ah-program p { margin: 0; color: var(--ah-ink-2); font-size: 14px; }
.ah-program .ah-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ah-ink-2); border-top: 1px solid var(--ah-line); padding-top: 12px; margin-top: auto; }
.ah-program .ah-meta b { color: var(--ah-ink); font-weight: 600; }
.ah-program .ah-when { font-size: 13px; color: var(--ah-accent-ink); }

/* Timetable — PC grid (실제 수업 시간 범위만) */
.ah-tt-toggle { display: inline-flex; border: 1px solid var(--ah-line); border-radius: 999px; padding: 3px; background: #fff; }
.ah-tt-toggle button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--ah-ink-2); }
.ah-tt-toggle button.ah-on { background: var(--ah-ink); color: #fff; }
.ah-tt-grid { display: grid; grid-template-columns: 64px repeat(7, 1fr); border: 1px solid var(--ah-line); border-radius: var(--ah-radius); overflow-x: auto; overflow-y: hidden; background: #fff; }
.ah-tt-grid .ah-h { padding: 12px 8px; text-align: center; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--ah-line); background: var(--ah-paper-2); }
.ah-tt-grid .ah-h small { display: block; font-weight: 400; color: var(--ah-ink-3); font-size: 11px; }
.ah-tt-col { position: relative; border-left: 1px solid var(--ah-line); }
.ah-tt-times { position: relative; }
.ah-tt-times span { position: absolute; right: 8px; font-size: 11px; color: var(--ah-ink-3); transform: translateY(-50%); }
.ah-tt-line { position: absolute; left: 0; right: 0; border-top: 1px dashed #EFECF2; }
.ah-tt-break { position: absolute; left: 0; right: 0; height: 14px; background: repeating-linear-gradient(135deg, #F6F4F8 0 6px, #fff 6px 12px); border-top: 1px solid var(--ah-line); border-bottom: 1px solid var(--ah-line); }
.ah-tt-times .ah-gap-label { position: absolute; left: 4px; right: 4px; font-size: 10px; color: var(--ah-ink-3); text-align: center; }
.ah-tt-item { position: absolute; border-radius: 8px; padding: 6px 8px; font-size: 12px; line-height: 1.35; overflow: hidden; background: var(--ah-c-bg); border-left: 3px solid var(--ah-c); color: var(--ah-ink); text-align: left; border-top: 0; border-right: 0; border-bottom: 0; }
.ah-tt-item { display: flex; flex-direction: column; justify-content: flex-start; cursor: pointer; }
.ah-tt-item b { flex: none; font-size: 12.5px; line-height: 17px; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.ah-tt-item.ah-one-line { padding-top: 2px; padding-bottom: 2px; }
.ah-tt-item.ah-one-line b { display: block; white-space: nowrap; text-overflow: ellipsis; }
.ah-tt-item .ah-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ah-tt-item .ah-t { flex: none; color: var(--ah-ink-2); font-size: 11px; line-height: 15px; }
.ah-tt-item:hover { z-index: 3; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.ah-tt-list { display: none; }
.ah-tt-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ah-ink-2); margin-top: 16px; }
.ah-tt-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--ah-c); margin-right: 6px; vertical-align: -1px; }
.ah-tt-note { font-size: 12px; color: var(--ah-ink-3); margin-top: 8px; }

/* Timetable — list (모바일 기본 / PC 목록 보기) */
.ah-day-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; scrollbar-width: none; }
.ah-day-tabs button { flex: 1 1 0; min-width: 0; border: 1px solid var(--ah-line); background: #fff; border-radius: 12px; padding: 8px 6px; font-size: 14px; color: var(--ah-ink); }
.ah-day-tabs button small { display: block; font-size: 11px; color: var(--ah-ink-3); }
.ah-day-tabs button.ah-on { background: var(--ah-ink); color: #fff; border-color: var(--ah-ink); }
.ah-day-tabs button.ah-on small { color: #CFCAD6; }
.ah-day-tabs button.ah-empty { color: var(--ah-ink-3); }
.ah-slot { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--ah-line); }
.ah-slot .ah-time { font-weight: 700; font-size: 15px; }
.ah-slot .ah-time small { display: block; font-weight: 400; color: var(--ah-ink-3); font-size: 12px; }
.ah-slot .ah-what b { display: block; font-size: 16px; }
.ah-slot .ah-what span { font-size: 13px; color: var(--ah-ink-2); }
.ah-slot .ah-what .ah-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ah-c); margin-right: 6px; }
.ah-slot-empty { padding: 28px 0; text-align: center; color: var(--ah-ink-3); font-size: 14px; }

/* Tuition */
.ah-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ah-price { background: #fff; border: 1px solid var(--ah-line); border-radius: var(--ah-radius); padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.ah-price .ah-type { font-size: 12px; color: var(--ah-accent); font-weight: 700; }
.ah-price h3 { margin: 0; font-size: 18px; }
.ah-price .ah-amount { font-family: var(--ah-serif); font-size: 30px; font-weight: 700; margin: 8px 0 2px; }
.ah-price .ah-amount small { font-family: 'Inter', 'Noto Sans KR', ui-sans-serif, system-ui, sans-serif; font-size: 14px; color: var(--ah-ink-3); font-weight: 400; margin-left: 4px; }
.ah-price .ah-cond { font-size: 13px; color: var(--ah-ink-2); margin-bottom: 16px; }
.ah-price .ah-btn { margin-top: auto; }
.ah-price-note { margin-top: 18px; font-size: 13px; color: var(--ah-ink-3); }

/* News / timeline */
.ah-news { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.ah-news.ah-single { grid-template-columns: 1fr; max-width: 760px; }
.ah-timeline { list-style: none; margin: 0; padding: 0; }
.ah-timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--ah-line); }
.ah-timeline .ah-when { font-size: 13px; color: var(--ah-ink-3); }
.ah-timeline .ah-cat { font-size: 12px; color: var(--ah-accent); font-weight: 700; }
.ah-timeline b { display: block; font-size: 16px; }
.ah-timeline p { margin: 4px 0 0; font-size: 14px; color: var(--ah-ink-2); }
.ah-notices { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--ah-line); border-radius: var(--ah-radius); }
.ah-notices li { border-bottom: 1px solid var(--ah-line); font-size: 14px; }
.ah-notices li:last-child { border-bottom: 0; }
.ah-notices summary { cursor: pointer; list-style: none; padding: 16px 20px; display: flex; justify-content: space-between; gap: 12px; }
.ah-notices summary::-webkit-details-marker, .ah-faq summary::-webkit-details-marker { display: none; }
.ah-notices summary:hover { color: var(--ah-accent); }
.ah-notices .ah-notice-body { padding: 0 20px 20px; color: var(--ah-ink-2); }
.ah-notices .ah-notice-body p { margin: 0; white-space: pre-line; }
.ah-notices .ah-notice-body img { margin-top: 12px; max-width: 100%; max-height: 640px; width: auto; height: auto; border-radius: 10px; }
.ah-notices .ah-pin { font-size: 11px; color: var(--ah-accent); font-weight: 700; margin-right: 8px; }
.ah-notices time { color: var(--ah-ink-3); font-size: 12px; white-space: nowrap; }
.ah-sub-title { font-size: 15px; font-weight: 700; margin: 0 0 12px; }

/* FAQ */
.ah-faq { max-width: 760px; }
.ah-faq details { border-bottom: 1px solid var(--ah-line); padding: 18px 0; }
.ah-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.ah-faq summary::after { content: "+"; color: var(--ah-ink-3); font-weight: 400; }
.ah-faq details[open] summary::after { content: "−"; }
.ah-faq details p { margin: 10px 0 0; color: var(--ah-ink-2); font-size: 14px; white-space: pre-line; }

/* Facility gallery */
.ah-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 12px; }
.ah-gallery figure { margin: 0; border-radius: 12px; overflow: hidden; position: relative; background: #ddd; }
.ah-gallery figure:first-child { grid-row: span 2; }
.ah-gallery.ah-n4 figure:last-child { grid-column: span 2; }
.ah-gallery.ah-n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 320px; } .ah-gallery.ah-n2 figure:first-child, .ah-gallery.ah-n1 figure:first-child { grid-row: auto; }
.ah-gallery.ah-n1 { grid-template-columns: 1fr; grid-template-rows: 380px; }
.ah-gallery.ah-n3 { grid-template-columns: 2fr 1fr; }
.ah-gallery.ah-n6 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 200px); }
.ah-gallery.ah-n6 figure:first-child { grid-column: span 2; }
.ah-gallery img { width: 100%; height: 100%; object-fit: cover; }
.ah-gallery figcaption { position: absolute; left: 10px; bottom: 10px; font-size: 12px; color: #fff; background: rgba(0,0,0,.45); padding: 3px 8px; border-radius: 6px; }

/* Location */
.ah-location { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: stretch; }
.ah-map { min-height: 320px; border-radius: var(--ah-radius); overflow: hidden; border: 1px solid var(--ah-line); background: #EEF0EC; }
.ah-location.ah-no-map { grid-template-columns: 1fr; }
.ah-loc-info dl { margin: 0; display: grid; gap: 16px; }
.ah-loc-info dt { font-size: 12px; color: var(--ah-ink-3); }
.ah-loc-info dd { margin: 2px 0 0; font-size: 15px; }
.ah-map-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }

/* Contact / CTA band */
.ah-contact-band { background: var(--ah-ink); color: #fff; border-radius: 24px; padding: 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.ah-contact-band h2 { font-family: var(--ah-serif); font-size: 32px; margin: 0 0 8px; }
.ah-contact-band p { margin: 0; color: #CFCAD6; }
.ah-contact-actions { display: grid; gap: 10px; }
.ah-contact-actions .ah-btn { height: 52px; width: 100%; }

/* LIVE & SNS */
.ah-live-sns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.ah-card { background: #fff; border: 1px solid var(--ah-line); border-radius: var(--ah-radius); padding: 24px; }
.ah-card h3 { margin: 0 0 6px; font-size: 17px; }
.ah-card p { margin: 0 0 14px; font-size: 14px; color: var(--ah-ink-2); }
.ah-live-dot { color: #D92D20; font-weight: 800; letter-spacing: .06em; margin-right: 6px; }
.ah-sns-links { display: flex; gap: 8px; flex-wrap: wrap; }

/* Footer */
.ah-site-footer { background: var(--ah-paper-2); border-top: 1px solid var(--ah-line); padding: 48px 0; font-size: 13px; color: var(--ah-ink-2); margin-top: 96px; }
.ah-site-footer .ah-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ah-site-footer .ah-fname { font-family: var(--ah-serif); font-size: 18px; color: var(--ah-ink); font-weight: 700; margin-bottom: 8px; }
.ah-site-footer .ah-powered { color: var(--ah-ink-3); margin-top: 24px; font-size: 12px; }
.ah-site-footer .ah-powered a { color: var(--ah-ink-2); }

/* Mobile action bar */
.ah-action-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1159px) { .ah-tt-item .ah-wide-only { display: none; } }
@media (max-width: 960px) {
  .ah-site-nav { display: none; }
  .ah-menu-toggle { display: inline-block; }
  .ah-header-cta .ah-btn-accent { display: none; }
  .ah-mobile-nav:not([hidden]) { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--ah-line); padding: 8px 20px 16px; max-height: calc(100vh - 64px); overflow-y: auto; font-size: 15px; }
  .ah-mobile-nav a { padding: 12px 0; border-bottom: 1px solid var(--ah-line); text-decoration: none; color: var(--ah-ink-2); }
  .ah-hero { min-height: 520px; }
  .ah-hero h1 { font-size: 38px; }
  .ah-hero .ah-tagline { font-size: 16px; }
  .ah-hero .ah-wrap { padding-bottom: 40px; }
  .ah-facts .ah-wrap { grid-template-columns: 1fr 1fr; }
  .ah-fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .ah-fact:nth-child(n+3) { border-top: 1px solid var(--ah-line); }
  section.ah-block { padding: 64px 0; }
  .ah-sec-head h2 { font-size: 27px; }
  .ah-about, .ah-news, .ah-location, .ah-contact-band, .ah-live-sns { grid-template-columns: 1fr; gap: 28px; }
  .ah-teachers { grid-template-columns: 1fr 1fr; gap: 14px; }
  .ah-programs, .ah-prices { grid-template-columns: 1fr; }
  .ah-gallery, .ah-gallery.ah-n3, .ah-gallery.ah-n6 { grid-template-columns: 1fr 1fr; grid-template-rows: 200px; grid-auto-rows: 120px; }
  .ah-gallery.ah-n2 { grid-template-rows: 160px; } .ah-gallery.ah-n2 figure:first-child { grid-column: auto; }
  .ah-gallery.ah-n1 { grid-template-columns: 1fr; grid-template-rows: 240px; } .ah-gallery.ah-n1 figure:first-child { grid-column: auto; }
  .ah-gallery:not(.ah-n1, .ah-n2) figure:first-child { grid-column: span 2; grid-row: auto; }
  .ah-gallery:is(.ah-n4, .ah-n6) figure:last-child { grid-column: span 2; }
  .ah-contact-band { padding: 32px 24px; border-radius: 18px; }
  .ah-tt-grid { display: none !important; }
  .ah-tt-list { display: block !important; }
  .ah-tt-toggle, .ah-tt-note, .ah-tt-legend { display: none !important; }
  .ah-action-bar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--ah-line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  body:has(.ah-action-bar) .ah-site-footer { padding-bottom: 110px; }
  .ah-action-bar .ah-btn { flex: 1 1 0; height: 48px; padding: 0 8px; font-size: 14px; }
  .ah-action-bar .ah-btn-accent { flex-grow: 1.3; }
}
@media (max-width: 520px) {
  .ah-teachers { grid-template-columns: 1fr; }
  .ah-teacher { flex-direction: row; }
  .ah-teacher .ah-portrait { aspect-ratio: auto; width: 112px; flex: none; }
  .ah-teacher .ah-portrait .ah-initial { font-size: 40px; }
  .ah-teacher .ah-info { padding: 16px; }
  .ah-teacher h3 { font-size: 19px; margin-bottom: 6px; }
  .ah-hero h1 { font-size: 34px; }
  .ah-facts .ah-fact dd { font-size: 14px; }
}

/* ---------- 관리자 미리보기 (기존 기능 재설계: 방문자에게는 숨김) ---------- */
.ah-admin-empty { padding: 40px 0 !important; }
.ah-empty-box { border: 1.5px dashed #D9CCF5; background: #FBF9FF; border-radius: var(--ah-radius); padding: 28px; text-align: center; }
.ah-empty-box .ah-kicker { font-size: 11px; color: var(--ah-accent); font-weight: 700; letter-spacing: .08em; margin: 0 0 6px; }
.ah-empty-box h3 { margin: 0 0 14px; font-size: 17px; }
.ah-admin-bar { background: var(--ah-ink); color: #fff; font-size: 13px; }
.ah-admin-bar .ah-wrap { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.ah-admin-bar .ah-label { background: #FDE68A; color: #3B2F00; font-weight: 700; padding: 2px 8px; border-radius: 6px; font-size: 12px; }
.ah-admin-bar .ah-score { font-weight: 700; }
.ah-admin-bar .ah-checks { display: flex; gap: 6px; flex-wrap: wrap; }
.ah-admin-bar .ah-checks a { text-decoration: none; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); color: #E9E4F0; font-size: 12px; }
.ah-admin-bar .ah-checks a.ah-done { background: rgba(74,222,128,.15); border-color: rgba(74,222,128,.5); color: #BBF7D0; }
.ah-admin-bar .ah-checks a.ah-done::before { content: "완료 · "; }
.ah-admin-bar .ah-hint { color: #CFCAD6; }
.ah-admin-bar .ah-spacer { flex: 1; }
.ah-admin-bar a.ah-plain { color: #fff; }

.ah-hero.ah-hero-plain { background: linear-gradient(135deg, var(--ah-accent-ink), #2A2230); min-height: 420px; }
.ah-hero.ah-hero-plain .ah-hero-shade { display: none; }

/* ---------- TANZMATE 전체 메뉴 (공통 헤더 _PublicHeader를 펼쳐 쓴다) ---------- */
.ah-platform-strip nav ol { flex-wrap: nowrap; }
.ah-platform-strip nav li { min-width: 0; }
.ah-platform-strip nav { font-size: 12px; min-width: 0; overflow: hidden; }
.ah-platform-strip nav li:last-child { overflow: hidden; }
.ah-platform-strip nav [aria-current] { color: #fff; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-platform-strip nav a, .ah-platform-strip nav li > span[aria-hidden] { white-space: nowrap; }
.ah-platform-links { display: flex; align-items: center; gap: 14px; flex: none; }
.ah-platform-links button { color: #CFCAD6; font-size: 12px; padding: 6px 0; }
.ah-platform-links button:hover { color: #fff; }
.ah-platform-menu { background: #fff; position: relative; z-index: 50; }

/* ---------- 시간표 상세 (PC 블록·목록 행 공통) ---------- */
.ah-detail { width: min(420px, calc(100vw - 32px)); margin: auto; border: 0; border-radius: 18px; padding: 24px; color: var(--ah-ink); background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.ah-detail::backdrop { background: rgba(20,16,24,.45); }
.ah-detail h3 { font-size: 19px; font-weight: 700; line-height: 1.4; border-left: 4px solid var(--ah-c); padding-left: 12px; }
.ah-detail dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0 0; font-size: 14px; }
.ah-detail dt { color: var(--ah-ink-3); }
.ah-detail .ah-desc { margin: 14px 0 0; font-size: 14px; color: var(--ah-ink-2); white-space: pre-line; }
.ah-detail .ah-detail-actions { display: flex; gap: 8px; margin-top: 20px; }
.ah-detail .ah-detail-actions > * { flex: 1; }

/* ---------- 보조 ---------- */
.ah-site .ah-demo-off { background: #F1EFF3; color: var(--ah-ink-3); cursor: not-allowed; }
.ah-verified { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 11px; font-weight: 600; color: var(--ah-accent-ink); background: var(--ah-accent-soft); border-radius: 6px; padding: 2px 6px; margin-left: 6px; vertical-align: middle; }
.ah-empty-box p.ah-desc { margin: 0 auto 14px; max-width: 420px; font-size: 14px; color: var(--ah-ink-2); }
.ah-photo-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.ah-photo-guide div { border: 1.5px dashed #D9CCF5; border-radius: 12px; background: #FBF9FF; padding: 16px; font-size: 12px; color: var(--ah-ink-2); }
.ah-photo-guide b { display: block; font-size: 13px; color: var(--ah-ink); }
@media (max-width: 960px) { .ah-photo-guide { grid-template-columns: 1fr 1fr; } }
.ah-tt-list.ah-shown { display: block; }
.ah-slot .ah-time, .ah-slot .ah-what { display: block; }
.ah-status .ah-live-now { background: #D92D20; border-color: #D92D20; }
.ah-about.ah-no-text { grid-template-columns: 1fr; gap: 0; }
.ah-fact a { text-decoration: none; }
