/* Generic CMS content page (static pages + FAQ). Loaded alongside common.css. */

.cp-hero {
  background: #f6efe4;
  padding: 40px 32px 30px;
  position: relative;
  overflow: hidden;
}
.cp-hero::after {
  content: '';
  position: absolute;
  left: -5%; right: -5%; bottom: -40px;
  height: 80px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 62% 62% 0 0;
}
.cp-hero-inner { max-width: 1120px; margin: 0 auto; position: relative; z-index: 1; }
.cp-breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.cp-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.cp-breadcrumb a:hover { color: var(--text-secondary); }
.cp-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.15;
  margin: 0;
}

.cp-wrap { max-width: 1120px; margin: 0 auto; padding: 36px 32px 72px; }
.cp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}
.cp-layout--full { grid-template-columns: 1fr; }

.cp-cms {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.85;
}
.cp-cms h1, .cp-cms h2, .cp-cms h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 28px 0 12px;
}
.cp-cms h2 { font-size: 24px; }
.cp-cms h3 { font-size: 20px; }
.cp-cms p { margin: 0 0 16px; }
.cp-cms a { color: var(--purple); text-decoration: underline; }
.cp-cms ul, .cp-cms ol { padding-left: 20px; margin: 0 0 16px; }
.cp-cms li { margin-bottom: 8px; }
.cp-cms img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.cp-cms table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.cp-cms th, .cp-cms td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }

.cp-aside { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.cp-aside-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

/* FAQ categories */
.cp-faq-cats { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.cp-faq-cat-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--text-primary);
  margin: 0 0 10px;
}
.cp-faq { display: flex; flex-direction: column; gap: 8px; }
.cp-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  overflow: hidden;
}
.cp-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cp-faq-item summary::-webkit-details-marker { display: none; }
.cp-faq-item summary::after {
  content: '';
  width: 9px; height: 9px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.18s;
  flex-shrink: 0;
}
.cp-faq-item[open] summary::after { transform: rotate(-135deg); }
.cp-faq-answer { padding: 0 18px 16px; font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

@media (max-width: 900px) {
  .cp-layout { grid-template-columns: 1fr; }
  .cp-aside { position: static; }
}
@media (max-width: 600px) {
  .cp-wrap { padding: 28px 20px 60px; }
  .cp-hero { padding: 30px 20px 24px; }
}

.cache-alert {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.cache-form {
  display: grid;
  gap: 12px;
  max-width: 360px;
}
.cache-form label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}
.cache-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
}
.cache-form button {
  justify-self: start;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--radius);
  background: var(--purple);
  color: #fff;
  font: inherit;
  cursor: pointer;
}
