/* ═══════════════════════════════════════════
   Blog article pages — specific styles
   Uses design tokens from styles.css
   ═══════════════════════════════════════════ */

/* Breadcrumb */
.breadcrumb { padding: 80px 0 0; }
.bc-inner { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--text-3); font-weight: 500; }
.bc-inner a { color: var(--text-3); transition: color .15s; }
.bc-inner a:hover { color: var(--text-2); }
.bc-sep { color: var(--border); }

/* Article layout */
.article-wrap { max-width: 840px; margin: 0 auto; padding: 0 1.5rem; }
.article-header { padding: 40px 0 56px; }
.article-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 3px 10px;
  font-size: .6875rem; font-weight: 700; color: var(--text-3);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 20px;
}
.article-h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -0.04em;
  line-height: 1.1; color: var(--text); margin-bottom: 20px;
}
.article-lead {
  font-size: 1.125rem; color: var(--text-2);
  line-height: 1.75; letter-spacing: -0.01em;
  margin-bottom: 28px; max-width: 640px;
}
.article-meta {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: .8125rem; color: var(--text-3); font-weight: 500;
  padding-bottom: 28px; border-bottom: 1px solid var(--border);
}
.article-meta span { display: flex; align-items: center; gap: 5px; }

/* TOC */
.toc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px 24px; margin-bottom: 44px;
}
.toc-title {
  font-size: .75rem; font-weight: 800; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px;
}
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.toc-list li a {
  font-size: .875rem; color: var(--text-2); font-weight: 500;
  transition: color .15s; display: flex; gap: 8px; align-items: flex-start;
}
.toc-list li a:hover { color: var(--accent); }
.toc-num { font-size: .6875rem; font-weight: 700; color: var(--accent); min-width: 18px; padding-top: 2px; }

