/* ======================================================================
   토지투자 강의 — Claude-inspired design system
   ====================================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@300;400;500;600;700&family=Gowun+Batang:wght@400;700&family=Gowun+Dodum&family=IBM+Plex+Serif:ital,wght@0,300;0,400;0,500;1,400&display=swap');

:root {
  /* Claude-inspired warm cream palette */
  --bg: #F4EFE6;
  --bg-2: #EDE6D8;
  --surface: #FAF7F0;
  --surface-2: #FFFFFF;
  --ink: #1B1A19;
  --ink-2: #3B3A36;
  --muted: #6B6963;
  --muted-2: #8E8B82;
  --border: #DDD4BF;
  --border-soft: #E8E0CD;

  --accent: #D97757;            /* Claude orange */
  --accent-deep: #B8593A;
  --accent-soft: #F2C8B5;
  --accent-wash: #F7E5D8;

  /* Type */
  --serif: "Noto Serif KR", "Gowun Batang", "IBM Plex Serif", Georgia, serif;
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  /* Scale */
  --container: 1180px;
  --container-narrow: 880px;

  /* Easing */
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* Dark variant */
[data-theme="dark"] {
  --bg: #1A1816;
  --bg-2: #221F1B;
  --surface: #26221D;
  --surface-2: #2D2823;
  --ink: #F4EFE6;
  --ink-2: #D9D2C2;
  --muted: #A09A8C;
  --muted-2: #807A6D;
  --border: #3D3730;
  --border-soft: #322D27;
  --accent-wash: #3A2A22;
  --accent-soft: #6B3F2B;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss06" on, "calt" on;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* Headline serif */
.serif { font-family: var(--serif); }
.sans { font-family: var(--sans); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

[data-headline-font="sans"] h1,
[data-headline-font="sans"] h2,
[data-headline-font="sans"] h3,
[data-headline-font="sans"] h4,
[data-headline-font="sans"] .h-display {
  font-family: var(--sans);
  letter-spacing: -0.025em;
  font-weight: 600;
}

p { margin: 0; text-wrap: pretty; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Type scale ─────────────────────────────────────────────────────── */
.h-display {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.h-1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.h-2 {
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.25;
}
.h-3 {
  font-size: 20px;
  line-height: 1.35;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-2);
}
.muted { color: var(--muted); }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all 240ms var(--ease);
  white-space: nowrap;
  background: transparent;
  color: var(--ink);
}
.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px var(--accent);
}
.btn-secondary {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--ink);
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--bg);
}
.btn-ghost {
  border-color: transparent;
  color: var(--ink-2);
}
.btn-ghost:hover { color: var(--accent); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }

/* ── Cards ──────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 28px;
  transition: all 280ms var(--ease);
}
.card-soft {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
}
.card-hover:hover {
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px rgba(28, 26, 24, .12);
}

/* ── Header / Nav ───────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 84%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in oklab, var(--border-soft) 60%, transparent);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.nav-links a {
  position: relative;
  transition: color 200ms var(--ease);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -22px;
  height: 1px;
  background: var(--ink);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── 강의 소개 하위 드롭다운 (강사가 궁금해?) ── */
.nav-dd { position: relative; display: flex; align-items: center; }
.nav-dd-caret { font-size: 9px; opacity: .55; margin-left: 2px; }
.nav-dd-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: 16px; /* 투명 hover 브리지 — 메뉴로 마우스 이동 시 끊기지 않게 */
  opacity: 0; visibility: hidden; transition: opacity .18s var(--ease); z-index: 60;
}
.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu { opacity: 1; visibility: visible; }
.nav-dd-inner {
  min-width: 152px; padding: 7px;
  background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 12px;
  box-shadow: 0 16px 36px -18px rgba(28, 26, 24, .24);
}
.nav-dd-inner a {
  display: block; padding: 10px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
}
.nav-dd-inner a:hover { background: var(--bg-2); color: var(--accent); }

/* ── 모바일 햄버거 버튼 (데스크톱에선 숨김) ── */
.nav-toggle {
  display: none;
  flex: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  margin-left: 12px;
  padding: 0;
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 900px 이하에서 햄버거 메뉴로 전환.
   (예전엔 720px 이었는데, 721~880px 구간에서 메뉴+수강신청 버튼이 헤더를 넘쳐
    '수강 신청' 이 잘려 보였다.) */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .nav-inner { flex-wrap: wrap; gap: 0; padding: 14px 20px; }
  /* 브랜드는 잘라내지 않고 두 줄까지 자연스럽게 흐르게 한다(…로 잘리던 문제) */
  .brand { flex: 1 1 auto; min-width: 0; font-size: 15px; line-height: 1.32; }
  .brand > span:last-child { white-space: normal; overflow-wrap: break-word; }

  /* 열렸을 때 뒤 배경이 비쳐 글자가 흐려지지 않게 불투명 배경 */
  .site-header.nav-open { background: var(--bg); }

  /* 메뉴·CTA 는 닫혀 있을 땐 숨기고, 햄버거를 누르면 아래로 펼쳐짐 */
  .nav-links, .nav-cta { flex-basis: 100%; width: 100%; }
  .site-header:not(.nav-open) .nav-links,
  .site-header:not(.nav-open) .nav-cta { display: none; }

  .nav-links {
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--border-soft);
    font-size: 15.5px;
  }
  .nav-links > a,
  .nav-dd > a { padding: 13px 8px; border-radius: 10px; }
  .nav-links > a:active,
  .nav-dd > a:active,
  .nav-dd-inner a:active { background: var(--bg-2); }
  .nav-links a.active { color: var(--accent-deep); }
  .nav-links a.active::after { display: none; }

  /* '강의 소개' 하위(강사가 궁금해?)는 모바일에선 항상 인라인으로 보이게 */
  .nav-dd { flex-direction: column; align-items: stretch; }
  .nav-dd-caret { display: none; }
  .nav-dd-menu {
    position: static; transform: none; padding-top: 0;
    opacity: 1; visibility: visible;
  }
  .nav-dd-inner {
    min-width: 0; padding: 0 0 4px 12px;
    background: transparent; border: 0; box-shadow: none;
  }
  .nav-dd-inner a { padding: 11px 8px; border-radius: 8px; }

  .nav-cta {
    order: 4;
    gap: 10px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
  }
  .nav-cta .btn { flex: 1; justify-content: center; }
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 120px;
  padding: 64px 0 40px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-2);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--container);
  margin: 56px auto 0;
  padding: 24px 28px 0;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* ── Section utilities ──────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.divider {
  height: 1px;
  background: var(--border-soft);
  margin: 0;
  border: 0;
}

