/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

:root {
  --bg: #ffffff;
  --bg-alt: #f7f6f2;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-muted: #8a8a8a;
  --line: #e8e6df;
  --accent: #ff5a3c;
  --accent-soft: #fff1ec;
  --primary: #1a1a1a;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 40px rgba(0,0,0,0.08);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent); }

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
}
.logo-mark {
  color: var(--accent);
  font-size: 14px;
}
.logo-img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}
.footer-logo {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: transform .15s ease, background .15s ease;
}
.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* === Hero === */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 120px;
  background: linear-gradient(180deg, #fafaf6 0%, #ffffff 100%);
}
.hero-bg {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,90,60,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(32px, 5.2vw, 58px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-soft);
  margin: 0 0 48px;
  font-weight: 400;
  line-height: 1.7;
}
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  background: #fff;
  padding: 20px 36px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.meta-item { text-align: left; }
.meta-label {
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.meta-value { font-size: 15px; font-weight: 600; }
.meta-divider { width: 1px; height: 28px; background: var(--line); }
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.br-mobile { display: none; }
@media (max-width: 600px) {
  .br-mobile { display: inline; }
  .meta-divider { display: none; }
  .hero-meta { gap: 16px; padding: 16px 20px; }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: all .15s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255,90,60,0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.btn-lg {
  padding: 18px 36px;
  font-size: 16px;
}

/* === Section === */
.section {
  padding: 110px 0;
}
.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  margin-bottom: 72px;
}
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.section-lead {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.7;
}

/* === Intro Grid === */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}
.intro-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.intro-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.intro-card-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
  letter-spacing: 0.06em;
}
.intro-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.intro-card p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}
@media (max-width: 820px) {
  .intro-grid { grid-template-columns: 1fr; }
}

.quote-box {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  position: relative;
}
.quote-mark {
  font-size: 80px;
  font-weight: 800;
  color: var(--accent);
  line-height: 0.6;
  margin-bottom: 14px;
}
.quote-box p {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  margin: 0;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* === Two Col === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.col-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 44px;
  border: 1px solid var(--line);
}
.col-icon {
  font-size: 36px;
  margin-bottom: 16px;
}
.col-box h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.col-desc {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 24px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 16px;
  height: 16px;
  background: var(--accent-soft);
  border-radius: 50%;
}
.check-list li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 13px;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
  .col-box { padding: 32px; }
}

/* === Step List === */
.step-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}
.step {
  display: flex;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  align-items: flex-start;
  transition: border-color .2s ease;
}
.step:hover { border-color: var(--accent); }
.step-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  min-width: 48px;
}
.step-body h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.step-body p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
  line-height: 1.6;
}
@media (max-width: 720px) {
  .step-list { grid-template-columns: 1fr; }
}

.direction-grid {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--line);
}
.direction-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}
.direction-items {
  display: grid;
  gap: 20px;
}
.direction-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.direction-item:first-child { border-top: none; padding-top: 0; }
.direction-k {
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
}
.direction-v {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}
@media (max-width: 720px) {
  .direction-grid { padding: 32px 24px; }
  .direction-item { grid-template-columns: 1fr; gap: 6px; }
}

/* === Rules Grid === */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.rule-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--line);
}
.rule-head {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
  letter-spacing: -0.01em;
}
.rule-card dl dt {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--ink);
}
.rule-card dl dd {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}
.rule-card dl dd:last-child { margin-bottom: 0; }
@media (max-width: 960px) {
  .rules-grid { grid-template-columns: 1fr; }
}

/* === Join Steps === */
.join-steps {
  display: flex;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 56px;
  flex-wrap: wrap;
  justify-content: center;
}
.join-step {
  flex: 1;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.join-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.join-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
}
.join-step h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.join-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}
.join-arrow {
  display: flex;
  align-items: center;
  color: var(--ink-muted);
  font-size: 24px;
  font-weight: 300;
}
@media (max-width: 900px) {
  .join-arrow { display: none; }
}

