/* CMS blog — article, hub, breadcrumbs, author */

/* ── Breadcrumb bar (matches site sub-pages) ── */
.cms-breadcrumb-bar {
  background: var(--navy, #0f172a);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cms-breadcrumb-bar .container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cms-breadcrumb-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0;
  justify-content: flex-start;
  font-size: 0.875rem;
}

.cms-breadcrumb-nav a {
  color: rgba(255, 255, 255, 0.72) !important;
  text-decoration: none;
}

.cms-breadcrumb-nav a:hover {
  color: var(--gold, #c9a227) !important;
}

.cms-breadcrumb-nav > span[itemprop="itemListElement"]:last-child span[itemprop="name"] {
  color: var(--gold, #c9a227);
}

.cms-bc-sep {
  color: rgba(255, 255, 255, 0.35);
  user-select: none;
}

.cms-url-path {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: 0.02em;
}

/* ── Article hero ── */
.cms-article-hero {
  background: linear-gradient(165deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
  color: #fff;
  padding: 2.75rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.cms-article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(201, 162, 39, 0.14), transparent 45%);
  pointer-events: none;
}

.cms-article-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.cms-article-cat {
  display: inline-block;
  background: rgba(201, 162, 39, 0.18);
  color: #fbbf24;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.cms-article-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.85rem, 4.8vw, 2.75rem);
  line-height: 1.18;
  margin: 0 0 1.15rem;
  color: #fff;
}

.cms-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem 1.25rem;
  color: #94a3b8;
  font-size: .9rem;
}

.cms-meta-item {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.cms-meta-divider {
  color: rgba(148, 163, 184, 0.6);
  user-select: none;
}

.cms-meta-cat {
  color: #fbbf24;
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── Article body — single column, centered ── */
.cms-article-body {
  padding: 2.75rem 0 2rem;
  background: #f8fafc;
}

.cms-article-container {
  max-width: 820px;
}

.cms-content {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2.25rem 2.5rem;
  box-shadow: 0 4px 28px rgba(15, 23, 42, 0.05);
  line-height: 1.82;
  font-size: 1.0625rem;
  color: #334155;
}

.cms-prose > *:first-child { margin-top: 0; }
.cms-prose > *:last-child { margin-bottom: 0; }

/* Uploaded content — headings */
.cms-content h1,
.cms-prose h1 {
  font-size: 1.65rem;
  margin: 2rem 0 1rem;
  color: #0f172a;
  font-family: Georgia, 'Times New Roman', serif;
}

.cms-content h2,
.cms-prose h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  padding-top: .5rem;
  color: #0f172a;
  line-height: 1.28;
  border-top: 1px solid #e2e8f0;
}

.cms-content h2:first-child,
.cms-prose h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.cms-content h3,
.cms-prose h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.22rem;
  margin: 1.75rem 0 .75rem;
  color: #1e293b;
}

.cms-content h4,
.cms-prose h4 {
  font-size: 1.05rem;
  margin: 1.5rem 0 .65rem;
  color: #334155;
  font-weight: 700;
}

.cms-content p,
.cms-prose p {
  margin: 0 0 1.25rem;
}

.cms-content a,
.cms-prose a {
  color: #b8921f;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.cms-content a:hover,
.cms-prose a:hover { color: #92710a; }

.cms-content ul,
.cms-content ol,
.cms-prose ul,
.cms-prose ol {
  margin: 0 0 1.35rem;
  padding-left: 1.4rem;
}

.cms-content li,
.cms-prose li {
  margin-bottom: .5rem;
  line-height: 1.7;
}

.cms-content li::marker { color: #c9a227; }

.cms-content blockquote,
.cms-prose blockquote {
  margin: 1.75rem 0;
  padding: 1.15rem 1.4rem;
  border-left: 4px solid #c9a227;
  background: linear-gradient(90deg, #fffbeb 0%, #fff 100%);
  border-radius: 0 12px 12px 0;
  color: #475569;
  font-style: italic;
}

.cms-content pre,
.cms-prose pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1.15rem 1.3rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.5rem 0;
  line-height: 1.55;
  font-size: .88rem;
}

.cms-content code,
.cms-prose code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: .88em;
}

.cms-content :not(pre) > code,
.cms-prose :not(pre) > code {
  background: #f1f5f9;
  padding: .18rem .45rem;
  border-radius: 5px;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.cms-content img,
.cms-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.75rem auto;
  display: block;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.cms-content figure,
.cms-prose figure {
  margin: 1.75rem 0;
}

.cms-content figcaption,
.cms-prose figcaption {
  font-size: .85rem;
  color: #64748b;
  text-align: center;
  margin-top: .6rem;
  line-height: 1.5;
}

.cms-content iframe,
.cms-content video,
.cms-prose iframe,
.cms-prose video {
  max-width: 100%;
  border-radius: 12px;
  margin: 1.5rem 0;
  border: none;
}

.cms-content table,
.cms-content .cms-table,
.cms-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .94rem;
  display: block;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  -webkit-overflow-scrolling: touch;
}

.cms-content table th,
.cms-content table td,
.cms-prose table th,
.cms-prose table td {
  border: 1px solid #e2e8f0;
  padding: .75rem .9rem;
  text-align: left;
  vertical-align: top;
  min-width: 120px;
}

.cms-content table th,
.cms-prose table th {
  background: #f1f5f9;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.cms-content hr,
.cms-prose hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 2rem 0;
}

.cms-content strong,
.cms-prose strong { color: #0f172a; font-weight: 700; }

.cms-content em,
.cms-prose em { color: #475569; }

/* Divs/spans from TinyMCE — reset weird defaults */
.cms-prose div,
.cms-prose span {
  line-height: inherit;
}

.cms-prose .cms-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

/* ── Author at end ── */
.cms-author-end {
  background: #fff;
  padding: 3rem 0;
  border-top: 1px solid #e2e8f0;
}

.cms-author-end .section-title {
  text-align: left;
  margin-bottom: 1.75rem;
}

.cms-author-end-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.cms-author-end-photo {
  text-align: center;
}

.cms-author-end-photo .about-leader-photo {
  max-width: 240px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0 auto;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.cms-author-end-copy .homepage-founder-name {
  margin: 0 0 .25rem;
  font-size: 1.65rem;
}

.cms-author-end-copy .homepage-founder-title {
  color: #c9a227;
  font-weight: 700;
  margin: 0 0 .75rem;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.cms-author-end-copy .homepage-founder-tagline {
  margin-bottom: 1rem;
  line-height: 1.65;
}

.cms-author-end-copy .about-prose p {
  color: #64748b;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.cms-author-end-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.25rem;
}

/* ── Related posts ── */
.cms-related-section {
  background: #f8fafc;
  padding: 2.5rem 0 3.5rem;
}

.cms-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.cms-related-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem;
  background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.cms-related-card:hover {
  border-color: #c9a227;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  transform: translateY(-2px);
}

.cms-related-card h3 {
  margin: .35rem 0 .5rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.cms-related-card h3 a {
  color: #0f172a;
  text-decoration: none;
}

.cms-related-card h3 a:hover { color: #b8921f; }

.cms-back-link a {
  color: #b8921f;
  font-weight: 600;
  text-decoration: none;
}

.cms-back-link a:hover { text-decoration: underline; }

/* ── Hub listing ── */
.cms-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.cms-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.35rem;
  background: #fff;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.cms-card:hover {
  transform: translateY(-3px);
  border-color: #c9a227;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.cms-card h2 {
  margin: .35rem 0 .65rem;
  font-size: 1.2rem;
  line-height: 1.35;
}

.cms-card h2 a {
  color: #1e293b;
  text-decoration: none;
}

.cms-card h2 a:hover { color: #b8921f; }

.cms-card p {
  color: #64748b;
  font-size: .92rem;
  line-height: 1.6;
  margin: 0 0 .5rem;
}

.cms-card-cat {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #b8921f;
}

.cms-card time {
  display: block;
  margin-top: .75rem;
  font-size: .85rem;
  color: #64748b;
}

.cms-empty { color: #64748b; padding: 2rem 0; }

/* ── FAQ ── */
.cms-faq-section {
  padding: 2.5rem 0 3rem;
  background: #fff;
}

.cms-faq-list { max-width: 820px; }

.cms-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: .75rem;
  padding: .9rem 1.1rem;
  background: #fff;
  transition: border-color .2s;
}

.cms-faq-item[open] {
  border-color: #c9a227;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.cms-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  color: #0f172a;
  padding-right: 1.5rem;
  position: relative;
  line-height: 1.45;
}

.cms-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  color: #c9a227;
  font-size: 1.2rem;
  line-height: 1;
}

.cms-faq-item[open] summary::after { content: '−'; }

.cms-faq-item summary::-webkit-details-marker { display: none; }

.cms-faq-answer {
  margin-top: .85rem;
  color: #475569;
  line-height: 1.7;
}

.cms-faq-answer p { margin: 0 0 .75rem; }

.hero-compact {
  min-height: auto !important;
  padding: 2.5rem 0 1.5rem;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .cms-breadcrumb-nav { font-size: .8rem; }

  .cms-article-hero { padding: 2rem 0 2.25rem; }

  .cms-article-title { font-size: 1.6rem; }

  .cms-content {
    padding: 1.35rem 1.15rem;
    font-size: 1rem;
    border-radius: 12px;
  }

  .cms-content h2, .cms-prose h2 { font-size: 1.3rem; }

  .cms-author-end-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .cms-author-end-photo .about-leader-photo { max-width: 200px; }

  .cms-author-end-actions {
    justify-content: center;
  }

  .cms-related-grid { grid-template-columns: 1fr; }

  .cms-post-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .cms-url-path { font-size: .68rem; word-break: break-all; }
}