/* ── Reveal-on-scroll ───────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.reveal.in, .reveal[data-rv] {
  opacity: 1;
  transform: none;
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal-stagger.in > *, .reveal-stagger[data-rv] > * {
  opacity: 1;
  transform: none;
}
.reveal-stagger[data-rv] > *:nth-child(1) { transition-delay: 60ms; }
.reveal-stagger[data-rv] > *:nth-child(2) { transition-delay: 140ms; }
.reveal-stagger[data-rv] > *:nth-child(3) { transition-delay: 220ms; }
.reveal-stagger[data-rv] > *:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger[data-rv] > *:nth-child(5) { transition-delay: 380ms; }
.reveal-stagger[data-rv] > *:nth-child(6) { transition-delay: 460ms; }
.reveal-stagger[data-rv] > *:nth-child(7) { transition-delay: 540ms; }
.reveal-stagger[data-rv] > *:nth-child(8) { transition-delay: 620ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    opacity: 1; transform: none; transition: none;
  }
}

/* ── Sticky apply bar ───────────────────────────────────────────────── */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(120%);
  z-index: 40;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 16px 12px 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 18px 48px -16px rgba(0,0,0,.32);
  transition: transform 480ms var(--ease);
  font-size: 14px;
}
.sticky-cta.show { transform: translateX(-50%) translateY(0); }
.sticky-cta .btn {
  height: 38px; padding: 0 18px;
  background: var(--accent); border-color: var(--accent);
  color: #FFFFFF; font-size: 13px;
}

/* ── Misc ───────────────────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: var(--accent-wash);
  color: var(--accent-deep);
  border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
}
.pill-soft {
  background: var(--surface-2);
  color: var(--ink-2);
  border-color: var(--border-soft);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

/* For the Tweaks panel — match its accent to current theme */
.twk-panel { font-family: var(--sans) !important; }

/* ─────────────────────────────────────────────────────────────────────
   Page sections
   ───────────────────────────────────────────────────────────────────── */

/* ── Hero ── */
.hero { padding: 80px 0 100px; position: relative; overflow: hidden; }

/* ── Cinematic mouse-reactive hero ── */
.hero-cine {
  position: relative;
  min-height: min(92vh, 880px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: #0e0c0a;
  color: #F4EFE6;
  isolation: isolate;
  --nx: 0; --ny: 0; --mx: 50%; --my: 40%; --active: 0;
}
.cine-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cine-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 58% 22%;
  transform: translate(calc(var(--nx) * 14px), calc(var(--ny) * 10px)) scale(1.06);
  transition: transform 200ms linear;
  will-change: transform;
}
@media (min-width: 880px) {
  .cine-photo { background-position: right 18% top 20%; background-size: auto 116%; }
}
.cine-photo-dim { filter: brightness(0.34) saturate(0.85) contrast(1.02); }
.cine-photo-lit {
  filter: brightness(0.92) saturate(1.05) contrast(1.04);
  opacity: calc(0.35 + 0.65 * var(--active));
  -webkit-mask-image: radial-gradient(circle 360px at var(--mx) var(--my),
    #000 0%, rgba(0,0,0,0.75) 38%, transparent 68%);
  mask-image: radial-gradient(circle 360px at var(--mx) var(--my),
    #000 0%, rgba(0,0,0,0.75) 38%, transparent 68%);
}
.cine-grain {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 30% 20%, rgba(217,119,87,0.10), transparent 45%);
  mix-blend-mode: screen;
  opacity: calc(0.4 + 0.6 * var(--active));
  transition: opacity 200ms linear;
}
.cine-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(14,12,10,0.92) 0%, rgba(14,12,10,0.78) 34%, rgba(14,12,10,0.25) 64%, rgba(14,12,10,0.55) 100%),
    linear-gradient(to top, rgba(14,12,10,0.9) 0%, transparent 30%);
}
.cine-topo {
  position: absolute; inset: -6%; z-index: 1; pointer-events: none;
  opacity: calc(0.18 + 0.32 * var(--active));
  transform: translate(calc(var(--nx) * 26px), calc(var(--ny) * 20px));
  transition: opacity 220ms linear, transform 200ms linear;
  mix-blend-mode: screen;
}
.cine-inner {
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  width: 100%;
  padding-top: 40px;
  padding-bottom: 40px;
}
.cine-text {
  transform: translate(calc(var(--nx) * -10px), calc(var(--ny) * -7px));
  transition: transform 200ms linear;
}
.cine-text > * + * { margin-top: 22px; }

/* Self-contained entrance — autoplays on load, always ends visible
   (independent of IntersectionObserver / React className reconciliation) */
.cine-enter > * { opacity: 0; transform: translateY(18px); animation: cineIn 0.9s var(--ease) both; }
.cine-enter > *:nth-child(1) { animation-delay: 0.05s; }
.cine-enter > *:nth-child(2) { animation-delay: 0.16s; }
.cine-enter > *:nth-child(3) { animation-delay: 0.27s; }
.cine-enter > *:nth-child(4) { animation-delay: 0.38s; }
.cine-enter > *:nth-child(5) { animation-delay: 0.49s; }
@keyframes cineIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .cine-enter > * { animation: none; opacity: 1; transform: none; }
}

