/* ============================================================
   content_page.css
   Styles for server-rendered SEO content pages (FAQ, glossary,
   and future comparison / alternatives / deplatforming families).
   Inherits the dark theme + :root variables from public.css, which
   is always linked alongside this file.
   ============================================================ */

.public-layout .container.cp-container {
  max-width: 1200px;
}

/* ── TWO-COLUMN LAYOUT ── */
.cp-wrap {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 860px) {
  .cp-wrap {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ── SIDEBAR ── */
.cp-sidebar {
  position: sticky;
  top: 1.5rem;
  align-self: start;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0;
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 860px) {
  .cp-sidebar { position: static; }
}

.cp-sidebar-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
}

.cp-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cp-sidebar-list a {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.35;
  transition: all 0.15s;
}

.cp-sidebar-list a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.cp-sidebar-list a.is-active {
  color: #fff;
  background: rgba(14, 131, 69, 0.18);
  font-weight: 600;
}

/* ── BREADCRUMB ── */
.cp-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.cp-breadcrumb a {
  color: var(--text-muted);
  transition: color 0.15s;
}

.cp-breadcrumb a:hover { color: var(--text-primary); }

.cp-breadcrumb .cp-sep {
  margin: 0 0.45rem;
  opacity: 0.6;
}

/* ── ARTICLE ── */
.cp-article {
  min-width: 0;
}

.cp-article h1 {
  font-size: 2.1rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.cp-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
}

.cp-lede {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 2rem;
  max-width: 70ch;
}

/* Rendered body content */
.cp-body {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 72ch;
}

.cp-body > :first-child { margin-top: 0; }

.cp-body p { margin: 0 0 1.15rem; }

.cp-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2.25rem 0 0.85rem;
  letter-spacing: -0.01em;
}

.cp-body h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1.75rem 0 0.6rem;
}

.cp-body a {
  color: var(--primary-light, #1fb56a);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cp-body a:hover { color: #fff; }

.cp-body strong { color: var(--text-primary); }

.cp-body ul,
.cp-body ol {
  margin: 0 0 1.15rem;
  padding-left: 1.3rem;
}

.cp-body li { margin: 0 0 0.5rem; }

.cp-body blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  border-left: 3px solid var(--primary);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  border-radius: 0 8px 8px 0;
}

.cp-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.cp-body th,
.cp-body td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-subtle);
  vertical-align: top;
}

.cp-body th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-weight: 600;
}

/* ── RELATED ── */
.cp-related {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.cp-related h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.9rem;
}

.cp-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cp-related-list a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.15s;
}

.cp-related-list a:hover {
  color: #fff;
  border-color: var(--primary);
  background: rgba(14, 131, 69, 0.12);
}

/* ── SHARE / JOIN CTA ── */
.cp-cta {
  margin-top: 2.75rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14, 131, 69, 0.12), rgba(255, 255, 255, 0.02));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.cp-cta-copy {
  flex: 1 1 240px;
  min-width: 0;
}

.cp-cta-copy h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cp-cta-copy p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s;
  white-space: nowrap;
}

.cp-btn-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 0 16px rgba(14, 131, 69, 0.2);
}

.cp-btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.cp-btn-secondary {
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  background: transparent;
}

.cp-btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(14, 131, 69, 0.1);
}

/* ── HUB LISTING ── */
.cp-group { margin-bottom: 2.25rem; }

.cp-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.cp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cp-list-item a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cp-list-item a:hover { color: var(--primary-light, #1fb56a); }

.cp-teaser {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cp-empty {
  color: var(--text-muted);
  font-style: italic;
}

/* ── DISCLAIMER ── */
.cp-disclaimer {
  margin-top: 2.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--text-muted);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.cp-disclaimer p {
  margin: 0 0 0.65rem;
}

.cp-disclaimer p:last-child {
  margin-bottom: 0;
}

.cp-disclaimer-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem !important;
}

.cp-disclaimer a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cp-disclaimer a:hover {
  color: var(--primary-light, #45A06E);
}

/* Footer extras reused from this stylesheet */
.public-layout .footer {
  padding: 3rem 1.5rem 2rem;
  text-align: left;
}

.public-layout .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2rem 1.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .public-layout .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.25rem;
  }

  .public-layout .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .public-layout .footer-grid {
    grid-template-columns: 1fr;
  }
}

.public-layout .footer-brand {
  padding-right: 1rem;
}

.public-layout .footer-logo {
  display: inline-flex;
  margin-bottom: 0.75rem;
}

.public-layout .footer-logo img {
  height: 26px;
  width: auto;
}

.public-layout .footer-tagline {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 22ch;
}

.public-layout .footer-heading {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.public-layout .footer-col-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.public-layout .footer-col-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.15s;
}

.public-layout .footer-col-links a:hover {
  color: var(--primary-light, #45A06E);
}

.public-layout .footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.public-layout .footer-links .dot {
  color: var(--text-muted);
  padding: 0.2rem 0.15rem;
}

.public-layout .footer-copy,
.public-layout .footer-made {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0;
}
