/* ── CMS Page ─────────────────────────────────────────────────────────────── */

/* Loading state */
.cms-loading-state {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--text-medium);
  font-size: 1rem;
}

.cms-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--accent-tan);
  border-top-color: var(--primary-orange);
  border-radius: 50%;
  animation: cms-spin 0.8s linear infinite;
}

@keyframes cms-spin {
  to { transform: rotate(360deg); }
}

/* Hero */
.cms-hero {
  padding: 140px 20px 80px;
  text-align: center;
  background: var(--accent-light);
  position: relative;
}

.cms-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: #fff;
  clip-path: ellipse(55% 100% at 50% 100%);
}

.cms-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cms-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.15;
}

.cms-hero-meta {
  font-size: 0.88rem;
  color: var(--text-medium);
  opacity: 0.8;
}

/* Content area */
.cms-content {
  background: #fff;
  padding: 20px 20px 80px;
}

.cms-container {
  max-width: 780px;
  margin: 0 auto;
}

/* Article card */
.cms-article {
  background: #fff;
  border: 1px solid rgba(148, 138, 84, 0.15);
  border-radius: 20px;
  padding: 52px 56px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* Body typography */
.cms-body {
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.8;
}

.cms-body h1 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 0.5em;
  letter-spacing: -0.5px;
}

.cms-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 2em 0 0.6em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-tan);
  letter-spacing: -0.3px;
}

.cms-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 1.6em 0 0.5em;
}

.cms-body p {
  margin-bottom: 1.4em;
  color: var(--text-medium);
}

.cms-body a {
  color: var(--primary-orange);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.cms-body a:hover {
  opacity: 0.75;
}

.cms-body ul,
.cms-body ol {
  margin: 0 0 1.4em 1.5em;
  color: var(--text-medium);
}

.cms-body li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}

.cms-body strong {
  color: var(--text-dark);
  font-weight: 700;
}

.cms-body blockquote {
  border-left: 4px solid var(--primary-orange);
  background: var(--accent-light);
  margin: 1.8em 0;
  padding: 16px 24px;
  border-radius: 0 10px 10px 0;
  color: var(--text-medium);
  font-style: italic;
}

/* Responsive */
@media (max-width: 860px) {
  .cms-article {
    padding: 36px 28px;
  }

  .cms-hero-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 600px) {
  .cms-hero {
    padding: 120px 20px 60px;
  }

  .cms-hero-title {
    font-size: 1.8rem;
    letter-spacing: -0.5px;
  }

  .cms-article {
    padding: 28px 20px;
  }

  .cms-body {
    font-size: 0.97rem;
  }

  .cms-body h2 {
    font-size: 1.2rem;
  }
}