/* Mouse-reactive tagline */
.cine-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.2;
  color: var(--accent-soft);
  letter-spacing: 0.005em;
  margin-top: 14px !important;
  will-change: transform;
}
.cine-tagline span {
  display: inline-block;
  transition: transform 260ms var(--ease), color 260ms var(--ease);
  transform: translate(calc(var(--nx) * 22px), calc(var(--ny) * 16px));
}
.cine-tagline span:last-child {
  transform: translate(calc(var(--nx) * 38px), calc(var(--ny) * 26px));
  color: #FAF7F0;
}
.cine-tagline:hover span { color: #FFFFFF; }
.cine-pill {
  background: rgba(247,229,216,0.12);
  border-color: rgba(247,229,216,0.22);
  color: #F7E5D8;
  backdrop-filter: blur(6px);
}
.cine-title {
  color: #FAF7F0;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.cine-title em { font-style: normal; font-weight: 800; }
.cine-lead { color: rgba(244,239,230,0.82); }
.cine-lead b { color: #FAF7F0; }
.cine-cta { margin-top: 34px; }
.cine-btn-ghost {
  background: rgba(250,247,240,0.06);
  border: 1px solid rgba(250,247,240,0.28);
  color: #F4EFE6;
  backdrop-filter: blur(6px);
}
.cine-btn-ghost:hover {
  background: rgba(250,247,240,0.14);
  border-color: rgba(250,247,240,0.55);
}

/* Floating chips */
.cine-chips {
  position: relative;
  justify-self: end;
  align-self: stretch;
  width: 100%;
  min-height: 360px;
}
.cine-chip, .cine-coord {
  position: absolute;
  background: rgba(20,17,14,0.42);
  border: 1px solid rgba(247,229,216,0.18);
  border-radius: 14px;
  padding: 16px 20px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 18px 50px -24px rgba(0,0,0,0.7);
  transition: transform 220ms cubic-bezier(.22,1,.36,1), border-color 220ms;
  will-change: transform;
}
.cine-chip:hover, .cine-coord:hover { border-color: rgba(217,119,87,0.6); }
.cine-chip strong {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  color: #FAF7F0;
  margin-top: 4px;
  letter-spacing: -0.01em;
}
.cine-chip strong small { font-family: var(--sans); font-size: 14px; color: rgba(244,239,230,0.6); margin-left: 4px; }
.cine-chip:nth-child(1) { top: 6%;  right: 4%;  transform: translate(calc(var(--nx) * 16px), calc(var(--ny) * 13px)); }
.cine-chip:nth-child(2) { top: 36%; right: 30%; transform: translate(calc(var(--nx) * 26px), calc(var(--ny) * 20px)); }
.cine-chip:nth-child(3) { top: 60%; right: 2%;  transform: translate(calc(var(--nx) * 34px), calc(var(--ny) * 27px)); }
.cine-coord {
  bottom: 4%; right: 22%;
  display: flex; flex-direction: column; gap: 4px;
  font-family: ui-monospace, monospace; font-size: 12px;
  color: rgba(244,239,230,0.7);
  transform: translate(calc(var(--nx) * 42px), calc(var(--ny) * 32px));
}

/* Bottom meta bar */
.cine-meta {
  position: relative; z-index: 3;
  border-top: 1px solid rgba(247,229,216,0.14);
  background: rgba(14,12,10,0.4);
  backdrop-filter: blur(8px);
}
.cine-meta-inner {
  display: flex; align-items: center; gap: 48px;
  padding-top: 26px; padding-bottom: 26px;
  flex-wrap: wrap;
}
.cine-meta-inner > div { display: flex; flex-direction: column; gap: 6px; }
.cine-meta-inner span { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244,239,230,0.5); }
.cine-meta-inner b { font-family: var(--serif); font-size: 21px; font-weight: 500; color: #FAF7F0; letter-spacing: -0.005em; }
.cine-hint {
  margin-left: auto;
  flex-direction: row !important;
  align-items: center; gap: 8px !important;
  font-size: 13px !important; letter-spacing: 0 !important; text-transform: none !important;
  color: rgba(244,239,230,0.5) !important;
}
.cine-hint-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: cineHintPulse 2.2s ease-out infinite;
}
@keyframes cineHintPulse {
  0% { box-shadow: 0 0 0 0 rgba(217,119,87,0.5); }
  70% { box-shadow: 0 0 0 10px rgba(217,119,87,0); }
  100% { box-shadow: 0 0 0 0 rgba(217,119,87,0); }
}

@media (max-width: 880px) {
  .hero-cine { min-height: auto; padding-bottom: 0; }
  .cine-photo { background-position: 62% 18%; }
  .cine-inner { grid-template-columns: 1fr; padding-top: 72px; padding-bottom: 56px; }
  .cine-chips { display: none; }
  .cine-text { transform: none; }
  .cine-meta-inner { gap: 20px; }
  .cine-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cine-photo, .cine-text, .cine-topo, .cine-chip, .cine-coord { transition: none; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-text > * + * { margin-top: 22px; }
.hero-text .pill { margin-bottom: 6px; }
.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
}
.hero-meta div {
  display: flex; flex-direction: column; gap: 4px;
}
.hero-meta span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-meta b { font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--ink); }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-meta { grid-template-columns: 1fr; gap: 12px; }
}

/* Hero centered variant */
.hero-centered { padding: 96px 0 120px; }
.hero-topo {
  position: absolute;
  inset: -8% -10% auto auto;
  width: 70%;
  pointer-events: none;
}

/* Hero card visual */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 36px 80px -40px rgba(28, 26, 24, .14);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 60% at 50% 0%, color-mix(in oklab, var(--accent-wash) 50%, transparent), transparent 60%);
  pointer-events: none;
}
.hero-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 1;
}
.hero-card-art {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--bg);
  overflow: hidden;
  position: relative; z-index: 1;
}
.hero-card-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 6px;
  position: relative; z-index: 1;
}

/* ── Section heading ── */
.section-head { margin-bottom: 56px; }