.cta-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.cta-text h3 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.cta-text p {
  margin: 0;
  color: #b8b7b2;
  font-size: 15px;
}
.cta-actions {
  text-align: right;
}
.cta-actions .btn-primary {
  background: var(--accent);
}
.cta-actions .btn-primary:hover {
  background: #ff7758;
}
.cta-sub {
  margin-top: 14px;
  font-size: 13px;
  color: #b8b7b2;
}
.cta-link {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
.cta-link:hover { border-bottom-color: var(--accent); }
@media (max-width: 760px) {
  .cta-card {
    grid-template-columns: 1fr;
    padding: 40px 28px;
    text-align: center;
  }
  .cta-actions { text-align: center; }
}

/* === Location === */
.location-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 480px;
  border: 1px solid var(--line);
  background: #eee;
}
.location-info {
  display: grid;
  gap: 14px;
  align-content: start;
}
.loc-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.loc-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.loc-value {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.loc-sub {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.6;
}
@media (max-width: 900px) {
  .location-grid { grid-template-columns: 1fr; }
  .map-wrap { min-height: 320px; }
}

/* === Photo Strip === */
.photo-strip {
  padding: 0 0 80px;
  margin-top: -60px;
  position: relative;
  z-index: 2;
}
.photo-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.photo {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #eee;
  box-shadow: var(--shadow-md);
  transition: transform .3s ease;
}
.photo:hover { transform: translateY(-6px); }
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.photo:hover img { transform: scale(1.04); }
.photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 32px 24px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 80%);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.photo-1 { transform: translateY(20px); }
.photo-3 { transform: translateY(40px); }
.photo-1:hover { transform: translateY(14px); }
.photo-3:hover { transform: translateY(34px); }
@media (max-width: 820px) {
  .photo-strip-grid { grid-template-columns: 1fr 1fr; }
  .photo-3 { display: none; }
  .photo-1, .photo-3 { transform: none; }
  .photo-1:hover, .photo-3:hover { transform: translateY(-6px); }
}
@media (max-width: 520px) {
  .photo-strip-grid { grid-template-columns: 1fr; }
  .photo { aspect-ratio: 16 / 10; }
}

/* === Photo Banner === */
.photo-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 60px 0 80px;
  min-height: 320px;
  background: var(--ink);
}
.photo-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.photo-banner-overlay {
  position: relative;
  z-index: 1;
  padding: 80px 40px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.photo-banner-quote {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 800;
  color: #fff;
  line-height: 1.5;
  margin: 0;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

/* === Closing === */
.closing {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
  text-align: center;
  background: var(--ink);
}
.closing-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.closing-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: grayscale(20%);
}
.closing-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.85) 0%, rgba(26,26,26,0.75) 100%);
}
.closing-content {
  position: relative;
  z-index: 1;
}
.closing-quote {
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 40px;
  letter-spacing: -0.02em;
  color: #fff;
}
.closing-quote em {
  font-style: normal;
  font-weight: 800;
}

/* === Footer === */
.site-footer {
  background: var(--ink);
  color: #b8b7b2;
  padding: 60px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #2a2a2a;
}
.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-brand .logo-mark {
  font-size: 22px;
}
.footer-title {
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.footer-sub {
  font-size: 13px;
  color: #8a8a8a;
}
.footer-links {
  display: flex;
  gap: 48px;
  font-size: 14px;
}
.footer-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-links strong { color: #fff; }
.footer-links a { color: #b8b7b2; border-bottom: 1px solid transparent; transition: border-color .15s; }
.footer-links a:hover { border-bottom-color: var(--accent); }
.footer-copy {
  text-align: center;
  font-size: 13px;
  color: #6a6a6a;
  padding-top: 28px;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 20px; }
}

/* ==========================================================
 * Auth: Header right cluster
 * ========================================================== */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-auth {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-link-btn {
  background: transparent;
  border: 0;
  padding: 6px 4px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color .15s ease;
}
.nav-link-btn:hover { color: var(--accent); }
.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, color .15s ease;
}
.nav-user:hover { border-color: var(--accent); color: var(--accent); }
.nav-user-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,90,60,0.15);
}
@media (max-width: 860px) {
  .nav-right { gap: 8px; }
  .nav-auth { gap: 6px; }
  .nav-link-btn { font-size: 13px; }
}

