/* Blog post styles — extends theme.css */

/* HEADER */
.blog-header {
  position: sticky;
  top: 0;
  background: rgba(12, 14, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.blog-header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}

.blog-header nav {
  display: flex;
  gap: 32px;
}

.blog-header nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-header nav a:hover,
.blog-header nav a.blog-nav-active {
  color: var(--accent);
}

/* ARTICLE */
.article-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 32px 100px;
}

.article-hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.article-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 16px;
}

.article-meta {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.article-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg-muted);
}

.article-body p {
  margin-bottom: 24px;
}

.article-intro {
  font-size: 20px;
  line-height: 1.65;
  color: var(--fg);
  margin-bottom: 40px;
}

.article-section {
  margin-bottom: 56px;
}

.article-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 16px;
}

.article-section h2 .article-internal-link,
.article-section h2 a {
  color: var(--fg);
  text-decoration: none;
}

.article-section h2 .article-internal-link:hover,
.article-section h2 a:hover {
  color: var(--accent);
}

/* TOC */
.article-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 0 0 48px;
}

.article-toc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.article-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}

.article-toc li {
  counter-increment: toc-counter;
  padding: 6px 0;
  font-size: 15px;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.article-toc li:last-child { border-bottom: none; }

.article-toc li::before {
  content: counter(toc-counter) ".";
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  min-width: 20px;
}

.article-toc a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.article-toc a:hover { color: var(--accent); }

/* CHECKLIST */
.article-checklist {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 0 0 48px;
}

.article-checklist h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}

.article-checklist > p {
  font-size: 15px;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.article-checklist ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.article-checklist li {
  padding: 8px 0;
  font-size: 15px;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.article-checklist li:last-child { border-bottom: none; }

.article-checklist li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  min-width: 6px;
  margin-top: 2px;
}

.article-checklist p {
  font-size: 15px;
  color: var(--fg-muted);
  margin: 0;
}

.article-checklist a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.article-checklist a:hover { text-decoration: underline; }

/* CTA divider */
.article-cta-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0;
}

.article-cta-divider::before,
.article-cta-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.article-cta-divider span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.article-section p {
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.article-section strong {
  color: var(--fg);
  font-weight: 600;
}

.article-sign {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.article-fix-label {
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin-top: 16px;
}

.article-fix-label strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.article-fix-label p {
  font-size: 15px;
  color: var(--fg);
  margin: 0;
}

/* CTA BLOCK */
.article-cta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  margin: 56px 0 0;
}

.article-cta h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}

.article-cta p {
  font-size: 15px;
  color: var(--fg-muted);
  margin-bottom: 28px;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #0C0E14;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
  background: #F5A96A;
  transform: translateY(-1px);
}

/* MID-POST CTA + EMAIL CAPTURE */
.article-mid-cta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  margin: 48px 0;
}

.article-mid-cta h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}

.article-mid-cta p {
  font-size: 15px;
  color: var(--fg-muted);
  margin-bottom: 24px;
}

.article-mid-cta > .btn-primary {
  margin-bottom: 24px;
}

.article-cta-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  text-align: left;
}

.article-cta-form input[type="email"],
.article-cta-form input[type="text"] {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--fg);
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}

.article-cta-form input:focus { border-color: var(--accent); }
.article-cta-form input::placeholder { color: var(--fg-muted); }

.article-cta-submit {
  border: none;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}

.article-cta-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.article-cta-success {
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 0;
  margin-top: 12px;
}

.article-cta-error {
  color: #E85C5C;
  font-size: 13px;
  padding: 8px 0;
}

@media (min-width: 540px) {
  .article-cta-form {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }
  .article-cta-form input[type="email"] { flex: 1 1 200px; }
  .article-cta-form input[type="text"]  { flex: 1 1 160px; }
  .article-cta-submit { flex: 0 0 auto; width: auto; }
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .article-container { padding: 48px 24px 72px; }
  .blog-header nav { gap: 16px; }
  .blog-header nav a { font-size: 13px; }
  .article-mid-cta { padding: 28px 24px; }
  .faq-question { padding: 16px 18px; font-size: 16px; }
  .faq-answer { padding: 0 18px 18px; }
}

/* FAQ ITEMS */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  margin-bottom: 16px;
  padding: 0;
}

.faq-question {
  cursor: pointer;
  padding: 20px 24px;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  list-style: none;
  position: relative;
  display: block;
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; content: ''; }

.faq-question::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}

details[open] .faq-question::after { content: '\2212'; }

.faq-answer {
  padding: 0 24px 24px;
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
}

.faq-answer p { margin-bottom: 12px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: var(--accent); text-decoration: none; font-weight: 600; }
.faq-answer a:hover { text-decoration: underline; }
.faq-answer em { color: var(--fg); font-style: normal; font-weight: 600; }