/* ── Why grid ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card { display: flex; flex-direction: column; }
.why-num {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--accent-deep);
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 14px;
  letter-spacing: 0.06em;
}
@media (max-width: 820px) { .why-grid { grid-template-columns: 1fr; } }

/* ── Pillars ── */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pillar-card {
  padding: 36px 28px 36px 0;
  border-right: 1px solid var(--border-soft);
}
.pillar-card:last-child { border-right: 0; padding-right: 0; }
.pillar-card:not(:first-child) { padding-left: 28px; }
.pillar-kw {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  color: var(--accent-deep);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
@media (max-width: 920px) {
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .pillar-card:nth-child(2) { border-right: 0; padding-right: 0; }
  .pillar-card:nth-child(3) { padding-left: 0; border-top: 1px solid var(--border-soft); padding-top: 28px; }
  .pillar-card:nth-child(4) { padding-left: 28px; border-top: 1px solid var(--border-soft); padding-top: 28px; }
}
@media (max-width: 600px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar-card { padding: 24px 0 !important; border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .pillar-card:last-child { border-bottom: 0; }
}

/* ── Method ── */
.method-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.method-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.method-list li { display: flex; gap: 16px; }
.method-list b { font-family: var(--serif); font-size: 18px; font-weight: 500; display: block; margin-bottom: 4px; }
.method-list p { font-size: 15px; }
.method-dot {
  flex-shrink: 0;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 11px;
  box-shadow: 0 0 0 4px var(--accent-wash);
}
@media (max-width: 920px) { .method-wrap { grid-template-columns: 1fr; gap: 40px; } }

.schedule-card { padding: 28px; }
.schedule-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
}
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.schedule-week {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 14px 12px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px;
}
.schedule-week.special {
  background: var(--accent-wash);
  border-color: color-mix(in oklab, var(--accent) 30%, transparent);
}
.schedule-week-n { font-family: var(--serif); font-size: 15px; color: var(--ink); }
.schedule-week.special .schedule-week-n { color: var(--accent-deep); }
.schedule-week-label { color: var(--muted); font-size: 11px; }
.schedule-week.special .schedule-week-label { color: var(--accent-deep); font-weight: 500; }
.schedule-foot { font-size: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border-soft); }

/* ── Instructor preview ── */
.instructor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.instructor-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px 1fr;
}
.instructor-portrait { background: var(--bg-2); position: relative; }
.instructor-portrait svg { display: block; width: 100%; height: 100%; }
.instructor-portrait.has-photo {
  background:
    radial-gradient(120% 90% at 50% 0%, var(--accent-wash), var(--bg-2) 70%);
  overflow: hidden;
}
.instructor-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.instructor-detail .portrait-frame.has-photo {
  background: radial-gradient(120% 90% at 50% 0%, var(--accent-wash), var(--bg-2) 72%);
}
.instructor-detail .portrait-frame.has-photo .instructor-photo { object-position: center 12%; }
.instructor-meta { padding: 28px; }
.instructor-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-2); }
.instructor-points li { padding-left: 18px; position: relative; }
.instructor-points li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 1px;
  background: var(--accent);
}
@media (max-width: 920px) { .instructor-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .instructor-card { grid-template-columns: 1fr; }
  .instructor-portrait { aspect-ratio: 16 / 9; }
}

/* ── Testimonials ── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 28px;
  position: relative;
  margin: 0;
}
.testimonial-mark {
  position: absolute;
  top: 14px; right: 22px;
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  color: var(--accent-soft);
  font-style: italic;
}
.testimonial blockquote {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 400;
}
.testimonial figcaption { font-size: 14px; }
.testimonial figcaption b { font-weight: 600; }
@media (max-width: 920px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ── Final CTA ── */
.final-cta {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  right: -120px; top: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--accent-wash) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta-meta {
  position: relative;
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--border-soft);
}
.final-cta-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}
.final-cta-row b { font-family: var(--serif); font-size: 16px; font-weight: 500; color: var(--ink); }
.final-cta-row span { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 920px) {
  .final-cta { grid-template-columns: 1fr; padding: 40px 28px; gap: 40px; }
}

/* ─────────────────────────────────────────────────────────────────────
   Curriculum page
   ───────────────────────────────────────────────────────────────────── */
.page-hero { padding: 80px 0 56px; }
.page-hero-eyebrow { display: block; margin-bottom: 16px; }

.curriculum-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.curr-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: start;
}
.curr-row .week {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
  padding-top: 4px;
}
.curr-row .week b {
  display: block; font-style: normal; font-size: 32px; color: var(--ink);
  letter-spacing: -0.01em; margin-top: 2px;
}
.curr-row .body h3 {
  font-family: var(--serif); font-size: 24px; line-height: 1.3;
  margin-bottom: 12px;
}
.curr-row .body p { color: var(--ink-2); margin-bottom: 12px; }
.curr-row .topics { display: flex; flex-wrap: wrap; gap: 6px; }
.curr-row .topics span {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-2);
  border: 1px solid var(--border-soft);
}
.curr-row.special { background: var(--accent-wash); margin: 0 -28px; padding: 32px 28px; border-radius: 12px; border-bottom-color: transparent; }
.curr-row.special .week b,
.curr-row.special .body h3 { color: var(--accent-deep); }
.curr-row .who {
  font-size: 12px; padding: 6px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border-soft);
  color: var(--muted);
  white-space: nowrap; align-self: flex-start;
}
.curr-row.special .who { background: var(--surface); color: var(--accent-deep); border-color: color-mix(in oklab, var(--accent) 30%, transparent); }

@media (max-width: 720px) {
  .curr-row { grid-template-columns: 1fr; gap: 12px; }
  .curr-row.special { margin: 0 -16px; padding: 24px 16px; }
}

/* ─────────────────────────────────────────────────────────────────────
   Instructors page
   ───────────────────────────────────────────────────────────────────── */
.instructor-detail {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  padding: 56px 0;
  border-bottom: 1px solid var(--border-soft);
}
.instructor-detail:last-child { border-bottom: 0; }
.instructor-detail .portrait-frame {
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
}
.instructor-detail .portrait-frame svg { width: 100%; height: 100%; display: block; }
.instructor-detail h2 { margin-bottom: 12px; }
.instructor-detail .bio { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin-bottom: 28px; }
.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border-soft);
}
.fact-grid > div {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
  padding-right: 24px;
}
.fact-grid > div:nth-child(2n) { border-right: 0; padding-right: 0; padding-left: 24px; }
.fact-grid .label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; display: block; }
.fact-grid .value { font-family: var(--serif); font-size: 18px; color: var(--ink); }