/* ==========================================================
 * Auth: Members section
 * ========================================================== */
.section-members {
  background:
    radial-gradient(1200px 400px at 20% -10%, rgba(255,90,60,0.10), transparent 60%),
    var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.member-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  color: var(--ink);
}
.member-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.member-card-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}
.member-card-body { flex: 1; min-width: 0; }
.member-card-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}
.member-card-desc {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
}
.member-card-arrow {
  color: var(--ink-muted);
  font-size: 18px;
  transition: color .15s ease, transform .15s ease;
}
.member-card:hover .member-card-arrow {
  color: var(--accent);
  transform: translateX(2px);
}
.member-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}
.btn-link-danger {
  background: transparent;
  border: 0;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  color: var(--ink-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s ease;
}
.btn-link-danger:hover { color: #c0392b; }

/* ==========================================================
 * Auth: Modals
 * ========================================================== */
body.modal-open { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 20, 20, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: modalFadeIn .18s ease-out;
}
.modal[hidden] { display: none; }
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.18);
  animation: modalSlideIn .22s ease-out;
}
@keyframes modalSlideIn {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.modal-close:hover { background: var(--bg-alt); color: var(--ink); }
.modal-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.modal-sub {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.6;
}
.modal-sub-warn {
  color: #c0392b;
  background: #fdecea;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 500;
}
.modal-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
}
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.modal-actions .btn { flex: 1; }

/* ==========================================================
 * Auth: Form
 * ========================================================== */
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: block; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field-hint {
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-muted);
}
.field input {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,90,60,0.18);
}
.field-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}
.field-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.form-error {
  margin: 0;
  padding: 10px 12px;
  background: #fdecea;
  color: #c0392b;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}
.form-note {
  margin: 4px 0 0;
  padding: 10px 12px;
  background: var(--bg-alt);
  color: var(--ink-soft);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
}
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-danger {
  background: #c0392b;
  color: #fff;
  border: 0;
  padding: 12px 20px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn-danger:hover { background: #a83224; transform: translateY(-1px); }

.link-btn {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: #d94528; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .modal { padding: 16px; }
  .modal-panel { padding: 28px 20px 22px; border-radius: var(--radius); }
  .modal-title { font-size: 19px; }
}

/* ==========================================================
 * Board (profile / curriculum)
 * ========================================================== */
.board-section {
  padding: 80px 0;
  background:
    radial-gradient(1200px 400px at 20% -10%, rgba(255,90,60,0.08), transparent 60%),
    var(--bg);
  min-height: calc(100vh - 68px);
}
.board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.board-title {
  margin: 8px 0 6px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.board-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}
.board-empty {
  padding: 60px 24px;
  text-align: center;
  color: var(--ink-muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.board-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.post-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.post-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.post-item-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--ink);
}
.post-item-title {
  flex: 1;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-item-meta {
  font-size: 13px;
  color: var(--ink-muted);
  flex-shrink: 0;
}
.post-week-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  flex-shrink: 0;
}

/* 게시물 상세 */
.post-meta {
  margin: -4px 0 18px;
  font-size: 13px;
  color: var(--ink-muted);
}
.post-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  white-space: normal;
  word-break: break-word;
  padding: 8px 0 16px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.modal-panel-wide {
  max-width: 640px;
}
textarea.field, .field textarea, #editContent {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  resize: vertical;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
#editContent:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,90,60,0.18);
}

/* ==========================================================
 * Header: Board nav cluster
 * ========================================================== */
.nav-board {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 12px;
  margin-right: 4px;
  border-right: 1px solid var(--line);
}
.nav-link-active {
  color: var(--accent) !important;
  font-weight: 600;
}
.nav-admin-group {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-left: 14px;
  margin-left: 4px;
  border-left: 1px solid var(--line);
}
@media (max-width: 860px) {
  .nav-board { display: none; }
}

/* ==========================================================
 * Pending notice (members section)
 * ========================================================== */
.member-pending {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  margin-top: 24px;
  background: #fff;
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  color: var(--ink-soft);
}
.member-pending-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.member-pending-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 2px;
}
.member-pending-desc {
  font-size: 13px;
  color: var(--ink-muted);
}

/* ==========================================================
 * Admin
 * ========================================================== */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin: 8px 0 20px;
  border-bottom: 1px solid var(--line);
}
.admin-tab {
  background: transparent;
  border: 0;
  padding: 12px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.admin-tab:hover { color: var(--ink); }
.admin-tab-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.admin-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.admin-table th, .admin-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.admin-table th {
  background: var(--bg-alt);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: rgba(255,90,60,0.03); }
.row-actions {
  white-space: nowrap;
}
.muted { color: var(--ink-muted); }
.stats-h { font-size: 14px; font-weight: 600; color: var(--ink-muted); margin: 16px 0 8px; }
.stats-h-gap { margin-top: 32px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: none;
  margin: 0 0 12px;
  transition: color 0.15s;
}
.back-link:hover { color: var(--accent); }

.admin-subtabs {
  display: flex;
  gap: 16px;
  padding: 8px 0 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin: 4px 0 12px;
}
.admin-subtab {
  background: none;
  border: 0;
  padding: 4px 0;
  font-size: 13px;
  color: var(--ink-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-family: inherit;
}
.admin-subtab:hover { color: var(--ink); }
.admin-subtab-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0 8px;
}
.stats-card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  background: #fff;
}
.stats-card-label {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.stats-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 4px;
}
.stats-card-key { font-size: 11px; color: var(--ink-muted); }
.stats-card-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stats-legend {
  display: flex;
  gap: 16px;
  margin: 8px 0 4px;
  font-size: 12px;
  color: var(--ink-muted);
}
.stats-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.stats-legend-swatch {
  display: inline-block;
  width: 18px;
  height: 8px;
  border-radius: 3px;
}