/* Prose */
.prose { font-size: 1rem; line-height: 1.8; color: var(--text-2); }
.prose h2 {
  font-family: var(--font-heading);
  font-size: 1.625rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--text); margin: 48px 0 16px; line-height: 1.2;
}
.prose h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text); margin: 32px 0 10px;
}
.prose p { margin-bottom: 18px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a {
  color: var(--accent); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.prose a:hover { color: var(--accent-dark); }
.prose ul, .prose ol { margin: 0 0 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.prose ul li, .prose ol li { font-size: 1rem; line-height: 1.7; }

/* Callout boxes */
.callout { border-radius: 10px; padding: 18px 22px; margin: 28px 0; }
.callout-warning { background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.2); }
.callout-warning .ci { color: #f59e0b; font-weight: 700; margin-bottom: 6px; display: flex; gap: 8px; align-items: center; font-size: .875rem; }
.callout-info { background: rgba(2,132,199,0.05); border: 1px solid rgba(2,132,199,0.15); }
.callout-info .ci { color: var(--accent); font-weight: 700; margin-bottom: 6px; display: flex; gap: 8px; align-items: center; font-size: .875rem; }
.callout-success { background: rgba(16,185,129,0.06); border: 1px solid rgba(16,185,129,0.15); }
.callout-success .ci { color: #10b981; font-weight: 700; margin-bottom: 6px; display: flex; gap: 8px; align-items: center; font-size: .875rem; }
.callout p { font-size: .9375rem; color: var(--text-2); margin: 0; line-height: 1.65; }

/* Comparison box */
.comp-box { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin: 28px 0; }
.comp-box-header { display: grid; grid-template-columns: 1fr 1fr; font-size: .6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.cbh-left { padding: 12px 18px; background: rgba(239,68,68,0.05); color: #ef4444; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); }
.cbh-right { padding: 12px 18px; background: rgba(2,132,199,0.04); color: var(--accent); border-bottom: 1px solid var(--border); }
.comp-row { display: grid; grid-template-columns: 1fr 1fr; }
.comp-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.cr-bad { padding: 12px 18px; font-size: .875rem; color: var(--text-2); border-right: 1px solid var(--border); display: flex; gap: 8px; align-items: flex-start; }
.cr-good { padding: 12px 18px; font-size: .875rem; color: var(--text-2); display: flex; gap: 8px; align-items: flex-start; }
.cr-icon-bad { color: #ef4444; flex-shrink: 0; }
.cr-icon-good { color: var(--accent); flex-shrink: 0; }

/* Step box */
.steps-numbered { display: flex; flex-direction: column; gap: 12px; margin: 20px 0 28px; }
.step-n {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
}
.step-n .step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800; flex-shrink: 0; margin-top: 1px;
}
.step-content strong { display: block; font-size: .9375rem; font-weight: 700; color: var(--text); margin-bottom: 4px; letter-spacing: -0.01em; }
.step-content p { font-size: .875rem; color: var(--text-2); margin: 0; line-height: 1.6; }

/* CTA inline */
.cta-inline {
  background: var(--accent); border-radius: 14px;
  padding: 32px; margin: 40px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-inline::before {
  content: ''; position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inline > * { position: relative; z-index: 1; }
.cta-inline h3 { font-family: var(--font-heading); font-size: 1.375rem; font-weight: 800; letter-spacing: -0.03em; color: white; margin-bottom: 8px; }
.cta-inline p { font-size: .9375rem; color: rgba(255,255,255,0.75); margin-bottom: 22px; }
.cta-inline .cta-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* FAQ */
.faq-section { background: var(--surface); padding: 80px 0; }
.faq-section .article-wrap { margin: 0 auto; }
.faq-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800;
  letter-spacing: -0.04em; color: var(--text); margin-bottom: 40px;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-btn {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-family: var(--font-body);
  font-size: .9375rem; font-weight: 600; letter-spacing: -0.02em;
  color: var(--text); text-align: left; transition: color .2s;
}
.faq-btn:hover { color: var(--accent); }
.faq-chevron {
  flex-shrink: 0; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-chevron svg { width: 14px; height: 14px; stroke: var(--text-3); transition: stroke .2s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-item.open .faq-chevron svg { stroke: var(--accent); }
.faq-body {
  font-size: .9375rem; color: var(--text-2);
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(0.16, 1, 0.3, 1), padding .4s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1.75;
}
.faq-item.open .faq-body { max-height: 400px; padding-bottom: 20px; }

/* Related */
.related { padding: 60px 0; }
.related-label { font-size: .6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rel-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; font-size: .875rem; font-weight: 600;
  color: var(--text-2); transition: all .2s; text-decoration: none;
}
.rel-card:hover { border-color: rgba(2,132,199,0.3); color: var(--accent); }
.rel-card svg { flex-shrink: 0; stroke: currentColor; }

/* CTA band */
.cta-band {
  background: var(--accent); padding: 80px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse 60% 50%, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band > .article-wrap, .cta-band > .wrap { position: relative; z-index: 1; }
.cta-band h2 {
  font-family: var(--font-heading);
  color: white; margin-bottom: 14px;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.04em; font-weight: 800;
}
.cta-band .cta-sub { color: rgba(255,255,255,0.75); font-size: 1rem; margin-bottom: 32px; }
.cta-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ── Blog article variant (iCal article) ── */
.blog-article { padding: 0 0 40px; }
.blog-article .article-meta .ameta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8125rem; color: var(--text-3); font-weight: 500;
}
.blog-article .article-meta .ameta .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}
.article-intro {
  font-size: 1.125rem; color: var(--text-2);
  line-height: 1.75; letter-spacing: -0.01em;
  margin-bottom: 28px; max-width: 640px;
}
.article-body { font-size: 1rem; line-height: 1.8; color: var(--text-2); }
.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.625rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--text); margin: 48px 0 16px; line-height: 1.2;
}
.article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text); margin: 32px 0 10px;
}
.article-body p { margin-bottom: 18px; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--accent); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.article-body a:hover { color: var(--accent-dark); }
.article-body ul, .article-body ol { margin: 0 0 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.article-body ul li, .article-body ol li { font-size: 1rem; line-height: 1.7; }
.article-table-wrap { overflow-x: auto; margin: 28px 0; }
.article-table {
  width: 100%; border-collapse: collapse; background: var(--white);
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden; font-size: .875rem;
}
.article-table th {
  padding: 12px 16px; text-align: left; font-size: .75rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-3);
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.article-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.article-table tr:last-child td { border-bottom: none; }
.article-table td strong { color: var(--accent); font-weight: 600; }
.checklist { list-style: none; margin: 20px 0 28px; display: flex; flex-direction: column; gap: 10px; }
.checklist li {
  font-size: .9375rem; color: var(--text-2); line-height: 1.6;
  padding-left: 28px; position: relative;
}
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px; border: 2px solid var(--border); border-radius: 4px;
}

/* ── Listing pages (blog index, vs index) ── */
.blog-listing, .vs-listing { padding: 80px 0 40px; }
.listing-header { padding: 40px 0 48px; }
.listing-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -0.04em;
  color: var(--text); margin-bottom: 14px;
}
.listing-intro { font-size: 1.125rem; color: var(--text-2); line-height: 1.7; max-width: 600px; }
.listing-grid { display: flex; flex-direction: column; gap: 16px; padding-bottom: 60px; }
.listing-section { margin-bottom: 32px; }
.listing-section h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text-3); margin-bottom: 16px;
  text-transform: uppercase; font-size: .75rem; letter-spacing: .08em;
}
.vs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.listing-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; transition: all .2s;
}
.listing-card:hover { border-color: rgba(2,132,199,0.3); box-shadow: 0 4px 20px rgba(0,0,0,0.04); }
.listing-card-body { padding: 28px; }
.listing-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.listing-tag {
  font-size: .6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--accent);
  background: rgba(2,132,199,0.06); border: 1px solid rgba(2,132,199,0.15);
  border-radius: 5px; padding: 2px 8px;
}
.listing-date { font-size: .75rem; color: var(--text-3); font-weight: 500; }
.listing-card h2, .listing-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 10px; line-height: 1.3;
}
.listing-card p { font-size: .9375rem; color: var(--text-2); line-height: 1.65; margin-bottom: 16px; }
.listing-read { font-size: .875rem; font-weight: 600; color: var(--accent); }
.listing-card:hover .listing-read { text-decoration: underline; }

@media (max-width: 600px) {
  .related-grid { grid-template-columns: 1fr; }
  .vs-cards { grid-template-columns: 1fr; }
}