@media (max-width: 920px) {
  .instructor-detail { grid-template-columns: 1fr; gap: 40px; }
  .instructor-detail .portrait-frame { max-width: 320px; }
}

/* ─────────────────────────────────────────────────────────────────────
   Apply page
   ───────────────────────────────────────────────────────────────────── */
.apply-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: start;
}
@media (max-width: 920px) { .apply-grid { grid-template-columns: 1fr; gap: 40px; } }

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: all 280ms var(--ease);
}
.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-wash) 0%, var(--surface) 60%);
}
.price-card .price-label { font-size: 13px; color: var(--muted); }
.price-card .price-name { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.price-card.featured .price-name { color: var(--accent-deep); }
.price-card .price-amount {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 8px;
}
.price-card .price-amount small { font-family: var(--sans); font-size: 14px; color: var(--muted); font-weight: 400; }
.price-card .price-condition { font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.price-card .ribbon {
  position: absolute; top: 18px; right: 18px;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent); color: #fff;
  padding: 4px 10px; border-radius: 999px;
}
@media (max-width: 720px) { .price-grid { grid-template-columns: 1fr; } }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 32px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row label { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.form-row input,
.form-row select,
.form-row textarea {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 200ms var(--ease);
}
.form-row textarea { min-height: 96px; resize: vertical; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.form-row.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row.row-2 > * { display: flex; flex-direction: column; gap: 6px; }

.location-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
}
.location-map {
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}
.location-info { padding: 24px 28px; display: flex; flex-direction: column; gap: 10px; }

.faq-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border-soft); }
.faq-item { border-bottom: 1px solid var(--border-soft); padding: 22px 0; }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  font-family: var(--serif); font-size: 19px; font-weight: 500; gap: 16px;
}
.faq-q::after {
  content: '+';
  font-family: var(--sans);
  font-size: 22px; line-height: 1;
  color: var(--muted);
  transition: transform 200ms var(--ease);
}
.faq-item[open] .faq-q::after { content: '−'; }
.faq-a { margin-top: 14px; color: var(--ink-2); line-height: 1.7; }

/* ─────────────────────────────────────────────────────────────────────
   회원관리 (members)
   ───────────────────────────────────────────────────────────────────── */
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 12px 32px 32px;
  box-shadow: 0 30px 70px -40px rgba(28,26,24,.18);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--bg-2);
  border-radius: 12px;
  padding: 4px;
  margin: 12px 0 24px;
}
.auth-tabs button {
  appearance: none; border: 0; cursor: pointer;
  padding: 11px 0;
  border-radius: 9px;
  font: inherit; font-size: 15px; font-weight: 500;
  color: var(--muted);
  background: transparent;
  transition: all 200ms var(--ease);
}
.auth-tabs button.active { background: var(--surface-2); color: var(--ink); box-shadow: 0 2px 8px -4px rgba(0,0,0,.2); }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-err {
  background: color-mix(in oklab, #c0392b 12%, var(--surface));
  border: 1px solid color-mix(in oklab, #c0392b 30%, transparent);
  color: #a5341f;
  padding: 11px 14px; border-radius: 10px; font-size: 14px;
}
[data-theme="dark"] .auth-err { color: #f3b4a8; }
.auth-ok {
  background: color-mix(in oklab, #3F6F4A 12%, var(--surface));
  border: 1px solid color-mix(in oklab, #3F6F4A 30%, transparent);
  color: #2f5b39;
  padding: 11px 14px; border-radius: 10px; font-size: 14px;
}
[data-theme="dark"] .auth-ok { color: #bfe0c6; }
.auth-reset-head h2 { font-family: var(--serif); }
.auth-hint { text-align: center; font-size: 13px; margin-top: 18px; }
.auth-hint b { color: var(--ink-2); font-weight: 600; }

/* Member dashboard */
.member-dash {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 36px;
}
.member-greet { margin-bottom: 28px; }
.member-fields {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border-soft);
  margin-bottom: 28px;
}
.member-fields > div {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
  padding-right: 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.member-fields > div:nth-child(2n) { border-right: 0; padding-right: 0; padding-left: 24px; }
.member-fields .label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.member-fields .value { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.member-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 540px) { .member-fields { grid-template-columns: 1fr; } .member-fields > div { border-right: 0 !important; padding: 14px 0 !important; } }

/* Admin */
.admin-wrap {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 32px;
}
.admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.admin-stat {
  background: var(--bg-2); border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.admin-stat span { font-size: 12px; }
.admin-stat b { font-family: var(--serif); font-size: 28px; font-weight: 500; color: var(--ink); }
.admin-toolbar { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-search {
  flex: 1; min-width: 200px;
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: 10px; padding: 11px 14px; font: inherit; font-size: 14px; color: var(--ink);
}
.admin-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.admin-table th {
  text-align: left; font-weight: 500; font-size: 12px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
  padding: 14px 16px; border-bottom: 1px solid var(--border-soft);
  background: var(--bg-2);
}
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-soft); color: var(--ink-2); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .mono { font-family: ui-monospace, monospace; font-size: 13px; }
.role-badge { font-size: 12px; padding: 3px 9px; border-radius: 999px; font-weight: 500; }
.role-badge.admin { background: var(--accent-wash); color: var(--accent-deep); border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent); }
.role-badge.member { background: var(--bg-2); color: var(--muted); border: 1px solid var(--border-soft); }
.admin-row-actions { display: flex; gap: 6px; white-space: nowrap; }
.admin-row-actions button {
  appearance: none; cursor: pointer;
  border: 1px solid var(--border-soft); background: var(--surface-2);
  color: var(--ink-2); font: inherit; font-size: 12px;
  padding: 6px 10px; border-radius: 7px; transition: all 180ms var(--ease);
}
.admin-row-actions button:hover:not(:disabled) { border-color: var(--ink); }
.admin-row-actions button.danger:hover:not(:disabled) { border-color: #c0392b; color: #c0392b; }
.admin-row-actions button:disabled { opacity: .4; cursor: not-allowed; }
.admin-empty { text-align: center; color: var(--muted); padding: 32px 0 !important; }

/* Header auth chip */
.nav-auth {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-2);
}
.nav-auth .nav-user { font-weight: 600; color: var(--ink); }

/* ─────────────────────────────────────────────────────────────────────
   강의자료실 (resources)
   ───────────────────────────────────────────────────────────────────── */
.admin-banner {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent-wash);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  color: var(--accent-deep);
  padding: 10px 16px; border-radius: 999px; font-size: 14px;
}
.res-section { }
.res-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.res-view-only {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  vertical-align: middle; margin-left: 8px;
  background: var(--bg-2); color: var(--muted);
  border: 1px solid var(--border-soft); border-radius: 999px; padding: 3px 10px;
}
.res-add-form {
  background: var(--bg-2); border: 1px solid var(--border-soft);
  border-radius: 14px; padding: 22px; margin-bottom: 22px;
}
.res-add-form label { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.res-add-form input, .res-add-form textarea {
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: 9px; padding: 10px 12px; font: inherit; font-size: 14px; color: var(--ink); width: 100%;
}
.res-add-form input:focus, .res-add-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.res-del {
  appearance: none; cursor: pointer; background: transparent;
  border: 1px solid var(--border-soft); border-radius: 7px;
  color: var(--muted); font: inherit; font-size: 12px; padding: 5px 10px;
  transition: all 180ms var(--ease);
}
.res-del:hover { border-color: #c0392b; color: #c0392b; }
.res-empty { padding: 24px 0; }

/* Handouts */
.handout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.handout-card {
  display: flex; gap: 16px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: 14px; padding: 20px; transition: all 240ms var(--ease);
}
.handout-card:hover { border-color: var(--border); transform: translateY(-2px); box-shadow: 0 12px 30px -18px rgba(28,26,24,.16); }
.handout-icon {
  flex-shrink: 0; width: 44px; height: 54px;
  background: var(--accent-wash); color: var(--accent-deep);
  border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent);
  border-radius: 7px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
}
.handout-body { flex: 1; }
.handout-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
@media (max-width: 700px) { .handout-grid { grid-template-columns: 1fr; } }

/* PDF viewer modal */
.res-modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20,17,14,0.6); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 24px;
}
.res-modal-inner {
  width: min(900px, 96vw); height: min(86vh, 900px);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.5);
}
.res-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-soft); }
.res-modal-head b { font-family: var(--serif); font-size: 17px; }
.res-modal-x { appearance: none; border: 0; background: transparent; font-size: 18px; cursor: pointer; color: var(--muted); width: 32px; height: 32px; border-radius: 8px; }
.res-modal-x:hover { background: var(--bg-2); color: var(--ink); }
.res-modal-body { flex: 1; min-height: 0; }
.res-modal-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; color: var(--muted); padding: 40px; }