.bar-list { margin: 4px 0 0; }
.bar-empty { padding: 8px 0; }
.bar-row {
  display: grid;
  grid-template-columns: 96px 1fr 80px;
  align-items: center;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.06);
}
.bar-row:last-child { border-bottom: 0; }
.bar-label {
  font-size: 12px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.bar-pair { display: flex; flex-direction: column; gap: 3px; }
.bar-track {
  height: 7px;
  background: rgba(0,0,0,0.04);
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.25s ease;
}
.bar-pv { background: var(--accent); }
.bar-uv { background: #2563eb; }
.bar-counts {
  text-align: right;
  font-variant-numeric: tabular-nums;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}
.bar-pv-num { font-size: 12px; font-weight: 600; color: var(--ink); }
.bar-uv-num { font-size: 11px; color: var(--ink-muted); }

@media (max-width: 640px) {
  .stats-cards { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 84px 1fr 64px; gap: 8px; }
}
.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.role-pending { color: #b45309; background: #fef3c7; border-color: #fde68a; }
.role-user    { color: #1f6feb; background: #dbeafe; border-color: #bfdbfe; }
.role-admin   { color: #b03127; background: #fee2e2; border-color: #fecaca; }

.btn-mini {
  display: inline-block;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-mini:hover { border-color: var(--ink); }
.btn-mini-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-mini-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-mini-danger {
  background: #fff;
  color: #c0392b;
  border-color: #f5c4be;
}
.btn-mini-danger:hover { background: #fdecea; }

@media (max-width: 720px) {
  .board-head { flex-direction: column; align-items: flex-start; }
  .admin-table { font-size: 12px; }
  .admin-table th, .admin-table td { padding: 10px 8px; }
}

/* ==========================================================
 * Post extras: study date, author meta
 * ========================================================== */
.post-item-link {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px 20px;
}
.post-item-author {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
  flex-shrink: 0;
}
.post-study-date {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-alt);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}
.post-study-meta {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 6px;
  font-weight: 600;
}
@media (max-width: 720px) {
  .post-item-link {
    grid-template-columns: auto 1fr;
    gap: 8px;
  }
  .post-item-author, .post-study-date, .post-item-meta {
    grid-column: 2;
    justify-self: start;
    font-size: 12px;
  }
}

/* ==========================================================
 * Comments
 * ========================================================== */
.comments {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.comments-title {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.comments-loading, .comments-empty {
  padding: 16px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 13px;
  background: var(--bg-alt);
  border-radius: 10px;
}
.comment-item {
  padding: 12px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.comment-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 13px;
}
.comment-author {
  font-weight: 600;
  color: var(--ink);
}
.comment-date {
  color: var(--ink-muted);
  font-size: 12px;
}
.comment-del {
  margin-left: auto;
  background: transparent;
  border: 0;
  font-size: 18px;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transition: background .15s ease, color .15s ease;
}
.comment-del:hover { background: #fdecea; color: #c0392b; }
.comment-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  word-break: break-word;
}
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  resize: vertical;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,90,60,0.18);
}
.comment-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.comment-form-row .form-error { margin: 0; flex: 1; padding: 6px 10px; font-size: 12px; }

/* ==========================================================
 * MyPage
 * ========================================================== */
.container-narrow { max-width: 720px; }

.profile-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}
.profile-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.profile-row:last-child { border-bottom: 0; }
.profile-label {
  width: 80px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}
.profile-value {
  flex: 1;
  font-size: 15px;
  color: var(--ink);
}
.profile-section-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}
.profile-section-desc {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.6;
}
.profile-section-desc code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}
.profile-form .field {
  margin: 12px 0 4px;
}
.profile-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.profile-danger {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fff 0%, #fff7f6 100%);
}
.form-success {
  margin: 0;
  padding: 10px 12px;
  background: #ecfdf5;
  color: #047857;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}
.nav-user-active {
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================================
 * Status badges (curriculum 완료 등)
 * ========================================================== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.status-done {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.post-item-done {
  opacity: 0.72;
}
.post-item-done .post-item-title {
  color: var(--ink-soft);
}

/* ==========================================================
 * Featured curriculum card (진행 예정 첫 항목)
 * ========================================================== */
.featured-post {
  margin: 8px 0 28px;
}
.post-featured {
  background:
    radial-gradient(800px 200px at 20% 0%, rgba(255,90,60,0.08), transparent 60%),
    #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-md);
}
.post-featured-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.post-featured-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.post-featured-title {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.post-featured-content {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
  word-break: break-word;
  white-space: normal;
  background: var(--bg-alt);
  padding: 18px 20px;
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.post-featured-foot {
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 600px) {
  .post-featured { padding: 22px 20px; }
  .post-featured-title { font-size: 20px; }
  .post-featured-content { padding: 14px 16px; }
}

/* ==========================================================
 * Feed (자기소개)
 * ========================================================== */
.container-feed { max-width: 720px; }

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 28px;
}

.feed-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.feed-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.feed-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.feed-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #ff8a6e 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.feed-author-block {
  flex: 1;
  min-width: 0;
}
.feed-author {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.3;
}
.feed-date {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}
.feed-actions {
  display: flex;
  gap: 4px;
}
.feed-action-btn {
  background: transparent;
  border: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.feed-action-btn:hover { background: var(--bg-alt); color: var(--ink); }
.feed-action-danger:hover { background: #fdecea; color: #c0392b; }

.feed-card-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.feed-card-content {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  word-break: break-word;
  white-space: normal;
  padding: 6px 0 4px;
  min-height: 24px;
}

.feed-card-comments {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.feed-card-comments .comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.feed-card-comments .comments-loading,
.feed-card-comments .comments-empty {
  padding: 10px 12px;
  font-size: 12px;
  background: transparent;
  color: var(--ink-muted);
  text-align: left;
  border-radius: 0;
}
.feed-card-comments .comment-item {
  background: var(--bg-alt);
  padding: 10px 12px;
  border-radius: 8px;
  border: 0;
}

@media (max-width: 600px) {
  .feed-card { padding: 18px 18px; }
  .feed-card-title { font-size: 16px; }
  .feed-avatar { width: 36px; height: 36px; font-size: 14px; }
}

/* ==========================================================
 * Stats: Line chart (SVG)
 * ========================================================== */
.stats-chart {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-top: 12px;
  box-shadow: var(--shadow-sm);
}
.stats-chart-svg {
  display: block;
  width: 100%;
  height: 240px;
  overflow: visible;
}
.stats-chart-svg .grid line {
  stroke: var(--line);
  stroke-width: 1;
  shape-rendering: crispEdges;
}
.stats-chart-svg .axis-text {
  font-size: 11px;
  fill: var(--ink-muted);
  font-family: inherit;
}
.stats-chart-svg .line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.stats-chart-svg .line-pv { stroke: var(--accent); }
.stats-chart-svg .line-uv { stroke: #2563eb; }
.stats-chart-svg .area {
  stroke: none;
}
.stats-chart-svg .area-pv { fill: var(--accent); fill-opacity: 0.10; }
.stats-chart-svg .area-uv { fill: #2563eb;       fill-opacity: 0.08; }
.stats-chart-svg .dot-pv { fill: var(--accent); stroke: #fff; stroke-width: 1.5; }
.stats-chart-svg .dot-uv { fill: #2563eb;       stroke: #fff; stroke-width: 1.5; }
.stats-chart-svg .crosshair {
  stroke: var(--ink-muted);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  pointer-events: none;
}
.stats-chart-svg .hover-dot {
  pointer-events: none;
}
.stats-chart-svg { cursor: crosshair; }

.stats-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  min-width: 130px;
  padding: 8px 12px;
  background: rgba(20, 20, 20, 0.92);
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  transition: left .04s linear, top .04s linear;
}
.stats-tooltip[hidden] { display: none !important; }
.stats-tooltip .tt-title {
  font-size: 11px;
  color: #cfcfcf;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.stats-tooltip .tt-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.stats-tooltip .tt-row strong {
  margin-left: auto;
  font-weight: 700;
}
.stats-tooltip .tt-swatch {
  width: 9px; height: 9px;
  border-radius: 2px;
  display: inline-block;
}
.stats-tooltip .tt-pv { background: var(--accent); }
.stats-tooltip .tt-uv { background: #2563eb; }

@media (max-width: 600px) {
  .stats-chart-svg { height: 200px; }
}

/* ==========================================================
 * Guide / Directions pages
 * ========================================================== */
.guide-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 20px;
  box-shadow: var(--shadow-sm);
}
.guide-h {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.guide-h-gap { margin-top: 32px; }
.guide-p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
}
.guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 15px;
  line-height: 2;
  color: var(--ink);
}
.guide-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.guide-list li:last-child { border-bottom: 0; }
.guide-list strong { color: var(--ink); margin-right: 10px; }
.guide-list .muted { color: var(--ink-muted); font-size: 14px; }

.guide-quote-list {
  list-style: none;
  padding: 16px 20px;
  margin: 12px 0;
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.guide-quote-list li {
  padding: 4px 0;
}
.guide-quote-list li::before {
  content: '·  ';
  color: var(--accent);
  font-weight: 700;
}

.rule-block {
  padding: 16px 18px;
  margin-top: 14px;
  background: var(--bg-alt);
  border-radius: 10px;
}
.rule-h {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.rule-block p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.rule-block p:last-child { margin-bottom: 0; }

/* Directions */
.loc-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 8px;
}
.loc-info-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.loc-info-item .loc-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.loc-info-item .loc-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.loc-info-item .loc-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-muted);
}

.map-wrap-large {
  width: 100%;
  height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.map-wrap-large iframe { width: 100%; height: 100%; display: block; }

.directions-figure {
  margin: 12px 0 16px;
  padding: 0;
}
.directions-figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: block;
}
.directions-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.7;
}
.directions-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.directions-steps li {
  position: relative;
  padding: 12px 16px 12px 56px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}
.directions-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.directions-steps strong { color: var(--ink); }

@media (max-width: 600px) {
  .guide-section { padding: 22px 18px; }
  .map-wrap-large { height: 280px; }
}