/* Signature (YouTube) */
.sig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sig-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 14px; overflow: hidden; }
.sig-video { aspect-ratio: 16 / 9; background: #141110; position: relative; }
.sig-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.sig-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: rgba(244,239,230,0.5); font-size: 14px; text-align: center; padding: 20px; }
.sig-body { padding: 20px; }
.sig-admin { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.sig-admin input {
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: 8px; padding: 9px 11px; font: inherit; font-size: 13px; color: var(--ink); width: 100%;
}
.sig-admin input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
@media (max-width: 700px) { .sig-grid { grid-template-columns: 1fr; } }

/* Review (HTML, view-only) */
.review-list { display: flex; flex-direction: column; gap: 16px; }
.review-item { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 14px; overflow: hidden; }
.review-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--border-soft); background: var(--bg-2); }
.review-html { padding: 24px 26px; color: var(--ink-2); line-height: 1.7; }
.review-frame { display: block; width: 100%; border: 0; background: #fff; height: 360px; }
/* 전체화면 보기 버튼 (복습 덱·PDF 모달·강의 뷰어 공용) */
.fs-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--accent-deep); font-weight: 600; background: none; border: 0; cursor: pointer; white-space: nowrap; padding: 0; font-family: inherit; }
.fs-btn:hover { text-decoration: underline; }

/* 2주차부터: 16:9 작은 썸네일 그리드 (전체 슬라이드 축소 표시 · 클릭→전체화면) */
.review-thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 20px; }
.review-thumb { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 12px; overflow: hidden; }
.review-thumb-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border-soft); background: var(--bg-2); }
.review-thumb-view { position: relative; aspect-ratio: 16 / 9; background: #000; cursor: pointer; overflow: hidden; }
/* 덱을 1280×720(데스크톱 슬라이드)로 렌더한 뒤 JS가 박스 너비에 맞춰 통째로 축소 → 글씨까지 비례 축소되어 전체 슬라이드가 다 보임 */
.review-thumb-frame { position: absolute; top: 0; left: 0; width: 1280px; height: 720px; transform-origin: top left; transform: scale(0.28); border: 0; pointer-events: none; display: block; }
/* 썸네일을 전체화면으로 열면 축소·클릭차단을 풀고 화면을 꽉 채움 → 덱의 화살표/스페이스 키 조작 가능 */
.review-thumb-frame:fullscreen { position: fixed; top: 0; left: 0; width: 100vw !important; height: 100vh !important; transform: none !important; pointer-events: auto !important; }
.review-thumb-frame:-webkit-full-screen { position: fixed; top: 0; left: 0; width: 100vw !important; height: 100vh !important; transform: none !important; pointer-events: auto !important; }
.review-thumb-hint { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.62); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; opacity: 0; transition: opacity .15s; }
.review-thumb-view:hover .review-thumb-hint { opacity: 1; }
.review-thumb-locked { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: var(--bg-2); }
.review-thumb-locked .rl-lock { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent-deep); font-size: 14px; }
.review-thumb-locked .rl-lock svg { width: 15px; height: 15px; }

/* 정회원 전용 잠금 카드 (1강 무료 공개, 2강부터 잠금) */
.review-locked { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 44px 20px; text-align: center; background: var(--bg-2); }
.review-locked .rl-lock { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--accent-deep); font-size: 15px; }
.review-locked .rl-lock svg { width: 16px; height: 16px; }
.review-locked small { color: var(--muted); font-size: 13px; }
.review-html h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 12px; color: var(--ink); }
.review-html h4 { font-family: var(--serif); font-size: 17px; margin: 18px 0 8px; color: var(--ink); }
.review-html p { margin: 0 0 12px; }
.review-html ul, .review-html ol { margin: 0 0 12px; padding-left: 20px; }
.review-html li { margin-bottom: 6px; }
.review-html a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.review-html img { border-radius: 10px; margin: 12px 0; }
.noselect { -webkit-user-select: none; -moz-user-select: none; user-select: none; }
.res-lock {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px dashed var(--border);
  border-radius: 14px; padding: 24px 26px; color: var(--ink-2);
}
.res-lock svg { color: var(--muted); flex-shrink: 0; }
.res-lock b { font-family: var(--serif); font-size: 17px; }

/* ─────────────────────────────────────────────────────────────────────
   게시판 (board)
   ───────────────────────────────────────────────────────────────────── */
.board-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  background: var(--bg-2); border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 5px; margin-bottom: 24px;
}
.board-tabs button {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: 9px;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--muted);
  background: transparent; transition: all 180ms var(--ease);
}
.board-tabs button:hover { color: var(--ink); }
.board-tabs button.active { background: var(--surface-2); color: var(--ink); box-shadow: 0 2px 8px -4px rgba(0,0,0,.18); }
.board-tab-count {
  font-size: 11px; font-weight: 600;
  background: var(--bg); color: var(--muted);
  border: 1px solid var(--border-soft); border-radius: 999px;
  padding: 1px 7px; min-width: 20px; text-align: center;
}
.board-tabs button.active .board-tab-count { background: var(--accent-wash); color: var(--accent-deep); border-color: transparent; }

.board-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.board-composer {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: 14px; padding: 22px; margin-bottom: 20px;
  display: flex; flex-direction: column; gap: 16px;
}
.board-composer label { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.board-composer input, .board-composer textarea {
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: 9px; padding: 11px 13px; font: inherit; font-size: 14px; color: var(--ink); width: 100%;
}
.board-composer input:focus, .board-composer textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }

.board-list { display: flex; flex-direction: column; border-top: 1px solid var(--border-soft); }
.board-row {
  appearance: none; cursor: pointer; text-align: left; width: 100%;
  background: transparent; border: 0; border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 20px 6px; transition: background 160ms var(--ease);
  font: inherit;
}
.board-row:hover { background: var(--surface); }
.board-row-main { min-width: 0; flex: 1; }
.board-row-main h3 { font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--ink); margin-bottom: 5px; }
.board-row-main p { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 540px; }
.board-row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 13px; white-space: nowrap; }
.board-author { font-weight: 600; color: var(--ink-2); }
.board-cc { font-size: 12px; color: var(--accent-deep); }

/* Detail */
.post-detail { display: flex; flex-direction: column; gap: 18px; }
.post-detail-head { border-bottom: 1px solid var(--border-soft); padding-bottom: 18px; }
.post-meta { display: flex; gap: 14px; margin-top: 12px; font-size: 14px; }
.post-body { font-size: 16px; line-height: 1.75; color: var(--ink-2); white-space: pre-wrap; }
.post-detail-actions { display: flex; justify-content: flex-end; }

.comments { border-top: 1px solid var(--border-soft); padding-top: 24px; margin-top: 6px; }
.comment { border-bottom: 1px solid var(--border-soft); padding: 14px 0; }
.comment-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; font-size: 13px; }
.comment-bar b { font-weight: 600; }
.comment-del { margin-left: auto; appearance: none; border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 12px; }
.comment-del:hover { color: #c0392b; }
.comment p { color: var(--ink-2); line-height: 1.6; }
.comment-form { display: flex; gap: 10px; margin-top: 18px; }
.comment-form input {
  flex: 1; background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: 10px; padding: 11px 14px; font: inherit; font-size: 14px; color: var(--ink);
}
.comment-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
@media (max-width: 600px) {
  .board-row-main p { max-width: 200px; }
}

/* ─────────────────────────────────────────────────────────────────────
   커리큘럼 — A to Z 트랙 (입문·중급·고급 / 모듈 카드)
   ───────────────────────────────────────────────────────────────────── */
.track-stack { display: flex; flex-direction: column; gap: 52px; }
.track-head {
  display: flex; align-items: baseline; gap: 18px;
  padding-bottom: 18px; margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.track-no {
  font-family: var(--serif); font-size: 40px; font-weight: 500;
  color: var(--accent-deep); letter-spacing: -0.02em; line-height: 1;
  font-style: italic;
}
.track-key { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.2; }
.track-desc { font-size: 15px; margin-top: 5px; }
.track-modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.track-module {
  display: flex; gap: 16px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: 14px; padding: 22px;
  transition: all 240ms var(--ease);
}
.track-module:hover {
  border-color: var(--border); transform: translateY(-2px);
  box-shadow: 0 12px 30px -18px rgba(28, 26, 24, .16);
}
.track-module-n {
  flex-shrink: 0; min-width: 26px;
  font-family: var(--serif); font-size: 15px; font-style: italic;
  color: var(--accent-deep); padding-top: 3px; letter-spacing: 0.02em;
}
.track-module-body { flex: 1; min-width: 0; }
.track-module-body h4 { font-family: var(--serif); font-size: 18px; font-weight: 500; margin-bottom: 6px; }
.track-module-body > p { font-size: 14px; color: var(--muted); margin-bottom: 14px; line-height: 1.6; }
.track-module-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.track-time {
  font-size: 12px; font-weight: 500; color: var(--accent-deep);
  background: var(--accent-wash);
  border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
  border-radius: 999px; padding: 3px 10px;
}
.track-tool {
  font-size: 12px; color: var(--ink-2);
  background: var(--bg-2); border: 1px solid var(--border-soft);
  border-radius: 999px; padding: 3px 10px;
}
@media (max-width: 720px) {
  .track-modules { grid-template-columns: 1fr; }
  .track-head { flex-wrap: wrap; gap: 10px 14px; }
  .track-no { font-size: 32px; }
}

/* ── 강의 슬라이드 뷰어 (강의자료실 내) ── */
.lecture-card { border-color: color-mix(in oklab, var(--accent) 32%, transparent); }
.lecture-icon {
  background: var(--accent); color: #fff;
  border-color: var(--accent); font-size: 14px; letter-spacing: 0.04em;
}
.res-modal-inner.wide { width: min(1280px, 97vw); height: min(92vh, 1000px); }

/* 시그니처 강의 — 정회원 전용 잠금 (비회원) */
.sig-lock { position: absolute; inset: 0; display: block; background-size: cover; background-position: center; text-decoration: none; }
.sig-lock::after { content: ''; position: absolute; inset: 0; background: rgba(20,17,14,.5); transition: background .2s; }
.sig-lock:hover::after { background: rgba(20,17,14,.74); }
.sig-lock-badge { position: absolute; top: 10px; left: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 8px;
  background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; color: #fff; }
.sig-lock-badge svg { width: 15px; height: 15px; }
.sig-lock-veil { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; color: #fff; text-align: center; padding: 16px; opacity: 0; transition: opacity .2s; }
.sig-lock:hover .sig-lock-veil { opacity: 1; }
.sig-lock-veil svg { width: 30px; height: 30px; }
.sig-lock-veil b { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.sig-lock-veil small { font-size: 12px; color: rgba(255,255,255,.85); }

/* ─────────────────────────────────────────────────────────────────────
   모바일·앱 가독성 보정 — 글자 잘림 / 가로 스크롤 정리
   ⚠️ .site-header 가 position:sticky 이므로 body 에 overflow-x:hidden 을
      쓰면 sticky 가 깨진다. 그래서 원인만 직접 고친다.
   ───────────────────────────────────────────────────────────────────── */

/* 1) 한글 줄바꿈 — 단어 중간에서 끊지 않고 띄어쓰기에서 끊는다.
      끊을 곳이 없는 긴 문자열(URL 등)만 강제로 줄바꿈. */
body {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 2) grid/flex 자식은 기본값이 min-width:auto 라 '내용보다 좁아지지' 못한다.
      그래서 좁은 화면에서 칸이 안 줄고 화면 밖으로 밀려 잘렸다. → 0 으로 해제 */
.footer-inner > *,
.apply-grid > *,
.method-wrap > *,
.instructor-detail > *,
.instructor-grid > *,
.why-grid > *,
.pillar-grid > *,
.price-grid > *,
.testimonial-grid > *,
.fact-grid > *,
.member-fields > *,
.board-row > * { min-width: 0; }

/* 3) 푸터 — 아주 좁은 화면에선 2열도 버거우므로 1열로 */
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 26px; padding: 0 20px; }
  .footer-bottom { padding: 20px 20px 0; }
}

/* 4) 게시판 미리보기 — 한 줄 …로 자르지 않고 최대 2줄까지 보여준다 */
.board-row-main p {
  white-space: normal;
  max-width: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 5) 표/코드처럼 폭이 큰 요소는 가로 스크롤을 '그 안에서만' 허용 */
.table-wrap, .overflow-x { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
img, svg, video, iframe { max-width: 100%; }

/* 6) 입력칸 — <input>/<select> 는 기본 '고유 폭'(약 20자)을 고집해서
      2열 폼이 좁은 화면에서 안 줄고 라벨·입력칸이 화면 밖으로 밀렸다. */
.form-row input,
.form-row select,
.form-row textarea { width: 100%; min-width: 0; }
.form-row.row-2 > * { min-width: 0; }
@media (max-width: 480px) {
  .form-row.row-2 { grid-template-columns: 1fr; gap: 0; }
  .form-row.row-2 > * { margin-bottom: 18px; }
}

/* 7) 10주 일정표 — 5열 고정이라 모바일에서 칸이 뭉개졌다 */
.schedule-grid > * { min-width: 0; }
@media (max-width: 600px) { .schedule-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 400px) { .schedule-grid { grid-template-columns: repeat(2, 1fr); } }

/* 8) 마우스가 없는 기기(폰·태블릿)에선 '마우스를 움직여 보세요' 안내를 숨긴다 */
@media (hover: none), (pointer: coarse) {
  .cine-hint { display: none; }
}

/* ─────────────────────────────────────────────────────────────────────
   공지 팝업 (site.js initNotice)
   ───────────────────────────────────────────────────────────────────── */
.tt-notice { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.tt-notice-backdrop { position: absolute; inset: 0; background: rgba(27,26,25,.5); opacity: 0; transition: opacity .2s ease; }
.tt-notice.show .tt-notice-backdrop { opacity: 1; }
.tt-notice-card {
  position: relative; z-index: 1; width: 100%; max-width: 400px;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: 22px;
  padding: 28px 26px 22px; box-shadow: 0 30px 70px -24px rgba(60,40,30,.5);
  opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .2s ease, transform .2s ease;
}
.tt-notice.show .tt-notice-card { opacity: 1; transform: none; }
.tt-notice-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 15px; cursor: pointer; }
.tt-notice-x:hover { background: var(--bg-2); color: var(--ink); }
.tt-notice-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-wash); color: var(--accent-deep); font-size: 12.5px; font-weight: 700; padding: 6px 13px; border-radius: 999px; }
.tt-notice-card h2 { font-family: var(--serif); font-size: 21px; line-height: 1.4; color: var(--ink); margin: 16px 0 0; }
.tt-notice-card p { font-size: 14.5px; line-height: 1.72; color: var(--ink-2); margin: 12px 0 0; }
.tt-notice-cta { width: 100%; justify-content: center; margin-top: 22px; }
.tt-notice-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.tt-notice-foot button { background: none; border: 0; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; padding: 6px 2px; }
.tt-notice-foot button:hover { color: var(--ink-2); text-decoration: underline; }

/* 모바일: 하단 시트 형태로 (엄지 조작 편하게) */
@media (max-width: 560px) {
  .tt-notice { align-items: flex-end; padding: 0; }
  .tt-notice-card { max-width: none; border-radius: 22px 22px 0 0; padding: 26px 20px 18px; transform: translateY(100%); }
  .tt-notice.show .tt-notice-card { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tt-notice-backdrop, .tt-notice-card { transition: none; }
}
